diff options
| author | 2021-05-28 21:24:52 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | 8ba814efb295f0b8494b3679c484c7ceab31c392 (patch) | |
| tree | 7c81176bc12ea7b99309d2748e03c61aa2bf64b8 /src/shader_recompiler/backend/glsl/emit_context.cpp | |
| parent | glsl: Fix integer conversions, implement clamp CC (diff) | |
| download | yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.gz yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.tar.xz yuzu-8ba814efb295f0b8494b3679c484c7ceab31c392.zip | |
glsl: Better Storage access and wip warps
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index 3530e89e5..db62ba73b 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp | |||
| @@ -122,6 +122,10 @@ void EmitContext::SetupExtensions(std::string&) { | |||
| 122 | header += "#extension GL_AMD_gpu_shader_half_float : enable\n"; | 122 | header += "#extension GL_AMD_gpu_shader_half_float : enable\n"; |
| 123 | } | 123 | } |
| 124 | } | 124 | } |
| 125 | if (info.uses_subgroup_invocation_id || info.uses_subgroup_mask || info.uses_subgroup_vote || | ||
| 126 | info.uses_subgroup_shuffles || info.uses_fswzadd) { | ||
| 127 | header += "#extension GL_ARB_shader_ballot : enable\n"; | ||
| 128 | } | ||
| 125 | } | 129 | } |
| 126 | 130 | ||
| 127 | void EmitContext::DefineConstantBuffers(Bindings& bindings) { | 131 | void EmitContext::DefineConstantBuffers(Bindings& bindings) { |