[clang] [HLSL] Implement the SV_InstanceID semantic (PR #221091)
Gregory Roth via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 10:56:57 PDT 2026
================
@@ -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
More information about the cfe-commits
mailing list