SpiecsEngine
 
Loading...
Searching...
No Matches
NsightPerfHelpers.h
Go to the documentation of this file.
1/**
2* @file NsightPerfHelpers.h
3* @brief The NsightPerfHelpers Class Definitions.
4* @author Spices
5*/
6
7#pragma once
8#include "Core/Core.h"
9
10namespace Spices {
11
12#define NSPERF_CHECK(val)
13 {
14 if (val) {}
15 else
16 {
17 std::stringstream ss;
18 ss << "Assert Failed \n At File: " << __FILE__ << " \n At Line: " << __LINE__ << "\n ";
19 SPICES_CORE_WARN(ss.str());
20 }
21 }
22}
#define NSPERF_CHECK(val)
#define SPICES_PROFILE_ZONE
std::vector< NVPW_MetricEvalRequest > metricEvalRequests
Metrics requests.
static NsightPerfGPUProfilerContinuous & Get()
Get this Single Instance.
static void CreateInstance(VulkanState &state)
Create this Single Instance.
NsightPerfGPUProfilerContinuous(VulkanState &state)
Constructor Function.
virtual ~NsightPerfGPUProfilerContinuous()=default
Destructor Function.
void Create(VulkanState &state)
Begin this Session.
nv::perf::MetricsEvaluator metricsEvaluator
MetricsEvaluator.
bool m_EnableCaptureNextFrame
True if want capture next frame.
nv::perf::sampler::RingBufferCounterData counterData
This is used to store the counter values collected during profiling.
nv::perf::sampler::GpuPeriodicSampler sampler
the periodic sampler.
static std::shared_ptr< NsightPerfGPUProfilerContinuous > m_NsightPerfGPUProfilerContinuous
This Single Instance.
void BeginFrame(VulkanState &state)
Begin a frame.
Wrapper of Nvidia Nsight Performance Metrics.
const char * Metrics[]
The following metrics are for demonstration purposes only. For a more comprehensive set of single-pas...
This struct contains all Vulkan object in used global.
Definition VulkanUtils.h:74