================
@@ -174,6 +174,31 @@ const inline float 
distance(__detail::HLSL_FIXED_VECTOR<float, N> X,
                             __detail::HLSL_FIXED_VECTOR<float, N> Y) {
   return __detail::distance_vec_impl(X, Y);
 }
+//===----------------------------------------------------------------------===//
+// dst builtins
+//===----------------------------------------------------------------------===//
+
+/// \fn fvector dst( fvector, fvector)
+/// \brief Returns the length of a vector
----------------
V-FEXrt wrote:

This description sounds off to me. Is this quoted from official documentation 
anywhere? To me the "length" of a `float4` is `4`.

https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dst says `Returns 
the computed distance vector` but any official documentation is probably fine

https://github.com/llvm/llvm-project/pull/133828
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to