mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-31 11:51:04 +00:00
Record barriers under original command list data for state lookups
This commit is contained in:
@@ -186,8 +186,12 @@ bool WrappedID3D12GraphicsCommandList::Serialise_Barrier(SerialiserType &ser, UI
|
||||
for(UINT b = 0; b < pBarrierGroups[i].NumBarriers; b++)
|
||||
{
|
||||
if(pBarrierGroups[i].pTextureBarriers[b].pResource)
|
||||
{
|
||||
m_Cmd->m_BakedCmdListInfo[m_Cmd->m_LastCmdListID].barriers.newBarriers.push_back(
|
||||
pBarrierGroups[i].pTextureBarriers[b]);
|
||||
m_Cmd->m_BakedCmdListInfo[cmd].barriers.newBarriers.push_back(
|
||||
pBarrierGroups[i].pTextureBarriers[b]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -526,6 +526,7 @@ bool WrappedID3D12GraphicsCommandList::Serialise_ResourceBarrier(
|
||||
if(pBarriers[i].Type != D3D12_RESOURCE_BARRIER_TYPE_TRANSITION ||
|
||||
pBarriers[i].Transition.pResource)
|
||||
{
|
||||
m_Cmd->m_BakedCmdListInfo[m_Cmd->m_LastCmdListID].barriers.barriers.push_back(pBarriers[i]);
|
||||
m_Cmd->m_BakedCmdListInfo[cmd].barriers.barriers.push_back(pBarriers[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user