![]() |
Raven Engine v0.1
|
Vulkan implementation of an index buffer. More...
#include <VulkanIndexBuffer.h>
Public Member Functions | |
| VulkanIndexBuffer (void *data, u32 size) | |
| Constructs the Vulkan index buffer from raw index data. | |
| ~VulkanIndexBuffer () | |
| Cleans up Vulkan resources associated with the index buffer. | |
| u32 | GetCount () const override |
| Gets the count of indices stored. | |
| u32 | GetSize () const override |
| Gets the size of the buffer in bytes. | |
| VkBuffer | GetVulkanBuffer () const |
| Gets the raw Vulkan buffer handle. | |
| Public Member Functions inherited from Raven::IndexBuffer | |
| virtual | ~IndexBuffer ()=default |
Additional Inherited Members | |
| Static Public Member Functions inherited from Raven::IndexBuffer | |
| static Ref< IndexBuffer > | Create (void *data, u32 size) |
| Factory method to create an index buffer with provided raw data. | |
Vulkan implementation of an index buffer.
Manages a GPU index buffer backed by Vulkan, handling buffer creation, staging, and device-local memory allocation. Exposes Vulkan buffer handle for low-level access when necessary.
| Raven::VulkanIndexBuffer::VulkanIndexBuffer | ( | void * | data, |
| u32 | size ) |
Constructs the Vulkan index buffer from raw index data.
Copies the input data into a staging buffer and then transfers it to a device-local Vulkan buffer optimized for GPU access.
| data | Pointer to raw index data (typically u16). |
| size | Size of the data in bytes. |
| Raven::VulkanIndexBuffer::~VulkanIndexBuffer | ( | ) |
Cleans up Vulkan resources associated with the index buffer.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
Gets the raw Vulkan buffer handle.