31 void setLevel(VkCommandBufferLevel level);
35 std::unique_ptr<API::CommandBuffer>
build(VkResult* returnResult =
nullptr);
37 bool build(std::vector<API::CommandBuffer>& commandBuffers, VkResult* returnResult =
nullptr);
38 std::vector<std::unique_ptr<API::CommandBuffer>>
build(uint32_t count, VkResult* returnResult =
nullptr);
44 VkCommandBufferLevel
_level{VK_COMMAND_BUFFER_LEVEL_PRIMARY};
const API::CommandPool & _commandPool
bool build(API::CommandBuffer &instance, VkResult *returnResult=nullptr)
void setLevel(VkCommandBufferLevel level)
const API::Device & _device
VkCommandBufferLevel _level
CommandBuffer(const API::Device &device, const API::CommandPool &commandPool)
CommandBuffer & operator=(const CommandBuffer &)=delete