OpenGL's uniform buffer, used in OpenGLShader type instance of Shader object.
More...
#include <OpenGLBuffer.h>
|
| OpenGLUniformBuffer (std::vector< ShaderDataType > dataTypes, uint32_t bindingPointIndex) |
| Constructor Generate the buffers for uniforms and bind them.
|
|
uint32_t | GetUniformsID () const |
| Getter for the uniform id.
|
|
virtual | ~OpenGLUniformBuffer () |
| Delete the buffers and clean up the resources appropriately.
|
|
virtual void | UploadUniformBuffer (size_t frameIndex) override |
| Upload the uniform to GPU.
|
|
| UniformBufferObject (std::vector< ShaderDataType > dataTypes, uint32_t bindingPointIndex) |
| An agnostic constructor provided for precomputation of offset and buffer size.
|
|
virtual | ~UniformBufferObject ()=default |
| Pure virtual destructor and sub class should have appropriate implementation.
|
|
template<typename... T> |
void | UpdateUniforms (T &&... uniforms) |
| Set the m_UniformList with latest supplied uniforms.
|
|
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 |
|
OpenGL's uniform buffer, used in OpenGLShader type instance of Shader object.
◆ OpenGLUniformBuffer()
Karma::OpenGLUniformBuffer::OpenGLUniformBuffer |
( |
std::vector< ShaderDataType > | dataTypes, |
|
|
uint32_t | bindingPointIndex ) |
Constructor Generate the buffers for uniforms and bind them.
- Parameters
-
- Since
- Karma 1.0.0
◆ ~OpenGLUniformBuffer()
Karma::OpenGLUniformBuffer::~OpenGLUniformBuffer |
( |
| ) |
|
|
virtual |
Delete the buffers and clean up the resources appropriately.
- Since
- Karma 1.0.0
◆ GetUniformsID()
uint32_t Karma::OpenGLUniformBuffer::GetUniformsID |
( |
| ) |
const |
|
inline |
Getter for the uniform id.
- Since
- Karma 1.0.0
◆ UploadUniformBuffer()
void Karma::OpenGLUniformBuffer::UploadUniformBuffer |
( |
size_t | frameIndex | ) |
|
|
overridevirtual |
The documentation for this struct was generated from the following files:
- Karma/src/Platform/OpenGL/OpenGLBuffer.h
- Karma/src/Platform/OpenGL/OpenGLBuffer.cpp