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
-
commandBuffer
is the command buffer that the pipeline will be bound to. -
pipelineBindPoint
is a VkPipelineBindPoint value specifying to which bind point the pipeline is bound. Binding one does not disturb the others. -
pipeline
is 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_COMPUTE
controls the behavior of all dispatching commands. -
The pipeline bound to
VK_PIPELINE_BIND_POINT_GRAPHICS
controls the behavior of all drawing commands. -
The pipeline bound to
VK_PIPELINE_BIND_POINT_RAY_TRACING_KHR
controls the behavior of vkCmdTraceRaysKHR and vkCmdTraceRaysIndirectKHR. -
The pipeline bound to
VK_PIPELINE_BIND_POINT_SUBPASS_SHADING_HUAWEI
controls the behavior of vkCmdSubpassShadingHUAWEI.
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.