C Specification
To record a mesh tasks drawing command, call:
// Provided by VK_NV_mesh_shader
void vkCmdDrawMeshTasksNV(
VkCommandBuffer commandBuffer,
uint32_t taskCount,
uint32_t firstTask);
Parameters
-
commandBuffer
is the command buffer into which the command will be recorded. -
taskCount
is the number of local workgroups to dispatch in the X dimension. Y and Z dimension are implicitly set to one. -
firstTask
is the X component of the first workgroup ID.
Description
When the command is executed, a global workgroup consisting of
taskCount
local workgroups is assembled.
-
VUID-vkCmdDrawMeshTasksNV-magFilter-04553
If a VkSampler created withmagFilter
orminFilter
equal toVK_FILTER_LINEAR
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDrawMeshTasksNV-magFilter-09598
If a VkSampler created withmagFilter
orminFilter
equal toVK_FILTER_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDrawMeshTasksNV-mipmapMode-04770
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDrawMeshTasksNV-mipmapMode-09599
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDrawMeshTasksNV-unnormalizedCoordinates-09635
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’slevelCount
andlayerCount
must be 1 -
VUID-vkCmdDrawMeshTasksNV-unnormalizedCoordinates-09636
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’sviewType
must beVK_IMAGE_VIEW_TYPE_1D
orVK_IMAGE_VIEW_TYPE_2D
-
VUID-vkCmdDrawMeshTasksNV-None-06479
If a VkImageView is sampled with depth comparison, the image view’s format features must containVK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-02691
If a VkImageView is accessed using atomic operations as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-07888
If aVK_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 containVK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-02692
If a VkImageView is sampled withVK_FILTER_CUBIC_EXT
as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-None-02693
If the VK_EXT_filter_cubic extension is not enabled and any VkImageView is sampled withVK_FILTER_CUBIC_EXT
as a result of this command, it must not have a VkImageViewType ofVK_IMAGE_VIEW_TYPE_3D
,VK_IMAGE_VIEW_TYPE_CUBE
, orVK_IMAGE_VIEW_TYPE_CUBE_ARRAY
-
VUID-vkCmdDrawMeshTasksNV-filterCubic-02694
Any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must have a VkImageViewType and format that supports cubic filtering, as specified by VkFilterCubicImageViewImageFormatPropertiesEXT::filterCubic
returned by vkGetPhysicalDeviceImageFormatProperties2 -
VUID-vkCmdDrawMeshTasksNV-filterCubicMinmax-02695
Any VkImageView being sampled withVK_FILTER_CUBIC_EXT
with a reduction mode of eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_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::filterCubicMinmax
returned by vkGetPhysicalDeviceImageFormatProperties2 -
VUID-vkCmdDrawMeshTasksNV-cubicRangeClamp-09212
If thecubicRangeClamp
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must not have a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
-
VUID-vkCmdDrawMeshTasksNV-reductionMode-09213
Any VkImageView being sampled with a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
as a result of this command must sample withVK_FILTER_CUBIC_EXT
-
VUID-vkCmdDrawMeshTasksNV-selectableCubicWeights-09214
If theselectableCubicWeights
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must have VkSamplerCubicWeightsCreateInfoQCOM::cubicWeights
equal toVK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM
-
VUID-vkCmdDrawMeshTasksNV-flags-02696
Any VkImage created with a VkImageCreateInfo::flags
containingVK_IMAGE_CREATE_CORNER_SAMPLED_BIT_NV
sampled as a result of this command must only be sampled using a VkSamplerAddressMode ofVK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE
-
VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07027
For any VkImageView being written as a storage image where the image format field of theOpTypeImage
isUnknown
, the view’s format features must containVK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT
-
VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07028
For any VkImageView being read as a storage image where the image format field of theOpTypeImage
isUnknown
, the view’s format features must containVK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT
-
VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07029
For any VkBufferView being written as a storage texel buffer where the image format field of theOpTypeImage
isUnknown
, the view’s buffer features must containVK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT
-
VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07030
Any VkBufferView being read as a storage texel buffer where the image format field of theOpTypeImage
isUnknown
then the view’s buffer features must containVK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT
-
VUID-vkCmdDrawMeshTasksNV-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 [descriptorsets-compatibility] -
VUID-vkCmdDrawMeshTasksNV-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 [descriptorsets-compatibility] -
VUID-vkCmdDrawMeshTasksNV-maintenance4-08602
If themaintenance4
feature is not enabled, then for each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a 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 [descriptorsets-compatibility] -
VUID-vkCmdDrawMeshTasksNV-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 withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-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 withoutVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-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 withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-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-vkCmdDrawMeshTasksNV-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 withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-None-08119
If a descriptor is dynamically used with a VkPipeline created withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident -
VUID-vkCmdDrawMeshTasksNV-None-08605
If a descriptor is dynamically used with a VkShaderEXT created with aVkDescriptorSetLayout
that was created withVK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident -
VUID-vkCmdDrawMeshTasksNV-None-08606
If theshaderObject
feature is not enabled, a valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMeshTasksNV-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 not specified as dynamic in the VkPipeline object bound to the pipeline bind point used by this command, since that pipeline was bound -
VUID-vkCmdDrawMeshTasksNV-None-08609
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used to sample from any VkImage with a VkImageView of the typeVK_IMAGE_VIEW_TYPE_3D
,VK_IMAGE_VIEW_TYPE_CUBE
,VK_IMAGE_VIEW_TYPE_1D_ARRAY
,VK_IMAGE_VIEW_TYPE_2D_ARRAY
orVK_IMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage -
VUID-vkCmdDrawMeshTasksNV-None-08610
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions withImplicitLod
,Dref
orProj
in their name, in any shader stage -
VUID-vkCmdDrawMeshTasksNV-None-08611
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions that includes a LOD bias or any offset values, in any shader stage -
VUID-vkCmdDrawMeshTasksNV-None-08607
If theshaderObject
is enabled, either a valid pipeline must be bound to the pipeline bind point used by this command, or a valid combination of valid and VK_NULL_HANDLE shader objects must be bound to every supported shader stage corresponding to the pipeline bind point used by this command -
VUID-vkCmdDrawMeshTasksNV-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 eitherVK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
orVK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2_EXT
foruniformBuffers
, and therobustBufferAccess
feature is not enabled, that stage must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-vkCmdDrawMeshTasksNV-None-08612
If therobustBufferAccess
feature 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-vkCmdDrawMeshTasksNV-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 eitherVK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
orVK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_2_EXT
forstorageBuffers
, and therobustBufferAccess
feature is not enabled, that stage must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-vkCmdDrawMeshTasksNV-None-08613
If therobustBufferAccess
feature 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-vkCmdDrawMeshTasksNV-commandBuffer-02707
IfcommandBuffer
is an unprotected command buffer andprotectedNoFault
is not supported, any resource accessed by bound shaders must not be a protected resource -
VUID-vkCmdDrawMeshTasksNV-None-06550
If a bound shader accesses a VkSampler or VkImageView object that enables sampler Y′CBCR conversion, that object must only be used withOpImageSample*
orOpImageSparseSample*
instructions -
VUID-vkCmdDrawMeshTasksNV-ConstOffset-06551
If a bound shader accesses a VkSampler or VkImageView object that enables sampler Y′CBCR conversion, that object must not use theConstOffset
andOffset
operands -
VUID-vkCmdDrawMeshTasksNV-viewType-07752
If a VkImageView is accessed as a result of this command, then the image view’sviewType
must match theDim
operand of theOpTypeImage
as described in [textures-operation-validation] -
VUID-vkCmdDrawMeshTasksNV-format-07753
If a VkImageView is accessed as a result of this command, then the numeric type of the image view’sformat
and theSampled
Type
operand of theOpTypeImage
must match -
VUID-vkCmdDrawMeshTasksNV-OpImageWrite-08795
If a VkImageView created with a format other thanVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the image view’s format -
VUID-vkCmdDrawMeshTasksNV-OpImageWrite-08796
If a VkImageView created with the formatVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have four components -
VUID-vkCmdDrawMeshTasksNV-OpImageWrite-04469
If a VkBufferView is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the buffer view’s format -
VUID-vkCmdDrawMeshTasksNV-SampledType-04470
If a VkImageView with a VkFormat that has a 64-bit component width is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 64 -
VUID-vkCmdDrawMeshTasksNV-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, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 32 -
VUID-vkCmdDrawMeshTasksNV-SampledType-04472
If a VkBufferView with a VkFormat that has a 64-bit component width is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 64 -
VUID-vkCmdDrawMeshTasksNV-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, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 32 -
VUID-vkCmdDrawMeshTasksNV-sparseImageInt64Atomics-04474
If thesparseImageInt64Atomics
feature is not enabled, VkImage objects created with theVK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command -
VUID-vkCmdDrawMeshTasksNV-sparseImageInt64Atomics-04475
If thesparseImageInt64Atomics
feature is not enabled, VkBuffer objects created with theVK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command -
VUID-vkCmdDrawMeshTasksNV-OpImageWeightedSampleQCOM-06971
IfOpImageWeightedSampleQCOM
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_WEIGHT_SAMPLED_IMAGE_BIT_QCOM
-
VUID-vkCmdDrawMeshTasksNV-OpImageWeightedSampleQCOM-06972
IfOpImageWeightedSampleQCOM
uses a VkImageView as a sample weight image as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_WEIGHT_IMAGE_BIT_QCOM
-
VUID-vkCmdDrawMeshTasksNV-OpImageBoxFilterQCOM-06973
IfOpImageBoxFilterQCOM
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_BOX_FILTER_SAMPLED_BIT_QCOM
-
VUID-vkCmdDrawMeshTasksNV-OpImageBlockMatchSSDQCOM-06974
IfOpImageBlockMatchSSDQCOM
is used to read from an VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
VUID-vkCmdDrawMeshTasksNV-OpImageBlockMatchSADQCOM-06975
IfOpImageBlockMatchSADQCOM
is used to read from an VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
VUID-vkCmdDrawMeshTasksNV-OpImageBlockMatchSADQCOM-06976
IfOpImageBlockMatchSADQCOM
or OpImageBlockMatchSSDQCOM is used to read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation -
VUID-vkCmdDrawMeshTasksNV-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDrawMeshTasksNV-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must not have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDrawMeshTasksNV-OpImageBlockMatchWindow-09215
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
VUID-vkCmdDrawMeshTasksNV-OpImageBlockMatchWindow-09216
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction 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-vkCmdDrawMeshTasksNV-OpImageBlockMatchWindow-09217
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation -
VUID-vkCmdDrawMeshTasksNV-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMeshTasksNV-None-09600
If a descriptor with type equal to any ofVK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE
,VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
, orVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
is accessed as a result of this command, the image subresource identified by that descriptor must be in the image layout identified when the descriptor was written -
VUID-vkCmdDrawMeshTasksNV-renderPass-02684
The current render pass must be compatible with therenderPass
member of theVkGraphicsPipelineCreateInfo
structure specified when creating theVkPipeline
bound toVK_PIPELINE_BIND_POINT_GRAPHICS
-
VUID-vkCmdDrawMeshTasksNV-subpass-02685
The subpass index of the current render pass must be equal to thesubpass
member of theVkGraphicsPipelineCreateInfo
structure specified when creating theVkPipeline
bound toVK_PIPELINE_BIND_POINT_GRAPHICS
-
VUID-vkCmdDrawMeshTasksNV-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawMeshTasksNV-OpTypeImage-07468
If any shader executed by this pipeline accesses anOpTypeImage
variable with aDim
operand ofSubpassData
, it must be decorated with anInputAttachmentIndex
that corresponds to a valid input attachment in the current subpass -
VUID-vkCmdDrawMeshTasksNV-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 currently bound VkFramebuffer as specified by Fragment Input Attachment Compatibility -
VUID-vkCmdDrawMeshTasksNV-pDepthInputAttachmentIndex-09595
Input attachment views accessed in a dynamic render pass with aInputAttachmentIndex
referenced by VkRenderingInputAttachmentIndexInfoKHR, or noInputAttachmentIndex
if VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
or VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
areNULL
, must be created with a VkImageView that is compatible with the corresponding color, depth, or stencil attachment in VkRenderingInfo -
VUID-vkCmdDrawMeshTasksNV-pDepthInputAttachmentIndex-09596
Input attachment views accessed in a dynamic render pass via a shader object must have anInputAttachmentIndex
if both VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
and VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
are non-NULL
-
VUID-vkCmdDrawMeshTasksNV-InputAttachmentIndex-09597
If an input attachment view accessed in a dynamic render pass via a shader object has anInputAttachmentIndex
, theInputAttachmentIndex
must match an index in VkRenderingInputAttachmentIndexInfoKHR -
VUID-vkCmdDrawMeshTasksNV-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-vkCmdDrawMeshTasksNV-None-09000
If a color attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in theVK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:-
the
VK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_COLOR_BIT
and-
there is no currently bound graphics pipeline or
-
the currently 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-vkCmdDrawMeshTasksNV-None-09001
If a depth attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in theVK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_DEPTH_BIT
and-
there is no currently bound graphics pipeline or
-
the currently 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-vkCmdDrawMeshTasksNV-None-09002
If a stencil attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it is not in theVK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT
image layout, and either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_STENCIL_BIT
and-
there is no currently bound graphics pipeline or
-
the currently 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-vkCmdDrawMeshTasksNV-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-vkCmdDrawMeshTasksNV-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-vkCmdDrawMeshTasksNV-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-vkCmdDrawMeshTasksNV-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 backwriteMask
are not zero, and stencil test is enabled, all stencil ops must beVK_STENCIL_OP_KEEP
-
VUID-vkCmdDrawMeshTasksNV-None-07831
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT
dynamic state enabled then vkCmdSetViewport must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07832
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SCISSOR
dynamic state enabled then vkCmdSetScissor must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07833
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_WIDTH
dynamic state enabled then vkCmdSetLineWidth must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08617
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, vkCmdSetLineWidth must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08618
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, vkCmdSetLineWidth must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08619
If a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, vkCmdSetLineWidth must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias or vkCmdSetDepthBias2EXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08620
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDepthBiasEnable in the current command buffer setdepthBiasEnable
toVK_TRUE
, vkCmdSetDepthBias or vkCmdSetDepthBias2EXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07835
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_BLEND_CONSTANTS
dynamic state enabled then vkCmdSetBlendConstants must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08621
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT in the current command buffer set any element ofpColorBlendEnables
toVK_TRUE
, and the most recent call to vkCmdSetColorBlendEquationEXT in the current command buffer set the same element ofpColorBlendEquations
to aVkColorBlendEquationEXT
structure with any VkBlendFactor member with a value ofVK_BLEND_FACTOR_CONSTANT_COLOR
,VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR
,VK_BLEND_FACTOR_CONSTANT_ALPHA
, orVK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA
, vkCmdSetBlendConstants must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled, and if the currentdepthBoundsTestEnable
state isVK_TRUE
, then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08622
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDepthBoundsTestEnable in the current command buffer setdepthBoundsTestEnable
toVK_TRUE
, then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled, and if the currentstencilTestEnable
state isVK_TRUE
, then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08623
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetStencilTestEnable in the current command buffer setstencilTestEnable
toVK_TRUE
, vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled, and if the currentstencilTestEnable
state isVK_TRUE
, then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08624
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetStencilTestEnable in the current command buffer setstencilTestEnable
toVK_TRUE
, vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled, and if the currentstencilTestEnable
state isVK_TRUE
, then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08625
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetStencilTestEnable in the current command buffer setstencilTestEnable
toVK_TRUE
, vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-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-vkCmdDrawMeshTasksNV-sampleLocationsEnable-02689
If the bound graphics pipeline was created with VkPipelineSampleLocationsStateCreateInfoEXT::sampleLocationsEnable
set toVK_TRUE
and the current subpass has a depth/stencil attachment, then that attachment must have been created with theVK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set -
VUID-vkCmdDrawMeshTasksNV-None-06666
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
dynamic state enabled then vkCmdSetSampleLocationsEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08626
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetSampleLocationsEnableEXT in the current command buffer setsampleLocationsEnable
toVK_TRUE
, then vkCmdSetSampleLocationsEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07840
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_CULL_MODE
dynamic state enabled then vkCmdSetCullMode must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08627
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCullMode must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07841
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_FRONT_FACE
dynamic state enabled then vkCmdSetFrontFace must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08628
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetFrontFace must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07843
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_TEST_ENABLE
dynamic state enabled then vkCmdSetDepthTestEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08629
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDepthTestEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07844
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
dynamic state enabled then vkCmdSetDepthWriteEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08630
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDepthWriteEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07845
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_COMPARE_OP
dynamic state enabled then vkCmdSetDepthCompareOp must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08631
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDepthTestEnable in the current command buffer setdepthTestEnable
toVK_TRUE
, then vkCmdSetDepthCompareOp must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07846
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE
dynamic state enabled then vkCmdSetDepthBoundsTestEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08632
If a shader object is bound to any graphics stage, and thedepthBounds
feature is enabled, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then the vkCmdSetDepthBoundsTestEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07847
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_TEST_ENABLE
dynamic state enabled then vkCmdSetStencilTestEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08633
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetStencilTestEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07848
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_OP
dynamic state enabled then vkCmdSetStencilOp must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08634
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetStencilTestEnable in the current command buffer setstencilTestEnable
toVK_TRUE
, then vkCmdSetStencilOp must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-viewportCount-03417
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theVK_DYNAMIC_STATE_SCISSOR_WITH_COUNT
dynamic state enabled, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must match theVkPipelineViewportStateCreateInfo
::scissorCount
of the pipeline -
VUID-vkCmdDrawMeshTasksNV-scissorCount-03418
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SCISSOR_WITH_COUNT
dynamic state enabled, but not theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, then vkCmdSetScissorWithCount must have been called in the current command buffer prior to this drawing command, and thescissorCount
parameter ofvkCmdSetScissorWithCount
must match theVkPipelineViewportStateCreateInfo
::viewportCount
of the pipeline -
VUID-vkCmdDrawMeshTasksNV-viewportCount-03419
If the bound graphics pipeline state was created with both theVK_DYNAMIC_STATE_SCISSOR_WITH_COUNT
andVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic states enabled then both vkCmdSetViewportWithCount and vkCmdSetScissorWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must match thescissorCount
parameter ofvkCmdSetScissorWithCount
-
VUID-vkCmdDrawMeshTasksNV-None-08635
If a shader object is bound to any graphics stage, then both vkCmdSetViewportWithCount and vkCmdSetScissorWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must match thescissorCount
parameter ofvkCmdSetScissorWithCount
-
VUID-vkCmdDrawMeshTasksNV-viewportCount-04137
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theVK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic state enabled, then the bound graphics pipeline must have been created with VkPipelineViewportWScalingStateCreateInfoNV::viewportCount
greater or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-viewportCount-04138
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andVK_DYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic states enabled then theviewportCount
parameter in the last call to vkCmdSetViewportWScalingNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-None-09232
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then vkCmdSetViewportWScalingNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08636
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportWScalingNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-viewportCount-04139
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theVK_DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic state enabled, then the bound graphics pipeline must have been created with VkPipelineViewportShadingRateImageStateCreateInfoNV::viewportCount
greater or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-viewportCount-04140
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andVK_DYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic states enabled then theviewportCount
parameter in the last call to vkCmdSetViewportShadingRatePaletteNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-shadingRateImage-09233
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCoarseSampleOrderNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-shadingRateImage-09234
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then vkCmdSetViewportShadingRatePaletteNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08637
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportShadingRatePaletteNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-VkPipelineVieportCreateInfo-04141
If the bound graphics pipeline state was created with theVK_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::viewportCount
greater or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-VkPipelineVieportCreateInfo-04142
If the bound graphics pipeline state was created with theVK_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::exclusiveScissorCount
greater or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-None-07878
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV
dynamic state enabled then vkCmdSetExclusiveScissorEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
dynamic state enabled then vkCmdSetExclusiveScissorNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-exclusiveScissor-09235
If theexclusiveScissor
feature is enabled, and a shader object is bound to any graphics stage, then vkCmdSetExclusiveScissorEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08638
If theexclusiveScissor
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetExclusiveScissorEnableNV in the current command buffer set any element ofpExclusiveScissorEnables
toVK_TRUE
, then vkCmdSetExclusiveScissorNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-04876
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE
dynamic state enabled then vkCmdSetRasterizerDiscardEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08639
If a shader object is bound to any graphics stage, then vkCmdSetRasterizerDiscardEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-04877
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE
dynamic state enabled then vkCmdSetDepthBiasEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08640
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDepthBiasEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-logicOp-04878
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled then vkCmdSetLogicOpEXT must have been called in the current command buffer prior to this drawing command and thelogicOp
must be a valid VkLogicOp value -
VUID-vkCmdDrawMeshTasksNV-None-08641
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetLogicOpEnableEXT setlogicOpEnable
toVK_TRUE
, then vkCmdSetLogicOpEXT must have been called in the current command buffer prior to this drawing command and thelogicOp
must be a valid VkLogicOp value -
VUID-vkCmdDrawMeshTasksNV-primitiveFragmentShadingRateWithMultipleViewports-04552
If theprimitiveFragmentShadingRateWithMultipleViewports
limit is not supported, the bound graphics pipeline was created with theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, and any of the shader stages of the bound graphics pipeline write to thePrimitiveShadingRateKHR
built-in, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must be1
-
VUID-vkCmdDrawMeshTasksNV-primitiveFragmentShadingRateWithMultipleViewports-08642
If theprimitiveFragmentShadingRateWithMultipleViewports
limit is not supported, and any shader object bound to a graphics stage writes to thePrimitiveShadingRateKHR
built-in, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must be1
-
VUID-vkCmdDrawMeshTasksNV-blendEnable-04727
If rasterization is not disabled in the bound graphics pipeline, then for each color attachment in the subpass, if the corresponding image view’s format features do not containVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then theblendEnable
member of the corresponding element of thepAttachments
member ofpColorBlendState
must beVK_FALSE
-
VUID-vkCmdDrawMeshTasksNV-None-08643
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then for each color attachment in the render pass, if the corresponding image view’s format features do not containVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then the corresponding member ofpColorBlendEnables
in the most recent call tovkCmdSetColorBlendEnableEXT
in the current command buffer that affected that attachment index must have beenVK_FALSE
-
VUID-vkCmdDrawMeshTasksNV-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then
rasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
-
VUID-vkCmdDrawMeshTasksNV-None-08644
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then the most recent call to vkCmdSetRasterizationSamplesEXT in the current command buffer must have set
rasterizationSamples
to be the same as the number of samples for the current render pass color and/or depth/stencil attachments -
-
VUID-vkCmdDrawMeshTasksNV-None-08876
If a shader object is bound to any graphics stage, the current render pass instance must have been begun with vkCmdBeginRendering -
VUID-vkCmdDrawMeshTasksNV-imageView-06172
If the current render pass instance was begun with vkCmdBeginRendering, theimageView
member ofpDepthAttachment
is not VK_NULL_HANDLE, and thelayout
member ofpDepthAttachment
isVK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment -
VUID-vkCmdDrawMeshTasksNV-imageView-06173
If the current render pass instance was begun with vkCmdBeginRendering, theimageView
member ofpStencilAttachment
is not VK_NULL_HANDLE, and thelayout
member ofpStencilAttachment
isVK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment -
VUID-vkCmdDrawMeshTasksNV-imageView-06174
If the current render pass instance was begun with vkCmdBeginRendering, theimageView
member ofpDepthAttachment
is not VK_NULL_HANDLE, and thelayout
member ofpDepthAttachment
isVK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
, this command must not write any values to the depth attachment -
VUID-vkCmdDrawMeshTasksNV-imageView-06175
If the current render pass instance was begun with vkCmdBeginRendering, theimageView
member ofpStencilAttachment
is not VK_NULL_HANDLE, and thelayout
member ofpStencilAttachment
isVK_IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment -
VUID-vkCmdDrawMeshTasksNV-imageView-06176
If the current render pass instance was begun with vkCmdBeginRendering, theimageView
member ofpDepthAttachment
is not VK_NULL_HANDLE, and thelayout
member ofpDepthAttachment
isVK_IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment -
VUID-vkCmdDrawMeshTasksNV-imageView-06177
If the current render pass instance was begun with vkCmdBeginRendering, theimageView
member ofpStencilAttachment
is not VK_NULL_HANDLE, and thelayout
member ofpStencilAttachment
isVK_IMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment -
VUID-vkCmdDrawMeshTasksNV-viewMask-06178
If the current render pass instance was begun with vkCmdBeginRendering, the currently bound graphics pipeline must have been created with a VkPipelineRenderingCreateInfo::viewMask
equal to VkRenderingInfo::viewMask
-
VUID-vkCmdDrawMeshTasksNV-colorAttachmentCount-06179
If thedynamicRenderingUnusedAttachments
feature is not enabled and the current render pass instance was begun with vkCmdBeginRendering, the currently bound graphics pipeline must have been created with a VkPipelineRenderingCreateInfo::colorAttachmentCount
equal to VkRenderingInfo::colorAttachmentCount
-
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08910
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08912
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
equal to VK_NULL_HANDLE must have the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound pipeline equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08911
If thedynamicRenderingUnusedAttachments
feature is enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline, or the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
, if it exists, must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-colorAttachmentCount-09362
If the current render pass instance was begun with vkCmdBeginRendering, with a VkRenderingInfo::colorAttachmentCount
equal to1
, there is no shader object bound to any graphics stage, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aresolveImageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMeshTasksNV-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::colorAttachmentCount
equal to1
, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aimageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMeshTasksNV-None-09364
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled, then vkCmdSetColorBlendEnableEXT must have set the blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-09365
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-09366
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetColorBlendEnableEXT must have set blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-rasterizationSamples-09367
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-09368
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-09369
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-pFragmentSize-09370
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-pFragmentSize-09371
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07749
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT
dynamic state enabled then vkCmdSetColorWriteEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08646
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-attachmentCount-07750
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT
dynamic state enabled then theattachmentCount
parameter ofvkCmdSetColorWriteEnableEXT
must be greater than or equal to theVkPipelineColorBlendStateCreateInfo
::attachmentCount
of the currently bound graphics pipeline -
VUID-vkCmdDrawMeshTasksNV-None-08647
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then theattachmentCount
parameter of most recent call tovkCmdSetColorWriteEnableEXT
in the current command buffer must be greater than or equal to the number of color attachments in the current render pass instance -
VUID-vkCmdDrawMeshTasksNV-None-07751
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DISCARD_RECTANGLE_EXT
dynamic state enabled then vkCmdSetDiscardRectangleEXT must have been called in the current command buffer prior to this drawing command for each discard rectangle in VkPipelineDiscardRectangleStateCreateInfoEXT::discardRectangleCount
-
VUID-vkCmdDrawMeshTasksNV-None-07880
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DISCARD_RECTANGLE_ENABLE_EXT
dynamic state enabled then vkCmdSetDiscardRectangleEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-rasterizerDiscardEnable-09236
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08648
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDiscardRectangleEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07881
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DISCARD_RECTANGLE_MODE_EXT
dynamic state enabled then vkCmdSetDiscardRectangleModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08649
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08913
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08914
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
-
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08915
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
, the value of the format must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08916
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08917
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView
-
VUID-vkCmdDrawMeshTasksNV-dynamicRenderingUnusedAttachments-08918
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView
, the value of the format must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-imageView-06183
If the current render pass instance was begun with vkCmdBeginRendering and VkRenderingFragmentShadingRateAttachmentInfoKHR::imageView
was not VK_NULL_HANDLE, the currently bound graphics pipeline must have been created withVK_PIPELINE_CREATE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
-
VUID-vkCmdDrawMeshTasksNV-imageView-06184
If the current render pass instance was begun with vkCmdBeginRendering and VkRenderingFragmentDensityMapAttachmentInfoEXT::imageView
was not VK_NULL_HANDLE, the currently bound graphics pipeline must have been created withVK_PIPELINE_CREATE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-colorAttachmentCount-06185
If the currently bound pipeline was created with a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and the current render pass instance was begun with vkCmdBeginRendering with a VkRenderingInfo::colorAttachmentCount
parameter greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with aimageView
not equal to VK_NULL_HANDLE must have been created with a sample count equal to the corresponding element of thepColorAttachmentSamples
member of VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMeshTasksNV-pDepthAttachment-06186
If the current render pass instance was begun with vkCmdBeginRendering, the currently bound pipeline was created with a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, the value of thedepthStencilAttachmentSamples
member of VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV used to create the currently bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pDepthAttachment->imageView
-
VUID-vkCmdDrawMeshTasksNV-pStencilAttachment-06187
If the current render pass instance was begun with vkCmdBeginRendering, the currently bound pipeline was created with a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, the value of thedepthStencilAttachmentSamples
member of VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV used to create the currently bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pStencilAttachment->imageView
-
VUID-vkCmdDrawMeshTasksNV-multisampledRenderToSingleSampled-07285
If the currently bound pipeline was created without a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and themultisampledRenderToSingleSampled
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering with a VkRenderingInfo::colorAttachmentCount
parameter greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with aimageView
not equal to VK_NULL_HANDLE must have been created with a sample count equal to the value ofrasterizationSamples
for the currently bound graphics pipeline -
VUID-vkCmdDrawMeshTasksNV-multisampledRenderToSingleSampled-07286
If the currently bound pipeline was created without a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and themultisampledRenderToSingleSampled
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pDepthAttachment->imageView
-
VUID-vkCmdDrawMeshTasksNV-multisampledRenderToSingleSampled-07287
If the currently bound pipeline was created without a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and themultisampledRenderToSingleSampled
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pStencilAttachment->imageView
-
VUID-vkCmdDrawMeshTasksNV-pNext-07935
If this command has been called inside a render pass instance started with vkCmdBeginRendering, and thepNext
chain of VkRenderingInfo includes a VkMultisampledRenderToSingleSampledInfoEXT structure withmultisampledRenderToSingleSampledEnable
equal toVK_TRUE
, then the value ofrasterizationSamples
for the currently bound graphics pipeline must be equal to VkMultisampledRenderToSingleSampledInfoEXT::rasterizationSamples
-
VUID-vkCmdDrawMeshTasksNV-renderPass-06198
If the current render pass instance was begun with vkCmdBeginRendering, the currently bound pipeline must have been created with a VkGraphicsPipelineCreateInfo::renderPass
equal to VK_NULL_HANDLE -
VUID-vkCmdDrawMeshTasksNV-pColorAttachments-08963
If the current render pass instance was begun with vkCmdBeginRendering, 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->imageView
was not VK_NULL_HANDLE, then the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the pipeline must not beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-pDepthAttachment-08964
If the current render pass instance was begun with vkCmdBeginRendering, there is a graphics pipeline bound, depth test is enabled, depth write is enabled, and the VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, then the VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the pipeline must not beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-pStencilAttachment-08965
If the current render pass instance was begun with vkCmdBeginRendering, there is a graphics pipeline bound, stencil test is enabled and the VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, then the VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the pipeline must not beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMeshTasksNV-primitivesGeneratedQueryWithRasterizerDiscard-06708
If theprimitivesGeneratedQueryWithRasterizerDiscard
feature is not enabled and theVK_QUERY_TYPE_PRIMITIVES_GENERATED_EXT
query is active, rasterization discard must not be enabled -
VUID-vkCmdDrawMeshTasksNV-primitivesGeneratedQueryWithNonZeroStreams-06709
If theprimitivesGeneratedQueryWithNonZeroStreams
feature is not enabled and theVK_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-vkCmdDrawMeshTasksNV-None-07619
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT
dynamic state enabled then vkCmdSetTessellationDomainOriginEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07620
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_CLAMP_ENABLE_EXT
dynamic state enabled then vkCmdSetDepthClampEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-09237
If a shader object is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
stage, then vkCmdSetTessellationDomainOriginEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08650
If thedepthClamp
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDepthClampEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07621
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_POLYGON_MODE_EXT
dynamic state enabled then vkCmdSetPolygonModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08651
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetPolygonModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07622
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled then vkCmdSetRasterizationSamplesEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08652
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetRasterizationSamplesEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07623
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_MASK_EXT
dynamic state enabled then vkCmdSetSampleMaskEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08653
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetSampleMaskEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07624
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled then vkCmdSetAlphaToCoverageEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-alphaToCoverageEnable-08919
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled, andalphaToCoverageEnable
wasVK_TRUE
in the last call to vkCmdSetAlphaToCoverageEnableEXT, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 -
VUID-vkCmdDrawMeshTasksNV-None-08654
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetAlphaToCoverageEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-alphaToCoverageEnable-08920
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetAlphaToCoverageEnableEXT in the current command buffer setalphaToCoverageEnable
toVK_TRUE
, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 -
VUID-vkCmdDrawMeshTasksNV-None-07625
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_ALPHA_TO_ONE_ENABLE_EXT
dynamic state enabled then vkCmdSetAlphaToOneEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08655
If thealphaToOne
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetAlphaToOneEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07626
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LOGIC_OP_ENABLE_EXT
dynamic state enabled then vkCmdSetLogicOpEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08656
If thelogicOp
feature is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLogicOpEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07627
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled then vkCmdSetColorBlendEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08657
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorBlendEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07628
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT
dynamic state enabled then vkCmdSetColorBlendEquationEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08658
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT for any attachment set that attachment’s value inpColorBlendEnables
toVK_TRUE
, then vkCmdSetColorBlendEquationEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07629
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
dynamic state enabled then vkCmdSetColorWriteMaskEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08659
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorWriteMaskEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07630
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_STREAM_EXT
dynamic state enabled then vkCmdSetRasterizationStreamEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08660
If thegeometryStreams
feature is enabled, and a shader object is bound to theVK_SHADER_STAGE_GEOMETRY_BIT
stage, then vkCmdSetRasterizationStreamEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07631
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled then vkCmdSetConservativeRasterizationModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08661
If theVK_EXT_conservative_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetConservativeRasterizationModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07632
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_EXTRA_PRIMITIVE_OVERESTIMATION_SIZE_EXT
dynamic state enabled then vkCmdSetExtraPrimitiveOverestimationSizeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08662
If theVK_EXT_conservative_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetConservativeRasterizationModeEXT in the current command buffer setconservativeRasterizationMode
toVK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT
, then vkCmdSetExtraPrimitiveOverestimationSizeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07633
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT
dynamic state enabled then vkCmdSetDepthClipEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08663
If thedepthClipEnable
feature is enabled, and a shader object is bound to any graphics stage, then vkCmdSetDepthClipEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07634
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
dynamic state enabled then vkCmdSetSampleLocationsEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08664
If theVK_EXT_sample_locations
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetSampleLocationsEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07635
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
dynamic state enabled then vkCmdSetColorBlendAdvancedEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-rasterizerDiscardEnable-09416
If theVK_EXT_blend_operation_advanced
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then at least one of vkCmdSetColorBlendEquationEXT and vkCmdSetColorBlendAdvancedEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07636
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PROVOKING_VERTEX_MODE_EXT
dynamic state enabled then vkCmdSetProvokingVertexModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08665
If theVK_EXT_provoking_vertex
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetProvokingVertexModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07637
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic state enabled then vkCmdSetLineRasterizationModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08666
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, then vkCmdSetLineRasterizationModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08667
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, then vkCmdSetLineRasterizationModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08668
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLineRasterizationModeEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07638
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
dynamic state enabled then vkCmdSetLineStippleEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08669
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, then vkCmdSetLineStippleEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08670
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, then vkCmdSetLineStippleEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08671
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLineStippleEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_KHR
dynamic state enabled then vkCmdSetLineStippleKHR must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08672
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetLineStippleEnableEXT in the current command buffer setstippledLineEnable
toVK_TRUE
, then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07639
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT
dynamic state enabled then vkCmdSetDepthClipNegativeOneToOneEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08673
If thedepthClipControl
feature is enabled, and a shader object is bound to any graphics stage, then vkCmdSetDepthClipNegativeOneToOneEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07640
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_W_SCALING_ENABLE_NV
dynamic state enabled then vkCmdSetViewportWScalingEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08674
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, then vkCmdSetViewportWScalingEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07641
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled then vkCmdSetViewportSwizzleNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08675
If theVK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, then vkCmdSetViewportSwizzleNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07642
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
dynamic state enabled then vkCmdSetCoverageToColorEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08676
If theVK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCoverageToColorEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07643
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_LOCATION_NV
dynamic state enabled then vkCmdSetCoverageToColorLocationNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08677
If theVK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetCoverageToColorEnableNV in the current command buffer setcoverageToColorEnable
toVK_TRUE
, then vkCmdSetCoverageToColorLocationNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07644
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_MODE_NV
dynamic state enabled then vkCmdSetCoverageModulationModeNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08678
If theVK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCoverageModulationModeNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07645
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
dynamic state enabled then vkCmdSetCoverageModulationTableEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08679
If theVK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetCoverageModulationModeNV in the current command buffer set coverageModulationMode to any value other thanVK_COVERAGE_MODULATION_MODE_NONE_NV
, then vkCmdSetCoverageModulationTableEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07646
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_NV
dynamic state enabled then vkCmdSetCoverageModulationTableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08680
If theVK_NV_framebuffer_mixed_samples
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetCoverageModulationTableEnableNV in the current command buffer setcoverageModulationTableEnable
toVK_TRUE
, then vkCmdSetCoverageModulationTableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07647
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SHADING_RATE_IMAGE_ENABLE_NV
dynamic state enabled then vkCmdSetShadingRateImageEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-pipelineFragmentShadingRate-09238
If thepipelineFragmentShadingRate
feature is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer set rasterizerDiscardEnable toVK_FALSE
, then vkCmdSetFragmentShadingRateKHR must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08681
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetShadingRateImageEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07648
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_REPRESENTATIVE_FRAGMENT_TEST_ENABLE_NV
dynamic state enabled then vkCmdSetRepresentativeFragmentTestEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08682
If therepresentativeFragmentTest
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetRepresentativeFragmentTestEnableNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07649
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV
dynamic state enabled then vkCmdSetCoverageReductionModeNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08683
If thecoverageReductionMode
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCoverageReductionModeNV must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-pColorBlendEnables-07470
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
state enabled and the last call to vkCmdSetColorBlendEnableEXT setpColorBlendEnables
for any attachment toVK_TRUE
, then for those attachments in the subpass the corresponding image view’s format features must containVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
-
VUID-vkCmdDrawMeshTasksNV-rasterizationSamples-07471
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, and the current subpass does not use any color and/or depth/stencil attachments, then therasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT must follow the rules for a zero-attachment subpass -
VUID-vkCmdDrawMeshTasksNV-samples-07472
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_MASK_EXT
state enabled and theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state disabled, then thesamples
parameter in the last call to vkCmdSetSampleMaskEXT must be greater or equal to the VkPipelineMultisampleStateCreateInfo::rasterizationSamples
parameter used to create the bound graphics pipeline -
VUID-vkCmdDrawMeshTasksNV-samples-07473
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_MASK_EXT
state andVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
states enabled, then thesamples
parameter in the last call to vkCmdSetSampleMaskEXT must be greater or equal to therasterizationSamples
parameter in the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawMeshTasksNV-rasterizationSamples-07474
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, and neither theVK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, then therasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawMeshTasksNV-None-09211
If the bound graphics pipeline state was created with theVK_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 withmultisampledRenderToSingleSampledEnable
equal toVK_TRUE
, then therasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT must be the same as therasterizationSamples
member of that structure -
VUID-vkCmdDrawMeshTasksNV-firstAttachment-07476
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled then vkCmdSetColorBlendEnableEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass -
VUID-vkCmdDrawMeshTasksNV-rasterizerDiscardEnable-09417
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorBlendEnableEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass -
VUID-vkCmdDrawMeshTasksNV-firstAttachment-07477
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_BLEND_EQUATION_EXT
dynamic state enabled then vkCmdSetColorBlendEquationEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled -
VUID-vkCmdDrawMeshTasksNV-rasterizerDiscardEnable-09418
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorBlendEquationEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled -
VUID-vkCmdDrawMeshTasksNV-firstAttachment-07478
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
dynamic state enabled then vkCmdSetColorWriteMaskEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass -
VUID-vkCmdDrawMeshTasksNV-rasterizerDiscardEnable-09419
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteMaskEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass -
VUID-vkCmdDrawMeshTasksNV-firstAttachment-07479
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
dynamic state enabled then vkCmdSetColorBlendAdvancedEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendAdvancedEXT
calls must specify the advanced blend equations for all active color attachments in the current subpass where blending is enabled -
VUID-vkCmdDrawMeshTasksNV-advancedBlendMaxColorAttachments-07480
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COLOR_BLEND_ADVANCED_EXT
andVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic states enabled and the last calls to vkCmdSetColorBlendEnableEXT and vkCmdSetColorBlendAdvancedEXT have enabled advanced blending, then the number of active color attachments in the current subpass must not exceedadvancedBlendMaxColorAttachments
-
VUID-vkCmdDrawMeshTasksNV-primitivesGeneratedQueryWithNonZeroStreams-07481
If theprimitivesGeneratedQueryWithNonZeroStreams
feature is not enabled and theVK_QUERY_TYPE_PRIMITIVES_GENERATED_EXT
query is active, and the bound graphics pipeline was created withVK_DYNAMIC_STATE_RASTERIZATION_STREAM_EXT
state enabled, the last call to vkCmdSetRasterizationStreamEXT must have set therasterizationStream
to zero -
VUID-vkCmdDrawMeshTasksNV-sampleLocationsPerPixel-07482
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state disabled, then thesampleLocationsPerPixel
member ofpSampleLocationsInfo
in the last call to vkCmdSetSampleLocationsEXT must equal therasterizationSamples
member of the VkPipelineMultisampleStateCreateInfo structure the bound graphics pipeline has been created with -
VUID-vkCmdDrawMeshTasksNV-sampleLocationsPerPixel-07483
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, then thesampleLocationsPerPixel
member ofpSampleLocationsInfo
in the last call to vkCmdSetSampleLocationsEXT must equal therasterizationSamples
parameter of the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawMeshTasksNV-sampleLocationsEnable-07484
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, andsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, and the current subpass has a depth/stencil attachment, then that attachment must have been created with theVK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set -
VUID-vkCmdDrawMeshTasksNV-sampleLocationsEnable-07485
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.sampleLocationGridSize.width
in the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.width
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equalingrasterizationSamples
-
VUID-vkCmdDrawMeshTasksNV-sampleLocationsEnable-07486
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.sampleLocationGridSize.height
in the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.height
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equalingrasterizationSamples
-
VUID-vkCmdDrawMeshTasksNV-sampleLocationsEnable-07487
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, the fragment shader code must not statically use the extended instructionInterpolateAtSample
-
VUID-vkCmdDrawMeshTasksNV-sampleLocationsEnable-07936
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of a VkPipelineSampleLocationsStateCreateInfoEXT::sampleLocationsEnable
in the bound graphics pipeline isVK_TRUE
orVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationGridSize.width
must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.width
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equaling the value ofrasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawMeshTasksNV-sampleLocationsEnable-07937
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of a VkPipelineSampleLocationsStateCreateInfoEXT::sampleLocationsEnable
in the bound graphics pipeline isVK_TRUE
orVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationGridSize.height
must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.height
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equaling the value ofrasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawMeshTasksNV-sampleLocationsEnable-07938
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state disabled and theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, thesampleLocationsEnable
member of a VkPipelineSampleLocationsStateCreateInfoEXT::sampleLocationsEnable
in the bound graphics pipeline isVK_TRUE
orVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, then,sampleLocationsInfo.sampleLocationsPerPixel
must equalrasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT -
VUID-vkCmdDrawMeshTasksNV-coverageModulationTableEnable-07488
If a shader object is bound to any graphics stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
state enabled, and the last call to vkCmdSetCoverageModulationTableEnableNV setcoverageModulationTableEnable
toVK_TRUE
, then thecoverageModulationTableCount
parameter in the last call to vkCmdSetCoverageModulationTableNV must equal the currentrasterizationSamples
divided by the number of color samples in the current subpass -
VUID-vkCmdDrawMeshTasksNV-rasterizationSamples-07489
If theVK_NV_framebuffer_mixed_samples
extension is enabled, and if current subpass has a depth/stencil attachment and depth test, stencil test, or depth bounds test are enabled in the currently bound pipeline state, then the currentrasterizationSamples
must be the same as the sample count of the depth/stencil attachment -
VUID-vkCmdDrawMeshTasksNV-coverageToColorEnable-07490
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
state enabled and the last call to vkCmdSetCoverageToColorEnableNV set thecoverageToColorEnable
toVK_TRUE
, then the current subpass must have a color attachment at the location selected by the last call to vkCmdSetCoverageToColorLocationNVcoverageToColorLocation
, with a VkFormat ofVK_FORMAT_R8_UINT
,VK_FORMAT_R8_SINT
,VK_FORMAT_R16_UINT
,VK_FORMAT_R16_SINT
,VK_FORMAT_R32_UINT
, orVK_FORMAT_R32_SINT
-
VUID-vkCmdDrawMeshTasksNV-rasterizerDiscardEnable-09420
If theVK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the last call to vkCmdSetCoverageToColorEnableNV set thecoverageToColorEnable
toVK_TRUE
, then the current subpass must have a color attachment at the location selected by the last call to vkCmdSetCoverageToColorLocationNVcoverageToColorLocation
, with a VkFormat ofVK_FORMAT_R8_UINT
,VK_FORMAT_R8_SINT
,VK_FORMAT_R16_UINT
,VK_FORMAT_R16_SINT
,VK_FORMAT_R32_UINT
, orVK_FORMAT_R32_SINT
-
VUID-vkCmdDrawMeshTasksNV-coverageReductionMode-07491
If thisVK_NV_coverage_reduction_mode
extension is enabled, the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
andVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
states enabled, the current coverage reduction modecoverageReductionMode
, then the currentrasterizationSamples
, and the sample counts for the color and depth/stencil attachments (if the subpass has them) must be a valid combination returned by vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV -
VUID-vkCmdDrawMeshTasksNV-viewportCount-07492
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
dynamic state enabled, but not theVK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled, then the bound graphics pipeline must have been created with VkPipelineViewportSwizzleStateCreateInfoNV::viewportCount
greater or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-viewportCount-07493
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT
andVK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic states enabled then theviewportCount
parameter in the last call to vkCmdSetViewportSwizzleNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-viewportCount-09421
If theVK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, then theviewportCount
parameter in the last call to vkCmdSetViewportSwizzleNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-vkCmdDrawMeshTasksNV-rasterizationSamples-07494
If theVK_NV_framebuffer_mixed_samples
extension is enabled, and if the current subpass has any color attachments andrasterizationSamples
of the last call to vkCmdSetRasterizationSamplesEXT is greater than the number of color samples, then the pipelinesampleShadingEnable
must beVK_FALSE
-
VUID-vkCmdDrawMeshTasksNV-stippledLineEnable-07495
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orVK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isVK_TRUE
and the currentlineRasterizationMode
state isVK_LINE_RASTERIZATION_MODE_RECTANGULAR_KHR
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksNV-stippledLineEnable-07496
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orVK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isVK_TRUE
and the currentlineRasterizationMode
state isVK_LINE_RASTERIZATION_MODE_BRESENHAM_KHR
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksNV-stippledLineEnable-07497
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orVK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isVK_TRUE
and the currentlineRasterizationMode
state isVK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_KHR
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksNV-stippledLineEnable-07498
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_ENABLE_EXT
orVK_DYNAMIC_STATE_LINE_RASTERIZATION_MODE_EXT
dynamic states enabled, and if the currentstippledLineEnable
state isVK_TRUE
and the currentlineRasterizationMode
state isVK_LINE_RASTERIZATION_MODE_DEFAULT_KHR
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawMeshTasksNV-conservativePointAndLineRasterization-07499
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled,conservativePointAndLineRasterization
is not supported, and the effective primitive topology output by the last pre-rasterization shader stage is a line or point, then theconservativeRasterizationMode
set by the last call to vkCmdSetConservativeRasterizationModeEXT must beVK_CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXT
-
VUID-vkCmdDrawMeshTasksNV-stage-07073
If the currently bound pipeline was created with the VkPipelineShaderStageCreateInfo::stage
member of an element of VkGraphicsPipelineCreateInfo::pStages
set toVK_SHADER_STAGE_VERTEX_BIT
,VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT
,VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
, then Mesh Shader Queries must not be active -
VUID-vkCmdDrawMeshTasksNV-None-08877
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
dynamic state vkCmdSetAttachmentFeedbackLoopEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-None-08684
If there is no bound graphics pipeline,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_VERTEX_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-08685
If there is no bound graphics pipeline, and thetessellationShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TESSELLATION_CONTROL_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-08686
If there is no bound graphics pipeline, and thetessellationShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-08687
If there is no bound graphics pipeline, and thegeometryShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_GEOMETRY_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-08688
If there is no bound graphics pipeline,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_FRAGMENT_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-08689
If there is no bound graphics pipeline, and thetaskShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TASK_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-None-08690
If there is no bound graphics pipeline, and themeshShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-None-08693
If there is no bound graphics pipeline, and at least one of thetaskShader
andmeshShader
features is enabled, one of theVK_SHADER_STAGE_VERTEX_BIT
orVK_SHADER_STAGE_MESH_BIT_EXT
stages must have a validVkShaderEXT
bound, and the other must have noVkShaderEXT
bound -
VUID-vkCmdDrawMeshTasksNV-None-08694
If there is no bound graphics pipeline, and both thetaskShader
andmeshShader
features are enabled, and a validVkShaderEXT
is bound the to theVK_SHADER_STAGE_MESH_BIT_EXT
stage, and thatVkShaderEXT
was created without theVK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, a validVkShaderEXT
must be bound to theVK_SHADER_STAGE_TASK_BIT_EXT
stage -
VUID-vkCmdDrawMeshTasksNV-None-08695
If there is no bound graphics pipeline, and both thetaskShader
andmeshShader
features are enabled, and a validVkShaderEXT
is bound the to theVK_SHADER_STAGE_MESH_BIT_EXT
stage, and thatVkShaderEXT
was created with theVK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, there must be noVkShaderEXT
bound to theVK_SHADER_STAGE_TASK_BIT_EXT
stage -
VUID-vkCmdDrawMeshTasksNV-None-08696
If there is no bound graphics pipeline, and a validVkShaderEXT
is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, there must be noVkShaderEXT
bound to either theVK_SHADER_STAGE_TASK_BIT_EXT
stage or theVK_SHADER_STAGE_MESH_BIT_EXT
stage -
VUID-vkCmdDrawMeshTasksNV-None-08698
If any graphics shader is bound which was created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, then all shaders created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag in the same vkCreateShadersEXT call must also be bound -
VUID-vkCmdDrawMeshTasksNV-None-08699
If any graphics shader is bound which was created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, any stages in between stages whose shaders which did not create a shader with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag as part of the same vkCreateShadersEXT call must not have anyVkShaderEXT
bound -
VUID-vkCmdDrawMeshTasksNV-None-08878
All bound graphics shader objects must have been created with identical or identically defined push constant ranges -
VUID-vkCmdDrawMeshTasksNV-None-08879
All bound graphics shader objects must have been created with identical or identically defined arrays of descriptor set layouts -
VUID-vkCmdDrawMeshTasksNV-colorAttachmentCount-09372
If the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCount
equal to1
, a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, and a fragment shader is bound, it must not declare theDepthReplacing
orStencilRefReplacingEXT
execution modes -
VUID-vkCmdDrawMeshTasksNV-None-08880
If the attachmentFeedbackLoopDynamicState feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetAttachmentFeedbackLoopEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksNV-pDynamicStates-08715
If the bound graphics pipeline state includes a fragment shader stage, was created withVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
set in VkPipelineDynamicStateCreateInfo::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpDepthAttachmentReadEXT
, thedepthWriteEnable
parameter in the last call to vkCmdSetDepthWriteEnable must beVK_FALSE
-
VUID-vkCmdDrawMeshTasksNV-pDynamicStates-08716
If the bound graphics pipeline state includes a fragment shader stage, was created withVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
set in VkPipelineDynamicStateCreateInfo::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpStencilAttachmentReadEXT
, thewriteMask
parameter in the last call to vkCmdSetStencilWriteMask must be0
-
VUID-vkCmdDrawMeshTasksNV-None-09116
If a shader object is bound to any graphics stage or the currently bound graphics pipeline was created withVK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
, and the format of any color attachment isVK_FORMAT_E5B9G9R9_UFLOAT_PACK32
, the corresponding element of thepColorWriteMasks
parameter of vkCmdSetColorWriteMaskEXT must either include all ofVK_COLOR_COMPONENT_R_BIT
,VK_COLOR_COMPONENT_G_BIT
, andVK_COLOR_COMPONENT_B_BIT
, or none of them -
VUID-vkCmdDrawMeshTasksNV-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 ofLocation
for any output attachment statically used in theFragment
Execution
Model
executed by this command must be less thanmaxFragmentDualSrcAttachments
-
VUID-vkCmdDrawMeshTasksNV-None-09548
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 VkRenderingAttachmentLocationInfoKHR::pColorAttachmentLocations
set by vkCmdSetRenderingAttachmentLocationsKHR must match the value set for the corresponding element in the currently bound pipeline -
VUID-vkCmdDrawMeshTasksNV-None-09549
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, input attachment index mappings in the currently bound pipeline must match those set for the current render pass instance via VkRenderingInputAttachmentIndexInfoKHR -
VUID-vkCmdDrawMeshTasksNV-None-09642
If the current render pass was begun with vkCmdBeginRendering with theVK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT
flag, the bound graphics pipeline must have been created withVK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT
-
VUID-vkCmdDrawMeshTasksNV-None-09643
If the bound graphics pipeline was created withVK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT
, the current render pass must have begun with vkCmdBeginRendering with theVK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT
flag
-
VUID-vkCmdDrawMeshTasksNV-stage-06480
The bound graphics pipeline must not have been created with the VkPipelineShaderStageCreateInfo::stage
member of an element of VkGraphicsPipelineCreateInfo::pStages
set toVK_SHADER_STAGE_VERTEX_BIT
,VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT
,VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
-
VUID-vkCmdDrawMeshTasksNV-None-07074
Transform Feedback Queries must not be active -
VUID-vkCmdDrawMeshTasksNV-None-07075
Primitives Generated Queries must not be active -
VUID-vkCmdDrawMeshTasksNV-pipelineStatistics-07076
ThepipelineStatistics
member used to create any active Pipeline Statistics Query must not containVK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT
,VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT
,VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT
,VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT
,VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT
,VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT
,VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT
,VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT
, orVK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT
-
VUID-vkCmdDrawMeshTasksNV-taskCount-02119
taskCount
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesNV
::maxDrawMeshTasksCount
-
VUID-vkCmdDrawMeshTasksNV-MeshNV-07080
The current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theMeshNV
Execution
Model
-
VUID-vkCmdDrawMeshTasksNV-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawMeshTasksNV-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawMeshTasksNV-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawMeshTasksNV-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawMeshTasksNV-videocoding
This command must only be called outside of a video coding scope
-
Host access to
commandBuffer
must be externally synchronized -
Host access to the
VkCommandPool
thatcommandBuffer
was allocated from must be externally synchronized
Command Buffer Levels | Render Pass Scope | Video Coding Scope | Supported Queue Types | Command Type |
---|---|---|---|---|
Primary |
Inside |
Outside |
Graphics |
Action |
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.