|
CeresEngine 0.2.0
A game development framework
|
A helper class that begins a scoped timer query. More...
#include <CeresEngine/RenderAPI/GPUQuery.hpp>
Public Member Functions | |
| Scope (GPUCommandBuffer &commandBuffer, GPUTimerQuery &query, const UInt32 timerIndex=0) | |
Creates a new scope and calls begin() on the query. | |
| Scope (const GPUCommandBufferPtr &commandBuffer, GPUTimerQuery &query, const UInt32 timerIndex=0) | |
Creates a new scope and calls begin() on the query. | |
| Scope (GPUCommandBuffer &commandBuffer, const GPUTimerQueryPtr &query, const UInt32 timerIndex=0) | |
| Scope (const GPUCommandBufferPtr &commandBuffer, const GPUTimerQueryPtr &query, const UInt32 timerIndex=0) | |
| ~Scope () noexcept | |
| Unbound the pipeline from the command buffer. | |
| void | reset () |
| Unbound the pipeline from the command buffer. | |
Private Attributes | |
| GPUCommandBuffer * | mCommandBuffer = nullptr |
| The command buffer to which commands are being recorded on. | |
| GPUTimerQuery * | mQuery = nullptr |
| The timer query to be bound within the scope. | |
| UInt32 | mTimerIndex = 0 |
| The index of the timer to be started. | |
A helper class that begins a scoped timer query.
|
inlineexplicit |
Creates a new scope and calls begin() on the query.
| commandBuffer | The command buffer to bind the pipeline to. |
| query | The query to be bound. |
| timerIndex | The index of the timer query to be started. |
|
inlineexplicit |
Creates a new scope and calls begin() on the query.
| commandBuffer | The command buffer to bind the pipeline to. |
| query | The query to be bound. |
| timerIndex | The index of the timer query to be started. |
|
inlineexplicit |
|
inlineexplicit |
|
inlinenoexcept |
Unbound the pipeline from the command buffer.
|
inline |
Unbound the pipeline from the command buffer.
|
private |
The command buffer to which commands are being recorded on.
|
private |
The timer query to be bound within the scope.
|
private |
The index of the timer to be started.