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

#include <LightInjectionPass.hpp>

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

Public Types

enum  Idx : uint32_t {
  LightsIdx , RsmNormalsIdx , RsmPositionIdx , RsmFluxIdx ,
  LpvGridUboIdx , LpvLightUboIdx
}
 

Public Member Functions

C3D_API LightInjectionPass (crg::FramePass const &pass, crg::GraphContext &context, crg::RunnableGraph &graph, RenderDevice const &device, LightType lightType, uint32_t gridSize, uint32_t rsmSize)
 Constructor.
 
C3D_API LightInjectionPass (crg::FramePass const &pass, crg::GraphContext &context, crg::RunnableGraph &graph, RenderDevice const &device, CubeMapFace face, uint32_t gridSize, uint32_t rsmSize)
 Constructor for point lights.
 
C3D_API void accept (ConfigurationVisitorBase &visitor)
 Visitor acceptance function.
 
- Public Member Functions inherited from castor::NamedBaseT< T >
 NamedBaseT (T name) noexcept
 Constructor.
 
T const & getName () const noexcept
 Retrieves the name.
 
void rename (T name) noexcept
 

Protected Member Functions

C3D_API void doSubInitialise (uint32_t index)
 
C3D_API void doSubRecordInto (crg::RecordContext &context, VkCommandBuffer commandBuffer, uint32_t index)
 

Additional Inherited Members

- Protected Attributes inherited from castor::NamedBaseT< T >
m_name
 

Member Enumeration Documentation

◆ Idx

Enumerator
LightsIdx 
RsmNormalsIdx 
RsmPositionIdx 
RsmFluxIdx 
LpvGridUboIdx 
LpvLightUboIdx 

Constructor & Destructor Documentation

◆ LightInjectionPass() [1/2]

C3D_API castor3d::LightInjectionPass::LightInjectionPass ( crg::FramePass const & pass,
crg::GraphContext & context,
crg::RunnableGraph & graph,
RenderDevice const & device,
LightType lightType,
uint32_t gridSize,
uint32_t rsmSize )

Constructor.

Parameters
[in]passThe parent frame pass.
[in]contextThe rendering context.
[in]graphThe runnable graph.
[in]deviceThe GPU device.
[in]lightTypeThe light source type.
[in]gridSizeThe grid dimensions.
[in]rsmSizeThe reflective shadow map dimensions.

◆ LightInjectionPass() [2/2]

C3D_API castor3d::LightInjectionPass::LightInjectionPass ( crg::FramePass const & pass,
crg::GraphContext & context,
crg::RunnableGraph & graph,
RenderDevice const & device,
CubeMapFace face,
uint32_t gridSize,
uint32_t rsmSize )

Constructor for point lights.

Parameters
[in]passThe parent frame pass.
[in]contextThe rendering context.
[in]graphThe runnable graph.
[in]deviceThe GPU device.
[in]faceThe cube shadow map face.
[in]gridSizeThe grid dimensions.
[in]rsmSizeThe reflective shadow map dimensions.

Member Function Documentation

◆ accept()

C3D_API void castor3d::LightInjectionPass::accept ( ConfigurationVisitorBase & visitor)

Visitor acceptance function.

Parameters
visitorThe ... visitor.

◆ doSubInitialise()

C3D_API void castor3d::LightInjectionPass::doSubInitialise ( uint32_t index)
protected

◆ doSubRecordInto()

C3D_API void castor3d::LightInjectionPass::doSubRecordInto ( crg::RecordContext & context,
VkCommandBuffer commandBuffer,
uint32_t index )
protected

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