diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-21 01:36:04 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:32 +0200 |
commit | d5db96386d08652a8fd90757d9933835c06a84d6 (patch) | |
tree | 5ec65d0e1fb181d1a9e6e05be5c56869bbae9f00 /src/shader_recompiler/backend/glasm/emit_context.cpp | |
parent | glasm: Optimize EmitVertex into EMIT (diff) | |
download | yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.gz yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.bz2 yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.lz yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.xz yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.tar.zst yuzu-d5db96386d08652a8fd90757d9933835c06a84d6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glasm/emit_context.cpp | 3 |
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 d8451b41f..7b25fa042 100644 --- a/src/shader_recompiler/backend/glasm/emit_context.cpp +++ b/src/shader_recompiler/backend/glasm/emit_context.cpp @@ -77,6 +77,9 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile if (stage == Stage::Geometry && info.loads_position) { Add("ATTRIB vertex_position=vertex.position;"); } + if (info.uses_invocation_id) { + Add("ATTRIB primitive_invocation=primitive.invocation;"); + } for (size_t index = 0; index < program.info.stores_frag_color.size(); ++index) { if (!program.info.stores_frag_color[index]) { continue; |