C Specification
To complete recording of a command buffer, call:
// Provided by VK_VERSION_1_0
VkResult vkEndCommandBuffer(
VkCommandBuffer commandBuffer);
Description
The command buffer must have been in the recording state, and, if successful, is moved to the executable state.
If there was an error during recording, the application will be notified by
an unsuccessful return code returned by vkEndCommandBuffer, and the
command buffer will be moved to the invalid
state.
If recording a command would exceed the amount of command pool memory
reserved by
VkCommandPoolMemoryReservationCreateInfo::commandPoolReservedSize
or the maximum supported command buffer size reported in
VkPhysicalDeviceVulkanSC10Properties::maxCommandBufferSize, the
implementation may report a VK_FAULT_TYPE_COMMAND_BUFFER_FULL fault.
The command buffer remains in the recording
state until vkEndCommandBuffer is called.
When vkEndCommandBuffer is called on a command buffer for which the
command pool memory reservation was exceeded during recording, it must
return VK_ERROR_OUT_OF_DEVICE_MEMORY.
If
VkPhysicalDeviceVulkanSC10Properties::deviceNoDynamicHostAllocations
is VK_TRUE, vkEndCommandBuffer must not return
VK_ERROR_OUT_OF_HOST_MEMORY.
Document Notes
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.