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

#include <EnvironmentPrefilter.hpp>

Public Member Functions

C3D_API EnvironmentPrefilter (Engine &engine, RenderDevice const &device, castor::Size const &size, Texture const &srcTexture, SamplerResPtr sampler)
 Constructor. More...
 
C3D_API ~EnvironmentPrefilter ()
 
C3D_API void render (QueueData const &queueData)
 Generates the mipmap levels. More...
 
C3D_API ashes::Semaphore const & render (QueueData const &queueData, ashes::Semaphore const &toWait)
 Generates the mipmap levels. More...
 
Texture const & getResult () const
 
ashes::Sampler const & getSampler () const
 

Static Public Attributes

static C3D_API uint32_t const MaxIblReflectionLod
 

Constructor & Destructor Documentation

◆ EnvironmentPrefilter()

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

Constructor.

Parameters
[in]engineThe engine.
[in]deviceThe GPU device.
[in]sizeThe render size.
[in]srcTextureThe cube texture source.
[in]samplerThe sampler used for the source texture.

◆ ~EnvironmentPrefilter()

C3D_API castor3d::EnvironmentPrefilter::~EnvironmentPrefilter ( )

Member Function Documentation

◆ getResult()

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

name Getters.

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

Here is the caller graph for this function:

◆ getSampler()

ashes::Sampler const & castor3d::EnvironmentPrefilter::getSampler ( ) const
inline

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

Here is the caller graph for this function:

◆ render() [1/2]

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

Generates the mipmap levels.

Parameters
[in]queueDataThe queue receiving the GPU commands.

◆ render() [2/2]

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

Generates the mipmap levels.

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

Member Data Documentation

◆ MaxIblReflectionLod

C3D_API uint32_t const castor3d::EnvironmentPrefilter::MaxIblReflectionLod
static

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