vkCmdDrawIndirectByteCountEXT(3)
Name
vkCmdDrawIndirectByteCountEXT - Draw primitives with indirect parameters where the vertex count is derived from the counter byte value in the counter buffer
C Specification
To record a non-indexed draw call, where the vertex count is based on a byte count read from a buffer and the passed in vertex stride parameter, call:
// Provided by VK_EXT_transform_feedback
void vkCmdDrawIndirectByteCountEXT(
VkCommandBuffer commandBuffer,
uint32_t instanceCount,
uint32_t firstInstance,
VkBuffer counterBuffer,
VkDeviceSize counterBufferOffset,
uint32_t counterOffset,
uint32_t vertexStride);
Parameters
-
commandBufferis the command buffer into which the command is recorded. -
instanceCountis the number of instances to draw. -
firstInstanceis the instance ID of the first instance to draw. -
counterBufferis the buffer handle from where the byte count is read. -
counterBufferOffsetis the offset into the buffer used to read the byte count, which is used to calculate the vertex count for this draw call. -
counterOffsetis subtracted from the byte count read from thecounterBufferat thecounterBufferOffset -
vertexStrideis the stride in bytes between each element of the vertex data that is used to calculate the vertex count from the counter value. This value is typically the same value that was used in the graphics pipeline state when the transform feedback was captured as theXfbStride.
Description
When the command is executed, primitives are assembled in the same way as
done with vkCmdDraw except the vertexCount is calculated based
on the byte count read from counterBuffer at offset
counterBufferOffset.
The assembled primitives execute the bound graphics pipeline.
The effective vertexCount is calculated as follows:
const uint32_t * counterBufferPtr = (const uint8_t *)counterBuffer.address + counterBufferOffset;
vertexCount = floor(max(0, (*counterBufferPtr - counterOffset)) / vertexStride);
The effective firstVertex is zero.
-
VUID-vkCmdDrawIndirectByteCountEXT-magFilter-04553
If a VkSampler created withmagFilterorminFilterequal to VK_FILTER_LINEAR,reductionModeequal to VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE, andcompareEnableequal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-magFilter-09598
If a VkSampler created withmagFilterorminFilterequal to VK_FILTER_LINEAR andreductionModeequal to either VK_SAMPLER_REDUCTION_MODE_MIN or VK_SAMPLER_REDUCTION_MODE_MAX is used to sample a VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-mipmapMode-04770
If a VkSampler created withmipmapModeequal to VK_SAMPLER_MIPMAP_MODE_LINEAR,reductionModeequal to VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE, andcompareEnableequal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-mipmapMode-09599
If a VkSampler created withmipmapModeequal to VK_SAMPLER_MIPMAP_MODE_LINEAR andreductionModeequal to either VK_SAMPLER_REDUCTION_MODE_MIN or VK_SAMPLER_REDUCTION_MODE_MAX is used to sample a VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-unnormalizedCoordinates-09635
If a VkSampler created withunnormalizedCoordinatesequal to VK_TRUE is used to sample a VkImageView as a result of this command, then the image view’slevelCountandlayerCountmust be 1 -
VUID-vkCmdDrawIndirectByteCountEXT-None-08609
If a VkSampler created withunnormalizedCoordinatesequal to VK_TRUE is used to sample a VkImageView as a result of this command, then the image view’sviewTypemust be VK_IMAGE_VIEW_TYPE_1D or VK_IMAGE_VIEW_TYPE_2D -
VUID-vkCmdDrawIndirectByteCountEXT-None-08610
If a VkSampler created withunnormalizedCoordinatesequal to VK_TRUE is used to sample a VkImageView as a result of this command, then the sampler must not be used with any of the SPIR-VOpImageSample*orOpImageSparseSample*instructions withImplicitLod,DreforProjin their name -
VUID-vkCmdDrawIndirectByteCountEXT-None-08611
If a VkSampler created withunnormalizedCoordinatesequal to VK_TRUE is used to sample a VkImageView as a result of this command, then the sampler must not be used with any of the SPIR-VOpImageSample*orOpImageSparseSample*instructions that includes a LOD bias or any offset values -
VUID-vkCmdDrawIndirectByteCountEXT-None-06479
If a VkImageView is sampled with depth comparison, the image view’s format features must contain VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-02691
If a VkImageView is accessed using atomic operations as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-07888
If a VK_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 contain VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-02692
If a VkImageView is sampled with VK_FILTER_CUBIC_EXT as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-02693
If the VK_EXT_filter_cubic extension is not enabled and any VkImageView is sampled with VK_FILTER_CUBIC_EXT as a result of this command, it must not have a VkImageViewType of VK_IMAGE_VIEW_TYPE_3D, VK_IMAGE_VIEW_TYPE_CUBE, or VK_IMAGE_VIEW_TYPE_CUBE_ARRAY -
VUID-vkCmdDrawIndirectByteCountEXT-filterCubic-02694
Any VkImageView being sampled with VK_FILTER_CUBIC_EXT as a result of this command must have a VkImageViewType and format that supports cubic filtering, as specified by VkFilterCubicImageViewImageFormatPropertiesEXT::filterCubicreturned by vkGetPhysicalDeviceImageFormatProperties2 -
VUID-vkCmdDrawIndirectByteCountEXT-filterCubicMinmax-02695
Any VkImageView being sampled with VK_FILTER_CUBIC_EXT with a reduction mode of either VK_SAMPLER_REDUCTION_MODE_MIN or VK_SAMPLER_REDUCTION_MODE_MAX as a result of this command must have a VkImageViewType and format that supports cubic filtering together with minmax filtering, as specified by VkFilterCubicImageViewImageFormatPropertiesEXT::filterCubicMinmaxreturned by vkGetPhysicalDeviceImageFormatProperties2 -
VUID-vkCmdDrawIndirectByteCountEXT-cubicRangeClamp-09212
If thecubicRangeClampfeature is not enabled, then any VkImageView being sampled with VK_FILTER_CUBIC_EXT as a result of this command must not have a VkSamplerReductionModeCreateInfo::reductionModeequal to VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-reductionMode-09213
Any VkImageView being sampled with a VkSamplerReductionModeCreateInfo::reductionModeequal to VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM as a result of this command must sample with VK_FILTER_CUBIC_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-selectableCubicWeights-09214
If theselectableCubicWeightsfeature is not enabled, then any VkImageView being sampled with VK_FILTER_CUBIC_EXT as a result of this command must have VkSamplerCubicWeightsCreateInfoQCOM::cubicWeightsequal to VK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-flags-02696
Any VkImage created with a VkImageCreateInfo::flagscontaining VK_IMAGE_CREATE_CORNER_SAMPLED_BIT_NV sampled as a result of this command must only be sampled using a VkSamplerAddressMode of VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE -
VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07027
For any VkImageView being written as a storage image where the image format field of theOpTypeImageisUnknown, the view’s format features must contain VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07028
For any VkImageView being read as a storage image where the image format field of theOpTypeImageisUnknown, the view’s format features must contain VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07029
For any VkBufferView being written as a storage texel buffer where the image format field of theOpTypeImageisUnknown, the view’s buffer features must contain VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07030
Any VkBufferView being read as a storage texel buffer where the image format field of theOpTypeImageisUnknownthen the view’s buffer features must contain VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08600
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 VkPipelineLayout that is compatible for set n, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectByteCountEXT-None-08601
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 VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectByteCountEXT-None-10068
For each array of resources that is used by a bound shader, the indices used to access members of the array must be less than the descriptor count for the identified binding in the descriptor sets used by this command -
VUID-vkCmdDrawIndirectByteCountEXT-maintenance4-08602
If themaintenance4feature 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 VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout and VkPushConstantRange arrays used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectByteCountEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-imageLayout-00344
If an image descriptor is accessed by a shader, the VkImageLayout must match the subresource accessible from the VkImageView as defined by the image layout matching rules -
VUID-vkCmdDrawIndirectByteCountEXT-None-08115
If the descriptors used by the VkPipeline bound to the pipeline bind point were specified via vkCmdBindDescriptorSets, the bound VkPipeline must have been created without VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08116
Descriptors in bound descriptor buffers, specified via vkCmdSetDescriptorBufferOffsetsEXT, must be valid if they are dynamically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08604
Descriptors in bound descriptor buffers, specified via vkCmdSetDescriptorBufferOffsetsEXT, must be valid if they are dynamically used by any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command -
VUID-vkCmdDrawIndirectByteCountEXT-None-08117
If the descriptors used by the VkPipeline bound to the pipeline bind point were specified via vkCmdSetDescriptorBufferOffsetsEXT, the bound VkPipeline must have been created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08119
If a descriptor is dynamically used with a VkPipeline created with VK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT, the descriptor memory must be resident -
VUID-vkCmdDrawIndirectByteCountEXT-None-08605
If a descriptor is dynamically used with a VkShaderEXT created with aVkDescriptorSetLayoutthat was created with VK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT, the descriptor memory must be resident -
VUID-vkCmdDrawIndirectByteCountEXT-None-08606
If theshaderObjectfeature is not enabled, a valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawIndirectByteCountEXT-None-08608
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 specified statically in the VkPipeline object bound to the pipeline bind point used by this command, since that pipeline was bound -
VUID-vkCmdDrawIndirectByteCountEXT-uniformBuffers-06935
If any stage of the VkPipeline object bound to the pipeline bind point used by this command accesses a uniform buffer, and that stage was created without enabling either VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS or VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2 foruniformBuffers, and therobustBufferAccessfeature 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 -
VUID-vkCmdDrawIndirectByteCountEXT-None-08612
If therobustBufferAccessfeature is not enabled, and any VkShaderEXT 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 -
VUID-vkCmdDrawIndirectByteCountEXT-storageBuffers-06936
If any stage of the VkPipeline object bound to the pipeline bind point used by this command accesses a storage buffer, and that stage was created without enabling either VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS or VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2 forstorageBuffers, and therobustBufferAccessfeature 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 -
VUID-vkCmdDrawIndirectByteCountEXT-None-08613
If therobustBufferAccessfeature is not enabled, and any VkShaderEXT 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 -
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-02707
IfcommandBufferis an unprotected command buffer andprotectedNoFaultis not supported, any resource accessed by bound shaders must not be a protected resource -
VUID-vkCmdDrawIndirectByteCountEXT-viewType-07752
If a VkImageView is accessed as a result of this command, then the image view’sviewTypemust match theDimoperand of theOpTypeImageas described in Compatibility Between SPIR-V Image Dimensions and Vulkan ImageView Types -
VUID-vkCmdDrawIndirectByteCountEXT-format-07753
If a VkImageView or VkBufferView is accessed as a result of this command, then the numeric type of the view’sformatand theSampledTypeoperand of theOpTypeImagemust match -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageWrite-08795
If a VkImageView created with a format other than VK_FORMAT_A8_UNORM is accessed usingOpImageWriteas a result of this command, then theTypeof theTexeloperand of that instruction must have at least as many components as the image view’s format -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageWrite-08796
If a VkImageView created with the format VK_FORMAT_A8_UNORM is accessed usingOpImageWriteas a result of this command, then theTypeof theTexeloperand of that instruction must have four components -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageWrite-04469
If a VkBufferView is accessed usingOpImageWriteas a result of this command, then theTypeof theTexeloperand of that instruction must have at least as many components as the buffer view’s format -
VUID-vkCmdDrawIndirectByteCountEXT-SampledType-04470
If a VkImageView with a VkFormat that has a 64-bit component width is accessed as a result of this command, theSampledTypeof theOpTypeImageoperand of that instruction must have aWidthof 64 -
VUID-vkCmdDrawIndirectByteCountEXT-SampledType-04471
If a VkImageView with a VkFormat that has a component width less than 64-bit is accessed as a result of this command, theSampledTypeof theOpTypeImageoperand of that instruction must have aWidthof 32 -
VUID-vkCmdDrawIndirectByteCountEXT-SampledType-04472
If a VkBufferView with a VkFormat that has a 64-bit component width is accessed as a result of this command, theSampledTypeof theOpTypeImageoperand of that instruction must have aWidthof 64 -
VUID-vkCmdDrawIndirectByteCountEXT-SampledType-04473
If a VkBufferView with a VkFormat that has a component width less than 64-bit is accessed as a result of this command, theSampledTypeof theOpTypeImageoperand of that instruction must have aWidthof 32 -
VUID-vkCmdDrawIndirectByteCountEXT-sparseImageInt64Atomics-04474
If thesparseImageInt64Atomicsfeature is not enabled, VkImage objects created with the VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT flag must not be accessed by atomic instructions through anOpTypeImagewith aSampledTypewith aWidthof 64 by this command -
VUID-vkCmdDrawIndirectByteCountEXT-sparseImageInt64Atomics-04475
If thesparseImageInt64Atomicsfeature is not enabled, VkBuffer objects created with the VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT flag must not be accessed by atomic instructions through anOpTypeImagewith aSampledTypewith aWidthof 64 by this command -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageWeightedSampleQCOM-06971
IfOpImageWeightedSampleQCOMis used to sample a VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_2_WEIGHT_SAMPLED_IMAGE_BIT_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageWeightedSampleQCOM-06972
IfOpImageWeightedSampleQCOMuses a VkImageView as a sample weight image as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_2_WEIGHT_IMAGE_BIT_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageBoxFilterQCOM-06973
IfOpImageBoxFilterQCOMis used to sample a VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_2_BOX_FILTER_SAMPLED_BIT_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageBlockMatchSSDQCOM-06974
IfOpImageBlockMatchSSDQCOMis used to read from an VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageBlockMatchSADQCOM-06975
IfOpImageBlockMatchSADQCOMis used to read from an VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageBlockMatchSADQCOM-06976
IfOpImageBlockMatchSADQCOMor 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 -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM,OpImageBoxFilterQCOM,OpImageBlockMatchWindowSSDQCOM,OpImageBlockMatchWindowSADQCOM,OpImageBlockMatchGatherSSDQCOM,OpImageBlockMatchGatherSADQCOM,OpImageBlockMatchSSDQCOM, orOpImageBlockMatchSADQCOMuses a VkSampler as a result of this command, then the sampler must have been created with VK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM,OpImageBoxFilterQCOM,OpImageBlockMatchWindowSSDQCOM,OpImageBlockMatchWindowSADQCOM,OpImageBlockMatchGatherSSDQCOM,OpImageBlockMatchGatherSADQCOM,OpImageBlockMatchSSDQCOM, orOpImageBlockMatchSADQCOMuses a VkSampler as a result of this command, then the sampler must not have been created with VK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageBlockMatchWindow-09215
If aOpImageBlockMatchWindow*QCOMorOpImageBlockMatchGather*QCOMinstruction is used to read from an VkImageView as a result of this command, then the image view’s format features must contain VK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageBlockMatchWindow-09216
If aOpImageBlockMatchWindow*QCOMorOpImageBlockMatchGather*QCOMinstruction is used to read from an VkImageView as a result of this command, then the image view’s format must be a single-component format -
VUID-vkCmdDrawIndirectByteCountEXT-OpImageBlockMatchWindow-09217
If aOpImageBlockMatchWindow*QCOMorOpImageBlockMatchGather*QCOMread from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation -
VUID-vkCmdDrawIndirectByteCountEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawIndirectByteCountEXT-None-09600
If a descriptor with type equal to any of VK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM, VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM, VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE, VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, or VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT is accessed as a result of this command, all image subresources identified by that descriptor must be in the image layout identified when the descriptor was written -
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-10746
TheVkDeviceMemoryobject allocated from aVkMemoryHeapwith the VK_MEMORY_HEAP_TILE_MEMORY_BIT_QCOM property that is bound to a resource accessed as a result of this command must be the active bound bound tile memory object incommandBuffer -
VUID-vkCmdDrawIndirectByteCountEXT-None-10678
If this command is recorded inside a tile shading render pass instance, the stages corresponding to the pipeline bind point used by this command must only include VK_SHADER_STAGE_VERTEX_BIT, VK_SHADER_STAGE_FRAGMENT_BIT, and/or VK_SHADER_STAGE_COMPUTE_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-10679
If this command is recorded where per-tile execution model is enabled, there must be no access to any image while the image was be transitioned to the VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT layout -
VUID-vkCmdDrawIndirectByteCountEXT-pDescription-09900
If a VK_DESCRIPTOR_TYPE_TENSOR_ARM descriptor is accessed as a result of this command, then the underlying VkTensorARM object must have been created with a VkTensorCreateInfoARM::pDescriptionwhoseusagemember contained VK_TENSOR_USAGE_SHADER_BIT_ARM -
VUID-vkCmdDrawIndirectByteCountEXT-dimensionCount-09905
If a VK_DESCRIPTOR_TYPE_TENSOR_ARM descriptor is accessed as a result of this command, then theRankof theOpTypeTensorARMof the tensor resource variable must be equal to thedimensionCountprovided via VkTensorCreateInfoARM::pDescriptionwhen creating the underlying VkTensorARM object -
VUID-vkCmdDrawIndirectByteCountEXT-OpTypeTensorARM-09906
If a VK_DESCRIPTOR_TYPE_TENSOR_ARM descriptor is accessed as a result of this command, then the element type of theOpTypeTensorARMof the tensor resource variable must be compatible with the VkFormat of the VkTensorViewARM used for the access -
VUID-vkCmdDrawIndirectByteCountEXT-renderPass-02684
The current render pass must be compatible with therenderPassmember of theVkGraphicsPipelineCreateInfostructure specified when creating theVkPipelinebound to VK_PIPELINE_BIND_POINT_GRAPHICS -
VUID-vkCmdDrawIndirectByteCountEXT-subpass-02685
The subpass index of the current render pass must be equal to thesubpassmember of theVkGraphicsPipelineCreateInfostructure specified when creating theVkPipelinebound to VK_PIPELINE_BIND_POINT_GRAPHICS -
VUID-vkCmdDrawIndirectByteCountEXT-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07468
If any shader executed by this pipeline accesses anOpTypeImagevariable with aDimoperand ofSubpassData, it must be decorated with anInputAttachmentIndexthat corresponds to a valid input attachment in the current subpass -
VUID-vkCmdDrawIndirectByteCountEXT-None-07469
Input attachment views accessed in a subpass must be created with the same VkFormat as the corresponding subpass definition, and be created with a VkImageView that is compatible with the attachment referenced by the subpass'pInputAttachments[InputAttachmentIndex] in the bound VkFramebuffer as specified by Fragment Input Attachment Compatibility -
VUID-vkCmdDrawIndirectByteCountEXT-pDepthInputAttachmentIndex-09595
Input attachment views accessed in a dynamic render pass with aInputAttachmentIndexreferenced by VkRenderingInputAttachmentIndexInfo, or noInputAttachmentIndexif VkRenderingInputAttachmentIndexInfo:pDepthInputAttachmentIndexor VkRenderingInputAttachmentIndexInfo:pStencilInputAttachmentIndexareNULL, must be created with a VkImageView that is compatible with the corresponding color, depth, or stencil attachment in VkRenderingInfo -
VUID-vkCmdDrawIndirectByteCountEXT-pDepthInputAttachmentIndex-09596
Input attachment views accessed in a dynamic render pass via a shader object must have anInputAttachmentIndexif both VkRenderingInputAttachmentIndexInfo:pDepthInputAttachmentIndexand VkRenderingInputAttachmentIndexInfo:pStencilInputAttachmentIndexare non-NULL -
VUID-vkCmdDrawIndirectByteCountEXT-InputAttachmentIndex-09597
If an input attachment view accessed in a dynamic render pass via a shader object has anInputAttachmentIndex, theInputAttachmentIndexmust match an index in VkRenderingInputAttachmentIndexInfo -
VUID-vkCmdDrawIndirectByteCountEXT-None-06537
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 -
VUID-vkCmdDrawIndirectByteCountEXT-None-10795
If a color attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, feedback loop is not enabled for it, and either:-
the VK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT is set on the bound pipeline or
-
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included VK_IMAGE_ASPECT_COLOR_BIT and
-
there is no bound graphics pipeline or
-
the bound graphics pipeline was created with VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-vkCmdDrawIndirectByteCountEXT-None-10796
If a depth attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, feedback loop is not enabled for it, and either:-
the VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT is set on the bound pipeline or
-
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included VK_IMAGE_ASPECT_DEPTH_BIT and
-
there is no bound graphics pipeline or
-
the bound graphics pipeline was created with VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-vkCmdDrawIndirectByteCountEXT-None-10797
If a stencil attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, feedback loop is not enabled for it, and either:-
the VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT is set on the bound pipeline or
-
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included VK_IMAGE_ASPECT_STENCIL_BIT and
-
there is no bound graphics pipeline or
-
the bound graphics pipeline was created with VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-vkCmdDrawIndirectByteCountEXT-None-09003
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 -
VUID-vkCmdDrawIndirectByteCountEXT-None-06539
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 -
VUID-vkCmdDrawIndirectByteCountEXT-None-06886
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 -
VUID-vkCmdDrawIndirectByteCountEXT-None-06887
If the current render pass instance uses a depth/stencil attachment with a read-only layout for the stencil aspect, both front and backwriteMaskare not zero, and stencil test is enabled, all stencil ops must be VK_STENCIL_OP_KEEP -
VUID-vkCmdDrawIndirectByteCountEXT-None-07831
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VIEWPORT dynamic state enabled then vkCmdSetViewport must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07832
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SCISSOR dynamic state enabled then vkCmdSetScissor must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-08617
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_LINE_WIDTH dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the effective rasterization input topology is in line topology class, then vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07834
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_BIAS dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofdepthBiasEnableis VK_TRUE, then vkCmdSetDepthBias or vkCmdSetDepthBias2EXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07835
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_BLEND_CONSTANTS dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and an active color attachment current value ofblendEnableis VK_TRUE with a blend equations where any VkBlendFactor member is VK_BLEND_FACTOR_CONSTANT_COLOR, VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR, VK_BLEND_FACTOR_CONSTANT_ALPHA, or VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA, then vkCmdSetBlendConstants must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07836
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_BOUNDS dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofdepthBoundsTestEnableis VK_TRUE, then vkCmdSetDepthBounds must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07837
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofstencilTestEnableis VK_TRUE, then vkCmdSetStencilCompareMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07838
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_STENCIL_WRITE_MASK dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofstencilTestEnableis VK_TRUE, then vkCmdSetStencilWriteMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07839
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_STENCIL_REFERENCE dynamic state enabled, the current value of andrasterizerDiscardEnableis VK_FALSE, the current value ofstencilTestEnableis VK_TRUE, then vkCmdSetStencilReference must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-maxMultiviewInstanceIndex-02688
If the draw is recorded in a render pass instance with multiview enabled, the maximum instance index must be less than or equal to VkPhysicalDeviceMultiviewProperties::maxMultiviewInstanceIndex -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-02689
If the bound graphics pipeline was created with VkPipelineSampleLocationsStateCreateInfoEXT::sampleLocationsEnableset to VK_TRUE, then the active depth attachment must have been created with the VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT bit set -
VUID-vkCmdDrawIndirectByteCountEXT-None-07634
If theVK_EXT_sample_locationsextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetSampleLocationsEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-06666
If theVK_EXT_sample_locationsextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofsampleLocationsEnableis VK_TRUE, then vkCmdSetSampleLocationsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07840
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_CULL_MODE dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetCullMode must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07841
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_FRONT_FACE dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetFrontFace must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07843
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_TEST_ENABLE dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, vkCmdSetDepthTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07844
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofdepthTestEnableis VK_TRUE, then vkCmdSetDepthWriteEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07845
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_COMPARE_OP dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofdepthTestEnableis VK_TRUE, then vkCmdSetDepthCompareOp must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07846
If thedepthBoundsfeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetDepthBoundsTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07847
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_STENCIL_TEST_ENABLE dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetStencilTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07848
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_STENCIL_OP dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, the current value ofstencilTestEnableis VK_TRUE, then vkCmdSetStencilOp must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-03417
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT dynamic state enabled, and the state is not inherited, then vkCmdSetViewportWithCount must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-scissorCount-03418
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_SCISSOR_WITH_COUNT dynamic state enabled, and the state is not inherited, then vkCmdSetScissorWithCount must have been called and not subsequently invalidated in the current command buffer prior to this drawing -
VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-03419
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with both the VK_DYNAMIC_STATE_SCISSOR_WITH_COUNT and VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT dynamic states enabled, and the state is not inherited, then theviewportCountparameter ofvkCmdSetViewportWithCountmust match thescissorCountparameter ofvkCmdSetScissorWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-04137
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT dynamic state enabled, but not the VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV dynamic state enabled, then the bound graphics pipeline must have been created with VkPipelineViewportWScalingStateCreateInfoNV::viewportCountgreater or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-04138
If theVK_NV_clip_space_w_scalingextension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT and VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV dynamic state enabled, the current value ofviewportWScalingEnableis VK_TRUE, then vkCmdSetViewportWScalingNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-08636
If theVK_NV_clip_space_w_scalingextension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT and VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV dynamic state enabled, the current value ofviewportWScalingEnableis VK_TRUE, then theviewportCountparameter in the last call to vkCmdSetViewportWScalingNV must be greater than or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-04139
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT dynamic state enabled, but not the VK_DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV dynamic state enabled, then the bound graphics pipeline must have been created with VkPipelineViewportShadingRateImageStateCreateInfoNV::viewportCountgreater or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-shadingRateImage-09233
If theshadingRateImagefeature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_VIEWPORT_COARSE_SAMPLE_ORDER_NV and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetCoarseSampleOrderNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-shadingRateImage-09234
If theshadingRateImagefeature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT and VK_DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofshadingRateImageEnableis VK_TRUE, then vkCmdSetViewportShadingRatePaletteNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-08637
If theshadingRateImagefeature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT and VK_DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofshadingRateImageEnableis VK_TRUE, then theviewportCountparameter in the last call to vkCmdSetViewportShadingRatePaletteNV must be greater than or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-VkPipelineVieportCreateInfo-04141
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT dynamic state enabled and a VkPipelineViewportSwizzleStateCreateInfoNV structure chained from VkPipelineViewportStateCreateInfo, then the bound graphics pipeline must have been created with VkPipelineViewportSwizzleStateCreateInfoNV::viewportCountgreater or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-VkPipelineVieportCreateInfo-04142
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT dynamic state enabled and a VkPipelineViewportExclusiveScissorStateCreateInfoNV structure chained from VkPipelineViewportStateCreateInfo, then the bound graphics pipeline must have been created with VkPipelineViewportExclusiveScissorStateCreateInfoNV::exclusiveScissorCountgreater or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-None-07878
If theexclusiveScissorfeature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV dynamic state enabled, then vkCmdSetExclusiveScissorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07879
If theexclusiveScissorfeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV dynamic state enabled, and the most recent call to vkCmdSetExclusiveScissorEnableNV in the current command buffer set any element ofpExclusiveScissorEnablesto VK_TRUE, then vkCmdSetExclusiveScissorNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-04876
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE dynamic state enabled, then vkCmdSetRasterizerDiscardEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-04877
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetDepthBiasEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-logicOp-04878
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_LOGIC_OP_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value oflogicOpEnableis VK_TRUE, then vkCmdSetLogicOpEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-primitiveFragmentShadingRateWithMultipleViewports-04552
If theprimitiveFragmentShadingRateWithMultipleViewportslimit is not supported, the bound graphics pipeline was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT dynamic state enabled, and any of the shader stages of the bound graphics pipeline write to thePrimitiveShadingRateKHRbuilt-in, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCountparameter ofvkCmdSetViewportWithCountmust be1 -
VUID-vkCmdDrawIndirectByteCountEXT-primitiveFragmentShadingRateWithMultipleViewports-08642
If theprimitiveFragmentShadingRateWithMultipleViewportslimit is not supported, and any shader object bound to a graphics stage writes to thePrimitiveShadingRateKHRbuilt-in, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCountparameter ofvkCmdSetViewportWithCountmust be1 -
VUID-vkCmdDrawIndirectByteCountEXT-blendEnable-04727
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound which was created with VK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, then for each color attachment, if the corresponding image view’s format features do not contain VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT, then the corresponding current value ofblendEnablemust be VK_FALSE -
VUID-vkCmdDrawIndirectByteCountEXT-None-08644
If a shader object is bound to any graphics stage or a graphics pipeline is bound, the current value ofrasterizerDiscardEnableis VK_FALSE, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samplesextension -
the
VK_NV_framebuffer_mixed_samplesextension -
the
multisampledRenderToSingleSampledfeature
then the current value of
rasterizationSamplesmust be the same as the current color and/or depth/stencil attachments -
-
VUID-vkCmdDrawIndirectByteCountEXT-None-08876
If a shader object is bound to any graphics stage, the current render pass instance must have been begun with vkCmdBeginRendering -
VUID-vkCmdDrawIndirectByteCountEXT-imageView-06172
If the current render pass instance was begun with vkCmdBeginRendering, theimageViewmember ofpDepthAttachmentis not VK_NULL_HANDLE, and thelayoutmember ofpDepthAttachmentis VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, this command must not write any values to the depth attachment -
VUID-vkCmdDrawIndirectByteCountEXT-imageView-06173
If the current render pass instance was begun with vkCmdBeginRendering, theimageViewmember ofpStencilAttachmentis not VK_NULL_HANDLE, and thelayoutmember ofpStencilAttachmentis VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, this command must not write any values to the stencil attachment -
VUID-vkCmdDrawIndirectByteCountEXT-imageView-06174
If the current render pass instance was begun with vkCmdBeginRendering, theimageViewmember ofpDepthAttachmentis not VK_NULL_HANDLE, and thelayoutmember ofpDepthAttachmentis VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL, this command must not write any values to the depth attachment -
VUID-vkCmdDrawIndirectByteCountEXT-imageView-06175
If the current render pass instance was begun with vkCmdBeginRendering, theimageViewmember ofpStencilAttachmentis not VK_NULL_HANDLE, and thelayoutmember ofpStencilAttachmentis VK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL, this command must not write any values to the stencil attachment -
VUID-vkCmdDrawIndirectByteCountEXT-imageView-06176
If the current render pass instance was begun with vkCmdBeginRendering, theimageViewmember ofpDepthAttachmentis not VK_NULL_HANDLE, and thelayoutmember ofpDepthAttachmentis VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL, this command must not write any values to the depth attachment -
VUID-vkCmdDrawIndirectByteCountEXT-imageView-06177
If the current render pass instance was begun with vkCmdBeginRendering, theimageViewmember ofpStencilAttachmentis not VK_NULL_HANDLE, and thelayoutmember ofpStencilAttachmentis VK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL, this command must not write any values to the stencil attachment -
VUID-vkCmdDrawIndirectByteCountEXT-viewMask-06178
If the current render pass instance was begun with vkCmdBeginRendering, the bound graphics pipeline must have been created with a VkPipelineRenderingCreateInfo::viewMaskequal to VkRenderingInfo::viewMask -
VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-06179
If thedynamicRenderingUnusedAttachmentsfeature is not enabled and the current render pass instance was begun with vkCmdBeginRendering, the bound graphics pipeline must have been created with a VkPipelineRenderingCreateInfo::colorAttachmentCountequal to VkRenderingInfo::colorAttachmentCount -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08910
If thedynamicRenderingUnusedAttachmentsfeature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCountgreater than0, then each element of the VkRenderingInfo::pColorAttachmentsarray with animageViewnot equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormatsused to create the bound graphics pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08912
If thedynamicRenderingUnusedAttachmentsfeature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCountgreater than0, then each element of the VkRenderingInfo::pColorAttachmentsarray with animageViewequal to VK_NULL_HANDLE must have the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormatsused to create the bound pipeline equal to VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08911
If thedynamicRenderingUnusedAttachmentsfeature is enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCountgreater than0, then each element of the VkRenderingInfo::pColorAttachmentsarray with animageViewnot equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormatsused to create the bound graphics pipeline, or the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats, if it exists, must be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-09362
If the current render pass instance was begun with vkCmdBeginRendering, with a VkRenderingInfo::colorAttachmentCountequal to1, there is no shader object bound to any graphics stage, and a color attachment with a resolve mode of VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_BIT_ANDROID, each element of the VkRenderingInfo::pColorAttachmentsarray with aresolveImageViewnot equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormatvalue equal to the VkExternalFormatANDROID::externalFormatvalue used to create the bound graphics pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-None-09363
If there is no shader object bound to any graphics stage, the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCountequal to1, and a color attachment with a resolve mode of VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_BIT_ANDROID, each element of the VkRenderingInfo::pColorAttachmentsarray with aimageViewnot equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormatvalue equal to the VkExternalFormatANDROID::externalFormatvalue used to create the bound graphics pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-None-09364
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormatvalue and with the VK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT dynamic state enabled, then vkCmdSetColorBlendEnableEXT must have set the blend enable to VK_FALSE prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-09365
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormatvalue and with the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT dynamic state enabled, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamplesto VK_SAMPLE_COUNT_1_BIT prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-09366
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses the VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_BIT_ANDROID resolve mode, then vkCmdSetColorBlendEnableEXT must have set blend enable to VK_FALSE prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-rasterizationSamples-09367
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses the VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_BIT_ANDROID resolve mode, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamplesto VK_SAMPLE_COUNT_1_BIT prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-09368
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormatvalue and with the VK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->widthto1prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-09369
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormatvalue and with the VK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->heightto1prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-pFragmentSize-09370
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses the VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_BIT_ANDROID resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->widthto1prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-pFragmentSize-09371
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses the VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_BIT_ANDROID resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->heightto1prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07749
If thecolorWriteEnablefeature is enabled, a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetColorWriteEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-attachmentCount-07750
If thecolorWriteEnablefeature is enabled, a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then theattachmentCountparameter of most recent call tovkCmdSetColorWriteEnableEXTin the current command buffer must be greater than or equal to the number of active color attachments -
VUID-vkCmdDrawIndirectByteCountEXT-None-07751
If theVK_EXT_discard_rectanglesextension is enabled, a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT dynamic state enabled and thepNextchain of VkGraphicsPipelineCreateInfo included a VkPipelineDiscardRectangleStateCreateInfoEXT structure, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofdiscardRectangleEnableis VK_TRUE, then vkCmdSetDiscardRectangleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command for each discard rectangle in VkPipelineDiscardRectangleStateCreateInfoEXT::discardRectangleCount -
VUID-vkCmdDrawIndirectByteCountEXT-rasterizerDiscardEnable-09236
If theVK_EXT_discard_rectanglesextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with VK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT dynamic state enabled and thepNextchain of VkGraphicsPipelineCreateInfo did not include a VkPipelineDiscardRectangleStateCreateInfoEXT structure, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofdiscardRectangleEnableis VK_TRUE, then vkCmdSetDiscardRectangleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command for each discard rectangle in VkPhysicalDeviceDiscardRectanglePropertiesEXT::maxDiscardRectangles -
VUID-vkCmdDrawIndirectByteCountEXT-None-07880
If theVK_EXT_discard_rectanglesextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DISCARD_RECTANGLE_ENABLE_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetDiscardRectangleEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07881
If theVK_EXT_discard_rectanglesextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DISCARD_RECTANGLE_MODE_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofdiscardRectangleEnableis VK_TRUE, then vkCmdSetDiscardRectangleModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08913
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachmentsfeature is not enabled, and VkRenderingInfo::pDepthAttachment->imageViewwas VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormatused to create the bound graphics pipeline must be equal to VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08914
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachmentsfeature is not enabled, and VkRenderingInfo::pDepthAttachment->imageViewwas not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormatused to create the bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08915
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachmentsfeature is enabled, VkRenderingInfo::pDepthAttachment->imageViewwas not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::depthAttachmentFormatused to create the bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView, the value of the format must be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08916
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachmentsfeature is not enabled, and VkRenderingInfo::pStencilAttachment->imageViewwas VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormatused to create the bound graphics pipeline must be equal to VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08917
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachmentsfeature is not enabled, and VkRenderingInfo::pStencilAttachment->imageViewwas not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormatused to create the bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-08918
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachmentsfeature is enabled, VkRenderingInfo::pStencilAttachment->imageViewwas not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormatused to create the bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView, the value of the format must be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-imageView-06183
If the current render pass instance was begun with vkCmdBeginRendering and VkRenderingFragmentShadingRateAttachmentInfoKHR::imageViewwas not VK_NULL_HANDLE, the bound graphics pipeline must have been created with VK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingLocalRead-11797
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingLocalReadfeature is enabled, the VK_RENDERING_LOCAL_READ_CONCURRENT_ACCESS_CONTROL_BIT_KHR flag is specified, and an attachment is being used as a feedback loop as specified by VK_RENDERING_ATTACHMENT_INPUT_ATTACHMENT_FEEDBACK_BIT_KHR, VkRenderingAttachmentFlagsInfoKHR::flagsfor that attachment must include VK_RENDERING_ATTACHMENT_INPUT_ATTACHMENT_FEEDBACK_BIT_KHR -
VUID-vkCmdDrawIndirectByteCountEXT-imageView-06184
If the current render pass instance was begun with vkCmdBeginRendering and VkRenderingFragmentDensityMapAttachmentInfoEXT::imageViewwas not VK_NULL_HANDLE, the bound graphics pipeline must have been created with VK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-layers-10831
If the current render pass instance was created with VK_RENDERING_PER_LAYER_FRAGMENT_DENSITY_BIT_VALVE or VK_RENDER_PASS_CREATE_PER_LAYER_FRAGMENT_DENSITY_BIT_VALVE, and the bound graphics pipeline was created with VK_PIPELINE_CREATE_2_PER_LAYER_FRAGMENT_DENSITY_BIT_VALVE, then the current render pass instance must have alayersvalue less than or equal to VkPipelineFragmentDensityMapLayeredCreateInfoVALVE::maxFragmentDensityMapLayers -
VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-06185
If the bound pipeline was created with a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and the current render pass instance was begun with vkCmdBeginRendering with a VkRenderingInfo::colorAttachmentCountparameter greater than0, then each element of the VkRenderingInfo::pColorAttachmentsarray with aimageViewnot equal to VK_NULL_HANDLE must have been created with a sample count equal to the corresponding element of thepColorAttachmentSamplesmember of VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV used to create the bound graphics pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-06186
If the current render pass instance was begun with vkCmdBeginRendering, the bound pipeline was created with a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and VkRenderingInfo::pDepthAttachment->imageViewwas not VK_NULL_HANDLE, the value of thedepthStencilAttachmentSamplesmember of VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV used to create the bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pDepthAttachment->imageView -
VUID-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-06187
If the current render pass instance was begun with vkCmdBeginRendering, the bound pipeline was created with a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and VkRenderingInfo::pStencilAttachment->imageViewwas not VK_NULL_HANDLE, the value of thedepthStencilAttachmentSamplesmember of VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV used to create the bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pStencilAttachment->imageView -
VUID-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07285
If the bound pipeline was created without a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and themultisampledRenderToSingleSampledfeature is not enabled, and vkCmdBeginCustomResolveEXT has not yet been recorded in the render pass instance, and the current render pass instance was begun with vkCmdBeginRendering with a VkRenderingInfo::colorAttachmentCountparameter greater than0, then each element of the VkRenderingInfo::pColorAttachmentsarray with aimageViewnot equal to VK_NULL_HANDLE must have been created with a sample count equal to the value ofrasterizationSamplesfor the bound graphics pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07286
If the bound pipeline was created without a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and themultisampledRenderToSingleSampledfeature is not enabled, and vkCmdBeginCustomResolveEXT has not yet been recorded in the render pass instance, and VkRenderingInfo::pDepthAttachment->imageViewwas not VK_NULL_HANDLE, the value ofrasterizationSamplesfor the bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pDepthAttachment->imageView -
VUID-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07287
If the bound pipeline was created without a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and themultisampledRenderToSingleSampledfeature is not enabled, and vkCmdBeginCustomResolveEXT has not yet been recorded in the render pass instance, and VkRenderingInfo::pStencilAttachment->imageViewwas not VK_NULL_HANDLE, the value ofrasterizationSamplesfor the bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pStencilAttachment->imageView -
VUID-vkCmdDrawIndirectByteCountEXT-pNext-07935
If this command is called inside a render pass instance started with vkCmdBeginRendering, and thepNextchain of VkRenderingInfo includes a VkMultisampledRenderToSingleSampledInfoEXT structure withmultisampledRenderToSingleSampledEnableequal to VK_TRUE, then the value ofrasterizationSamplesfor the bound graphics pipeline must be equal to VkMultisampledRenderToSingleSampledInfoEXT::rasterizationSamples -
VUID-vkCmdDrawIndirectByteCountEXT-renderPass-06198
If the current render pass instance was begun with vkCmdBeginRendering, the bound pipeline must have been created with a VkGraphicsPipelineCreateInfo::renderPassequal to VK_NULL_HANDLE -
VUID-vkCmdDrawIndirectByteCountEXT-pColorAttachments-08963
If the current render pass instance was begun with vkCmdBeginRendering, vkCmdBeginCustomResolveEXT has not yet been recorded in the render pass instance, 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 the VkRenderingInfo::pColorAttachments->imageViewwas not VK_NULL_HANDLE, then the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormatsused to create the pipeline must not be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-pColorAttachments-11539
If the current render pass instance was begun with vkCmdBeginRendering, vkCmdBeginCustomResolveEXT has been recorded in the render pass instance, 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 the VkRenderingInfo::pColorAttachments->resolveImageViewwas not VK_NULL_HANDLE, then the corresponding element of VkCustomResolveCreateInfoEXT::pColorAttachmentFormatsused to create the pipeline must not be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-08964
If the current render pass instance was begun with vkCmdBeginRendering, vkCmdBeginCustomResolveEXT has not yet been recorded in the render pass instance, there is a graphics pipeline bound, depth test is enabled, and the VkRenderingInfo::pDepthAttachment->imageViewwas not VK_NULL_HANDLE, then the VkPipelineRenderingCreateInfo::depthAttachmentFormatused to create the pipeline must not be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-11540
If the current render pass instance was begun with vkCmdBeginRendering, vkCmdBeginCustomResolveEXT has been recorded in the render pass instance, there is a graphics pipeline bound, depth test is enabled, and the VkRenderingInfo::pDepthAttachment->resolveImageViewwas not VK_NULL_HANDLE, then the VkCustomResolveCreateInfoEXT::depthAttachmentFormatused to create the pipeline must not be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-08965
If the current render pass instance was begun with vkCmdBeginRendering, vkCmdBeginCustomResolveEXT has not yet been recorded in the render pass instance, there is a graphics pipeline bound, stencil test is enabled and the VkRenderingInfo::pStencilAttachment->imageViewwas not VK_NULL_HANDLE, then the VkPipelineRenderingCreateInfo::stencilAttachmentFormatused to create the pipeline must not be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-11860
If the current render pass instance was begun with vkCmdBeginRendering, vkCmdBeginCustomResolveEXT has been recorded in the render pass instance, there is a graphics pipeline bound, stencil test is enabled and the VkRenderingInfo::pStencilAttachment->resolveImageViewwas not VK_NULL_HANDLE, then the VkCustomResolveCreateInfoEXT::stencilAttachmentFormatused to create the pipeline must not be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-flags-10582
If the current render pass instance was begun with a vkCmdBeginRendering call incommandBuffer, its VkRenderingInfo::flagsparameter must not have VK_RENDERING_CONTENTS_SECONDARY_COMMAND_BUFFERS_BIT set unless VK_RENDERING_CONTENTS_INLINE_BIT_KHR is also set -
VUID-vkCmdDrawIndirectByteCountEXT-primitivesGeneratedQueryWithRasterizerDiscard-06708
If theprimitivesGeneratedQueryWithRasterizerDiscardfeature is not enabled and the VK_QUERY_TYPE_PRIMITIVES_GENERATED_EXT query is active, rasterization discard must not be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-primitivesGeneratedQueryWithNonZeroStreams-06709
If theprimitivesGeneratedQueryWithNonZeroStreamsfeature is not enabled and the VK_QUERY_TYPE_PRIMITIVES_GENERATED_EXT query is active, the bound graphics pipeline must not have been created with a non-zero value inVkPipelineRasterizationStateStreamCreateInfoEXT::rasterizationStream -
VUID-vkCmdDrawIndirectByteCountEXT-None-07620
If thedepthClampfeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_CLAMP_ENABLE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetDepthClampEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07621
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_POLYGON_MODE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetPolygonModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07622
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetRasterizationSamplesEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07623
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_SAMPLE_MASK_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetSampleMaskEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-alphaToCoverageEnable-08919
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT dynamic state enabled, andalphaToCoverageEnablewas VK_TRUE in the last call to vkCmdSetAlphaToCoverageEnableEXT, then the Fragment Output Interface must contain a variable for the alphaComponentword inLocation0 atIndex0 -
VUID-vkCmdDrawIndirectByteCountEXT-alphaToCoverageEnable-08920
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetAlphaToCoverageEnableEXT in the current command buffer setalphaToCoverageEnableto VK_TRUE, then the Fragment Output Interface must contain a variable for the alphaComponentword inLocation0 atIndex0 -
VUID-vkCmdDrawIndirectByteCountEXT-None-07624
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetAlphaToCoverageEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07625
If thealphaToOnefeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_ALPHA_TO_ONE_ENABLE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetAlphaToOneEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07626
If thelogicOpfeature is enabled, a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_LOGIC_OP_ENABLE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetLogicOpEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07627
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound which was created with VK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and there are color attachments bound, then vkCmdSetColorBlendEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07629
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound which was created with VK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and there are color attachments bound, then vkCmdSetColorWriteMaskEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07630
If thegeometryStreamsfeature is enabled, and a shader object is bound to the VK_SHADER_STAGE_GEOMETRY_BIT stage or a graphics pipeline is bound which was created with both a VK_SHADER_STAGE_GEOMETRY_BIT stage and the VK_DYNAMIC_STATE_RASTERIZATION_STREAM_EXT dynamic state enabled, then vkCmdSetRasterizationStreamEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07631
If theVK_EXT_conservative_rasterizationextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetConservativeRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07632
If theVK_EXT_conservative_rasterizationextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_EXTRA_PRIMITIVE_OVERESTIMATION_SIZE_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofconservativeRasterizationModeis VK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT, then vkCmdSetExtraPrimitiveOverestimationSizeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-conservativePointAndLineRasterization-07499
If theVK_EXT_conservative_rasterizationextension is enabled,conservativePointAndLineRasterizationis not supported, a shader object is bound to any graphics stage or a graphics pipeline is bound, the current value ofrasterizerDiscardEnableis VK_FALSE, and the effective rasterization input topology is in line or point topology class, then the current value ofconservativeRasterizationModemust be VK_CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-07633
If thedepthClipEnablefeature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT dynamic state, then vkCmdSetDepthClipEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07636
If theVK_EXT_provoking_vertexextension is enabled, a shader object is bound to the VK_SHADER_STAGE_VERTEX_BIT stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_PROVOKING_VERTEX_MODE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetProvokingVertexModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-08666
If any of thestippledRectangularLines,stippledBresenhamLinesorstippledSmoothLinesfeatures are enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, and the effective rasterization input topology is in line topology class, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-08669
If any of thestippledRectangularLines,stippledBresenhamLinesorstippledSmoothLinesfeatures are enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the effective rasterization input topology is in line topology class, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07849
If any of thestippledRectangularLines,stippledBresenhamLinesorstippledSmoothLinesfeatures are enabled and a shader object is bound to any graphics stage, or a bound graphics pipeline state was created with the VK_DYNAMIC_STATE_LINE_STIPPLE dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofstippledLineEnableis VK_TRUE, then vkCmdSetLineStipple must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-10608
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT dynamic state enabled, the effective rasterization input topology is in line topology class, and the currentlineRasterizationModeis VK_LINE_RASTERIZATION_MODE_BRESENHAM or VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH, then the currentalphaToCoverageEnable,alphaToOneEnableandsampleShadingEnablestates must all be VK_FALSE -
VUID-vkCmdDrawIndirectByteCountEXT-None-07639
If thedepthClipControlfeature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT dynamic state enabled, then vkCmdSetDepthClipNegativeOneToOneEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-09650
If thedepthClampControlfeature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_DEPTH_CLAMP_RANGE_EXT dynamic state enabled, and the current value ofdepthClampEnableis VK_TRUE, then vkCmdSetDepthClampRangeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07640
If theVK_NV_clip_space_w_scalingextension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_VIEWPORT_W_SCALING_ENABLE_NV dynamic state enabled, then vkCmdSetViewportWScalingEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07641
If theVK_NV_viewport_swizzleextension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV dynamic state enabled, then vkCmdSetViewportSwizzleNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07642
If theVK_NV_fragment_coverage_to_colorextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetCoverageToColorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07643
If theVK_NV_fragment_coverage_to_colorextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COVERAGE_TO_COLOR_LOCATION_NV dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofcoverageToColorEnableis VK_TRUE, then vkCmdSetCoverageToColorLocationNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07644
If theVK_NV_framebuffer_mixed_samplesextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COVERAGE_MODULATION_MODE_NV dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetCoverageModulationModeNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07645
If theVK_NV_framebuffer_mixed_samplesextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofcoverageModulationModeis any value other than VK_COVERAGE_MODULATION_MODE_NONE_NV, then vkCmdSetCoverageModulationTableEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07646
If theVK_NV_framebuffer_mixed_samplesextension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_NV dynamic state enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and the current value ofcoverageModulationTableEnableis VK_TRUE, then vkCmdSetCoverageModulationTableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07647
If theshadingRateImagefeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_SHADING_RATE_IMAGE_ENABLE_NV dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetShadingRateImageEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-pipelineFragmentShadingRate-09238
If thepipelineFragmentShadingRatefeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetFragmentShadingRateKHR must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07648
If therepresentativeFragmentTestfeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_REPRESENTATIVE_FRAGMENT_TEST_ENABLE_NV dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetRepresentativeFragmentTestEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07649
If thecoverageReductionModefeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetCoverageReductionModeNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-rasterizationSamples-07471
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state enabled, and the current subpass does not use any color and/or depth/stencil attachments, then therasterizationSamplesin the last call to vkCmdSetRasterizationSamplesEXT must follow the rules for a zero-attachment subpass -
VUID-vkCmdDrawIndirectByteCountEXT-samples-07472
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_MASK_EXT state enabled and the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state disabled, then thesamplesparameter in the last call to vkCmdSetSampleMaskEXT must be greater or equal to the VkPipelineMultisampleStateCreateInfo::rasterizationSamplesparameter used to create the bound graphics pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-samples-07473
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_MASK_EXT state and VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT states enabled, then thesamplesparameter in the last call to vkCmdSetSampleMaskEXT must be greater or equal to therasterizationSamplesparameter in the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawIndirectByteCountEXT-rasterizationSamples-07474
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state enabled, and themultisampledRenderToSingleSampledfeature is not enabled, and neither theVK_AMD_mixed_attachment_samplesnor theVK_NV_framebuffer_mixed_samplesextensions are enabled, then therasterizationSamplesin the last call to vkCmdSetRasterizationSamplesEXT must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawIndirectByteCountEXT-None-09211
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state enabled, or a shader object is bound to any graphics stage, and the current render pass instance includes a VkMultisampledRenderToSingleSampledInfoEXT structure withmultisampledRenderToSingleSampledEnableequal to VK_TRUE, then therasterizationSamplesin the last call to vkCmdSetRasterizationSamplesEXT must be the same as therasterizationSamplesmember of that structure -
VUID-vkCmdDrawIndirectByteCountEXT-firstAttachment-07476
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound was created with the VK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT dynamic states enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then the last call to vkCmdSetColorBlendEnableEXT in the current command buffer prior to this drawing command must have set a value for all active color attachments -
VUID-vkCmdDrawIndirectByteCountEXT-firstAttachment-07478
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound was created with the VK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT dynamic states enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then the last call to vkCmdSetColorWriteMaskEXT in the current command buffer prior to this drawing command must have set a value for all active color attachments -
VUID-vkCmdDrawIndirectByteCountEXT-advancedBlendMaxColorAttachments-07480
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound was created with the VK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT and VK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT dynamic states enabled, the current value ofrasterizerDiscardEnableis VK_FALSE, and an active color attachment current value ofblendEnableis VK_TRUE, then the number of active color attachments must not exceedadvancedBlendMaxColorAttachments -
VUID-vkCmdDrawIndirectByteCountEXT-None-10862
If a graphics pipeline is bound was created with VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT , but not the VK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetColorBlendEquationEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command for all active color attachments with theblendEnablecurrent value of VK_TRUE -
VUID-vkCmdDrawIndirectByteCountEXT-rasterizerDiscardEnable-10863
If a graphics pipeline is bound was created with VK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT, but not the VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetColorBlendAdvancedEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command for all active color attachments with theblendEnablecurrent value of VK_TRUE -
VUID-vkCmdDrawIndirectByteCountEXT-None-10864
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound was created with VK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT and VK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then either vkCmdSetColorBlendAdvancedEXT or vkCmdSetColorBlendEquationEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command for all active color attachments with theblendEnablecurrent value of VK_TRUE -
VUID-vkCmdDrawIndirectByteCountEXT-primitivesGeneratedQueryWithNonZeroStreams-07481
If theprimitivesGeneratedQueryWithNonZeroStreamsfeature is not enabled and the VK_QUERY_TYPE_PRIMITIVES_GENERATED_EXT query is active, and the bound graphics pipeline was created with VK_DYNAMIC_STATE_RASTERIZATION_STREAM_EXT state enabled, the last call to vkCmdSetRasterizationStreamEXT must have set therasterizationStreamto zero -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsPerPixel-07482
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT state enabled and the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state disabled, and the current value ofsampleLocationsEnableis VK_TRUE, then thesampleLocationsPerPixelmember ofpSampleLocationsInfoin the last call to vkCmdSetSampleLocationsEXT must equal therasterizationSamplesmember of the VkPipelineMultisampleStateCreateInfo structure the bound graphics pipeline has been created with -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsPerPixel-07483
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT state enabled and the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state enabled, and the current value ofsampleLocationsEnableis VK_TRUE, then thesampleLocationsPerPixelmember ofpSampleLocationsInfoin the last call to vkCmdSetSampleLocationsEXT must equal therasterizationSamplesparameter of the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07484
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage, or the bound graphics pipeline was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT state enabled, andsampleLocationsEnablewas VK_TRUE in the last call to vkCmdSetSampleLocationsEnableEXT then the current active depth attachment must have been created with the VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT bit set -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07485
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage, or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT state enabled and the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT state enabled, and ifsampleLocationsEnablewas VK_TRUE in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.maxSampleLocationGridSize.widthin the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::maxSampleLocationGridSize.widthas returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamplesparameter equalingrasterizationSamples -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07486
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage, or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT state enabled and the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT state enabled, and ifsampleLocationsEnablewas VK_TRUE in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.maxSampleLocationGridSize.heightin the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::maxSampleLocationGridSize.heightas returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamplesparameter equalingrasterizationSamples -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07487
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage, or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT state enabled, and ifsampleLocationsEnablewas VK_TRUE in the last call to vkCmdSetSampleLocationsEnableEXT, the fragment shader code must not statically use the extended instructionInterpolateAtSample -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07936
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT state disabled and the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state enabled, and the current value ofsampleLocationsEnableis VK_TRUE, thensampleLocationsInfo.sampleLocationGridSize.widthmust evenly divide VkMultisamplePropertiesEXT::maxSampleLocationGridSize.widthas returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamplesparameter equaling the value ofrasterizationSamplesin the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07937
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT state disabled and the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state enabled, and the current value ofsampleLocationsEnableis VK_TRUE, thensampleLocationsInfo.sampleLocationGridSize.heightmust evenly divide VkMultisamplePropertiesEXT::maxSampleLocationGridSize.heightas returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamplesparameter equaling the value ofrasterizationSamplesin the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07938
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT state disabled and the VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT state enabled, and the current value ofsampleLocationsEnableis VK_TRUE, thensampleLocationsInfo.sampleLocationsPerPixelmust equalrasterizationSamplesin the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawIndirectByteCountEXT-coverageModulationTableEnable-07488
If a shader object is bound to any graphics stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV state enabled, and the last call to vkCmdSetCoverageModulationTableEnableNV setcoverageModulationTableEnableto VK_TRUE, then thecoverageModulationTableCountparameter in the last call to vkCmdSetCoverageModulationTableNV must equal the currentrasterizationSamplesdivided by the number of color samples in the current active color attachment -
VUID-vkCmdDrawIndirectByteCountEXT-rasterizationSamples-07489
If theVK_NV_framebuffer_mixed_samplesextension is enabled, and if current subpass has a depth/stencil attachment and depth test, stencil test, or depth bounds test are enabled in the bound pipeline, then the currentrasterizationSamplesmust be the same as the sample count of the depth/stencil attachment -
VUID-vkCmdDrawIndirectByteCountEXT-coverageToColorEnable-07490
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV state enabled and the last call to vkCmdSetCoverageToColorEnableNV set thecoverageToColorEnableto VK_TRUE, then there must be an active color attachment at the location selected by the last call to vkCmdSetCoverageToColorLocationNVcoverageToColorLocation, with a VkFormat of VK_FORMAT_R8_UINT, VK_FORMAT_R8_SINT, VK_FORMAT_R16_UINT, VK_FORMAT_R16_SINT, VK_FORMAT_R32_UINT, or VK_FORMAT_R32_SINT -
VUID-vkCmdDrawIndirectByteCountEXT-rasterizerDiscardEnable-09420
If theVK_NV_fragment_coverage_to_colorextension is enabled, and a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnableto VK_FALSE, and the last call to vkCmdSetCoverageToColorEnableNV set thecoverageToColorEnableto VK_TRUE, then there must be an active color attachment at the location selected by the last call to vkCmdSetCoverageToColorLocationNVcoverageToColorLocation, with a VkFormat of VK_FORMAT_R8_UINT, VK_FORMAT_R8_SINT, VK_FORMAT_R16_UINT, VK_FORMAT_R16_SINT, VK_FORMAT_R32_UINT, or VK_FORMAT_R32_SINT -
VUID-vkCmdDrawIndirectByteCountEXT-coverageReductionMode-07491
If thecoverageReductionModefeature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV or VK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT dynamic states enabled, then the current values ofcoverageReductionMode,rasterizationSamples, the sample counts for the color and depth/stencil attachments (if the subpass has them) must be a valid combination returned by vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV -
VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-07492
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT dynamic state enabled, but not the VK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV dynamic state enabled, then the bound graphics pipeline must have been created with VkPipelineViewportSwizzleStateCreateInfoNV::viewportCountgreater or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-07493
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT and VK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV dynamic states enabled then theviewportCountparameter in the last call to vkCmdSetViewportSwizzleNV must be greater than or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-viewportCount-09421
If theVK_NV_viewport_swizzleextension is enabled, and a shader object is bound to any graphics stage, then theviewportCountparameter in the last call to vkCmdSetViewportSwizzleNV must be greater than or equal to theviewportCountparameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawIndirectByteCountEXT-rasterizationSamples-07494
If theVK_NV_framebuffer_mixed_samplesextension is enabled, and thecoverageReductionModefeature is not enabled, or the current value ofcoverageReductionModeis not VK_COVERAGE_REDUCTION_MODE_TRUNCATE_NV, and the current value ofrasterizationSamplesis greater than sample count of the color attachment, then sample shading must be disabled -
VUID-vkCmdDrawIndirectByteCountEXT-stippledLineEnable-07495
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT or VK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT dynamic states enabled, and if the currentstippledLineEnablestate is VK_TRUE and the currentlineRasterizationModestate is VK_LINE_RASTERIZATION_MODE_RECTANGULAR, then thestippledRectangularLinesfeature must be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-stippledLineEnable-07496
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT or VK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT dynamic states enabled, and if the currentstippledLineEnablestate is VK_TRUE and the currentlineRasterizationModestate is VK_LINE_RASTERIZATION_MODE_BRESENHAM, then thestippledBresenhamLinesfeature must be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-stippledLineEnable-07497
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT or VK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT dynamic states enabled, and if the currentstippledLineEnablestate is VK_TRUE and the currentlineRasterizationModestate is VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH, then thestippledSmoothLinesfeature must be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-stippledLineEnable-07498
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT or VK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT dynamic states enabled, and if the currentstippledLineEnablestate is VK_TRUE and the currentlineRasterizationModestate is VK_LINE_RASTERIZATION_MODE_DEFAULT, then thestippledRectangularLinesfeature must be enabled and VkPhysicalDeviceLimits::strictLinesmust be VK_TRUE -
VUID-vkCmdDrawIndirectByteCountEXT-stage-07073
If the bound pipeline was created with the VkPipelineShaderStageCreateInfo::stagemember of an element of VkGraphicsPipelineCreateInfo::pStagesset to VK_SHADER_STAGE_VERTEX_BIT, VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT, VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT or VK_SHADER_STAGE_GEOMETRY_BIT, then Mesh Shader Queries must not be active -
VUID-vkCmdDrawIndirectByteCountEXT-None-08877
If a shader object is bound to the VK_SHADER_STAGE_FRAGMENT_BIT stage or a graphics pipeline is bound which was created with the VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT dynamic state enabled, and the current value ofrasterizerDiscardEnableis VK_FALSE, then vkCmdSetAttachmentFeedbackLoopEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-nextStage-10745
For each shader object bound to a graphics stage, except for shader object bound to the last graphics stage in the logical pipeline, it must have been created with anextStageincluding the corresponding bit to the shader object bound to the following graphics stage in the logical pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-None-08684
If there is no bound graphics pipeline,vkCmdBindShadersEXTmust have been called in the current command buffer withpStageswith an element of VK_SHADER_STAGE_VERTEX_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08685
If there is no bound graphics pipeline, and thetessellationShaderfeature is enabled,vkCmdBindShadersEXTmust have been called in the current command buffer withpStageswith an element of VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08686
If there is no bound graphics pipeline, and thetessellationShaderfeature is enabled,vkCmdBindShadersEXTmust have been called in the current command buffer withpStageswith an element of VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08687
If there is no bound graphics pipeline, and thegeometryShaderfeature is enabled,vkCmdBindShadersEXTmust have been called in the current command buffer withpStageswith an element of VK_SHADER_STAGE_GEOMETRY_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08688
If there is no bound graphics pipeline,vkCmdBindShadersEXTmust have been called in the current command buffer withpStageswith an element of VK_SHADER_STAGE_FRAGMENT_BIT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08689
If there is no bound graphics pipeline, and thetaskShaderfeature is enabled,vkCmdBindShadersEXTmust have been called in the current command buffer withpStageswith an element of VK_SHADER_STAGE_TASK_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08690
If there is no bound graphics pipeline, and themeshShaderfeature is enabled,vkCmdBindShadersEXTmust have been called in the current command buffer withpStageswith an element of VK_SHADER_STAGE_MESH_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08693
If there is no bound graphics pipeline, and at least one of thetaskShaderandmeshShaderfeatures is enabled, one of the VK_SHADER_STAGE_VERTEX_BIT or VK_SHADER_STAGE_MESH_BIT_EXT stages must have a validVkShaderEXTbound, and the other must have noVkShaderEXTbound -
VUID-vkCmdDrawIndirectByteCountEXT-None-08696
If there is no bound graphics pipeline, and a validVkShaderEXTis bound to the VK_SHADER_STAGE_VERTEX_BIT stage, there must be noVkShaderEXTbound to either the VK_SHADER_STAGE_TASK_BIT_EXT stage or the VK_SHADER_STAGE_MESH_BIT_EXT stage -
VUID-vkCmdDrawIndirectByteCountEXT-None-08698
If any graphics shader is bound which was created with the VK_SHADER_CREATE_LINK_STAGE_BIT_EXT flag, then all shaders created with the VK_SHADER_CREATE_LINK_STAGE_BIT_EXT flag in the same vkCreateShadersEXT call must also be bound -
VUID-vkCmdDrawIndirectByteCountEXT-None-08699
If any graphics shader is bound which was created with the VK_SHADER_CREATE_LINK_STAGE_BIT_EXT flag, any stages in between stages whose shaders which did not create a shader with the VK_SHADER_CREATE_LINK_STAGE_BIT_EXT flag as part of the same vkCreateShadersEXT call must not have anyVkShaderEXTbound -
VUID-vkCmdDrawIndirectByteCountEXT-None-08878
All bound graphics shader objects must have been created with identical or identically defined push constant ranges -
VUID-vkCmdDrawIndirectByteCountEXT-None-08879
All bound graphics shader objects must have been created with identical or identically defined arrays of descriptor set layouts -
VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-09372
If the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCountequal to1, a color attachment with a resolve mode of VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_BIT_ANDROID, and a fragment shader is bound, it must not declare theDepthReplacingorStencilRefReplacingEXTexecution modes -
VUID-vkCmdDrawIndirectByteCountEXT-pDynamicStates-08715
If the bound graphics pipeline state includes a fragment shader stage, was created with VK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE set in VkPipelineDynamicStateCreateInfo::pDynamicStates, and the fragment shader declares theEarlyFragmentTestsexecution mode and usesOpDepthAttachmentReadEXT, thedepthWriteEnableparameter in the last call to vkCmdSetDepthWriteEnable must be VK_FALSE -
VUID-vkCmdDrawIndirectByteCountEXT-pDynamicStates-08716
If the bound graphics pipeline state includes a fragment shader stage, was created with VK_DYNAMIC_STATE_STENCIL_WRITE_MASK set in VkPipelineDynamicStateCreateInfo::pDynamicStates, and the fragment shader declares theEarlyFragmentTestsexecution mode and usesOpStencilAttachmentReadEXT, thewriteMaskparameter in the last call to vkCmdSetStencilWriteMask must be0 -
VUID-vkCmdDrawIndirectByteCountEXT-None-09116
If a shader object is bound to any graphics stage or the bound graphics pipeline was created with VK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT, and the format of any color attachment is VK_FORMAT_E5B9G9R9_UFLOAT_PACK32, the corresponding element of thepColorWriteMasksparameter of vkCmdSetColorWriteMaskEXT must either include all of VK_COLOR_COMPONENT_R_BIT, VK_COLOR_COMPONENT_G_BIT, and VK_COLOR_COMPONENT_B_BIT, or none of them -
VUID-vkCmdDrawIndirectByteCountEXT-maxFragmentDualSrcAttachments-09239
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 ofLocationfor any output attachment statically used in theFragmentExecutionModelexecuted by this command must be less thanmaxFragmentDualSrcAttachments -
VUID-vkCmdDrawIndirectByteCountEXT-None-09548
If the current render pass was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, the value of each element of VkRenderingAttachmentLocationInfo::pColorAttachmentLocationsin the bound pipeline must match the value for the corresponding locations set currently in the current render pass instance -
VUID-vkCmdDrawIndirectByteCountEXT-None-09549
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, the value of each element of VkRenderingInputAttachmentIndexInfo::pColorAttachmentInputIndicesin the bound pipeline must match the value for the corresponding index set currently in the current render pass instance -
VUID-vkCmdDrawIndirectByteCountEXT-None-10927
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, the value of VkRenderingInputAttachmentIndexInfo::pDepthInputAttachmentIndexin the bound pipeline must match the value set currently in the current render pass instance -
VUID-vkCmdDrawIndirectByteCountEXT-None-10928
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, the value of VkRenderingInputAttachmentIndexInfo::pStencilInputAttachmentIndexin the bound pipeline must match the value set currently in the current render pass instance -
VUID-vkCmdDrawIndirectByteCountEXT-None-09642
If the current render pass was begun with vkCmdBeginRendering with the VK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT flag, the bound graphics pipeline must have been created with VK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-09643
If the bound graphics pipeline was created with VK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT, the current render pass must have begun with vkCmdBeginRendering with the VK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT flag -
VUID-vkCmdDrawIndirectByteCountEXT-None-10677
If the per-tile execution model is enabled, the tileShadingPerTileDraw feature must be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-None-10772
If a shader object is bound to any graphics stage, multiview functionality must not be enabled in the current render pass -
VUID-vkCmdDrawIndirectByteCountEXT-multiviewPerViewViewports-12262
If themultiviewPerViewViewportsfeature is enabled, then the index of the most significant bit in current render pass instanceviewMaskmust be less than the current value ofviewportCount -
VUID-vkCmdDrawIndirectByteCountEXT-multiviewPerViewViewports-12263
If themultiviewPerViewViewportsfeature is enabled, then the index of the most significant bit in current render pass instanceviewMaskmust be less than the current value ofscissorCount -
VUID-vkCmdDrawIndirectByteCountEXT-flags-11521
If current render pass instance was begun with vkCmdBeginRendering with VkRenderingInfo::flagswhich includes VK_RENDERING_FRAGMENT_REGION_BIT_EXT, and if sample shading is enabled (explicitly or implicitly), then the minimum fraction for sample shading must equal 0.0 -
VUID-vkCmdDrawIndirectByteCountEXT-None-11522
If the current render pass instance was begun with vkCmdBeginRendering and contains a custom resolve, and thedynamicRenderingUnusedAttachmentsfeature is not enabled, the graphics pipeline bound must have been created with a VkCustomResolveCreateInfoEXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-11523
If the current render pass instance was begun with vkCmdBeginRendering and does not contain a custom resolve, and thedynamicRenderingUnusedAttachmentsfeature is not enabled, the graphics pipeline bound must not have been created with a VkCustomResolveCreateInfoEXT -
VUID-vkCmdDrawIndirectByteCountEXT-customResolve-11524
If the current render pass instance was begun with vkCmdBeginRendering and vkCmdBeginCustomResolveEXT has been recorded in the render pass instance, the graphics pipeline bound must have been created with VkCustomResolveCreateInfoEXT::customResolveas VK_TRUE -
VUID-vkCmdDrawIndirectByteCountEXT-customResolve-11525
If the current render pass instance was begun with vkCmdBeginRendering and contains a custom resolve, and vkCmdBeginCustomResolveEXT has not been recorded in the render pass instance, the graphics pipeline bound must have been created with VkCustomResolveCreateInfoEXT::customResolveas VK_FALSE -
VUID-vkCmdDrawIndirectByteCountEXT-None-11861
If thedynamicRenderingUnusedAttachmentsfeature is not enabled and the current render pass instance was begun with vkCmdBeginRendering and contains a custom resolve, the bound graphics pipeline must have been created with a VkCustomResolveCreateInfoEXT::colorAttachmentCountequal to VkRenderingInfo::colorAttachmentCount -
VUID-vkCmdDrawIndirectByteCountEXT-None-11862
If thedynamicRenderingUnusedAttachmentsfeature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, and VkRenderingInfo::colorAttachmentCountgreater than0, then each element of the VkRenderingInfo::pColorAttachmentsarray with anresolveImageViewnot equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkCustomResolveCreateInfoEXT::pColorAttachmentFormatsused to create the bound graphics pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-None-11863
If thedynamicRenderingUnusedAttachmentsfeature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, and VkRenderingInfo::colorAttachmentCountgreater than0, then each element of the VkRenderingInfo::pColorAttachmentsarray with anresolveImageViewequal to VK_NULL_HANDLE must have the corresponding element of VkCustomResolveCreateInfoEXT::pColorAttachmentFormatsused to create the bound pipeline equal to VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-11864
If thedynamicRenderingUnusedAttachmentsfeature is enabled, the current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, and VkRenderingInfo::colorAttachmentCountgreater than0, then each element of the VkRenderingInfo::pColorAttachmentsarray with anresolveImageViewnot equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkCustomResolveCreateInfoEXT::pColorAttachmentFormatsused to create the bound graphics pipeline, or the corresponding element of VkCustomResolveCreateInfoEXT::pColorAttachmentFormats, if it exists, must be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-None-11865
If the current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, thedynamicRenderingUnusedAttachmentsfeature is not enabled, and VkRenderingInfo::pDepthAttachment->resolveImageViewwas VK_NULL_HANDLE, the value of VkCustomResolveCreateInfoEXT::depthAttachmentFormatused to create the bound graphics pipeline must be equal to VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-None-11866
If current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, thedynamicRenderingUnusedAttachmentsfeature is not enabled, and VkRenderingInfo::pDepthAttachment->resolveImageViewwas not VK_NULL_HANDLE, the value of VkCustomResolveCreateInfoEXT::depthAttachmentFormatused to create the bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->resolveImageView -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-11867
If the current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, thedynamicRenderingUnusedAttachmentsfeature is enabled, VkRenderingInfo::pDepthAttachment->resolveImageViewwas not VK_NULL_HANDLE, and the value of VkCustomResolveCreateInfoEXT::depthAttachmentFormatused to create the bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->resolveImageView, the value of the format must be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-None-11868
If the current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, thedynamicRenderingUnusedAttachmentsfeature is not enabled, and VkRenderingInfo::pStencilAttachment->resolveImageViewwas VK_NULL_HANDLE, the value of VkCustomResolveCreateInfoEXT::stencilAttachmentFormatused to create the bound graphics pipeline must be equal to VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-None-11869
If current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, thedynamicRenderingUnusedAttachmentsfeature is not enabled, and VkRenderingInfo::pStencilAttachment->resolveImageViewwas not VK_NULL_HANDLE, the value of VkCustomResolveCreateInfoEXT::stencilAttachmentFormatused to create the bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->resolveImageView -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicRenderingUnusedAttachments-11870
If the current render pass instance was begun with vkCmdBeginRendering, it contains a custom resolve, thedynamicRenderingUnusedAttachmentsfeature is enabled, VkRenderingInfo::pStencilAttachment->resolveImageViewwas not VK_NULL_HANDLE, and the value of VkCustomResolveCreateInfoEXT::stencilAttachmentFormatused to create the bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->resolveImageView, the value of the format must be VK_FORMAT_UNDEFINED -
VUID-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-11871
If the current render pass instance was begun with vkCmdBeginRendering with a VkRenderingInfo::colorAttachmentCountparameter greater than0and vkCmdBeginCustomResolveEXT has been recorded in the render pass instance, then for each element of the VkRenderingInfo::pColorAttachmentsarray with aresolveImageViewnot equal to VK_NULL_HANDLE, theresolveImageViewmust have been created with a sample count equal to the value ofrasterizationSamplesfor the bound graphics pipeline -
VUID-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-11872
If the current render pass instance was begun with vkCmdBeginRendering, vkCmdBeginCustomResolveEXT has been recorded in the render pass instance, and VkRenderingInfo::pDepthAttachment->resolveImageViewwas not VK_NULL_HANDLE, the value ofrasterizationSamplesfor the bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pDepthAttachment->resolveImageView -
VUID-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-11873
If the current render pass instance was begun with vkCmdBeginRendering, vkCmdBeginCustomResolveEXT has been recorded in the render pass instance, VkRenderingInfo::pStencilAttachment->resolveImageViewwas not VK_NULL_HANDLE, the value ofrasterizationSamplesfor the bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pStencilAttachment->resolveImageView -
VUID-vkCmdDrawIndirectByteCountEXT-customResolve-11529
If a shader object is bound to the fragment stage, the current render pass instance was begun with vkCmdBeginRendering, a fragment density map attachment is active, and vkCmdBeginCustomResolveEXT has been called, then the fragment shader object bound must have been created with VkCustomResolveCreateInfoEXT::customResolveas VK_TRUE -
VUID-vkCmdDrawIndirectByteCountEXT-customResolve-11530
If a shader object is bound to the fragment stage, the current render pass instance was begun with vkCmdBeginRendering and contains a custom resolve, a fragment density map attachment is active, and vkCmdBeginCustomResolveEXT has not yet been called, then the fragment shader object bound must have been created with VkCustomResolveCreateInfoEXT::customResolveas VK_FALSE
-
VUID-vkCmdDrawIndirectByteCountEXT-None-04007
All vertex input bindings accessed via vertex input variables declared in the vertex shader entry point’s interface must have either valid or VK_NULL_HANDLE buffers bound -
VUID-vkCmdDrawIndirectByteCountEXT-None-04008
If thenullDescriptorfeature is not enabled, all vertex input bindings accessed via vertex input variables declared in the vertex shader entry point’s interface must not be VK_NULL_HANDLE -
VUID-vkCmdDrawIndirectByteCountEXT-None-02721
If therobustBufferAccessfeature is not enabled, and that pipeline was created without enabling VK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS forvertexInputs, then for a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in Vertex Input Description -
VUID-vkCmdDrawIndirectByteCountEXT-format-10389
For each vertex attribute accessed by this command, if its VkVertexInputAttributeDescription::formator VkVertexInputAttributeDescription2EXT::formatis a packed format, and thelegacyVertexAttributesfeature is not enabled, the value ofattribAddress, calculated as described in Vertex Input Calculation, must be a multiple of the size of theformat -
VUID-vkCmdDrawIndirectByteCountEXT-format-10390
For each vertex attribute accessed by this command, if its VkVertexInputAttributeDescription::formator VkVertexInputAttributeDescription2EXT::formatis not a packed format, and either thelegacyVertexAttributesfeature is not enabled orformathas 64-bit components, the value ofattribAddress, calculated as described in Vertex Input Calculation, must be a multiple of the component size of theformat -
VUID-vkCmdDrawIndirectByteCountEXT-None-07842
If there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY dynamic state enabled then vkCmdSetPrimitiveTopology must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY dynamic state enabled and thedynamicPrimitiveTopologyUnrestrictedis VK_FALSE, then theprimitiveTopologyparameter ofvkCmdSetPrimitiveTopologymust be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topologystate -
VUID-vkCmdDrawIndirectByteCountEXT-primitiveTopology-10286
If a VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT stage is bound, then the current value ofprimitiveTopologymust be VK_PRIMITIVE_TOPOLOGY_PATCH_LIST prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-primitiveTopology-10747
If vkCmdSetPrimitiveTopology setprimitiveTopologyto VK_PRIMITIVE_TOPOLOGY_PATCH_LIST prior to this drawing command, then a VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT stage must be bound -
VUID-vkCmdDrawIndirectByteCountEXT-primitiveTopology-10748
If vkCmdSetPrimitiveTopology setprimitiveTopologyto VK_PRIMITIVE_TOPOLOGY_POINT_LIST prior to this drawing command, themaintenance5feature is not enabled, both a VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT and VK_SHADER_STAGE_GEOMETRY_BIT stage are not bound, then theVertexExecutionModelmust have aPointSizedecorated variable that is statically written to -
VUID-vkCmdDrawIndirectByteCountEXT-pStrides-04913
If the bound graphics pipeline was created with the VK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE dynamic state enabled, but without the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic state enabled, then vkCmdBindVertexBuffers2 must have been called and not subsequently invalidated in the current command buffer prior to this draw command, and thepStridesparameter of vkCmdBindVertexBuffers2 must not beNULL -
VUID-vkCmdDrawIndirectByteCountEXT-None-04914
If there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic state enabled then vkCmdSetVertexInputEXT must have been called and not subsequently invalidated in the current command buffer prior to this draw command -
VUID-vkCmdDrawIndirectByteCountEXT-Input-07939
If thevertexAttributeRobustnessfeature is not enabled, and themaintenance9feature is not enabled, and there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic state enabled then all variables with theInputstorage class decorated withLocationin theVertexExecutionModelOpEntryPointmust contain a location in VkVertexInputAttributeDescription2EXT::location -
VUID-vkCmdDrawIndirectByteCountEXT-Input-08734
If there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic state enabled and either thelegacyVertexAttributesfeature is not enabled or the SPIR-V Type associated with a givenInputvariable of the correspondingLocationin theVertexExecutionModelOpEntryPointis 64-bit, then the numeric type associated with allInputvariables of the correspondingLocationin theVertexExecutionModelOpEntryPointmust be the same as VkVertexInputAttributeDescription2EXT::format -
VUID-vkCmdDrawIndirectByteCountEXT-format-08936
If there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic state enabled and VkVertexInputAttributeDescription2EXT::formathas a 64-bit component, then the scalar width associated with allInputvariables of the correspondingLocationin theVertexExecutionModelOpEntryPointmust be 64-bit -
VUID-vkCmdDrawIndirectByteCountEXT-format-08937
If there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic state enabled and the scalar width associated with aLocationdecoratedInputvariable in theVertexExecutionModelOpEntryPointis 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::formatmust have a 64-bit component -
VUID-vkCmdDrawIndirectByteCountEXT-None-09203
If there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic state enabled and VkVertexInputAttributeDescription2EXT::formathas a 64-bit component, then allInputvariables at the correspondingLocationin theVertexExecutionModelOpEntryPointmust not use components that are not present in the format -
VUID-vkCmdDrawIndirectByteCountEXT-None-04875
If there is a shader object bound to the VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT stage or the bound graphics pipeline state was created with both a VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT stage and the VK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT dynamic state enabled, and the current value ofprimitiveTopologyis VK_PRIMITIVE_TOPOLOGY_PATCH_LIST, then vkCmdSetPatchControlPointsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-04879
If there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-09637
If theprimitiveTopologyListRestartfeature is not enabled, the input assembly is VK_PRIMITIVE_TOPOLOGY_POINT_LIST, VK_PRIMITIVE_TOPOLOGY_LINE_LIST, VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST, VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY, or VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY, there is a shader object bound to the VK_SHADER_STAGE_VERTEX_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE dynamic state enabled, then vkCmdSetPrimitiveRestartEnable must be VK_FALSE -
VUID-vkCmdDrawIndirectByteCountEXT-None-10909
If theprimitiveTopologyPatchListRestartfeature is not enabled, the input assembly is VK_PRIMITIVE_TOPOLOGY_PATCH_LIST, there is a shader object bound to the VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT stage or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE dynamic state enabled then vkCmdSetPrimitiveRestartEnable must be VK_FALSE -
VUID-vkCmdDrawIndirectByteCountEXT-stage-06481
The bound graphics pipeline must not have been created with the VkPipelineShaderStageCreateInfo::stagemember of any element of VkGraphicsPipelineCreateInfo::pStagesset to VK_SHADER_STAGE_TASK_BIT_EXT or VK_SHADER_STAGE_MESH_BIT_EXT -
VUID-vkCmdDrawIndirectByteCountEXT-None-08885
There must be no shader object bound to either of the VK_SHADER_STAGE_TASK_BIT_EXT or VK_SHADER_STAGE_MESH_BIT_EXT stages -
VUID-vkCmdDrawIndirectByteCountEXT-None-07619
If a shader object is bound to the VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT stage or a graphics pipeline is bound which was created with both a VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT stage and the VK_DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT dynamic state enabled, then vkCmdSetTessellationDomainOriginEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-OpExecutionMode-12239
If a shader is bound to both the VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT and VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT stages, and if both stages contain anOpExecutionModeinstruction specifying the type of subdivision, they must be the same -
VUID-vkCmdDrawIndirectByteCountEXT-OpExecutionMode-12240
If a shader is bound to both the VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT and VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT stages, and if both stages contain anOpExecutionModeinstruction specifying the orientation of triangles, they must be the same -
VUID-vkCmdDrawIndirectByteCountEXT-OpExecutionMode-12241
If a shader is bound to both the VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT and VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT stages, and if both stages contain anOpExecutionModeinstruction specifying the segment spacing, they must be the same -
VUID-vkCmdDrawIndirectByteCountEXT-OpExecutionMode-12242
If a shader is bound to both the VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT and VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT stages, and if both stages contain anOpExecutionModeinstruction specifying the output patch size, they must be the same
-
VUID-vkCmdDrawIndirectByteCountEXT-pNext-09461
If the bound graphics pipeline state was created with VkPipelineVertexInputDivisorStateCreateInfo in thepNextchain of VkGraphicsPipelineCreateInfo::pVertexInputState, any member of VkPipelineVertexInputDivisorStateCreateInfo::pVertexBindingDivisorshas a value other than1indivisor, and VkPhysicalDeviceVertexAttributeDivisorProperties::supportsNonZeroFirstInstanceis VK_FALSE, thenfirstInstancemust be0 -
VUID-vkCmdDrawIndirectByteCountEXT-None-09462
If shader objects are used for drawing or the bound graphics pipeline state was created with the VK_DYNAMIC_STATE_VERTEX_INPUT_EXT dynamic state enabled, any member of thepVertexBindingDescriptionsparameter to the vkCmdSetVertexInputEXT call that sets this dynamic state has a value other than1indivisor, and VkPhysicalDeviceVertexAttributeDivisorProperties::supportsNonZeroFirstInstanceis VK_FALSE, thenfirstInstancemust be0
-
VUID-vkCmdDrawIndirectByteCountEXT-transformFeedback-02287
VkPhysicalDeviceTransformFeedbackFeaturesEXT::transformFeedbackmust be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-transformFeedbackDraw-02288
The implementation must supportVkPhysicalDeviceTransformFeedbackPropertiesEXT::transformFeedbackDraw -
VUID-vkCmdDrawIndirectByteCountEXT-vertexStride-02289
vertexStridemust be greater than 0 and less than or equal toVkPhysicalDeviceTransformFeedbackPropertiesEXT::maxTransformFeedbackBufferDataStride -
VUID-vkCmdDrawIndirectByteCountEXT-counterBuffer-04567
IfcounterBufferis non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemoryobject -
VUID-vkCmdDrawIndirectByteCountEXT-counterBuffer-02290
counterBuffermust have been created with the VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT usage flag set -
VUID-vkCmdDrawIndirectByteCountEXT-counterBufferOffset-04568
counterBufferOffsetmust be a multiple of4 -
VUID-vkCmdDrawIndirectByteCountEXT-counterOffset-09474
counterOffsetmust be a multiple of4 -
VUID-vkCmdDrawIndirectByteCountEXT-vertexStride-09475
vertexStridemust be a multiple of4 -
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-02646
commandBuffermust not be a protected command buffer
-
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-parameter
commandBuffermust be a valid VkCommandBuffer handle -
VUID-vkCmdDrawIndirectByteCountEXT-counterBuffer-parameter
counterBuffermust be a valid VkBuffer handle -
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-recording
commandBuffermust be in the recording state -
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-cmdpool
TheVkCommandPoolthatcommandBufferwas allocated from must support VK_QUEUE_GRAPHICS_BIT operations -
VUID-vkCmdDrawIndirectByteCountEXT-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawIndirectByteCountEXT-suspended
This command must not be called between suspended render pass instances -
VUID-vkCmdDrawIndirectByteCountEXT-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawIndirectByteCountEXT-commonparent
Both ofcommandBuffer, andcounterBuffermust have been created, allocated, or retrieved from the same VkDevice
-
Host access to
commandBuffermust be externally synchronized -
Host access to the
VkCommandPoolthatcommandBufferwas allocated from must be externally synchronized
| Command Buffer Levels | Render Pass Scope | Video Coding Scope | Supported Queue Types | Command Type |
|---|---|---|---|---|
Primary |
Inside |
Outside |
VK_QUEUE_GRAPHICS_BIT |
Action |
vkCmdDrawIndirectByteCountEXT is affected by conditional rendering
See Also
VK_EXT_transform_feedback, VkBuffer, VkCommandBuffer, VkDeviceSize
Document Notes
For more information, see the Vulkan Specification.
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.