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

David Peixotto via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 10:27:52 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:

Ah ok. So this isn't changing how the enabling of 16bit types are working. It just lets the 32-bit half overloads work in earlier shader models.

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


More information about the cfe-commits mailing list