LampyEngine
 
Загрузка...
Поиск...
Не найдено
Класс VulkanVertexBuffer

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

Аргументы
deviceThe Vulkan logical device.
physicalDeviceThe Vulkan physical device.
vertexDataThe vertex data to upload.
transferQueueThe queue used for buffer transfers.
commandPoolThe command pool used for temporary command buffers.

Методы

◆ getBuffer()

VkBuffer VulkanVertexBuffer::getBuffer ( )

Retrieves the Vulkan buffer handle.

Возвращает
Handle to the Vulkan buffer.

◆ getVerticesCount()

uint32_t VulkanVertexBuffer::getVerticesCount ( )
inline

Retrieves the number of vertices stored in the buffer.

Возвращает
The number of vertices in the buffer.

Объявления и описания членов классов находятся в файлах: