Helper class to manage scoped queries. More...
#include <ScopedQueryHelper.hpp>
Public Member Functions | |
void | Begin (IDeviceContext *pCtx) |
Begins a query. | |
bool | End (IDeviceContext *pCtx, void *pData, Uint32 DataSize) |
Ends a query and returns the query data, if it is available. | |
Helper class to manage scoped queries.
One scoped query instance must be used once per frame.
void Diligent::ScopedQueryHelper::Begin | ( | IDeviceContext * | pCtx | ) |
Begins a query.
[in] | pCtx | - Context to record begin query command |
bool Diligent::ScopedQueryHelper::End | ( | IDeviceContext * | pCtx, |
void * | pData, | ||
Uint32 | DataSize ) |
Ends a query and returns the query data, if it is available.
[in] | pCtx | - Context to record end query command. |
[out] | pData | - Pointer to the buffer that will receive query data. |
[in] | DataSize | - Buffer data size. |