Castor3D 0.12.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor3d::StencilPass Class Reference

#include <StencilPass.hpp>

Public Member Functions

 StencilPass (Engine const &engine, castor::String const &prefix, crg::ImageViewId depthView, MatrixUbo &matrixUbo, UniformBufferT< ModelBufferConfiguration > const &modelUbo)
 Constructor. More...
 
void initialise (RenderDevice const &device, ashes::PipelineVertexInputStateCreateInfo const &vertexLayout, ashes::VertexBufferBase &vbo)
 Initialises the program and its pipeline. More...
 
void cleanup ()
 Cleans up the program and its pipeline. More...
 
ashes::Semaphore const & render (QueueData const &queueData, ashes::Semaphore const &toWait)
 Renders the stencil pass. More...
 
ashes::Semaphore const & getSemaphore () const
 

Constructor & Destructor Documentation

◆ StencilPass()

castor3d::StencilPass::StencilPass ( Engine const &  engine,
castor::String const &  prefix,
crg::ImageViewId  depthView,
MatrixUbo matrixUbo,
UniformBufferT< ModelBufferConfiguration > const &  modelUbo 
)

Constructor.

Parameters
[in]engineThe engine.
[in]prefixThe pass name's prefix.
[in]depthViewThe depth buffer view.
[in]matrixUboThe matrix UBO.
[in]modelUboThe model matrix UBO.

Member Function Documentation

◆ cleanup()

void castor3d::StencilPass::cleanup ( )

Cleans up the program and its pipeline.

◆ getSemaphore()

ashes::Semaphore const & castor3d::StencilPass::getSemaphore ( ) const
inline

name Getters.

◆ initialise()

void castor3d::StencilPass::initialise ( RenderDevice const &  device,
ashes::PipelineVertexInputStateCreateInfo const &  vertexLayout,
ashes::VertexBufferBase &  vbo 
)

Initialises the program and its pipeline.

Parameters
[in]deviceThe GPU device.
[in]vertexLayoutThe vertex buffer layout.
[in]vboThe vertex buffer containing the object to render.

◆ render()

ashes::Semaphore const & castor3d::StencilPass::render ( QueueData const &  queueData,
ashes::Semaphore const &  toWait 
)

Renders the stencil pass.

Parameters
[in]queueDataThe queue receiving the GPU commands.
[in]toWaitThe semaphore to wait.
Returns
The semaphores signaled by this render.

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