Class GPUTimerQueryVulkan
GPU timer query object for Vulkan backend.
Inheritance
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/Vulkan/GPUTimerQueryVulkan.h
Syntax
public class GPUTimerQueryVulkan : public GPUResourceVulkan
Constructors
GPUTimerQueryVulkan(GPUDeviceVulkan* device)
Initializes a new instance of the GPUTimerQueryVulkan class.
Declaration
public GPUTimerQueryVulkan(GPUDeviceVulkan* device)
Parameters
GPUDeviceVulkan
device
The graphics device. |
Methods
Begin()
Starts the counter.
Declaration
public virtual void Begin() override
Overrides
End()
Stops the counter. Can be called more than once without failing.
Declaration
public virtual void End() override
Overrides
GetResult()
Gets the query result time (in milliseconds) it took to execute GPU commands between Begin/End calls.
Declaration
public virtual float GetResult() override
Returns
float
The time in milliseconds. |
Overrides
HasResult()
Determines whether this query has been completed and has valid result to gather.
Declaration
public virtual bool HasResult() override
Returns
bool
|
Overrides
Interrupt(CmdBufferVulkan* cmdBuffer)
Interrupts an in-progress query, allowing the command buffer to submitted. Interrupted queries must be resumed using Resume().
Declaration
public void Interrupt(CmdBufferVulkan* cmdBuffer)
Parameters
CmdBufferVulkan
cmdBuffer
The GPU commands buffer. |
OnReleaseGPU()
Releases GPU resource data (implementation).
Declaration
protected virtual void OnReleaseGPU() override
Overrides
Resume(CmdBufferVulkan* cmdBuffer)
Resumes an interrupted query, restoring it back to its original in-progress state.
Declaration
public void Resume(CmdBufferVulkan* cmdBuffer)
Parameters
CmdBufferVulkan
cmdBuffer
The GPU commands buffer. |