shader: Implement PrimitiveId

This commit is contained in:
ReinUsesLisp 2021-04-16 01:55:06 -03:00 committed by ameerj
parent 183855e396
commit b0f1255c8c
5 changed files with 10 additions and 0 deletions

View file

@ -34,6 +34,9 @@ void GetAttribute(Info& info, IR::Attribute attribute) {
return;
}
switch (attribute) {
case IR::Attribute::PrimitiveId:
info.loads_primitive_id = true;
break;
case IR::Attribute::PositionX:
case IR::Attribute::PositionY:
case IR::Attribute::PositionZ: