nw::demo::CommandListSwapper::SetGpuProfilingEndPoint Member Function

Syntax

void SetGpuProfilingEndPoint(
     u32 profilingId
);

Arguments

Name Description
profilingId Specifies the entry number returned by the AddGpuProfilerStartPoint function.

Return Values

None.

Description

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.

See Also

AddGpuProfilingStartPoint
GetGpuProfilingTotalCostTime


CONFIDENTIAL