Fix missing patch decoration for TessFactor PCF arg (#2249)

Fixes #1553
This commit is contained in:
greg-lunarg
2020-05-27 22:12:42 -06:00
committed by GitHub
parent 41f62a81ab
commit e00d27c6d6
4 changed files with 730 additions and 0 deletions

View File

@@ -9791,6 +9791,8 @@ void HlslParseContext::addPatchConstantInvocation()
} else {
// Use the original declaration type for the linkage
paramType->getQualifier().builtIn = biType;
if (biType == EbvTessLevelInner || biType == EbvTessLevelInner)
paramType->getQualifier().patch = true;
if (notInEntryPoint.count(tInterstageIoData(biType, storage)) == 1)
addToLinkage(*paramType, patchConstantFunction[p].name, nullptr);