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

Public Member Functions

 VulkanUniformBuffer (std::vector< ShaderDataType > dataTypes, uint32_t bindingPointIndex)
 
void CreateBuffer (VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, VkBuffer &buffer, VkDeviceMemory &bufferMemory)
 
uint32_t FindMemoryType (uint32_t typeFilter, VkMemoryPropertyFlags properties)
 
const std::vector< VkBuffer > & GetUniformBuffers () const
 
void ClearBuffer ()
 
void BufferCreation ()
 
void UploadUniformBuffer (size_t frameIndex)
 
- Public Member Functions inherited from Karma::UniformBufferObject
 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
 

Additional Inherited Members

- Static Public Member Functions inherited from Karma::UniformBufferObject
static UniformBufferObjectCreate (std::vector< ShaderDataType > dataTypes, uint32_t bindingPointIndex)
 
- Protected Member Functions inherited from Karma::UniformBufferObject
void CalculateOffsetsAndBufferSize ()
 
- Protected Attributes inherited from Karma::UniformBufferObject
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: