diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-20 22:28:09 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:32 +0200 |
commit | 83cef0426b058014ad94dd687a29e7c31a1fbbef (patch) | |
tree | 54d1860cae0a8b1db6341b610d50aea15801ab13 /src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | |
parent | glasm: Declare geometry program headers (diff) | |
download | yuzu-83cef0426b058014ad94dd687a29e7c31a1fbbef.tar yuzu-83cef0426b058014ad94dd687a29e7c31a1fbbef.tar.gz yuzu-83cef0426b058014ad94dd687a29e7c31a1fbbef.tar.bz2 yuzu-83cef0426b058014ad94dd687a29e7c31a1fbbef.tar.lz yuzu-83cef0426b058014ad94dd687a29e7c31a1fbbef.tar.xz yuzu-83cef0426b058014ad94dd687a29e7c31a1fbbef.tar.zst yuzu-83cef0426b058014ad94dd687a29e7c31a1fbbef.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp | 10 |
1 files changed, 5 insertions, 5 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 6484387bc..a81bd209b 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 @@ -64,20 +64,20 @@ void EmitGetAttribute(EmitContext& ctx, IR::Inst& inst, IR::Attribute attr, case IR::Attribute::PositionY: case IR::Attribute::PositionZ: case IR::Attribute::PositionW: - ctx.Add("MOV.F {}.x,{}.position.{};", inst, ctx.stage_name, swizzle); + ctx.Add("MOV.F {}.x,{}.position.{};", inst, ctx.attrib_name, swizzle); break; case IR::Attribute::PointSpriteS: case IR::Attribute::PointSpriteT: - ctx.Add("MOV.F {}.x,{}.pointcoord.{};", inst, ctx.stage_name, swizzle); + ctx.Add("MOV.F {}.x,{}.pointcoord.{};", inst, ctx.attrib_name, swizzle); break; case IR::Attribute::InstanceId: - ctx.Add("MOV.S {}.x,{}.instance;", inst, ctx.stage_name); + ctx.Add("MOV.S {}.x,{}.instance;", inst, ctx.attrib_name); break; case IR::Attribute::VertexId: - ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.stage_name); + ctx.Add("MOV.S {}.x,{}.id;", inst, ctx.attrib_name); break; case IR::Attribute::FrontFace: - ctx.Add("CMP.S {}.x,{}.facing.x,0,-1;", inst, ctx.stage_name); + ctx.Add("CMP.S {}.x,{}.facing.x,0,-1;", inst, ctx.attrib_name); break; default: throw NotImplementedException("Get attribute {}", attr); |