Berserk
|
Describes layout of shader params for packing by material. More...
#include <ShaderParams.hpp>
Classes | |
struct | DataParamInfo |
Info about raw data param. More... | |
struct | ShaderParamLight |
struct | TextureParamInfo |
Info about texture data param. More... | |
Public Member Functions | |
BRK_API | ShaderParams (std::vector< ShaderParam > params) |
BRK_API | ~ShaderParams () override=default |
BRK_API bool | HasParam (const StringName &name) const |
BRK_API uint32 | GetParamId (const StringName &name) const |
BRK_API const ShaderParam * | GetParam (const StringName &name) const |
BRK_API const ShaderParamLight * | GetParamLight (const StringName &name) const |
BRK_API const ShaderParam & | GetParam (uint32 id) const |
BRK_API const ShaderParamLight & | GetParamLight (uint32 id) const |
BRK_API const std::unordered_map< StringName, uint32 > & | GetParamLookUp () const |
BRK_API const std::vector< ShaderParam > & | GetParams () const |
BRK_API const std::vector< ShaderParamLight > & | GetParamsLight () const |
BRK_API const std::vector< DataParamInfo > & | GetDataParamsInfo () const |
BRK_API const std::vector< TextureParamInfo > & | GetTextureParamsInfo () const |
BRK_API const std::vector< unsigned char > & | GetDefaultDataValues () const |
uint32 | GetDataSize () const |
uint32 | GetTexturesCount () const |
![]() | |
virtual | ~RefCnt () |
bool | IsUnique () const |
std::int32_t | GetRefs () const |
std::int32_t | AddRef () const |
std::int32_t | RelRef () const |
Static Public Attributes | |
static const uint32 | INVALID_ID = 0xffffffff |
Protected Member Functions | |
void | Build () |
void | InitDefaults () |
![]() | |
virtual void | Destroy () const |
Describes layout of shader params for packing by material.