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

#include <GeometryInjectionPass.hpp>

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

Public Types

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

Public Member Functions

C3D_API GeometryInjectionPass (crg::FramePass const &pass, crg::GraphContext &context, crg::RunnableGraph &graph, RenderDevice const &device, LightType lightType, uint32_t gridSize, uint32_t rsmSize)
 Constructor.
 
C3D_API GeometryInjectionPass (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
 

Static Public Member Functions

static Texture createResult (crg::ResourcesCache &resources, RenderDevice const &device, castor::String const &prefix, uint32_t index, uint32_t gridSize)
 Creates the geometry injection pass result.
 

Additional Inherited Members

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

Member Enumeration Documentation

◆ Idx

Enumerator
LightsIdx 
RsmNormalsIdx 
RsmPositionIdx 
LpvGridUboIdx 
LpvLightUboIdx 

Constructor & Destructor Documentation

◆ GeometryInjectionPass() [1/2]

C3D_API castor3d::GeometryInjectionPass::GeometryInjectionPass ( 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.

◆ GeometryInjectionPass() [2/2]

C3D_API castor3d::GeometryInjectionPass::GeometryInjectionPass ( 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::GeometryInjectionPass::accept ( ConfigurationVisitorBase & visitor)

Visitor acceptance function.

Parameters
visitorThe ... visitor.

◆ createResult()

static Texture castor3d::GeometryInjectionPass::createResult ( crg::ResourcesCache & resources,
RenderDevice const & device,
castor::String const & prefix,
uint32_t index,
uint32_t gridSize )
static

Creates the geometry injection pass result.

Parameters
[in]resourcesThe render graph resources handler.
[in]deviceThe GPU device.
[in]prefixThe pass name's prefix.
[in]indexThe layer index.
[in]gridSizeThe grid dimensions.

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