mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-08 23:13:12 +00:00
marker/pass boundary calls should not have drawcall IDs.
This commit is contained in:
2 files changed
+18
-8
No files matched your search
@@ -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