Merge pull request #1178 from LoopDawg/primitiveid-hs-input

HLSL: Allow primitive id on hull shader input
This commit is contained in:
John Kessenich
2017-12-08 19:35:17 -07:00
committed by GitHub
4 changed files with 649 additions and 1 deletions

View File

@@ -9000,7 +9000,7 @@ bool HlslParseContext::isInputBuiltIn(const TQualifier& qualifier) const
case EbvVertexIndex:
return language == EShLangVertex;
case EbvPrimitiveId:
return language == EShLangGeometry || language == EShLangFragment;
return language == EShLangGeometry || language == EShLangFragment || language == EShLangTessControl;
case EbvTessLevelInner:
case EbvTessLevelOuter:
return language == EShLangTessEvaluation;