mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 05:35:48 +00:00
marker/pass boundary calls should not have drawcall IDs.
This commit is contained in:
@@ -1529,10 +1529,15 @@ void D3D12CommandData::AddDrawcall(const DrawcallDescription &d, bool hasEvents,
|
||||
m_BakedCmdListInfo[m_LastCmdListID].state.GetDSVID());
|
||||
}
|
||||
|
||||
if(m_LastCmdListID != ResourceId())
|
||||
m_BakedCmdListInfo[m_LastCmdListID].drawCount++;
|
||||
else
|
||||
m_RootDrawcallID++;
|
||||
// markers don't increment drawcall ID
|
||||
DrawFlags MarkerMask = DrawFlags::SetMarker | DrawFlags::PushMarker | DrawFlags::PassBoundary;
|
||||
if(!(draw.flags & MarkerMask))
|
||||
{
|
||||
if(m_LastCmdListID != ResourceId())
|
||||
m_BakedCmdListInfo[m_LastCmdListID].drawCount++;
|
||||
else
|
||||
m_RootDrawcallID++;
|
||||
}
|
||||
|
||||
if(hasEvents)
|
||||
{
|
||||
|
||||
@@ -3338,10 +3338,15 @@ void WrappedVulkan::AddDrawcall(const DrawcallDescription &d, bool hasEvents)
|
||||
}
|
||||
}
|
||||
|
||||
if(m_LastCmdBufferID != ResourceId())
|
||||
m_BakedCmdBufferInfo[m_LastCmdBufferID].drawCount++;
|
||||
else
|
||||
m_RootDrawcallID++;
|
||||
// markers don't increment drawcall ID
|
||||
DrawFlags MarkerMask = DrawFlags::SetMarker | DrawFlags::PushMarker | DrawFlags::PassBoundary;
|
||||
if(!(draw.flags & MarkerMask))
|
||||
{
|
||||
if(m_LastCmdBufferID != ResourceId())
|
||||
m_BakedCmdBufferInfo[m_LastCmdBufferID].drawCount++;
|
||||
else
|
||||
m_RootDrawcallID++;
|
||||
}
|
||||
|
||||
if(hasEvents)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user