Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Name
VK_HUAWEI_cluster_culling_shader - device extension
VK_HUAWEI_cluster_culling_shader
- Name String
VK_HUAWEI_cluster_culling_shader
- Extension Type
- Device extension
- Registered Extension Number
- 405
- Revision
- 2
- Ratification Status
- Not ratified
- Extension and Version Dependencies
- VK_KHR_get_physical_device_properties2
- Contact
- Extension Proposal
- VK_HUAWEI_cluster_culling_shader
Other Extension Metadata
- Last Modified Date
- 2022-11-17
- Interactions and External Dependencies
- This extension requires SPV_HUAWEI_cluster_culling_shader.
- This extension provides API support for GL_HUAWEI_cluster_culling_shader.
- Contributors
- Yuchang Wang, Huawei
- Juntao Li, Huawei
- Pan Gao, Huawei
- Jie Cao, Huawei
- Yunjin Zhang, Huawei
- Shujie Zhou, Huawei
- Chaojun Wang, Huawei
- Jiajun Hu, Huawei
- Cong Zhang, Huawei
Description
Cluster Culling Shaders (CCS) are similar to the existing compute shaders. Their main purpose is to provide an execution environment in order to perform coarse-level geometry culling and LOD selection more efficiently on the GPU.
The traditional 2-pass GPU culling solution using a compute shader sometimes needs a pipeline barrier between compute and graphics pipeline to optimize performance. An additional compaction process may also be required. This extension addresses these shortcomings, allowing compute shaders to directly emit visible clusters to the following graphics pipeline.
A set of new built-in output variables are used to express a visible cluster. In addition, a new built-in function is used to emit these variables from CCS to the IA stage. The IA stage can use these variables to fetches vertices of a visible cluster and drive vertex shaders to shading these vertices.
Note that CCS do not work with geometry or tessellation shaders, but both IA and vertex shaders are preserved. Vertex shaders are still used for vertex position shading, instead of directly outputting transformed vertices from the compute shader. This makes CCS more suitable for mobile GPUs.
New Commands
New Structures
Extending
PhysicalDeviceFeatures2
,DeviceCreateInfo
:
New Enum Constants
HUAWEI_CLUSTER_CULLING_SHADER_SPEC_VERSION
Extending
PipelineStageFlagBits2
:Extending
QueryPipelineStatisticFlagBits
:Extending
ShaderStageFlagBits
:Extending
StructureType
:
New Built-In Variables
- VertexCountHUAWEI
- InstanceCountHUAWEI
- FirstIndexHUAWEI
- FirstVertexHUAWEI
- VertexOffsetHUAWEI
- FirstInstanceHUAWEI
- ClusterIDHUAWEI
New SPIR-V Capability
Sample Code
Example of cluster culling in a GLSL shader
#extension GL_HUAWEI_cluster_culling_shader: enable #define GPU_WARP_SIZE 32 #define GPU_GROUP_SIZE GPU_WARP_SIZE #define GPU_CLUSTER_PER_INVOCATION 1 #define GPU_CLUSTER_PER_WORKGROUP (GPU_GROUP_SIZE * GPU_CLUSTER_PER_INVOCATION) // Number of threads per workgroup // - 1D only // - warpsize = 32 layout(local_size_x=GPU_GROUP_SIZE, local_size_y=1, local_size_z=1) in; #define GPU_CLUSTER_DESCRIPTOR_BINDING 0 #define GPU_DRAW_BUFFER_BINDING 1 #define GPU_INSTANCE_DESCRIPTOR_BINDING 2 const float pi_half = 1.570795; uint instance_id; struct BoundingSphere { vec3 center; float radius; }; struct BoundingCone { vec3 normal; float angle; }; struct ClusterDescriptor { BoundingSphere sphere; BoundingCone cone; uint instance_idx; }; struct InstanceData { mat4 mvp_matrix; // mvp matrix. vec4 frustum_planes[6]; // six frustum planes mat4 model_matrix_transpose_inverse; // inverse transpose of model matrix. vec3 view_origin; // view original }; struct InstanceDescriptor { uint begin; uint end; uint cluster_count; uint debug; BoundingSphere sphere; InstanceData instance_data; }; struct DrawElementsCommand{ uint indexcount; uint instanceCount; uint firstIndex; int vertexoffset; uint firstInstance; uint cluster_id; }; // indexed mode out gl_PerClusterHUAWEI{ uint gl_IndexCountHUAWEI; uint gl_InstanceCountHUAWEI; uint gl_FirstIndexHUAWEI; int gl_VertexOffsetHUAWEI; uint gl_FirstInstanceHUAWEI; uint gl_ClusterIDHUAWEI; }; layout(binding = GPU_CLUSTER_DESCRIPTOR_BINDING, std430) readonly buffer cluster_descriptor_ssbo { ClusterDescriptor cluster_descriptors[]; }; layout(binding = GPU_DRAW_BUFFER_BINDING, std430) buffer draw_indirect_ssbo { DrawElementsCommand draw_commands[]; }; layout(binding = GPU_INSTANCE_DESCRIPTOR_BINDING, std430) buffer instance_descriptor_ssbo { InstanceDescriptor instance_descriptors[]; }; bool isFrontFaceVisible( vec3 sphere_center, float sphere_radius, vec3 cone_normal, float cone_angle ) { vec3 sphere_center_dir = normalize(sphere_center - instance_descriptors[instance_id].instance_data.view_origin); float sin_cone_angle = sin(min(cone_angle, pi_half)); return dot(cone_normal, sphere_center_dir) < sin_cone_angle; } bool isSphereOutsideFrustum( vec3 sphere_center, float sphere_radius ) { bool isInside = false; for(int i = 0; i < 6; i++) { isInside = isInside || (dot(instance_descriptors[instance_id].instance_data.frustum_planes[i].xyz, sphere_center) + instance_descriptors[instance_id].instance_data.frustum_planes[i].w < sphere_radius); } return isInside; } void main() { uint cluster_id = gl_GlobalInvocationID.x; ClusterDescriptor desc = cluster_descriptors[cluster_id]; // get instance description instance_id = desc.instance_idx; InstanceDescriptor inst_desc = instance_descriptors[instance_id]; //instance based culling bool instance_render = !isSphereOutsideFrustum(inst_desc.sphere.center, inst_desc.sphere.radius); if( instance_render) { // cluster based culling bool render = (!isSphereOutsideFrustum(desc.sphere.center, desc.sphere.radius) && isFrontFaceVisible(desc.sphere.center, desc.sphere.radius, desc.cone.norm al, desc.cone.angle)); if (render) { // this cluster passed coarse-level culling, update built-in output variable. // in case of indexed mode: gl_IndexCountHUAWEI = draw_commands[cluster_id].indexcount; gl_InstanceCountHUAWEI = draw_commands[cluster_id].instanceCount; gl_FirstIndexHUAWEI = draw_commands[cluster_id].firstIndex; gl_VertexOffsetHUAWEI = draw_commands[cluster_id].vertexoffset; gl_FirstInstanceHUAWEI = draw_commands[cluster_id].firstInstance; gl_ClusterIDHUAWEI = draw_commands[cluster_id].cluster_id; // emit built-in output variables as a drawing command to subsequent // rendering pipeline. dispatchClusterHUAWEI(); } } }
Example of graphics pipeline creation with cluster culling shader
// create a cluster culling shader stage info structure. VkPipelineShaderStageCreateInfo ccsStageInfo{}; ccsStageInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO; ccsStageInfo.stage = VK_SHADER_STAGE_CLUSTER_CULLING_BIT_HUAWEI; ccsStageInfo.module = clustercullingshaderModule; ccsStageInfo.pName = "main"; // pipeline shader stage creation VkPipelineShaderStageCreateInfo shaderStages[] = { ccsStageInfo, vertexShaderStageInfo, fragmentShaderStageInfo }; // create graphics pipeline VkGraphicsPipelineCreateInfo pipelineInfo{}; pipelineInfo.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO; pipelineInfo.stageCount = 3; pipelineInfo.pStage = shaderStages; pipelineInfo.pVertexInputState = &vertexInputInfo; // ... VkPipeline graphicsPipeline; VkCreateGraphicsPipelines(device, VK_NULL_HANDLE, 1, &pipelineInfo, nullptr, &graphicsPipeline);
Example of launching the execution of cluster culling shader
vkCmdBindPipeline(commandBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, graphicsPipeline); vkCmdDrawClusterHUAWEI(commandBuffer, groupCountX, 1, 1); vkCmdEndRenderPass(commandBuffer);
Version History
Revision 1, 2022-11-18 (YuChang Wang)
- Internal revisions
Revision 2, 2023-04-02 (Jon Leech)
- Grammar edits.
See Also
PhysicalDeviceClusterCullingShaderFeaturesHUAWEI
,
PhysicalDeviceClusterCullingShaderPropertiesHUAWEI
,
cmdDrawClusterHUAWEI
, cmdDrawClusterIndirectHUAWEI
Document Notes
For more information, see the Vulkan Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- cmdDrawClusterHUAWEI :: forall io. MonadIO io => CommandBuffer -> ("groupCountX" ::: Word32) -> ("groupCountY" ::: Word32) -> ("groupCountZ" ::: Word32) -> io ()
- cmdDrawClusterIndirectHUAWEI :: forall io. MonadIO io => CommandBuffer -> Buffer -> ("offset" ::: DeviceSize) -> io ()
- data PhysicalDeviceClusterCullingShaderPropertiesHUAWEI = PhysicalDeviceClusterCullingShaderPropertiesHUAWEI {}
- data PhysicalDeviceClusterCullingShaderFeaturesHUAWEI = PhysicalDeviceClusterCullingShaderFeaturesHUAWEI {}
- type HUAWEI_CLUSTER_CULLING_SHADER_SPEC_VERSION = 2
- pattern HUAWEI_CLUSTER_CULLING_SHADER_SPEC_VERSION :: forall a. Integral a => a
- type HUAWEI_CLUSTER_CULLING_SHADER_EXTENSION_NAME = "VK_HUAWEI_cluster_culling_shader"
- pattern HUAWEI_CLUSTER_CULLING_SHADER_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
:: forall io. MonadIO io | |
=> CommandBuffer |
|
-> ("groupCountX" ::: Word32) |
|
-> ("groupCountY" ::: Word32) |
|
-> ("groupCountZ" ::: Word32) |
|
-> io () |
vkCmdDrawClusterHUAWEI - Draw cluster culling work items
Description
When the command is executed,a global workgroup consisting of
groupCountX*groupCountY*groupCountZ local workgroup is assembled. Note
that the cluster culling shader pipeline only accepts
cmdDrawClusterHUAWEI
and cmdDrawClusterIndirectHUAWEI
as drawing
commands.
Valid Usage
- If a
Sampler
created withmagFilter
orminFilter
equal toFILTER_LINEAR
andcompareEnable
equal toFALSE
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
- If a
Sampler
created withmipmapMode
equal toSAMPLER_MIPMAP_MODE_LINEAR
andcompareEnable
equal toFALSE
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
- If a
ImageView
is sampled with depth comparison, the image view’s format features must containFORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT
- If a
ImageView
is accessed using atomic operations as a result of this command, then the image view’s format features must containFORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
- If a
DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER
descriptor is accessed using atomic operations as a result of this command, then the storage texel buffer’s format features must containFORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT
- If a
ImageView
is sampled withFILTER_CUBIC_EXT
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
- If the
VK_EXT_filter_cubic
extension is not enabled and any
ImageView
is sampled withFILTER_CUBIC_EXT
as a result of this command, it must not have aImageViewType
ofIMAGE_VIEW_TYPE_3D
,IMAGE_VIEW_TYPE_CUBE
, orIMAGE_VIEW_TYPE_CUBE_ARRAY
- Any
ImageView
being sampled withFILTER_CUBIC_EXT
as a result of this command must have aImageViewType
and format that supports cubic filtering, as specified byFilterCubicImageViewImageFormatPropertiesEXT
::filterCubic
returned bygetPhysicalDeviceImageFormatProperties2
- Any
ImageView
being sampled withFILTER_CUBIC_EXT
with a reduction mode of eitherSAMPLER_REDUCTION_MODE_MIN
orSAMPLER_REDUCTION_MODE_MAX
as a result of this command must have aImageViewType
and format that supports cubic filtering together with minmax filtering, as specified byFilterCubicImageViewImageFormatPropertiesEXT
::filterCubicMinmax
returned bygetPhysicalDeviceImageFormatProperties2
- If the
cubicRangeClamp
feature is not enabled, then any
ImageView
being sampled withFILTER_CUBIC_EXT
as a result of this command must not have aSamplerReductionModeCreateInfo
::reductionMode
equal toSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
- Any
ImageView
being sampled with aSamplerReductionModeCreateInfo
::reductionMode
equal toSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
as a result of this command must sample withFILTER_CUBIC_EXT
- If the
selectableCubicWeights
feature is not enabled, then any
ImageView
being sampled withFILTER_CUBIC_EXT
as a result of this command must haveSamplerCubicWeightsCreateInfoQCOM
::cubicWeights
equal toCUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM
- Any
Image
created with aImageCreateInfo
::flags
containingIMAGE_CREATE_CORNER_SAMPLED_BIT_NV
sampled as a result of this command must only be sampled using aSamplerAddressMode
ofSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE
- For any
ImageView
being written as a storage image where the image format field of theOpTypeImage
isUnknown
, the view’s format features must containFORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT
- For any
ImageView
being read as a storage image where the image format field of theOpTypeImage
isUnknown
, the view’s format features must containFORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT
- For any
BufferView
being written as a storage texel buffer where the image format field of theOpTypeImage
isUnknown
, the view’s buffer features must containFORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT
- Any
BufferView
being read as a storage texel buffer where the image format field of theOpTypeImage
isUnknown
then the view’s buffer features must containFORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT
- For each set n that is
statically used by
a bound shader,
a descriptor set must have been bound to n at the same pipeline
bind point, with a
PipelineLayout
that is compatible for set n, with thePipelineLayout
orDescriptorSetLayout
array that was used to create the currentPipeline
orShaderEXT
, as described in ??? - For each push constant that
is statically used by
a bound shader,
a push constant value must have been set for the same pipeline
bind point, with a
PipelineLayout
that is compatible for push constants, with thePipelineLayout
orDescriptorSetLayout
andPushConstantRange
arrays used to create the currentPipeline
orShaderEXT
, as described in ??? - If the
maintenance4
feature is not enabled, then for each push constant that is
statically used by
a bound shader,
a push constant value must have been set for the same pipeline
bind point, with a
PipelineLayout
that is compatible for push constants, with thePipelineLayout
orDescriptorSetLayout
andPushConstantRange
arrays used to create the currentPipeline
orShaderEXT
, as described in ??? - Descriptors in each bound
descriptor set, specified via
cmdBindDescriptorSets
, must be valid if they are statically used by thePipeline
bound to the pipeline bind point used by this command and the boundPipeline
was not created withPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
- If the descriptors used by
the
Pipeline
bound to the pipeline bind point were specified viacmdBindDescriptorSets
, the boundPipeline
must have been created withoutPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
- Descriptors in bound
descriptor buffers, specified via
cmdSetDescriptorBufferOffsetsEXT
, must be valid if they are dynamically used by thePipeline
bound to the pipeline bind point used by this command and the boundPipeline
was created withPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
- Descriptors in bound
descriptor buffers, specified via
cmdSetDescriptorBufferOffsetsEXT
, must be valid if they are dynamically used by anyShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command - If the descriptors used by
the
Pipeline
bound to the pipeline bind point were specified viacmdSetDescriptorBufferOffsetsEXT
, the boundPipeline
must have been created withPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
- If a descriptor is
dynamically used with a
Pipeline
created withPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident - If a descriptor is
dynamically used with a
ShaderEXT
created with aDescriptorSetLayout
that was created withDESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident - If the shaderObject feature is not enabled, a valid pipeline must be bound to the pipeline bind point used by this command
- If the
shaderObject
is enabled, either a valid pipeline must be bound to the pipeline
bind point used by this command, or a valid combination of valid and
NULL_HANDLE
shader objects must be bound to every supported shader stage corresponding to the pipeline bind point used by this command - If a pipeline is bound to
the pipeline bind point used by this command, there must not have
been any calls to dynamic state setting commands for any state not
specified as dynamic in the
Pipeline
object bound to the pipeline bind point used by this command, since that pipeline was bound - If the
Pipeline
object bound to the pipeline bind point used by this command or anyShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses aSampler
object that uses unnormalized coordinates, that sampler must not be used to sample from anyImage
with aImageView
of the typeIMAGE_VIEW_TYPE_3D
,IMAGE_VIEW_TYPE_CUBE
,IMAGE_VIEW_TYPE_1D_ARRAY
,IMAGE_VIEW_TYPE_2D_ARRAY
orIMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage - If the
Pipeline
object bound to the pipeline bind point used by this command or anyShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses aSampler
object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions withImplicitLod
,Dref
orProj
in their name, in any shader stage - If the
Pipeline
object bound to the pipeline bind point used by this command or anyShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses aSampler
object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions that includes a LOD bias or any offset values, in any shader stage - If any stage of
the
Pipeline
object bound to the pipeline bind point used by this command accesses a uniform buffer, and that stage was created without enabling eitherPIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
orPIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2_EXT
foruniformBuffers
, and the robustBufferAccess feature is not enabled, that stage must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If the
robustBufferAccess
feature is not enabled, and any
ShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses a uniform buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If any stage of
the
Pipeline
object bound to the pipeline bind point used by this command accesses a storage buffer, and that stage was created without enabling eitherPIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
orPIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2_EXT
forstorageBuffers
, and the robustBufferAccess feature is not enabled, that stage must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If the
robustBufferAccess
feature is not enabled, and any
ShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses a storage buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If
commandBuffer
is an unprotected command buffer and protectedNoFault is not supported, any resource accessed by bound shaders must not be a protected resource - If
a bound shader
accesses a
Sampler
orImageView
object that enables sampler Y′CBCR conversion, that object must only be used withOpImageSample*
orOpImageSparseSample*
instructions - If
a bound shader
accesses a
Sampler
orImageView
object that enables sampler Y′CBCR conversion, that object must not use theConstOffset
andOffset
operands - If a
ImageView
is accessed as a result of this command, then the image view’sviewType
must match theDim
operand of theOpTypeImage
as described in ??? - If a
ImageView
is accessed as a result of this command, then the numeric type of the image view’sformat
and theSampled
Type
operand of theOpTypeImage
must match - If a
ImageView
created with a format other thanFORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the image view’s format - If a
ImageView
created with the formatFORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have four components - If a
BufferView
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the buffer view’s format - If a
ImageView
with aFormat
that has a 64-bit component width is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 64 - If a
ImageView
with aFormat
that has a component width less than 64-bit is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 32 - If a
BufferView
with aFormat
that has a 64-bit component width is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 64 - If a
BufferView
with aFormat
that has a component width less than 64-bit is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 32 - If the
sparseImageInt64Atomics
feature is not enabled,
Image
objects created with theIMAGE_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command - If the
sparseImageInt64Atomics
feature is not enabled,
Buffer
objects created with theBUFFER_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command - If
OpImageWeightedSampleQCOM
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_WEIGHT_SAMPLED_IMAGE_BIT_QCOM
- If
OpImageWeightedSampleQCOM
uses aImageView
as a sample weight image as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_WEIGHT_IMAGE_BIT_QCOM
- If
OpImageBoxFilterQCOM
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_BOX_FILTER_SAMPLED_BIT_QCOM
- If
OpImageBlockMatchSSDQCOM
is used to read from anImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
- If
OpImageBlockMatchSADQCOM
is used to read from anImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
- If
OpImageBlockMatchSADQCOM
or OpImageBlockMatchSSDQCOM is used to read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation - If
OpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses aSampler
as a result of this command, then the sampler must have been created withSAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
- If any
command other than
OpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses aSampler
as a result of this command, then the sampler must not have been created withSAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
- If a
OpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from anImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
- If a
OpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from anImageView
as a result of this command, then the image view’s format must be a single-component format. - If a
OpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation - Any shader invocation executed by this command must terminate
- The current render
pass must be
compatible
with the
renderPass
member of theGraphicsPipelineCreateInfo
structure specified when creating thePipeline
bound toPIPELINE_BIND_POINT_GRAPHICS
- The subpass index of the
current render pass must be equal to the
subpass
member of theGraphicsPipelineCreateInfo
structure specified when creating thePipeline
bound toPIPELINE_BIND_POINT_GRAPHICS
- If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set
- If any shader
executed by this pipeline accesses an
OpTypeImage
variable with aDim
operand ofSubpassData
, it must be decorated with anInputAttachmentIndex
that corresponds to a valid input attachment in the current subpass - Input attachment views
accessed in a subpass must be created with the same
Format
as the corresponding subpass definition, and be created with aImageView
that is compatible with the attachment referenced by the subpass'pInputAttachments
[InputAttachmentIndex
] in the currently boundFramebuffer
as specified by Fragment Input Attachment Compatibility - Memory backing image subresources used as attachments in the current render pass must not be written in any way other than as an attachment by this command
If a color attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in the
IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:- the
PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or the last call to
cmdSetAttachmentFeedbackLoopEnableEXT
includedIMAGE_ASPECT_COLOR_BIT
and- there is no currently bound graphics pipeline or
- the currently bound graphics pipeline was created with
DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
it must not be accessed in any way other than as an attachment by this command
- the
If a depth attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in the
IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:- the
PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or the last call to
cmdSetAttachmentFeedbackLoopEnableEXT
includedIMAGE_ASPECT_DEPTH_BIT
and- there is no currently bound graphics pipeline or
- the currently bound graphics pipeline was created with
DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
it must not be accessed in any way other than as an attachment by this command
- the
If a stencil attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in the
IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:- the
PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or the last call to
cmdSetAttachmentFeedbackLoopEnableEXT
includedIMAGE_ASPECT_STENCIL_BIT
and- there is no currently bound graphics pipeline or
- the currently bound graphics pipeline was created with
DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
it must not be accessed in any way other than as an attachment by this command
- the
- If an attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it must not be accessed in any way other than as an attachment, storage image, or sampled image by this command
- If any previously recorded command in the current subpass accessed an image subresource used as an attachment in this subpass in any way other than as an attachment, this command must not write to that image subresource as an attachment
- If the current render pass instance uses a depth/stencil attachment with a read-only layout for the depth aspect, depth writes must be disabled
- If the current render pass
instance uses a depth/stencil attachment with a read-only layout
for the stencil aspect, both front and back
writeMask
are not zero, and stencil test is enabled, all stencil ops must beSTENCIL_OP_KEEP
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VIEWPORT
dynamic state enabled thencmdSetViewport
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_SCISSOR
dynamic state enabled thencmdSetScissor
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_LINE_WIDTH
dynamic state enabled thencmdSetLineWidth
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPolygonModeEXT
in the current command buffer setpolygonMode
toPOLYGON_MODE_LINE
,cmdSetLineWidth
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
to any line topology,cmdSetLineWidth
must have been called in the current command buffer prior to this drawing command - If a shader object that
outputs line primitives is bound to the
SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
,cmdSetLineWidth
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled thencmdSetDepthBias
orcmdSetDepthBias2EXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDepthBiasEnable
in the current command buffer setdepthBiasEnable
toTRUE
,cmdSetDepthBias
orcmdSetDepthBias2EXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_BLEND_CONSTANTS
dynamic state enabled thencmdSetBlendConstants
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetColorBlendEnableEXT
in the current command buffer set any element ofpColorBlendEnables
toTRUE
, and the most recent call tocmdSetColorBlendEquationEXT
in the current command buffer set the same element ofpColorBlendEquations
to aColorBlendEquationEXT
structure with anyBlendFactor
member with a value ofBLEND_FACTOR_CONSTANT_COLOR
,BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR
,BLEND_FACTOR_CONSTANT_ALPHA
, orBLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA
,cmdSetBlendConstants
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled, and if the currentdepthBoundsTestEnable
state isTRUE
, thencmdSetDepthBounds
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDepthBoundsTestEnable
in the current command buffer setdepthBoundsTestEnable
toTRUE
, thencmdSetDepthBounds
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled, and if the currentstencilTestEnable
state isTRUE
, thencmdSetStencilCompareMask
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetStencilTestEnable
in the current command buffer setstencilTestEnable
toTRUE
,cmdSetStencilCompareMask
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled, and if the currentstencilTestEnable
state isTRUE
, thencmdSetStencilWriteMask
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetStencilTestEnable
in the current command buffer setstencilTestEnable
toTRUE
,cmdSetStencilWriteMask
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled, and if the currentstencilTestEnable
state isTRUE
, thencmdSetStencilReference
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetStencilTestEnable
in the current command buffer setstencilTestEnable
toTRUE
,cmdSetStencilReference
must have been called in the current command buffer prior to this drawing command - If the
draw is recorded in a render pass instance with multiview enabled,
the maximum instance index must be less than or equal to
PhysicalDeviceMultiviewProperties
::maxMultiviewInstanceIndex
- If the
bound graphics pipeline was created with
PipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
set toTRUE
and the current subpass has a depth/stencil attachment, then that attachment must have been created with theIMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
dynamic state enabled thencmdSetSampleLocationsEXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetSampleLocationsEnableEXT
in the current command buffer setsampleLocationsEnable
toTRUE
, thencmdSetSampleLocationsEXT
must have been called in the current command buffer prior to this drawing command - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, then thesampleLocationsPerPixel
member ofpSampleLocationsInfo
in the last call tocmdSetSampleLocationsEXT
must equal therasterizationSamples
member of thePipelineMultisampleStateCreateInfo
structure the bound graphics pipeline has been created with - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_CULL_MODE
dynamic state enabled thencmdSetCullMode
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCullMode
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_FRONT_FACE
dynamic state enabled thencmdSetFrontFace
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetFrontFace
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_TEST_ENABLE
dynamic state enabled thencmdSetDepthTestEnable
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDepthTestEnable
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_WRITE_ENABLE
dynamic state enabled thencmdSetDepthWriteEnable
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDepthWriteEnable
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_COMPARE_OP
dynamic state enabled thencmdSetDepthCompareOp
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDepthTestEnable
in the current command buffer setdepthTestEnable
toTRUE
, thencmdSetDepthCompareOp
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE
dynamic state enabled thencmdSetDepthBoundsTestEnable
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the
depthBounds
feature is enabled, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, then thecmdSetDepthBoundsTestEnable
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_STENCIL_TEST_ENABLE
dynamic state enabled thencmdSetStencilTestEnable
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetStencilTestEnable
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_STENCIL_OP
dynamic state enabled thencmdSetStencilOp
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetStencilTestEnable
in the current command buffer setstencilTestEnable
toTRUE
, thencmdSetStencilOp
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_SCISSOR_WITH_COUNT
dynamic state enabled, thencmdSetViewportWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must match thePipelineViewportStateCreateInfo
::scissorCount
of the pipeline - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SCISSOR_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, thencmdSetScissorWithCount
must have been called in the current command buffer prior to this drawing command, and thescissorCount
parameter ofcmdSetScissorWithCount
must match thePipelineViewportStateCreateInfo
::viewportCount
of the pipeline - If the bound
graphics pipeline state was created with both the
DYNAMIC_STATE_SCISSOR_WITH_COUNT
andDYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic states enabled then bothcmdSetViewportWithCount
andcmdSetScissorWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must match thescissorCount
parameter ofcmdSetScissorWithCount
- If a shader object is bound
to any graphics stage, then both
cmdSetViewportWithCount
andcmdSetScissorWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must match thescissorCount
parameter ofcmdSetScissorWithCount
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportWScalingStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportWScalingNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
VK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetViewportWScalingEnableNV
in the current command buffer setviewportWScalingEnable
toTRUE
, thencmdSetViewportWScalingNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetViewportWScalingEnableNV
in the current command buffer setviewportWScalingEnable
toTRUE
, then theviewportCount
parameter in the last call tocmdSetViewportWScalingNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportShadingRateImageStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportShadingRatePaletteNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
shadingRateImage
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCoarseSampleOrderNV
must have been called in the current command buffer prior to this drawing command - If the
shadingRateImage
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetShadingRateImageEnableNV
in the current command buffer setshadingRateImageEnable
toTRUE
, thencmdSetViewportShadingRatePaletteNV
must have been called in the current command buffer prior to this drawing command - If the
shadingRateImage
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetShadingRateImageEnableNV
in the current command buffer setshadingRateImageEnable
toTRUE
, then theviewportCount
parameter in the last call tocmdSetViewportShadingRatePaletteNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled and aPipelineViewportSwizzleStateCreateInfoNV
structure chained fromPipelineViewportStateCreateInfo
, then the bound graphics pipeline must have been created withPipelineViewportSwizzleStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled and aPipelineViewportExclusiveScissorStateCreateInfoNV
structure chained fromPipelineViewportStateCreateInfo
, then the bound graphics pipeline must have been created withPipelineViewportExclusiveScissorStateCreateInfoNV
::exclusiveScissorCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV
dynamic state enabled thencmdSetExclusiveScissorEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
dynamic state enabled thencmdSetExclusiveScissorNV
must have been called in the current command buffer prior to this drawing command - If the
exclusiveScissor
feature is enabled, and a shader object is bound to any graphics
stage, then
cmdSetExclusiveScissorEnableNV
must have been called in the current command buffer prior to this drawing command - If the
exclusiveScissor
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetExclusiveScissorEnableNV
in the current command buffer set any element ofpExclusiveScissorEnables
toTRUE
, thencmdSetExclusiveScissorNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE
dynamic state enabled thencmdSetRasterizerDiscardEnable
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, then
cmdSetRasterizerDiscardEnable
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_BIAS_ENABLE
dynamic state enabled thencmdSetDepthBiasEnable
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDepthBiasEnable
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled thencmdSetLogicOpEXT
must have been called in the current command buffer prior to this drawing command and thelogicOp
must be a validLogicOp
value - If a shader object is bound
to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetLogicOpEnableEXT
setlogicOpEnable
toTRUE
, thencmdSetLogicOpEXT
must have been called in the current command buffer prior to this drawing command and thelogicOp
must be a validLogicOp
value -
If the
primitiveFragmentShadingRateWithMultipleViewports
limit is not supported, the bound graphics pipeline was created with
the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, and any of the shader stages of the bound graphics pipeline write to thePrimitiveShadingRateKHR
built-in, thencmdSetViewportWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must be1
-
If the
primitiveFragmentShadingRateWithMultipleViewports
limit is not supported, and any shader object bound to a graphics
stage writes to the
PrimitiveShadingRateKHR
built-in, thencmdSetViewportWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must be1
- If rasterization is
not disabled in the bound graphics pipeline, then for each color
attachment in the subpass, if the corresponding image view’s
format features
do not contain
FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then theblendEnable
member of the corresponding element of thepAttachments
member ofpColorBlendState
must beFALSE
- If a shader object is bound
to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, then for each color attachment in the render pass, if the corresponding image view’s format features do not containFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then the corresponding member ofpColorBlendEnables
in the most recent call tocmdSetColorBlendEnableEXT
in the current command buffer that affected that attachment index must have beenFALSE
-
If rasterization is not disabled in the bound graphics pipeline, and
none of the
VK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or the multisampledRenderToSingleSampled feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or the multisampledRenderToSingleSampled feature is enabled, then the most recent call tocmdSetRasterizationSamplesEXT
in the current command buffer must have setrasterizationSamples
to be the same as the number of samples for the current render pass color and/or depth/stencil attachments - If a shader object is bound
to any graphics stage, the current render pass instance must have
been begun with
cmdBeginRendering
- If the current render
pass instance was begun with
cmdBeginRendering
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment - If the current render
pass instance was begun with
cmdBeginRendering
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current render
pass instance was begun with
cmdBeginRendering
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
, this command must not write any values to the depth attachment - If the current render
pass instance was begun with
cmdBeginRendering
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current render
pass instance was begun with
cmdBeginRendering
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment - If the current render
pass instance was begun with
cmdBeginRendering
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current render
pass instance was begun with
cmdBeginRendering
, the currently bound graphics pipeline must have been created with aPipelineRenderingCreateInfo
::viewMask
equal toRenderingInfo
::viewMask
- If the
current render pass instance was begun with
cmdBeginRendering
, the currently bound graphics pipeline must have been created with aPipelineRenderingCreateInfo
::colorAttachmentCount
equal toRenderingInfo
::colorAttachmentCount
-
If the
dynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was
begun with
cmdBeginRendering
andRenderingInfo
::colorAttachmentCount
greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with aFormat
equal to the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
used to create the currently bound graphics pipeline -
If the
dynamicRenderingUnusedAttachments
feature is enabled, and the current render pass instance was begun
with
cmdBeginRendering
andRenderingInfo
::colorAttachmentCount
greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with aFormat
equal to the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
used to create the currently bound graphics pipeline, or the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
, if it exists, must beFORMAT_UNDEFINED
-
If the
dynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was
begun with
cmdBeginRendering
andRenderingInfo
::colorAttachmentCount
greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
equal toNULL_HANDLE
must have the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
used to create the currently bound pipeline equal toFORMAT_UNDEFINED
- If the
current render pass instance was begun with
cmdBeginRendering
, with aRenderingInfo
::colorAttachmentCount
equal to1
, there is no shader object bound to any graphics stage, and a color attachment with a resolve mode ofRESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of theRenderingInfo
::pColorAttachments
array with aresolveImageView
not equal toNULL_HANDLE
must have been created with an image created with aExternalFormatANDROID
::externalFormat
value equal to theExternalFormatANDROID
::externalFormat
value used to create the currently bound graphics pipeline - If there is no shader
object bound to any graphics stage, the current render pass instance
was begun with
cmdBeginRendering
and aRenderingInfo
::colorAttachmentCount
equal to1
, and a color attachment with a resolve mode ofRESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with an image created with aExternalFormatANDROID
::externalFormat
value equal to theExternalFormatANDROID
::externalFormat
value used to create the currently bound graphics pipeline - If the current render pass
instance was begun with
cmdBeginRendering
, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zeroExternalFormatANDROID
::externalFormat
value and with theDYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled, thencmdSetColorBlendEnableEXT
must have set the blend enable toFALSE
prior to this drawing command - If the current render pass
instance was begun with
cmdBeginRendering
, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zeroExternalFormatANDROID
::externalFormat
value and with theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, thencmdSetRasterizationSamplesEXT
must have setrasterizationSamples
toSAMPLE_COUNT_1_BIT
prior to this drawing command - If there is a shader object
bound to any graphics stage, and the current render pass includes a
color attachment that uses the
RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, thencmdSetColorBlendEnableEXT
must have set blend enable toFALSE
prior to this drawing command - If there is
a shader object bound to any graphics stage, and the current render
pass includes a color attachment that uses the
RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, thencmdSetRasterizationSamplesEXT
must have setrasterizationSamples
toSAMPLE_COUNT_1_BIT
prior to this drawing command - If the current render pass
instance was begun with
cmdBeginRendering
, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zeroExternalFormatANDROID
::externalFormat
value and with theDYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, thencmdSetFragmentShadingRateKHR
must have setpFragmentSize->width
to1
prior to this drawing command - If the current render pass
instance was begun with
cmdBeginRendering
, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zeroExternalFormatANDROID
::externalFormat
value and with theDYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, thencmdSetFragmentShadingRateKHR
must have setpFragmentSize->height
to1
prior to this drawing command - If there is a
shader object bound to any graphics stage, and the current render
pass includes a color attachment that uses the
RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, thencmdSetFragmentShadingRateKHR
must have setpFragmentSize->width
to1
prior to this drawing command - If there is a
shader object bound to any graphics stage, and the current render
pass includes a color attachment that uses the
RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, thencmdSetFragmentShadingRateKHR
must have setpFragmentSize->height
to1
prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT
dynamic state enabled thencmdSetColorWriteEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
colorWriteEnable
feature is enabled on the device, and a shader object is bound to
the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorWriteEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT
dynamic state enabled then theattachmentCount
parameter ofcmdSetColorWriteEnableEXT
must be greater than or equal to thePipelineColorBlendStateCreateInfo
::attachmentCount
of the currently bound graphics pipeline - If the
colorWriteEnable
feature is enabled on the device, and a shader object is bound to
the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, then theattachmentCount
parameter of most recent call tocmdSetColorWriteEnableEXT
in the current command buffer must be greater than or equal to the number of color attachments in the current render pass instance - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DISCARD_RECTANGLE_EXT
dynamic state enabled thencmdSetDiscardRectangleEXT
must have been called in the current command buffer prior to this drawing command for each discard rectangle inPipelineDiscardRectangleStateCreateInfoEXT
::discardRectangleCount
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DISCARD_RECTANGLE_ENABLE_EXT
dynamic state enabled thencmdSetDiscardRectangleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDiscardRectangleEnableEXT
in the current command buffer setdiscardRectangleEnable
toTRUE
, thencmdSetDiscardRectangleEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDiscardRectangleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DISCARD_RECTANGLE_MODE_EXT
dynamic state enabled thencmdSetDiscardRectangleModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDiscardRectangleEnableEXT
in the current command buffer setdiscardRectangleEnable
toTRUE
, thencmdSetDiscardRectangleModeEXT
must have been called in the current command buffer prior to this drawing command -
If the current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is not enabled, andRenderingInfo
::pDepthAttachment->imageView
wasNULL_HANDLE
, the value ofPipelineRenderingCreateInfo
::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal toFORMAT_UNDEFINED
-
If current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is not enabled, andRenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, the value ofPipelineRenderingCreateInfo
::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to theFormat
used to createRenderingInfo
::pDepthAttachment->imageView
-
If the current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is enabled,RenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, and the value ofPipelineRenderingCreateInfo
::depthAttachmentFormat
used to create the currently bound graphics pipeline was not equal to theFormat
used to createRenderingInfo
::pDepthAttachment->imageView
, the value of the format must beFORMAT_UNDEFINED
-
If the current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is not enabled, andRenderingInfo
::pStencilAttachment->imageView
wasNULL_HANDLE
, the value ofPipelineRenderingCreateInfo
::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal toFORMAT_UNDEFINED
-
If current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is not enabled, andRenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, the value ofPipelineRenderingCreateInfo
::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal to theFormat
used to createRenderingInfo
::pStencilAttachment->imageView
-
If the current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is enabled,RenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, and the value ofPipelineRenderingCreateInfo
::stencilAttachmentFormat
used to create the currently bound graphics pipeline was not equal to theFormat
used to createRenderingInfo
::pStencilAttachment->imageView
, the value of the format must beFORMAT_UNDEFINED
- If the current render
pass instance was begun with
cmdBeginRendering
andRenderingFragmentShadingRateAttachmentInfoKHR
::imageView
was notNULL_HANDLE
, the currently bound graphics pipeline must have been created withPIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
- If the current render
pass instance was begun with
cmdBeginRendering
andRenderingFragmentDensityMapAttachmentInfoEXT
::imageView
was notNULL_HANDLE
, the currently bound graphics pipeline must have been created withPIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT
- If the
currently bound pipeline was created with a
AttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the current render pass instance was begun withcmdBeginRendering
with aRenderingInfo
::colorAttachmentCount
parameter greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with a sample count equal to the corresponding element of thepColorAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline - If the current
render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline was created with aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, the value of thedepthStencilAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfo
::pDepthAttachment->imageView
- If the
current render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline was created with aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, the value of thedepthStencilAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfo
::pStencilAttachment->imageView
-
If the currently bound pipeline was created without a
AttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the multisampledRenderToSingleSampled feature is not enabled, and the current render pass instance was begun withcmdBeginRendering
with aRenderingInfo
::colorAttachmentCount
parameter greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with a sample count equal to the value ofrasterizationSamples
for the currently bound graphics pipeline -
If the current render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline was created without aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the multisampledRenderToSingleSampled feature is not enabled, andRenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfo
::pDepthAttachment->imageView
-
If the current render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline was created without aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the multisampledRenderToSingleSampled feature is not enabled, andRenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfo
::pStencilAttachment->imageView
- If this command has been
called inside a render pass instance started with
cmdBeginRendering
, and thepNext
chain ofRenderingInfo
includes aMultisampledRenderToSingleSampledInfoEXT
structure withmultisampledRenderToSingleSampledEnable
equal toTRUE
, then the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal toMultisampledRenderToSingleSampledInfoEXT
::rasterizationSamples
- If the current render
pass instance was begun with
cmdBeginRendering
, the currently bound pipeline must have been created with aGraphicsPipelineCreateInfo
::renderPass
equal toNULL_HANDLE
- If the current
render pass instance was begun with
cmdBeginRendering
, there is a graphics pipeline bound with a fragment shader that statically writes to a color attachment, the color write mask is not zero, color writes are enabled, and the corresponding element of theRenderingInfo
::pColorAttachments->imageView
was notNULL_HANDLE
, then the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
used to create the pipeline must not beFORMAT_UNDEFINED
- If the current
render pass instance was begun with
cmdBeginRendering
, there is a graphics pipeline bound, depth test is enabled, depth write is enabled, and theRenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, then thePipelineRenderingCreateInfo
::depthAttachmentFormat
used to create the pipeline must not beFORMAT_UNDEFINED
- If the
current render pass instance was begun with
cmdBeginRendering
, there is a graphics pipeline bound, stencil test is enabled and theRenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, then thePipelineRenderingCreateInfo
::stencilAttachmentFormat
used to create the pipeline must not beFORMAT_UNDEFINED
-
If the
primitivesGeneratedQueryWithRasterizerDiscard
feature is not enabled and the
QUERY_TYPE_PRIMITIVES_GENERATED_EXT
query is active, rasterization discard must not be enabled -
If the
primitivesGeneratedQueryWithNonZeroStreams
feature is not enabled and the
QUERY_TYPE_PRIMITIVES_GENERATED_EXT
query is active, the bound graphics pipeline must not have been created with a non-zero value inPipelineRasterizationStateStreamCreateInfoEXT
::rasterizationStream
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT
dynamic state enabled thencmdSetTessellationDomainOriginEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_CLAMP_ENABLE_EXT
dynamic state enabled thencmdSetDepthClampEnableEXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to the
SHADER_STAGE_TESSELLATION_EVALUATION_BIT
stage, thencmdSetTessellationDomainOriginEXT
must have been called in the current command buffer prior to this drawing command - If the
depthClamp
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDepthClampEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_POLYGON_MODE_EXT
dynamic state enabled thencmdSetPolygonModeEXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetPolygonModeEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled thencmdSetRasterizationSamplesEXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetRasterizationSamplesEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_SAMPLE_MASK_EXT
dynamic state enabled thencmdSetSampleMaskEXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetSampleMaskEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled thencmdSetAlphaToCoverageEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled, andalphaToCoverageEnable
wasTRUE
in the last call tocmdSetAlphaToCoverageEnableEXT
, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 - If a shader object is bound
to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetAlphaToCoverageEnableEXT
must have been called in the current command buffer prior to this drawing command - If a
shader object is bound to any graphics stage, and the most recent
call to
cmdSetAlphaToCoverageEnableEXT
in the current command buffer setalphaToCoverageEnable
toTRUE
, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_ALPHA_TO_ONE_ENABLE_EXT
dynamic state enabled thencmdSetAlphaToOneEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
alphaToOne
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetAlphaToOneEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_LOGIC_OP_ENABLE_EXT
dynamic state enabled thencmdSetLogicOpEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
logicOp
feature is enabled, and a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetLogicOpEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled thencmdSetColorBlendEnableEXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorBlendEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT
dynamic state enabled thencmdSetColorBlendEquationEXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetColorBlendEnableEXT
for any attachment set that attachment’s value inpColorBlendEnables
toTRUE
, thencmdSetColorBlendEquationEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
dynamic state enabled thencmdSetColorWriteMaskEXT
must have been called in the current command buffer prior to this drawing command - If a shader object is bound
to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorWriteMaskEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_STREAM_EXT
dynamic state enabled thencmdSetRasterizationStreamEXT
must have been called in the current command buffer prior to this drawing command - If the
geometryStreams
feature is enabled, and a shader object is bound to the
SHADER_STAGE_GEOMETRY_BIT
stage, thencmdSetRasterizationStreamEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled thencmdSetConservativeRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_conservative_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetConservativeRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_EXTRA_PRIMITIVE_OVERESTIMATION_SIZE_EXT
dynamic state enabled thencmdSetExtraPrimitiveOverestimationSizeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_conservative_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetConservativeRasterizationModeEXT
in the current command buffer setconservativeRasterizationMode
toCONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT
, thencmdSetExtraPrimitiveOverestimationSizeEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT
dynamic state enabled thencmdSetDepthClipEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
depthClipEnable
feature is enabled, and a shader object is bound to any graphics
stage, then
cmdSetDepthClipEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
dynamic state enabled thencmdSetSampleLocationsEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_sample_locations
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetSampleLocationsEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
dynamic state enabled thencmdSetColorBlendAdvancedEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_blend_operation_advanced
extension is enabled, and a shader object is bound to theSHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, then at least one ofcmdSetColorBlendEquationEXT
andcmdSetColorBlendAdvancedEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_PROVOKING_VERTEX_MODE_EXT
dynamic state enabled thencmdSetProvokingVertexModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_provoking_vertex
extension is enabled, and a shader object is bound to theSHADER_STAGE_VERTEX_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetProvokingVertexModeEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic state enabled thencmdSetLineRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPolygonModeEXT
in the current command buffer setpolygonMode
toPOLYGON_MODE_LINE
, thencmdSetLineRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theSHADER_STAGE_VERTEX_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
to any line topology, thencmdSetLineRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theSHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetLineRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
dynamic state enabled thencmdSetLineStippleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPolygonModeEXT
in the current command buffer setpolygonMode
toPOLYGON_MODE_LINE
, thencmdSetLineStippleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theSHADER_STAGE_VERTEX_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
to any line topology, thencmdSetLineStippleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theSHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetLineStippleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled thencmdSetLineStippleEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetLineStippleEnableEXT
in the current command buffer setstippledLineEnable
toTRUE
, thencmdSetLineStippleEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT
dynamic state enabled thencmdSetDepthClipNegativeOneToOneEXT
must have been called in the current command buffer prior to this drawing command - If the
depthClipControl
feature is enabled, and a shader object is bound to any graphics
stage, then
cmdSetDepthClipNegativeOneToOneEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_W_SCALING_ENABLE_NV
dynamic state enabled thencmdSetViewportWScalingEnableNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, thencmdSetViewportWScalingEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled thencmdSetViewportSwizzleNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, thencmdSetViewportSwizzleNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
dynamic state enabled thencmdSetCoverageToColorEnableNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theSHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCoverageToColorEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COVERAGE_TO_COLOR_LOCATION_NV
dynamic state enabled thencmdSetCoverageToColorLocationNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theSHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetCoverageToColorEnableNV
in the current command buffer setcoverageToColorEnable
toTRUE
, thencmdSetCoverageToColorLocationNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COVERAGE_MODULATION_MODE_NV
dynamic state enabled thencmdSetCoverageModulationModeNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCoverageModulationModeNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
dynamic state enabled thencmdSetCoverageModulationTableEnableNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetCoverageModulationModeNV
in the current command buffer set coverageModulationMode to any value other thanCOVERAGE_MODULATION_MODE_NONE_NV
, thencmdSetCoverageModulationTableEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_NV
dynamic state enabled thencmdSetCoverageModulationTableNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetCoverageModulationTableEnableNV
in the current command buffer setcoverageModulationTableEnable
toTRUE
, thencmdSetCoverageModulationTableNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_SHADING_RATE_IMAGE_ENABLE_NV
dynamic state enabled thencmdSetShadingRateImageEnableNV
must have been called in the current command buffer prior to this drawing command - If
the
pipelineFragmentShadingRate
feature is enabled, and a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer set rasterizerDiscardEnable toFALSE
, thencmdSetFragmentShadingRateKHR
must have been called in the current command buffer prior to this drawing command - If the
shadingRateImage
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetShadingRateImageEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_REPRESENTATIVE_FRAGMENT_TEST_ENABLE_NV
dynamic state enabled thencmdSetRepresentativeFragmentTestEnableNV
must have been called in the current command buffer prior to this drawing command - If the
representativeFragmentTest
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetRepresentativeFragmentTestEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV
dynamic state enabled thencmdSetCoverageReductionModeNV
must have been called in the current command buffer prior to this drawing command - If the
coverageReductionMode
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCoverageReductionModeNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
state enabled and the last call tocmdSetColorBlendEnableEXT
setpColorBlendEnables
for any attachment toTRUE
, then for those attachments in the subpass the corresponding image view’s format features must containFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, and the current subpass does not use any color and/or depth/stencil attachments, then therasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
must follow the rules for a zero-attachment subpass - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_SAMPLE_MASK_EXT
state enabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state disabled, then thesamples
parameter in the last call tocmdSetSampleMaskEXT
must be greater or equal to thePipelineMultisampleStateCreateInfo
::rasterizationSamples
parameter used to create the bound graphics pipeline - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_SAMPLE_MASK_EXT
state andDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
states enabled, then thesamples
parameter in the last call tocmdSetSampleMaskEXT
must be greater or equal to therasterizationSamples
parameter in the last call tocmdSetRasterizationSamplesEXT
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, and neither theVK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, then therasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
must be the same as the current subpass color and/or depth/stencil attachments - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, or a shader object is bound to any graphics stage, and the current render pass instance includes aMultisampledRenderToSingleSampledInfoEXT
structure withmultisampledRenderToSingleSampledEnable
equal toTRUE
, then therasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
must be the same as therasterizationSamples
member of that structure - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled thencmdSetColorBlendEnableEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass - If a
shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorBlendEnableEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT
dynamic state enabled thencmdSetColorBlendEquationEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled - If a
shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorBlendEquationEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
dynamic state enabled thencmdSetColorWriteMaskEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass - If a
shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorWriteMaskEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
dynamic state enabled thencmdSetColorBlendAdvancedEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendAdvancedEXT
calls must specify the advanced blend equations for all active color attachments in the current subpass where blending is enabled -
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
andDYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic states enabled and the last calls tocmdSetColorBlendEnableEXT
andcmdSetColorBlendAdvancedEXT
have enabled advanced blending, then the number of active color attachments in the current subpass must not exceed advancedBlendMaxColorAttachments -
If the
primitivesGeneratedQueryWithNonZeroStreams
feature is not enabled and the
QUERY_TYPE_PRIMITIVES_GENERATED_EXT
query is active, and the bound graphics pipeline was created withDYNAMIC_STATE_RASTERIZATION_STREAM_EXT
state enabled, the last call tocmdSetRasterizationStreamEXT
must have set therasterizationStream
to zero - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state disabled, then thesampleLocationsPerPixel
member ofpSampleLocationsInfo
in the last call tocmdSetSampleLocationsEXT
must equal therasterizationSamples
member of thePipelineMultisampleStateCreateInfo
structure the bound graphics pipeline has been created with - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, then thesampleLocationsPerPixel
member ofpSampleLocationsInfo
in the last call tocmdSetSampleLocationsEXT
must equal therasterizationSamples
parameter of the last call tocmdSetRasterizationSamplesEXT
- If a
shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline was created with theDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, andsampleLocationsEnable
wasTRUE
in the last call tocmdSetSampleLocationsEnableEXT
, and the current subpass has a depth/stencil attachment, then that attachment must have been created with theIMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set - If a
shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasTRUE
in the last call tocmdSetSampleLocationsEnableEXT
, then thesampleLocationsInfo.sampleLocationGridSize.width
in the last call tocmdSetSampleLocationsEXT
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.width
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equalingrasterizationSamples
- If a
shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasTRUE
in the last call tocmdSetSampleLocationsEnableEXT
, then thesampleLocationsInfo.sampleLocationGridSize.height
in the last call tocmdSetSampleLocationsEXT
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.height
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equalingrasterizationSamples
- If a
shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasTRUE
in the last call tocmdSetSampleLocationsEnableEXT
, the fragment shader code must not statically use the extended instructionInterpolateAtSample
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
in the bound graphics pipeline isTRUE
orDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationGridSize.width
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.width
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equaling the value ofrasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
in the bound graphics pipeline isTRUE
orDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationGridSize.height
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.height
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equaling the value ofrasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
in the bound graphics pipeline isTRUE
orDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationsPerPixel
must equalrasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
- If
a shader object is bound to any graphics stage or the bound graphics
pipeline state was created with the
DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
state enabled, and the last call tocmdSetCoverageModulationTableEnableNV
setcoverageModulationTableEnable
toTRUE
, then thecoverageModulationTableCount
parameter in the last call tocmdSetCoverageModulationTableNV
must equal the currentrasterizationSamples
divided by the number of color samples in the current subpass - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and if current subpass has a depth/stencil attachment and depth test, stencil test, or depth bounds test are enabled in the currently bound pipeline state, then the currentrasterizationSamples
must be the same as the sample count of the depth/stencil attachment - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
state enabled and the last call tocmdSetCoverageToColorEnableNV
set thecoverageToColorEnable
toTRUE
, then the current subpass must have a color attachment at the location selected by the last call tocmdSetCoverageToColorLocationNV
coverageToColorLocation
, with aFormat
ofFORMAT_R8_UINT
,FORMAT_R8_SINT
,FORMAT_R16_UINT
,FORMAT_R16_SINT
,FORMAT_R32_UINT
, orFORMAT_R32_SINT
- If the
VK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theSHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the last call tocmdSetCoverageToColorEnableNV
set thecoverageToColorEnable
toTRUE
, then the current subpass must have a color attachment at the location selected by the last call tocmdSetCoverageToColorLocationNV
coverageToColorLocation
, with aFormat
ofFORMAT_R8_UINT
,FORMAT_R8_SINT
,FORMAT_R16_UINT
,FORMAT_R16_SINT
,FORMAT_R32_UINT
, orFORMAT_R32_SINT
- If this
VK_NV_coverage_reduction_mode
extension is enabled, the bound graphics pipeline state was created with theDYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
andDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
states enabled, the current coverage reduction modecoverageReductionMode
, then the currentrasterizationSamples
, and the sample counts for the color and depth/stencil attachments (if the subpass has them) must be a valid combination returned bygetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportSwizzleStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andDYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportSwizzleNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
VK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, then theviewportCount
parameter in the last call tocmdSetViewportSwizzleNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and if the current subpass has any color attachments andrasterizationSamples
of the last call tocmdSetRasterizationSamplesEXT
is greater than the number of color samples, then the pipelinesampleShadingEnable
must beFALSE
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orDYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isTRUE
and the currentlineRasterizationMode
state isLINE_RASTERIZATION_MODE_RECTANGULAR_EXT
, then the stippledRectangularLines feature must be enabled - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orDYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isTRUE
and the currentlineRasterizationMode
state isLINE_RASTERIZATION_MODE_BRESENHAM_EXT
, then the stippledBresenhamLines feature must be enabled - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orDYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isTRUE
and the currentlineRasterizationMode
state isLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
, then the stippledSmoothLines feature must be enabled - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orDYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isTRUE
and the currentlineRasterizationMode
state isLINE_RASTERIZATION_MODE_DEFAULT_EXT
, then the stippledRectangularLines feature must be enabled andPhysicalDeviceLimits
::strictLines
must beTRUE
-
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled, conservativePointAndLineRasterization is not supported, and the effective primitive topology output by the last pre-rasterization shader stage is a line or point, then theconservativeRasterizationMode
set by the last call tocmdSetConservativeRasterizationModeEXT
must beCONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXT
- If the currently bound
pipeline was created with the
PipelineShaderStageCreateInfo
::stage
member of an element ofGraphicsPipelineCreateInfo
::pStages
set toSHADER_STAGE_VERTEX_BIT
,SHADER_STAGE_TESSELLATION_CONTROL_BIT
,SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
, then Mesh Shader Queries must not be active - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
dynamic statecmdSetAttachmentFeedbackLoopEnableEXT
must have been called in the current command buffer prior to this drawing command - If dynamic state was
inherited from
CommandBufferInheritanceViewportScissorInfoNV
, it must be set in the current command buffer prior to this drawing command - If there is no bound
graphics pipeline,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_VERTEX_BIT
- If there is no bound
graphics pipeline, and the
tessellationShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_TESSELLATION_CONTROL_BIT
- If there is no bound
graphics pipeline, and the
tessellationShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_TESSELLATION_EVALUATION_BIT
- If there is no bound
graphics pipeline, and the
geometryShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_GEOMETRY_BIT
- If there is no bound
graphics pipeline,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_FRAGMENT_BIT
- If there is no bound
graphics pipeline, and the
taskShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_TASK_BIT_EXT
- If there is no bound
graphics pipeline, and the
meshShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_MESH_BIT_EXT
- If there is no bound
graphics pipeline, and at least one of the
taskShader
and
meshShader
features is enabled, one of the
SHADER_STAGE_VERTEX_BIT
orSHADER_STAGE_MESH_BIT_EXT
stages must have a validShaderEXT
bound, and the other must have noShaderEXT
bound - If there is no bound
graphics pipeline, and both the
taskShader
and
meshShader
features are enabled, and a valid
ShaderEXT
is bound the to theSHADER_STAGE_MESH_BIT_EXT
stage, and thatShaderEXT
was created without theSHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, a validShaderEXT
must be bound to theSHADER_STAGE_TASK_BIT_EXT
stage - If there is no bound
graphics pipeline, and both the
taskShader
and
meshShader
features are enabled, and a valid
ShaderEXT
is bound the to theSHADER_STAGE_MESH_BIT_EXT
stage, and thatShaderEXT
was created with theSHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, there must be noShaderEXT
bound to theSHADER_STAGE_TASK_BIT_EXT
stage - If there is no bound
graphics pipeline, and a valid
ShaderEXT
is bound to theSHADER_STAGE_VERTEX_BIT
stage, there must be noShaderEXT
bound to either theSHADER_STAGE_TASK_BIT_EXT
stage or theSHADER_STAGE_MESH_BIT_EXT
stage - If any graphics shader is
bound which was created with the
SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, then all shaders created with theSHADER_CREATE_LINK_STAGE_BIT_EXT
flag in the samecreateShadersEXT
call must also be bound - If any graphics shader is
bound which was created with the
SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, any stages in between stages whose shaders which did not create a shader with theSHADER_CREATE_LINK_STAGE_BIT_EXT
flag as part of the samecreateShadersEXT
call must not have anyShaderEXT
bound - All bound graphics shader objects must have been created with identical or identically defined push constant ranges
- All bound graphics shader objects must have been created with identical or identically defined arrays of descriptor set layouts
- If the
current render pass instance was begun with
cmdBeginRendering
and aRenderingInfo
::colorAttachmentCount
equal to1
, a color attachment with a resolve mode ofRESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, and a fragment shader is bound, it must not declare theDepthReplacing
orStencilRefReplacingEXT
execution modes - If the
attachmentFeedbackLoopDynamicState
feature is enabled on the device, and a shader object is bound to
the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetAttachmentFeedbackLoopEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state includes a fragment shader stage, was
created with
DYNAMIC_STATE_DEPTH_WRITE_ENABLE
set inPipelineDynamicStateCreateInfo
::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpDepthAttachmentReadEXT
, thedepthWriteEnable
parameter in the last call tocmdSetDepthWriteEnable
must beFALSE
- If the bound
graphics pipeline state includes a fragment shader stage, was
created with
DYNAMIC_STATE_STENCIL_WRITE_MASK
set inPipelineDynamicStateCreateInfo
::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpStencilAttachmentReadEXT
, thewriteMask
parameter in the last call tocmdSetStencilWriteMask
must be0
- If a shader object is bound
to any graphics stage or the currently bound graphics pipeline was
created with
DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
, and the format of any color attachment isFORMAT_E5B9G9R9_UFLOAT_PACK32
, the corresponding element of thepColorWriteMasks
parameter ofcmdSetColorWriteMaskEXT
must either include all ofCOLOR_COMPONENT_R_BIT
,COLOR_COMPONENT_G_BIT
, andCOLOR_COMPONENT_B_BIT
, or none of them - If
blending
is enabled for any attachment where either the source or destination
blend factors for that attachment
use the secondary color input,
the maximum value of
Location
for any output attachment statically used in theFragment
Execution
Model
executed by this command must be less than maxFragmentDualSrcAttachments - The bound graphics
pipeline must not have been created with the
PipelineShaderStageCreateInfo
::stage
member of an element ofGraphicsPipelineCreateInfo
::pStages
set toSHADER_STAGE_VERTEX_BIT
,SHADER_STAGE_TESSELLATION_CONTROL_BIT
,SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
- Transform Feedback Queries must not be active
- Primitives Generated Queries must not be active
- The
pipelineStatistics
member used to create any active Pipeline Statistics Query must not containQUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT
,QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT
,QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT
,QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT
,QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT
,QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT
,QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT
,QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT
, orQUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT
- The
pipelineStatistics
member used to create any active Pipeline Statistics Query must not containQUERY_PIPELINE_STATISTIC_TASK_SHADER_INVOCATIONS_BIT_EXT
, orQUERY_PIPELINE_STATISTIC_MESH_SHADER_INVOCATIONS_BIT_EXT
-
groupCountX
must be less than or equal toPhysicalDeviceClusterCullingShaderPropertiesHUAWEI
::maxWorkGroupCount
[0] -
groupCountY
must be less than or equal toPhysicalDeviceClusterCullingShaderPropertiesHUAWEI
::maxWorkGroupCount
[1] -
groupCountZ
must be less than or equal toPhysicalDeviceClusterCullingShaderPropertiesHUAWEI
::maxWorkGroupCount
[2] - The current
pipeline bound to
PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theClusterCullingHUAWEI
Execution
Model
.
Valid Usage (Implicit)
-
commandBuffer
must be a validCommandBuffer
handle
-
commandBuffer
must be in the recording state - The
CommandPool
thatcommandBuffer
was allocated from must support graphics operations - This command must only be called inside of a render pass instance
- This command must only be called outside of a video coding scope
Host Synchronization
- Host access to
commandBuffer
must be externally synchronized
- Host access to the
CommandPool
thatcommandBuffer
was allocated from must be externally synchronized
Command Properties
'
Command Buffer Levels | Render Pass Scope | Video Coding Scope | Supported Queue Types | Command Type |
---|---|---|---|---|
Primary Secondary | Inside | Outside | Graphics | Action |
See Also
cmdDrawClusterIndirectHUAWEI Source #
:: forall io. MonadIO io | |
=> CommandBuffer |
|
-> Buffer |
|
-> ("offset" ::: DeviceSize) |
|
-> io () |
vkCmdDrawClusterIndirectHUAWEI - Issue an indirect cluster culling draw into a command buffer
Description
cmdDrawClusterIndirectHUAWEI
behaves similarly to
cmdDrawClusterHUAWEI
except that the parameters are read by the device
from a buffer during execution. The parameters of the dispatch are
encoded in a DispatchIndirectCommand
structure taken from buffer starting at offset.Note the cluster culling
shader pipeline only accepts cmdDrawClusterHUAWEI
and
cmdDrawClusterIndirectHUAWEI
as drawing commands.
Valid Usage
- If a
Sampler
created withmagFilter
orminFilter
equal toFILTER_LINEAR
andcompareEnable
equal toFALSE
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
- If a
Sampler
created withmipmapMode
equal toSAMPLER_MIPMAP_MODE_LINEAR
andcompareEnable
equal toFALSE
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
- If a
ImageView
is sampled with depth comparison, the image view’s format features must containFORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT
- If a
ImageView
is accessed using atomic operations as a result of this command, then the image view’s format features must containFORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
- If a
DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER
descriptor is accessed using atomic operations as a result of this command, then the storage texel buffer’s format features must containFORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT
- If a
ImageView
is sampled withFILTER_CUBIC_EXT
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
- If the
VK_EXT_filter_cubic
extension is not enabled and any
ImageView
is sampled withFILTER_CUBIC_EXT
as a result of this command, it must not have aImageViewType
ofIMAGE_VIEW_TYPE_3D
,IMAGE_VIEW_TYPE_CUBE
, orIMAGE_VIEW_TYPE_CUBE_ARRAY
- Any
ImageView
being sampled withFILTER_CUBIC_EXT
as a result of this command must have aImageViewType
and format that supports cubic filtering, as specified byFilterCubicImageViewImageFormatPropertiesEXT
::filterCubic
returned bygetPhysicalDeviceImageFormatProperties2
- Any
ImageView
being sampled withFILTER_CUBIC_EXT
with a reduction mode of eitherSAMPLER_REDUCTION_MODE_MIN
orSAMPLER_REDUCTION_MODE_MAX
as a result of this command must have aImageViewType
and format that supports cubic filtering together with minmax filtering, as specified byFilterCubicImageViewImageFormatPropertiesEXT
::filterCubicMinmax
returned bygetPhysicalDeviceImageFormatProperties2
- If the
cubicRangeClamp
feature is not enabled, then any
ImageView
being sampled withFILTER_CUBIC_EXT
as a result of this command must not have aSamplerReductionModeCreateInfo
::reductionMode
equal toSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
- Any
ImageView
being sampled with aSamplerReductionModeCreateInfo
::reductionMode
equal toSAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
as a result of this command must sample withFILTER_CUBIC_EXT
-
If the
selectableCubicWeights
feature is not enabled, then any
ImageView
being sampled withFILTER_CUBIC_EXT
as a result of this command must haveSamplerCubicWeightsCreateInfoQCOM
::cubicWeights
equal toCUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM
- Any
Image
created with aImageCreateInfo
::flags
containingIMAGE_CREATE_CORNER_SAMPLED_BIT_NV
sampled as a result of this command must only be sampled using aSamplerAddressMode
ofSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE
- For any
ImageView
being written as a storage image where the image format field of theOpTypeImage
isUnknown
, the view’s format features must containFORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT
- For any
ImageView
being read as a storage image where the image format field of theOpTypeImage
isUnknown
, the view’s format features must containFORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT
- For any
BufferView
being written as a storage texel buffer where the image format field of theOpTypeImage
isUnknown
, the view’s buffer features must containFORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT
- Any
BufferView
being read as a storage texel buffer where the image format field of theOpTypeImage
isUnknown
then the view’s buffer features must containFORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT
- For each set n
that is statically used by
a bound shader,
a descriptor set must have been bound to n at the same pipeline
bind point, with a
PipelineLayout
that is compatible for set n, with thePipelineLayout
orDescriptorSetLayout
array that was used to create the currentPipeline
orShaderEXT
, as described in ??? - For each push
constant that is statically used by
a bound shader,
a push constant value must have been set for the same pipeline
bind point, with a
PipelineLayout
that is compatible for push constants, with thePipelineLayout
orDescriptorSetLayout
andPushConstantRange
arrays used to create the currentPipeline
orShaderEXT
, as described in ??? - If the
maintenance4
feature is not enabled, then for each push constant that is
statically used by
a bound shader,
a push constant value must have been set for the same pipeline
bind point, with a
PipelineLayout
that is compatible for push constants, with thePipelineLayout
orDescriptorSetLayout
andPushConstantRange
arrays used to create the currentPipeline
orShaderEXT
, as described in ??? - Descriptors in each
bound descriptor set, specified via
cmdBindDescriptorSets
, must be valid if they are statically used by thePipeline
bound to the pipeline bind point used by this command and the boundPipeline
was not created withPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
- If the descriptors
used by the
Pipeline
bound to the pipeline bind point were specified viacmdBindDescriptorSets
, the boundPipeline
must have been created withoutPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
- Descriptors in
bound descriptor buffers, specified via
cmdSetDescriptorBufferOffsetsEXT
, must be valid if they are dynamically used by thePipeline
bound to the pipeline bind point used by this command and the boundPipeline
was created withPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
- Descriptors in
bound descriptor buffers, specified via
cmdSetDescriptorBufferOffsetsEXT
, must be valid if they are dynamically used by anyShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command - If the descriptors
used by the
Pipeline
bound to the pipeline bind point were specified viacmdSetDescriptorBufferOffsetsEXT
, the boundPipeline
must have been created withPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
- If a descriptor is
dynamically used with a
Pipeline
created withPIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident - If a descriptor is
dynamically used with a
ShaderEXT
created with aDescriptorSetLayout
that was created withDESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident - If the shaderObject feature is not enabled, a valid pipeline must be bound to the pipeline bind point used by this command
- If the
shaderObject
is enabled, either a valid pipeline must be bound to the pipeline
bind point used by this command, or a valid combination of valid and
NULL_HANDLE
shader objects must be bound to every supported shader stage corresponding to the pipeline bind point used by this command - If a pipeline is
bound to the pipeline bind point used by this command, there must
not have been any calls to dynamic state setting commands for any
state not specified as dynamic in the
Pipeline
object bound to the pipeline bind point used by this command, since that pipeline was bound - If the
Pipeline
object bound to the pipeline bind point used by this command or anyShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses aSampler
object that uses unnormalized coordinates, that sampler must not be used to sample from anyImage
with aImageView
of the typeIMAGE_VIEW_TYPE_3D
,IMAGE_VIEW_TYPE_CUBE
,IMAGE_VIEW_TYPE_1D_ARRAY
,IMAGE_VIEW_TYPE_2D_ARRAY
orIMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage - If the
Pipeline
object bound to the pipeline bind point used by this command or anyShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses aSampler
object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions withImplicitLod
,Dref
orProj
in their name, in any shader stage - If the
Pipeline
object bound to the pipeline bind point used by this command or anyShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses aSampler
object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions that includes a LOD bias or any offset values, in any shader stage - If any
stage of the
Pipeline
object bound to the pipeline bind point used by this command accesses a uniform buffer, and that stage was created without enabling eitherPIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
orPIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2_EXT
foruniformBuffers
, and the robustBufferAccess feature is not enabled, that stage must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If the
robustBufferAccess
feature is not enabled, and any
ShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses a uniform buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If any
stage of the
Pipeline
object bound to the pipeline bind point used by this command accesses a storage buffer, and that stage was created without enabling eitherPIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
orPIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2_EXT
forstorageBuffers
, and the robustBufferAccess feature is not enabled, that stage must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If the
robustBufferAccess
feature is not enabled, and any
ShaderEXT
bound to a stage corresponding to the pipeline bind point used by this command accesses a storage buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If
commandBuffer
is an unprotected command buffer and protectedNoFault is not supported, any resource accessed by bound shaders must not be a protected resource - If
a bound shader
accesses a
Sampler
orImageView
object that enables sampler Y′CBCR conversion, that object must only be used withOpImageSample*
orOpImageSparseSample*
instructions - If
a bound shader
accesses a
Sampler
orImageView
object that enables sampler Y′CBCR conversion, that object must not use theConstOffset
andOffset
operands - If a
ImageView
is accessed as a result of this command, then the image view’sviewType
must match theDim
operand of theOpTypeImage
as described in ??? - If a
ImageView
is accessed as a result of this command, then the numeric type of the image view’sformat
and theSampled
Type
operand of theOpTypeImage
must match - If a
ImageView
created with a format other thanFORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the image view’s format - If a
ImageView
created with the formatFORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have four components - If a
BufferView
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the buffer view’s format - If a
ImageView
with aFormat
that has a 64-bit component width is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 64 - If a
ImageView
with aFormat
that has a component width less than 64-bit is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 32 - If a
BufferView
with aFormat
that has a 64-bit component width is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 64 - If a
BufferView
with aFormat
that has a component width less than 64-bit is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 32 -
If the
sparseImageInt64Atomics
feature is not enabled,
Image
objects created with theIMAGE_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command -
If the
sparseImageInt64Atomics
feature is not enabled,
Buffer
objects created with theBUFFER_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command -
If
OpImageWeightedSampleQCOM
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_WEIGHT_SAMPLED_IMAGE_BIT_QCOM
-
If
OpImageWeightedSampleQCOM
uses aImageView
as a sample weight image as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_WEIGHT_IMAGE_BIT_QCOM
- If
OpImageBoxFilterQCOM
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_BOX_FILTER_SAMPLED_BIT_QCOM
-
If
OpImageBlockMatchSSDQCOM
is used to read from anImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
If
OpImageBlockMatchSADQCOM
is used to read from anImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
If
OpImageBlockMatchSADQCOM
or OpImageBlockMatchSSDQCOM is used to read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation -
If
OpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses aSampler
as a result of this command, then the sampler must have been created withSAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
If any command other than
OpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses aSampler
as a result of this command, then the sampler must not have been created withSAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
If a
OpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from anImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
If a
OpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from anImageView
as a result of this command, then the image view’s format must be a single-component format. -
If a
OpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation - Any shader invocation executed by this command must terminate
- The current
render pass must be
compatible
with the
renderPass
member of theGraphicsPipelineCreateInfo
structure specified when creating thePipeline
bound toPIPELINE_BIND_POINT_GRAPHICS
- The subpass
index of the current render pass must be equal to the
subpass
member of theGraphicsPipelineCreateInfo
structure specified when creating thePipeline
bound toPIPELINE_BIND_POINT_GRAPHICS
- If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set
- If any
shader executed by this pipeline accesses an
OpTypeImage
variable with aDim
operand ofSubpassData
, it must be decorated with anInputAttachmentIndex
that corresponds to a valid input attachment in the current subpass - Input attachment
views accessed in a subpass must be created with the same
Format
as the corresponding subpass definition, and be created with aImageView
that is compatible with the attachment referenced by the subpass'pInputAttachments
[InputAttachmentIndex
] in the currently boundFramebuffer
as specified by Fragment Input Attachment Compatibility - Memory backing image subresources used as attachments in the current render pass must not be written in any way other than as an attachment by this command
If a color attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in the
IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:- the
PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or the last call to
cmdSetAttachmentFeedbackLoopEnableEXT
includedIMAGE_ASPECT_COLOR_BIT
and- there is no currently bound graphics pipeline or
- the currently bound graphics pipeline was created with
DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
it must not be accessed in any way other than as an attachment by this command
- the
If a depth attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in the
IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:- the
PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or the last call to
cmdSetAttachmentFeedbackLoopEnableEXT
includedIMAGE_ASPECT_DEPTH_BIT
and- there is no currently bound graphics pipeline or
- the currently bound graphics pipeline was created with
DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
it must not be accessed in any way other than as an attachment by this command
- the
If a stencil attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in the
IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:- the
PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or the last call to
cmdSetAttachmentFeedbackLoopEnableEXT
includedIMAGE_ASPECT_STENCIL_BIT
and- there is no currently bound graphics pipeline or
- the currently bound graphics pipeline was created with
DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
it must not be accessed in any way other than as an attachment by this command
- the
- If an attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it must not be accessed in any way other than as an attachment, storage image, or sampled image by this command
- If any previously recorded command in the current subpass accessed an image subresource used as an attachment in this subpass in any way other than as an attachment, this command must not write to that image subresource as an attachment
- If the current render pass instance uses a depth/stencil attachment with a read-only layout for the depth aspect, depth writes must be disabled
- If the current
render pass instance uses a depth/stencil attachment with a
read-only layout for the stencil aspect, both front and back
writeMask
are not zero, and stencil test is enabled, all stencil ops must beSTENCIL_OP_KEEP
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT
dynamic state enabled thencmdSetViewport
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SCISSOR
dynamic state enabled thencmdSetScissor
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LINE_WIDTH
dynamic state enabled thencmdSetLineWidth
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPolygonModeEXT
in the current command buffer setpolygonMode
toPOLYGON_MODE_LINE
,cmdSetLineWidth
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
to any line topology,cmdSetLineWidth
must have been called in the current command buffer prior to this drawing command - If a shader object
that outputs line primitives is bound to the
SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
,cmdSetLineWidth
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled thencmdSetDepthBias
orcmdSetDepthBias2EXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDepthBiasEnable
in the current command buffer setdepthBiasEnable
toTRUE
,cmdSetDepthBias
orcmdSetDepthBias2EXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_BLEND_CONSTANTS
dynamic state enabled thencmdSetBlendConstants
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetColorBlendEnableEXT
in the current command buffer set any element ofpColorBlendEnables
toTRUE
, and the most recent call tocmdSetColorBlendEquationEXT
in the current command buffer set the same element ofpColorBlendEquations
to aColorBlendEquationEXT
structure with anyBlendFactor
member with a value ofBLEND_FACTOR_CONSTANT_COLOR
,BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR
,BLEND_FACTOR_CONSTANT_ALPHA
, orBLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA
,cmdSetBlendConstants
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled, and if the currentdepthBoundsTestEnable
state isTRUE
, thencmdSetDepthBounds
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDepthBoundsTestEnable
in the current command buffer setdepthBoundsTestEnable
toTRUE
, thencmdSetDepthBounds
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled, and if the currentstencilTestEnable
state isTRUE
, thencmdSetStencilCompareMask
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetStencilTestEnable
in the current command buffer setstencilTestEnable
toTRUE
,cmdSetStencilCompareMask
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled, and if the currentstencilTestEnable
state isTRUE
, thencmdSetStencilWriteMask
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetStencilTestEnable
in the current command buffer setstencilTestEnable
toTRUE
,cmdSetStencilWriteMask
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled, and if the currentstencilTestEnable
state isTRUE
, thencmdSetStencilReference
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetStencilTestEnable
in the current command buffer setstencilTestEnable
toTRUE
,cmdSetStencilReference
must have been called in the current command buffer prior to this drawing command -
If the draw is recorded in a render pass instance with multiview
enabled, the maximum instance index must be less than or equal to
PhysicalDeviceMultiviewProperties
::maxMultiviewInstanceIndex
- If
the bound graphics pipeline was created with
PipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
set toTRUE
and the current subpass has a depth/stencil attachment, then that attachment must have been created with theIMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
dynamic state enabled thencmdSetSampleLocationsEXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetSampleLocationsEnableEXT
in the current command buffer setsampleLocationsEnable
toTRUE
, thencmdSetSampleLocationsEXT
must have been called in the current command buffer prior to this drawing command -
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, then thesampleLocationsPerPixel
member ofpSampleLocationsInfo
in the last call tocmdSetSampleLocationsEXT
must equal therasterizationSamples
member of thePipelineMultisampleStateCreateInfo
structure the bound graphics pipeline has been created with - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_CULL_MODE
dynamic state enabled thencmdSetCullMode
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCullMode
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_FRONT_FACE
dynamic state enabled thencmdSetFrontFace
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetFrontFace
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_TEST_ENABLE
dynamic state enabled thencmdSetDepthTestEnable
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDepthTestEnable
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_WRITE_ENABLE
dynamic state enabled thencmdSetDepthWriteEnable
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDepthWriteEnable
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_COMPARE_OP
dynamic state enabled thencmdSetDepthCompareOp
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDepthTestEnable
in the current command buffer setdepthTestEnable
toTRUE
, thencmdSetDepthCompareOp
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE
dynamic state enabled thencmdSetDepthBoundsTestEnable
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the
depthBounds
feature is enabled, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, then thecmdSetDepthBoundsTestEnable
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_STENCIL_TEST_ENABLE
dynamic state enabled thencmdSetStencilTestEnable
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetStencilTestEnable
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_STENCIL_OP
dynamic state enabled thencmdSetStencilOp
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetStencilTestEnable
in the current command buffer setstencilTestEnable
toTRUE
, thencmdSetStencilOp
must have been called in the current command buffer prior to this drawing command - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_SCISSOR_WITH_COUNT
dynamic state enabled, thencmdSetViewportWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must match thePipelineViewportStateCreateInfo
::scissorCount
of the pipeline - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_SCISSOR_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, thencmdSetScissorWithCount
must have been called in the current command buffer prior to this drawing command, and thescissorCount
parameter ofcmdSetScissorWithCount
must match thePipelineViewportStateCreateInfo
::viewportCount
of the pipeline - If the
bound graphics pipeline state was created with both the
DYNAMIC_STATE_SCISSOR_WITH_COUNT
andDYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic states enabled then bothcmdSetViewportWithCount
andcmdSetScissorWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must match thescissorCount
parameter ofcmdSetScissorWithCount
- If a shader object
is bound to any graphics stage, then both
cmdSetViewportWithCount
andcmdSetScissorWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must match thescissorCount
parameter ofcmdSetScissorWithCount
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportWScalingStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportWScalingNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
VK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetViewportWScalingEnableNV
in the current command buffer setviewportWScalingEnable
toTRUE
, thencmdSetViewportWScalingNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetViewportWScalingEnableNV
in the current command buffer setviewportWScalingEnable
toTRUE
, then theviewportCount
parameter in the last call tocmdSetViewportWScalingNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportShadingRateImageStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportShadingRatePaletteNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
shadingRateImage
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCoarseSampleOrderNV
must have been called in the current command buffer prior to this drawing command - If the
shadingRateImage
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetShadingRateImageEnableNV
in the current command buffer setshadingRateImageEnable
toTRUE
, thencmdSetViewportShadingRatePaletteNV
must have been called in the current command buffer prior to this drawing command - If the
shadingRateImage
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetShadingRateImageEnableNV
in the current command buffer setshadingRateImageEnable
toTRUE
, then theviewportCount
parameter in the last call tocmdSetViewportShadingRatePaletteNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
-
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled and aPipelineViewportSwizzleStateCreateInfoNV
structure chained fromPipelineViewportStateCreateInfo
, then the bound graphics pipeline must have been created withPipelineViewportSwizzleStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
-
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled and aPipelineViewportExclusiveScissorStateCreateInfoNV
structure chained fromPipelineViewportStateCreateInfo
, then the bound graphics pipeline must have been created withPipelineViewportExclusiveScissorStateCreateInfoNV
::exclusiveScissorCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV
dynamic state enabled thencmdSetExclusiveScissorEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
dynamic state enabled thencmdSetExclusiveScissorNV
must have been called in the current command buffer prior to this drawing command - If the
exclusiveScissor
feature is enabled, and a shader object is bound to any graphics
stage, then
cmdSetExclusiveScissorEnableNV
must have been called in the current command buffer prior to this drawing command - If the
exclusiveScissor
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetExclusiveScissorEnableNV
in the current command buffer set any element ofpExclusiveScissorEnables
toTRUE
, thencmdSetExclusiveScissorNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE
dynamic state enabled thencmdSetRasterizerDiscardEnable
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, then
cmdSetRasterizerDiscardEnable
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_BIAS_ENABLE
dynamic state enabled thencmdSetDepthBiasEnable
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDepthBiasEnable
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled thencmdSetLogicOpEXT
must have been called in the current command buffer prior to this drawing command and thelogicOp
must be a validLogicOp
value - If a shader object
is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetLogicOpEnableEXT
setlogicOpEnable
toTRUE
, thencmdSetLogicOpEXT
must have been called in the current command buffer prior to this drawing command and thelogicOp
must be a validLogicOp
value -
If the
primitiveFragmentShadingRateWithMultipleViewports
limit is not supported, the bound graphics pipeline was created with
the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, and any of the shader stages of the bound graphics pipeline write to thePrimitiveShadingRateKHR
built-in, thencmdSetViewportWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must be1
-
If the
primitiveFragmentShadingRateWithMultipleViewports
limit is not supported, and any shader object bound to a graphics
stage writes to the
PrimitiveShadingRateKHR
built-in, thencmdSetViewportWithCount
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCount
must be1
- If
rasterization is not disabled in the bound graphics pipeline, then
for each color attachment in the subpass, if the corresponding image
view’s
format features
do not contain
FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then theblendEnable
member of the corresponding element of thepAttachments
member ofpColorBlendState
must beFALSE
- If a shader object
is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, then for each color attachment in the render pass, if the corresponding image view’s format features do not containFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then the corresponding member ofpColorBlendEnables
in the most recent call tocmdSetColorBlendEnableEXT
in the current command buffer that affected that attachment index must have beenFALSE
-
If rasterization is not disabled in the bound graphics pipeline, and
none of the
VK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or the multisampledRenderToSingleSampled feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or the multisampledRenderToSingleSampled feature is enabled, then the most recent call tocmdSetRasterizationSamplesEXT
in the current command buffer must have setrasterizationSamples
to be the same as the number of samples for the current render pass color and/or depth/stencil attachments - If a shader object
is bound to any graphics stage, the current render pass instance
must have been begun with
cmdBeginRendering
- If the current
render pass instance was begun with
cmdBeginRendering
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment - If the current
render pass instance was begun with
cmdBeginRendering
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current
render pass instance was begun with
cmdBeginRendering
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
, this command must not write any values to the depth attachment - If the current
render pass instance was begun with
cmdBeginRendering
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current
render pass instance was begun with
cmdBeginRendering
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment - If the current
render pass instance was begun with
cmdBeginRendering
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current
render pass instance was begun with
cmdBeginRendering
, the currently bound graphics pipeline must have been created with aPipelineRenderingCreateInfo
::viewMask
equal toRenderingInfo
::viewMask
- If
the current render pass instance was begun with
cmdBeginRendering
, the currently bound graphics pipeline must have been created with aPipelineRenderingCreateInfo
::colorAttachmentCount
equal toRenderingInfo
::colorAttachmentCount
-
If the
dynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was
begun with
cmdBeginRendering
andRenderingInfo
::colorAttachmentCount
greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with aFormat
equal to the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
used to create the currently bound graphics pipeline -
If the
dynamicRenderingUnusedAttachments
feature is enabled, and the current render pass instance was begun
with
cmdBeginRendering
andRenderingInfo
::colorAttachmentCount
greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with aFormat
equal to the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
used to create the currently bound graphics pipeline, or the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
, if it exists, must beFORMAT_UNDEFINED
-
If the
dynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was
begun with
cmdBeginRendering
andRenderingInfo
::colorAttachmentCount
greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
equal toNULL_HANDLE
must have the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
used to create the currently bound pipeline equal toFORMAT_UNDEFINED
- If
the current render pass instance was begun with
cmdBeginRendering
, with aRenderingInfo
::colorAttachmentCount
equal to1
, there is no shader object bound to any graphics stage, and a color attachment with a resolve mode ofRESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of theRenderingInfo
::pColorAttachments
array with aresolveImageView
not equal toNULL_HANDLE
must have been created with an image created with aExternalFormatANDROID
::externalFormat
value equal to theExternalFormatANDROID
::externalFormat
value used to create the currently bound graphics pipeline - If there is no
shader object bound to any graphics stage, the current render pass
instance was begun with
cmdBeginRendering
and aRenderingInfo
::colorAttachmentCount
equal to1
, and a color attachment with a resolve mode ofRESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with an image created with aExternalFormatANDROID
::externalFormat
value equal to theExternalFormatANDROID
::externalFormat
value used to create the currently bound graphics pipeline - If the current
render pass instance was begun with
cmdBeginRendering
, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zeroExternalFormatANDROID
::externalFormat
value and with theDYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled, thencmdSetColorBlendEnableEXT
must have set the blend enable toFALSE
prior to this drawing command - If the current
render pass instance was begun with
cmdBeginRendering
, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zeroExternalFormatANDROID
::externalFormat
value and with theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, thencmdSetRasterizationSamplesEXT
must have setrasterizationSamples
toSAMPLE_COUNT_1_BIT
prior to this drawing command - If there is a
shader object bound to any graphics stage, and the current render
pass includes a color attachment that uses the
RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, thencmdSetColorBlendEnableEXT
must have set blend enable toFALSE
prior to this drawing command - If
there is a shader object bound to any graphics stage, and the
current render pass includes a color attachment that uses the
RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, thencmdSetRasterizationSamplesEXT
must have setrasterizationSamples
toSAMPLE_COUNT_1_BIT
prior to this drawing command - If the current
render pass instance was begun with
cmdBeginRendering
, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zeroExternalFormatANDROID
::externalFormat
value and with theDYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, thencmdSetFragmentShadingRateKHR
must have setpFragmentSize->width
to1
prior to this drawing command - If the current
render pass instance was begun with
cmdBeginRendering
, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zeroExternalFormatANDROID
::externalFormat
value and with theDYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, thencmdSetFragmentShadingRateKHR
must have setpFragmentSize->height
to1
prior to this drawing command - If there
is a shader object bound to any graphics stage, and the current
render pass includes a color attachment that uses the
RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, thencmdSetFragmentShadingRateKHR
must have setpFragmentSize->width
to1
prior to this drawing command - If there
is a shader object bound to any graphics stage, and the current
render pass includes a color attachment that uses the
RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, thencmdSetFragmentShadingRateKHR
must have setpFragmentSize->height
to1
prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT
dynamic state enabled thencmdSetColorWriteEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
colorWriteEnable
feature is enabled on the device, and a shader object is bound to
the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorWriteEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT
dynamic state enabled then theattachmentCount
parameter ofcmdSetColorWriteEnableEXT
must be greater than or equal to thePipelineColorBlendStateCreateInfo
::attachmentCount
of the currently bound graphics pipeline - If the
colorWriteEnable
feature is enabled on the device, and a shader object is bound to
the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, then theattachmentCount
parameter of most recent call tocmdSetColorWriteEnableEXT
in the current command buffer must be greater than or equal to the number of color attachments in the current render pass instance - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DISCARD_RECTANGLE_EXT
dynamic state enabled thencmdSetDiscardRectangleEXT
must have been called in the current command buffer prior to this drawing command for each discard rectangle inPipelineDiscardRectangleStateCreateInfoEXT
::discardRectangleCount
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DISCARD_RECTANGLE_ENABLE_EXT
dynamic state enabled thencmdSetDiscardRectangleEnableEXT
must have been called in the current command buffer prior to this drawing command -
If the
VK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDiscardRectangleEnableEXT
in the current command buffer setdiscardRectangleEnable
toTRUE
, thencmdSetDiscardRectangleEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDiscardRectangleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DISCARD_RECTANGLE_MODE_EXT
dynamic state enabled thencmdSetDiscardRectangleModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetDiscardRectangleEnableEXT
in the current command buffer setdiscardRectangleEnable
toTRUE
, thencmdSetDiscardRectangleModeEXT
must have been called in the current command buffer prior to this drawing command -
If the current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is not enabled, andRenderingInfo
::pDepthAttachment->imageView
wasNULL_HANDLE
, the value ofPipelineRenderingCreateInfo
::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal toFORMAT_UNDEFINED
-
If current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is not enabled, andRenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, the value ofPipelineRenderingCreateInfo
::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to theFormat
used to createRenderingInfo
::pDepthAttachment->imageView
-
If the current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is enabled,RenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, and the value ofPipelineRenderingCreateInfo
::depthAttachmentFormat
used to create the currently bound graphics pipeline was not equal to theFormat
used to createRenderingInfo
::pDepthAttachment->imageView
, the value of the format must beFORMAT_UNDEFINED
-
If the current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is not enabled, andRenderingInfo
::pStencilAttachment->imageView
wasNULL_HANDLE
, the value ofPipelineRenderingCreateInfo
::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal toFORMAT_UNDEFINED
-
If current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is not enabled, andRenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, the value ofPipelineRenderingCreateInfo
::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal to theFormat
used to createRenderingInfo
::pStencilAttachment->imageView
-
If the current render pass instance was begun with
cmdBeginRendering
, the dynamicRenderingUnusedAttachments feature is enabled,RenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, and the value ofPipelineRenderingCreateInfo
::stencilAttachmentFormat
used to create the currently bound graphics pipeline was not equal to theFormat
used to createRenderingInfo
::pStencilAttachment->imageView
, the value of the format must beFORMAT_UNDEFINED
- If the current
render pass instance was begun with
cmdBeginRendering
andRenderingFragmentShadingRateAttachmentInfoKHR
::imageView
was notNULL_HANDLE
, the currently bound graphics pipeline must have been created withPIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
- If the current
render pass instance was begun with
cmdBeginRendering
andRenderingFragmentDensityMapAttachmentInfoEXT
::imageView
was notNULL_HANDLE
, the currently bound graphics pipeline must have been created withPIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT
- If
the currently bound pipeline was created with a
AttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the current render pass instance was begun withcmdBeginRendering
with aRenderingInfo
::colorAttachmentCount
parameter greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with a sample count equal to the corresponding element of thepColorAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline - If the
current render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline was created with aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, the value of thedepthStencilAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfo
::pDepthAttachment->imageView
- If
the current render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline was created with aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, the value of thedepthStencilAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfo
::pStencilAttachment->imageView
-
If the currently bound pipeline was created without a
AttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the multisampledRenderToSingleSampled feature is not enabled, and the current render pass instance was begun withcmdBeginRendering
with aRenderingInfo
::colorAttachmentCount
parameter greater than0
, then each element of theRenderingInfo
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with a sample count equal to the value ofrasterizationSamples
for the currently bound graphics pipeline -
If the current render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline was created without aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the multisampledRenderToSingleSampled feature is not enabled, andRenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfo
::pDepthAttachment->imageView
-
If the current render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline was created without aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the multisampledRenderToSingleSampled feature is not enabled, andRenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfo
::pStencilAttachment->imageView
- If this command
has been called inside a render pass instance started with
cmdBeginRendering
, and thepNext
chain ofRenderingInfo
includes aMultisampledRenderToSingleSampledInfoEXT
structure withmultisampledRenderToSingleSampledEnable
equal toTRUE
, then the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal toMultisampledRenderToSingleSampledInfoEXT
::rasterizationSamples
- If the
current render pass instance was begun with
cmdBeginRendering
, the currently bound pipeline must have been created with aGraphicsPipelineCreateInfo
::renderPass
equal toNULL_HANDLE
- If the
current render pass instance was begun with
cmdBeginRendering
, there is a graphics pipeline bound with a fragment shader that statically writes to a color attachment, the color write mask is not zero, color writes are enabled, and the corresponding element of theRenderingInfo
::pColorAttachments->imageView
was notNULL_HANDLE
, then the corresponding element ofPipelineRenderingCreateInfo
::pColorAttachmentFormats
used to create the pipeline must not beFORMAT_UNDEFINED
- If the
current render pass instance was begun with
cmdBeginRendering
, there is a graphics pipeline bound, depth test is enabled, depth write is enabled, and theRenderingInfo
::pDepthAttachment->imageView
was notNULL_HANDLE
, then thePipelineRenderingCreateInfo
::depthAttachmentFormat
used to create the pipeline must not beFORMAT_UNDEFINED
- If
the current render pass instance was begun with
cmdBeginRendering
, there is a graphics pipeline bound, stencil test is enabled and theRenderingInfo
::pStencilAttachment->imageView
was notNULL_HANDLE
, then thePipelineRenderingCreateInfo
::stencilAttachmentFormat
used to create the pipeline must not beFORMAT_UNDEFINED
-
If the
primitivesGeneratedQueryWithRasterizerDiscard
feature is not enabled and the
QUERY_TYPE_PRIMITIVES_GENERATED_EXT
query is active, rasterization discard must not be enabled -
If the
primitivesGeneratedQueryWithNonZeroStreams
feature is not enabled and the
QUERY_TYPE_PRIMITIVES_GENERATED_EXT
query is active, the bound graphics pipeline must not have been created with a non-zero value inPipelineRasterizationStateStreamCreateInfoEXT
::rasterizationStream
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT
dynamic state enabled thencmdSetTessellationDomainOriginEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_CLAMP_ENABLE_EXT
dynamic state enabled thencmdSetDepthClampEnableEXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to the
SHADER_STAGE_TESSELLATION_EVALUATION_BIT
stage, thencmdSetTessellationDomainOriginEXT
must have been called in the current command buffer prior to this drawing command - If the
depthClamp
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetDepthClampEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_POLYGON_MODE_EXT
dynamic state enabled thencmdSetPolygonModeEXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetPolygonModeEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled thencmdSetRasterizationSamplesEXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetRasterizationSamplesEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_MASK_EXT
dynamic state enabled thencmdSetSampleMaskEXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetSampleMaskEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled thencmdSetAlphaToCoverageEnableEXT
must have been called in the current command buffer prior to this drawing command - If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled, andalphaToCoverageEnable
wasTRUE
in the last call tocmdSetAlphaToCoverageEnableEXT
, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 - If a shader object
is bound to any graphics stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetAlphaToCoverageEnableEXT
must have been called in the current command buffer prior to this drawing command - If
a shader object is bound to any graphics stage, and the most recent
call to
cmdSetAlphaToCoverageEnableEXT
in the current command buffer setalphaToCoverageEnable
toTRUE
, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_ALPHA_TO_ONE_ENABLE_EXT
dynamic state enabled thencmdSetAlphaToOneEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
alphaToOne
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetAlphaToOneEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LOGIC_OP_ENABLE_EXT
dynamic state enabled thencmdSetLogicOpEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
logicOp
feature is enabled, and a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetLogicOpEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled thencmdSetColorBlendEnableEXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorBlendEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT
dynamic state enabled thencmdSetColorBlendEquationEXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetColorBlendEnableEXT
for any attachment set that attachment’s value inpColorBlendEnables
toTRUE
, thencmdSetColorBlendEquationEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
dynamic state enabled thencmdSetColorWriteMaskEXT
must have been called in the current command buffer prior to this drawing command - If a shader object
is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorWriteMaskEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_STREAM_EXT
dynamic state enabled thencmdSetRasterizationStreamEXT
must have been called in the current command buffer prior to this drawing command - If the
geometryStreams
feature is enabled, and a shader object is bound to the
SHADER_STAGE_GEOMETRY_BIT
stage, thencmdSetRasterizationStreamEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled thencmdSetConservativeRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_conservative_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetConservativeRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_EXTRA_PRIMITIVE_OVERESTIMATION_SIZE_EXT
dynamic state enabled thencmdSetExtraPrimitiveOverestimationSizeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_conservative_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetConservativeRasterizationModeEXT
in the current command buffer setconservativeRasterizationMode
toCONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT
, thencmdSetExtraPrimitiveOverestimationSizeEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT
dynamic state enabled thencmdSetDepthClipEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
depthClipEnable
feature is enabled, and a shader object is bound to any graphics
stage, then
cmdSetDepthClipEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
dynamic state enabled thencmdSetSampleLocationsEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_sample_locations
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetSampleLocationsEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
dynamic state enabled thencmdSetColorBlendAdvancedEXT
must have been called in the current command buffer prior to this drawing command -
If the
VK_EXT_blend_operation_advanced
extension is enabled, and a shader object is bound to theSHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, then at least one ofcmdSetColorBlendEquationEXT
andcmdSetColorBlendAdvancedEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_PROVOKING_VERTEX_MODE_EXT
dynamic state enabled thencmdSetProvokingVertexModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_provoking_vertex
extension is enabled, and a shader object is bound to theSHADER_STAGE_VERTEX_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetProvokingVertexModeEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic state enabled thencmdSetLineRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPolygonModeEXT
in the current command buffer setpolygonMode
toPOLYGON_MODE_LINE
, thencmdSetLineRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theSHADER_STAGE_VERTEX_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
to any line topology, thencmdSetLineRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theSHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetLineRasterizationModeEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
dynamic state enabled thencmdSetLineStippleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPolygonModeEXT
in the current command buffer setpolygonMode
toPOLYGON_MODE_LINE
, thencmdSetLineStippleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theSHADER_STAGE_VERTEX_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
to any line topology, thencmdSetLineStippleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theSHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetLineStippleEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled thencmdSetLineStippleEXT
must have been called in the current command buffer prior to this drawing command - If the
VK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetLineStippleEnableEXT
in the current command buffer setstippledLineEnable
toTRUE
, thencmdSetLineStippleEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT
dynamic state enabled thencmdSetDepthClipNegativeOneToOneEXT
must have been called in the current command buffer prior to this drawing command - If the
depthClipControl
feature is enabled, and a shader object is bound to any graphics
stage, then
cmdSetDepthClipNegativeOneToOneEXT
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_W_SCALING_ENABLE_NV
dynamic state enabled thencmdSetViewportWScalingEnableNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, thencmdSetViewportWScalingEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled thencmdSetViewportSwizzleNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, thencmdSetViewportSwizzleNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
dynamic state enabled thencmdSetCoverageToColorEnableNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theSHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCoverageToColorEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_TO_COLOR_LOCATION_NV
dynamic state enabled thencmdSetCoverageToColorLocationNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theSHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetCoverageToColorEnableNV
in the current command buffer setcoverageToColorEnable
toTRUE
, thencmdSetCoverageToColorLocationNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_MODULATION_MODE_NV
dynamic state enabled thencmdSetCoverageModulationModeNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCoverageModulationModeNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
dynamic state enabled thencmdSetCoverageModulationTableEnableNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetCoverageModulationModeNV
in the current command buffer set coverageModulationMode to any value other thanCOVERAGE_MODULATION_MODE_NONE_NV
, thencmdSetCoverageModulationTableEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_NV
dynamic state enabled thencmdSetCoverageModulationTableNV
must have been called in the current command buffer prior to this drawing command - If the
VK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the most recent call tocmdSetCoverageModulationTableEnableNV
in the current command buffer setcoverageModulationTableEnable
toTRUE
, thencmdSetCoverageModulationTableNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SHADING_RATE_IMAGE_ENABLE_NV
dynamic state enabled thencmdSetShadingRateImageEnableNV
must have been called in the current command buffer prior to this drawing command -
If the
pipelineFragmentShadingRate
feature is enabled, and a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer set rasterizerDiscardEnable toFALSE
, thencmdSetFragmentShadingRateKHR
must have been called in the current command buffer prior to this drawing command - If the
shadingRateImage
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetShadingRateImageEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_REPRESENTATIVE_FRAGMENT_TEST_ENABLE_NV
dynamic state enabled thencmdSetRepresentativeFragmentTestEnableNV
must have been called in the current command buffer prior to this drawing command - If the
representativeFragmentTest
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetRepresentativeFragmentTestEnableNV
must have been called in the current command buffer prior to this drawing command - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV
dynamic state enabled thencmdSetCoverageReductionModeNV
must have been called in the current command buffer prior to this drawing command - If the
coverageReductionMode
feature is enabled, and a shader object is bound to any graphics
stage, and the most recent call to
cmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetCoverageReductionModeNV
must have been called in the current command buffer prior to this drawing command - If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
state enabled and the last call tocmdSetColorBlendEnableEXT
setpColorBlendEnables
for any attachment toTRUE
, then for those attachments in the subpass the corresponding image view’s format features must containFORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, and the current subpass does not use any color and/or depth/stencil attachments, then therasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
must follow the rules for a zero-attachment subpass - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_MASK_EXT
state enabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state disabled, then thesamples
parameter in the last call tocmdSetSampleMaskEXT
must be greater or equal to thePipelineMultisampleStateCreateInfo
::rasterizationSamples
parameter used to create the bound graphics pipeline - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_MASK_EXT
state andDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
states enabled, then thesamples
parameter in the last call tocmdSetSampleMaskEXT
must be greater or equal to therasterizationSamples
parameter in the last call tocmdSetRasterizationSamplesEXT
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, and neither theVK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, then therasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
must be the same as the current subpass color and/or depth/stencil attachments - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, or a shader object is bound to any graphics stage, and the current render pass instance includes aMultisampledRenderToSingleSampledInfoEXT
structure withmultisampledRenderToSingleSampledEnable
equal toTRUE
, then therasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
must be the same as therasterizationSamples
member of that structure - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled thencmdSetColorBlendEnableEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass -
If a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorBlendEnableEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT
dynamic state enabled thencmdSetColorBlendEquationEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled -
If a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorBlendEquationEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
dynamic state enabled thencmdSetColorWriteMaskEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass -
If a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetColorWriteMaskEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass - If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
dynamic state enabled thencmdSetColorBlendAdvancedEXT
must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofcmdSetColorBlendAdvancedEXT
calls must specify the advanced blend equations for all active color attachments in the current subpass where blending is enabled -
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
andDYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic states enabled and the last calls tocmdSetColorBlendEnableEXT
andcmdSetColorBlendAdvancedEXT
have enabled advanced blending, then the number of active color attachments in the current subpass must not exceed advancedBlendMaxColorAttachments -
If the
primitivesGeneratedQueryWithNonZeroStreams
feature is not enabled and the
QUERY_TYPE_PRIMITIVES_GENERATED_EXT
query is active, and the bound graphics pipeline was created withDYNAMIC_STATE_RASTERIZATION_STREAM_EXT
state enabled, the last call tocmdSetRasterizationStreamEXT
must have set therasterizationStream
to zero -
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state disabled, then thesampleLocationsPerPixel
member ofpSampleLocationsInfo
in the last call tocmdSetSampleLocationsEXT
must equal therasterizationSamples
member of thePipelineMultisampleStateCreateInfo
structure the bound graphics pipeline has been created with -
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, then thesampleLocationsPerPixel
member ofpSampleLocationsInfo
in the last call tocmdSetSampleLocationsEXT
must equal therasterizationSamples
parameter of the last call tocmdSetRasterizationSamplesEXT
- If
a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline was created with theDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, andsampleLocationsEnable
wasTRUE
in the last call tocmdSetSampleLocationsEnableEXT
, and the current subpass has a depth/stencil attachment, then that attachment must have been created with theIMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set - If
a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasTRUE
in the last call tocmdSetSampleLocationsEnableEXT
, then thesampleLocationsInfo.sampleLocationGridSize.width
in the last call tocmdSetSampleLocationsEXT
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.width
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equalingrasterizationSamples
- If
a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theDYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasTRUE
in the last call tocmdSetSampleLocationsEnableEXT
, then thesampleLocationsInfo.sampleLocationGridSize.height
in the last call tocmdSetSampleLocationsEXT
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.height
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equalingrasterizationSamples
- If
a shader object is bound to the
SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasTRUE
in the last call tocmdSetSampleLocationsEnableEXT
, the fragment shader code must not statically use the extended instructionInterpolateAtSample
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
in the bound graphics pipeline isTRUE
orDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationGridSize.width
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.width
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equaling the value ofrasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
in the bound graphics pipeline isTRUE
orDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationGridSize.height
must evenly divideMultisamplePropertiesEXT
::sampleLocationGridSize.height
as returned bygetPhysicalDeviceMultisamplePropertiesEXT
with asamples
parameter equaling the value ofrasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of aPipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
in the bound graphics pipeline isTRUE
orDYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationsPerPixel
must equalrasterizationSamples
in the last call tocmdSetRasterizationSamplesEXT
-
If a shader object is bound to any graphics stage or the bound
graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
state enabled, and the last call tocmdSetCoverageModulationTableEnableNV
setcoverageModulationTableEnable
toTRUE
, then thecoverageModulationTableCount
parameter in the last call tocmdSetCoverageModulationTableNV
must equal the currentrasterizationSamples
divided by the number of color samples in the current subpass - If
the
VK_NV_framebuffer_mixed_samples
extension is enabled, and if current subpass has a depth/stencil attachment and depth test, stencil test, or depth bounds test are enabled in the currently bound pipeline state, then the currentrasterizationSamples
must be the same as the sample count of the depth/stencil attachment - If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
state enabled and the last call tocmdSetCoverageToColorEnableNV
set thecoverageToColorEnable
toTRUE
, then the current subpass must have a color attachment at the location selected by the last call tocmdSetCoverageToColorLocationNV
coverageToColorLocation
, with aFormat
ofFORMAT_R8_UINT
,FORMAT_R8_SINT
,FORMAT_R16_UINT
,FORMAT_R16_SINT
,FORMAT_R32_UINT
, orFORMAT_R32_SINT
-
If the
VK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theSHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, and the last call tocmdSetCoverageToColorEnableNV
set thecoverageToColorEnable
toTRUE
, then the current subpass must have a color attachment at the location selected by the last call tocmdSetCoverageToColorLocationNV
coverageToColorLocation
, with aFormat
ofFORMAT_R8_UINT
,FORMAT_R8_SINT
,FORMAT_R16_UINT
,FORMAT_R16_SINT
,FORMAT_R32_UINT
, orFORMAT_R32_SINT
- If
this
VK_NV_coverage_reduction_mode
extension is enabled, the bound graphics pipeline state was created with theDYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
andDYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
states enabled, the current coverage reduction modecoverageReductionMode
, then the currentrasterizationSamples
, and the sample counts for the color and depth/stencil attachments (if the subpass has them) must be a valid combination returned bygetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportSwizzleStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andDYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportSwizzleNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If the
VK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, then theviewportCount
parameter in the last call tocmdSetViewportSwizzleNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCount
- If
the
VK_NV_framebuffer_mixed_samples
extension is enabled, and if the current subpass has any color attachments andrasterizationSamples
of the last call tocmdSetRasterizationSamplesEXT
is greater than the number of color samples, then the pipelinesampleShadingEnable
must beFALSE
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orDYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isTRUE
and the currentlineRasterizationMode
state isLINE_RASTERIZATION_MODE_RECTANGULAR_EXT
, then the stippledRectangularLines feature must be enabled - If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orDYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isTRUE
and the currentlineRasterizationMode
state isLINE_RASTERIZATION_MODE_BRESENHAM_EXT
, then the stippledBresenhamLines feature must be enabled - If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orDYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isTRUE
and the currentlineRasterizationMode
state isLINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
, then the stippledSmoothLines feature must be enabled - If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orDYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isTRUE
and the currentlineRasterizationMode
state isLINE_RASTERIZATION_MODE_DEFAULT_EXT
, then the stippledRectangularLines feature must be enabled andPhysicalDeviceLimits
::strictLines
must beTRUE
-
If the bound graphics pipeline state was created with the
DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled, conservativePointAndLineRasterization is not supported, and the effective primitive topology output by the last pre-rasterization shader stage is a line or point, then theconservativeRasterizationMode
set by the last call tocmdSetConservativeRasterizationModeEXT
must beCONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXT
- If the currently
bound pipeline was created with the
PipelineShaderStageCreateInfo
::stage
member of an element ofGraphicsPipelineCreateInfo
::pStages
set toSHADER_STAGE_VERTEX_BIT
,SHADER_STAGE_TESSELLATION_CONTROL_BIT
,SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
, then Mesh Shader Queries must not be active - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
dynamic statecmdSetAttachmentFeedbackLoopEnableEXT
must have been called in the current command buffer prior to this drawing command - If dynamic state
was inherited from
CommandBufferInheritanceViewportScissorInfoNV
, it must be set in the current command buffer prior to this drawing command - If there is no
bound graphics pipeline,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_VERTEX_BIT
- If there is no
bound graphics pipeline, and the
tessellationShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_TESSELLATION_CONTROL_BIT
- If there is no
bound graphics pipeline, and the
tessellationShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_TESSELLATION_EVALUATION_BIT
- If there is no
bound graphics pipeline, and the
geometryShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_GEOMETRY_BIT
- If there is no
bound graphics pipeline,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_FRAGMENT_BIT
- If there is no
bound graphics pipeline, and the
taskShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_TASK_BIT_EXT
- If there is no
bound graphics pipeline, and the
meshShader
feature is enabled,
cmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofSHADER_STAGE_MESH_BIT_EXT
- If there is no
bound graphics pipeline, and at least one of the
taskShader
and
meshShader
features is enabled, one of the
SHADER_STAGE_VERTEX_BIT
orSHADER_STAGE_MESH_BIT_EXT
stages must have a validShaderEXT
bound, and the other must have noShaderEXT
bound - If there is no
bound graphics pipeline, and both the
taskShader
and
meshShader
features are enabled, and a valid
ShaderEXT
is bound the to theSHADER_STAGE_MESH_BIT_EXT
stage, and thatShaderEXT
was created without theSHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, a validShaderEXT
must be bound to theSHADER_STAGE_TASK_BIT_EXT
stage - If there is no
bound graphics pipeline, and both the
taskShader
and
meshShader
features are enabled, and a valid
ShaderEXT
is bound the to theSHADER_STAGE_MESH_BIT_EXT
stage, and thatShaderEXT
was created with theSHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, there must be noShaderEXT
bound to theSHADER_STAGE_TASK_BIT_EXT
stage - If there is no
bound graphics pipeline, and a valid
ShaderEXT
is bound to theSHADER_STAGE_VERTEX_BIT
stage, there must be noShaderEXT
bound to either theSHADER_STAGE_TASK_BIT_EXT
stage or theSHADER_STAGE_MESH_BIT_EXT
stage - If any graphics
shader is bound which was created with the
SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, then all shaders created with theSHADER_CREATE_LINK_STAGE_BIT_EXT
flag in the samecreateShadersEXT
call must also be bound - If any graphics
shader is bound which was created with the
SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, any stages in between stages whose shaders which did not create a shader with theSHADER_CREATE_LINK_STAGE_BIT_EXT
flag as part of the samecreateShadersEXT
call must not have anyShaderEXT
bound - All bound graphics shader objects must have been created with identical or identically defined push constant ranges
- All bound graphics shader objects must have been created with identical or identically defined arrays of descriptor set layouts
- If
the current render pass instance was begun with
cmdBeginRendering
and aRenderingInfo
::colorAttachmentCount
equal to1
, a color attachment with a resolve mode ofRESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, and a fragment shader is bound, it must not declare theDepthReplacing
orStencilRefReplacingEXT
execution modes - If the
attachmentFeedbackLoopDynamicState
feature is enabled on the device, and a shader object is bound to
the
SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call tocmdSetRasterizerDiscardEnable
in the current command buffer setrasterizerDiscardEnable
toFALSE
, thencmdSetAttachmentFeedbackLoopEnableEXT
must have been called in the current command buffer prior to this drawing command - If the
bound graphics pipeline state includes a fragment shader stage, was
created with
DYNAMIC_STATE_DEPTH_WRITE_ENABLE
set inPipelineDynamicStateCreateInfo
::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpDepthAttachmentReadEXT
, thedepthWriteEnable
parameter in the last call tocmdSetDepthWriteEnable
must beFALSE
- If the
bound graphics pipeline state includes a fragment shader stage, was
created with
DYNAMIC_STATE_STENCIL_WRITE_MASK
set inPipelineDynamicStateCreateInfo
::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpStencilAttachmentReadEXT
, thewriteMask
parameter in the last call tocmdSetStencilWriteMask
must be0
- If a shader object
is bound to any graphics stage or the currently bound graphics
pipeline was created with
DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
, and the format of any color attachment isFORMAT_E5B9G9R9_UFLOAT_PACK32
, the corresponding element of thepColorWriteMasks
parameter ofcmdSetColorWriteMaskEXT
must either include all ofCOLOR_COMPONENT_R_BIT
,COLOR_COMPONENT_G_BIT
, andCOLOR_COMPONENT_B_BIT
, or none of them -
If
blending
is enabled for any attachment where either the source or destination
blend factors for that attachment
use the secondary color input,
the maximum value of
Location
for any output attachment statically used in theFragment
Execution
Model
executed by this command must be less than maxFragmentDualSrcAttachments - The bound graphics
pipeline must not have been created with the
PipelineShaderStageCreateInfo
::stage
member of an element ofGraphicsPipelineCreateInfo
::pStages
set toSHADER_STAGE_VERTEX_BIT
,SHADER_STAGE_TESSELLATION_CONTROL_BIT
,SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orSHADER_STAGE_GEOMETRY_BIT
- Transform Feedback Queries must not be active
- Primitives Generated Queries must not be active
- The
pipelineStatistics
member used to create any active Pipeline Statistics Query must not containQUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT
,QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT
,QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT
,QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT
,QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT
,QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT
,QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT
,QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT
, orQUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT
- If the
multiDrawIndirect
feature is not enabled,
drawCount
must be0
or1
-
drawCount
must be less than or equal toPhysicalDeviceLimits
::maxDrawIndirectCount
- The
current pipeline bound to
PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theClusterCullingHUAWEI
Execution
Model
. -
offset
must be a multiple ofPhysicalDeviceClusterCullingShaderPropertiesHUAWEI
::indirectBufferOffsetAlignment
Valid Usage (Implicit)
-
commandBuffer
must be a validCommandBuffer
handle
-
buffer
must be a validBuffer
handle -
commandBuffer
must be in the recording state - The
CommandPool
thatcommandBuffer
was allocated from must support graphics operations - This command must only be called inside of a render pass instance
- This command must only be called outside of a video coding scope
- Both of
buffer
, andcommandBuffer
must have been created, allocated, or retrieved from the sameDevice
Host Synchronization
- Host access to
commandBuffer
must be externally synchronized
- Host access to the
CommandPool
thatcommandBuffer
was allocated from must be externally synchronized
Command Properties
'
Command Buffer Levels | Render Pass Scope | Video Coding Scope | Supported Queue Types | Command Type |
---|---|---|---|---|
Primary Secondary | Inside | Outside | Graphics | Action |
See Also
VK_HUAWEI_cluster_culling_shader,
Buffer
, CommandBuffer
,
DeviceSize
data PhysicalDeviceClusterCullingShaderPropertiesHUAWEI Source #
VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI - Structure describing cluster culling shader properties supported by an implementation
Description
If the PhysicalDeviceClusterCullingShaderPropertiesHUAWEI
structure is
included in the pNext
chain of the
PhysicalDeviceProperties2
structure passed to
getPhysicalDeviceProperties2
,
it is filled in with each corresponding implementation-dependent
property.
Valid Usage (Implicit)
See Also
PhysicalDeviceClusterCullingShaderPropertiesHUAWEI | |
|
Instances
data PhysicalDeviceClusterCullingShaderFeaturesHUAWEI Source #
VkPhysicalDeviceClusterCullingShaderFeaturesHUAWEI - Structure describing whether cluster culling shader is enabled
Description
If the PhysicalDeviceClusterCullingShaderFeaturesHUAWEI
structure is
included in the pNext
chain of the
PhysicalDeviceFeatures2
structure passed to
getPhysicalDeviceFeatures2
,
it is filled in to indicate whether each corresponding feature is
supported. PhysicalDeviceClusterCullingShaderFeaturesHUAWEI
can also
be used in the pNext
chain of DeviceCreateInfo
to selectively enable these features.
Valid Usage (Implicit)
See Also
Instances
pattern HUAWEI_CLUSTER_CULLING_SHADER_SPEC_VERSION :: forall a. Integral a => a Source #
type HUAWEI_CLUSTER_CULLING_SHADER_EXTENSION_NAME = "VK_HUAWEI_cluster_culling_shader" Source #
pattern HUAWEI_CLUSTER_CULLING_SHADER_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #