mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-12 10:17:55 -05:00
spirv: Implement VertexId and InstanceId, refactor code
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user