shader: Implement PrimitiveId
This commit is contained in:
parent
38908d0f7e
commit
10c96c7484
5 changed files with 10 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue