mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 07:35:45 +00:00
glsl: Conditionally use fine/coarse derivatives based on device support
This commit is contained in:
parent
4e73fdbd0f
commit
bc50a9ef20
4 changed files with 29 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue