[clang] Hlsl dst function (PR #133828)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 4 14:35:57 PDT 2025
================
@@ -35,6 +35,12 @@ length_vec_impl(vector<T, N> X) {
#endif
}
+template <typename T>
+constexpr vector<T, 4> dst_impl(vector<T, 4> src0, vector<T, 4> src1) {
+ vector<T, 4> dest = {1, src0[1] * src1[1], src0[2], src1[3]};
+ return dest;
+}
----------------
metkarpoonam wrote:
Thanks for the feedback! I've made the changes in hlsl_intrinsic.h to align with the coding standards. Please take another look when you get a chance.
https://github.com/llvm/llvm-project/pull/133828
More information about the cfe-commits
mailing list