summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_context.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-05-20 19:21:38 -0300
committerGravatar ameerj2021-07-22 21:51:32 -0400
commit79929be8331fabdb83b5595704241f863a0ae33a (patch)
tree88f532c0759862485592069180b064e22c9b87fe /src/shader_recompiler/backend/glasm/emit_context.cpp
parentglasm: Properly declare attributes on geometry programs (diff)
downloadyuzu-79929be8331fabdb83b5595704241f863a0ae33a.tar.gz
yuzu-79929be8331fabdb83b5595704241f863a0ae33a.tar.xz
yuzu-79929be8331fabdb83b5595704241f863a0ae33a.zip
glasm: Implement geometry shader attribute reads
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_context.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_context.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_context.cpp b/src/shader_recompiler/backend/glasm/emit_context.cpp
index a9bbb680f..d8451b41f 100644
--- a/src/shader_recompiler/backend/glasm/emit_context.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_context.cpp
@@ -74,6 +74,9 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile
74 InterpDecorator(generic.interpolation), index, attr_stage, index, index); 74 InterpDecorator(generic.interpolation), index, attr_stage, index, index);
75 } 75 }
76 } 76 }
77 if (stage == Stage::Geometry && info.loads_position) {
78 Add("ATTRIB vertex_position=vertex.position;");
79 }
77 for (size_t index = 0; index < program.info.stores_frag_color.size(); ++index) { 80 for (size_t index = 0; index < program.info.stores_frag_color.size(); ++index) {
78 if (!program.info.stores_frag_color[index]) { 81 if (!program.info.stores_frag_color[index]) {
79 continue; 82 continue;