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.
- Аргументы
-
device | The Vulkan logical device. |
commandPool | The Vulkan command pool from which command buffers are allocated. |
imageCount | The number of command buffers to allocate (usually equal to the number of swap chain images). |
- Исключения
-
std::runtime_error | Thrown 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.
Объявления и описания членов классов находятся в файлах:
- Engine/Modules/RenderModule/Vulkan/VulkanObjects/VulkanCommandBuffers.h
- Engine/Modules/RenderModule/Vulkan/VulkanObjects/VulkanCommandBuffers.cpp