C Specification
Once a pipeline has been created, it can be bound to the command buffer using the command:
// Provided by VK_VERSION_1_0
void vkCmdBindPipeline(
VkCommandBuffer commandBuffer,
VkPipelineBindPoint pipelineBindPoint,
VkPipeline pipeline);
Parameters
-
commandBufferis the command buffer that the pipeline will be bound to. -
pipelineBindPointis a VkPipelineBindPoint value specifying to which bind point the pipeline is bound. Binding one does not disturb the others. -
pipelineis the pipeline to be bound.
Description
Once bound, a pipeline binding affects subsequent commands that interact with the given pipeline type in the command buffer until a different pipeline of the same type is bound to the bind point. Commands that do not interact with the given pipeline type must not be affected by the pipeline state.
-
The pipeline bound to
VK_PIPELINE_BIND_POINT_COMPUTEcontrols the behavior of all dispatching commands. -
The pipeline bound to
VK_PIPELINE_BIND_POINT_GRAPHICScontrols the behavior of all drawing commands. -
The pipeline bound to
VK_PIPELINE_BIND_POINT_RAY_TRACING_KHRcontrols the behavior of vkCmdTraceRaysKHR and vkCmdTraceRaysIndirectKHR.
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.