diff options
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp index b64025420..116b42361 100644 --- a/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp +++ b/src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | |||
| @@ -70,6 +70,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, Scal | |||
| 70 | return; | 70 | return; |
| 71 | } | 71 | } |
| 72 | switch (attr) { | 72 | switch (attr) { |
| 73 | case IR::Attribute::PrimitiveId: | ||
| 74 | ctx.Add("MOV.S {}.x,primitive.id;", inst); | ||
| 75 | break; | ||
| 73 | case IR::Attribute::PositionX: | 76 | case IR::Attribute::PositionX: |
| 74 | case IR::Attribute::PositionY: | 77 | case IR::Attribute::PositionY: |
| 75 | case IR::Attribute::PositionZ: | 78 | case IR::Attribute::PositionZ: |