SpiecsEngine
 
Loading...
Searching...
No Matches

◆ EndFrame()

void Spices::NsightPerfGPUProfilerHUD::EndFrame ( VulkanState & state)

End Sampler Frame.

Last time state.

false -> true => BeginSession. true -> false => EndSession.

Reset and Create.

Last time state.

false -> true => BeginSession. true -> false => EndSession.

Reset and Create.

Definition at line 206 of file NsightPerfGPUProfilerHUD.cpp.

207 {
209
210 if (m_IsInSession)
211 {
212 m_Sampler.OnFrameEnd();
213 }
214
218 static bool lastInSession = false;
219
224 if (!lastInSession && m_IsInSession)
225 {
226 Create(state);
227 }
228 if (lastInSession && !m_IsInSession)
229 {
230 Reset();
231 }
232 lastInSession = m_IsInSession;
233
238 {
239 Reset();
240 Create(state);
241 }
242 }
#define SPICES_PROFILE_ZONE
nv::perf::sampler::PeriodicSamplerTimeHistoryVulkan m_Sampler
Sampler.
void Create(VulkanState &state)
Create this.
bool m_IsReachBufferBound
True if Decode and Consume failed.

References Create(), m_IsInSession, m_IsReachBufferBound, and Reset().