Class GPUTimerQuery
Represents a GPU query that measures execution time of GPU operations. The query will measure any GPU operations that take place between its Begin() and End() calls.
Inherited Members
GPUTimerQuery
Assembly: FlaxEngine.dll
File: Engine/Graphics/GPUTimerQuery.h
Syntax
public class GPUTimerQuery : public GPUResource
Constructors
~GPUTimerQuery()
Methods
Begin()
Starts the counter.
Declaration
public virtual void Begin() = 0
End()
Stops the counter. Can be called more than once without failing.
Declaration
public virtual void End() = 0
GetResourceType()
Gets the GPU resource type.
Declaration
public virtual GPUResourceType GetResourceType() const final override
Returns
GPUResourceType
|
Overrides
GetResult()
Gets the query result time (in milliseconds) it took to execute GPU commands between Begin/End calls.
Declaration
public virtual float GetResult() = 0
Returns
float
The time in milliseconds. |
HasResult()
Determines whether this query has been completed and has valid result to gather.
Declaration
public virtual bool HasResult() = 0
Returns
bool
|
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const override
Returns
String
|