MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / begin

Method begin

Source/Falcor/Core/API/GpuTimer.cpp:73–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void GpuTimer::begin()
74{
75 if (mStatus == Status::Begin)
76 {
77 logWarning(
78 "GpuTimer::begin() was followed by another call to GpuTimer::begin() without a GpuTimer::end() in-between. Ignoring call."
79 );
80 return;
81 }
82
83 if (mStatus == Status::End)
84 {
85 logWarning(
86 "GpuTimer::begin() was followed by a call to GpuTimer::end() without querying the data first. The previous results will be "
87 "discarded."
88 );
89 }
90
91 mpDevice->getRenderContext()->getLowLevelData()->getResourceCommandEncoder()->writeTimestamp(
92 mpDevice->getTimestampQueryHeap()->getGfxQueryPool(), mStart
93 );
94 mStatus = Status::Begin;
95}
96
97void GpuTimer::end()
98{

Callers 15

releasePluginMethod · 0.45
releaseAllPluginsMethod · 0.45
getImportPathsMethod · 0.45
getImportDictsMethod · 0.45
addSearchPathMethod · 0.45
Enum.hFile · 0.45
stringToEnumFunction · 0.45
enumHasValueFunction · 0.45
setSubresourceStateMethod · 0.45
getGPUsMethod · 0.45
setupCurrentChunkMethod · 0.45

Calls 2

logWarningFunction · 0.50

Tested by 2

getImportPathsMethod · 0.36
getImportDictsMethod · 0.36