Castor3D 0.16.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::ResourcesCache &resources, RenderDevice const &device, ProgressBar *progress, castor::String const &prefix, Scene &scene, Camera &camera, VoxelizerUbo &voxelizerUbo, VctConfig const &voxelConfig, crg::FramePassArray const &previousPasses)
 Constructor.
 
C3D_API ~Voxelizer () noexcept
 
C3D_API void update (CpuUpdater &updater)
 Updates the render pass, CPU wise.
 
C3D_API void accept (RenderTechniqueVisitor &visitor)
 Visitor acceptance function.
 
C3D_API crg::SemaphoreWaitArray render (crg::SemaphoreWaitArray const &toWait, ashes::Queue const &queue)
 Renders the voxels.
 
Texture const & getFirstBounce () const noexcept
 
Texture const & getSecondaryBounce () const noexcept
 
crg::FrameGraph const & getGraph () const noexcept
 
static uint32_t countInitialisationSteps () noexcept
 

Constructor & Destructor Documentation

◆ Voxelizer()

C3D_API castor3d::Voxelizer::Voxelizer ( crg::ResourcesCache & resources,
RenderDevice const & device,
ProgressBar * progress,
castor::String const & prefix,
Scene & scene,
Camera & camera,
VoxelizerUbo & voxelizerUbo,
VctConfig const & voxelConfig,
crg::FramePassArray const & previousPasses )

Constructor.

Parameters
[in]resourcesThe 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]voxelizerUboThe voxelizer configuration UBO.
[in]voxelConfigThe voxelizer configuration.
[in]previousPassesThe passes on which the voxelization pass depent.

◆ ~Voxelizer()

C3D_API castor3d::Voxelizer::~Voxelizer ( )
noexcept

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 ( )
staticnoexcept

name Getters.

◆ getFirstBounce()

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

◆ getGraph()

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

◆ getSecondaryBounce()

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

◆ 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()

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

Updates the render pass, CPU wise.

Parameters
[in,out]updaterThe update data.

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