allocateCommandBuffers :: MonadIO io=> Devicedeviceis the logical device that owns the command pool.-> CommandBufferAllocateInfopAllocateInfois a pointer to a CommandBufferAllocateInfo structure describing parameters of the allocation.commandPoolmay be accessed any time one of the resulting command buffers is accessed.-> io ("commandBuffers"
::: Vector CommandBuffer)
vkAllocateCommandBuffers - Allocate command buffers from an existing command pool
Description
allocateCommandBuffers can be used to allocate multiple command
buffers. If the allocation of any of those command buffers fails, the
implementation must free all successfully allocated command buffer
objects from this command, set all entries of the pCommandBuffers
array to NULL and return the error.
Filling pCommandBuffers with NULL values on failure is an exception
to the default error behavior that output parameters will have undefined
contents.
When command buffers are first allocated, they are in the initial state.
Valid Usage (Implicit)
devicemust be a valid Device handle
pAllocateInfomust be a valid pointer to a valid CommandBufferAllocateInfo structurepCommandBuffersmust be a valid pointer to an array ofpAllocateInfo->commandBufferCountCommandBuffer handlesThe device must have been created with at least
1queuepAllocateInfo->commandBufferCountmust be greater than0
Return Codes
See Also
VK_VERSION_1_0, CommandBuffer, CommandBufferAllocateInfo, Device