[clang] [HLSL] Add various overloads for MiniEngine (PR #139800)

Ashley Coleman via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 16:02:36 PDT 2025


================
@@ -236,6 +257,22 @@ _DXC_COMPAT_UNARY_INTEGER_OVERLOADS(cosh)
 _DXC_COMPAT_UNARY_DOUBLE_OVERLOADS(degrees)
 _DXC_COMPAT_UNARY_INTEGER_OVERLOADS(degrees)
 
+//===----------------------------------------------------------------------===//
+// dot builtins overloads
+//===----------------------------------------------------------------------===//
+
+template <typename T, uint N>
----------------
V-FEXrt wrote:

its subtle, but no (I actually made that mistake myself).

`_DXC_COMPAT_BINARY_VECTOR_SCALAR_OVERLOADS` creates type `vector<T, N> fn(vector<T,  N> x, T y` but `dot` requires `T fn(vector<T, N> x, T y)` (return types are different shape)

https://github.com/llvm/llvm-project/pull/139800


More information about the cfe-commits mailing list