VideoCommon: enable optimizer and remove debug details when converting GLSL to SPIR-V with validation layers turned off

This commit is contained in:
iwubcode 2022-05-30 20:54:42 -05:00
parent dda1479ecf
commit a8b5266347
1 changed files with 5 additions and 0 deletions

View File

@ -132,6 +132,11 @@ CompileShaderToSPV(EShLanguage stage, APIType api_type,
options.disassemble = false;
options.validate = true;
}
else
{
options.disableOptimizer = false;
options.stripDebugInfo = true;
}
glslang::GlslangToSpv(*intermediate, out_code, &logger, &options);