summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-20 21:56:40 -0300
committerGravatar ameerj2021-07-22 21:51:33 -0400
commit3da7b98d376cc0b8ec00de80755d9e90fc90e3a8 (patch)
tree093b8255388eeff1da65094d435830e2d06a6c38 /src/shader_recompiler/backend
parentglasm: Implement clip distance stores (diff)
downloadyuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.tar.gz
yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.tar.xz
yuzu-3da7b98d376cc0b8ec00de80755d9e90fc90e3a8.zip
glasm: Implement PrimitiveId attribute read
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp3
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: