================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits