MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXNTC / beginQuery

Method beginQuery

samples/renderer/Profiler.cpp:17–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include <implot.h>
16
17void 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
34void AveragingTimerQuery::endQuery(nvrhi::ICommandList* commandList)
35{

Callers 2

RenderSceneMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected