CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPUOcclusionQuery::Scope Class Reference

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

GPUCommandBuffermCommandBuffer = nullptr
 The command buffer to which commands are being recorded on.
 
GPUOcclusionQuerymQuery = nullptr
 The occlusion query to be bound within the scope.
 

Detailed Description

A helper class that begins a scoped occlusion query.

Constructor & Destructor Documentation

◆ Scope() [1/4]

CeresEngine::GPUOcclusionQuery::Scope::Scope ( GPUCommandBuffer commandBuffer,
GPUOcclusionQuery query 
)
inlineexplicit

Creates a new scope and calls begin() on the query.

Parameters
commandBufferThe command buffer to bind the pipeline to.
queryThe query to be bound.

◆ Scope() [2/4]

CeresEngine::GPUOcclusionQuery::Scope::Scope ( const GPUCommandBufferPtr commandBuffer,
GPUOcclusionQuery query 
)
inlineexplicit

◆ Scope() [3/4]

CeresEngine::GPUOcclusionQuery::Scope::Scope ( GPUCommandBuffer commandBuffer,
const GPUOcclusionQueryPtr query 
)
inlineexplicit

Creates a new scope and calls begin() on the query.

Parameters
commandBufferThe command buffer to bind the pipeline to.
queryThe query to be bound.

◆ Scope() [4/4]

CeresEngine::GPUOcclusionQuery::Scope::Scope ( const GPUCommandBufferPtr commandBuffer,
const GPUOcclusionQueryPtr query 
)
inlineexplicit

Creates a new scope and calls begin() on the query.

Parameters
commandBufferThe command buffer to bind the pipeline to.
queryThe query to be bound.

◆ ~Scope()

CeresEngine::GPUOcclusionQuery::Scope::~Scope ( )
inlinenoexcept

Unbound the pipeline from the command buffer.

Member Function Documentation

◆ reset()

void CeresEngine::GPUOcclusionQuery::Scope::reset ( )
inline

Unbound the pipeline from the command buffer.

Member Data Documentation

◆ mCommandBuffer

GPUCommandBuffer* CeresEngine::GPUOcclusionQuery::Scope::mCommandBuffer = nullptr
private

The command buffer to which commands are being recorded on.

◆ mQuery

GPUOcclusionQuery* CeresEngine::GPUOcclusionQuery::Scope::mQuery = nullptr
private

The occlusion query to be bound within the scope.


The documentation for this class was generated from the following file: