IGraphicsTimer
Description
- Derived from
- Extended by
-
GraphicsTimer abstract
Represents a timer that can be used to measure the execution time on the GPU.
-
Create a GPU timer object by calling IGraphicsContext.CreateTimer.
-
Call IBeginEnd.Begin while rendering a frame, to mark the begin of the query.
-
Call IBeginEnd.End while rendering a frame, to mark the end of the query.
-
Call Result at arbitrary times and consume the returned query value.
Public / Methods
Result
Returns the value of the timer query that has finished most recently.
The query that has finished most recently is not necessarily the one that has been issued by the last pair of IBeginEnd.Begin and IBeginEnd.End.