Skip to content

Commit

Permalink
handleEntryPointAttributes add EatInstance case
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele91 committed May 21, 2022
1 parent 86ff4bc commit e314891
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions glslang/HLSL/hlslParseHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1754,6 +1754,18 @@ void HlslParseContext::handleEntryPointAttributes(const TSourceLoc& loc, const T
intermediate.setLocalSize(lid, sequence[lid]->getAsConstantUnion()->getConstArray()[0].getIConst());
break;
}
case EatInstance:
{
int invocations;

if (!it->getInt(invocations)) {
error(loc, "invalid instance", "", "");
} else {
if (!intermediate.setInvocations(invocations))
error(loc, "cannot change previously set instance attribute", "", "");
}
break;
}
case EatMaxVertexCount:
{
int maxVertexCount;
Expand Down

0 comments on commit e314891

Please sign in to comment.