Class UniformBuffer

Inheritance Relationships

Base Type

Class Documentation

class inexor::vulkan_renderer::wrapper::UniformBuffer : public inexor::vulkan_renderer::wrapper::GPUMemoryBuffer

RAII wrapper class for uniform buffers.

Public Functions

UniformBuffer(const Device &device, const std::string &name, const VkDeviceSize &size)

Default constructor.

Todo:

Add overloaded constructor which directly accepts the uniform buffer data.

Parameters
  • device – The const reference to a device RAII wrapper instance.

  • name – The internal debug marker name of the uniform buffer.

  • size – The size of the uniform buffer.

UniformBuffer(const UniformBuffer&) = delete
UniformBuffer(UniformBuffer&&) noexcept
~UniformBuffer() override = default
UniformBuffer &operator=(const UniformBuffer&) = delete
UniformBuffer &operator=(UniformBuffer&&) = delete
void update(void *data, std::size_t size)

Update uniform buffer data.

Parameters
  • data – A pointer to the uniform buffer data.

  • size – The size of the uniform buffer memory to copy.