mirror of https://github.com/bkaradzic/bgfx
shaderc: Added --disasm flag support for GLSL.
This commit is contained in:
parent
32a9594134
commit
cdf87ab691
|
@ -208,6 +208,13 @@ namespace bgfx
|
|||
uint8_t nul = 0;
|
||||
bx::write(_writer, nul);
|
||||
|
||||
if (_cmdLine.hasArg('\0', "disasm") )
|
||||
{
|
||||
std::string disasmfp = _cmdLine.findOption('o');
|
||||
disasmfp += ".disasm";
|
||||
writeFile(disasmfp.c_str(), optimizedShader, shaderSize);
|
||||
}
|
||||
|
||||
glslopt_cleanup(ctx);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue