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());
|
intermediate.setLocalSize(lid, sequence[lid]->getAsConstantUnion()->getConstArray()[0].getIConst());
|
||||||
break;
|
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:
|
case EatMaxVertexCount:
|
||||||
{
|
{
|
||||||
int maxVertexCount;
|
int maxVertexCount;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user