mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-27 21:20:30 +00:00
handleEntryPointAttributes add EatInstance case
This commit is contained in:
parent
86ff4bca1d
commit
e314891598
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user