| 15 | #include <implot.h> |
| 16 | |
| 17 | void AveragingTimerQuery::beginQuery(nvrhi::ICommandList* commandList) |
| 18 | { |
| 19 | nvrhi::TimerQueryHandle query; |
| 20 | if (m_idleQueries.empty()) |
| 21 | { |
| 22 | query = m_device->createTimerQuery(); |
| 23 | } |
| 24 | else |
| 25 | { |
| 26 | query = m_idleQueries.front(); |
| 27 | m_idleQueries.pop(); |
| 28 | } |
| 29 | |
| 30 | commandList->beginTimerQuery(query); |
| 31 | m_openQuery = query; |
| 32 | } |
| 33 | |
| 34 | void AveragingTimerQuery::endQuery(nvrhi::ICommandList* commandList) |
| 35 | { |
no outgoing calls
no test coverage detected