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

A helper class that begins a scoped graphics pipeline recording. More...

#include <CeresEngine/RenderAPI/GPUGraphicsPipeline.hpp>

Public Member Functions

 Scope (GPUCommandBuffer &commandBuffer, GPUGraphicsPipeline &graphicsPipeline)
 Creates a new scope and calls begin() on the pipeline.
 
 Scope (const GPUCommandBufferPtr &commandBuffer, GPUGraphicsPipeline &graphicsPipeline)
 Creates a new scope and calls begin() on the pipeline.
 
 Scope (GPUCommandBuffer &commandBuffer, const GPUGraphicsPipelinePtr &graphicsPipeline)
 Creates a new scope and calls begin() on the pipeline.
 
 Scope (const GPUCommandBufferPtr &commandBuffer, const GPUGraphicsPipelinePtr &graphicsPipeline)
 Creates a new scope and calls begin() on the pipeline.
 
 ~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.
 
GPUGraphicsPipelinemGraphicsPipeline = nullptr
 The graphics pipeline to be bound within the scope.
 

Detailed Description

A helper class that begins a scoped graphics pipeline recording.

Constructor & Destructor Documentation

◆ Scope() [1/4]

CeresEngine::GPUGraphicsPipeline::Scope::Scope ( GPUCommandBuffer commandBuffer,
GPUGraphicsPipeline graphicsPipeline 
)
inlineexplicit

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

Parameters
commandBufferThe command line to bind the pipeline to.
graphicsPipelineThe pipeline to be bound.

◆ Scope() [2/4]

CeresEngine::GPUGraphicsPipeline::Scope::Scope ( const GPUCommandBufferPtr commandBuffer,
GPUGraphicsPipeline graphicsPipeline 
)
inlineexplicit

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

Parameters
commandBufferThe command line to bind the pipeline to.
graphicsPipelineThe pipeline to be bound.

◆ Scope() [3/4]

CeresEngine::GPUGraphicsPipeline::Scope::Scope ( GPUCommandBuffer commandBuffer,
const GPUGraphicsPipelinePtr graphicsPipeline 
)
inlineexplicit

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

Parameters
commandBufferThe command line to bind the pipeline to.
graphicsPipelineThe pipeline to be bound.

◆ Scope() [4/4]

CeresEngine::GPUGraphicsPipeline::Scope::Scope ( const GPUCommandBufferPtr commandBuffer,
const GPUGraphicsPipelinePtr graphicsPipeline 
)
inlineexplicit

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

Parameters
commandBufferThe command line to bind the pipeline to.
graphicsPipelineThe pipeline to be bound.

◆ ~Scope()

CeresEngine::GPUGraphicsPipeline::Scope::~Scope ( )
inlinenoexcept

Unbound the pipeline from the command buffer.

Member Function Documentation

◆ reset()

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

Unbound the pipeline from the command buffer.

Member Data Documentation

◆ mCommandBuffer

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

The command buffer to which commands are being recorded on.

◆ mGraphicsPipeline

GPUGraphicsPipeline* CeresEngine::GPUGraphicsPipeline::Scope::mGraphicsPipeline = nullptr
private

The graphics pipeline to be bound within the scope.


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