Public Types | Public Member Functions | Public Attributes | List of all members
UniformBufferObject Class Reference

#include <materialcommon.h>

Public Types

using UniformList = std::vector< const UniformLeafInstance * >

Public Member Functions

 UniformBufferObject (const BufferObjectDeclaration &declaration)

Public Attributes

const BufferObjectDeclarationmDeclaration
UniformList mUniforms


Non-hierarchical structure that holds pointers to all uniform leaf elements. These can point to either Material or MaterialInstance instance uniforms, depending on whether the resource is overridden by an instance. Rebuilt each time an override is made or new instance is created at runtime. This is handled in MaterialInstance::update().

Collaboration diagram for UniformBufferObject:

Member Typedef Documentation

◆ UniformList

using UniformList = std::vector<const UniformLeafInstance*>

Constructor & Destructor Documentation

◆ UniformBufferObject()

UniformBufferObject ( const BufferObjectDeclaration declaration)

Member Data Documentation

◆ mDeclaration

const BufferObjectDeclaration* mDeclaration

◆ mUniforms

UniformList mUniforms