Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- createGraphicsPipelines :: PokeChain a => Device -> PipelineCache -> ("createInfos" ::: Vector (GraphicsPipelineCreateInfo a)) -> ("allocator" ::: Maybe AllocationCallbacks) -> IO ("pipelines" ::: Vector Pipeline)
- withGraphicsPipelines :: PokeChain a => Device -> PipelineCache -> Vector (GraphicsPipelineCreateInfo a) -> Maybe AllocationCallbacks -> (Vector Pipeline -> IO r) -> IO r
- createComputePipelines :: PokeChain a => Device -> PipelineCache -> ("createInfos" ::: Vector (ComputePipelineCreateInfo a)) -> ("allocator" ::: Maybe AllocationCallbacks) -> IO ("pipelines" ::: Vector Pipeline)
- withComputePipelines :: PokeChain a => Device -> PipelineCache -> Vector (ComputePipelineCreateInfo a) -> Maybe AllocationCallbacks -> (Vector Pipeline -> IO r) -> IO r
- destroyPipeline :: Device -> Pipeline -> ("allocator" ::: Maybe AllocationCallbacks) -> IO ()
- data SpecializationMapEntry = SpecializationMapEntry {}
- data SpecializationInfo = SpecializationInfo {
- mapEntries :: Vector SpecializationMapEntry
- dataSize :: Word64
- data' :: Ptr ()
- data PipelineShaderStageCreateInfo (es :: [Type]) = PipelineShaderStageCreateInfo {}
- data ComputePipelineCreateInfo (es :: [Type]) = ComputePipelineCreateInfo {}
- data VertexInputBindingDescription = VertexInputBindingDescription {}
- data VertexInputAttributeDescription = VertexInputAttributeDescription {}
- data PipelineVertexInputStateCreateInfo (es :: [Type]) = PipelineVertexInputStateCreateInfo {}
- data PipelineInputAssemblyStateCreateInfo = PipelineInputAssemblyStateCreateInfo {}
- data PipelineTessellationStateCreateInfo (es :: [Type]) = PipelineTessellationStateCreateInfo {}
- data PipelineViewportStateCreateInfo (es :: [Type]) = PipelineViewportStateCreateInfo {}
- data PipelineRasterizationStateCreateInfo (es :: [Type]) = PipelineRasterizationStateCreateInfo {
- next :: Chain es
- flags :: PipelineRasterizationStateCreateFlags
- depthClampEnable :: Bool
- rasterizerDiscardEnable :: Bool
- polygonMode :: PolygonMode
- cullMode :: CullModeFlags
- frontFace :: FrontFace
- depthBiasEnable :: Bool
- depthBiasConstantFactor :: Float
- depthBiasClamp :: Float
- depthBiasSlopeFactor :: Float
- lineWidth :: Float
- data PipelineMultisampleStateCreateInfo (es :: [Type]) = PipelineMultisampleStateCreateInfo {}
- data PipelineColorBlendAttachmentState = PipelineColorBlendAttachmentState {}
- data PipelineColorBlendStateCreateInfo (es :: [Type]) = PipelineColorBlendStateCreateInfo {}
- data PipelineDynamicStateCreateInfo = PipelineDynamicStateCreateInfo {}
- data StencilOpState = StencilOpState {}
- data PipelineDepthStencilStateCreateInfo = PipelineDepthStencilStateCreateInfo {}
- data GraphicsPipelineCreateInfo (es :: [Type]) = GraphicsPipelineCreateInfo {
- next :: Chain es
- flags :: PipelineCreateFlags
- stages :: Vector (SomeStruct PipelineShaderStageCreateInfo)
- vertexInputState :: Maybe (SomeStruct PipelineVertexInputStateCreateInfo)
- inputAssemblyState :: Maybe PipelineInputAssemblyStateCreateInfo
- tessellationState :: Maybe (SomeStruct PipelineTessellationStateCreateInfo)
- viewportState :: Maybe (SomeStruct PipelineViewportStateCreateInfo)
- rasterizationState :: SomeStruct PipelineRasterizationStateCreateInfo
- multisampleState :: Maybe (SomeStruct PipelineMultisampleStateCreateInfo)
- depthStencilState :: Maybe PipelineDepthStencilStateCreateInfo
- colorBlendState :: Maybe (SomeStruct PipelineColorBlendStateCreateInfo)
- dynamicState :: Maybe PipelineDynamicStateCreateInfo
- layout :: PipelineLayout
- renderPass :: RenderPass
- subpass :: Word32
- basePipelineHandle :: Pipeline
- basePipelineIndex :: Int32
Documentation
createGraphicsPipelines :: PokeChain a => Device -> PipelineCache -> ("createInfos" ::: Vector (GraphicsPipelineCreateInfo a)) -> ("allocator" ::: Maybe AllocationCallbacks) -> IO ("pipelines" ::: Vector Pipeline) Source #
vkCreateGraphicsPipelines - Create graphics pipelines
Parameters
Device
is the logical device that creates the graphics pipelines.
PipelineCache
is eitherNULL_HANDLE
, indicating that pipeline caching is disabled; or the handle of a valid pipeline cache object, in which case use of that cache is enabled for the duration of the command.createInfoCount
is the length of thepCreateInfos
andpPipelines
arrays.pCreateInfos
is a pointer to an array ofGraphicsPipelineCreateInfo
structures.pAllocator
controls host memory allocation as described in the Memory Allocation chapter.pPipelines
is a pointer to an array ofPipeline
handles in which the resulting graphics pipeline objects are returned.
Description
The GraphicsPipelineCreateInfo
structure includes an array of shader
create info structures containing all the desired active shader stages,
as well as creation info to define all relevant fixed-function stages,
and a pipeline layout.
Valid Usage
- If the
Flags
member of any element ofpCreateInfos
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, and thebasePipelineIndex
member of that same element is not-1
,basePipelineIndex
must be less than the index intopCreateInfos
that corresponds to that element
- If the
Flags
member of any element ofpCreateInfos
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, the base pipeline must have been created with thePIPELINE_CREATE_ALLOW_DERIVATIVES_BIT
flag set
Valid Usage (Implicit)
- If
PipelineCache
is notNULL_HANDLE
,PipelineCache
must be a validPipelineCache
handle pCreateInfos
must be a valid pointer to an array ofcreateInfoCount
validGraphicsPipelineCreateInfo
structures- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validAllocationCallbacks
structure pPipelines
must be a valid pointer to an array ofcreateInfoCount
Pipeline
handlescreateInfoCount
must be greater than0
- If
PipelineCache
is a valid handle, it must have been created, allocated, or retrieved fromDevice
Return Codes
See Also
AllocationCallbacks
,
Device
, GraphicsPipelineCreateInfo
,
Pipeline
,
PipelineCache
withGraphicsPipelines :: PokeChain a => Device -> PipelineCache -> Vector (GraphicsPipelineCreateInfo a) -> Maybe AllocationCallbacks -> (Vector Pipeline -> IO r) -> IO r Source #
A safe wrapper for createGraphicsPipelines
and destroyPipeline
using
bracket
The allocated value must not be returned from the provided computation
createComputePipelines :: PokeChain a => Device -> PipelineCache -> ("createInfos" ::: Vector (ComputePipelineCreateInfo a)) -> ("allocator" ::: Maybe AllocationCallbacks) -> IO ("pipelines" ::: Vector Pipeline) Source #
vkCreateComputePipelines - Creates a new compute pipeline object
Parameters
Device
is the logical device that creates the compute pipelines.
PipelineCache
is eitherNULL_HANDLE
, indicating that pipeline caching is disabled; or the handle of a valid pipeline cache object, in which case use of that cache is enabled for the duration of the command.createInfoCount
is the length of thepCreateInfos
andpPipelines
arrays.pCreateInfos
is a pointer to an array ofComputePipelineCreateInfo
structures.pAllocator
controls host memory allocation as described in the Memory Allocation chapter.pPipelines
is a pointer to an array ofPipeline
handles in which the resulting compute pipeline objects are returned.
Valid Usage
- If the
Flags
member of any element ofpCreateInfos
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, and thebasePipelineIndex
member of that same element is not-1
,basePipelineIndex
must be less than the index intopCreateInfos
that corresponds to that element
- If the
Flags
member of any element ofpCreateInfos
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, the base pipeline must have been created with thePIPELINE_CREATE_ALLOW_DERIVATIVES_BIT
flag set
Valid Usage (Implicit)
- If
PipelineCache
is notNULL_HANDLE
,PipelineCache
must be a validPipelineCache
handle pCreateInfos
must be a valid pointer to an array ofcreateInfoCount
validComputePipelineCreateInfo
structures- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validAllocationCallbacks
structure pPipelines
must be a valid pointer to an array ofcreateInfoCount
Pipeline
handlescreateInfoCount
must be greater than0
- If
PipelineCache
is a valid handle, it must have been created, allocated, or retrieved fromDevice
Return Codes
See Also
AllocationCallbacks
,
ComputePipelineCreateInfo
, Device
,
Pipeline
,
PipelineCache
withComputePipelines :: PokeChain a => Device -> PipelineCache -> Vector (ComputePipelineCreateInfo a) -> Maybe AllocationCallbacks -> (Vector Pipeline -> IO r) -> IO r Source #
A safe wrapper for createComputePipelines
and destroyPipeline
using
bracket
The allocated value must not be returned from the provided computation
destroyPipeline :: Device -> Pipeline -> ("allocator" ::: Maybe AllocationCallbacks) -> IO () Source #
vkDestroyPipeline - Destroy a pipeline object
Parameters
Device
is the logical device that destroys the pipeline.
Pipeline
is the handle of the pipeline to destroy.pAllocator
controls host memory allocation as described in the Memory Allocation chapter.
Valid Usage
- All submitted commands that refer to
Pipeline
must have completed execution
- If
AllocationCallbacks
were provided whenPipeline
was created, a compatible set of callbacks must be provided here - If no
AllocationCallbacks
were provided whenPipeline
was created,pAllocator
must beNULL
Valid Usage (Implicit)
- If
Pipeline
is notNULL_HANDLE
,Pipeline
must be a validPipeline
handle - If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validAllocationCallbacks
structure - If
Pipeline
is a valid handle, it must have been created, allocated, or retrieved fromDevice
Host Synchronization
- Host access to
Pipeline
must be externally synchronized
See Also
data SpecializationMapEntry Source #
VkSpecializationMapEntry - Structure specifying a specialization map entry
Description
If a constantID
value is not a specialization constant ID used in the
shader, that map entry does not affect the behavior of the pipeline.
Valid Usage
- For a
constantID
specialization constant declared in a shader,size
must match the byte size of theconstantID
. If the specialization constant is of typeboolean
,size
must be the byte size ofBool32
See Also
Instances
data SpecializationInfo Source #
VkSpecializationInfo - Structure specifying specialization info
Description
pMapEntries
is a pointer to a SpecializationMapEntry
structure.
Valid Usage
- The
offset
member of each element ofpMapEntries
must be less thandataSize
- The
size
member of each element ofpMapEntries
must be less than or equal todataSize
minusoffset
Valid Usage (Implicit)
- If
mapEntryCount
is not0
,pMapEntries
must be a valid pointer to an array ofmapEntryCount
validSpecializationMapEntry
structures
- If
dataSize
is not0
,pData
must be a valid pointer to an array ofdataSize
bytes
See Also
SpecializationInfo | |
|
Instances
Show SpecializationInfo Source # | |
Defined in Graphics.Vulkan.Core10.Pipeline showsPrec :: Int -> SpecializationInfo -> ShowS # show :: SpecializationInfo -> String # showList :: [SpecializationInfo] -> ShowS # | |
FromCStruct SpecializationInfo Source # | |
Defined in Graphics.Vulkan.Core10.Pipeline | |
ToCStruct SpecializationInfo Source # | |
Defined in Graphics.Vulkan.Core10.Pipeline withCStruct :: SpecializationInfo -> (Ptr SpecializationInfo -> IO b) -> IO b Source # pokeCStruct :: Ptr SpecializationInfo -> SpecializationInfo -> IO b -> IO b Source # withZeroCStruct :: (Ptr SpecializationInfo -> IO b) -> IO b Source # pokeZeroCStruct :: Ptr SpecializationInfo -> IO b -> IO b Source # cStructSize :: Int Source # | |
Zero SpecializationInfo Source # | |
Defined in Graphics.Vulkan.Core10.Pipeline |
data PipelineShaderStageCreateInfo (es :: [Type]) Source #
VkPipelineShaderStageCreateInfo - Structure specifying parameters of a newly created pipeline shader stage
Valid Usage
- If the
geometry shaders
feature is not enabled,
stage
must not beSHADER_STAGE_GEOMETRY_BIT
- If the
tessellation shaders
feature is not enabled,
stage
must not beSHADER_STAGE_TESSELLATION_CONTROL_BIT
orSHADER_STAGE_TESSELLATION_EVALUATION_BIT
- If the
mesh shader
feature is not enabled,
stage
must not beSHADER_STAGE_MESH_BIT_NV
- If the
task shader
feature is not enabled,
stage
must not beSHADER_STAGE_TASK_BIT_NV
stage
must not beSHADER_STAGE_ALL_GRAPHICS
, orSHADER_STAGE_ALL
pName
must be the name of anOpEntryPoint
inmodule
with an execution model that matchesstage
- If the identified entry point includes any variable in its interface
that is declared with the
ClipDistance
BuiltIn
decoration, that variable must not have an array size greater thanPhysicalDeviceLimits
::maxClipDistances
- If the identified entry point includes any variable in its interface
that is declared with the
CullDistance
BuiltIn
decoration, that variable must not have an array size greater thanPhysicalDeviceLimits
::maxCullDistances
- If the identified entry point includes any variables in its
interface that are declared with the
ClipDistance
orCullDistance
BuiltIn
decoration, those variables must not have array sizes which sum to more thanPhysicalDeviceLimits
::maxCombinedClipAndCullDistances
- If the identified entry point includes any variable in its interface
that is declared with the
SampleMask
BuiltIn
decoration, that variable must not have an array size greater thanPhysicalDeviceLimits
::maxSampleMaskWords
- If
stage
isSHADER_STAGE_VERTEX_BIT
, the identified entry point must not include any input variable in its interface that is decorated withCullDistance
- If
stage
isSHADER_STAGE_TESSELLATION_CONTROL_BIT
orSHADER_STAGE_TESSELLATION_EVALUATION_BIT
, and the identified entry point has anOpExecutionMode
instruction that specifies a patch size withOutputVertices
, the patch size must be greater than0
and less than or equal toPhysicalDeviceLimits
::maxTessellationPatchSize
- If
stage
isSHADER_STAGE_GEOMETRY_BIT
, the identified entry point must have anOpExecutionMode
instruction that specifies a maximum output vertex count that is greater than0
and less than or equal toPhysicalDeviceLimits
::maxGeometryOutputVertices
- If
stage
isSHADER_STAGE_GEOMETRY_BIT
, the identified entry point must have anOpExecutionMode
instruction that specifies an invocation count that is greater than0
and less than or equal toPhysicalDeviceLimits
::maxGeometryShaderInvocations
- If
stage
is a vertex processing stage, and the identified entry point writes toLayer
for any primitive, it must write the same value toLayer
for all vertices of a given primitive - If
stage
is a vertex processing stage, and the identified entry point writes toViewportIndex
for any primitive, it must write the same value toViewportIndex
for all vertices of a given primitive - If
stage
isSHADER_STAGE_FRAGMENT_BIT
, the identified entry point must not include any output variables in its interface decorated withCullDistance
- If
stage
isSHADER_STAGE_FRAGMENT_BIT
, and the identified entry point writes toFragDepth
in any execution path, it must write toFragDepth
in all execution paths - If
stage
isSHADER_STAGE_FRAGMENT_BIT
, and the identified entry point writes toFragStencilRefEXT
in any execution path, it must write toFragStencilRefEXT
in all execution paths - If
stage
isSHADER_STAGE_MESH_BIT_NV
, the identified entry point must have anOpExecutionMode
instruction that specifies a maximum output vertex count,OutputVertices
, that is greater than0
and less than or equal toPhysicalDeviceMeshShaderPropertiesNV
::maxMeshOutputVertices
. - If
stage
isSHADER_STAGE_MESH_BIT_NV
, the identified entry point must have anOpExecutionMode
instruction that specifies a maximum output primitive count,OutputPrimitivesNV
, that is greater than0
and less than or equal toPhysicalDeviceMeshShaderPropertiesNV
::maxMeshOutputPrimitives
. - If
Flags
has thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT_EXT
flag set, the subgroupSizeControl feature must be enabled. - If
Flags
has thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT
flag set, the computeFullSubgroups feature must be enabled. - If a
PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
structure is included in thepNext
chain,Flags
must not have thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT_EXT
flag set. - If a
PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
structure is included in thepNext
chain, the subgroupSizeControl feature must be enabled, andstage
must be a valid bit specified in requiredSubgroupSizeStages. - If a
PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
structure is included in thepNext
chain andstage
isSHADER_STAGE_COMPUTE_BIT
, the local workgroup size of the shader must be less than or equal to the product ofPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
::requiredSubgroupSize
and maxComputeWorkgroupSubgroups. - If a
PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
structure is included in thepNext
chain, andFlags
has thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT
flag set, the local workgroup size in the X dimension of the pipeline must be a multiple ofPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
::requiredSubgroupSize
. - If
Flags
has both thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT
andPIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT_EXT
flags set, the local workgroup size in the X dimension of the pipeline must be a multiple of maxSubgroupSize. - If
Flags
has thePIPELINE_SHADER_STAGE_CREATE_REQUIRE_FULL_SUBGROUPS_BIT_EXT
flag set andFlags
does not have thePIPELINE_SHADER_STAGE_CREATE_ALLOW_VARYING_SUBGROUP_SIZE_BIT_EXT
flag set and noPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
structure is included in thepNext
chain, the local workgroup size in the X dimension of the pipeline must be a multiple of subgroupSize.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO
pNext
must beNULL
or a pointer to a valid instance ofPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be a valid combination ofPipelineShaderStageCreateFlagBits
valuesstage
must be a validShaderStageFlagBits
valuemodule
must be a validShaderModule
handlepName
must be a null-terminated UTF-8 string- If
pSpecializationInfo
is notNULL
,pSpecializationInfo
must be a valid pointer to a validSpecializationInfo
structure
See Also
ComputePipelineCreateInfo
, GraphicsPipelineCreateInfo
,
PipelineShaderStageCreateFlags
,
RayTracingPipelineCreateInfoNV
,
ShaderModule
,
ShaderStageFlagBits
,
SpecializationInfo
,
StructureType
PipelineShaderStageCreateInfo | |
|
Instances
data ComputePipelineCreateInfo (es :: [Type]) Source #
VkComputePipelineCreateInfo - Structure specifying parameters of a newly created compute pipeline
Description
The parameters basePipelineHandle
and basePipelineIndex
are
described in more detail in
Pipeline Derivatives.
Valid Usage
- If
Flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineIndex
is -1,basePipelineHandle
must be a valid handle to a computePipeline
- If
Flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineHandle
isNULL_HANDLE
,basePipelineIndex
must be a valid index into the calling command’spCreateInfos
parameter - If
Flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineIndex
is not -1,basePipelineHandle
must beNULL_HANDLE
- If
Flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineHandle
is notNULL_HANDLE
,basePipelineIndex
must be -1 - The
stage
member ofstage
must beSHADER_STAGE_COMPUTE_BIT
- The shader code for the entry point identified by
stage
and the rest of the state identified by this structure must adhere to the pipeline linking rules described in the Shader Interfaces chapter layout
must be consistent with the layout of the compute shader specified instage
- The number of resources in
layout
accessible to the compute shader stage must be less than or equal toPhysicalDeviceLimits
::maxPerStageResources
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofPipelineCompilerControlCreateInfoAMD
orPipelineCreationFeedbackCreateInfoEXT
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be a valid combination ofPipelineCreateFlagBits
valuesstage
must be a validPipelineShaderStageCreateInfo
structurelayout
must be a validPipelineLayout
handle- Both of
basePipelineHandle
, andlayout
that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the sameDevice
See Also
Pipeline
,
PipelineCreateFlags
,
PipelineLayout
,
PipelineShaderStageCreateInfo
,
StructureType
,
createComputePipelines
ComputePipelineCreateInfo | |
|
Instances
data VertexInputBindingDescription Source #
VkVertexInputBindingDescription - Structure specifying vertex input binding description
Valid Usage (Implicit)
See Also
VertexInputBindingDescription | |
|
Instances
data VertexInputAttributeDescription Source #
VkVertexInputAttributeDescription - Structure specifying vertex input attribute description
Valid Usage (Implicit)
See Also
VertexInputAttributeDescription | |
|
Instances
data PipelineVertexInputStateCreateInfo (es :: [Type]) Source #
VkPipelineVertexInputStateCreateInfo - Structure specifying parameters of a newly created pipeline vertex input state
Valid Usage
vertexBindingDescriptionCount
must be less than or equal toPhysicalDeviceLimits
::maxVertexInputBindings
vertexAttributeDescriptionCount
must be less than or equal toPhysicalDeviceLimits
::maxVertexInputAttributes
- For every
binding
specified by each element ofpVertexAttributeDescriptions
, aVertexInputBindingDescription
must exist inpVertexBindingDescriptions
with the same value ofbinding
- All elements of
pVertexBindingDescriptions
must describe distinct binding numbers - All elements of
pVertexAttributeDescriptions
must describe distinct attribute locations
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO
pNext
must beNULL
or a pointer to a valid instance ofPipelineVertexInputDivisorStateCreateInfoEXT
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be0
- If
vertexBindingDescriptionCount
is not0
,pVertexBindingDescriptions
must be a valid pointer to an array ofvertexBindingDescriptionCount
validVertexInputBindingDescription
structures - If
vertexAttributeDescriptionCount
is not0
,pVertexAttributeDescriptions
must be a valid pointer to an array ofvertexAttributeDescriptionCount
validVertexInputAttributeDescription
structures
See Also
GraphicsPipelineCreateInfo
,
PipelineVertexInputStateCreateFlags
,
StructureType
,
VertexInputAttributeDescription
, VertexInputBindingDescription
PipelineVertexInputStateCreateInfo | |
|
Instances
data PipelineInputAssemblyStateCreateInfo Source #
VkPipelineInputAssemblyStateCreateInfo - Structure specifying parameters of a newly created pipeline input assembly state
Description
Restarting the assembly of primitives discards the most recent index
values if those elements formed an incomplete primitive, and restarts
the primitive assembly using the subsequent indices, but only assembling
the immediately following element through the end of the originally
specified elements. The primitive restart index value comparison is
performed before adding the vertexOffset
value to the index value.
Valid Usage
- If
topology
isPRIMITIVE_TOPOLOGY_POINT_LIST
,PRIMITIVE_TOPOLOGY_LINE_LIST
,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST
,PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
orPRIMITIVE_TOPOLOGY_PATCH_LIST
,primitiveRestartEnable
must beFALSE
- If the
geometry shaders
feature is not enabled,
topology
must not be any ofPRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
,PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY
,PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
orPRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY
- If the
tessellation shaders
feature is not enabled,
topology
must not bePRIMITIVE_TOPOLOGY_PATCH_LIST
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO
pNext
must beNULL
Flags
must be0
topology
must be a validPrimitiveTopology
value
See Also
Bool32
, GraphicsPipelineCreateInfo
,
PipelineInputAssemblyStateCreateFlags
,
PrimitiveTopology
,
StructureType
PipelineInputAssemblyStateCreateInfo | |
|
Instances
data PipelineTessellationStateCreateInfo (es :: [Type]) Source #
VkPipelineTessellationStateCreateInfo - Structure specifying parameters of a newly created pipeline tessellation state
Valid Usage
patchControlPoints
must be greater than zero and less than or equal toPhysicalDeviceLimits
::maxTessellationPatchSize
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO
pNext
must beNULL
or a pointer to a valid instance ofPipelineTessellationDomainOriginStateCreateInfo
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be0
See Also
GraphicsPipelineCreateInfo
,
PipelineTessellationStateCreateFlags
,
StructureType
PipelineTessellationStateCreateInfo | |
|
Instances
data PipelineViewportStateCreateInfo (es :: [Type]) Source #
VkPipelineViewportStateCreateInfo - Structure specifying parameters of a newly created pipeline viewport state
Valid Usage
- If the
multiple viewports
feature is not enabled,
viewportCount
must be1
- If the
multiple viewports
feature is not enabled,
scissorCount
must be1
viewportCount
must be between1
andPhysicalDeviceLimits
::maxViewports
, inclusivescissorCount
must be between1
andPhysicalDeviceLimits
::maxViewports
, inclusivescissorCount
andviewportCount
must be identical- The
x
andy
members ofoffset
member of any element ofpScissors
must be greater than or equal to0
- Evaluation of (
offset.x
+extent.width
) must not cause a signed integer addition overflow for any element ofpScissors
- Evaluation of (
offset.y
+extent.height
) must not cause a signed integer addition overflow for any element ofpScissors
- If the
viewportWScalingEnable
member of aPipelineViewportWScalingStateCreateInfoNV
structure included in thepNext
chain isTRUE
, theviewportCount
member of thePipelineViewportWScalingStateCreateInfoNV
structure must be equal toviewportCount
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofPipelineViewportCoarseSampleOrderStateCreateInfoNV
,PipelineViewportExclusiveScissorStateCreateInfoNV
,PipelineViewportShadingRateImageStateCreateInfoNV
,PipelineViewportSwizzleStateCreateInfoNV
, orPipelineViewportWScalingStateCreateInfoNV
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be0
viewportCount
must be greater than0
scissorCount
must be greater than0
See Also
GraphicsPipelineCreateInfo
,
PipelineViewportStateCreateFlags
,
Rect2D
,
StructureType
,
Viewport
PipelineViewportStateCreateInfo | |
|
Instances
data PipelineRasterizationStateCreateInfo (es :: [Type]) Source #
VkPipelineRasterizationStateCreateInfo - Structure specifying parameters of a newly created pipeline rasterization state
Description
The application can also add a
PipelineRasterizationStateRasterizationOrderAMD
structure to the pNext
chain of a
PipelineRasterizationStateCreateInfo
structure. This structure enables
selecting the rasterization order to use when rendering with the
corresponding graphics pipeline as described in
Rasterization Order.
Valid Usage
- If the
depth clamping
feature is not enabled,
depthClampEnable
must beFALSE
- If the
non-solid fill modes
feature is not enabled,
PolygonMode
must bePOLYGON_MODE_FILL
orPOLYGON_MODE_FILL_RECTANGLE_NV
- If the
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_NV_fill_rectangle
extension is not enabled,PolygonMode
must not bePOLYGON_MODE_FILL_RECTANGLE_NV
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofPipelineRasterizationConservativeStateCreateInfoEXT
,PipelineRasterizationDepthClipStateCreateInfoEXT
,PipelineRasterizationLineStateCreateInfoEXT
,PipelineRasterizationStateRasterizationOrderAMD
, orPipelineRasterizationStateStreamCreateInfoEXT
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be0
PolygonMode
must be a validPolygonMode
valuecullMode
must be a valid combination ofCullModeFlagBits
valuesFrontFace
must be a validFrontFace
value
See Also
Bool32
,
CullModeFlags
,
FrontFace
,
GraphicsPipelineCreateInfo
,
PipelineRasterizationStateCreateFlags
,
PolygonMode
,
StructureType
PipelineRasterizationStateCreateInfo | |
|
Instances
data PipelineMultisampleStateCreateInfo (es :: [Type]) Source #
VkPipelineMultisampleStateCreateInfo - Structure specifying parameters of a newly created pipeline multisample state
Valid Usage
- If the
sample rate shading
feature is not enabled,
sampleShadingEnable
must beFALSE
- If the
alpha to one
feature is not enabled,
alphaToOneEnable
must beFALSE
minSampleShading
must be in the range [0,1]- If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and if the subpass has any color attachments andrasterizationSamples
is greater than the number of color samples, thensampleShadingEnable
must beFALSE
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofPipelineCoverageModulationStateCreateInfoNV
,PipelineCoverageReductionStateCreateInfoNV
,PipelineCoverageToColorStateCreateInfoNV
, orPipelineSampleLocationsStateCreateInfoEXT
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be0
rasterizationSamples
must be a validSampleCountFlagBits
value- If
pSampleMask
is notNULL
,pSampleMask
must be a valid pointer to an array of \(\lceil{\mathit{rasterizationSamples} \over 32}\rceil\)SampleMask
values
See Also
Bool32
, GraphicsPipelineCreateInfo
,
PipelineMultisampleStateCreateFlags
,
SampleCountFlagBits
,
SampleMask
,
StructureType
PipelineMultisampleStateCreateInfo | |
|
Instances
data PipelineColorBlendAttachmentState Source #
VkPipelineColorBlendAttachmentState - Structure specifying a pipeline color blend attachment state
Valid Usage
- If the
dual source blending
feature is not enabled,
srcColorBlendFactor
must not beBLEND_FACTOR_SRC1_COLOR
,BLEND_FACTOR_ONE_MINUS_SRC1_COLOR
,BLEND_FACTOR_SRC1_ALPHA
, orBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA
- If the
dual source blending
feature is not enabled,
dstColorBlendFactor
must not beBLEND_FACTOR_SRC1_COLOR
,BLEND_FACTOR_ONE_MINUS_SRC1_COLOR
,BLEND_FACTOR_SRC1_ALPHA
, orBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA
- If the
dual source blending
feature is not enabled,
srcAlphaBlendFactor
must not beBLEND_FACTOR_SRC1_COLOR
,BLEND_FACTOR_ONE_MINUS_SRC1_COLOR
,BLEND_FACTOR_SRC1_ALPHA
, orBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA
- If the
dual source blending
feature is not enabled,
dstAlphaBlendFactor
must not beBLEND_FACTOR_SRC1_COLOR
,BLEND_FACTOR_ONE_MINUS_SRC1_COLOR
,BLEND_FACTOR_SRC1_ALPHA
, orBLEND_FACTOR_ONE_MINUS_SRC1_ALPHA
- If either of
colorBlendOp
oralphaBlendOp
is an advanced blend operation, thencolorBlendOp
must equalalphaBlendOp
- If
PhysicalDeviceBlendOperationAdvancedPropertiesEXT
::advancedBlendIndependentBlend
isFALSE
andcolorBlendOp
is an advanced blend operation, thencolorBlendOp
must be the same for all attachments. - If
PhysicalDeviceBlendOperationAdvancedPropertiesEXT
::advancedBlendIndependentBlend
isFALSE
andalphaBlendOp
is an advanced blend operation, thenalphaBlendOp
must be the same for all attachments. - If
PhysicalDeviceBlendOperationAdvancedPropertiesEXT
::advancedBlendAllOperations
isFALSE
, thencolorBlendOp
must not beBLEND_OP_ZERO_EXT
,BLEND_OP_SRC_EXT
,BLEND_OP_DST_EXT
,BLEND_OP_SRC_OVER_EXT
,BLEND_OP_DST_OVER_EXT
,BLEND_OP_SRC_IN_EXT
,BLEND_OP_DST_IN_EXT
,BLEND_OP_SRC_OUT_EXT
,BLEND_OP_DST_OUT_EXT
,BLEND_OP_SRC_ATOP_EXT
,BLEND_OP_DST_ATOP_EXT
,BLEND_OP_XOR_EXT
,BLEND_OP_INVERT_EXT
,BLEND_OP_INVERT_RGB_EXT
,BLEND_OP_LINEARDODGE_EXT
,BLEND_OP_LINEARBURN_EXT
,BLEND_OP_VIVIDLIGHT_EXT
,BLEND_OP_LINEARLIGHT_EXT
,BLEND_OP_PINLIGHT_EXT
,BLEND_OP_HARDMIX_EXT
,BLEND_OP_PLUS_EXT
,BLEND_OP_PLUS_CLAMPED_EXT
,BLEND_OP_PLUS_CLAMPED_ALPHA_EXT
,BLEND_OP_PLUS_DARKER_EXT
,BLEND_OP_MINUS_EXT
,BLEND_OP_MINUS_CLAMPED_EXT
,BLEND_OP_CONTRAST_EXT
,BLEND_OP_INVERT_OVG_EXT
,BLEND_OP_RED_EXT
,BLEND_OP_GREEN_EXT
, orBLEND_OP_BLUE_EXT
- If
colorBlendOp
oralphaBlendOp
is an advanced blend operation, thenSubpassDescription
::colorAttachmentCount
of the subpass this pipeline is compiled against must be less than or equal toPhysicalDeviceBlendOperationAdvancedPropertiesEXT
::advancedBlendMaxColorAttachments
Valid Usage (Implicit)
srcColorBlendFactor
must be a validBlendFactor
value
dstColorBlendFactor
must be a validBlendFactor
valuecolorBlendOp
must be a validBlendOp
valuesrcAlphaBlendFactor
must be a validBlendFactor
valuedstAlphaBlendFactor
must be a validBlendFactor
valuealphaBlendOp
must be a validBlendOp
valuecolorWriteMask
must be a valid combination ofColorComponentFlagBits
values
See Also
BlendFactor
,
BlendOp
,
Bool32
,
ColorComponentFlags
,
PipelineColorBlendStateCreateInfo
PipelineColorBlendAttachmentState | |
|
Instances
data PipelineColorBlendStateCreateInfo (es :: [Type]) Source #
VkPipelineColorBlendStateCreateInfo - Structure specifying parameters of a newly created pipeline color blend state
Description
Each element of the pAttachments
array is a
PipelineColorBlendAttachmentState
structure specifying per-target
blending state for each individual color attachment. If the
independent blending
feature is not enabled on the device, all
PipelineColorBlendAttachmentState
elements in the pAttachments
array
must be identical.
Valid Usage
- If the
independent blending
feature is not enabled, all elements of
pAttachments
must be identical
- If the
logic operations
feature is not enabled,
logicOpEnable
must beFALSE
- If
logicOpEnable
isTRUE
,LogicOp
must be a validLogicOp
value
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO
pNext
must beNULL
or a pointer to a valid instance ofPipelineColorBlendAdvancedStateCreateInfoEXT
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be0
- If
attachmentCount
is not0
,pAttachments
must be a valid pointer to an array ofattachmentCount
validPipelineColorBlendAttachmentState
structures
See Also
Bool32
, GraphicsPipelineCreateInfo
,
LogicOp
,
PipelineColorBlendAttachmentState
,
PipelineColorBlendStateCreateFlags
,
StructureType
PipelineColorBlendStateCreateInfo | |
|
Instances
data PipelineDynamicStateCreateInfo Source #
VkPipelineDynamicStateCreateInfo - Structure specifying parameters of a newly created pipeline dynamic state
Valid Usage
- Each element of
pDynamicStates
must be unique
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO
pNext
must beNULL
Flags
must be0
- If
dynamicStateCount
is not0
,pDynamicStates
must be a valid pointer to an array ofdynamicStateCount
validDynamicState
values
See Also
DynamicState
,
GraphicsPipelineCreateInfo
,
PipelineDynamicStateCreateFlags
,
StructureType
PipelineDynamicStateCreateInfo | |
|
Instances
Show PipelineDynamicStateCreateInfo Source # | |
Defined in Graphics.Vulkan.Core10.Pipeline | |
FromCStruct PipelineDynamicStateCreateInfo Source # | |
ToCStruct PipelineDynamicStateCreateInfo Source # | |
Defined in Graphics.Vulkan.Core10.Pipeline withCStruct :: PipelineDynamicStateCreateInfo -> (Ptr PipelineDynamicStateCreateInfo -> IO b) -> IO b Source # pokeCStruct :: Ptr PipelineDynamicStateCreateInfo -> PipelineDynamicStateCreateInfo -> IO b -> IO b Source # withZeroCStruct :: (Ptr PipelineDynamicStateCreateInfo -> IO b) -> IO b Source # pokeZeroCStruct :: Ptr PipelineDynamicStateCreateInfo -> IO b -> IO b Source # cStructSize :: Int Source # | |
Zero PipelineDynamicStateCreateInfo Source # | |
Defined in Graphics.Vulkan.Core10.Pipeline |
data StencilOpState Source #
VkStencilOpState - Structure specifying stencil operation state
Valid Usage (Implicit)
See Also
StencilOpState | |
|
Instances
data PipelineDepthStencilStateCreateInfo Source #
VkPipelineDepthStencilStateCreateInfo - Structure specifying parameters of a newly created pipeline depth stencil state
Valid Usage
- If the
depth bounds testing
feature is not enabled,
depthBoundsTestEnable
must beFALSE
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO
pNext
must beNULL
Flags
must be0
depthCompareOp
must be a validCompareOp
valuefront
must be a validStencilOpState
structureback
must be a validStencilOpState
structure
See Also
Bool32
,
CompareOp
,
GraphicsPipelineCreateInfo
,
PipelineDepthStencilStateCreateFlags
,
StencilOpState
,
StructureType
PipelineDepthStencilStateCreateInfo | |
|
Instances
data GraphicsPipelineCreateInfo (es :: [Type]) Source #
VkGraphicsPipelineCreateInfo - Structure specifying parameters of a newly created graphics pipeline
Description
The parameters basePipelineHandle
and basePipelineIndex
are
described in more detail in
Pipeline Derivatives.
If any shader stage fails to compile, the compile log will be reported
back to the application, and
ERROR_INVALID_SHADER_NV
will be
generated.
Valid Usage
- If
Flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineIndex
is -1,basePipelineHandle
must be a valid handle to a graphicsPipeline
- If
Flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineHandle
isNULL_HANDLE
,basePipelineIndex
must be a valid index into the calling command’spCreateInfos
parameter - If
Flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineIndex
is not -1,basePipelineHandle
must beNULL_HANDLE
- If
Flags
contains thePIPELINE_CREATE_DERIVATIVE_BIT
flag, andbasePipelineHandle
is notNULL_HANDLE
,basePipelineIndex
must be -1 - The
stage
member of each element ofpStages
must be unique - The geometric shader stages provided in
pStages
must be either from the mesh shading pipeline (stage
isSHADER_STAGE_TASK_BIT_NV
orSHADER_STAGE_MESH_BIT_NV
) or from the primitive shading pipeline (stage
isSHADER_STAGE_VERTEX_BIT
,SHADER_STAGE_TESSELLATION_CONTROL_BIT
,SHADER_STAGE_TESSELLATION_EVALUATION_BIT
, orSHADER_STAGE_GEOMETRY_BIT
). - The
stage
member of one element ofpStages
must be eitherSHADER_STAGE_VERTEX_BIT
orSHADER_STAGE_MESH_BIT_NV
. - The
stage
member of each element ofpStages
must not beSHADER_STAGE_COMPUTE_BIT
- If
pStages
includes a tessellation control shader stage, it must include a tessellation evaluation shader stage - If
pStages
includes a tessellation evaluation shader stage, it must include a tessellation control shader stage - If
pStages
includes a tessellation control shader stage and a tessellation evaluation shader stage,pTessellationState
must be a valid pointer to a validPipelineTessellationStateCreateInfo
structure - If
pStages
includes tessellation shader stages, the shader code of at least one stage must contain anOpExecutionMode
instruction that specifies the type of subdivision in the pipeline - If
pStages
includes tessellation shader stages, and the shader code of both stages contain anOpExecutionMode
instruction that specifies the type of subdivision in the pipeline, they must both specify the same subdivision mode - If
pStages
includes tessellation shader stages, the shader code of at least one stage must contain anOpExecutionMode
instruction that specifies the output patch size in the pipeline - If
pStages
includes tessellation shader stages, and the shader code of both contain anOpExecutionMode
instruction that specifies the out patch size in the pipeline, they must both specify the same patch size - If
pStages
includes tessellation shader stages, thetopology
member ofpInputAssembly
must bePRIMITIVE_TOPOLOGY_PATCH_LIST
- If the
topology
member ofpInputAssembly
isPRIMITIVE_TOPOLOGY_PATCH_LIST
,pStages
must include tessellation shader stages - If
pStages
includes a geometry shader stage, and does not include any tessellation shader stages, its shader code must contain anOpExecutionMode
instruction that specifies an input primitive type that is compatible with the primitive topology specified inpInputAssembly
- If
pStages
includes a geometry shader stage, and also includes tessellation shader stages, its shader code must contain anOpExecutionMode
instruction that specifies an input primitive type that is compatible with the primitive topology that is output by the tessellation stages - If
pStages
includes a fragment shader stage and a geometry shader stage, and the fragment shader code reads from an input variable that is decorated withPrimitiveID
, then the geometry shader code must write to a matching output variable, decorated withPrimitiveID
, in all execution paths - If
pStages
includes a fragment shader stage, its shader code must not read from any input attachment that is defined asATTACHMENT_UNUSED
insubpass
- The shader code for the entry points identified by
pStages
, and the rest of the state identified by this structure must adhere to the pipeline linking rules described in the Shader Interfaces chapter - If rasterization is not disabled and
subpass
uses a depth/stencil attachment inRenderPass
that has a layout ofIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
orIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
in theAttachmentReference
defined bysubpass
, thedepthWriteEnable
member ofpDepthStencilState
must beFALSE
- If rasterization is not disabled and
subpass
uses a depth/stencil attachment inRenderPass
that has a layout ofIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
orIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
in theAttachmentReference
defined bysubpass
, thefailOp
,passOp
anddepthFailOp
members of each of thefront
andback
members ofpDepthStencilState
must beSTENCIL_OP_KEEP
- If rasterization is not disabled and the subpass uses color
attachments, then for each color attachment in the subpass the
blendEnable
member of the corresponding element of thepAttachment
member ofpColorBlendState
must beFALSE
if the attached image’s format features does not containFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
. - If rasterization is not disabled and the subpass uses color
attachments, the
attachmentCount
member ofpColorBlendState
must be equal to thecolorAttachmentCount
used to createsubpass
- If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_VIEWPORT
, thepViewports
member ofpViewportState
must be a valid pointer to an array ofpViewportState->viewportCount
validViewport
structures - If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_SCISSOR
, thepScissors
member ofpViewportState
must be a valid pointer to an array ofpViewportState->scissorCount
Rect2D
structures - If the wide lines feature is not enabled, and no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_LINE_WIDTH
, thelineWidth
member ofpRasterizationState
must be1.0
- If the
rasterizerDiscardEnable
member ofpRasterizationState
isFALSE
,pViewportState
must be a valid pointer to a validPipelineViewportStateCreateInfo
structure - If the
rasterizerDiscardEnable
member ofpRasterizationState
isFALSE
,pMultisampleState
must be a valid pointer to a validPipelineMultisampleStateCreateInfo
structure - If the
rasterizerDiscardEnable
member ofpRasterizationState
isFALSE
, andsubpass
uses a depth/stencil attachment,pDepthStencilState
must be a valid pointer to a validPipelineDepthStencilStateCreateInfo
structure - If the
rasterizerDiscardEnable
member ofpRasterizationState
isFALSE
, andsubpass
uses color attachments,pColorBlendState
must be a valid pointer to a validPipelineColorBlendStateCreateInfo
structure - If the depth bias clamping feature is not enabled, no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_DEPTH_BIAS
, and thedepthBiasEnable
member ofpRasterizationState
isTRUE
, thedepthBiasClamp
member ofpRasterizationState
must be0.0
- If the
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VK_EXT_depth_range_unrestricted
extension is not enabled and no element of thepDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_DEPTH_BOUNDS
, and thedepthBoundsTestEnable
member ofpDepthStencilState
isTRUE
, theminDepthBounds
andmaxDepthBounds
members ofpDepthStencilState
must be between0.0
and1.0
, inclusive - If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
, and thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
structure included in thepNext
chain ofpMultisampleState
isTRUE
,sampleLocationsInfo.sampleLocationGridSize.width
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.width
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equalingrasterizationSamples
- If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
, and thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
structure included in thepNext
chain ofpMultisampleState
isTRUE
,sampleLocationsInfo.sampleLocationGridSize.height
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.height
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equalingrasterizationSamples
- If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
, and thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
structure included in thepNext
chain ofpMultisampleState
isTRUE
,sampleLocationsInfo.sampleLocationsPerPixel
must equalrasterizationSamples
- If the
sampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
structure included in thepNext
chain ofpMultisampleState
isTRUE
, the fragment shader code must not statically use the extended instructionInterpolateAtSample
layout
must be consistent with all shaders specified inpStages
- If neither the
VK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, and ifsubpass
uses color and/or depth/stencil attachments, then therasterizationSamples
member ofpMultisampleState
must be the same as the sample count for those subpass attachments - If the
VK_AMD_mixed_attachment_samples
extension is enabled, and ifsubpass
uses color and/or depth/stencil attachments, then therasterizationSamples
member ofpMultisampleState
must equal the maximum of the sample counts of those subpass attachments - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and ifsubpass
has a depth/stencil attachment and depth test, stencil test, or depth bounds test are enabled, then therasterizationSamples
member ofpMultisampleState
must be the same as the sample count of the depth/stencil attachment - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and ifsubpass
has any color attachments, then therasterizationSamples
member ofpMultisampleState
must be greater than or equal to the sample count for those subpass attachments - If the
VK_NV_coverage_reduction_mode
extension is enabled, the coverage reduction mode specified byPipelineCoverageReductionStateCreateInfoNV
::coverageReductionMode
, therasterizationSamples
member ofpMultisampleState
and the sample counts for the color and depth/stencil attachments (if the subpass has them) must be a valid combination returned bygetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV
- If
subpass
does not use any color and/or depth/stencil attachments, then therasterizationSamples
member ofpMultisampleState
must follow the rules for a zero-attachment subpass subpass
must be a valid subpass withinRenderPass
- If the
RenderPass
has multiview enabled andsubpass
has more than one bit set in the view mask andmultiviewTessellationShader
is not enabled, thenpStages
must not include tessellation shaders. - If the
RenderPass
has multiview enabled andsubpass
has more than one bit set in the view mask andmultiviewGeometryShader
is not enabled, thenpStages
must not include a geometry shader. - If the
RenderPass
has multiview enabled andsubpass
has more than one bit set in the view mask, shaders in the pipeline must not write to theLayer
built-in output - If the
RenderPass
has multiview enabled, then all shaders must not include variables decorated with theLayer
built-in decoration in their interfaces. Flags
must not contain thePIPELINE_CREATE_DISPATCH_BASE
flag.- If
pStages
includes a fragment shader stage and an input attachment was referenced by theRenderPassInputAttachmentAspectCreateInfo
atRenderPass
create time, its shader code must not read from any aspect that was not specified in theaspectMask
of the correspondingInputAttachmentAspectReference
structure. - The number of resources in
layout
accessible to each shader stage that is used by the pipeline must be less than or equal toPhysicalDeviceLimits
::maxPerStageResources
- If no element of the
pDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
, and theviewportWScalingEnable
member of aPipelineViewportWScalingStateCreateInfoNV
structure, included in thepNext
chain ofpViewportState
, isTRUE
, thepViewportWScalings
member of thePipelineViewportWScalingStateCreateInfoNV
must be a pointer to an array ofPipelineViewportWScalingStateCreateInfoNV
::viewportCount
validViewportWScalingNV
structures - If
pStages
includes a vertex shader stage,pVertexInputState
must be a valid pointer to a validPipelineVertexInputStateCreateInfo
structure - If
pStages
includes a vertex shader stage,pInputAssemblyState
must be a valid pointer to a validPipelineInputAssemblyStateCreateInfo
structure - The
Xfb
execution mode can be specified by only one shader stage inpStages
- If any shader stage in
pStages
specifiesXfb
execution mode it must be the last vertex processing stage - If a
PipelineRasterizationStateStreamCreateInfoEXT
::rasterizationStream
value other than zero is specified, all variables in the output interface of the entry point being compiled decorated withPosition
,PointSize
,ClipDistance
, orCullDistance
must all be decorated with identicalStream
values that match therasterizationStream
- If
PipelineRasterizationStateStreamCreateInfoEXT
::rasterizationStream
is zero, or not specified, all variables in the output interface of the entry point being compiled decorated withPosition
,PointSize
,ClipDistance
, orCullDistance
must all be decorated with aStream
value of zero, or must not specify theStream
decoration - If the last vertex processing stage is a geometry shader, and that
geometry shader uses the
GeometryStreams
capability, thenPhysicalDeviceTransformFeedbackFeaturesEXT
::geometryStreams
feature must be enabled - If there are any mesh shader stages in the pipeline there must not
be any shader stage in the pipeline with a
Xfb
execution mode. - If the
lineRasterizationMode
member of aPipelineRasterizationLineStateCreateInfoEXT
structure included in thepNext
chain ofpRasterizationState
isLINE_RASTERIZATION_MODE_BRESENHAM_EXT
orLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
and if rasterization is enabled, then thealphaToCoverageEnable
,alphaToOneEnable
, andsampleShadingEnable
members ofpMultisampleState
must all beFALSE
- If the
stippledLineEnable
member ofPipelineRasterizationLineStateCreateInfoEXT
isTRUE
and no element of thepDynamicStates
member ofpDynamicState
isDYNAMIC_STATE_LINE_STIPPLE_EXT
, then thelineStippleFactor
member ofPipelineRasterizationLineStateCreateInfoEXT
must be in the range [1,256]
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO
- Each
pNext
member of any structure (including this one) in thepNext
chain must be eitherNULL
or a pointer to a valid instance ofPipelineCompilerControlCreateInfoAMD
,PipelineCreationFeedbackCreateInfoEXT
,PipelineDiscardRectangleStateCreateInfoEXT
, orPipelineRepresentativeFragmentTestStateCreateInfoNV
- The
sType
value of each struct in thepNext
chain must be unique Flags
must be a valid combination ofPipelineCreateFlagBits
valuespStages
must be a valid pointer to an array ofstageCount
validPipelineShaderStageCreateInfo
structurespRasterizationState
must be a valid pointer to a validPipelineRasterizationStateCreateInfo
structure- If
pDynamicState
is notNULL
,pDynamicState
must be a valid pointer to a validPipelineDynamicStateCreateInfo
structure layout
must be a validPipelineLayout
handleRenderPass
must be a validRenderPass
handlestageCount
must be greater than0
- Each of
basePipelineHandle
,layout
, andRenderPass
that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the sameDevice
See Also
Pipeline
,
PipelineColorBlendStateCreateInfo
,
PipelineCreateFlags
,
PipelineDepthStencilStateCreateInfo
, PipelineDynamicStateCreateInfo
,
PipelineInputAssemblyStateCreateInfo
,
PipelineLayout
,
PipelineMultisampleStateCreateInfo
,
PipelineRasterizationStateCreateInfo
, PipelineShaderStageCreateInfo
,
PipelineTessellationStateCreateInfo
,
PipelineVertexInputStateCreateInfo
, PipelineViewportStateCreateInfo
,
RenderPass
,
StructureType
,
createGraphicsPipelines
GraphicsPipelineCreateInfo | |
|