C Specification
The actual generation of commands as well as their execution on the device is handled as single action with:
// Provided by VK_NV_device_generated_commands
void vkCmdExecuteGeneratedCommandsNV(
VkCommandBuffer commandBuffer,
VkBool32 isPreprocessed,
const VkGeneratedCommandsInfoNV* pGeneratedCommandsInfo);
Parameters
-
commandBuffer
is the command buffer into which the command is recorded. -
isPreprocessed
represents whether the input data has already been preprocessed on the device. If it isVK_FALSE
this command will implicitly trigger the preprocessing step, otherwise not. -
pGeneratedCommandsInfo
is a pointer to a VkGeneratedCommandsInfoNV structure containing parameters affecting the generation of commands.
Description
-
VUID-vkCmdExecuteGeneratedCommandsNV-magFilter-04553
If a VkSampler created withmagFilter
orminFilter
equal toVK_FILTER_LINEAR
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-vkCmdExecuteGeneratedCommandsNV-mipmapMode-04770
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-None-02691
If aVkImageView
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-vkCmdExecuteGeneratedCommandsNV-None-02692
If aVkImageView
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-vkCmdExecuteGeneratedCommandsNV-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 byVkFilterCubicImageViewImageFormatPropertiesEXT
::filterCubic
returned byvkGetPhysicalDeviceImageFormatProperties2
-
VUID-vkCmdExecuteGeneratedCommandsNV-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 byVkFilterCubicImageViewImageFormatPropertiesEXT
::filterCubicMinmax
returned byvkGetPhysicalDeviceImageFormatProperties2
-
VUID-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-OpTypeImage-06423
Any VkImageView or VkBufferView being written as a storage image or storage texel buffer where the image format field of theOpTypeImage
isUnknown
then the view’s format feature must containVK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT
-
VUID-vkCmdExecuteGeneratedCommandsNV-OpTypeImage-06424
Any VkImageView or VkBufferView being read as a storage image or storage texel buffer where the image format field of theOpTypeImage
isUnknown
then the view’s format feature must containVK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT
-
VUID-vkCmdExecuteGeneratedCommandsNV-None-02697
For each set n that is statically used by theVkPipeline
bound to the pipeline bind point used by this command, a descriptor set must have been bound to n at the same pipeline bind point, with aVkPipelineLayout
that is compatible for set n, with theVkPipelineLayout
used to create the currentVkPipeline
, as described in [descriptorsets-compatibility] -
VUID-vkCmdExecuteGeneratedCommandsNV-maintenance4-06425
If themaintenance4
feature is not enabled, then for each push constant that is statically used by theVkPipeline
bound to the pipeline bind point used by this command, a push constant value must have been set for the same pipeline bind point, with aVkPipelineLayout
that is compatible for push constants, with theVkPipelineLayout
used to create the currentVkPipeline
, as described in [descriptorsets-compatibility] -
VUID-vkCmdExecuteGeneratedCommandsNV-None-02699
Descriptors in each bound descriptor set, specified viavkCmdBindDescriptorSets
, must be valid if they are statically used by theVkPipeline
bound to the pipeline bind point used by this command -
VUID-vkCmdExecuteGeneratedCommandsNV-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdExecuteGeneratedCommandsNV-commandBuffer-02701
If theVkPipeline
object bound to the pipeline bind point used by this command requires any dynamic state, that state must have been set or inherited (if theVK_NV_inherited_viewport_scissor
extension is enabled) forcommandBuffer
, and done so after any previously bound pipeline with the corresponding state not specified as dynamic -
VUID-vkCmdExecuteGeneratedCommandsNV-None-02859
There must not have been any calls to dynamic state setting commands for any state not specified as dynamic in theVkPipeline
object bound to the pipeline bind point used by this command, since that pipeline was bound -
VUID-vkCmdExecuteGeneratedCommandsNV-None-02702
If theVkPipeline
object bound to the pipeline bind point used by this command accesses aVkSampler
object that uses unnormalized coordinates, that sampler must not be used to sample from anyVkImage
with aVkImageView
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-vkCmdExecuteGeneratedCommandsNV-None-02703
If theVkPipeline
object bound to the pipeline bind point used by this command accesses aVkSampler
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-vkCmdExecuteGeneratedCommandsNV-None-02704
If theVkPipeline
object bound to the pipeline bind point used by this command accesses aVkSampler
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-vkCmdExecuteGeneratedCommandsNV-None-02705
If the robust buffer access feature is not enabled, and if theVkPipeline
object bound 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-vkCmdExecuteGeneratedCommandsNV-None-02706
If the robust buffer access feature is not enabled, and if theVkPipeline
object bound 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-vkCmdExecuteGeneratedCommandsNV-commandBuffer-02707
IfcommandBuffer
is an unprotected command buffer andprotectedNoFault
is not supported, any resource accessed by the VkPipeline object bound to the pipeline bind point used by this command must not be a protected resource -
VUID-vkCmdExecuteGeneratedCommandsNV-None-06550
If theVkPipeline
object bound to the pipeline bind point used by this command accesses aVkSampler
orVkImageView
object that enables sampler Y′CBCR conversion, that object must only be used withOpImageSample*
orOpImageSparseSample*
instructions -
VUID-vkCmdExecuteGeneratedCommandsNV-ConstOffset-06551
If theVkPipeline
object bound to the pipeline bind point used by this command accesses aVkSampler
orVkImageView
object that enables sampler Y′CBCR conversion, that object must not use theConstOffset
andOffset
operands -
VUID-vkCmdExecuteGeneratedCommandsNV-None-04115
If a VkImageView 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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-None-02686
Every input attachment used by the current subpass must be bound to the pipeline via a descriptor set -
VUID-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-None-06538
If any recorded command in the current subpass will write to an image subresource as an attachment, this command must not read from the memory backing that image subresource in any other way than as an attachment -
VUID-vkCmdExecuteGeneratedCommandsNV-None-06539
If any recorded command in the current subpass will read from an image subresource used as an attachment in any way other than as an attachment, this command must not write to that image subresource as an attachment -
VUID-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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 fromVkPipelineVieportCreateInfo
, 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-vkCmdExecuteGeneratedCommandsNV-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 fromVkPipelineVieportCreateInfo
, 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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-rasterizationSamples-04740
If rasterization is not disabled in the bound graphics pipeline, and neither theVK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, then VkPipelineMultisampleStateCreateInfo::rasterizationSamples
must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-colorAttachmentCount-06179
If 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-vkCmdExecuteGeneratedCommandsNV-colorAttachmentCount-06180
If the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with aimageView
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-vkCmdExecuteGeneratedCommandsNV-attachmentCount-06667
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, and theattachmentCount
parameter ofvkCmdSetColorWriteEnableEXT
must be greater than or equal to theVkPipelineColorBlendStateCreateInfo
::attachmentCount
of the currently bound graphics pipeline -
VUID-vkCmdExecuteGeneratedCommandsNV-attachmentCount-06815
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, and theattachmentCount
parameter ofvkCmdSetColorWriteEnableEXT
must be less than or equal to themaxColorAttachments
member ofVkPhysicalDeviceLimits
-
VUID-vkCmdExecuteGeneratedCommandsNV-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::pDepthAttachment->pname
: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->pname
:imageView -
VUID-vkCmdExecuteGeneratedCommandsNV-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::pStencilAttachment->pname
: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->pname
:imageView -
VUID-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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->pname
: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->pname
:imageView -
VUID-vkCmdExecuteGeneratedCommandsNV-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->pname
: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->pname
:imageView -
VUID-vkCmdExecuteGeneratedCommandsNV-colorAttachmentCount-06188
If the currently bound pipeline was created without 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 value of VkPipelineMultisampleStateCreateInfo::rasterizationSamples
used to create the currently bound graphics pipeline -
VUID-vkCmdExecuteGeneratedCommandsNV-pDepthAttachment-06189
If the current render pass instance was begun with vkCmdBeginRendering, the currently bound pipeline was created without a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and VkRenderingInfo::pDepthAttachment->pname
:imageView was not VK_NULL_HANDLE, the value of VkPipelineMultisampleStateCreateInfo::rasterizationSamples
used to create the currently bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pDepthAttachment->pname
:imageView -
VUID-vkCmdExecuteGeneratedCommandsNV-pStencilAttachment-06190
If the current render pass instance was begun with vkCmdBeginRendering, the currently bound pipeline was created without a VkAttachmentSampleCountInfoAMD or VkAttachmentSampleCountInfoNV structure, and VkRenderingInfo::pStencilAttachment->pname
:imageView was not VK_NULL_HANDLE, the value of VkPipelineMultisampleStateCreateInfo::rasterizationSamples
used to create the currently bound graphics pipeline must be equal to the sample count used to create VkRenderingInfo::pStencilAttachment->pname
:imageView -
VUID-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-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-vkCmdExecuteGeneratedCommandsNV-None-04007
All vertex input bindings accessed via vertex input variables declared in the vertex shader entry point’s interface must have either valid or VK_NULL_HANDLE buffers bound -
VUID-vkCmdExecuteGeneratedCommandsNV-None-04008
If the nullDescriptor feature is not enabled, all vertex input bindings accessed via vertex input variables declared in the vertex shader entry point’s interface must not be VK_NULL_HANDLE -
VUID-vkCmdExecuteGeneratedCommandsNV-None-02721
For a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in [fxvertex-input] -
VUID-vkCmdExecuteGeneratedCommandsNV-primitiveTopology-03420
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY_EXT
dynamic state enabled then vkCmdSetPrimitiveTopologyEXT must have been called in the current command buffer prior to this drawing command, and theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopologyEXT
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdExecuteGeneratedCommandsNV-None-04912
If the bound graphics pipeline was created with both theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
andVK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic states enabled, then vkCmdSetVertexInputEXT must have been called in the current command buffer prior to this draw command -
VUID-vkCmdExecuteGeneratedCommandsNV-pStrides-04913
If the bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic state enabled, but not theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then vkCmdBindVertexBuffers2EXT must have been called in the current command buffer prior to this draw command, and thepStrides
parameter of vkCmdBindVertexBuffers2EXT must not beNULL
-
VUID-vkCmdExecuteGeneratedCommandsNV-None-04914
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then vkCmdSetVertexInputEXT must have been called in the current command buffer prior to this draw command -
VUID-vkCmdExecuteGeneratedCommandsNV-None-04875
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT
dynamic state enabled then vkCmdSetPatchControlPointsEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdExecuteGeneratedCommandsNV-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE_EXT
dynamic state enabled then vkCmdSetPrimitiveRestartEnableEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdExecuteGeneratedCommandsNV-stage-06481
The bound graphics pipeline must not have been created with the VkPipelineShaderStageCreateInfo::stage
member of an element of VkGraphicsPipelineCreateInfo::pStages
set toVK_SHADER_STAGE_TASK_BIT_NV
orVK_SHADER_STAGE_MESH_BIT_NV
-
VUID-vkCmdExecuteGeneratedCommandsNV-commandBuffer-02970
commandBuffer
must not be a protected command buffer -
VUID-vkCmdExecuteGeneratedCommandsNV-isPreprocessed-02908
IfisPreprocessed
isVK_TRUE
then vkCmdPreprocessGeneratedCommandsNV must have already been executed on the device, using the samepGeneratedCommandsInfo
content as well as the content of the input buffers it references (all except VkGeneratedCommandsInfoNV::preprocessBuffer
). FurthermorepGeneratedCommandsInfo
`sindirectCommandsLayout
must have been created with theVK_INDIRECT_COMMANDS_LAYOUT_USAGE_EXPLICIT_PREPROCESS_BIT_NV
bit set -
VUID-vkCmdExecuteGeneratedCommandsNV-pipeline-02909
VkGeneratedCommandsInfoNV
::pipeline
must match the current bound pipeline atVkGeneratedCommandsInfoNV
::pipelineBindPoint
-
VUID-vkCmdExecuteGeneratedCommandsNV-None-02910
Transform feedback must not be active -
VUID-vkCmdExecuteGeneratedCommandsNV-deviceGeneratedCommands-02911
TheVkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV
::deviceGeneratedCommands
feature must be enabled
-
VUID-vkCmdExecuteGeneratedCommandsNV-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdExecuteGeneratedCommandsNV-pGeneratedCommandsInfo-parameter
pGeneratedCommandsInfo
must be a valid pointer to a valid VkGeneratedCommandsInfoNV structure -
VUID-vkCmdExecuteGeneratedCommandsNV-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdExecuteGeneratedCommandsNV-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics, or compute operations -
VUID-vkCmdExecuteGeneratedCommandsNV-renderpass
This command must only be called inside of a render pass instance
-
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 | Supported Queue Types |
---|---|---|
Primary |
Inside |
Graphics |
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.