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

#include <GlslTextureConfiguration.hpp>

Inheritance diagram for castor3d::shader::TextureConfigurations:
Inheritance graph
[legend]
Collaboration diagram for castor3d::shader::TextureConfigurations:
Collaboration graph
[legend]

Public Member Functions

C3D_API TextureConfigurations (sdw::ShaderWriter &writer, uint32_t binding, uint32_t set, bool enable=true)
 
C3D_API void computeMapsContributions (PassShaders const &passShaders, PipelineFlags const &flags, TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material const &material, BlendComponents &components) const
 
C3D_API void computeMapsContributions (PassShaders const &passShaders, TextureCombine const &texturesFlags, TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material const &material, BlendComponents &components) const
 
template<typename TexcoordT >
TexcoordT computeTexcoordsT (PassShaders const &passShaders, TextureConfigData const &config, TextureTransformData const &anim, BlendComponents const &components) const
 
template<typename TexcoordT , typename FlagsT >
void computeMapsContributionsT (PassShaders const &passShaders, FlagsT const &flags, TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material const &material, BlendComponents &components) const
 
TextureConfigData getTextureConfiguration (sdw::UInt const &index) const
 
- Public Member Functions inherited from castor3d::shader::BufferT< TextureConfigData >
 BufferT (sdw::ShaderWriter &writer, castor::MbString blockName, castor::MbString variableName, uint32_t binding, uint32_t set, bool enabled=true, ParamsT &&... params)
 
TextureConfigData getData (sdw::UInt const &index, ParamsT &&... params) const
 
- Public Member Functions inherited from castor3d::shader::BufferBase
 BufferBase (sdw::ShaderWriter &writer, castor::MbString blockName, castor::MbString variableName, uint32_t binding, uint32_t set, bool enabled=true)
 
sdw::UInt getFirstCount () const
 
sdw::UInt getSecondCount () const
 
sdw::UInt getThirdCount () const
 
sdw::UInt getFourthCount () const
 
sdw::UInt getCount () const
 
bool isEnabled () const noexcept
 
sdw::ShaderWriter * getWriter () const noexcept
 

Static Public Member Functions

template<typename TexcoordT >
static TexcoordT getTexcoord (TextureConfigData const &data, TexcoordT const &texCoords0, TexcoordT const &texCoords1, TexcoordT const &texCoords2, TexcoordT const &texCoords3)
 
template<typename TexcoordT >
static void setTexcoord (TextureConfigData const &data, TexcoordT const &value, TexcoordT &texCoords0, TexcoordT &texCoords1, TexcoordT &texCoords2, TexcoordT &texCoords3)
 

Additional Inherited Members

- Protected Attributes inherited from castor3d::shader::BufferBase
sdw::ShaderWriter & m_writer
 
castor::RawUniquePtr< sdw::StorageBuffer > m_ssbo
 
castor::MbString m_variableName
 

Constructor & Destructor Documentation

◆ TextureConfigurations()

C3D_API castor3d::shader::TextureConfigurations::TextureConfigurations ( sdw::ShaderWriter & writer,
uint32_t binding,
uint32_t set,
bool enable = true )

Member Function Documentation

◆ computeMapsContributions() [1/2]

C3D_API void castor3d::shader::TextureConfigurations::computeMapsContributions ( PassShaders const & passShaders,
PipelineFlags const & flags,
TextureAnimations const & textureAnims,
sdw::Array< sdw::CombinedImage2DRgba32 > const & maps,
Material const & material,
BlendComponents & components ) const

◆ computeMapsContributions() [2/2]

C3D_API void castor3d::shader::TextureConfigurations::computeMapsContributions ( PassShaders const & passShaders,
TextureCombine const & texturesFlags,
TextureAnimations const & textureAnims,
sdw::Array< sdw::CombinedImage2DRgba32 > const & maps,
Material const & material,
BlendComponents & components ) const

◆ computeMapsContributionsT()

template<typename TexcoordT , typename FlagsT >
void castor3d::shader::TextureConfigurations::computeMapsContributionsT ( PassShaders const & passShaders,
FlagsT const & flags,
TextureAnimations const & textureAnims,
sdw::Array< sdw::CombinedImage2DRgba32 > const & maps,
Material const & material,
BlendComponents & components ) const

◆ computeTexcoordsT()

template<typename TexcoordT >
TexcoordT castor3d::shader::TextureConfigurations::computeTexcoordsT ( PassShaders const & passShaders,
TextureConfigData const & config,
TextureTransformData const & anim,
BlendComponents const & components ) const

◆ getTexcoord()

template<typename TexcoordT >
static TexcoordT castor3d::shader::TextureConfigurations::getTexcoord ( TextureConfigData const & data,
TexcoordT const & texCoords0,
TexcoordT const & texCoords1,
TexcoordT const & texCoords2,
TexcoordT const & texCoords3 )
static

◆ getTextureConfiguration()

TextureConfigData castor3d::shader::TextureConfigurations::getTextureConfiguration ( sdw::UInt const & index) const
inline

References castor3d::shader::BufferT< DataT >::getData().

Here is the call graph for this function:

◆ setTexcoord()

template<typename TexcoordT >
static void castor3d::shader::TextureConfigurations::setTexcoord ( TextureConfigData const & data,
TexcoordT const & value,
TexcoordT & texCoords0,
TexcoordT & texCoords1,
TexcoordT & texCoords2,
TexcoordT & texCoords3 )
static

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