mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Fix event counting leading to mismatches in vulkan captures
This commit is contained in:
@@ -333,7 +333,6 @@ bool WrappedVulkan::Serialise_vkQueueSubmit(SerialiserType &ser, VkQueue queue,
|
||||
for(APIEvent &apievent : cmdBufInfo.curEvents)
|
||||
{
|
||||
apievent.eventId = m_RootEventID - cmdBufInfo.curEvents.count() + i;
|
||||
cmdBufInfo.eventCount++;
|
||||
|
||||
m_RootEvents.push_back(apievent);
|
||||
m_Events.resize(apievent.eventId + 1);
|
||||
@@ -1658,16 +1657,11 @@ bool WrappedVulkan::Serialise_vkQueueBeginDebugUtilsLabelEXT(SerialiserType &ser
|
||||
draw.markerColor.w = RDCCLAMP(Label.color[3], 0.0f, 1.0f);
|
||||
|
||||
AddEvent();
|
||||
m_RootEventID++;
|
||||
AddDrawcall(draw, false);
|
||||
|
||||
// now push the drawcall stack
|
||||
GetDrawcallStack().push_back(&GetDrawcallStack().back()->children.back());
|
||||
}
|
||||
else
|
||||
{
|
||||
m_RootEventID++;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user