================
@@ -30,11 +30,17 @@ namespace hlsl {
 #define _HLSL_16BIT_AVAILABILITY_STAGE(platform, version, stage)               
\
   __attribute__((                                                              
\
       availability(platform, introduced = version, environment = stage)))
+#define _HLSL_16BIT_AVAILABILITY_DEFAULT(shadermodel)                          
\
+  _HLSL_16BIT_AVAILABILITY(shadermodel, 6.2)
 #else
 #define _HLSL_16BIT_AVAILABILITY(environment, version)
 #define _HLSL_16BIT_AVAILABILITY_STAGE(environment, version, stage)
+#define _HLSL_16BIT_AVAILABILITY_DEFAULT(shadermodel)
 #endif
 
+#define _HLSL_AVAILABILITY_6_2_DEFAULT(shadermodel)                            
\
+  _HLSL_AVAILABILITY(shadermodel, 6.2)
----------------
bob80905 wrote:

Yeah, I could see this name being misinterpreted as not referring to 6_2 as the 
default, I'll change it.
But, half isn't always within the ifdef, and that is the reason we had separate 
macros. So that's why I have to define a new one. Otherwise, we could ask the 
same question as to why we have 2 separate macros already. 

https://github.com/llvm/llvm-project/pull/186218
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to