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

Manages Vulkan command buffers, which are used for recording GPU commands. Подробнее...

#include <VulkanCommandBuffers.h>

Открытые члены

 VulkanCommandBuffers (VkDevice device, VkCommandPool commandPool, uint32_t imageCount)
 Constructs Vulkan command buffers using the provided command pool and image count.
 
const std::vector< VkCommandBuffer > & getCommandBuffers () const
 Retrieves the allocated Vulkan command buffers.
 

Подробное описание

Manages Vulkan command buffers, which are used for recording GPU commands.

Конструктор(ы)

◆ VulkanCommandBuffers()

VulkanCommandBuffers::VulkanCommandBuffers ( VkDevice device,
VkCommandPool commandPool,
uint32_t imageCount )

Constructs Vulkan command buffers using the provided command pool and image count.

Аргументы
deviceThe Vulkan logical device.
commandPoolThe Vulkan command pool from which command buffers are allocated.
imageCountThe number of command buffers to allocate (usually equal to the number of swap chain images).
Исключения
std::runtime_errorThrown if command buffer allocation fails.

Методы

◆ getCommandBuffers()

const std::vector< VkCommandBuffer > & VulkanCommandBuffers::getCommandBuffers ( ) const
inline

Retrieves the allocated Vulkan command buffers.

Возвращает
Const reference to the vector of Vulkan command buffers.

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