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

#include <RadianceComputer.hpp>

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

Public Member Functions

C3D_API RadianceComputer (Engine &engine, RenderDevice const &device, castor::Size const &size, Texture const &srcTexture)
 Constructor. More...
 
C3D_API ~RadianceComputer () override
 
C3D_API void render (QueueData const &queueData)
 Computes the radiance map. More...
 
C3D_API ashes::Semaphore const & render (QueueData const &queueData, ashes::Semaphore const &toWait)
 Computes the radiance map. More...
 
C3D_API ashes::Sampler const & getSampler () const
 
Texture const & getResult () const
 

Constructor & Destructor Documentation

◆ RadianceComputer()

C3D_API castor3d::RadianceComputer::RadianceComputer ( Engine engine,
RenderDevice const &  device,
castor::Size const &  size,
Texture const &  srcTexture 
)
explicit

Constructor.

Parameters
[in]engineThe engine.
[in]deviceThe GPU device.
[in]sizeThe render size.
[in]srcTextureThe cube texture source.

◆ ~RadianceComputer()

C3D_API castor3d::RadianceComputer::~RadianceComputer ( )
override

Member Function Documentation

◆ getResult()

Texture const & castor3d::RadianceComputer::getResult ( ) const
inline

Referenced by castor3d::IblTextures::getIrradianceTexture().

Here is the caller graph for this function:

◆ getSampler()

C3D_API ashes::Sampler const & castor3d::RadianceComputer::getSampler ( ) const

name Getters.

Referenced by castor3d::IblTextures::getIrradianceSampler().

Here is the caller graph for this function:

◆ render() [1/2]

C3D_API void castor3d::RadianceComputer::render ( QueueData const &  queueData)

Computes the radiance map.

Parameters
[in]queueDataThe queue receiving the GPU commands.

◆ render() [2/2]

C3D_API ashes::Semaphore const & castor3d::RadianceComputer::render ( QueueData const &  queueData,
ashes::Semaphore const &  toWait 
)

Computes the radiance map.

Parameters
[in]queueDataThe queue receiving the GPU commands.
[in]toWaitThe semaphore from the previous render pass.
Returns
The semaphores signaled by this render.

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