mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add usage from trailing events in command buffers on D3D12. Closes #2589
This commit is contained in:
@@ -582,6 +582,7 @@ bool WrappedID3D12CommandQueue::Serialise_ExecuteCommandLists(SerialiserType &se
|
||||
// only primary command lists can be submitted
|
||||
m_Cmd.m_Partial[D3D12CommandData::Primary].cmdListExecs[cmd].push_back(m_Cmd.m_RootEventID);
|
||||
|
||||
// pull in any remaining events on the command buffer that weren't added to an action
|
||||
for(size_t e = 0; e < cmdListInfo.curEvents.size(); e++)
|
||||
{
|
||||
APIEvent apievent = cmdListInfo.curEvents[e];
|
||||
@@ -595,6 +596,13 @@ bool WrappedID3D12CommandQueue::Serialise_ExecuteCommandLists(SerialiserType &se
|
||||
m_Cmd.m_RootEventID += cmdListInfo.eventCount;
|
||||
m_Cmd.m_RootActionID += cmdListInfo.actionCount;
|
||||
|
||||
for(auto it = cmdListInfo.resourceUsage.begin(); it != cmdListInfo.resourceUsage.end(); ++it)
|
||||
{
|
||||
EventUsage u = it->second;
|
||||
u.eventId += m_Cmd.m_RootEventID - cmdListInfo.curEvents.count();
|
||||
m_Cmd.m_ResourceUses[it->first].push_back(u);
|
||||
}
|
||||
|
||||
{
|
||||
action.customName =
|
||||
StringFormat::Fmt("=> %s[%u]: Close(%s)", basename.c_str(), c, ToStr(cmd).c_str());
|
||||
|
||||
Reference in New Issue
Block a user