diff options
| -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 0b6d853eb..8c5cd286d 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 | |||
| @@ -71,6 +71,9 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, | |||
| 71 | case IR::Attribute::VertexId: | 71 | case IR::Attribute::VertexId: |
| 72 | ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.stage_name); | 72 | ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.stage_name); |
| 73 | break; | 73 | break; |
| 74 | case IR::Attribute::FrontFace: | ||
| 75 | ctx.Add("CMP.S {}.x,{}.facing.x,0,-1;", inst, ctx.stage_name); | ||
| 76 | break; | ||
| 74 | default: | 77 | default: |
| 75 | throw NotImplementedException("Get attribute {}", attr); | 78 | throw NotImplementedException("Get attribute {}", attr); |
| 76 | } | 79 | } |