43 CommandPool (
const Device& hDevice, EQueueType queueType, std::uint32_t flags = 0 );
72 VkCommandPool
handle()
const;
76 PRIMARY = VK_COMMAND_BUFFER_LEVEL_PRIMARY,
77 SECONDARY = VK_COMMAND_BUFFER_LEVEL_SECONDARY
95 std::vector< CommandBuffer >* pBuffers,
96 EBufferLevel level = PRIMARY );
102 const std::vector< CommandBuffer >& buffers );
Represents logical rendering device.
Definition: vppDevice.hpp:49
void freeBuffers(const std::vector< CommandBuffer > &buffers)
Frees multiple command buffers.
CommandPool(const Device &hDevice, EQueueType queueType, std::uint32_t flags=0)
Creates a command pool for specified device and queue type.
const Device & device() const
Retrieves the device.
The VPP namespace.
Definition: main.hpp:1
CommandBuffer createBuffer(EBufferLevel level=PRIMARY)
Creates single command buffer.
Represents a sequence of Vulkan commands.
Definition: vppCommandBuffer.hpp:68
void freeBuffer(const CommandBuffer &buffer)
Frees single command buffer.
Allocates and manages the lifetime of command buffers.
Definition: vppCommandPool.hpp:36
VkCommandPool handle() const
Retrieves the Vulkan handle.
VkResult reset()
Resets all child buffers for reusing.
VkResult createBuffers(std::uint32_t count, std::vector< CommandBuffer > *pBuffers, EBufferLevel level=PRIMARY)
Creates multiple command buffers.
bool valid() const
Checks whether this is valid command pool.
VkResult release()
Freees all child buffers.