Secondary command buffers must not be directly submitted to a queue. To record a secondary command buffer to execute as part of a primary command buffer, call:
// Provided by VK_VERSION_1_0
const VkCommandBuffer* pCommandBuffers);
commandBufferis a handle to a primary command buffer that the secondary command buffers are executed in.
commandBufferCountis the length of the
pCommandBuffersis a pointer to an array of
commandBufferCountsecondary command buffer handles, which are recorded to execute in the primary command buffer in the order they are listed in the array.
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.