mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-12-19 19:03:05 +00:00
glasm: Implement PrimitiveId attribute read
This commit is contained in:
parent
394b96a2fe
commit
3da7b98d37
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, Scal
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
switch (attr) {
|
switch (attr) {
|
||||||
|
case IR::Attribute::PrimitiveId:
|
||||||
|
ctx.Add("MOV.S {}.x,primitive.id;", inst);
|
||||||
|
break;
|
||||||
case IR::Attribute::PositionX:
|
case IR::Attribute::PositionX:
|
||||||
case IR::Attribute::PositionY:
|
case IR::Attribute::PositionY:
|
||||||
case IR::Attribute::PositionZ:
|
case IR::Attribute::PositionZ:
|
||||||
|
|
Loading…
Reference in a new issue