================
@@ -1111,6 +1114,12 @@ void SemaHLSL::checkSemanticAnnotation(
     return;
   }
 
+  if (SemanticName == "SV_INSTANCEID") {
+    diagnoseSemanticStageMismatch(SemanticAttr, ST, SC.CurrentIOType,
+                                  {{llvm::Triple::Vertex, IOType::In}});
----------------
pow2clk wrote:

Disregard. While DXC allows this usage in PS, it's really just treating it like 
a user-defined semantic

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

Reply via email to