diff options
| author | 2021-06-14 23:33:26 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:38 -0400 | |
| commit | 3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd (patch) | |
| tree | 76ca69181eeb90c2fd2adf8defc68ddc7d8b135e /src/shader_recompiler/backend/glsl/emit_context.cpp | |
| parent | glsl: Cleanup/Address feedback (diff) | |
| download | yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.tar.gz yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.tar.xz yuzu-3b339fbbf65a50ec2ec8baacd175ca7577c3b8bd.zip | |
glsl: Conditionally use fine/coarse derivatives based on device support
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
| -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() { | |||
| 395 | if (info.uses_typeless_image_reads || info.uses_typeless_image_writes) { | 395 | if (info.uses_typeless_image_reads || info.uses_typeless_image_writes) { |
| 396 | header += "#extension GL_EXT_shader_image_load_formatted : enable\n"; | 396 | header += "#extension GL_EXT_shader_image_load_formatted : enable\n"; |
| 397 | } | 397 | } |
| 398 | if (info.uses_derivatives && profile.support_gl_derivative_control) { | ||
| 399 | header += "#extension GL_ARB_derivative_control : enable\n"; | ||
| 400 | } | ||
| 398 | } | 401 | } |
| 399 | 402 | ||
| 400 | void EmitContext::DefineConstantBuffers(Bindings& bindings) { | 403 | void EmitContext::DefineConstantBuffers(Bindings& bindings) { |