nw::demo::CommandListSwapper::AddGpuProfilingStartPoint Member Function
s32 AddGpuProfilingStartPoint(
bool IsInTotal
);
| Name | Description | |
|---|---|---|
| IsInTotal | When true is set for this argument, this GPU profile entry gets included in the calculation made by the GetGpuProfilingTotalCostTime function. |
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.
CONFIDENTIAL