Castor3D 0.15.0
Multiplatform 3D engine
Fonctions membres publiques | Liste de tous les membres
Référence de la classe castor3d::shader::Materials

#include <GlslMaterial.hpp>

Graphe d'héritage de castor3d::shader::Materials:
Inheritance graph
[légende]
Graphe de collaboration de castor3d::shader::Materials:
Collaboration graph
[légende]

Fonctions membres publiques

C3D_API Materials (sdw::ShaderWriter &writer, PassShaders &passShaders)
 
C3D_API Materials (sdw::ShaderWriter &writer, PassShaders &passShaders, uint32_t binding, uint32_t set, bool enable=true)
 
C3D_API Materials (Engine const &engine, sdw::ShaderWriter &writer, PassShaders &passShaders, uint32_t binding, uint32_t set, uint32_t &specifics, bool enable=true)
 
C3D_API void fill (sdw::Vec3 const &albedo, sdw::Vec4 const &spcRgh, sdw::Vec4 const &colMtl, sdw::Vec4 const &crTsIr, sdw::Vec4 const &sheen, Material &material)
 
C3D_API void apply (Material const &material, SurfaceBase const &surface, sdw::Vec4 &spcRgh, sdw::Vec4 &colMtl, sdw::Vec4 &sheen)
 
C3D_API ComponentModeFlags getFilter () const
 
template<typename TypeT >
bool hasSpecificsBuffer () const
 
template<typename TypeT >
BufferT< TypeT > const & getSpecificsBuffer () const
 
sdw::UInt getPassTypesCount () const
 
Material getMaterial (sdw::UInt const &index) const
 
auto & getPassShaders () const
 
C3D_API void blendMaterials (PipelineFlags const &flags, shader::TextureConfigurations const &textureConfigs, shader::TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material &material, sdw::UInt const &materialId, sdw::Array< sdw::Vec4 > const &passMultipliers, BlendComponents &output) const
 
C3D_API void blendMaterials (VkCompareOp alphaFunc, PipelineFlags const &flags, shader::TextureConfigurations const &textureConfigs, shader::TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material &material, sdw::UInt const &materialId, sdw::Array< sdw::Vec4 > const &passMultipliers, BlendComponents &output) const
 
C3D_API void blendMaterials (bool opaque, PipelineFlags const &flags, shader::TextureConfigurations const &textureConfigs, shader::TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material &material, sdw::UInt const &materialId, sdw::Array< sdw::Vec4 > const &passMultipliers, BlendComponents &output) const
 
C3D_API void applyMaterial (PipelineFlags const &flags, TextureConfigurations const &textureConfigs, TextureAnimations const &textureAnims, sdw::Array< sdw::CombinedImage2DRgba32 > const &maps, Material const &material, BlendComponents &components) const
 
- Fonctions membres publiques hérités de castor3d::shader::BufferT< Material >
 BufferT (sdw::ShaderWriter &writer, std::string blockName, std::string variableName, uint32_t binding, uint32_t set, bool enabled=true, ParamsT &&... params)
 
Material getData (sdw::UInt const &index, ParamsT &&... params) const
 
- Fonctions membres publiques hérités de castor3d::shader::BufferBase
 BufferBase (sdw::ShaderWriter &writer, std::string blockName, std::string 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
 

Membres hérités additionnels

- Attributs protégés hérités de castor3d::shader::BufferBase
sdw::ShaderWriter & m_writer
 
std::unique_ptr< sdw::StorageBuffer > m_ssbo
 
std::string m_variableName
 

Documentation des constructeurs et destructeur

◆ Materials() [1/3]

C3D_API castor3d::shader::Materials::Materials ( sdw::ShaderWriter &  writer,
PassShaders passShaders 
)

◆ Materials() [2/3]

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

◆ Materials() [3/3]

C3D_API castor3d::shader::Materials::Materials ( Engine const &  engine,
sdw::ShaderWriter &  writer,
PassShaders passShaders,
uint32_t  binding,
uint32_t  set,
uint32_t &  specifics,
bool  enable = true 
)

Documentation des fonctions membres

◆ apply()

C3D_API void castor3d::shader::Materials::apply ( Material const &  material,
SurfaceBase const &  surface,
sdw::Vec4 &  spcRgh,
sdw::Vec4 &  colMtl,
sdw::Vec4 &  sheen 
)

◆ applyMaterial()

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

◆ blendMaterials() [1/3]

C3D_API void castor3d::shader::Materials::blendMaterials ( bool  opaque,
PipelineFlags const &  flags,
shader::TextureConfigurations const &  textureConfigs,
shader::TextureAnimations const &  textureAnims,
sdw::Array< sdw::CombinedImage2DRgba32 > const &  maps,
Material material,
sdw::UInt const &  materialId,
sdw::Array< sdw::Vec4 > const &  passMultipliers,
BlendComponents output 
) const

◆ blendMaterials() [2/3]

C3D_API void castor3d::shader::Materials::blendMaterials ( PipelineFlags const &  flags,
shader::TextureConfigurations const &  textureConfigs,
shader::TextureAnimations const &  textureAnims,
sdw::Array< sdw::CombinedImage2DRgba32 > const &  maps,
Material material,
sdw::UInt const &  materialId,
sdw::Array< sdw::Vec4 > const &  passMultipliers,
BlendComponents output 
) const

◆ blendMaterials() [3/3]

C3D_API void castor3d::shader::Materials::blendMaterials ( VkCompareOp  alphaFunc,
PipelineFlags const &  flags,
shader::TextureConfigurations const &  textureConfigs,
shader::TextureAnimations const &  textureAnims,
sdw::Array< sdw::CombinedImage2DRgba32 > const &  maps,
Material material,
sdw::UInt const &  materialId,
sdw::Array< sdw::Vec4 > const &  passMultipliers,
BlendComponents output 
) const

◆ fill()

C3D_API void castor3d::shader::Materials::fill ( sdw::Vec3 const &  albedo,
sdw::Vec4 const &  spcRgh,
sdw::Vec4 const &  colMtl,
sdw::Vec4 const &  crTsIr,
sdw::Vec4 const &  sheen,
Material material 
)

◆ getFilter()

C3D_API ComponentModeFlags castor3d::shader::Materials::getFilter ( ) const

◆ getMaterial()

Material castor3d::shader::Materials::getMaterial ( sdw::UInt const &  index) const
inline

Références castor3d::shader::BufferT< Material >::getData().

Voici le graphe d'appel pour cette fonction :

◆ getPassShaders()

auto & castor3d::shader::Materials::getPassShaders ( ) const
inline

◆ getPassTypesCount()

sdw::UInt castor3d::shader::Materials::getPassTypesCount ( ) const
inline

Références castor3d::shader::BufferBase::getSecondCount().

Voici le graphe d'appel pour cette fonction :

◆ getSpecificsBuffer()

template<typename TypeT >
BufferT< TypeT > const & castor3d::shader::Materials::getSpecificsBuffer ( ) const
inline

◆ hasSpecificsBuffer()

template<typename TypeT >
bool castor3d::shader::Materials::hasSpecificsBuffer ( ) const
inline

La documentation de cette classe a été générée à partir du fichier suivant :