mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 01:16:31 +00:00
If SPIR-V compilation fails in glslang, store the error msg in "disasm"
This commit is contained in:
@@ -79,6 +79,8 @@ void WrappedOpenGL::ShaderData::Compile(WrappedOpenGL &gl, ResourceId id)
|
||||
string s = CompileSPIRV(settings, sources, spirvwords);
|
||||
if(!spirvwords.empty())
|
||||
ParseSPIRV(&spirvwords.front(), spirvwords.size(), spirv);
|
||||
else
|
||||
disassembly = s;
|
||||
|
||||
reflection.ID = id;
|
||||
reflection.EntryPoint = "main";
|
||||
|
||||
Reference in New Issue
Block a user