VideoCommon: enable optimizer and remove debug details when converting GLSL to SPIR-V with validation layers turned off
This commit is contained in:
parent
dda1479ecf
commit
a8b5266347
|
@ -132,6 +132,11 @@ CompileShaderToSPV(EShLanguage stage, APIType api_type,
|
||||||
options.disassemble = false;
|
options.disassemble = false;
|
||||||
options.validate = true;
|
options.validate = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
options.disableOptimizer = false;
|
||||||
|
options.stripDebugInfo = true;
|
||||||
|
}
|
||||||
|
|
||||||
glslang::GlslangToSpv(*intermediate, out_code, &logger, &options);
|
glslang::GlslangToSpv(*intermediate, out_code, &logger, &options);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue