nw::demo::CommandListSwapper::AddGpuProfilingStartPoint Member Function

Syntax

s32 AddGpuProfilingStartPoint(
     bool IsInTotal
);

Arguments

Name Description
IsInTotal When true is set for this argument, this GPU profile entry gets included in the calculation made by the GetGpuProfilingTotalCostTime function.

Return Values

Returns the number of the added GPU profile entry.

Description

Adds a command list GPU profile entry and sets the start point.

A GPU profile entry is added to the bound command list and its start point is set as the end time for the last accumulated command list when the function executes for measuring the command list execution time.

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.

If the entry fails to be added, the function returns a negative value.

See Also

SetGpuProfilingEndPoint
GetGpuProfilingTotalCostTime


CONFIDENTIAL