15 #include <vsg/vk/Device.h>
27 CommandPool(
Device* device, uint32_t queueFamilyIndex, VkCommandPoolCreateFlags flags = 0);
29 operator VkCommandPool()
const {
return _commandPool; }
30 VkCommandPool vk()
const {
return _commandPool; }
32 void reset(VkCommandPoolResetFlags flags = VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT)
const { vkResetCommandPool(*_device, _commandPool, flags); }
37 Device* getDevice() {
return _device; }
38 const Device* getDevice()
const {
return _device; }
41 virtual ~CommandPool();
49 VkCommandPool _commandPool;
CommandBuffer encapsulates VkCommandBuffer.
Definition: CommandBuffer.h:27
Definition: CommandPool.h:25
void free(CommandBuffer *commandBuffer)
free CommandBuffer
ref_ptr< CommandBuffer > allocate(VkCommandBufferLevel level=VK_COMMAND_BUFFER_LEVEL_PRIMARY)
allocate CommandBuffer from CommandPool
Device encapsulates VkDevice, a logical handle to the PhysicalDevice with capabilities specified duri...
Definition: Device.h:37