Recompile shaders when 'Enable API Validation Layers' is toggled
This commit is contained in:
parent
eb81968fe6
commit
b6d2938731
|
@ -38,6 +38,7 @@ ShaderHostConfig ShaderHostConfig::GetCurrent()
|
||||||
bits.backend_shader_framebuffer_fetch = g_ActiveConfig.backend_info.bSupportsFramebufferFetch;
|
bits.backend_shader_framebuffer_fetch = g_ActiveConfig.backend_info.bSupportsFramebufferFetch;
|
||||||
bits.backend_logic_op = g_ActiveConfig.backend_info.bSupportsLogicOp;
|
bits.backend_logic_op = g_ActiveConfig.backend_info.bSupportsLogicOp;
|
||||||
bits.backend_palette_conversion = g_ActiveConfig.backend_info.bSupportsPaletteConversion;
|
bits.backend_palette_conversion = g_ActiveConfig.backend_info.bSupportsPaletteConversion;
|
||||||
|
bits.enable_validation_layer = g_ActiveConfig.bEnableValidationLayer;
|
||||||
return bits;
|
return bits;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -167,6 +167,7 @@ union ShaderHostConfig
|
||||||
BitField<20, 1, bool, u32> backend_shader_framebuffer_fetch;
|
BitField<20, 1, bool, u32> backend_shader_framebuffer_fetch;
|
||||||
BitField<21, 1, bool, u32> backend_logic_op;
|
BitField<21, 1, bool, u32> backend_logic_op;
|
||||||
BitField<22, 1, bool, u32> backend_palette_conversion;
|
BitField<22, 1, bool, u32> backend_palette_conversion;
|
||||||
|
BitField<23, 1, bool, u32> enable_validation_layer;
|
||||||
|
|
||||||
static ShaderHostConfig GetCurrent();
|
static ShaderHostConfig GetCurrent();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue