Manages a Vulkan vertex buffer for storing vertex data on the GPU. Подробнее...
#include <VulkanVertexBuffer.h>
Открытые члены | |
| VulkanVertexBuffer (VkDevice device, VkPhysicalDevice physicalDevice, const std::vector< Vertex > &vertexData, VkQueue transferQueue, VkCommandPool commandPool) | |
| Constructs a vertex buffer and uploads vertex data to the GPU. | |
| ~VulkanVertexBuffer () | |
| Destroys the vertex buffer and releases allocated memory. | |
| VkBuffer | getBuffer () |
| Retrieves the Vulkan buffer handle. | |
| uint32_t | getVerticesCount () |
| Retrieves the number of vertices stored in the buffer. | |
Manages a Vulkan vertex buffer for storing vertex data on the GPU.
| VulkanVertexBuffer::VulkanVertexBuffer | ( | VkDevice | device, |
| VkPhysicalDevice | physicalDevice, | ||
| const std::vector< Vertex > & | vertexData, | ||
| VkQueue | transferQueue, | ||
| VkCommandPool | commandPool ) |
Constructs a vertex buffer and uploads vertex data to the GPU.
| device | The Vulkan logical device. |
| physicalDevice | The Vulkan physical device. |
| vertexData | The vertex data to upload. |
| transferQueue | The queue used for buffer transfers. |
| commandPool | The command pool used for temporary command buffers. |
| VkBuffer VulkanVertexBuffer::getBuffer | ( | ) |
Retrieves the Vulkan buffer handle.
|
inline |
Retrieves the number of vertices stored in the buffer.