Castor3D 0.16.0
Multiplatform 3D engine
Public Types | Public Member Functions | List of all members
castor3d::ShadowMapUbo Class Reference

#include <ShadowMapUbo.hpp>

Public Types

using Configuration = ShadowMapUboConfiguration
 

Public Member Functions

C3D_API ShadowMapUbo (RenderDevice const &device)
 
C3D_API ShadowMapUbo (ShadowMapUbo const &rhs)=delete
 
C3D_API ShadowMapUbooperator= (ShadowMapUbo const &rhs)=delete
 
C3D_API ShadowMapUbo (ShadowMapUbo &&rhs) noexcept=default
 
C3D_API ShadowMapUbooperator= (ShadowMapUbo &&rhs) noexcept=delete
 
C3D_API ~ShadowMapUbo () noexcept
 
C3D_API void update (Light const &light, uint32_t index)
 Updates the UBO from given values.
 
void createSizedBinding (ashes::DescriptorSet &descriptorSet, VkDescriptorSetLayoutBinding const &layoutBinding) const
 
ashes::WriteDescriptorSet getDescriptorWrite (uint32_t dstBinding, uint32_t dstArrayElement=0u) const
 
void addDescriptorWrite (ashes::WriteDescriptorSetArray &descriptorWrites, uint32_t &dstBinding, uint32_t dstArrayElement=0u) const
 
UniformBufferOffsetT< Configuration > const & getUbo () const
 

Member Typedef Documentation

◆ Configuration

Constructor & Destructor Documentation

◆ ShadowMapUbo() [1/3]

C3D_API castor3d::ShadowMapUbo::ShadowMapUbo ( RenderDevice const & device)
explicit

◆ ShadowMapUbo() [2/3]

C3D_API castor3d::ShadowMapUbo::ShadowMapUbo ( ShadowMapUbo const & rhs)
delete

◆ ShadowMapUbo() [3/3]

C3D_API castor3d::ShadowMapUbo::ShadowMapUbo ( ShadowMapUbo && rhs)
defaultnoexcept

◆ ~ShadowMapUbo()

C3D_API castor3d::ShadowMapUbo::~ShadowMapUbo ( )
noexcept

Member Function Documentation

◆ addDescriptorWrite()

void castor3d::ShadowMapUbo::addDescriptorWrite ( ashes::WriteDescriptorSetArray & descriptorWrites,
uint32_t & dstBinding,
uint32_t dstArrayElement = 0u ) const
inline

References getDescriptorWrite().

Here is the call graph for this function:

◆ createSizedBinding()

void castor3d::ShadowMapUbo::createSizedBinding ( ashes::DescriptorSet & descriptorSet,
VkDescriptorSetLayoutBinding const & layoutBinding ) const
inline

References castor3d::UniformBufferOffsetT< DataT >::createSizedBinding().

Here is the call graph for this function:

◆ getDescriptorWrite()

ashes::WriteDescriptorSet castor3d::ShadowMapUbo::getDescriptorWrite ( uint32_t dstBinding,
uint32_t dstArrayElement = 0u ) const
inline

References castor3d::UniformBufferOffsetT< DataT >::getDescriptorWrite().

Referenced by addDescriptorWrite().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getUbo()

UniformBufferOffsetT< Configuration > const & castor3d::ShadowMapUbo::getUbo ( ) const
inline

◆ operator=() [1/2]

C3D_API ShadowMapUbo & castor3d::ShadowMapUbo::operator= ( ShadowMapUbo && rhs)
deletenoexcept

◆ operator=() [2/2]

C3D_API ShadowMapUbo & castor3d::ShadowMapUbo::operator= ( ShadowMapUbo const & rhs)
delete

◆ update()

C3D_API void castor3d::ShadowMapUbo::update ( Light const & light,
uint32_t index )

Updates the UBO from given values.

Parameters
[in]lightThe light source from which the shadow map is generated.
[in]indexThe shadow pass index.

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