mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-30 11:21:01 +00:00
GetLiveID should respect replacements. Closes #2300
* This ensures we use the up to date edited pipeline for e.g. pipeline-based shader disassembly.
This commit is contained in:
@@ -1209,7 +1209,8 @@ rdcstr ReplayProxy::Proxied_DisassembleShader(ParamSerialiser ¶mser, ReturnS
|
||||
|
||||
if(paramser.IsReading() && !paramser.IsErrored() && !m_IsErrored)
|
||||
{
|
||||
refl = m_Remote->GetShader(pipeline, m_Remote->GetLiveID(Shader), EntryPoint);
|
||||
refl =
|
||||
m_Remote->GetShader(m_Remote->GetLiveID(pipeline), m_Remote->GetLiveID(Shader), EntryPoint);
|
||||
ret = m_Remote->DisassembleShader(pipeline, refl, target);
|
||||
}
|
||||
|
||||
|
||||
@@ -1926,6 +1926,10 @@ ResourceId ResourceManager<Configuration>::GetLiveID(ResourceId id)
|
||||
if(id == ResourceId())
|
||||
return id;
|
||||
|
||||
auto it = m_Replacements.find(id);
|
||||
if(it != m_Replacements.end())
|
||||
return it->second;
|
||||
|
||||
RDCASSERT(m_LiveIDs.find(id) != m_LiveIDs.end(), id);
|
||||
return m_LiveIDs[id];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user