Class VkComputePipelineCreateInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkComputePipelineCreateInfo extends Struct<VkComputePipelineCreateInfo> implements NativeResource
Structure specifying parameters of a newly created compute pipeline.
Description

The parameters basePipelineHandle and basePipelineIndex are described in more detail in Pipeline Derivatives.

If a VkPipelineCreateFlags2CreateInfoKHR structure is present in the pNext chain, VkPipelineCreateFlags2CreateInfoKHR::flags from that structure is used instead of flags from this structure.

Valid Usage
  • If flags contains the PIPELINE_CREATE_DERIVATIVE_BIT flag, and basePipelineIndex is -1, basePipelineHandle must be a valid compute VkPipeline handle
  • If flags contains the PIPELINE_CREATE_DERIVATIVE_BIT flag, and basePipelineHandle is NULL_HANDLE, basePipelineIndex must be a valid index into the calling command’s pCreateInfos parameter
  • If flags contains the PIPELINE_CREATE_DERIVATIVE_BIT flag, basePipelineIndex must be -1 or basePipelineHandle must be NULL_HANDLE
  • If a push constant block is declared in a shader, a push constant range in layout must match both the shader stage and range
  • If a resource variables is declared in a shader, a descriptor slot in layout must match the shader stage
  • If a resource variables is declared in a shader, and the descriptor type is not DESCRIPTOR_TYPE_MUTABLE_EXT, a descriptor slot in layout must match the descriptor type
  • If a resource variables is declared in a shader as an array, a descriptor slot in layout must match the descriptor count
Valid Usage (Implicit)
See Also

VkPipelineShaderStageCreateInfo, CreateComputePipelines, GetPipelineIndirectMemoryRequirementsNV

Layout


 struct VkComputePipelineCreateInfo {
     VkStructureType sType();
     void const * pNext();
     VkPipelineCreateFlags flags();
     VkPipelineShaderStageCreateInfo stage();
     VkPipelineLayout layout();
     VkPipeline basePipelineHandle();
     int32_t basePipelineIndex();
 }