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

#include <ShadowMapPoint.hpp>

Inheritance diagram for castor3d::ShadowMapPoint:
Inheritance graph
[legend]
Collaboration diagram for castor3d::ShadowMapPoint:
Collaboration graph
[legend]

Public Member Functions

C3D_API ShadowMapPoint (crg::ResourceHandler &handler, RenderDevice const &device, Scene &scene, ProgressBar *progress)
 Constructor. More...
 
C3D_API void update (GpuUpdater &updater) override
 Updates the render pass, CPU wise. More...
 
Texture const & getTexture () const
 
- Public Member Functions inherited from castor3d::ShadowMap
C3D_API ShadowMap (crg::ResourceHandler &handler, RenderDevice const &device, Scene &scene, LightType lightType, VkImageCreateFlags createFlags, castor::Size const &size, uint32_t layerCount, uint32_t count)
 Constructor. More...
 
virtual C3D_API ~ShadowMap ()=default
 Destructor. More...
 
C3D_API void accept (PipelineVisitorBase &visitor)
 Visitor acceptance function. More...
 
C3D_API void update (CpuUpdater &updater)
 Updates the render pass, CPU wise. More...
 
virtual C3D_API void update (GpuUpdater &updater)=0
 Updates the render pass, GPU wise. More...
 
C3D_API crg::SemaphoreWaitArray render (crg::SemaphoreWaitArray const &toWait, ashes::Queue const &queue, uint32_t index)
 Renders the shadow map. More...
 
C3D_API ashes::VkClearValueArray const & getClearValues () const
 
C3D_API ashes::Sampler const & getSampler (SmTexture texture, uint32_t index=0u) const
 
virtual C3D_API crg::ImageViewId getView (SmTexture texture, uint32_t index=0u) const
 
virtual C3D_API crg::ImageViewIdArray getViews (SmTexture texture, uint32_t index=0u) const
 
ShadowMapResult const & getShadowPassResult () const
 
ShadowMapResultgetShadowPassResult ()
 
ScenegetScene () const
 
uint32_t getCount () const
 

Additional Inherited Members

- Public Types inherited from castor3d::ShadowMap
using PassDataPtr = std::unique_ptr< PassData >
 
- Static Public Attributes inherited from castor3d::ShadowMap
static constexpr TextureFlags textureFlags
 
- Protected Attributes inherited from castor3d::ShadowMap
RenderDevice const & m_device
 
crg::ResourceHandler & m_handler
 
Scenem_scene
 
castor::String m_name
 
LightType m_lightType
 
ShadowMapResult m_result
 
uint32_t m_count
 
std::set< std::reference_wrapper< GeometryBuffers > > m_geometryBuffers
 
std::vector< PassDataPtrm_passes
 
std::vector< std::unique_ptr< crg::FrameGraph > > m_graphs
 
std::vector< crg::RunnableGraphPtr > m_runnables
 

Constructor & Destructor Documentation

◆ ShadowMapPoint()

C3D_API castor3d::ShadowMapPoint::ShadowMapPoint ( crg::ResourceHandler &  handler,
RenderDevice const &  device,
Scene scene,
ProgressBar progress 
)
explicit

Constructor.

Parameters
[in]handlerThe render graph resources handler.
[in]deviceThe GPU device.
[in]sceneThe scene.
[in]progressThe optional progress bar.

Member Function Documentation

◆ getTexture()

Texture const & castor3d::ShadowMapPoint::getTexture ( ) const
inline

name Getters.

References castor3d::eVariance, and castor3d::ShadowMap::m_result.

◆ update()

C3D_API void castor3d::ShadowMapPoint::update ( GpuUpdater updater)
overridevirtual

Updates the render pass, CPU wise.

Parameters
[in,out]updaterThe update data.

Implements castor3d::ShadowMap.


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