21. Drawing Commands
Drawing commands (commands with Draw
in the name) provoke work in a
graphics pipeline.
Drawing commands are recorded into a command buffer and when executed by a
queue, will produce work which executes according to the bound graphics
pipeline.
A graphics pipeline
must be bound to a command buffer before any drawing commands are recorded
in that command buffer.
Drawing can be achieved in two modes:
-
Programmable Mesh Shading, the mesh shader assembles primitives, or
-
Programmable Primitive Shading, the input primitives are assembled as follows.
Each draw is made up of zero or more vertices and zero or more instances,
which are processed by the device and result in the assembly of primitives.
Primitives are assembled according to the pInputAssemblyState
member
of the VkGraphicsPipelineCreateInfo structure, which is of type
VkPipelineInputAssemblyStateCreateInfo
:
// Provided by VK_VERSION_1_0
typedef struct VkPipelineInputAssemblyStateCreateInfo {
VkStructureType sType;
const void* pNext;
VkPipelineInputAssemblyStateCreateFlags flags;
VkPrimitiveTopology topology;
VkBool32 primitiveRestartEnable;
} VkPipelineInputAssemblyStateCreateInfo;
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
flags
is reserved for future use. -
topology
is a VkPrimitiveTopology defining the primitive topology, as described below. -
primitiveRestartEnable
controls whether a special vertex index value is treated as restarting the assembly of primitives. This enable only applies to indexed draws (vkCmdDrawIndexed, vkCmdDrawMultiIndexedEXT, and vkCmdDrawIndexedIndirect), and the special index value is either 0xFFFFFFFF when theindexType
parameter ofvkCmdBindIndexBuffer
is equal toVK_INDEX_TYPE_UINT32
, 0xFF whenindexType
is equal toVK_INDEX_TYPE_UINT8_EXT
, or 0xFFFF whenindexType
is equal toVK_INDEX_TYPE_UINT16
. Primitive restart is not allowed for “list” topologies, unless one of the featuresprimitiveTopologyPatchListRestart
(forVK_PRIMITIVE_TOPOLOGY_PATCH_LIST
) orprimitiveTopologyListRestart
(for all other list topologies) is enabled.
Restarting the assembly of primitives discards the most recent index values
if those elements formed an incomplete primitive, and restarts the primitive
assembly using the subsequent indices, but only assembling the immediately
following element through the end of the originally specified elements.
The primitive restart index value comparison is performed before adding the
vertexOffset
value to the index value.
-
VUID-VkPipelineInputAssemblyStateCreateInfo-topology-06252
If theprimitiveTopologyListRestart
feature is not enabled, andtopology
isVK_PRIMITIVE_TOPOLOGY_POINT_LIST
,VK_PRIMITIVE_TOPOLOGY_LINE_LIST
,VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST
,VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
, orVK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
,primitiveRestartEnable
must beVK_FALSE
-
VUID-VkPipelineInputAssemblyStateCreateInfo-topology-06253
If theprimitiveTopologyPatchListRestart
feature is not enabled, andtopology
isVK_PRIMITIVE_TOPOLOGY_PATCH_LIST
,primitiveRestartEnable
must beVK_FALSE
-
VUID-VkPipelineInputAssemblyStateCreateInfo-topology-00429
If thegeometryShader
feature is not enabled,topology
must not be any ofVK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
,VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY
,VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
orVK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY
-
VUID-VkPipelineInputAssemblyStateCreateInfo-topology-00430
If thetessellationShader
feature is not enabled,topology
must not beVK_PRIMITIVE_TOPOLOGY_PATCH_LIST
-
VUID-VkPipelineInputAssemblyStateCreateInfo-triangleFans-04452
If theVK_KHR_portability_subset
extension is enabled, and VkPhysicalDevicePortabilitySubsetFeaturesKHR::triangleFans
isVK_FALSE
,topology
must not beVK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN
-
VUID-VkPipelineInputAssemblyStateCreateInfo-sType-sType
sType
must beVK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO
-
VUID-VkPipelineInputAssemblyStateCreateInfo-pNext-pNext
pNext
must beNULL
-
VUID-VkPipelineInputAssemblyStateCreateInfo-flags-zerobitmask
flags
must be0
-
VUID-VkPipelineInputAssemblyStateCreateInfo-topology-parameter
topology
must be a valid VkPrimitiveTopology value
// Provided by VK_VERSION_1_0
typedef VkFlags VkPipelineInputAssemblyStateCreateFlags;
VkPipelineInputAssemblyStateCreateFlags
is a bitmask type for setting
a mask, but is currently reserved for future use.
To dynamically control whether a special vertex index value is treated as restarting the assembly of primitives, call:
// Provided by VK_VERSION_1_3
void vkCmdSetPrimitiveRestartEnable(
VkCommandBuffer commandBuffer,
VkBool32 primitiveRestartEnable);
or the equivalent command
// Provided by VK_EXT_extended_dynamic_state2, VK_EXT_shader_object
void vkCmdSetPrimitiveRestartEnableEXT(
VkCommandBuffer commandBuffer,
VkBool32 primitiveRestartEnable);
-
commandBuffer
is the command buffer into which the command will be recorded. -
primitiveRestartEnable
controls whether a special vertex index value is treated as restarting the assembly of primitives. It behaves in the same way asVkPipelineInputAssemblyStateCreateInfo
::primitiveRestartEnable
This command sets the primitive restart enable for subsequent drawing
commands
when the graphics pipeline is created with
VK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
set in
VkPipelineDynamicStateCreateInfo::pDynamicStates
.
Otherwise, this state is specified by the
VkPipelineInputAssemblyStateCreateInfo::primitiveRestartEnable
value used to create the currently active pipeline.
-
VUID-vkCmdSetPrimitiveRestartEnable-None-08970
At least one of the following must be true:-
the
extendedDynamicState2
feature is enabled -
the value of VkApplicationInfo::
apiVersion
used to create the VkInstance parent ofcommandBuffer
is greater than or equal to Version 1.3
-
-
VUID-vkCmdSetPrimitiveRestartEnable-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdSetPrimitiveRestartEnable-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdSetPrimitiveRestartEnable-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdSetPrimitiveRestartEnable-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 |
Both |
Outside |
Graphics |
State |
21.1. Primitive Topologies
Primitive topology determines how consecutive vertices are organized into primitives, and determines the type of primitive that is used at the beginning of the graphics pipeline. The effective topology for later stages of the pipeline is altered by tessellation or geometry shading (if either is in use) and depends on the execution modes of those shaders. In the case of mesh shading the only effective topology is defined by the execution mode of the mesh shader.
The primitive topologies defined by VkPrimitiveTopology are:
// Provided by VK_VERSION_1_0
typedef enum VkPrimitiveTopology {
VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0,
VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1,
VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5,
VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6,
VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9,
VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10,
} VkPrimitiveTopology;
-
VK_PRIMITIVE_TOPOLOGY_POINT_LIST
specifies a series of separate point primitives. -
VK_PRIMITIVE_TOPOLOGY_LINE_LIST
specifies a series of separate line primitives. -
VK_PRIMITIVE_TOPOLOGY_LINE_STRIP
specifies a series of connected line primitives with consecutive lines sharing a vertex. -
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST
specifies a series of separate triangle primitives. -
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP
specifies a series of connected triangle primitives with consecutive triangles sharing an edge. -
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN
specifies a series of connected triangle primitives with all triangles sharing a common vertex. If theVK_KHR_portability_subset
extension is enabled, and VkPhysicalDevicePortabilitySubsetFeaturesKHR::triangleFans
isVK_FALSE
, then triangle fans are not supported by the implementation, andVK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN
must not be used. -
VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
specifies a series of separate line primitives with adjacency. -
VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY
specifies a series of connected line primitives with adjacency, with consecutive primitives sharing three vertices. -
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
specifies a series of separate triangle primitives with adjacency. -
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY
specifies connected triangle primitives with adjacency, with consecutive triangles sharing an edge. -
VK_PRIMITIVE_TOPOLOGY_PATCH_LIST
specifies separate patch primitives.
Each primitive topology, and its construction from a list of vertices, is described in detail below with a supporting diagram, according to the following key:
Vertex |
A point in 3-dimensional space. Positions chosen within the diagrams are arbitrary and for illustration only. |
|
Vertex Number |
Sequence position of a vertex within the provided vertex data. |
|
Provoking Vertex |
Provoking vertex within the main primitive. The tail is angled towards the relevant primitive. Used in flat shading. |
|
Primitive Edge |
An edge connecting the points of a main primitive. |
|
Adjacency Edge |
Points connected by these lines do not contribute to a main primitive, and are only accessible in a geometry shader. |
|
Winding Order |
The relative order in which vertices are defined within a primitive, used in the facing determination. This ordering has no specific start or end point. |
The diagrams are supported with mathematical definitions where the vertices (v) and primitives (p) are numbered starting from 0; v0 is the first vertex in the provided data and p0 is the first primitive in the set of primitives defined by the vertices and topology.
To dynamically set primitive topology, call:
// Provided by VK_VERSION_1_3
void vkCmdSetPrimitiveTopology(
VkCommandBuffer commandBuffer,
VkPrimitiveTopology primitiveTopology);
or the equivalent command
// Provided by VK_EXT_extended_dynamic_state, VK_EXT_shader_object
void vkCmdSetPrimitiveTopologyEXT(
VkCommandBuffer commandBuffer,
VkPrimitiveTopology primitiveTopology);
-
commandBuffer
is the command buffer into which the command will be recorded. -
primitiveTopology
specifies the primitive topology to use for drawing.
This command sets the primitive topology for subsequent drawing commands
when the graphics pipeline is created with
VK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
set in
VkPipelineDynamicStateCreateInfo::pDynamicStates
.
Otherwise, this state is specified by the
VkPipelineInputAssemblyStateCreateInfo::topology
value used to
create the currently active pipeline.
-
VUID-vkCmdSetPrimitiveTopology-None-08971
At least one of the following must be true:-
the
extendedDynamicState
feature is enabled -
the value of VkApplicationInfo::
apiVersion
used to create the VkInstance parent ofcommandBuffer
is greater than or equal to Version 1.3
-
-
VUID-vkCmdSetPrimitiveTopology-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdSetPrimitiveTopology-primitiveTopology-parameter
primitiveTopology
must be a valid VkPrimitiveTopology value -
VUID-vkCmdSetPrimitiveTopology-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdSetPrimitiveTopology-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdSetPrimitiveTopology-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 |
Both |
Outside |
Graphics |
State |
21.1.1. Topology Class
The primitive topologies are grouped into the following topology classes:
Topology Class | Primitive Topology |
---|---|
Point |
|
Line |
|
Triangle |
|
Patch |
|
21.1.2. Point Lists
When the topology is VK_PRIMITIVE_TOPOLOGY_POINT_LIST
, each
consecutive vertex defines a single point primitive, according to the
equation:
-
pi = {vi}
As there is only one vertex, that vertex is the provoking vertex.
The number of primitives generated is equal to vertexCount
.
21.1.3. Line Lists
When the primitive topology is VK_PRIMITIVE_TOPOLOGY_LINE_LIST
, each
consecutive pair of vertices defines a single line primitive, according to
the equation:
-
pi = {v2i, v2i+1}
The number of primitives generated is equal to
⌊vertexCount
/2⌋.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is v2i.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is v2i+1.
21.1.4. Line Strips
When the primitive topology is VK_PRIMITIVE_TOPOLOGY_LINE_STRIP
, one
line primitive is defined by each vertex and the following vertex, according
to the equation:
-
pi = {vi, vi+1}
The number of primitives generated is equal to
max(0,vertexCount
-1).
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is vi.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is vi+1.
21.1.5. Triangle Lists
When the primitive topology is VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST
,
each consecutive set of three vertices defines a single triangle primitive,
according to the equation:
-
pi = {v3i, v3i+1, v3i+2}
The number of primitives generated is equal to
⌊vertexCount
/3⌋.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is v3i.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is v3i+2.
21.1.6. Triangle Strips
When the primitive topology is VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP
,
one triangle primitive is defined by each vertex and the two vertices that
follow it, according to the equation:
-
pi = {vi, vi+(1+i%2), vi+(2-i%2)}
The number of primitives generated is equal to
max(0,vertexCount
-2).
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is vi.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is vi+2.
Note
The ordering of the vertices in each successive triangle is reversed, so that the winding order is consistent throughout the strip. |
21.1.7. Triangle Fans
When the primitive topology is VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN
,
triangle primitives are defined around a shared common vertex, according to
the equation:
-
pi = {vi+1, vi+2, v0}
The number of primitives generated is equal to
max(0,vertexCount
-2).
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is vi+1.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is vi+2.
Note
If the |
21.1.8. Line Lists With Adjacency
When the primitive topology is
VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY
, each consecutive set
of four vertices defines a single line primitive with adjacency, according
to the equation:
-
pi = {v4i, v4i+1, v4i+2,v4i+3}
A line primitive is described by the second and third vertices of the total primitive, with the remaining two vertices only accessible in a geometry shader.
The number of primitives generated is equal to
⌊vertexCount
/4⌋.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is v4i+1.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is v4i+2.
21.1.9. Line Strips With Adjacency
When the primitive topology is
VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY
, one line primitive
with adjacency is defined by each vertex and the following vertex, according
to the equation:
-
pi = {vi, vi+1, vi+2, vi+3}
A line primitive is described by the second and third vertices of the total primitive, with the remaining two vertices only accessible in a geometry shader.
The number of primitives generated is equal to
max(0,vertexCount
-3).
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is vi+1.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is vi+2.
21.1.10. Triangle Lists With Adjacency
When the primitive topology is
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY
, each consecutive
set of six vertices defines a single triangle primitive with adjacency,
according to the equations:
-
pi = {v6i, v6i+1, v6i+2, v6i+3, v6i+4, v6i+5}
A triangle primitive is described by the first, third, and fifth vertices of the total primitive, with the remaining three vertices only accessible in a geometry shader.
The number of primitives generated is equal to
⌊vertexCount
/6⌋.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is v6i.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is v6i+4.
21.1.11. Triangle Strips With Adjacency
When the primitive topology is
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY
, one triangle
primitive with adjacency is defined by each vertex and the following 5
vertices.
The number of primitives generated, n, is equal to ⌊max(0,
vertexCount
- 4)/2⌋.
If n=1, the primitive is defined as:
-
p = {v0, v1, v2, v5, v4, v3}
If n>1, the total primitive consists of different vertices according to where it is in the strip:
-
pi = {v2i, v2i+1, v2i+2, v2i+6, v2i+4, v2i+3} when i=0
-
pi = {v2i, v2i+3, v2i+4, v2i+6, v2i+2, v2i-2} when i>0, i<n-1, and i%2=1
-
pi = {v2i, v2i-2, v2i+2, v2i+6, v2i+4, v2i+3} when i>0, i<n-1, and i%2=0
-
pi = {v2i, v2i+3, v2i+4, v2i+5, v2i+2, v2i-2} when i=n-1 and i%2=1
-
pi = {v2i, v2i-2, v2i+2, v2i+5, v2i+4, v2i+3} when i=n-1 and i%2=0
A triangle primitive is described by the first, third, and fifth vertices of the total primitive in all cases, with the remaining three vertices only accessible in a geometry shader.
Note
The ordering of the vertices in each successive triangle is altered so that the winding order is consistent throughout the strip. |
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_FIRST_VERTEX_EXT
, the
provoking vertex for pi is always v2i.
When the provokingVertexMode
is
VK_PROVOKING_VERTEX_MODE_LAST_VERTEX_EXT
, the provoking vertex for
pi is always v2i+4.
21.1.12. Patch Lists
When the primitive topology is VK_PRIMITIVE_TOPOLOGY_PATCH_LIST
, each
consecutive set of m vertices defines a single patch primitive,
according to the equation:
-
pi = {vmi, vmi+1, …, vmi+(m-2), vmi+(m-1)}
where m is equal to
VkPipelineTessellationStateCreateInfo::patchControlPoints
.
Patch lists are never passed to vertex post-processing,
and as such no provoking vertex is defined for patch primitives.
The number of primitives generated is equal to
⌊vertexCount
/m⌋.
The vertices comprising a patch have no implied geometry, and are used as inputs to tessellation shaders and the fixed-function tessellator to generate new point, line, or triangle primitives.
21.2. Primitive Order
Primitives generated by drawing commands progress through the stages of the graphics pipeline in primitive order. Primitive order is initially determined in the following way:
-
Submission order determines the initial ordering
-
For indirect drawing commands, the order in which accessed instances of the VkDrawIndirectCommand are stored in
buffer
, from lower indirect buffer addresses to higher addresses. -
If a drawing command includes multiple instances, the order in which instances are executed, from lower numbered instances to higher.
-
The order in which primitives are specified by a drawing command:
-
For non-indexed draws, from vertices with a lower numbered
vertexIndex
to a higher numberedvertexIndex
. -
For indexed draws, vertices sourced from a lower index buffer addresses to higher addresses.
-
For draws using mesh shaders, the order is provided by mesh shading.
-
For draws using cluster culling shaders, the order is provided by cluster culling shading.
-
Within this order implementations further sort primitives:
-
If tessellation shading is active, by an implementation-dependent order of new primitives generated by tessellation.
-
If geometry shading is active, by the order new primitives are generated by geometry shading.
-
If the polygon mode is not
VK_POLYGON_MODE_FILL
, orVK_POLYGON_MODE_FILL_RECTANGLE_NV
, by an implementation-dependent ordering of the new primitives generated within the original primitive.
Primitive order is later used to define rasterization order, which determines the order in which fragments output results to a framebuffer.
21.3. Programmable Primitive Shading
Once primitives are assembled, they proceed to the vertex shading stage of the pipeline. If the draw includes multiple instances, then the set of primitives is sent to the vertex shading stage multiple times, once for each instance.
It is implementation-dependent whether vertex shading occurs on vertices that are discarded as part of incomplete primitives, but if it does occur then it operates as if they were vertices in complete primitives and such invocations can have side effects.
Vertex shading receives two per-vertex inputs from the primitive assembly
stage - the vertexIndex
and the instanceIndex
.
How these values are generated is defined below, with each command.
Drawing commands fall roughly into two categories:
-
Non-indexed drawing commands present a sequential
vertexIndex
to the vertex shader. The sequential index is generated automatically by the device (see Fixed-Function Vertex Processing for details on both specifying the vertex attributes indexed byvertexIndex
, as well as binding vertex buffers containing those attributes to a command buffer). These commands are: -
Indexed drawing commands read index values from an index buffer and use this to compute the
vertexIndex
value for the vertex shader. These commands are:
To bind an index buffer to a command buffer, call:
// Provided by VK_VERSION_1_0
void vkCmdBindIndexBuffer(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkIndexType indexType);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer being bound. -
offset
is the starting offset in bytes withinbuffer
used in index buffer address calculations. -
indexType
is a VkIndexType value specifying the size of the indices.
-
VUID-vkCmdBindIndexBuffer-offset-08782
offset
must be less than the size ofbuffer
-
VUID-vkCmdBindIndexBuffer-offset-08783
The sum ofoffset
and the base address of the range ofVkDeviceMemory
object that is backingbuffer
, must be a multiple of the size of the type indicated byindexType
-
VUID-vkCmdBindIndexBuffer-buffer-08784
buffer
must have been created with theVK_BUFFER_USAGE_INDEX_BUFFER_BIT
flag -
VUID-vkCmdBindIndexBuffer-buffer-08785
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdBindIndexBuffer-indexType-08786
indexType
must not beVK_INDEX_TYPE_NONE_KHR
-
VUID-vkCmdBindIndexBuffer-indexType-08787
IfindexType
isVK_INDEX_TYPE_UINT8_EXT
, theindexTypeUint8
feature must be enabled
-
VUID-vkCmdBindIndexBuffer-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdBindIndexBuffer-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdBindIndexBuffer-indexType-parameter
indexType
must be a valid VkIndexType value -
VUID-vkCmdBindIndexBuffer-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdBindIndexBuffer-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdBindIndexBuffer-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdBindIndexBuffer-commonparent
Both ofbuffer
, andcommandBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
Both |
Outside |
Graphics |
State |
Possible values of
vkCmdBindIndexBuffer::indexType
, specifying the size of indices,
are:
// Provided by VK_VERSION_1_0
typedef enum VkIndexType {
VK_INDEX_TYPE_UINT16 = 0,
VK_INDEX_TYPE_UINT32 = 1,
// Provided by VK_KHR_acceleration_structure
VK_INDEX_TYPE_NONE_KHR = 1000165000,
// Provided by VK_EXT_index_type_uint8
VK_INDEX_TYPE_UINT8_EXT = 1000265000,
// Provided by VK_NV_ray_tracing
VK_INDEX_TYPE_NONE_NV = VK_INDEX_TYPE_NONE_KHR,
} VkIndexType;
-
VK_INDEX_TYPE_UINT16
specifies that indices are 16-bit unsigned integer values. -
VK_INDEX_TYPE_UINT32
specifies that indices are 32-bit unsigned integer values. -
VK_INDEX_TYPE_NONE_KHR
specifies that no indices are provided. -
VK_INDEX_TYPE_UINT8_EXT
specifies that indices are 8-bit unsigned integer values.
The parameters for each drawing command are specified directly in the command or read from buffer memory, depending on the command. Drawing commands that source their parameters from buffer memory are known as indirect drawing commands.
All drawing commands interact with the robustBufferAccess
feature.
To record a non-indexed draw, call:
// Provided by VK_VERSION_1_0
void vkCmdDraw(
VkCommandBuffer commandBuffer,
uint32_t vertexCount,
uint32_t instanceCount,
uint32_t firstVertex,
uint32_t firstInstance);
-
commandBuffer
is the command buffer into which the command is recorded. -
vertexCount
is the number of vertices to draw. -
instanceCount
is the number of instances to draw. -
firstVertex
is the index of the first vertex to draw. -
firstInstance
is the instance ID of the first instance to draw.
When the command is executed, primitives are assembled using the current
primitive topology and vertexCount
consecutive vertex indices with the
first vertexIndex
value equal to firstVertex
.
The primitives are drawn instanceCount
times with instanceIndex
starting with firstInstance
and increasing sequentially for each
instance.
The assembled primitives execute the bound graphics pipeline.
-
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDraw-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDraw-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDraw-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDraw-None-02859
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-vkCmdDraw-None-02702
If the VkPipeline object bound 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-vkCmdDraw-None-02703
If the VkPipeline object bound 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-vkCmdDraw-None-02704
If the VkPipeline object bound 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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDraw-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-vkCmdDraw-OpImageWrite-08795
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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDraw-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDraw-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDraw-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDraw-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-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-vkCmdDraw-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-colorAttachmentCount-07616
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
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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDraw-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDraw-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDraw-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDraw-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-sampleLocationsEnable-07484
If 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-vkCmdDraw-sampleLocationsEnable-07485
If 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-vkCmdDraw-sampleLocationsEnable-07486
If 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-vkCmdDraw-sampleLocationsEnable-07487
If 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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-coverageModulationTableEnable-07488
If 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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDraw-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDraw-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDraw-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-09116
If 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-vkCmdDraw-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-vkCmdDraw-commandBuffer-02712
IfcommandBuffer
is a protected command buffer andprotectedNoFault
is not supported, any resource written to by theVkPipeline
object bound to the pipeline bind point used by this command must not be an unprotected resource -
VUID-vkCmdDraw-commandBuffer-02713
IfcommandBuffer
is a protected command buffer andprotectedNoFault
is not supported, pipeline stages other than the framebuffer-space and compute stages in theVkPipeline
object bound to the pipeline bind point used by this command must not write to any resource -
VUID-vkCmdDraw-commandBuffer-04617
If any of the shader stages of theVkPipeline
bound to the pipeline bind point used by this command uses theRayQueryKHR
capability, thencommandBuffer
must not be a protected command buffer
-
VUID-vkCmdDraw-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-vkCmdDraw-None-04008
If thenullDescriptor
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-vkCmdDraw-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 Vertex Input Description -
VUID-vkCmdDraw-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-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-vkCmdDraw-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDraw-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDraw-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDraw-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDraw-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDraw-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-vkCmdDraw-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDraw-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDraw-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDraw-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDraw-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDraw-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 |
To record an indexed draw, call:
// Provided by VK_VERSION_1_0
void vkCmdDrawIndexed(
VkCommandBuffer commandBuffer,
uint32_t indexCount,
uint32_t instanceCount,
uint32_t firstIndex,
int32_t vertexOffset,
uint32_t firstInstance);
-
commandBuffer
is the command buffer into which the command is recorded. -
indexCount
is the number of vertices to draw. -
instanceCount
is the number of instances to draw. -
firstIndex
is the base index within the index buffer. -
vertexOffset
is the value added to the vertex index before indexing into the vertex buffer. -
firstInstance
is the instance ID of the first instance to draw.
When the command is executed, primitives are assembled using the current
primitive topology and indexCount
vertices whose indices are retrieved
from the index buffer.
The index buffer is treated as an array of tightly packed unsigned integers
of size defined by the
vkCmdBindIndexBuffer::indexType
parameter with which the buffer
was bound.
The first vertex index is at an offset of firstIndex
×
indexSize
+ offset
within the bound index buffer, where
offset
is the offset specified by vkCmdBindIndexBuffer
and indexSize
is the byte size of the type specified by
indexType
.
Subsequent index values are retrieved from consecutive locations in the
index buffer.
Indices are first compared to the primitive restart value, then zero
extended to 32 bits (if the indexType
is
VK_INDEX_TYPE_UINT8_EXT
or
VK_INDEX_TYPE_UINT16
) and have vertexOffset
added to them,
before being supplied as the vertexIndex
value.
The primitives are drawn instanceCount
times with instanceIndex
starting with firstInstance
and increasing sequentially for each
instance.
The assembled primitives execute the bound graphics pipeline.
-
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexed-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexed-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexed-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawIndexed-None-02859
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-vkCmdDrawIndexed-None-02702
If the VkPipeline object bound 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-vkCmdDrawIndexed-None-02703
If the VkPipeline object bound 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-vkCmdDrawIndexed-None-02704
If the VkPipeline object bound 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-OpImageWrite-08795
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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndexed-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndexed-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexed-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexed-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-colorAttachmentCount-07616
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
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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexed-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexed-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexed-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndexed-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-sampleLocationsEnable-07484
If 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-vkCmdDrawIndexed-sampleLocationsEnable-07485
If 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-vkCmdDrawIndexed-sampleLocationsEnable-07486
If 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-vkCmdDrawIndexed-sampleLocationsEnable-07487
If 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-coverageModulationTableEnable-07488
If 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawIndexed-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawIndexed-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawIndexed-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-09116
If 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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-commandBuffer-02712
IfcommandBuffer
is a protected command buffer andprotectedNoFault
is not supported, any resource written to by theVkPipeline
object bound to the pipeline bind point used by this command must not be an unprotected resource -
VUID-vkCmdDrawIndexed-commandBuffer-02713
IfcommandBuffer
is a protected command buffer andprotectedNoFault
is not supported, pipeline stages other than the framebuffer-space and compute stages in theVkPipeline
object bound to the pipeline bind point used by this command must not write to any resource -
VUID-vkCmdDrawIndexed-commandBuffer-04617
If any of the shader stages of theVkPipeline
bound to the pipeline bind point used by this command uses theRayQueryKHR
capability, thencommandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-04008
If thenullDescriptor
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-vkCmdDrawIndexed-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 Vertex Input Description -
VUID-vkCmdDrawIndexed-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-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-vkCmdDrawIndexed-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDrawIndexed-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDrawIndexed-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDrawIndexed-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDrawIndexed-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDrawIndexed-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-vkCmdDrawIndexed-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawIndexed-None-07312
An index buffer must be bound -
VUID-vkCmdDrawIndexed-robustBufferAccess2-07825
IfrobustBufferAccess2
is not enabled, (indexSize
× (firstIndex
+indexCount
) +offset
) must be less than or equal to the size of the bound index buffer, withindexSize
being based on the type specified byindexType
, where the index buffer,indexType
, andoffset
are specified viavkCmdBindIndexBuffer
-
VUID-vkCmdDrawIndexed-robustBufferAccess2-08797
IfrobustBufferAccess2
is not enabled, (indexSize
× (firstIndex
+indexCount
) +offset
) must be less than or equal to the size of the bound index buffer, withindexSize
being based on the type specified byindexType
, where the index buffer,indexType
, andoffset
are specified viavkCmdBindIndexBuffer
-
VUID-vkCmdDrawIndexed-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawIndexed-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawIndexed-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawIndexed-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawIndexed-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 |
To record an ordered sequence of drawing operations which have no state changes between them, call:
// Provided by VK_EXT_multi_draw
void vkCmdDrawMultiEXT(
VkCommandBuffer commandBuffer,
uint32_t drawCount,
const VkMultiDrawInfoEXT* pVertexInfo,
uint32_t instanceCount,
uint32_t firstInstance,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
drawCount
is the number of draws to execute, and can be zero. -
pVertexInfo
is a pointer to an array of VkMultiDrawInfoEXT with vertex information to be drawn. -
instanceCount
is the number of instances to draw. -
firstInstance
is the instance ID of the first instance to draw. -
stride
is the byte stride between consecutive elements ofpVertexInfo
.
drawCount
draws are executed with parameters taken from
pVertexInfo
.
The number of draw commands recorded is drawCount
, with each command
reading, sequentially, a firstVertex
and a vertexCount
from
pVertexInfo
.
-
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiEXT-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiEXT-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMultiEXT-None-02859
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-vkCmdDrawMultiEXT-None-02702
If the VkPipeline object bound 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-vkCmdDrawMultiEXT-None-02703
If the VkPipeline object bound 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-vkCmdDrawMultiEXT-None-02704
If the VkPipeline object bound 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-OpImageWrite-08795
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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMultiEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMultiEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMultiEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMultiEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-colorAttachmentCount-07616
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
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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMultiEXT-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMultiEXT-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMultiEXT-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMultiEXT-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-sampleLocationsEnable-07484
If 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-vkCmdDrawMultiEXT-sampleLocationsEnable-07485
If 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-vkCmdDrawMultiEXT-sampleLocationsEnable-07486
If 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-vkCmdDrawMultiEXT-sampleLocationsEnable-07487
If 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-coverageModulationTableEnable-07488
If 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawMultiEXT-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawMultiEXT-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawMultiEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-09116
If 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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-commandBuffer-02712
IfcommandBuffer
is a protected command buffer andprotectedNoFault
is not supported, any resource written to by theVkPipeline
object bound to the pipeline bind point used by this command must not be an unprotected resource -
VUID-vkCmdDrawMultiEXT-commandBuffer-02713
IfcommandBuffer
is a protected command buffer andprotectedNoFault
is not supported, pipeline stages other than the framebuffer-space and compute stages in theVkPipeline
object bound to the pipeline bind point used by this command must not write to any resource -
VUID-vkCmdDrawMultiEXT-commandBuffer-04617
If any of the shader stages of theVkPipeline
bound to the pipeline bind point used by this command uses theRayQueryKHR
capability, thencommandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-04008
If thenullDescriptor
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-vkCmdDrawMultiEXT-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 Vertex Input Description -
VUID-vkCmdDrawMultiEXT-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDrawMultiEXT-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDrawMultiEXT-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDrawMultiEXT-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDrawMultiEXT-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDrawMultiEXT-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-vkCmdDrawMultiEXT-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawMultiEXT-None-04933
ThemultiDraw
feature must be enabled -
VUID-vkCmdDrawMultiEXT-drawCount-04934
drawCount
must be less thanVkPhysicalDeviceMultiDrawPropertiesEXT
::maxMultiDrawCount
-
VUID-vkCmdDrawMultiEXT-drawCount-04935
IfdrawCount
is greater than zero,pVertexInfo
must be a valid pointer to memory containing one or more valid instances of VkMultiDrawInfoEXT structures -
VUID-vkCmdDrawMultiEXT-stride-04936
stride
must be a multiple of 4
-
VUID-vkCmdDrawMultiEXT-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawMultiEXT-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawMultiEXT-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawMultiEXT-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawMultiEXT-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 |
To record an ordered sequence of indexed drawing operations which have no state changes between them, call:
// Provided by VK_EXT_multi_draw
void vkCmdDrawMultiIndexedEXT(
VkCommandBuffer commandBuffer,
uint32_t drawCount,
const VkMultiDrawIndexedInfoEXT* pIndexInfo,
uint32_t instanceCount,
uint32_t firstInstance,
uint32_t stride,
const int32_t* pVertexOffset);
-
commandBuffer
is the command buffer into which the command is recorded. -
drawCount
is the number of draws to execute, and can be zero. -
pIndexInfo
is a pointer to an array of VkMultiDrawIndexedInfoEXT with index information to be drawn. -
instanceCount
is the number of instances to draw. -
firstInstance
is the instance ID of the first instance to draw. -
stride
is the byte stride between consecutive elements ofpIndexInfo
. -
pVertexOffset
isNULL
or a pointer to the value added to the vertex index before indexing into the vertex buffer. When specified,VkMultiDrawIndexedInfoEXT
::offset
is ignored.
drawCount
indexed draws are executed with parameters taken from
pIndexInfo
.
The number of draw commands recorded is drawCount
, with each command
reading, sequentially, a firstIndex
and an indexCount
from
pIndexInfo
.
If pVertexOffset
is NULL
, a vertexOffset
is also read from
pIndexInfo
, otherwise the value from dereferencing pVertexOffset
is used.
-
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiIndexedEXT-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiIndexedEXT-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiIndexedEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMultiIndexedEXT-None-02859
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-vkCmdDrawMultiIndexedEXT-None-02702
If the VkPipeline object bound 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-vkCmdDrawMultiIndexedEXT-None-02703
If the VkPipeline object bound 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-vkCmdDrawMultiIndexedEXT-None-02704
If the VkPipeline object bound 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-OpImageWrite-08795
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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMultiIndexedEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMultiIndexedEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMultiIndexedEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMultiIndexedEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-colorAttachmentCount-07616
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
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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMultiIndexedEXT-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMultiIndexedEXT-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMultiIndexedEXT-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMultiIndexedEXT-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-sampleLocationsEnable-07484
If 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-vkCmdDrawMultiIndexedEXT-sampleLocationsEnable-07485
If 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-vkCmdDrawMultiIndexedEXT-sampleLocationsEnable-07486
If 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-vkCmdDrawMultiIndexedEXT-sampleLocationsEnable-07487
If 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-coverageModulationTableEnable-07488
If 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawMultiIndexedEXT-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawMultiIndexedEXT-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawMultiIndexedEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-09116
If 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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-commandBuffer-02712
IfcommandBuffer
is a protected command buffer andprotectedNoFault
is not supported, any resource written to by theVkPipeline
object bound to the pipeline bind point used by this command must not be an unprotected resource -
VUID-vkCmdDrawMultiIndexedEXT-commandBuffer-02713
IfcommandBuffer
is a protected command buffer andprotectedNoFault
is not supported, pipeline stages other than the framebuffer-space and compute stages in theVkPipeline
object bound to the pipeline bind point used by this command must not write to any resource -
VUID-vkCmdDrawMultiIndexedEXT-commandBuffer-04617
If any of the shader stages of theVkPipeline
bound to the pipeline bind point used by this command uses theRayQueryKHR
capability, thencommandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-04008
If thenullDescriptor
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-vkCmdDrawMultiIndexedEXT-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 Vertex Input Description -
VUID-vkCmdDrawMultiIndexedEXT-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDrawMultiIndexedEXT-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDrawMultiIndexedEXT-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDrawMultiIndexedEXT-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDrawMultiIndexedEXT-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDrawMultiIndexedEXT-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-vkCmdDrawMultiIndexedEXT-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawMultiIndexedEXT-None-07312
An index buffer must be bound -
VUID-vkCmdDrawMultiIndexedEXT-robustBufferAccess2-07825
IfrobustBufferAccess2
is not enabled, (indexSize
× (firstIndex
+indexCount
) +offset
) must be less than or equal to the size of the bound index buffer, withindexSize
being based on the type specified byindexType
, where the index buffer,indexType
, andoffset
are specified viavkCmdBindIndexBuffer
-
VUID-vkCmdDrawMultiIndexedEXT-robustBufferAccess2-08797
IfrobustBufferAccess2
is not enabled, (indexSize
× (firstIndex
+indexCount
) +offset
) must be less than or equal to the size of the bound index buffer, withindexSize
being based on the type specified byindexType
, where the index buffer,indexType
, andoffset
are specified viavkCmdBindIndexBuffer
-
VUID-vkCmdDrawMultiIndexedEXT-None-04937
ThemultiDraw
feature must be enabled -
VUID-vkCmdDrawMultiIndexedEXT-drawCount-04939
drawCount
must be less thanVkPhysicalDeviceMultiDrawPropertiesEXT
::maxMultiDrawCount
-
VUID-vkCmdDrawMultiIndexedEXT-drawCount-04940
IfdrawCount
is greater than zero,pIndexInfo
must be a valid pointer to memory containing one or more valid instances of VkMultiDrawIndexedInfoEXT structures -
VUID-vkCmdDrawMultiIndexedEXT-stride-04941
stride
must be a multiple of 4
-
VUID-vkCmdDrawMultiIndexedEXT-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawMultiIndexedEXT-pVertexOffset-parameter
IfpVertexOffset
is notNULL
,pVertexOffset
must be a valid pointer to a validint32_t
value -
VUID-vkCmdDrawMultiIndexedEXT-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawMultiIndexedEXT-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawMultiIndexedEXT-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawMultiIndexedEXT-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 |
The VkMultiDrawInfoEXT
structure is defined as:
// Provided by VK_EXT_multi_draw
typedef struct VkMultiDrawInfoEXT {
uint32_t firstVertex;
uint32_t vertexCount;
} VkMultiDrawInfoEXT;
-
firstVertex
is the first vertex to draw. -
vertexCount
is the number of vertices to draw.
The members of VkMultiDrawInfoEXT
have the same meaning as the
firstVertex
and vertexCount
parameters in vkCmdDraw.
The VkMultiDrawIndexedInfoEXT
structure is defined as:
// Provided by VK_EXT_multi_draw
typedef struct VkMultiDrawIndexedInfoEXT {
uint32_t firstIndex;
uint32_t indexCount;
int32_t vertexOffset;
} VkMultiDrawIndexedInfoEXT;
-
firstIndex
is the first index to draw. -
indexCount
is the number of vertices to draw. -
vertexOffset
is the value added to the vertex index before indexing into the vertex buffer for indexed multidraws.
The firstIndex
, indexCount
, and vertexOffset
members of
VkMultiDrawIndexedInfoEXT
have the same meaning as the
firstIndex
, indexCount
, and vertexOffset
parameters,
respectively, of vkCmdDrawIndexed.
To record a non-indexed indirect drawing command, call:
// Provided by VK_VERSION_1_0
void vkCmdDrawIndirect(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
uint32_t drawCount,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin. -
drawCount
is the number of draws to execute, and can be zero. -
stride
is the byte stride between successive sets of draw parameters.
vkCmdDrawIndirect
behaves similarly to vkCmdDraw except that the
parameters are read by the device from a buffer during execution.
drawCount
draws are executed by the command, with parameters taken
from buffer
starting at offset
and increasing by stride
bytes for each successive draw.
The parameters of each draw are encoded in an array of
VkDrawIndirectCommand structures.
If drawCount
is less than or equal to one, stride
is ignored.
-
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirect-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirect-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirect-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawIndirect-None-02859
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-vkCmdDrawIndirect-None-02702
If the VkPipeline object bound 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-vkCmdDrawIndirect-None-02703
If the VkPipeline object bound 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-vkCmdDrawIndirect-None-02704
If the VkPipeline object bound 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-OpImageWrite-08795
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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndirect-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndirect-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirect-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirect-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-colorAttachmentCount-07616
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
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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirect-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirect-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirect-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndirect-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-sampleLocationsEnable-07484
If 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-vkCmdDrawIndirect-sampleLocationsEnable-07485
If 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-vkCmdDrawIndirect-sampleLocationsEnable-07486
If 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-vkCmdDrawIndirect-sampleLocationsEnable-07487
If 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-coverageModulationTableEnable-07488
If 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawIndirect-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawIndirect-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawIndirect-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-None-09116
If 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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-04008
If thenullDescriptor
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-vkCmdDrawIndirect-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 Vertex Input Description -
VUID-vkCmdDrawIndirect-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-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-vkCmdDrawIndirect-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDrawIndirect-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDrawIndirect-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDrawIndirect-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDrawIndirect-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDrawIndirect-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-vkCmdDrawIndirect-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirect-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawIndirect-buffer-02708
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawIndirect-buffer-02709
buffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawIndirect-offset-02710
offset
must be a multiple of4
-
VUID-vkCmdDrawIndirect-commandBuffer-02711
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawIndirect-drawCount-02718
If themultiDrawIndirect
feature is not enabled,drawCount
must be0
or1
-
VUID-vkCmdDrawIndirect-drawCount-02719
drawCount
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawIndirect-drawCount-00476
IfdrawCount
is greater than1
,stride
must be a multiple of4
and must be greater than or equal tosizeof
(VkDrawIndirectCommand
) -
VUID-vkCmdDrawIndirect-drawCount-00487
IfdrawCount
is equal to1
, (offset
+sizeof
(VkDrawIndirectCommand)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndirect-drawCount-00488
IfdrawCount
is greater than1
, (stride
× (drawCount
- 1) +offset
+sizeof
(VkDrawIndirectCommand)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndirect-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawIndirect-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawIndirect-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawIndirect-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawIndirect-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawIndirect-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawIndirect-commonparent
Both ofbuffer
, andcommandBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
The VkDrawIndirectCommand
structure is defined as:
// Provided by VK_VERSION_1_0
typedef struct VkDrawIndirectCommand {
uint32_t vertexCount;
uint32_t instanceCount;
uint32_t firstVertex;
uint32_t firstInstance;
} VkDrawIndirectCommand;
-
vertexCount
is the number of vertices to draw. -
instanceCount
is the number of instances to draw. -
firstVertex
is the index of the first vertex to draw. -
firstInstance
is the instance ID of the first instance to draw.
The members of VkDrawIndirectCommand
have the same meaning as the
similarly named parameters of vkCmdDraw.
-
VUID-VkDrawIndirectCommand-None-00500
For a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in Vertex Input Description -
VUID-VkDrawIndirectCommand-firstInstance-00501
If thedrawIndirectFirstInstance
feature is not enabled,firstInstance
must be0
To record a non-indexed draw call with a draw call count sourced from a buffer, call:
// Provided by VK_VERSION_1_2
void vkCmdDrawIndirectCount(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkBuffer countBuffer,
VkDeviceSize countBufferOffset,
uint32_t maxDrawCount,
uint32_t stride);
or the equivalent command
// Provided by VK_KHR_draw_indirect_count
void vkCmdDrawIndirectCountKHR(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkBuffer countBuffer,
VkDeviceSize countBufferOffset,
uint32_t maxDrawCount,
uint32_t stride);
or the equivalent command
// Provided by VK_AMD_draw_indirect_count
void vkCmdDrawIndirectCountAMD(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkBuffer countBuffer,
VkDeviceSize countBufferOffset,
uint32_t maxDrawCount,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin. -
countBuffer
is the buffer containing the draw count. -
countBufferOffset
is the byte offset intocountBuffer
where the draw count begins. -
maxDrawCount
specifies the maximum number of draws that will be executed. The actual number of executed draw calls is the minimum of the count specified incountBuffer
andmaxDrawCount
. -
stride
is the byte stride between successive sets of draw parameters.
vkCmdDrawIndirectCount
behaves similarly to vkCmdDrawIndirect
except that the draw count is read by the device from a buffer during
execution.
The command will read an unsigned 32-bit integer from countBuffer
located at countBufferOffset
and use this as the draw count.
-
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectCount-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectCount-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectCount-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawIndirectCount-None-02859
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-vkCmdDrawIndirectCount-None-02702
If the VkPipeline object bound 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-vkCmdDrawIndirectCount-None-02703
If the VkPipeline object bound 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-vkCmdDrawIndirectCount-None-02704
If the VkPipeline object bound 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-OpImageWrite-08795
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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndirectCount-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndirectCount-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirectCount-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirectCount-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-colorAttachmentCount-07616
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
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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirectCount-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirectCount-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirectCount-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndirectCount-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-sampleLocationsEnable-07484
If 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-vkCmdDrawIndirectCount-sampleLocationsEnable-07485
If 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-vkCmdDrawIndirectCount-sampleLocationsEnable-07486
If 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-vkCmdDrawIndirectCount-sampleLocationsEnable-07487
If 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-coverageModulationTableEnable-07488
If 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawIndirectCount-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawIndirectCount-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawIndirectCount-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-None-09116
If 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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-04008
If thenullDescriptor
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-vkCmdDrawIndirectCount-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 Vertex Input Description -
VUID-vkCmdDrawIndirectCount-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDrawIndirectCount-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDrawIndirectCount-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDrawIndirectCount-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDrawIndirectCount-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDrawIndirectCount-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-vkCmdDrawIndirectCount-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectCount-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawIndirectCount-buffer-02708
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawIndirectCount-buffer-02709
buffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawIndirectCount-offset-02710
offset
must be a multiple of4
-
VUID-vkCmdDrawIndirectCount-commandBuffer-02711
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawIndirectCount-countBuffer-02714
IfcountBuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawIndirectCount-countBuffer-02715
countBuffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawIndirectCount-countBufferOffset-02716
countBufferOffset
must be a multiple of4
-
VUID-vkCmdDrawIndirectCount-countBuffer-02717
The count stored incountBuffer
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawIndirectCount-countBufferOffset-04129
(countBufferOffset
+sizeof
(uint32_t)) must be less than or equal to the size ofcountBuffer
-
VUID-vkCmdDrawIndirectCount-None-04445
IfdrawIndirectCount
is not enabled this function must not be used -
VUID-vkCmdDrawIndirectCount-stride-03110
stride
must be a multiple of4
and must be greater than or equal to sizeof(VkDrawIndirectCommand
) -
VUID-vkCmdDrawIndirectCount-maxDrawCount-03111
IfmaxDrawCount
is greater than or equal to1
, (stride
× (maxDrawCount
- 1) +offset
+ sizeof(VkDrawIndirectCommand
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndirectCount-countBuffer-03121
If the count stored incountBuffer
is equal to1
, (offset
+ sizeof(VkDrawIndirectCommand
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndirectCount-countBuffer-03122
If the count stored incountBuffer
is greater than1
, (stride
× (drawCount
- 1) +offset
+ sizeof(VkDrawIndirectCommand
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndirectCount-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawIndirectCount-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawIndirectCount-countBuffer-parameter
countBuffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawIndirectCount-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawIndirectCount-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawIndirectCount-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawIndirectCount-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawIndirectCount-commonparent
Each ofbuffer
,commandBuffer
, andcountBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
To record an indexed indirect drawing command, call:
// Provided by VK_VERSION_1_0
void vkCmdDrawIndexedIndirect(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
uint32_t drawCount,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin. -
drawCount
is the number of draws to execute, and can be zero. -
stride
is the byte stride between successive sets of draw parameters.
vkCmdDrawIndexedIndirect
behaves similarly to vkCmdDrawIndexed
except that the parameters are read by the device from a buffer during
execution.
drawCount
draws are executed by the command, with parameters taken
from buffer
starting at offset
and increasing by stride
bytes for each successive draw.
The parameters of each draw are encoded in an array of
VkDrawIndexedIndirectCommand structures.
If drawCount
is less than or equal to one, stride
is ignored.
-
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexedIndirect-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexedIndirect-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexedIndirect-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawIndexedIndirect-None-02859
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-vkCmdDrawIndexedIndirect-None-02702
If the VkPipeline object bound 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-vkCmdDrawIndexedIndirect-None-02703
If the VkPipeline object bound 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-vkCmdDrawIndexedIndirect-None-02704
If the VkPipeline object bound 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-OpImageWrite-08795
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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndexedIndirect-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndexedIndirect-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexedIndirect-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexedIndirect-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-colorAttachmentCount-07616
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
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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexedIndirect-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexedIndirect-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexedIndirect-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndexedIndirect-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-sampleLocationsEnable-07484
If 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-vkCmdDrawIndexedIndirect-sampleLocationsEnable-07485
If 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-vkCmdDrawIndexedIndirect-sampleLocationsEnable-07486
If 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-vkCmdDrawIndexedIndirect-sampleLocationsEnable-07487
If 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-coverageModulationTableEnable-07488
If 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawIndexedIndirect-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawIndexedIndirect-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawIndexedIndirect-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-None-09116
If 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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-04008
If thenullDescriptor
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-vkCmdDrawIndexedIndirect-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 Vertex Input Description -
VUID-vkCmdDrawIndexedIndirect-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDrawIndexedIndirect-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDrawIndexedIndirect-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDrawIndexedIndirect-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDrawIndexedIndirect-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDrawIndexedIndirect-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-vkCmdDrawIndexedIndirect-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirect-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawIndexedIndirect-buffer-02708
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawIndexedIndirect-buffer-02709
buffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawIndexedIndirect-offset-02710
offset
must be a multiple of4
-
VUID-vkCmdDrawIndexedIndirect-commandBuffer-02711
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawIndexedIndirect-drawCount-02718
If themultiDrawIndirect
feature is not enabled,drawCount
must be0
or1
-
VUID-vkCmdDrawIndexedIndirect-drawCount-02719
drawCount
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawIndexedIndirect-None-07312
An index buffer must be bound -
VUID-vkCmdDrawIndexedIndirect-robustBufferAccess2-07825
IfrobustBufferAccess2
is not enabled, (indexSize
× (firstIndex
+indexCount
) +offset
) must be less than or equal to the size of the bound index buffer, withindexSize
being based on the type specified byindexType
, where the index buffer,indexType
, andoffset
are specified viavkCmdBindIndexBuffer
-
VUID-vkCmdDrawIndexedIndirect-drawCount-00528
IfdrawCount
is greater than1
,stride
must be a multiple of4
and must be greater than or equal tosizeof
(VkDrawIndexedIndirectCommand
) -
VUID-vkCmdDrawIndexedIndirect-drawCount-00539
IfdrawCount
is equal to1
, (offset
+sizeof
(VkDrawIndexedIndirectCommand
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndexedIndirect-drawCount-00540
IfdrawCount
is greater than1
, (stride
× (drawCount
- 1) +offset
+sizeof
(VkDrawIndexedIndirectCommand
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndexedIndirect-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawIndexedIndirect-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawIndexedIndirect-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawIndexedIndirect-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawIndexedIndirect-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawIndexedIndirect-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawIndexedIndirect-commonparent
Both ofbuffer
, andcommandBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
The VkDrawIndexedIndirectCommand
structure is defined as:
// Provided by VK_VERSION_1_0
typedef struct VkDrawIndexedIndirectCommand {
uint32_t indexCount;
uint32_t instanceCount;
uint32_t firstIndex;
int32_t vertexOffset;
uint32_t firstInstance;
} VkDrawIndexedIndirectCommand;
-
indexCount
is the number of vertices to draw. -
instanceCount
is the number of instances to draw. -
firstIndex
is the base index within the index buffer. -
vertexOffset
is the value added to the vertex index before indexing into the vertex buffer. -
firstInstance
is the instance ID of the first instance to draw.
The members of VkDrawIndexedIndirectCommand
have the same meaning as
the similarly named parameters of vkCmdDrawIndexed.
-
VUID-VkDrawIndexedIndirectCommand-robustBufferAccess2-08797
IfrobustBufferAccess2
is not enabled, (indexSize
× (firstIndex
+indexCount
) +offset
) must be less than or equal to the size of the bound index buffer, withindexSize
being based on the type specified byindexType
, where the index buffer,indexType
, andoffset
are specified viavkCmdBindIndexBuffer
-
VUID-VkDrawIndexedIndirectCommand-None-00552
For a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in Vertex Input Description -
VUID-VkDrawIndexedIndirectCommand-firstInstance-00554
If thedrawIndirectFirstInstance
feature is not enabled,firstInstance
must be0
To record an indexed draw call with a draw call count sourced from a buffer, call:
// Provided by VK_VERSION_1_2
void vkCmdDrawIndexedIndirectCount(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkBuffer countBuffer,
VkDeviceSize countBufferOffset,
uint32_t maxDrawCount,
uint32_t stride);
or the equivalent command
// Provided by VK_KHR_draw_indirect_count
void vkCmdDrawIndexedIndirectCountKHR(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkBuffer countBuffer,
VkDeviceSize countBufferOffset,
uint32_t maxDrawCount,
uint32_t stride);
or the equivalent command
// Provided by VK_AMD_draw_indirect_count
void vkCmdDrawIndexedIndirectCountAMD(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkBuffer countBuffer,
VkDeviceSize countBufferOffset,
uint32_t maxDrawCount,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin. -
countBuffer
is the buffer containing the draw count. -
countBufferOffset
is the byte offset intocountBuffer
where the draw count begins. -
maxDrawCount
specifies the maximum number of draws that will be executed. The actual number of executed draw calls is the minimum of the count specified incountBuffer
andmaxDrawCount
. -
stride
is the byte stride between successive sets of draw parameters.
vkCmdDrawIndexedIndirectCount
behaves similarly to
vkCmdDrawIndexedIndirect except that the draw count is read by the
device from a buffer during execution.
The command will read an unsigned 32-bit integer from countBuffer
located at countBufferOffset
and use this as the draw count.
-
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexedIndirectCount-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexedIndirectCount-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexedIndirectCount-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawIndexedIndirectCount-None-02859
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-vkCmdDrawIndexedIndirectCount-None-02702
If the VkPipeline object bound 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-vkCmdDrawIndexedIndirectCount-None-02703
If the VkPipeline object bound 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-vkCmdDrawIndexedIndirectCount-None-02704
If the VkPipeline object bound 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-OpImageWrite-08795
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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndexedIndirectCount-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndexedIndirectCount-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexedIndirectCount-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexedIndirectCount-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-colorAttachmentCount-07616
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
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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexedIndirectCount-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexedIndirectCount-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexedIndirectCount-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndexedIndirectCount-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-sampleLocationsEnable-07484
If 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-vkCmdDrawIndexedIndirectCount-sampleLocationsEnable-07485
If 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-vkCmdDrawIndexedIndirectCount-sampleLocationsEnable-07486
If 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-vkCmdDrawIndexedIndirectCount-sampleLocationsEnable-07487
If 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-coverageModulationTableEnable-07488
If 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawIndexedIndirectCount-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawIndexedIndirectCount-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawIndexedIndirectCount-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-None-09116
If 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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-04008
If thenullDescriptor
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-vkCmdDrawIndexedIndirectCount-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 Vertex Input Description -
VUID-vkCmdDrawIndexedIndirectCount-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDrawIndexedIndirectCount-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDrawIndexedIndirectCount-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDrawIndexedIndirectCount-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDrawIndexedIndirectCount-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDrawIndexedIndirectCount-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-vkCmdDrawIndexedIndirectCount-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexedIndirectCount-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawIndexedIndirectCount-buffer-02708
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawIndexedIndirectCount-buffer-02709
buffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawIndexedIndirectCount-offset-02710
offset
must be a multiple of4
-
VUID-vkCmdDrawIndexedIndirectCount-commandBuffer-02711
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawIndexedIndirectCount-countBuffer-02714
IfcountBuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawIndexedIndirectCount-countBuffer-02715
countBuffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawIndexedIndirectCount-countBufferOffset-02716
countBufferOffset
must be a multiple of4
-
VUID-vkCmdDrawIndexedIndirectCount-countBuffer-02717
The count stored incountBuffer
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawIndexedIndirectCount-countBufferOffset-04129
(countBufferOffset
+sizeof
(uint32_t)) must be less than or equal to the size ofcountBuffer
-
VUID-vkCmdDrawIndexedIndirectCount-None-04445
IfdrawIndirectCount
is not enabled this function must not be used
-
VUID-vkCmdDrawIndexedIndirectCount-None-07312
An index buffer must be bound -
VUID-vkCmdDrawIndexedIndirectCount-robustBufferAccess2-07825
IfrobustBufferAccess2
is not enabled, (indexSize
× (firstIndex
+indexCount
) +offset
) must be less than or equal to the size of the bound index buffer, withindexSize
being based on the type specified byindexType
, where the index buffer,indexType
, andoffset
are specified viavkCmdBindIndexBuffer
-
VUID-vkCmdDrawIndexedIndirectCount-stride-03142
stride
must be a multiple of4
and must be greater than or equal to sizeof(VkDrawIndexedIndirectCommand
) -
VUID-vkCmdDrawIndexedIndirectCount-maxDrawCount-03143
IfmaxDrawCount
is greater than or equal to1
, (stride
× (maxDrawCount
- 1) +offset
+ sizeof(VkDrawIndexedIndirectCommand
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndexedIndirectCount-countBuffer-03153
If count stored incountBuffer
is equal to1
, (offset
+ sizeof(VkDrawIndexedIndirectCommand
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndexedIndirectCount-countBuffer-03154
If count stored incountBuffer
is greater than1
, (stride
× (drawCount
- 1) +offset
+ sizeof(VkDrawIndexedIndirectCommand
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawIndexedIndirectCount-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawIndexedIndirectCount-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawIndexedIndirectCount-countBuffer-parameter
countBuffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawIndexedIndirectCount-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawIndexedIndirectCount-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawIndexedIndirectCount-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawIndexedIndirectCount-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawIndexedIndirectCount-commonparent
Each ofbuffer
,commandBuffer
, andcountBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
21.3.1. Drawing Transform Feedback
It is possible to draw vertex data that was previously captured during
active transform feedback by binding
one or more of the transform feedback buffers as vertex buffers.
A pipeline barrier is required between using the buffers as transform
feedback buffers and vertex buffers to ensure all writes to the transform
feedback buffers are visible when the data is read as vertex attributes.
The source access is VK_ACCESS_TRANSFORM_FEEDBACK_WRITE_BIT_EXT
and
the destination access is VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT
for the
pipeline stages VK_PIPELINE_STAGE_TRANSFORM_FEEDBACK_BIT_EXT
and
VK_PIPELINE_STAGE_VERTEX_INPUT_BIT
respectively.
The value written to the counter buffer by
vkCmdEndTransformFeedbackEXT can be used to determine the vertex
count for the draw.
A pipeline barrier is required between using the counter buffer for
vkCmdEndTransformFeedbackEXT
and vkCmdDrawIndirectByteCountEXT
where the source access is
VK_ACCESS_TRANSFORM_FEEDBACK_COUNTER_WRITE_BIT_EXT
and the destination
access is VK_ACCESS_INDIRECT_COMMAND_READ_BIT
for the pipeline stages
VK_PIPELINE_STAGE_TRANSFORM_FEEDBACK_BIT_EXT
and
VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT
respectively.
To record a non-indexed draw call, where the vertex count is based on a byte count read from a buffer and the passed in vertex stride parameter, call:
// Provided by VK_EXT_transform_feedback
void vkCmdDrawIndirectByteCountEXT(
VkCommandBuffer commandBuffer,
uint32_t instanceCount,
uint32_t firstInstance,
VkBuffer counterBuffer,
VkDeviceSize counterBufferOffset,
uint32_t counterOffset,
uint32_t vertexStride);
-
commandBuffer
is the command buffer into which the command is recorded. -
instanceCount
is the number of instances to draw. -
firstInstance
is the instance ID of the first instance to draw. -
counterBuffer
is the buffer handle from where the byte count is read. -
counterBufferOffset
is the offset into the buffer used to read the byte count, which is used to calculate the vertex count for this draw call. -
counterOffset
is subtracted from the byte count read from thecounterBuffer
at thecounterBufferOffset
-
vertexStride
is the stride in bytes between each element of the vertex data that is used to calculate the vertex count from the counter value. This value is typically the same value that was used in the graphics pipeline state when the transform feedback was captured as theXfbStride
.
When the command is executed, primitives are assembled in the same way as
done with vkCmdDraw except the vertexCount
is calculated based
on the byte count read from counterBuffer
at offset
counterBufferOffset
.
The assembled primitives execute the bound graphics pipeline.
The effective vertexCount
is calculated as follows:
const uint32_t * counterBufferPtr = (const uint8_t *)counterBuffer.address + counterBufferOffset;
vertexCount = floor(max(0, (*counterBufferPtr - counterOffset)) / vertexStride);
The effective firstVertex
is zero.
-
VUID-vkCmdDrawIndirectByteCountEXT-magFilter-04553
If a VkSampler created 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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-02691
If a VkImageView is accessed using atomic operations as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
-
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectByteCountEXT-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectByteCountEXT-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndirectByteCountEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawIndirectByteCountEXT-None-08115
If the descriptors used by the VkPipeline bound to the pipeline bind point were specified via vkCmdBindDescriptorSets, the bound VkPipeline must have been created withoutVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-vkCmdDrawIndirectByteCountEXT-None-08116
Descriptors in bound descriptor buffers, specified via vkCmdSetDescriptorBufferOffsetsEXT, must be valid if they are dynamically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was created withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-vkCmdDrawIndirectByteCountEXT-None-08117
If the descriptors used by the VkPipeline bound to the pipeline bind point were specified via vkCmdSetDescriptorBufferOffsetsEXT, the bound VkPipeline must have been created withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawIndirectByteCountEXT-None-02859
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-vkCmdDrawIndirectByteCountEXT-None-02702
If the VkPipeline object bound 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-vkCmdDrawIndirectByteCountEXT-None-02703
If the VkPipeline object bound 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-vkCmdDrawIndirectByteCountEXT-None-02704
If the VkPipeline object bound 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-vkCmdDrawIndirectByteCountEXT-uniformBuffers-06935
If any stage of the VkPipeline object bound to the pipeline bind point used by this command accesses a uniform buffer, and that stage was created without enabling 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-vkCmdDrawIndirectByteCountEXT-storageBuffers-06936
If any stage of the VkPipeline object bound to the pipeline bind point used by this command accesses a storage buffer, and that stage was created without enabling 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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-OpImageWrite-08795
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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-SampledType-04471
If a VkImageView with a VkFormat that has a component width less than 64-bit is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 32 -
VUID-vkCmdDrawIndirectByteCountEXT-SampledType-04472
If a VkBufferView with a VkFormat that has a 64-bit component width is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 64 -
VUID-vkCmdDrawIndirectByteCountEXT-SampledType-04473
If a VkBufferView with a VkFormat that has a component width less than 64-bit is accessed as a result of this command, theSampledType
of theOpTypeImage
operand of that instruction must have aWidth
of 32 -
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndirectByteCountEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawIndirectByteCountEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawIndirectByteCountEXT-OpTypeImage-07468
If any shader executed by this pipeline accesses anOpTypeImage
variable with aDim
operand ofSubpassData
, it must be decorated with anInputAttachmentIndex
that corresponds to a valid input attachment in the current subpass -
VUID-vkCmdDrawIndirectByteCountEXT-None-07469
Input attachment views accessed in a subpass must be created with the same VkFormat as the corresponding subpass definition, and be created with a VkImageView that is compatible with the attachment referenced by the subpass'pInputAttachments
[InputAttachmentIndex
] in the currently bound VkFramebuffer as specified by Fragment Input Attachment Compatibility -
VUID-vkCmdDrawIndirectByteCountEXT-None-06537
Memory backing image subresources used as attachments in the current render pass must not be written in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirectByteCountEXT-None-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirectByteCountEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirectByteCountEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawIndirectByteCountEXT-None-09003
If an attachment is written by any prior command in this subpass or by the load, store, or resolve operations for this subpass, it must not be accessed in any way other than as an attachment, storage image, or sampled image by this command -
VUID-vkCmdDrawIndirectByteCountEXT-None-06539
If any previously recorded command in the current subpass accessed an image subresource used as an attachment in this subpass in any way other than as an attachment, this command must not write to that image subresource as an attachment -
VUID-vkCmdDrawIndirectByteCountEXT-None-06886
If the current render pass instance uses a depth/stencil attachment with a read-only layout for the depth aspect, depth writes must be disabled -
VUID-vkCmdDrawIndirectByteCountEXT-None-06887
If the current render pass instance uses a depth/stencil attachment with a read-only layout for the stencil aspect, both front and backwriteMask
are not zero, and stencil test is enabled, all stencil ops must beVK_STENCIL_OP_KEEP
-
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-maxMultiviewInstanceIndex-02688
If the draw is recorded in a render pass instance with multiview enabled, the maximum instance index must be less than or equal to VkPhysicalDeviceMultiviewProperties::maxMultiviewInstanceIndex
-
VUID-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-02689
If the bound graphics pipeline was created with VkPipelineSampleLocationsStateCreateInfoEXT::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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-colorAttachmentCount-07616
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
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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirectByteCountEXT-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirectByteCountEXT-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndirectByteCountEXT-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07484
If 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-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07485
If 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-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07486
If 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-vkCmdDrawIndirectByteCountEXT-sampleLocationsEnable-07487
If 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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-coverageModulationTableEnable-07488
If 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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-None-09116
If 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-vkCmdDrawIndirectByteCountEXT-maxFragmentDualSrcAttachments-09239
If blending is enabled for any attachment where either the source or destination blend factors for that attachment use the secondary color input, the maximum value ofLocation
for any output attachment statically used in theFragment
Execution
Model
executed by this command must be less thanmaxFragmentDualSrcAttachments
-
VUID-vkCmdDrawIndirectByteCountEXT-None-04007
All vertex input bindings accessed via vertex input variables declared in the vertex shader entry point’s interface must have either valid or VK_NULL_HANDLE buffers bound -
VUID-vkCmdDrawIndirectByteCountEXT-None-04008
If thenullDescriptor
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-vkCmdDrawIndirectByteCountEXT-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 Vertex Input Description -
VUID-vkCmdDrawIndirectByteCountEXT-None-07842
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-dynamicPrimitiveTopologyUnrestricted-07500
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled and thedynamicPrimitiveTopologyUnrestricted
isVK_FALSE
, then theprimitiveTopology
parameter ofvkCmdSetPrimitiveTopology
must be of the same topology class as the pipeline VkPipelineInputAssemblyStateCreateInfo::topology
state -
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-Input-07939
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then all variables with theInput
storage class decorated withLocation
in theVertex
Execution
Model
OpEntryPoint
must contain a location in VkVertexInputAttributeDescription2EXT::location
-
VUID-vkCmdDrawIndirectByteCountEXT-Input-08734
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then the numeric type associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be the same as VkVertexInputAttributeDescription2EXT::format
-
VUID-vkCmdDrawIndirectByteCountEXT-format-08936
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then the scalar width associated with allInput
variables of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must be 64-bit -
VUID-vkCmdDrawIndirectByteCountEXT-format-08937
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and the scalar width associated with aLocation
decoratedInput
variable in theVertex
Execution
Model
OpEntryPoint
is 64-bit, then the corresponding VkVertexInputAttributeDescription2EXT::format
must have a 64-bit component -
VUID-vkCmdDrawIndirectByteCountEXT-None-09203
If the currently bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, and VkVertexInputAttributeDescription2EXT::format
has a 64-bit component, then allInput
variables at the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
must not use components that are not present in the format -
VUID-vkCmdDrawIndirectByteCountEXT-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-vkCmdDrawIndirectByteCountEXT-None-04879
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndirectByteCountEXT-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_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawIndirectByteCountEXT-transformFeedback-02287
VkPhysicalDeviceTransformFeedbackFeaturesEXT
::transformFeedback
must be enabled -
VUID-vkCmdDrawIndirectByteCountEXT-transformFeedbackDraw-02288
The implementation must supportVkPhysicalDeviceTransformFeedbackPropertiesEXT
::transformFeedbackDraw
-
VUID-vkCmdDrawIndirectByteCountEXT-vertexStride-02289
vertexStride
must be greater than 0 and less than or equal toVkPhysicalDeviceTransformFeedbackPropertiesEXT
::maxTransformFeedbackBufferDataStride
-
VUID-vkCmdDrawIndirectByteCountEXT-counterBuffer-04567
IfcounterBuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawIndirectByteCountEXT-counterBuffer-02290
counterBuffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawIndirectByteCountEXT-counterBufferOffset-04568
counterBufferOffset
must be a multiple of4
-
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-02646
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawIndirectByteCountEXT-counterBuffer-parameter
counterBuffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawIndirectByteCountEXT-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawIndirectByteCountEXT-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawIndirectByteCountEXT-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawIndirectByteCountEXT-commonparent
Both ofcommandBuffer
, andcounterBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
21.4. Conditional Rendering
Certain rendering commands can be executed conditionally based on a value in buffer memory. These rendering commands are limited to drawing commands, dispatching commands, and clearing attachments with vkCmdClearAttachments within a conditional rendering block which is defined by commands vkCmdBeginConditionalRenderingEXT and vkCmdEndConditionalRenderingEXT. Other rendering commands remain unaffected by conditional rendering.
After beginning conditional rendering, it is considered active within the command buffer it was called until it is ended with vkCmdEndConditionalRenderingEXT.
Conditional rendering must begin and end in the same command buffer.
When conditional rendering is active, a primary command buffer can execute
secondary command buffers if the inheritedConditionalRendering
feature is enabled.
For a secondary command buffer to be executed while conditional rendering is
active in the primary command buffer, it must set the
conditionalRenderingEnable
flag of
VkCommandBufferInheritanceConditionalRenderingInfoEXT, as described in
the Command Buffer Recording section.
Conditional rendering must also either begin and end inside the same subpass of a render pass instance, or must both begin and end outside of a render pass instance (i.e. contain entire render pass instances).
To begin conditional rendering, call:
// Provided by VK_EXT_conditional_rendering
void vkCmdBeginConditionalRenderingEXT(
VkCommandBuffer commandBuffer,
const VkConditionalRenderingBeginInfoEXT* pConditionalRenderingBegin);
-
commandBuffer
is the command buffer into which this command will be recorded. -
pConditionalRenderingBegin
is a pointer to a VkConditionalRenderingBeginInfoEXT structure specifying parameters of conditional rendering.
-
VUID-vkCmdBeginConditionalRenderingEXT-None-01980
Conditional rendering must not already be active
-
VUID-vkCmdBeginConditionalRenderingEXT-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdBeginConditionalRenderingEXT-pConditionalRenderingBegin-parameter
pConditionalRenderingBegin
must be a valid pointer to a valid VkConditionalRenderingBeginInfoEXT structure -
VUID-vkCmdBeginConditionalRenderingEXT-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdBeginConditionalRenderingEXT-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics, or compute operations -
VUID-vkCmdBeginConditionalRenderingEXT-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 |
Both |
Outside |
Graphics |
Action |
The VkConditionalRenderingBeginInfoEXT
structure is defined as:
// Provided by VK_EXT_conditional_rendering
typedef struct VkConditionalRenderingBeginInfoEXT {
VkStructureType sType;
const void* pNext;
VkBuffer buffer;
VkDeviceSize offset;
VkConditionalRenderingFlagsEXT flags;
} VkConditionalRenderingBeginInfoEXT;
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
buffer
is a buffer containing the predicate for conditional rendering. -
offset
is the byte offset intobuffer
where the predicate is located. -
flags
is a bitmask of VkConditionalRenderingFlagsEXT specifying the behavior of conditional rendering.
If the 32-bit value at offset
in buffer
memory is zero, then the
rendering commands are discarded, otherwise they are executed as normal.
If the value of the predicate in buffer memory changes while conditional
rendering is active, the rendering commands may be discarded in an
implementation-dependent way.
Some implementations may latch the value of the predicate upon beginning
conditional rendering while others may read it before every rendering
command.
-
VUID-VkConditionalRenderingBeginInfoEXT-buffer-01981
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-VkConditionalRenderingBeginInfoEXT-buffer-01982
buffer
must have been created with theVK_BUFFER_USAGE_CONDITIONAL_RENDERING_BIT_EXT
bit set -
VUID-VkConditionalRenderingBeginInfoEXT-offset-01983
offset
must be less than the size ofbuffer
by at least 32 bits -
VUID-VkConditionalRenderingBeginInfoEXT-offset-01984
offset
must be a multiple of 4
-
VUID-VkConditionalRenderingBeginInfoEXT-sType-sType
sType
must beVK_STRUCTURE_TYPE_CONDITIONAL_RENDERING_BEGIN_INFO_EXT
-
VUID-VkConditionalRenderingBeginInfoEXT-pNext-pNext
pNext
must beNULL
-
VUID-VkConditionalRenderingBeginInfoEXT-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-VkConditionalRenderingBeginInfoEXT-flags-parameter
flags
must be a valid combination of VkConditionalRenderingFlagBitsEXT values
Bits which can be set in
vkCmdBeginConditionalRenderingEXT::flags
, specifying the
behavior of conditional rendering, are:
// Provided by VK_EXT_conditional_rendering
typedef enum VkConditionalRenderingFlagBitsEXT {
VK_CONDITIONAL_RENDERING_INVERTED_BIT_EXT = 0x00000001,
} VkConditionalRenderingFlagBitsEXT;
-
VK_CONDITIONAL_RENDERING_INVERTED_BIT_EXT
specifies the condition used to determine whether to discard rendering commands or not. That is, if the 32-bit predicate read frombuffer
memory atoffset
is zero, the rendering commands are not discarded, and if non zero, then they are discarded.
// Provided by VK_EXT_conditional_rendering
typedef VkFlags VkConditionalRenderingFlagsEXT;
VkConditionalRenderingFlagsEXT
is a bitmask type for setting a mask of
zero or more VkConditionalRenderingFlagBitsEXT.
To end conditional rendering, call:
// Provided by VK_EXT_conditional_rendering
void vkCmdEndConditionalRenderingEXT(
VkCommandBuffer commandBuffer);
-
commandBuffer
is the command buffer into which this command will be recorded.
Once ended, conditional rendering becomes inactive.
-
VUID-vkCmdEndConditionalRenderingEXT-None-01985
Conditional rendering must be active -
VUID-vkCmdEndConditionalRenderingEXT-None-01986
If conditional rendering was made active outside of a render pass instance, it must not be ended inside a render pass instance -
VUID-vkCmdEndConditionalRenderingEXT-None-01987
If conditional rendering was made active within a subpass it must be ended in the same subpass
-
VUID-vkCmdEndConditionalRenderingEXT-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdEndConditionalRenderingEXT-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdEndConditionalRenderingEXT-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics, or compute operations -
VUID-vkCmdEndConditionalRenderingEXT-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 |
Both |
Outside |
Graphics |
Action |
21.5. Programmable Mesh Shading
In this drawing approach, primitives are assembled by the mesh shader stage. Mesh shading operates similarly to dispatching compute as the shaders make use of workgroups.
To record a mesh tasks drawing command, call:
// Provided by VK_NV_mesh_shader
void vkCmdDrawMeshTasksNV(
VkCommandBuffer commandBuffer,
uint32_t taskCount,
uint32_t firstTask);
-
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.
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
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-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-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-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-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksNV-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksNV-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksNV-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-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-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMeshTasksNV-None-02859
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-02702
If the VkPipeline object bound 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-02703
If the VkPipeline object bound 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-02704
If the VkPipeline object bound 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-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-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-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 Instruction/Sampler/Image View 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 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-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
,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
,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-None-07288
Any shader invocation executed by this command must terminate -
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-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline 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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline 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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline 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-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias 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-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled 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 then 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 then 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 then 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-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
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 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-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-vkCmdDrawMeshTasksNV-colorAttachmentCount-07616
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
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-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-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-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-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-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-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 current render pass instance was begun with vkCmdBeginRendering, 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 current render pass instance was begun with vkCmdBeginRendering, 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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled 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-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-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-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-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-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-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-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-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-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-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-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, 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-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-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-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 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 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 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 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 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-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-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_EXT
, 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_EXT
, 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_EXT
, 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_EXT
, 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-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-09116
If 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-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 |
To record an indirect mesh tasks drawing command, call:
// Provided by VK_NV_mesh_shader
void vkCmdDrawMeshTasksIndirectNV(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
uint32_t drawCount,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin. -
drawCount
is the number of draws to execute, and can be zero. -
stride
is the byte stride between successive sets of draw parameters.
vkCmdDrawMeshTasksIndirectNV
behaves similarly to
vkCmdDrawMeshTasksNV except that the parameters are read by the device
from a buffer during execution.
drawCount
draws are executed by the command, with parameters taken
from buffer
starting at offset
and increasing by stride
bytes for each successive draw.
The parameters of each draw are encoded in an array of
VkDrawMeshTasksIndirectCommandNV structures.
If drawCount
is less than or equal to one, stride
is ignored.
-
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectNV-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectNV-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectNV-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMeshTasksIndirectNV-None-02859
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-vkCmdDrawMeshTasksIndirectNV-None-02702
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectNV-None-02703
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectNV-None-02704
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-OpImageWrite-08795
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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksIndirectNV-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksIndirectNV-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectNV-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectNV-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectNV-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectNV-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectNV-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-colorAttachmentCount-07616
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
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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectNV-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectNV-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectNV-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksIndirectNV-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-sampleLocationsEnable-07484
If 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-vkCmdDrawMeshTasksIndirectNV-sampleLocationsEnable-07485
If 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-vkCmdDrawMeshTasksIndirectNV-sampleLocationsEnable-07486
If 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-vkCmdDrawMeshTasksIndirectNV-sampleLocationsEnable-07487
If 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-coverageModulationTableEnable-07488
If 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectNV-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectNV-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectNV-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectNV-None-09116
If 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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-None-07074
Transform Feedback Queries must not be active -
VUID-vkCmdDrawMeshTasksIndirectNV-None-07075
Primitives Generated Queries must not be active -
VUID-vkCmdDrawMeshTasksIndirectNV-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-vkCmdDrawMeshTasksIndirectNV-buffer-02708
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawMeshTasksIndirectNV-buffer-02709
buffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawMeshTasksIndirectNV-offset-02710
offset
must be a multiple of4
-
VUID-vkCmdDrawMeshTasksIndirectNV-commandBuffer-02711
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawMeshTasksIndirectNV-drawCount-02718
If themultiDrawIndirect
feature is not enabled,drawCount
must be0
or1
-
VUID-vkCmdDrawMeshTasksIndirectNV-drawCount-02719
drawCount
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawMeshTasksIndirectNV-drawCount-02146
IfdrawCount
is greater than1
,stride
must be a multiple of4
and must be greater than or equal tosizeof
(VkDrawMeshTasksIndirectCommandNV
) -
VUID-vkCmdDrawMeshTasksIndirectNV-drawCount-02156
IfdrawCount
is equal to1
, (offset
+sizeof
(VkDrawMeshTasksIndirectCommandNV)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectNV-drawCount-02157
IfdrawCount
is greater than1
, (stride
× (drawCount
- 1) +offset
+sizeof
(VkDrawMeshTasksIndirectCommandNV)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectNV-MeshNV-07081
The current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theMeshNV
Execution
Model
-
VUID-vkCmdDrawMeshTasksIndirectNV-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectNV-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectNV-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawMeshTasksIndirectNV-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawMeshTasksIndirectNV-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawMeshTasksIndirectNV-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawMeshTasksIndirectNV-commonparent
Both ofbuffer
, andcommandBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
The VkDrawMeshTasksIndirectCommandNV
structure is defined as:
// Provided by VK_NV_mesh_shader
typedef struct VkDrawMeshTasksIndirectCommandNV {
uint32_t taskCount;
uint32_t firstTask;
} VkDrawMeshTasksIndirectCommandNV;
-
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.
The members of VkDrawMeshTasksIndirectCommandNV
have the same meaning
as the similarly named parameters of vkCmdDrawMeshTasksNV.
To record an indirect mesh tasks drawing command with the draw count sourced from a buffer, call:
// Provided by VK_NV_mesh_shader
void vkCmdDrawMeshTasksIndirectCountNV(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkBuffer countBuffer,
VkDeviceSize countBufferOffset,
uint32_t maxDrawCount,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin. -
countBuffer
is the buffer containing the draw count. -
countBufferOffset
is the byte offset intocountBuffer
where the draw count begins. -
maxDrawCount
specifies the maximum number of draws that will be executed. The actual number of executed draw calls is the minimum of the count specified incountBuffer
andmaxDrawCount
. -
stride
is the byte stride between successive sets of draw parameters.
vkCmdDrawMeshTasksIndirectCountNV
behaves similarly to
vkCmdDrawMeshTasksIndirectNV except that the draw count is read by the
device from a buffer during execution.
The command will read an unsigned 32-bit integer from countBuffer
located at countBufferOffset
and use this as the draw count.
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectCountNV-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-02859
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-vkCmdDrawMeshTasksIndirectCountNV-None-02702
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectCountNV-None-02703
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectCountNV-None-02704
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-OpImageWrite-08795
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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksIndirectCountNV-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksIndirectCountNV-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-colorAttachmentCount-07616
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
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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectCountNV-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectCountNV-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectCountNV-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksIndirectCountNV-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-sampleLocationsEnable-07484
If 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-vkCmdDrawMeshTasksIndirectCountNV-sampleLocationsEnable-07485
If 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-vkCmdDrawMeshTasksIndirectCountNV-sampleLocationsEnable-07486
If 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-vkCmdDrawMeshTasksIndirectCountNV-sampleLocationsEnable-07487
If 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-coverageModulationTableEnable-07488
If 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-09116
If 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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-None-07074
Transform Feedback Queries must not be active -
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-07075
Primitives Generated Queries must not be active -
VUID-vkCmdDrawMeshTasksIndirectCountNV-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-vkCmdDrawMeshTasksIndirectCountNV-buffer-02708
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawMeshTasksIndirectCountNV-buffer-02709
buffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawMeshTasksIndirectCountNV-offset-02710
offset
must be a multiple of4
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-commandBuffer-02711
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-countBuffer-02714
IfcountBuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawMeshTasksIndirectCountNV-countBuffer-02715
countBuffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawMeshTasksIndirectCountNV-countBufferOffset-02716
countBufferOffset
must be a multiple of4
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-countBuffer-02717
The count stored incountBuffer
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-countBufferOffset-04129
(countBufferOffset
+sizeof
(uint32_t)) must be less than or equal to the size ofcountBuffer
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-None-04445
IfdrawIndirectCount
is not enabled this function must not be used -
VUID-vkCmdDrawMeshTasksIndirectCountNV-stride-02182
stride
must be a multiple of4
and must be greater than or equal tosizeof
(VkDrawMeshTasksIndirectCommandNV
) -
VUID-vkCmdDrawMeshTasksIndirectCountNV-maxDrawCount-02183
IfmaxDrawCount
is greater than or equal to1
, (stride
× (maxDrawCount
- 1) +offset
+sizeof
(VkDrawMeshTasksIndirectCommandNV
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-countBuffer-02191
If the count stored incountBuffer
is equal to1
, (offset
+sizeof
(VkDrawMeshTasksIndirectCommandNV
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-countBuffer-02192
If the count stored incountBuffer
is greater than1
, (stride
× (drawCount
- 1) +offset
+sizeof
(VkDrawMeshTasksIndirectCommandNV
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-MeshNV-07082
The current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theMeshNV
Execution
Model
-
VUID-vkCmdDrawMeshTasksIndirectCountNV-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectCountNV-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectCountNV-countBuffer-parameter
countBuffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectCountNV-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawMeshTasksIndirectCountNV-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawMeshTasksIndirectCountNV-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawMeshTasksIndirectCountNV-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawMeshTasksIndirectCountNV-commonparent
Each ofbuffer
,commandBuffer
, andcountBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
To record a mesh tasks drawing command, call:
// Provided by VK_EXT_mesh_shader
void vkCmdDrawMeshTasksEXT(
VkCommandBuffer commandBuffer,
uint32_t groupCountX,
uint32_t groupCountY,
uint32_t groupCountZ);
-
commandBuffer
is the command buffer into which the command will be recorded. -
groupCountX
is the number of local workgroups to dispatch in the X dimension. -
groupCountY
is the number of local workgroups to dispatch in the Y dimension. -
groupCountZ
is the number of local workgroups to dispatch in the Z dimension.
When the command is executed, a global workgroup consisting of
groupCountX
× groupCountY
× groupCountZ
local workgroups is assembled.
-
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksEXT-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksEXT-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMeshTasksEXT-None-02859
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-vkCmdDrawMeshTasksEXT-None-02702
If the VkPipeline object bound 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-vkCmdDrawMeshTasksEXT-None-02703
If the VkPipeline object bound 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-vkCmdDrawMeshTasksEXT-None-02704
If the VkPipeline object bound 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-OpImageWrite-08795
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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksEXT-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksEXT-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksEXT-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-colorAttachmentCount-07616
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
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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksEXT-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksEXT-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksEXT-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksEXT-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-sampleLocationsEnable-07484
If 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-vkCmdDrawMeshTasksEXT-sampleLocationsEnable-07485
If 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-vkCmdDrawMeshTasksEXT-sampleLocationsEnable-07486
If 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-vkCmdDrawMeshTasksEXT-sampleLocationsEnable-07487
If 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-coverageModulationTableEnable-07488
If 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksEXT-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksEXT-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksEXT-None-09116
If 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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-None-07074
Transform Feedback Queries must not be active -
VUID-vkCmdDrawMeshTasksEXT-None-07075
Primitives Generated Queries must not be active -
VUID-vkCmdDrawMeshTasksEXT-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-vkCmdDrawMeshTasksEXT-TaskEXT-07322
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
contains a shader using theTaskEXT
Execution
Model
,groupCountX
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxTaskWorkGroupCount
[0] -
VUID-vkCmdDrawMeshTasksEXT-TaskEXT-07323
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
contains a shader using theTaskEXT
Execution
Model
,groupCountY
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxTaskWorkGroupCount
[1] -
VUID-vkCmdDrawMeshTasksEXT-TaskEXT-07324
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
contains a shader using theTaskEXT
Execution
Model
,groupCountZ
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxTaskWorkGroupCount
[2] -
VUID-vkCmdDrawMeshTasksEXT-TaskEXT-07325
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
contains a shader using theTaskEXT
Execution
Model
, The product ofgroupCountX
,groupCountY
andgroupCountZ
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxTaskWorkGroupTotalCount
-
VUID-vkCmdDrawMeshTasksEXT-TaskEXT-07326
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
does not contain a shader using theTaskEXT
Execution
Model
,groupCountX
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxMeshWorkGroupCount
[0] -
VUID-vkCmdDrawMeshTasksEXT-TaskEXT-07327
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
does not contain a shader using theTaskEXT
Execution
Model
,groupCountY
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxMeshWorkGroupCount
[1] -
VUID-vkCmdDrawMeshTasksEXT-TaskEXT-07328
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
does not contain a shader using theTaskEXT
Execution
Model
,groupCountZ
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxMeshWorkGroupCount
[2] -
VUID-vkCmdDrawMeshTasksEXT-TaskEXT-07329
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
does not contain a shader using theTaskEXT
Execution
Model
, The product ofgroupCountX
,groupCountY
andgroupCountZ
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxMeshWorkGroupTotalCount
-
VUID-vkCmdDrawMeshTasksEXT-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawMeshTasksEXT-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawMeshTasksEXT-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawMeshTasksEXT-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawMeshTasksEXT-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 |
To record an indirect mesh tasks drawing command, call:
// Provided by VK_EXT_mesh_shader
void vkCmdDrawMeshTasksIndirectEXT(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
uint32_t drawCount,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin. -
drawCount
is the number of draws to execute, and can be zero. -
stride
is the byte stride between successive sets of draw parameters.
vkCmdDrawMeshTasksIndirectEXT
behaves similarly to
vkCmdDrawMeshTasksEXT except that the parameters are read by the
device from a buffer during execution.
drawCount
draws are executed by the command, with parameters taken
from buffer
starting at offset
and increasing by stride
bytes for each successive draw.
The parameters of each draw are encoded in an array of
VkDrawMeshTasksIndirectCommandEXT structures.
If drawCount
is less than or equal to one, stride
is ignored.
-
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectEXT-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectEXT-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMeshTasksIndirectEXT-None-02859
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-vkCmdDrawMeshTasksIndirectEXT-None-02702
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectEXT-None-02703
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectEXT-None-02704
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-OpImageWrite-08795
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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksIndirectEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksIndirectEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectEXT-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectEXT-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectEXT-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-colorAttachmentCount-07616
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
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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectEXT-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectEXT-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectEXT-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksIndirectEXT-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-sampleLocationsEnable-07484
If 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-vkCmdDrawMeshTasksIndirectEXT-sampleLocationsEnable-07485
If 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-vkCmdDrawMeshTasksIndirectEXT-sampleLocationsEnable-07486
If 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-vkCmdDrawMeshTasksIndirectEXT-sampleLocationsEnable-07487
If 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-coverageModulationTableEnable-07488
If 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectEXT-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectEXT-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectEXT-None-09116
If 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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-None-07074
Transform Feedback Queries must not be active -
VUID-vkCmdDrawMeshTasksIndirectEXT-None-07075
Primitives Generated Queries must not be active -
VUID-vkCmdDrawMeshTasksIndirectEXT-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-vkCmdDrawMeshTasksIndirectEXT-buffer-02708
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawMeshTasksIndirectEXT-buffer-02709
buffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawMeshTasksIndirectEXT-offset-02710
offset
must be a multiple of4
-
VUID-vkCmdDrawMeshTasksIndirectEXT-commandBuffer-02711
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawMeshTasksIndirectEXT-drawCount-02718
If themultiDrawIndirect
feature is not enabled,drawCount
must be0
or1
-
VUID-vkCmdDrawMeshTasksIndirectEXT-drawCount-02719
drawCount
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawMeshTasksIndirectEXT-drawCount-07088
IfdrawCount
is greater than1
,stride
must be a multiple of4
and must be greater than or equal tosizeof
(VkDrawMeshTasksIndirectCommandEXT
) -
VUID-vkCmdDrawMeshTasksIndirectEXT-drawCount-07089
IfdrawCount
is equal to1
, (offset
+sizeof
(VkDrawMeshTasksIndirectCommandEXT)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectEXT-drawCount-07090
IfdrawCount
is greater than1
, (stride
× (drawCount
- 1) +offset
+sizeof
(VkDrawMeshTasksIndirectCommandEXT)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectEXT-MeshEXT-07091
The current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theMeshEXT
Execution
Model
-
VUID-vkCmdDrawMeshTasksIndirectEXT-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectEXT-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectEXT-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawMeshTasksIndirectEXT-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawMeshTasksIndirectEXT-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawMeshTasksIndirectEXT-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawMeshTasksIndirectEXT-commonparent
Both ofbuffer
, andcommandBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
The VkDrawMeshTasksIndirectCommandEXT
structure is defined as:
// Provided by VK_EXT_mesh_shader
typedef struct VkDrawMeshTasksIndirectCommandEXT {
uint32_t groupCountX;
uint32_t groupCountY;
uint32_t groupCountZ;
} VkDrawMeshTasksIndirectCommandEXT;
-
groupCountX
is the number of local workgroups to dispatch in the X dimension. -
groupCountY
is the number of local workgroups to dispatch in the Y dimension. -
groupCountZ
is the number of local workgroups to dispatch in the Z dimension.
The members of VkDrawMeshTasksIndirectCommandEXT
have the same meaning
as the similarly named parameters of vkCmdDrawMeshTasksEXT.
-
VUID-VkDrawMeshTasksIndirectCommandEXT-TaskEXT-07322
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
contains a shader using theTaskEXT
Execution
Model
,groupCountX
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxTaskWorkGroupCount
[0] -
VUID-VkDrawMeshTasksIndirectCommandEXT-TaskEXT-07323
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
contains a shader using theTaskEXT
Execution
Model
,groupCountY
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxTaskWorkGroupCount
[1] -
VUID-VkDrawMeshTasksIndirectCommandEXT-TaskEXT-07324
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
contains a shader using theTaskEXT
Execution
Model
,groupCountZ
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxTaskWorkGroupCount
[2] -
VUID-VkDrawMeshTasksIndirectCommandEXT-TaskEXT-07325
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
contains a shader using theTaskEXT
Execution
Model
, The product ofgroupCountX
,groupCountY
andgroupCountZ
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxTaskWorkGroupTotalCount
-
VUID-VkDrawMeshTasksIndirectCommandEXT-TaskEXT-07326
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
does not contain a shader using theTaskEXT
Execution
Model
,groupCountX
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxMeshWorkGroupCount
[0] -
VUID-VkDrawMeshTasksIndirectCommandEXT-TaskEXT-07327
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
does not contain a shader using theTaskEXT
Execution
Model
,groupCountY
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxMeshWorkGroupCount
[1] -
VUID-VkDrawMeshTasksIndirectCommandEXT-TaskEXT-07328
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
does not contain a shader using theTaskEXT
Execution
Model
,groupCountZ
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxMeshWorkGroupCount
[2] -
VUID-VkDrawMeshTasksIndirectCommandEXT-TaskEXT-07329
If the current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
does not contain a shader using theTaskEXT
Execution
Model
, The product ofgroupCountX
,groupCountY
andgroupCountZ
must be less than or equal toVkPhysicalDeviceMeshShaderPropertiesEXT
::maxMeshWorkGroupTotalCount
To record an indirect mesh tasks drawing command with the draw count sourced from a buffer, call:
// Provided by VK_EXT_mesh_shader
void vkCmdDrawMeshTasksIndirectCountEXT(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkBuffer countBuffer,
VkDeviceSize countBufferOffset,
uint32_t maxDrawCount,
uint32_t stride);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin. -
countBuffer
is the buffer containing the draw count. -
countBufferOffset
is the byte offset intocountBuffer
where the draw count begins. -
maxDrawCount
specifies the maximum number of draws that will be executed. The actual number of executed draw calls is the minimum of the count specified incountBuffer
andmaxDrawCount
. -
stride
is the byte stride between successive sets of draw parameters.
vkCmdDrawMeshTasksIndirectCountEXT
behaves similarly to
vkCmdDrawMeshTasksIndirectEXT except that the draw count is read by
the device from a buffer during execution.
The command will read an unsigned 32-bit integer from countBuffer
located at countBufferOffset
and use this as the draw count.
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-02859
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-vkCmdDrawMeshTasksIndirectCountEXT-None-02702
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectCountEXT-None-02703
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectCountEXT-None-02704
If the VkPipeline object bound 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-OpImageWrite-08795
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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksIndirectCountEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawMeshTasksIndirectCountEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-colorAttachmentCount-07616
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
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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectCountEXT-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectCountEXT-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectCountEXT-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksIndirectCountEXT-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-sampleLocationsEnable-07484
If 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-vkCmdDrawMeshTasksIndirectCountEXT-sampleLocationsEnable-07485
If 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-vkCmdDrawMeshTasksIndirectCountEXT-sampleLocationsEnable-07486
If 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-vkCmdDrawMeshTasksIndirectCountEXT-sampleLocationsEnable-07487
If 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-coverageModulationTableEnable-07488
If 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-09116
If 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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-None-07074
Transform Feedback Queries must not be active -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-07075
Primitives Generated Queries must not be active -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-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-vkCmdDrawMeshTasksIndirectCountEXT-buffer-02708
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-buffer-02709
buffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-offset-02710
offset
must be a multiple of4
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-commandBuffer-02711
commandBuffer
must not be a protected command buffer
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-countBuffer-02714
IfcountBuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-countBuffer-02715
countBuffer
must have been created with theVK_BUFFER_USAGE_INDIRECT_BUFFER_BIT
bit set -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-countBufferOffset-02716
countBufferOffset
must be a multiple of4
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-countBuffer-02717
The count stored incountBuffer
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-countBufferOffset-04129
(countBufferOffset
+sizeof
(uint32_t)) must be less than or equal to the size ofcountBuffer
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-None-04445
IfdrawIndirectCount
is not enabled this function must not be used -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-stride-07096
stride
must be a multiple of4
and must be greater than or equal tosizeof
(VkDrawMeshTasksIndirectCommandEXT
) -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-maxDrawCount-07097
IfmaxDrawCount
is greater than or equal to1
, (stride
× (maxDrawCount
- 1) +offset
+sizeof
(VkDrawMeshTasksIndirectCommandEXT
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-countBuffer-07098
If the count stored incountBuffer
is equal to1
, (offset
+sizeof
(VkDrawMeshTasksIndirectCommandEXT
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-countBuffer-07099
If the count stored incountBuffer
is greater than1
, (stride
× (drawCount
- 1) +offset
+sizeof
(VkDrawMeshTasksIndirectCommandEXT
)) must be less than or equal to the size ofbuffer
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-MeshEXT-07100
The current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theMeshEXT
Execution
Model
-
VUID-vkCmdDrawMeshTasksIndirectCountEXT-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-countBuffer-parameter
countBuffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawMeshTasksIndirectCountEXT-commonparent
Each ofbuffer
,commandBuffer
, andcountBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |
21.6. Programmable Cluster Culling Shading
In this drawing approach, cluster are generated by the cluster culling shader stage. It operates similarly to dispatching compute as the shaders make use of workgroups.
To record a cluster culling shader drawing command, call:
// Provided by VK_HUAWEI_cluster_culling_shader
void vkCmdDrawClusterHUAWEI(
VkCommandBuffer commandBuffer,
uint32_t groupCountX,
uint32_t groupCountY,
uint32_t groupCountZ);
-
commandBuffer
is the command buffer into which the command will be recorded. -
groupCountX
is the number of local workgroups to dispatch in the X dimension. -
groupCountY
is the number of local workgroups to dispatch in the Y dimension. -
groupCountZ
is the number of local workgroups to dispatch in the Z dimension.
When the command is executed,a global workgroup consisting of
groupCountX*groupCountY*groupCountZ local workgroup is assembled.
Note that the cluster culling shader pipeline only accepts
vkCmdDrawClusterHUAWEI
and vkCmdDrawClusterIndirectHUAWEI as
drawing commands.
-
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawClusterHUAWEI-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawClusterHUAWEI-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawClusterHUAWEI-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawClusterHUAWEI-None-02859
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-vkCmdDrawClusterHUAWEI-None-02702
If the VkPipeline object bound 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-vkCmdDrawClusterHUAWEI-None-02703
If the VkPipeline object bound 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-vkCmdDrawClusterHUAWEI-None-02704
If the VkPipeline object bound 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-OpImageWrite-08795
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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawClusterHUAWEI-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawClusterHUAWEI-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawClusterHUAWEI-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawClusterHUAWEI-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterHUAWEI-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterHUAWEI-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterHUAWEI-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-colorAttachmentCount-07616
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
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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawClusterHUAWEI-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawClusterHUAWEI-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawClusterHUAWEI-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawClusterHUAWEI-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-sampleLocationsEnable-07484
If 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-vkCmdDrawClusterHUAWEI-sampleLocationsEnable-07485
If 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-vkCmdDrawClusterHUAWEI-sampleLocationsEnable-07486
If 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-vkCmdDrawClusterHUAWEI-sampleLocationsEnable-07487
If 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-coverageModulationTableEnable-07488
If 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawClusterHUAWEI-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawClusterHUAWEI-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawClusterHUAWEI-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterHUAWEI-None-09116
If 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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-07074
Transform Feedback Queries must not be active -
VUID-vkCmdDrawClusterHUAWEI-None-07075
Primitives Generated Queries must not be active -
VUID-vkCmdDrawClusterHUAWEI-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-vkCmdDrawClusterHUAWEI-None-07819
ThepipelineStatistics
member used to create any active Pipeline Statistics Query must not containVK_QUERY_PIPELINE_STATISTIC_TASK_SHADER_INVOCATIONS_BIT_EXT
, orVK_QUERY_PIPELINE_STATISTIC_MESH_SHADER_INVOCATIONS_BIT_EXT
-
VUID-vkCmdDrawClusterHUAWEI-groupCountX-07820
groupCountX
must be less than or equal toVkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI
::maxWorkGroupCount
[0] -
VUID-vkCmdDrawClusterHUAWEI-groupCountY-07821
groupCountY
must be less than or equal toVkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI
::maxWorkGroupCount
[1] -
VUID-vkCmdDrawClusterHUAWEI-groupCountZ-07822
groupCountZ
must be less than or equal toVkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI
::maxWorkGroupCount
[2] -
VUID-vkCmdDrawClusterHUAWEI-ClusterCullingHUAWEI-07823
The current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theClusterCullingHUAWEI
Execution
Model
.
-
VUID-vkCmdDrawClusterHUAWEI-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawClusterHUAWEI-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawClusterHUAWEI-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawClusterHUAWEI-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawClusterHUAWEI-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 |
To record an indirect cluster culling drawing command, call:
// Provided by VK_HUAWEI_cluster_culling_shader
void vkCmdDrawClusterIndirectHUAWEI(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset);
-
commandBuffer
is the command buffer into which the command is recorded. -
buffer
is the buffer containing draw parameters. -
offset
is the byte offset intobuffer
where parameters begin.
vkCmdDrawClusterIndirectHUAWEI
behaves similarly to
vkCmdDrawClusterHUAWEI except that the parameters are read by the
device from a buffer during execution.
The parameters of the dispatch are encoded in a
VkDispatchIndirectCommand structure taken from buffer starting at
offset.Note the cluster culling shader pipeline only accepts
vkCmdDrawClusterHUAWEI and vkCmdDrawClusterIndirectHUAWEI
as
drawing commands.
-
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-02697
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawClusterIndirectHUAWEI-None-02698
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawClusterIndirectHUAWEI-maintenance4-06425
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, as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawClusterIndirectHUAWEI-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-02700
A valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawClusterIndirectHUAWEI-None-02859
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-vkCmdDrawClusterIndirectHUAWEI-None-02702
If the VkPipeline object bound 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-vkCmdDrawClusterIndirectHUAWEI-None-02703
If the VkPipeline object bound 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-vkCmdDrawClusterIndirectHUAWEI-None-02704
If the VkPipeline object bound 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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 Instruction/Sampler/Image View Validation -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-OpImageWrite-08795
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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-OpImageWeightedSampleQCOM-06977
IfOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawClusterIndirectHUAWEI-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,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-vkCmdDrawClusterIndirectHUAWEI-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-07748
If any shader statically accesses an input attachment, a valid descriptor must be bound to the pipeline via a descriptor set -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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 theVK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawClusterIndirectHUAWEI-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawClusterIndirectHUAWEI-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 theVK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline it must not be accessed in any way other than as an attachment by this command -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-07834
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled then vkCmdSetDepthBias must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-07836
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled then vkCmdSetDepthBounds must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterIndirectHUAWEI-None-07837
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled then vkCmdSetStencilCompareMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterIndirectHUAWEI-None-07838
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled then vkCmdSetStencilWriteMask must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterIndirectHUAWEI-None-07839
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled then vkCmdSetStencilReference must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-sampleLocationsPerPixel-07934
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled, 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of theVK_AMD_mixed_attachment_samples
extension, theVK_NV_framebuffer_mixed_samples
extension, or themultisampledRenderToSingleSampled
feature is enabled, thenrasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-colorAttachmentCount-07616
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
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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-pDepthAttachment-06181
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawClusterIndirectHUAWEI-pDepthAttachment-07617
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawClusterIndirectHUAWEI-pStencilAttachment-06182
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawClusterIndirectHUAWEI-pStencilAttachment-07618
If the current render pass instance was begun with vkCmdBeginRendering 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-multisampledRenderToSingleSampled-07286
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawClusterIndirectHUAWEI-multisampledRenderToSingleSampled-07287
If the current render pass instance was begun with vkCmdBeginRendering, 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-07849
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_LINE_STIPPLE_EXT
dynamic state enabled then vkCmdSetLineStippleEXT must have been called in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-09211
If the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
state enabled, 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-sampleLocationsEnable-07484
If 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-vkCmdDrawClusterIndirectHUAWEI-sampleLocationsEnable-07485
If 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-vkCmdDrawClusterIndirectHUAWEI-sampleLocationsEnable-07486
If 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-vkCmdDrawClusterIndirectHUAWEI-sampleLocationsEnable-07487
If 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-coverageModulationTableEnable-07488
If 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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_EXT
, then thestippledRectangularLines
feature must be enabled -
VUID-vkCmdDrawClusterIndirectHUAWEI-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_EXT
, then thestippledBresenhamLines
feature must be enabled -
VUID-vkCmdDrawClusterIndirectHUAWEI-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_EXT
, then thestippledSmoothLines
feature must be enabled -
VUID-vkCmdDrawClusterIndirectHUAWEI-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_EXT
, then thestippledRectangularLines
feature must be enabled and VkPhysicalDeviceLimits::strictLines
must beVK_TRUE
-
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-07850
If dynamic state was inherited from VkCommandBufferInheritanceViewportScissorInfoNV, it must be set in the current command buffer prior to this drawing command -
VUID-vkCmdDrawClusterIndirectHUAWEI-None-09116
If 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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-None-07074
Transform Feedback Queries must not be active -
VUID-vkCmdDrawClusterIndirectHUAWEI-None-07075
Primitives Generated Queries must not be active -
VUID-vkCmdDrawClusterIndirectHUAWEI-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-vkCmdDrawClusterIndirectHUAWEI-drawCount-02718
If themultiDrawIndirect
feature is not enabled,drawCount
must be0
or1
-
VUID-vkCmdDrawClusterIndirectHUAWEI-drawCount-02719
drawCount
must be less than or equal toVkPhysicalDeviceLimits
::maxDrawIndirectCount
-
VUID-vkCmdDrawClusterIndirectHUAWEI-ClusterCullingHUAWEI-07824
The current pipeline bound toVK_PIPELINE_BIND_POINT_GRAPHICS
must contain a shader stage using theClusterCullingHUAWEI
Execution
Model
. -
VUID-vkCmdDrawClusterIndirectHUAWEI-offset-07918
offset
must be a multiple of VkPhysicalDeviceClusterCullingShaderPropertiesHUAWEI::indirectBufferOffsetAlignment
-
VUID-vkCmdDrawClusterIndirectHUAWEI-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdDrawClusterIndirectHUAWEI-buffer-parameter
buffer
must be a valid VkBuffer handle -
VUID-vkCmdDrawClusterIndirectHUAWEI-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdDrawClusterIndirectHUAWEI-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdDrawClusterIndirectHUAWEI-renderpass
This command must only be called inside of a render pass instance -
VUID-vkCmdDrawClusterIndirectHUAWEI-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdDrawClusterIndirectHUAWEI-commonparent
Both ofbuffer
, andcommandBuffer
must have been created, allocated, or retrieved from the same VkDevice
-
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 |