diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-15 05:33:26 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:38 +0200 |
commit | 3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd (patch) | |
tree | 76ca69181eeb90c2fd2adf8defc68ddc7d8b135e /src/shader_recompiler/backend/glsl/emit_context.cpp | |
parent | glsl: Cleanup/Address feedback (diff) | |
download | yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.tar yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.tar.gz yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.tar.bz2 yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.tar.lz yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.tar.xz yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.tar.zst yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index e18f8257e..0e8fe017d 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp @@ -395,6 +395,9 @@ void EmitContext::SetupExtensions() { if (info.uses_typeless_image_reads || info.uses_typeless_image_writes) { header += "#extension GL_EXT_shader_image_load_formatted : enable\n"; } + if (info.uses_derivatives && profile.support_gl_derivative_control) { + header += "#extension GL_ARB_derivative_control : enable\n"; + } } void EmitContext::DefineConstantBuffers(Bindings& bindings) { |