[clang] [HLSL] Add matrix support to atan2 (PR #194984)
Deric C. via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 29 20:19:15 PDT 2026
================
@@ -230,6 +230,40 @@ namespace hlsl {
return fn((float4)V1, (float4)V2, (float4)V3); \
}
+#define _DXC_COMPAT_BINARY_DOUBLE_MATRIX_OVERLOADS(fn) \
+ template <uint R, uint C> \
+ constexpr matrix<float, R, C> fn(matrix<double, R, C> y, \
+ matrix<double, R, C> x) { \
+ return fn((matrix<float, R, C>)y, (matrix<float, R, C>)x); \
+ }
----------------
Icohedron wrote:
nope
https://github.com/llvm/llvm-project/pull/194984
More information about the cfe-commits
mailing list