SpiecsEngine
 
Loading...
Searching...
No Matches

◆ EndFrame()

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

End a Frame. The vkQueueWaitIdle() call in the code sequence above is a workaround for a driver/OS issue.

Parameters
[in]stateVulkanState.

Wait for all device task over.

Note
take frmame counts: 98 * SetNumNestingLevels().
Todo
slate infobar.

Wait for all device task over.

Note
take frmame counts: 98 * SetNumNestingLevels().
Todo
slate infobar.

Definition at line 73 of file NsightPerfGPUProfilerReportGenerator.cpp.

74 {
76
77 NSPERF_CHECK(m_NvPerf.OnFrameEnd())
78
79 if (m_NvPerf.IsCollectingReport())
80 {
86 VK_CHECK(vkDeviceWaitIdle(state.m_Device))
87 SPICES_CORE_INFO("Nsight Perf: Report Generator is sampling.");
88 }
89 else if (m_NvPerf.GetInitStatus() != nv::perf::profiler::ReportGeneratorInitStatus::Succeeded)
90 {
91 SPICES_CORE_ERROR("Nsight Perf: Report Generator UnKnown failed.");
92 }
93 }
#define NSPERF_CHECK(val)
#define SPICES_PROFILE_ZONE
#define VK_CHECK(expr)
Vulkan Check macro. Verify Vulkan API Effectiveness.
Definition VulkanUtils.h:68
nv::perf::profiler::ReportGeneratorVulkan m_NvPerf
Nvidia Nsight Performance ReportGenerator.