HLSL: Fix issue #646: map SV_DispatchThreadID -> GlobalInvocationID.

This commit is contained in:
John Kessenich
2017-01-02 14:59:19 -07:00
parent aa6d56298d
commit f37f4d23fc
5 changed files with 43 additions and 29 deletions

View File

@@ -3195,7 +3195,7 @@ void HlslParseContext::handleSemantic(TSourceLoc loc, TQualifier& qualifier, con
else if (semanticUpperCase == "SV_GSINSTANCEID")
qualifier.builtIn = EbvInvocationId;
else if (semanticUpperCase == "SV_DISPATCHTHREADID")
qualifier.builtIn = EbvLocalInvocationId;
qualifier.builtIn = EbvGlobalInvocationId;
else if (semanticUpperCase == "SV_GROUPTHREADID")
qualifier.builtIn = EbvLocalInvocationId;
else if (semanticUpperCase == "SV_GROUPID")