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.


Add overloaded constructor which directly accepts the uniform buffer data.

  • 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.

  • data – A pointer to the uniform buffer data.

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