mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-06 20:31:35 +00:00
Display SPIR-V disassembly
This commit is contained in:
1 parent
a021284d25
commit
59527af130
1 file changed
+9
@@ -1307,6 +1307,15 @@ ShaderReflection *VulkanReplay::GetShader(ResourceId id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// disassemble lazily on demand
|
||||
if(it->second.refl.Disassembly.count == 0)
|
||||
{
|
||||
if(m_pDriver->m_ShaderModuleInfo[it->second.module].spirv.m_Disassembly.empty())
|
||||
m_pDriver->m_ShaderModuleInfo[it->second.module].spirv.Disassemble();
|
||||
|
||||
it->second.refl.Disassembly = m_pDriver->m_ShaderModuleInfo[it->second.module].spirv.m_Disassembly;
|
||||
}
|
||||
|
||||
return &it->second.refl;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user