To allocate command buffers, call:
VkResult vkAllocateCommandBuffers( VkDevice device, const VkCommandBufferAllocateInfo* pAllocateInfo, VkCommandBuffer* pCommandBuffers);
deviceis the logical device that owns the command pool.
pAllocateInfois a pointer to an instance of the
VkCommandBufferAllocateInfostructure describing parameters of the allocation.
pCommandBuffersis a pointer to an array of
VkCommandBufferhandles in which the resulting command buffer objects are returned. The array must be at least the length specified by the
pAllocateInfo. Each allocated command buffer begins in the initial state.
vkAllocateCommandBuffers can be used to create multiple command
If the creation of any of those command buffers fails, the implementation
must destroy all successfully created command buffer objects from this
command, set all entries of the
pCommandBuffers array to
return the error.
When command buffers are first allocated, they are in the initial state.
For more information, see the Vulkan Specification at URL
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.
Copyright (c) 2014-2018 Khronos Group. This work is licensed under a Creative Commons Attribution 4.0 International License.