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

#include <Voxelizer.hpp>

Public Member Functions

C3D_API Voxelizer (crg::ResourceHandler &handler, RenderDevice const &device, ProgressBar *progress, castor::String const &prefix, Scene &scene, Camera &camera, MatrixUbo &matrixUbo, VoxelizerUbo &voxelizerUbo, VoxelSceneData const &voxelConfig)
 Constructor. More...
 
C3D_API ~Voxelizer ()
 
C3D_API void update (CpuUpdater &updater)
 Updates the render pass, CPU wise. More...
 
C3D_API void update (GpuUpdater &updater)
 Updates the render pass, GPU wise. More...
 
C3D_API void accept (RenderTechniqueVisitor &visitor)
 Visitor acceptance function. More...
 
C3D_API crg::SemaphoreWaitArray render (crg::SemaphoreWaitArray const &toWait, ashes::Queue const &queue)
 Renders the voxels. More...
 
Texture const & getFirstBounce () const
 
Texture const & getSecondaryBounce () const
 
crg::FrameGraph const & getGraph () const
 
static uint32_t countInitialisationSteps ()
 

Constructor & Destructor Documentation

◆ Voxelizer()

C3D_API castor3d::Voxelizer::Voxelizer ( crg::ResourceHandler &  handler,
RenderDevice const &  device,
ProgressBar progress,
castor::String const &  prefix,
Scene scene,
Camera camera,
MatrixUbo matrixUbo,
VoxelizerUbo voxelizerUbo,
VoxelSceneData const &  voxelConfig 
)

Constructor.

Parameters
[in]handlerThe render graph resources handler.
[in]deviceThe GPU device.
[in]progressThe optional progress bar.
[in]prefixThe pass name prefix.
[in]sceneThe rendered scene.
[in]cameraThe camera viewing the scene.
[in]matrixUboThe scene matrices UBO.
[in]voxelizerUboThe voxelizer configuration UBO.
[in]voxelConfigThe voxelizer configuration.

◆ ~Voxelizer()

C3D_API castor3d::Voxelizer::~Voxelizer ( )

Member Function Documentation

◆ accept()

C3D_API void castor3d::Voxelizer::accept ( RenderTechniqueVisitor visitor)

Visitor acceptance function.

Parameters
visitorThe ... visitor.

◆ countInitialisationSteps()

static uint32_t castor3d::Voxelizer::countInitialisationSteps ( )
inlinestatic

◆ getFirstBounce()

Texture const & castor3d::Voxelizer::getFirstBounce ( ) const
inline

name Getters.

◆ getGraph()

crg::FrameGraph const & castor3d::Voxelizer::getGraph ( ) const
inline

◆ getSecondaryBounce()

Texture const & castor3d::Voxelizer::getSecondaryBounce ( ) const
inline

◆ render()

C3D_API crg::SemaphoreWaitArray castor3d::Voxelizer::render ( crg::SemaphoreWaitArray const &  toWait,
ashes::Queue const &  queue 
)

Renders the voxels.

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

◆ update() [1/2]

C3D_API void castor3d::Voxelizer::update ( CpuUpdater updater)

Updates the render pass, CPU wise.

Parameters
[in,out]updaterThe update data.

◆ update() [2/2]

C3D_API void castor3d::Voxelizer::update ( GpuUpdater updater)

Updates the render pass, GPU wise.

Parameters
[in,out]updaterThe update data.

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