Karma Engine
Loading...
Searching...
No Matches
Karma::UniformBufferObject Struct Reference
Inheritance diagram for Karma::UniformBufferObject:

Public Member Functions

 UniformBufferObject (std::vector< ShaderDataType > dataTypes, uint32_t bindingPointIndex)
 
template<typename... T>
void UpdateUniforms (T &&... uniforms)
 
virtual void UploadUniformBuffer ()
 
uint32_t GetBufferSize () const
 
const std::vector< UBODataPointer > & GetUniformList () const
 
const std::vector< ShaderDataType > & GetUniformDataType () const
 
const std::vector< uint32_t > & GetAlignedOffsets () const
 
const std::vector< uint32_t > & GetUniformSize () const
 
uint32_t GetBindingPointIndex () const
 

Static Public Member Functions

static UniformBufferObjectCreate (std::vector< ShaderDataType > dataTypes, uint32_t bindingPointIndex)
 

Protected Member Functions

void CalculateOffsetsAndBufferSize ()
 

Protected Attributes

uint32_t m_BufferSize
 
uint32_t m_BindingPoint
 
std::vector< UBODataPointerm_UniformList
 
std::vector< ShaderDataType > m_UniformDataType
 
std::vector< uint32_t > m_UniformAlignedOffsets
 
std::vector< uint32_t > m_UniformSizes
 

The documentation for this struct was generated from the following files: