[clang] [HLSL] Expose `half` types and intrinsics always (PR #81782)

David Peixotto via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 09:09:11 PST 2024


================
@@ -42,20 +49,20 @@ int16_t3 abs(int16_t3);
 _HLSL_AVAILABILITY(shadermodel, 6.2)
 _HLSL_BUILTIN_ALIAS(__builtin_elementwise_abs)
 int16_t4 abs(int16_t4);
+#endif
 
-_HLSL_AVAILABILITY(shadermodel, 6.2)
+_HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
----------------
dmpots wrote:

Currently in dxc the16-bit types are only available when the `-enable-16bit-types` command line flag is provided. They are not available by default in SM 6.2+.

Is this availability macro making the 16-bit types always available when targeting SM 6.2+?

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


More information about the cfe-commits mailing list