Helper class to manage duration queries. More...
#include <DurationQueryHelper.hpp>
Public Member Functions | |
void | Begin (IDeviceContext *pCtx) |
Begins a query. | |
bool | End (IDeviceContext *pCtx, double &Duration) |
Ends a query and returns the duration, in seconds, if it is available. | |
Helper class to manage duration queries.
One DurationQueryHelper instance must be used once per frame.
void Diligent::DurationQueryHelper::Begin | ( | IDeviceContext * | pCtx | ) |
Begins a query.
[in] | pCtx | - 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.
[in] | pCtx | - Context to record end query command. |
[out] | Duration | - Variable where duration will be written to. |