nw::demo::CommandListSwapper::SetGpuProfilingEndPoint Member Function
void SetGpuProfilingEndPoint(
u32 profilingId
);
| Name | Description | |
|---|---|---|
| profilingId | Specifies the entry number returned by the AddGpuProfilerStartPoint function. |
Sets the end point for the GPU profile entry.
When this function executes, the end point of the specified GPU profile entry is set as the end time for the last accumulated command list. To obtain the measured execution time, use the GetGpuProfilingCostTime function or the GetGpuProfilingTotalCostTime function.
This function in not delimited in the 3D command buffer, so call the nngxSplitCmdlist function as needed.
You cannot conduct GPU profiling from multiple CommandListSwapper instances.
CONFIDENTIAL