spirv: Implement VertexId and InstanceId, refactor code
This commit is contained in:
parent
8fe0b2388c
commit
5cd8970e73
10 changed files with 244 additions and 144 deletions
|
@ -38,6 +38,12 @@ void GetAttribute(Info& info, IR::Attribute attribute) {
|
|||
case IR::Attribute::PositionW:
|
||||
info.loads_position = true;
|
||||
break;
|
||||
case IR::Attribute::InstanceId:
|
||||
info.loads_instance_id = true;
|
||||
break;
|
||||
case IR::Attribute::VertexId:
|
||||
info.loads_vertex_id = true;
|
||||
break;
|
||||
default:
|
||||
throw NotImplementedException("Get attribute {}", attribute);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue