Add ability to re-record all cmd buffers (for whole-frame timing)

This commit is contained in:
baldurk
2015-12-30 13:29:23 +01:00
parent 8134642812
commit bb2394183c
13 changed files with 318 additions and 114 deletions
+15
View File
@@ -264,6 +264,21 @@ struct CounterResult
CounterResult(uint32_t EID, uint32_t c, uint32_t data) : eventID(EID), counterID(c) { value.u32 = data; }
CounterResult(uint32_t EID, uint32_t c, uint64_t data) : eventID(EID), counterID(c) { value.u64 = data; }
bool operator <(const CounterResult &o) const
{
if(eventID != o.eventID) return eventID < o.eventID;
if(counterID != o.counterID) return counterID < o.counterID;
// don't compare values, just consider equal
return false;
}
bool operator ==(const CounterResult &o) const
{
// don't compare values, just consider equal by EID/counterID
return eventID == o.eventID && counterID == o.counterID;
}
uint32_t eventID;
uint32_t counterID;
union