Vulkan-specific UniformBuffer implementation.
More...
#include <VulkanUniformBuffer.h>
Inherits Raven::UniformBuffer.
Vulkan-specific UniformBuffer implementation.
Wraps a Vulkan VkBuffer and its device memory for uniform data. Supports CPU updates by mapping host-visible, coherent memory.
◆ VulkanUniformBuffer()
| Raven::VulkanUniformBuffer::VulkanUniformBuffer |
( |
usize | size | ) |
|
Constructs a VulkanUniformBuffer of given size.
Allocates a Vulkan buffer with uniform buffer usage and maps memory for CPU writes.
- Parameters
-
| size | Size in bytes of the uniform buffer. |
◆ Clear()
| void Raven::VulkanUniformBuffer::Clear |
( |
| ) |
|
|
overridevirtual |
◆ GetSize()
| usize Raven::VulkanUniformBuffer::GetSize |
( |
| ) |
const |
|
inline |
Returns the size of the uniform buffer.
- Returns
- Size in bytes.
◆ GetUniformBuffer()
| VkBuffer Raven::VulkanUniformBuffer::GetUniformBuffer |
( |
| ) |
const |
|
inline |
Returns the underlying Vulkan VkBuffer handle.
- Returns
- Vulkan VkBuffer used for uniform data.
◆ Release()
| void Raven::VulkanUniformBuffer::Release |
( |
| ) |
|
|
overridevirtual |
◆ SetData()
| void Raven::VulkanUniformBuffer::SetData |
( |
void * | data, |
|
|
usize | size ) |
|
overridevirtual |
Uploads data to the uniform buffer.
- Parameters
-
| data | Pointer to the data to copy. |
| size | Size in bytes of the data to copy. |
Implements Raven::UniformBuffer.
The documentation for this class was generated from the following files: