C Specification

Command buffers are objects used to record commands which can be subsequently submitted to a device queue for execution. There are two levels of command buffers - primary command buffers, which can execute secondary command buffers, and which are submitted to queues, and secondary command buffers, which can be executed by primary command buffers, and which are not directly submitted to queues.

Command buffers are represented by VkCommandBuffer handles:

// Provided by VK_VERSION_1_0
VK_DEFINE_HANDLE(VkCommandBuffer)

See Also

VK_VERSION_1_0, VkCommandBufferSubmitInfo, VkSubmitInfo, vkAllocateCommandBuffers, vkBeginCommandBuffer, vkCmdBeginDebugUtilsLabelEXT, vkCmdBeginQuery, vkCmdBeginRenderPass, vkCmdBeginRenderPass2, vkCmdBindDescriptorSets, vkCmdBindIndexBuffer, vkCmdBindPipeline, vkCmdBindVertexBuffers, vkCmdBindVertexBuffers2EXT, vkCmdBlitImage, vkCmdBlitImage2KHR, vkCmdClearAttachments, vkCmdClearColorImage, vkCmdClearDepthStencilImage, vkCmdCopyBuffer, vkCmdCopyBuffer2KHR, vkCmdCopyBufferToImage, vkCmdCopyBufferToImage2KHR, vkCmdCopyImage, vkCmdCopyImage2KHR, vkCmdCopyImageToBuffer, vkCmdCopyImageToBuffer2KHR, vkCmdCopyQueryPoolResults, vkCmdDispatch, vkCmdDispatchBase, vkCmdDispatchIndirect, vkCmdDraw, vkCmdDrawIndexed, vkCmdDrawIndexedIndirect, vkCmdDrawIndexedIndirectCount, vkCmdDrawIndirect, vkCmdDrawIndirectCount, vkCmdEndDebugUtilsLabelEXT, vkCmdEndQuery, vkCmdEndRenderPass, vkCmdEndRenderPass2, vkCmdExecuteCommands, vkCmdFillBuffer, vkCmdInsertDebugUtilsLabelEXT, vkCmdNextSubpass, vkCmdNextSubpass2, vkCmdPipelineBarrier, vkCmdPipelineBarrier2KHR, vkCmdPushConstants, vkCmdRefreshObjectsKHR, vkCmdResetEvent, vkCmdResetEvent2KHR, vkCmdResetQueryPool, vkCmdResolveImage, vkCmdResolveImage2KHR, vkCmdSetBlendConstants, vkCmdSetColorWriteEnableEXT, vkCmdSetCullModeEXT, vkCmdSetDepthBias, vkCmdSetDepthBiasEnableEXT, vkCmdSetDepthBounds, vkCmdSetDepthBoundsTestEnableEXT, vkCmdSetDepthCompareOpEXT, vkCmdSetDepthTestEnableEXT, vkCmdSetDepthWriteEnableEXT, vkCmdSetDeviceMask, vkCmdSetDiscardRectangleEXT, vkCmdSetDiscardRectangleEnableEXT, vkCmdSetDiscardRectangleModeEXT, vkCmdSetEvent, vkCmdSetEvent2KHR, vkCmdSetFragmentShadingRateKHR, vkCmdSetFrontFaceEXT, vkCmdSetLineStippleEXT, vkCmdSetLineWidth, vkCmdSetLogicOpEXT, vkCmdSetPatchControlPointsEXT, vkCmdSetPrimitiveRestartEnableEXT, vkCmdSetPrimitiveTopologyEXT, vkCmdSetRasterizerDiscardEnableEXT, vkCmdSetSampleLocationsEXT, vkCmdSetScissor, vkCmdSetScissorWithCountEXT, vkCmdSetStencilCompareMask, vkCmdSetStencilOpEXT, vkCmdSetStencilReference, vkCmdSetStencilTestEnableEXT, vkCmdSetStencilWriteMask, vkCmdSetVertexInputEXT, vkCmdSetViewport, vkCmdSetViewportWithCountEXT, vkCmdUpdateBuffer, vkCmdWaitEvents, vkCmdWaitEvents2KHR, vkCmdWriteBufferMarker2AMD, vkCmdWriteTimestamp, vkCmdWriteTimestamp2KHR, vkEndCommandBuffer, vkFreeCommandBuffers, vkGetCommandPoolMemoryConsumption, vkResetCommandBuffer

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.

Copyright 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0