diff options
| author | 2021-06-04 00:46:46 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:37 -0400 | |
| commit | 747b8556a4611791c1b0afbb500c77de57adfc54 (patch) | |
| tree | 45ef1221c2801edbd04b26dfa73a135d804b6ba3 /src/shader_recompiler/backend/glsl/emit_context.cpp | |
| parent | emit_glsl_image: Use immediate offsets when possible (diff) | |
| download | yuzu-747b8556a4611791c1b0afbb500c77de57adfc54.tar.gz yuzu-747b8556a4611791c1b0afbb500c77de57adfc54.tar.xz yuzu-747b8556a4611791c1b0afbb500c77de57adfc54.zip | |
glsl: Use textureGrad fallback when EXT_texture_shadow_lod is unsupported
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, 3 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index ecc7335ba..76cf0bdf0 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp | |||
| @@ -282,8 +282,10 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile | |||
| 282 | void EmitContext::SetupExtensions(std::string&) { | 282 | void EmitContext::SetupExtensions(std::string&) { |
| 283 | // TODO: track this usage | 283 | // TODO: track this usage |
| 284 | header += "#extension GL_ARB_sparse_texture2 : enable\n" | 284 | header += "#extension GL_ARB_sparse_texture2 : enable\n" |
| 285 | "#extension GL_EXT_texture_shadow_lod : enable\n" | ||
| 286 | "#extension GL_EXT_shader_image_load_formatted : enable\n"; | 285 | "#extension GL_EXT_shader_image_load_formatted : enable\n"; |
| 286 | if (profile.support_gl_texture_shadow_lod) { | ||
| 287 | header += "#extension GL_EXT_texture_shadow_lod : enable\n"; | ||
| 288 | } | ||
| 287 | if (info.uses_int64) { | 289 | if (info.uses_int64) { |
| 288 | header += "#extension GL_ARB_gpu_shader_int64 : enable\n"; | 290 | header += "#extension GL_ARB_gpu_shader_int64 : enable\n"; |
| 289 | } | 291 | } |