Castor3D 0.16.0
Multiplatform 3D engine
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.
 
C3D_API ~RadianceComputer () noexcept override
 
C3D_API void render (QueueData const &queueData) const
 Computes the radiance map.
 
C3D_API crg::SemaphoreWaitArray render (crg::SemaphoreWaitArray const &signalsToWait, ashes::Queue const &queue) const
 Computes the radiance map.
 
C3D_API ashes::Sampler const & getSampler () const noexcept
 
Texture const & getResult () const noexcept
 

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 ( )
overridenoexcept

Member Function Documentation

◆ getResult()

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

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

Here is the caller graph for this function:

◆ getSampler()

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

name Getters.

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

Here is the caller graph for this function:

◆ render() [1/2]

C3D_API crg::SemaphoreWaitArray castor3d::RadianceComputer::render ( crg::SemaphoreWaitArray const & signalsToWait,
ashes::Queue const & queue ) const

Computes the radiance map.

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

◆ render() [2/2]

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

Computes the radiance map.

Parameters
[in]queueDataThe queue receiving the GPU commands.

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