nw::demo::CommandListSwapper::GetGpuProfilingCostTime Member Functionf32 GetGpuProfilingCostTime( u32 profilingId );
| Name | Description | |
|---|---|---|
| profilingId | Specifies the entry number returned by AddGpuProfilingStartPoint(). |
Gets the measured execution time of the GPU profile entry.
The execution time in units of milliseconds is obtained for the GPU profile entry that is added to the executed command list. Before this function can get the execution time the WaitDone function must wait for the command list to end. If the specified entry number does not exist, this function returns 0.0f.
If the command list is multiplexed, the GPU profile result is lost when the Swap function executes, otherwise it is lost when the Run function executes.
Note that the target of the obtained GPU profile result is not the bound command list, but rather the command list which the WaitDone function is waiting to end.
CONFIDENTIAL