DurationQueryHelper class
Helper class to manage duration queries. One DurationQueryHelper instance must be used once per frame.
Contents
- Reference
Public functions
- void Begin(IDeviceContext* pCtx)
- Begins a query.
- auto End(IDeviceContext* pCtx, double& Duration) -> bool
- Ends a query and returns the duration, in seconds, if it is available.
Function documentation
void Diligent:: DurationQueryHelper:: Begin(IDeviceContext* pCtx)
Begins a query.
| Parameters | |
|---|---|
| pCtx in | - Context to record begin query command |
bool Diligent:: DurationQueryHelper:: End(IDeviceContext* pCtx,
double& Duration)
Ends a query and returns the duration, in seconds, if it is available.
| Parameters | |
|---|---|
| pCtx in | - Context to record end query command. |
| Duration out | - Variable where duration will be written to. |
| Returns | true if the data from the oldest query is available, and false otherwise. |