Berserk
Classes | Public Member Functions | Public Attributes | List of all members
RHIShaderMeta Class Reference

Reflection info about compiled RHI program. More...

#include <RHIShader.hpp>

Inheritance diagram for RHIShaderMeta:
Inheritance graph
[legend]
Collaboration diagram for RHIShaderMeta:
Collaboration graph
[legend]

Classes

struct  DataParam
 Data param within uniform block. More...
 
struct  DataParamBlock
 Uniform block info. More...
 
struct  InputAttribute
 Vertex shader inputs. More...
 
struct  ObjectParam
 Object params like samplers, textures. More...
 

Public Member Functions

uint32 GetSamplerLocation (const StringName &p) const
 
uint32 GetParamBlockSlot (const StringName &p) const
 
- Public Member Functions inherited from RefCnt
virtual ~RefCnt ()
 
bool IsUnique () const
 
std::int32_t GetRefs () const
 
std::int32_t AddRef () const
 
std::int32_t RelRef () const
 

Public Attributes

StringName name
 
std::unordered_map< StringName, InputAttributeinputs
 
std::unordered_map< StringName, DataParamparams
 
std::unordered_map< StringName, DataParamBlockparamBlocks
 
std::unordered_map< StringName, ObjectParamsamplers
 

Additional Inherited Members

- Protected Member Functions inherited from RefCnt
virtual void Destroy () const
 

Detailed Description

Reflection info about compiled RHI program.

Member Function Documentation

◆ GetParamBlockSlot()

uint32 RHIShaderMeta::GetParamBlockSlot ( const StringName p) const
inline

◆ GetSamplerLocation()

uint32 RHIShaderMeta::GetSamplerLocation ( const StringName p) const
inline

Member Data Documentation

◆ inputs

std::unordered_map<StringName, InputAttribute> RHIShaderMeta::inputs

◆ name

StringName RHIShaderMeta::name

◆ paramBlocks

std::unordered_map<StringName, DataParamBlock> RHIShaderMeta::paramBlocks

◆ params

std::unordered_map<StringName, DataParam> RHIShaderMeta::params

◆ samplers

std::unordered_map<StringName, ObjectParam> RHIShaderMeta::samplers

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