mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-20 21:46:52 +00:00
Display SPIR-V disassembly
This commit is contained in:
@@ -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