|
CeresEngine 0.2.0
A game development framework
|
A helper class that begins a scoped occlusion query. More...
#include <CeresEngine/RenderAPI/GPUQuery.hpp>
Public Member Functions | |
| Scope (GPUCommandBuffer &commandBuffer, GPUOcclusionQuery &query) | |
Creates a new scope and calls begin() on the query. | |
| Scope (const GPUCommandBufferPtr &commandBuffer, GPUOcclusionQuery &query) | |
| Scope (GPUCommandBuffer &commandBuffer, const GPUOcclusionQueryPtr &query) | |
Creates a new scope and calls begin() on the query. | |
| Scope (const GPUCommandBufferPtr &commandBuffer, const GPUOcclusionQueryPtr &query) | |
Creates a new scope and calls begin() on the query. | |
| ~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. | |
| GPUOcclusionQuery * | mQuery = nullptr |
| The occlusion query to be bound within the scope. | |
A helper class that begins a scoped occlusion 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. |
|
inlineexplicit |
|
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. |
|
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. |
|
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 occlusion query to be bound within the scope.