Recompile shaders when 'Enable API Validation Layers' is toggled

This commit is contained in:
Pokechu22 2021-07-28 21:18:18 -07:00
parent eb81968fe6
commit b6d2938731
2 changed files with 2 additions and 0 deletions

View File

@ -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;
} }

View File

@ -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();
}; };