Ensure we correctly patch-up resource usage after indirect count draws

This commit is contained in:
baldurk
2020-01-27 20:45:07 +00:00
parent a03499d909
commit ce7f3c0fa4
@@ -621,6 +621,9 @@ void WrappedVulkan::InsertDrawsAndRefreshIDs(BakedCmdBufferInfo &cmdBufInfo)
for(APIEvent &ev : cmdBufNodes[j].draw.events)
ev.eventId -= shiftCount;
for(rdcpair<ResourceId, EventUsage> &use : cmdBufNodes[j].resourceUsage)
use.second.eventId -= shiftCount;
}
cmdBufInfo.eventCount -= shiftCount;