Combine/ignore the same usage from the same event

* This can happen if the same resource is used in a barrier more than once (e.g.
  multiple subresources)
This commit is contained in:
baldurk
2021-01-06 16:58:43 +00:00
parent d11c92d440
commit 0e60918e4d
+3
View File
@@ -1367,6 +1367,9 @@ void CombineUsageEvents(ICaptureContext &ctx, const rdcarray<EventUsage> &usage,
us = u.usage;
}
if(u.usage == us && u.eventId == end)
continue;
const DrawcallDescription *draw = ctx.GetDrawcall(u.eventId);
bool distinct = false;