handleEntryPointAttributes add EatInstance case

This commit is contained in:
Gabriele Di Bari 2022-05-21 17:00:24 +02:00
parent 86ff4bca1d
commit e314891598

View File

@ -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;