diff options
| author | 2021-06-10 00:01:56 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:37 -0400 | |
| 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.gz yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.tar.xz yuzu-e7c8f8911f38b29c0725b76db75ce6d6d857c5f9.zip | |
glsl: Implement SampleId and SetSampleMask
plus some minor refactoring of implementations
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 | |||
| 256 | if (runtime_info.force_early_z) { | 256 | if (runtime_info.force_early_z) { |
| 257 | header += "layout(early_fragment_tests)in;"; | 257 | header += "layout(early_fragment_tests)in;"; |
| 258 | } | 258 | } |
| 259 | if (info.uses_sample_id) { | ||
| 260 | header += "in int gl_SampleID;"; | ||
| 261 | } | ||
| 262 | if (info.stores_sample_mask) { | ||
| 263 | header += "out int gl_SampleMask[];"; | ||
| 264 | } | ||
| 259 | break; | 265 | break; |
| 260 | case Stage::Compute: | 266 | case Stage::Compute: |
| 261 | stage_name = "cs"; | 267 | stage_name = "cs"; |