diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-10 06:01:56 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:37 +0200 |
commit | e7c8f8911f38b29c0725b76db75ce6d6d857c5f9 (patch) | |
tree | 434985028b041c36a6e294f834029eb7a1997794 /src/shader_recompiler/backend/glsl/emit_context.cpp | |
parent | glsl: Add gl_PerVertex in for GS (diff) | |
download | yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.tar yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.tar.gz yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.tar.bz2 yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.tar.lz yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.tar.xz yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.tar.zst yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index fdbe2986c..484548467 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp @@ -256,6 +256,12 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile if (runtime_info.force_early_z) { header += "layout(early_fragment_tests)in;"; } + if (info.uses_sample_id) { + header += "in int gl_SampleID;"; + } + if (info.stores_sample_mask) { + header += "out int gl_SampleMask[];"; + } break; case Stage::Compute: stage_name = "cs"; |