diff options
| author | 2021-05-19 02:25:53 -0300 | |
|---|---|---|
| committer | 2021-07-22 21:51:32 -0400 | |
| commit | 9415c435fc447f2cd5a9e5d92401f08931ac1261 (patch) | |
| tree | 2bd6ccb089d3629ec54bbf6413f042661def111d /src/shader_recompiler/backend | |
| parent | glasm: Implement ImageQueryLod (diff) | |
| download | yuzu-9415c435fc447f2cd5a9e5d92401f08931ac1261.tar.gz yuzu-9415c435fc447f2cd5a9e5d92401f08931ac1261.tar.xz yuzu-9415c435fc447f2cd5a9e5d92401f08931ac1261.zip | |
glasm: Implement gl_PointCoord
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 4 |
1 files changed, 4 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 8c5cd286d..7bbb3e1af 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 | |||
| @@ -65,6 +65,10 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, | |||
| 65 | case IR::Attribute::PositionW: | 65 | case IR::Attribute::PositionW: |
| 66 | ctx.Add("MOV.F {}.x,{}.position.{};", inst, ctx.stage_name, swizzle); | 66 | ctx.Add("MOV.F {}.x,{}.position.{};", inst, ctx.stage_name, swizzle); |
| 67 | break; | 67 | break; |
| 68 | case IR::Attribute::PointSpriteS: | ||
| 69 | case IR::Attribute::PointSpriteT: | ||
| 70 | ctx.Add("MOV.F {}.x,{}.pointcoord.{};", inst, ctx.stage_name, swizzle); | ||
| 71 | break; | ||
| 68 | case IR::Attribute::InstanceId: | 72 | case IR::Attribute::InstanceId: |
| 69 | ctx.Add("MOV.S {}.x,{}.instance;", inst, ctx.stage_name); | 73 | ctx.Add("MOV.S {}.x,{}.instance;", inst, ctx.stage_name); |
| 70 | break; | 74 | break; |