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, or if the shaderObject
feature is
enabled, any shader objects bound to graphics stages.
A graphics pipeline
or a combination of one or more graphics shader objects
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 ofvkCmdBindIndexBuffer2KHR
orvkCmdBindIndexBuffer
is equal toVK_INDEX_TYPE_UINT32
, 0xFF whenindexType
is equal toVK_INDEX_TYPE_UINT8_KHR
, 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 drawing using shader objects, or
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
shaderObject
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 |
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 drawing using shader objects, or
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
shaderObject
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 |
Topology Class
The primitive topologies are grouped into the following topology classes:
Topology Class | Primitive Topology |
---|---|
Point |
|
Line |
|
Triangle |
|
Patch |
|
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
.
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.
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.
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.
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.
The ordering of the vertices in each successive triangle is reversed, so that the winding order is consistent throughout the strip. |
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.
If the |
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.
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.
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.
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.
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.
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.
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.
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.
If the maintenance6
feature is enabled,
buffer
can be VK_NULL_HANDLE.
If buffer
is VK_NULL_HANDLE and the nullDescriptor
feature is enabled, every index fetched results in a
value of zero.
-
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_KHR
, theindexTypeUint8
feature must be enabled -
VUID-vkCmdBindIndexBuffer-None-09493
Ifmaintenance6
is not enabled,buffer
must not be VK_NULL_HANDLE -
VUID-vkCmdBindIndexBuffer-buffer-09494
Ifbuffer
is VK_NULL_HANDLE, offset must be zero
-
VUID-vkCmdBindIndexBuffer-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdBindIndexBuffer-buffer-parameter
Ifbuffer
is not VK_NULL_HANDLE,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
that are valid handles of non-ignored parameters 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 |
To bind an index buffer, along with its size, to a command buffer, call:
// Provided by VK_KHR_maintenance5
void vkCmdBindIndexBuffer2KHR(
VkCommandBuffer commandBuffer,
VkBuffer buffer,
VkDeviceSize offset,
VkDeviceSize size,
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. -
size
is the size in bytes of index data bound frombuffer
. -
indexType
is a VkIndexType value specifying the size of the indices.
size
specifies the bound size of the index buffer starting from
offset
.
If size
is VK_WHOLE_SIZE
then the bound size is from
offset
to the end of the buffer
.
If the maintenance6
feature is enabled,
buffer
can be VK_NULL_HANDLE.
If buffer
is VK_NULL_HANDLE and the nullDescriptor
feature is enabled, every index fetched results in a
value of zero.
-
VUID-vkCmdBindIndexBuffer2KHR-offset-08782
offset
must be less than the size ofbuffer
-
VUID-vkCmdBindIndexBuffer2KHR-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-vkCmdBindIndexBuffer2KHR-buffer-08784
buffer
must have been created with theVK_BUFFER_USAGE_INDEX_BUFFER_BIT
flag -
VUID-vkCmdBindIndexBuffer2KHR-buffer-08785
Ifbuffer
is non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemory
object -
VUID-vkCmdBindIndexBuffer2KHR-indexType-08786
indexType
must not beVK_INDEX_TYPE_NONE_KHR
-
VUID-vkCmdBindIndexBuffer2KHR-indexType-08787
IfindexType
isVK_INDEX_TYPE_UINT8_KHR
, theindexTypeUint8
feature must be enabled -
VUID-vkCmdBindIndexBuffer2KHR-None-09493
Ifmaintenance6
is not enabled,buffer
must not be VK_NULL_HANDLE -
VUID-vkCmdBindIndexBuffer2KHR-buffer-09494
Ifbuffer
is VK_NULL_HANDLE, offset must be zero -
VUID-vkCmdBindIndexBuffer2KHR-size-08767
Ifsize
is notVK_WHOLE_SIZE
,size
must be a multiple of the size of the type indicated byindexType
-
VUID-vkCmdBindIndexBuffer2KHR-size-08768
Ifsize
is notVK_WHOLE_SIZE
, the sum ofoffset
andsize
must be less than or equal to the size ofbuffer
-
VUID-vkCmdBindIndexBuffer2KHR-commandBuffer-parameter
commandBuffer
must be a valid VkCommandBuffer handle -
VUID-vkCmdBindIndexBuffer2KHR-buffer-parameter
Ifbuffer
is not VK_NULL_HANDLE,buffer
must be a valid VkBuffer handle -
VUID-vkCmdBindIndexBuffer2KHR-indexType-parameter
indexType
must be a valid VkIndexType value -
VUID-vkCmdBindIndexBuffer2KHR-commandBuffer-recording
commandBuffer
must be in the recording state -
VUID-vkCmdBindIndexBuffer2KHR-commandBuffer-cmdpool
TheVkCommandPool
thatcommandBuffer
was allocated from must support graphics operations -
VUID-vkCmdBindIndexBuffer2KHR-videocoding
This command must only be called outside of a video coding scope -
VUID-vkCmdBindIndexBuffer2KHR-commonparent
Both ofbuffer
, andcommandBuffer
that are valid handles of non-ignored parameters 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
vkCmdBindIndexBuffer2KHR::indexType
and
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_KHR_index_type_uint8
VK_INDEX_TYPE_UINT8_KHR = 1000265000,
// Provided by VK_NV_ray_tracing
VK_INDEX_TYPE_NONE_NV = VK_INDEX_TYPE_NONE_KHR,
// Provided by VK_EXT_index_type_uint8
VK_INDEX_TYPE_UINT8_EXT = VK_INDEX_TYPE_UINT8_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_KHR
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
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDraw-magFilter-09598
If a VkSampler created withmagFilter
orminFilter
equal toVK_FILTER_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDraw-mipmapMode-04770
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDraw-mipmapMode-09599
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDraw-unnormalizedCoordinates-09635
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’slevelCount
andlayerCount
must be 1 -
VUID-vkCmdDraw-unnormalizedCoordinates-09636
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’sviewType
must beVK_IMAGE_VIEW_TYPE_1D
orVK_IMAGE_VIEW_TYPE_2D
-
VUID-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-cubicRangeClamp-09212
If thecubicRangeClamp
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must not have a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
-
VUID-vkCmdDraw-reductionMode-09213
Any VkImageView being sampled with a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
as a result of this command must sample withVK_FILTER_CUBIC_EXT
-
VUID-vkCmdDraw-selectableCubicWeights-09214
If theselectableCubicWeights
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must have VkSamplerCubicWeightsCreateInfoQCOM::cubicWeights
equal toVK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM
-
VUID-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-08600
For each set n that is statically used by a bound shader, a descriptor set must have been bound to n at the same pipeline bind point, with a VkPipelineLayout that is compatible for set n, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDraw-None-08601
For each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDraw-None-10068
For each array of resources that is used by a bound shader, the indices used to access members of the array must be less than the descriptor count for the identified binding in the descriptor sets used by this command -
VUID-vkCmdDraw-maintenance4-08602
If themaintenance4
feature is not enabled, then for each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout and VkPushConstantRange arrays used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDraw-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-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-08604
Descriptors in bound descriptor buffers, specified via vkCmdSetDescriptorBufferOffsetsEXT, must be valid if they are dynamically used by any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command -
VUID-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-08605
If a descriptor is dynamically used with a VkShaderEXT created with aVkDescriptorSetLayout
that was created withVK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident -
VUID-vkCmdDraw-None-08606
If theshaderObject
feature is not enabled, a valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDraw-None-08608
If a pipeline is bound to the pipeline bind point used by this command, there must not have been any calls to dynamic state setting commands for any state specified statically in the VkPipeline object bound to the pipeline bind point used by this command, since that pipeline was bound -
VUID-vkCmdDraw-None-08609
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used to sample from any VkImage with a VkImageView of the typeVK_IMAGE_VIEW_TYPE_3D
,VK_IMAGE_VIEW_TYPE_CUBE
,VK_IMAGE_VIEW_TYPE_1D_ARRAY
,VK_IMAGE_VIEW_TYPE_2D_ARRAY
orVK_IMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage -
VUID-vkCmdDraw-None-08610
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions withImplicitLod
,Dref
orProj
in their name, in any shader stage -
VUID-vkCmdDraw-None-08611
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions that includes a LOD bias or any offset values, in any shader stage -
VUID-vkCmdDraw-None-08607
If theshaderObject
is enabled, either a valid pipeline must be bound to the pipeline bind point used by this command, or a valid combination of valid and VK_NULL_HANDLE shader objects must be bound to every supported shader stage corresponding to the pipeline bind point used by this command -
VUID-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-None-08612
If therobustBufferAccess
feature is not enabled, and any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a uniform buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-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-None-08613
If therobustBufferAccess
feature is not enabled, and any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a storage buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-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 Compatibility Between SPIR-V Image Dimensions and Vulkan ImageView Types -
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 created with a format other thanVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the image view’s format -
VUID-vkCmdDraw-OpImageWrite-08796
If a VkImageView created with the formatVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have four components -
VUID-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
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDraw-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must not have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDraw-OpImageBlockMatchWindow-09215
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
VUID-vkCmdDraw-OpImageBlockMatchWindow-09216
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format must be a single-component format -
VUID-vkCmdDraw-OpImageBlockMatchWindow-09217
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation -
VUID-vkCmdDraw-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDraw-None-09600
If a descriptor with type equal to any ofVK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE
,VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
, orVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
is accessed as a result of this command, the image subresource identified by that descriptor must be in the image layout identified when the descriptor was written -
VUID-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-pDepthInputAttachmentIndex-09595
Input attachment views accessed in a dynamic render pass with aInputAttachmentIndex
referenced by VkRenderingInputAttachmentIndexInfoKHR, or noInputAttachmentIndex
if VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
or VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
areNULL
, must be created with a VkImageView that is compatible with the corresponding color, depth, or stencil attachment in VkRenderingInfo -
VUID-vkCmdDraw-pDepthInputAttachmentIndex-09596
Input attachment views accessed in a dynamic render pass via a shader object must have anInputAttachmentIndex
if both VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
and VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
are non-NULL
-
VUID-vkCmdDraw-InputAttachmentIndex-09597
If an input attachment view accessed in a dynamic render pass via a shader object has anInputAttachmentIndex
, theInputAttachmentIndex
must match an index in VkRenderingInputAttachmentIndexInfoKHR -
VUID-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 either:-
the
VK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_COLOR_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_DEPTH_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_STENCIL_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 and not subsequently invalidated 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 and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08617
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08618
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08619
If a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07834
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthBiasEnable
isVK_TRUE
, then vkCmdSetDepthBounds or vkCmdSetDepthBias2EXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08621
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT in the current command buffer set any element ofpColorBlendEnables
toVK_TRUE
, and the most recent call to vkCmdSetColorBlendEquationEXT in the current command buffer set the same element ofpColorBlendEquations
to aVkColorBlendEquationEXT
structure with any VkBlendFactor member with a value ofVK_BLEND_FACTOR_CONSTANT_COLOR
,VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR
,VK_BLEND_FACTOR_CONSTANT_ALPHA
, orVK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA
, vkCmdSetBlendConstants must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07836
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthBoundsTestEnable
isVK_TRUE
, then vkCmdSetDepthBounds must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07837
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilCompareMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07838
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilWriteMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07839
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled, the current value of andrasterizerDiscardEnable
isVK_FALSE
, the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilReference must have been called and not subsequently invalidated 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 theVK_EXT_sample_locations
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofsampleLocationsEnable
isVK_TRUE
, then vkCmdSetSampleLocationsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07840
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_CULL_MODE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCullMode must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07841
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_FRONT_FACE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetFrontFace must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07843
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, vkCmdSetDepthTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07844
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthWriteEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07845
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_COMPARE_OP
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthTestEnable
isVK_TRUE
, then vkCmdSetDepthCompareOp must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07846
If thedepthBounds
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthBoundsTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07847
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetStencilTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07848
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_OP
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilOp must have been called and not subsequently invalidated 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-None-08635
If a shader object is bound to any graphics stage, then both vkCmdSetViewportWithCount and vkCmdSetScissorWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must match thescissorCount
parameter ofvkCmdSetScissorWithCount
-
VUID-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-None-09232
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then vkCmdSetViewportWScalingNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08636
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportWScalingNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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-shadingRateImage-09233
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCoarseSampleOrderNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-shadingRateImage-09234
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then vkCmdSetViewportShadingRatePaletteNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08637
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportShadingRatePaletteNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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 theexclusiveScissor
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV
dynamic state enabled, then vkCmdSetExclusiveScissorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07879
If theexclusiveScissor
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
dynamic state enabled, and the most recent call to vkCmdSetExclusiveScissorEnableNV in the current command buffer set any element ofpExclusiveScissorEnables
toVK_TRUE
, then vkCmdSetExclusiveScissorNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-04876
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE
dynamic state enabled, then vkCmdSetRasterizerDiscardEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-04877
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthBiasEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-logicOp-04878
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value oflogicOpEnable
isVK_TRUE
, then vkCmdSetLogicOpEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
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-primitiveFragmentShadingRateWithMultipleViewports-08642
If theprimitiveFragmentShadingRateWithMultipleViewports
limit is not supported, and any shader object bound to a graphics stage writes to thePrimitiveShadingRateKHR
built-in, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must be1
-
VUID-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-None-08643
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then for each color attachment in the render pass, if the corresponding image view’s format features do not containVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then the corresponding member ofpColorBlendEnables
in the most recent call tovkCmdSetColorBlendEnableEXT
in the current command buffer that affected that attachment index must have beenVK_FALSE
-
VUID-vkCmdDraw-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then
rasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
-
VUID-vkCmdDraw-None-08644
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then the most recent call to vkCmdSetRasterizationSamplesEXT in the current command buffer must have set
rasterizationSamples
to be the same as the number of samples for the current render pass color and/or depth/stencil attachments -
-
VUID-vkCmdDraw-None-08876
If a shader object is bound to any graphics stage, the current render pass instance must have been begun with vkCmdBeginRendering -
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 thedynamicRenderingUnusedAttachments
feature is not enabled and the current render pass instance was begun with vkCmdBeginRendering, the currently bound graphics pipeline must have been created with a VkPipelineRenderingCreateInfo::colorAttachmentCount
equal to VkRenderingInfo::colorAttachmentCount
-
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08910
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline -
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08912
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
equal to VK_NULL_HANDLE must have the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound pipeline equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08911
If thedynamicRenderingUnusedAttachments
feature is enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline, or the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
, if it exists, must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDraw-colorAttachmentCount-09362
If the current render pass instance was begun with vkCmdBeginRendering, with a VkRenderingInfo::colorAttachmentCount
equal to1
, there is no shader object bound to any graphics stage, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aresolveImageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDraw-None-09363
If there is no shader object bound to any graphics stage, the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCount
equal to1
, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aimageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDraw-None-09364
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled, then vkCmdSetColorBlendEnableEXT must have set the blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDraw-None-09365
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDraw-None-09366
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetColorBlendEnableEXT must have set blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDraw-rasterizationSamples-09367
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDraw-None-09368
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDraw-None-09369
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-vkCmdDraw-pFragmentSize-09370
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDraw-pFragmentSize-09371
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08646
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteEnableEXT must have been called and not subsequently invalidated 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-08647
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then theattachmentCount
parameter of most recent call tovkCmdSetColorWriteEnableEXT
in the current command buffer must be greater than or equal to the number of color attachments in the current render pass instance -
VUID-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 and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-rasterizerDiscardEnable-09236
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08648
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDiscardRectangleEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08649
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08913
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08914
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
-
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08915
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
, the value of the format must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08916
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08917
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView
-
VUID-vkCmdDraw-dynamicRenderingUnusedAttachments-08918
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView
, the value of the format must beVK_FORMAT_UNDEFINED
-
VUID-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 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 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 a shader object is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT
dynamic state enabled, then vkCmdSetTessellationDomainOriginEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07620
If thedepthClamp
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLAMP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthClampEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07621
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_POLYGON_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetPolygonModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07622
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetRasterizationSamplesEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07623
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SAMPLE_MASK_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetSampleMaskEXT must have been called and not subsequently invalidated 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-alphaToCoverageEnable-08920
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetAlphaToCoverageEnableEXT in the current command buffer setalphaToCoverageEnable
toVK_TRUE
, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 -
VUID-vkCmdDraw-None-07624
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAlphaToCoverageEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07625
If thealphaToOne
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ALPHA_TO_ONE_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAlphaToOneEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07626
If thelogicOp
feature is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_LOGIC_OP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetLogicOpEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08657
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorBlendEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08658
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT for any attachment set that attachment’s value inpColorBlendEnables
toVK_TRUE
, then vkCmdSetColorBlendEquationEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08659
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorWriteMaskEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07630
If thegeometryStreams
feature is enabled, and a shader object is bound to theVK_SHADER_STAGE_GEOMETRY_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZATION_STREAM_EXT
dynamic state enabled, then vkCmdSetRasterizationStreamEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07631
If theVK_EXT_conservative_rasterization
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetConservativeRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07632
If theVK_EXT_conservative_rasterization
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXTRA_PRIMITIVE_OVERESTIMATION_SIZE_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofconservativeRasterizationMode
isVK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT
, then vkCmdSetExtraPrimitiveOverestimationSizeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07633
If thedepthClipEnable
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT
dynamic state, then vkCmdSetDepthClipEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08664
If theVK_EXT_sample_locations
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetSampleLocationsEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-rasterizerDiscardEnable-09416
If theVK_EXT_blend_operation_advanced
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then at least one of vkCmdSetColorBlendEquationEXT and vkCmdSetColorBlendAdvancedEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07636
If theVK_EXT_provoking_vertex
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_PROVOKING_VERTEX_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetProvokingVertexModeEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08666
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08667
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08668
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08669
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08670
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08671
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated 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_KHR
dynamic state enabled then vkCmdSetLineStippleKHR must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-08672
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetLineStippleEnableEXT in the current command buffer setstippledLineEnable
toVK_TRUE
, then vkCmdSetLineStippleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07639
If thedepthClipControl
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT
dynamic state enabled, then vkCmdSetDepthClipNegativeOneToOneEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07640
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_VIEWPORT_W_SCALING_ENABLE_NV
dynamic state enabled, then vkCmdSetViewportWScalingEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07641
If theVK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled, then vkCmdSetViewportSwizzleNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07642
If theVK_NV_fragment_coverage_to_color
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageToColorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07643
If theVK_NV_fragment_coverage_to_color
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_LOCATION_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageToColorEnable
isVK_TRUE
, then vkCmdSetCoverageToColorLocationNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07644
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_MODE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageModulationModeNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07645
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageModulationMode
is any value other thanVK_COVERAGE_MODULATION_MODE_NONE_NV
, then vkCmdSetCoverageModulationTableEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07646
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageModulationTableEnable
isVK_TRUE
, then vkCmdSetCoverageModulationTableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07647
If theshadingRateImage
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SHADING_RATE_IMAGE_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetShadingRateImageEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-pipelineFragmentShadingRate-09238
If thepipelineFragmentShadingRate
feature is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetFragmentShadingRateKHR must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07648
If therepresentativeFragmentTest
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_REPRESENTATIVE_FRAGMENT_TEST_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetRepresentativeFragmentTestEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-07649
If thecoverageReductionMode
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageReductionModeNV must have been called and not subsequently invalidated 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, or a shader object is bound to any graphics stage, and the current render pass instance includes a VkMultisampledRenderToSingleSampledInfoEXT structure withmultisampledRenderToSingleSampledEnable
equal toVK_TRUE
, then therasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT must be the same as therasterizationSamples
member of that structure -
VUID-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-rasterizerDiscardEnable-09417
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorBlendEnableEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass -
VUID-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-rasterizerDiscardEnable-09418
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorBlendEquationEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled -
VUID-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-rasterizerDiscardEnable-09419
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteMaskEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass -
VUID-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 a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, andsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, and the current subpass has a depth/stencil attachment, then that attachment must have been created with theVK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set -
VUID-vkCmdDraw-sampleLocationsEnable-07485
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.sampleLocationGridSize.width
in the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.width
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equalingrasterizationSamples
-
VUID-vkCmdDraw-sampleLocationsEnable-07486
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.sampleLocationGridSize.height
in the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.height
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equalingrasterizationSamples
-
VUID-vkCmdDraw-sampleLocationsEnable-07487
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, the fragment shader code must not statically use the extended instructionInterpolateAtSample
-
VUID-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 a shader object is bound to any graphics stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
state enabled, and the last call to vkCmdSetCoverageModulationTableEnableNV setcoverageModulationTableEnable
toVK_TRUE
, then thecoverageModulationTableCount
parameter in the last call to vkCmdSetCoverageModulationTableNV must equal the currentrasterizationSamples
divided by the number of color samples in the current subpass -
VUID-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-rasterizerDiscardEnable-09420
If theVK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the last call to vkCmdSetCoverageToColorEnableNV set thecoverageToColorEnable
toVK_TRUE
, then the current subpass must have a color attachment at the location selected by the last call to vkCmdSetCoverageToColorLocationNVcoverageToColorLocation
, with a VkFormat ofVK_FORMAT_R8_UINT
,VK_FORMAT_R8_SINT
,VK_FORMAT_R16_UINT
,VK_FORMAT_R16_SINT
,VK_FORMAT_R32_UINT
, orVK_FORMAT_R32_SINT
-
VUID-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-viewportCount-09421
If theVK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, then theviewportCount
parameter in the last call to vkCmdSetViewportSwizzleNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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_KHR
, 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_KHR
, 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_KHR
, 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_KHR
, 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-08877
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAttachmentFeedbackLoopEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
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-08684
If there is no bound graphics pipeline,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_VERTEX_BIT
-
VUID-vkCmdDraw-None-08685
If there is no bound graphics pipeline, and thetessellationShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TESSELLATION_CONTROL_BIT
-
VUID-vkCmdDraw-None-08686
If there is no bound graphics pipeline, and thetessellationShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
-
VUID-vkCmdDraw-None-08687
If there is no bound graphics pipeline, and thegeometryShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_GEOMETRY_BIT
-
VUID-vkCmdDraw-None-08688
If there is no bound graphics pipeline,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_FRAGMENT_BIT
-
VUID-vkCmdDraw-None-08689
If there is no bound graphics pipeline, and thetaskShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TASK_BIT_EXT
-
VUID-vkCmdDraw-None-08690
If there is no bound graphics pipeline, and themeshShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDraw-None-08693
If there is no bound graphics pipeline, and at least one of thetaskShader
andmeshShader
features is enabled, one of theVK_SHADER_STAGE_VERTEX_BIT
orVK_SHADER_STAGE_MESH_BIT_EXT
stages must have a validVkShaderEXT
bound, and the other must have noVkShaderEXT
bound -
VUID-vkCmdDraw-None-08694
If there is no bound graphics pipeline, and both thetaskShader
andmeshShader
features are enabled, and a validVkShaderEXT
is bound the to theVK_SHADER_STAGE_MESH_BIT_EXT
stage, and thatVkShaderEXT
was created without theVK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, a validVkShaderEXT
must be bound to theVK_SHADER_STAGE_TASK_BIT_EXT
stage -
VUID-vkCmdDraw-None-08695
If there is no bound graphics pipeline, and both thetaskShader
andmeshShader
features are enabled, and a validVkShaderEXT
is bound the to theVK_SHADER_STAGE_MESH_BIT_EXT
stage, and thatVkShaderEXT
was created with theVK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, there must be noVkShaderEXT
bound to theVK_SHADER_STAGE_TASK_BIT_EXT
stage -
VUID-vkCmdDraw-None-08696
If there is no bound graphics pipeline, and a validVkShaderEXT
is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, there must be noVkShaderEXT
bound to either theVK_SHADER_STAGE_TASK_BIT_EXT
stage or theVK_SHADER_STAGE_MESH_BIT_EXT
stage -
VUID-vkCmdDraw-None-08698
If any graphics shader is bound which was created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, then all shaders created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag in the same vkCreateShadersEXT call must also be bound -
VUID-vkCmdDraw-None-08699
If any graphics shader is bound which was created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, any stages in between stages whose shaders which did not create a shader with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag as part of the same vkCreateShadersEXT call must not have anyVkShaderEXT
bound -
VUID-vkCmdDraw-None-08878
All bound graphics shader objects must have been created with identical or identically defined push constant ranges -
VUID-vkCmdDraw-None-08879
All bound graphics shader objects must have been created with identical or identically defined arrays of descriptor set layouts -
VUID-vkCmdDraw-colorAttachmentCount-09372
If the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCount
equal to1
, a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, and a fragment shader is bound, it must not declare theDepthReplacing
orStencilRefReplacingEXT
execution modes -
VUID-vkCmdDraw-pDynamicStates-08715
If the bound graphics pipeline state includes a fragment shader stage, was created withVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
set in VkPipelineDynamicStateCreateInfo::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpDepthAttachmentReadEXT
, thedepthWriteEnable
parameter in the last call to vkCmdSetDepthWriteEnable must beVK_FALSE
-
VUID-vkCmdDraw-pDynamicStates-08716
If the bound graphics pipeline state includes a fragment shader stage, was created withVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
set in VkPipelineDynamicStateCreateInfo::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpStencilAttachmentReadEXT
, thewriteMask
parameter in the last call to vkCmdSetStencilWriteMask must be0
-
VUID-vkCmdDraw-None-09116
If a shader object is bound to any graphics stage or the currently bound graphics pipeline was created withVK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
, and the format of any color attachment isVK_FORMAT_E5B9G9R9_UFLOAT_PACK32
, the corresponding element of thepColorWriteMasks
parameter of vkCmdSetColorWriteMaskEXT must either include all ofVK_COLOR_COMPONENT_R_BIT
,VK_COLOR_COMPONENT_G_BIT
, andVK_COLOR_COMPONENT_B_BIT
, or none of them -
VUID-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-None-09548
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, the value of each element of VkRenderingAttachmentLocationInfoKHR::pColorAttachmentLocations
set by vkCmdSetRenderingAttachmentLocationsKHR must match the value set for the corresponding element in the currently bound pipeline -
VUID-vkCmdDraw-None-09549
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, input attachment index mappings in the currently bound pipeline must match those set for the current render pass instance via VkRenderingInputAttachmentIndexInfoKHR -
VUID-vkCmdDraw-None-09642
If the current render pass was begun with vkCmdBeginRendering with theVK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT
flag, the bound graphics pipeline must have been created withVK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT
-
VUID-vkCmdDraw-None-09643
If the bound graphics pipeline was created withVK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT
, the current render pass must have begun with vkCmdBeginRendering with theVK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT
flag
-
VUID-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
IfrobustBufferAccess
is not enabled, and that pipeline was created without enablingVK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
forvertexInputs
, then for a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in Vertex Input Description -
VUID-vkCmdDraw-None-07842
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-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-pStrides-04913
If the bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic state enabled, but without theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then vkCmdBindVertexBuffers2EXT must have been called and not subsequently invalidated in the current command buffer prior to this draw command, and thepStrides
parameter of vkCmdBindVertexBuffers2EXT must not beNULL
-
VUID-vkCmdDraw-None-04914
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled then vkCmdSetVertexInputEXT must have been called and not subsequently invalidated in the current command buffer prior to this draw command -
VUID-vkCmdDraw-Input-07939
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled and eitherlegacyVertexAttributes
is not enabled or the SPIR-V Type associated with a givenInput
variable of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
is 64-bit, 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage and the most recent call tovkCmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
toVK_PRIMITIVE_TOPOLOGY_PATCH_LIST
, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT
dynamic state enabled then vkCmdSetPatchControlPointsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-04879
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDraw-None-09637
If theprimitiveTopologyListRestart
feature is not enabled, the topology 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
, there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must beVK_FALSE
-
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-None-08885
There must be no shader object bound to either of theVK_SHADER_STAGE_TASK_BIT_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
stages
-
VUID-vkCmdDraw-pNext-09461
If the bound graphics pipeline state was created with VkPipelineVertexInputDivisorStateCreateInfoKHR in thepNext
chain of VkGraphicsPipelineCreateInfo::pVertexInputState
, any member of VkPipelineVertexInputDivisorStateCreateInfoKHR::pVertexBindingDivisors
has a value other than1
indivisor
, and VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR::supportsNonZeroFirstInstance
isVK_FALSE
, thenfirstInstance
must be0
-
VUID-vkCmdDraw-None-09462
If shader objects are used for drawing or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, any member of thepVertexBindingDescriptions
parameter to the vkCmdSetVertexInputEXT call that sets this dynamic state has a value other than1
indivisor
, and VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR::supportsNonZeroFirstInstance
isVK_FALSE
, thenfirstInstance
must be0
-
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
vkCmdBindIndexBuffer2KHR::indexType
or 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
or vkCmdBindIndexBuffer2KHR
,
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_KHR
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
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDrawIndexed-magFilter-09598
If a VkSampler created withmagFilter
orminFilter
equal toVK_FILTER_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDrawIndexed-mipmapMode-04770
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDrawIndexed-mipmapMode-09599
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDrawIndexed-unnormalizedCoordinates-09635
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’slevelCount
andlayerCount
must be 1 -
VUID-vkCmdDrawIndexed-unnormalizedCoordinates-09636
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’sviewType
must beVK_IMAGE_VIEW_TYPE_1D
orVK_IMAGE_VIEW_TYPE_2D
-
VUID-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-cubicRangeClamp-09212
If thecubicRangeClamp
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must not have a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
-
VUID-vkCmdDrawIndexed-reductionMode-09213
Any VkImageView being sampled with a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
as a result of this command must sample withVK_FILTER_CUBIC_EXT
-
VUID-vkCmdDrawIndexed-selectableCubicWeights-09214
If theselectableCubicWeights
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must have VkSamplerCubicWeightsCreateInfoQCOM::cubicWeights
equal toVK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM
-
VUID-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-08600
For each set n that is statically used by a bound shader, a descriptor set must have been bound to n at the same pipeline bind point, with a VkPipelineLayout that is compatible for set n, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexed-None-08601
For each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexed-None-10068
For each array of resources that is used by a bound shader, the indices used to access members of the array must be less than the descriptor count for the identified binding in the descriptor sets used by this command -
VUID-vkCmdDrawIndexed-maintenance4-08602
If themaintenance4
feature is not enabled, then for each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout and VkPushConstantRange arrays used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawIndexed-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-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-08604
Descriptors in bound descriptor buffers, specified via vkCmdSetDescriptorBufferOffsetsEXT, must be valid if they are dynamically used by any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command -
VUID-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-08605
If a descriptor is dynamically used with a VkShaderEXT created with aVkDescriptorSetLayout
that was created withVK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident -
VUID-vkCmdDrawIndexed-None-08606
If theshaderObject
feature is not enabled, a valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawIndexed-None-08608
If a pipeline is bound to the pipeline bind point used by this command, there must not have been any calls to dynamic state setting commands for any state specified statically in the VkPipeline object bound to the pipeline bind point used by this command, since that pipeline was bound -
VUID-vkCmdDrawIndexed-None-08609
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used to sample from any VkImage with a VkImageView of the typeVK_IMAGE_VIEW_TYPE_3D
,VK_IMAGE_VIEW_TYPE_CUBE
,VK_IMAGE_VIEW_TYPE_1D_ARRAY
,VK_IMAGE_VIEW_TYPE_2D_ARRAY
orVK_IMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage -
VUID-vkCmdDrawIndexed-None-08610
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions withImplicitLod
,Dref
orProj
in their name, in any shader stage -
VUID-vkCmdDrawIndexed-None-08611
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions that includes a LOD bias or any offset values, in any shader stage -
VUID-vkCmdDrawIndexed-None-08607
If theshaderObject
is enabled, either a valid pipeline must be bound to the pipeline bind point used by this command, or a valid combination of valid and VK_NULL_HANDLE shader objects must be bound to every supported shader stage corresponding to the pipeline bind point used by this command -
VUID-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-None-08612
If therobustBufferAccess
feature is not enabled, and any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a uniform buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-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-None-08613
If therobustBufferAccess
feature is not enabled, and any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a storage buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-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 Compatibility Between SPIR-V Image Dimensions and Vulkan ImageView Types -
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 created with a format other thanVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the image view’s format -
VUID-vkCmdDrawIndexed-OpImageWrite-08796
If a VkImageView created with the formatVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have four components -
VUID-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
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDrawIndexed-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must not have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDrawIndexed-OpImageBlockMatchWindow-09215
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
VUID-vkCmdDrawIndexed-OpImageBlockMatchWindow-09216
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format must be a single-component format -
VUID-vkCmdDrawIndexed-OpImageBlockMatchWindow-09217
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation -
VUID-vkCmdDrawIndexed-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawIndexed-None-09600
If a descriptor with type equal to any ofVK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE
,VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
, orVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
is accessed as a result of this command, the image subresource identified by that descriptor must be in the image layout identified when the descriptor was written -
VUID-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-pDepthInputAttachmentIndex-09595
Input attachment views accessed in a dynamic render pass with aInputAttachmentIndex
referenced by VkRenderingInputAttachmentIndexInfoKHR, or noInputAttachmentIndex
if VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
or VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
areNULL
, must be created with a VkImageView that is compatible with the corresponding color, depth, or stencil attachment in VkRenderingInfo -
VUID-vkCmdDrawIndexed-pDepthInputAttachmentIndex-09596
Input attachment views accessed in a dynamic render pass via a shader object must have anInputAttachmentIndex
if both VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
and VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
are non-NULL
-
VUID-vkCmdDrawIndexed-InputAttachmentIndex-09597
If an input attachment view accessed in a dynamic render pass via a shader object has anInputAttachmentIndex
, theInputAttachmentIndex
must match an index in VkRenderingInputAttachmentIndexInfoKHR -
VUID-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 either:-
the
VK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_COLOR_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_DEPTH_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_STENCIL_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 and not subsequently invalidated 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 and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08617
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08618
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08619
If a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07834
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthBiasEnable
isVK_TRUE
, then vkCmdSetDepthBounds or vkCmdSetDepthBias2EXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08621
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT in the current command buffer set any element ofpColorBlendEnables
toVK_TRUE
, and the most recent call to vkCmdSetColorBlendEquationEXT in the current command buffer set the same element ofpColorBlendEquations
to aVkColorBlendEquationEXT
structure with any VkBlendFactor member with a value ofVK_BLEND_FACTOR_CONSTANT_COLOR
,VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR
,VK_BLEND_FACTOR_CONSTANT_ALPHA
, orVK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA
, vkCmdSetBlendConstants must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07836
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthBoundsTestEnable
isVK_TRUE
, then vkCmdSetDepthBounds must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07837
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilCompareMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07838
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilWriteMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07839
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled, the current value of andrasterizerDiscardEnable
isVK_FALSE
, the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilReference must have been called and not subsequently invalidated 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 theVK_EXT_sample_locations
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofsampleLocationsEnable
isVK_TRUE
, then vkCmdSetSampleLocationsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07840
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_CULL_MODE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCullMode must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07841
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_FRONT_FACE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetFrontFace must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07843
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, vkCmdSetDepthTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07844
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthWriteEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07845
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_COMPARE_OP
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthTestEnable
isVK_TRUE
, then vkCmdSetDepthCompareOp must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07846
If thedepthBounds
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthBoundsTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07847
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetStencilTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07848
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_OP
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilOp must have been called and not subsequently invalidated 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-None-08635
If a shader object is bound to any graphics stage, then both vkCmdSetViewportWithCount and vkCmdSetScissorWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must match thescissorCount
parameter ofvkCmdSetScissorWithCount
-
VUID-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-None-09232
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then vkCmdSetViewportWScalingNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08636
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportWScalingNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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-shadingRateImage-09233
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCoarseSampleOrderNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-shadingRateImage-09234
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then vkCmdSetViewportShadingRatePaletteNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08637
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportShadingRatePaletteNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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 theexclusiveScissor
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV
dynamic state enabled, then vkCmdSetExclusiveScissorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07879
If theexclusiveScissor
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
dynamic state enabled, and the most recent call to vkCmdSetExclusiveScissorEnableNV in the current command buffer set any element ofpExclusiveScissorEnables
toVK_TRUE
, then vkCmdSetExclusiveScissorNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-04876
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE
dynamic state enabled, then vkCmdSetRasterizerDiscardEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-04877
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthBiasEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-logicOp-04878
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value oflogicOpEnable
isVK_TRUE
, then vkCmdSetLogicOpEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
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-primitiveFragmentShadingRateWithMultipleViewports-08642
If theprimitiveFragmentShadingRateWithMultipleViewports
limit is not supported, and any shader object bound to a graphics stage writes to thePrimitiveShadingRateKHR
built-in, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must be1
-
VUID-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-None-08643
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then for each color attachment in the render pass, if the corresponding image view’s format features do not containVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then the corresponding member ofpColorBlendEnables
in the most recent call tovkCmdSetColorBlendEnableEXT
in the current command buffer that affected that attachment index must have beenVK_FALSE
-
VUID-vkCmdDrawIndexed-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then
rasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
-
VUID-vkCmdDrawIndexed-None-08644
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then the most recent call to vkCmdSetRasterizationSamplesEXT in the current command buffer must have set
rasterizationSamples
to be the same as the number of samples for the current render pass color and/or depth/stencil attachments -
-
VUID-vkCmdDrawIndexed-None-08876
If a shader object is bound to any graphics stage, the current render pass instance must have been begun with vkCmdBeginRendering -
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 thedynamicRenderingUnusedAttachments
feature is not enabled and the current render pass instance was begun with vkCmdBeginRendering, the currently bound graphics pipeline must have been created with a VkPipelineRenderingCreateInfo::colorAttachmentCount
equal to VkRenderingInfo::colorAttachmentCount
-
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08910
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline -
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08912
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
equal to VK_NULL_HANDLE must have the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound pipeline equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08911
If thedynamicRenderingUnusedAttachments
feature is enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline, or the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
, if it exists, must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawIndexed-colorAttachmentCount-09362
If the current render pass instance was begun with vkCmdBeginRendering, with a VkRenderingInfo::colorAttachmentCount
equal to1
, there is no shader object bound to any graphics stage, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aresolveImageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDrawIndexed-None-09363
If there is no shader object bound to any graphics stage, the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCount
equal to1
, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aimageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDrawIndexed-None-09364
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled, then vkCmdSetColorBlendEnableEXT must have set the blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDrawIndexed-None-09365
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDrawIndexed-None-09366
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetColorBlendEnableEXT must have set blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDrawIndexed-rasterizationSamples-09367
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDrawIndexed-None-09368
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDrawIndexed-None-09369
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-vkCmdDrawIndexed-pFragmentSize-09370
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDrawIndexed-pFragmentSize-09371
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08646
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteEnableEXT must have been called and not subsequently invalidated 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-08647
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then theattachmentCount
parameter of most recent call tovkCmdSetColorWriteEnableEXT
in the current command buffer must be greater than or equal to the number of color attachments in the current render pass instance -
VUID-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 and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-rasterizerDiscardEnable-09236
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08648
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDiscardRectangleEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08649
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08913
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08914
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
-
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08915
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
, the value of the format must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08916
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08917
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView
-
VUID-vkCmdDrawIndexed-dynamicRenderingUnusedAttachments-08918
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView
, the value of the format must beVK_FORMAT_UNDEFINED
-
VUID-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 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 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 a shader object is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT
dynamic state enabled, then vkCmdSetTessellationDomainOriginEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07620
If thedepthClamp
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLAMP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthClampEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07621
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_POLYGON_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetPolygonModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07622
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetRasterizationSamplesEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07623
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SAMPLE_MASK_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetSampleMaskEXT must have been called and not subsequently invalidated 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-alphaToCoverageEnable-08920
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetAlphaToCoverageEnableEXT in the current command buffer setalphaToCoverageEnable
toVK_TRUE
, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 -
VUID-vkCmdDrawIndexed-None-07624
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAlphaToCoverageEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07625
If thealphaToOne
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ALPHA_TO_ONE_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAlphaToOneEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07626
If thelogicOp
feature is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_LOGIC_OP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetLogicOpEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08657
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorBlendEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08658
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT for any attachment set that attachment’s value inpColorBlendEnables
toVK_TRUE
, then vkCmdSetColorBlendEquationEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08659
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorWriteMaskEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07630
If thegeometryStreams
feature is enabled, and a shader object is bound to theVK_SHADER_STAGE_GEOMETRY_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZATION_STREAM_EXT
dynamic state enabled, then vkCmdSetRasterizationStreamEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07631
If theVK_EXT_conservative_rasterization
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetConservativeRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07632
If theVK_EXT_conservative_rasterization
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXTRA_PRIMITIVE_OVERESTIMATION_SIZE_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofconservativeRasterizationMode
isVK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT
, then vkCmdSetExtraPrimitiveOverestimationSizeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07633
If thedepthClipEnable
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT
dynamic state, then vkCmdSetDepthClipEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08664
If theVK_EXT_sample_locations
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetSampleLocationsEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-rasterizerDiscardEnable-09416
If theVK_EXT_blend_operation_advanced
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then at least one of vkCmdSetColorBlendEquationEXT and vkCmdSetColorBlendAdvancedEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07636
If theVK_EXT_provoking_vertex
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_PROVOKING_VERTEX_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetProvokingVertexModeEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08666
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08667
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08668
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08669
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08670
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08671
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated 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_KHR
dynamic state enabled then vkCmdSetLineStippleKHR must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-08672
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetLineStippleEnableEXT in the current command buffer setstippledLineEnable
toVK_TRUE
, then vkCmdSetLineStippleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07639
If thedepthClipControl
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT
dynamic state enabled, then vkCmdSetDepthClipNegativeOneToOneEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07640
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_VIEWPORT_W_SCALING_ENABLE_NV
dynamic state enabled, then vkCmdSetViewportWScalingEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07641
If theVK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled, then vkCmdSetViewportSwizzleNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07642
If theVK_NV_fragment_coverage_to_color
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageToColorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07643
If theVK_NV_fragment_coverage_to_color
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_LOCATION_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageToColorEnable
isVK_TRUE
, then vkCmdSetCoverageToColorLocationNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07644
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_MODE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageModulationModeNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07645
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageModulationMode
is any value other thanVK_COVERAGE_MODULATION_MODE_NONE_NV
, then vkCmdSetCoverageModulationTableEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07646
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageModulationTableEnable
isVK_TRUE
, then vkCmdSetCoverageModulationTableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07647
If theshadingRateImage
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SHADING_RATE_IMAGE_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetShadingRateImageEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-pipelineFragmentShadingRate-09238
If thepipelineFragmentShadingRate
feature is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetFragmentShadingRateKHR must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07648
If therepresentativeFragmentTest
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_REPRESENTATIVE_FRAGMENT_TEST_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetRepresentativeFragmentTestEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-07649
If thecoverageReductionMode
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageReductionModeNV must have been called and not subsequently invalidated 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, or a shader object is bound to any graphics stage, and the current render pass instance includes a VkMultisampledRenderToSingleSampledInfoEXT structure withmultisampledRenderToSingleSampledEnable
equal toVK_TRUE
, then therasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT must be the same as therasterizationSamples
member of that structure -
VUID-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-rasterizerDiscardEnable-09417
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorBlendEnableEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass -
VUID-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-rasterizerDiscardEnable-09418
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorBlendEquationEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled -
VUID-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-rasterizerDiscardEnable-09419
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteMaskEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass -
VUID-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 a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, andsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, and the current subpass has a depth/stencil attachment, then that attachment must have been created with theVK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set -
VUID-vkCmdDrawIndexed-sampleLocationsEnable-07485
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.sampleLocationGridSize.width
in the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.width
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equalingrasterizationSamples
-
VUID-vkCmdDrawIndexed-sampleLocationsEnable-07486
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.sampleLocationGridSize.height
in the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.height
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equalingrasterizationSamples
-
VUID-vkCmdDrawIndexed-sampleLocationsEnable-07487
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, the fragment shader code must not statically use the extended instructionInterpolateAtSample
-
VUID-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 a shader object is bound to any graphics stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
state enabled, and the last call to vkCmdSetCoverageModulationTableEnableNV setcoverageModulationTableEnable
toVK_TRUE
, then thecoverageModulationTableCount
parameter in the last call to vkCmdSetCoverageModulationTableNV must equal the currentrasterizationSamples
divided by the number of color samples in the current subpass -
VUID-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-rasterizerDiscardEnable-09420
If theVK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the last call to vkCmdSetCoverageToColorEnableNV set thecoverageToColorEnable
toVK_TRUE
, then the current subpass must have a color attachment at the location selected by the last call to vkCmdSetCoverageToColorLocationNVcoverageToColorLocation
, with a VkFormat ofVK_FORMAT_R8_UINT
,VK_FORMAT_R8_SINT
,VK_FORMAT_R16_UINT
,VK_FORMAT_R16_SINT
,VK_FORMAT_R32_UINT
, orVK_FORMAT_R32_SINT
-
VUID-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-viewportCount-09421
If theVK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, then theviewportCount
parameter in the last call to vkCmdSetViewportSwizzleNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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_KHR
, 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_KHR
, 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_KHR
, 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_KHR
, 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-08877
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAttachmentFeedbackLoopEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
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-08684
If there is no bound graphics pipeline,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_VERTEX_BIT
-
VUID-vkCmdDrawIndexed-None-08685
If there is no bound graphics pipeline, and thetessellationShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TESSELLATION_CONTROL_BIT
-
VUID-vkCmdDrawIndexed-None-08686
If there is no bound graphics pipeline, and thetessellationShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
-
VUID-vkCmdDrawIndexed-None-08687
If there is no bound graphics pipeline, and thegeometryShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_GEOMETRY_BIT
-
VUID-vkCmdDrawIndexed-None-08688
If there is no bound graphics pipeline,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_FRAGMENT_BIT
-
VUID-vkCmdDrawIndexed-None-08689
If there is no bound graphics pipeline, and thetaskShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TASK_BIT_EXT
-
VUID-vkCmdDrawIndexed-None-08690
If there is no bound graphics pipeline, and themeshShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawIndexed-None-08693
If there is no bound graphics pipeline, and at least one of thetaskShader
andmeshShader
features is enabled, one of theVK_SHADER_STAGE_VERTEX_BIT
orVK_SHADER_STAGE_MESH_BIT_EXT
stages must have a validVkShaderEXT
bound, and the other must have noVkShaderEXT
bound -
VUID-vkCmdDrawIndexed-None-08694
If there is no bound graphics pipeline, and both thetaskShader
andmeshShader
features are enabled, and a validVkShaderEXT
is bound the to theVK_SHADER_STAGE_MESH_BIT_EXT
stage, and thatVkShaderEXT
was created without theVK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, a validVkShaderEXT
must be bound to theVK_SHADER_STAGE_TASK_BIT_EXT
stage -
VUID-vkCmdDrawIndexed-None-08695
If there is no bound graphics pipeline, and both thetaskShader
andmeshShader
features are enabled, and a validVkShaderEXT
is bound the to theVK_SHADER_STAGE_MESH_BIT_EXT
stage, and thatVkShaderEXT
was created with theVK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, there must be noVkShaderEXT
bound to theVK_SHADER_STAGE_TASK_BIT_EXT
stage -
VUID-vkCmdDrawIndexed-None-08696
If there is no bound graphics pipeline, and a validVkShaderEXT
is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, there must be noVkShaderEXT
bound to either theVK_SHADER_STAGE_TASK_BIT_EXT
stage or theVK_SHADER_STAGE_MESH_BIT_EXT
stage -
VUID-vkCmdDrawIndexed-None-08698
If any graphics shader is bound which was created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, then all shaders created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag in the same vkCreateShadersEXT call must also be bound -
VUID-vkCmdDrawIndexed-None-08699
If any graphics shader is bound which was created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, any stages in between stages whose shaders which did not create a shader with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag as part of the same vkCreateShadersEXT call must not have anyVkShaderEXT
bound -
VUID-vkCmdDrawIndexed-None-08878
All bound graphics shader objects must have been created with identical or identically defined push constant ranges -
VUID-vkCmdDrawIndexed-None-08879
All bound graphics shader objects must have been created with identical or identically defined arrays of descriptor set layouts -
VUID-vkCmdDrawIndexed-colorAttachmentCount-09372
If the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCount
equal to1
, a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, and a fragment shader is bound, it must not declare theDepthReplacing
orStencilRefReplacingEXT
execution modes -
VUID-vkCmdDrawIndexed-pDynamicStates-08715
If the bound graphics pipeline state includes a fragment shader stage, was created withVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
set in VkPipelineDynamicStateCreateInfo::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpDepthAttachmentReadEXT
, thedepthWriteEnable
parameter in the last call to vkCmdSetDepthWriteEnable must beVK_FALSE
-
VUID-vkCmdDrawIndexed-pDynamicStates-08716
If the bound graphics pipeline state includes a fragment shader stage, was created withVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
set in VkPipelineDynamicStateCreateInfo::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpStencilAttachmentReadEXT
, thewriteMask
parameter in the last call to vkCmdSetStencilWriteMask must be0
-
VUID-vkCmdDrawIndexed-None-09116
If a shader object is bound to any graphics stage or the currently bound graphics pipeline was created withVK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
, and the format of any color attachment isVK_FORMAT_E5B9G9R9_UFLOAT_PACK32
, the corresponding element of thepColorWriteMasks
parameter of vkCmdSetColorWriteMaskEXT must either include all ofVK_COLOR_COMPONENT_R_BIT
,VK_COLOR_COMPONENT_G_BIT
, andVK_COLOR_COMPONENT_B_BIT
, or none of them -
VUID-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-None-09548
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, the value of each element of VkRenderingAttachmentLocationInfoKHR::pColorAttachmentLocations
set by vkCmdSetRenderingAttachmentLocationsKHR must match the value set for the corresponding element in the currently bound pipeline -
VUID-vkCmdDrawIndexed-None-09549
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, input attachment index mappings in the currently bound pipeline must match those set for the current render pass instance via VkRenderingInputAttachmentIndexInfoKHR -
VUID-vkCmdDrawIndexed-None-09642
If the current render pass was begun with vkCmdBeginRendering with theVK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT
flag, the bound graphics pipeline must have been created withVK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT
-
VUID-vkCmdDrawIndexed-None-09643
If the bound graphics pipeline was created withVK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT
, the current render pass must have begun with vkCmdBeginRendering with theVK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT
flag
-
VUID-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
IfrobustBufferAccess
is not enabled, and that pipeline was created without enablingVK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
forvertexInputs
, then for a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in Vertex Input Description -
VUID-vkCmdDrawIndexed-None-07842
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-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-pStrides-04913
If the bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic state enabled, but without theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then vkCmdBindVertexBuffers2EXT must have been called and not subsequently invalidated in the current command buffer prior to this draw command, and thepStrides
parameter of vkCmdBindVertexBuffers2EXT must not beNULL
-
VUID-vkCmdDrawIndexed-None-04914
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled then vkCmdSetVertexInputEXT must have been called and not subsequently invalidated in the current command buffer prior to this draw command -
VUID-vkCmdDrawIndexed-Input-07939
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled and eitherlegacyVertexAttributes
is not enabled or the SPIR-V Type associated with a givenInput
variable of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
is 64-bit, 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage and the most recent call tovkCmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
toVK_PRIMITIVE_TOPOLOGY_PATCH_LIST
, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT
dynamic state enabled then vkCmdSetPatchControlPointsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-04879
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawIndexed-None-09637
If theprimitiveTopologyListRestart
feature is not enabled, the topology 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
, there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must beVK_FALSE
-
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-08885
There must be no shader object bound to either of theVK_SHADER_STAGE_TASK_BIT_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
stages
-
VUID-vkCmdDrawIndexed-None-07312
Ifmaintenance6
is not enabled, a valid index buffer must be bound
-
VUID-vkCmdDrawIndexed-pNext-09461
If the bound graphics pipeline state was created with VkPipelineVertexInputDivisorStateCreateInfoKHR in thepNext
chain of VkGraphicsPipelineCreateInfo::pVertexInputState
, any member of VkPipelineVertexInputDivisorStateCreateInfoKHR::pVertexBindingDivisors
has a value other than1
indivisor
, and VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR::supportsNonZeroFirstInstance
isVK_FALSE
, thenfirstInstance
must be0
-
VUID-vkCmdDrawIndexed-None-09462
If shader objects are used for drawing or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, any member of thepVertexBindingDescriptions
parameter to the vkCmdSetVertexInputEXT call that sets this dynamic state has a value other than1
indivisor
, and VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR::supportsNonZeroFirstInstance
isVK_FALSE
, thenfirstInstance
must be0
-
VUID-vkCmdDrawIndexed-robustBufferAccess2-08798
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
orvkCmdBindIndexBuffer2KHR
. IfvkCmdBindIndexBuffer2KHR
is used to bind the index buffer, the size of the bound index buffer is vkCmdBindIndexBuffer2KHR::size
-
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 draws 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 per draw. -
firstInstance
is the instance ID of the first instance in each draw. -
stride
is the byte stride between consecutive elements ofpVertexInfo
.
The number of draws recorded is drawCount
, with each draw reading,
sequentially, a firstVertex
and a vertexCount
from
pVertexInfo
.
For each recorded draw, primitives are assembled as for vkCmdDraw, and
drawn instanceCount
times with instanceIndex
starting with
firstInstance
and sequentially for each instance.
-
VUID-vkCmdDrawMultiEXT-magFilter-04553
If a VkSampler created withmagFilter
orminFilter
equal toVK_FILTER_LINEAR
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDrawMultiEXT-magFilter-09598
If a VkSampler created withmagFilter
orminFilter
equal toVK_FILTER_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDrawMultiEXT-mipmapMode-04770
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDrawMultiEXT-mipmapMode-09599
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDrawMultiEXT-unnormalizedCoordinates-09635
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’slevelCount
andlayerCount
must be 1 -
VUID-vkCmdDrawMultiEXT-unnormalizedCoordinates-09636
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’sviewType
must beVK_IMAGE_VIEW_TYPE_1D
orVK_IMAGE_VIEW_TYPE_2D
-
VUID-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-cubicRangeClamp-09212
If thecubicRangeClamp
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must not have a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
-
VUID-vkCmdDrawMultiEXT-reductionMode-09213
Any VkImageView being sampled with a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
as a result of this command must sample withVK_FILTER_CUBIC_EXT
-
VUID-vkCmdDrawMultiEXT-selectableCubicWeights-09214
If theselectableCubicWeights
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must have VkSamplerCubicWeightsCreateInfoQCOM::cubicWeights
equal toVK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM
-
VUID-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-08600
For each set n that is statically used by a bound shader, a descriptor set must have been bound to n at the same pipeline bind point, with a VkPipelineLayout that is compatible for set n, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiEXT-None-08601
For each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiEXT-None-10068
For each array of resources that is used by a bound shader, the indices used to access members of the array must be less than the descriptor count for the identified binding in the descriptor sets used by this command -
VUID-vkCmdDrawMultiEXT-maintenance4-08602
If themaintenance4
feature is not enabled, then for each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout and VkPushConstantRange arrays used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-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-08604
Descriptors in bound descriptor buffers, specified via vkCmdSetDescriptorBufferOffsetsEXT, must be valid if they are dynamically used by any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command -
VUID-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-08605
If a descriptor is dynamically used with a VkShaderEXT created with aVkDescriptorSetLayout
that was created withVK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident -
VUID-vkCmdDrawMultiEXT-None-08606
If theshaderObject
feature is not enabled, a valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMultiEXT-None-08608
If a pipeline is bound to the pipeline bind point used by this command, there must not have been any calls to dynamic state setting commands for any state specified statically in the VkPipeline object bound to the pipeline bind point used by this command, since that pipeline was bound -
VUID-vkCmdDrawMultiEXT-None-08609
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used to sample from any VkImage with a VkImageView of the typeVK_IMAGE_VIEW_TYPE_3D
,VK_IMAGE_VIEW_TYPE_CUBE
,VK_IMAGE_VIEW_TYPE_1D_ARRAY
,VK_IMAGE_VIEW_TYPE_2D_ARRAY
orVK_IMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage -
VUID-vkCmdDrawMultiEXT-None-08610
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions withImplicitLod
,Dref
orProj
in their name, in any shader stage -
VUID-vkCmdDrawMultiEXT-None-08611
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions that includes a LOD bias or any offset values, in any shader stage -
VUID-vkCmdDrawMultiEXT-None-08607
If theshaderObject
is enabled, either a valid pipeline must be bound to the pipeline bind point used by this command, or a valid combination of valid and VK_NULL_HANDLE shader objects must be bound to every supported shader stage corresponding to the pipeline bind point used by this command -
VUID-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-None-08612
If therobustBufferAccess
feature is not enabled, and any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a uniform buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-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-None-08613
If therobustBufferAccess
feature is not enabled, and any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a storage buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-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 Compatibility Between SPIR-V Image Dimensions and Vulkan ImageView Types -
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 created with a format other thanVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the image view’s format -
VUID-vkCmdDrawMultiEXT-OpImageWrite-08796
If a VkImageView created with the formatVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have four components -
VUID-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
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDrawMultiEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must not have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDrawMultiEXT-OpImageBlockMatchWindow-09215
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
VUID-vkCmdDrawMultiEXT-OpImageBlockMatchWindow-09216
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format must be a single-component format -
VUID-vkCmdDrawMultiEXT-OpImageBlockMatchWindow-09217
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation -
VUID-vkCmdDrawMultiEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMultiEXT-None-09600
If a descriptor with type equal to any ofVK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE
,VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
, orVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
is accessed as a result of this command, the image subresource identified by that descriptor must be in the image layout identified when the descriptor was written -
VUID-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-pDepthInputAttachmentIndex-09595
Input attachment views accessed in a dynamic render pass with aInputAttachmentIndex
referenced by VkRenderingInputAttachmentIndexInfoKHR, or noInputAttachmentIndex
if VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
or VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
areNULL
, must be created with a VkImageView that is compatible with the corresponding color, depth, or stencil attachment in VkRenderingInfo -
VUID-vkCmdDrawMultiEXT-pDepthInputAttachmentIndex-09596
Input attachment views accessed in a dynamic render pass via a shader object must have anInputAttachmentIndex
if both VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
and VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
are non-NULL
-
VUID-vkCmdDrawMultiEXT-InputAttachmentIndex-09597
If an input attachment view accessed in a dynamic render pass via a shader object has anInputAttachmentIndex
, theInputAttachmentIndex
must match an index in VkRenderingInputAttachmentIndexInfoKHR -
VUID-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 either:-
the
VK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_COLOR_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_DEPTH_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_STENCIL_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 and not subsequently invalidated 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 and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08617
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08618
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08619
If a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07834
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthBiasEnable
isVK_TRUE
, then vkCmdSetDepthBounds or vkCmdSetDepthBias2EXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08621
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT in the current command buffer set any element ofpColorBlendEnables
toVK_TRUE
, and the most recent call to vkCmdSetColorBlendEquationEXT in the current command buffer set the same element ofpColorBlendEquations
to aVkColorBlendEquationEXT
structure with any VkBlendFactor member with a value ofVK_BLEND_FACTOR_CONSTANT_COLOR
,VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR
,VK_BLEND_FACTOR_CONSTANT_ALPHA
, orVK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA
, vkCmdSetBlendConstants must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07836
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthBoundsTestEnable
isVK_TRUE
, then vkCmdSetDepthBounds must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07837
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilCompareMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07838
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilWriteMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07839
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled, the current value of andrasterizerDiscardEnable
isVK_FALSE
, the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilReference must have been called and not subsequently invalidated 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 theVK_EXT_sample_locations
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofsampleLocationsEnable
isVK_TRUE
, then vkCmdSetSampleLocationsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07840
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_CULL_MODE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCullMode must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07841
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_FRONT_FACE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetFrontFace must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07843
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, vkCmdSetDepthTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07844
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthWriteEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07845
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_COMPARE_OP
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthTestEnable
isVK_TRUE
, then vkCmdSetDepthCompareOp must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07846
If thedepthBounds
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthBoundsTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07847
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetStencilTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07848
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_OP
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilOp must have been called and not subsequently invalidated 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-None-08635
If a shader object is bound to any graphics stage, then both vkCmdSetViewportWithCount and vkCmdSetScissorWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must match thescissorCount
parameter ofvkCmdSetScissorWithCount
-
VUID-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-None-09232
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then vkCmdSetViewportWScalingNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08636
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportWScalingNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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-shadingRateImage-09233
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCoarseSampleOrderNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-shadingRateImage-09234
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then vkCmdSetViewportShadingRatePaletteNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08637
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportShadingRatePaletteNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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 theexclusiveScissor
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV
dynamic state enabled, then vkCmdSetExclusiveScissorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07879
If theexclusiveScissor
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
dynamic state enabled, and the most recent call to vkCmdSetExclusiveScissorEnableNV in the current command buffer set any element ofpExclusiveScissorEnables
toVK_TRUE
, then vkCmdSetExclusiveScissorNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-04876
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE
dynamic state enabled, then vkCmdSetRasterizerDiscardEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-04877
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthBiasEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-logicOp-04878
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value oflogicOpEnable
isVK_TRUE
, then vkCmdSetLogicOpEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
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-primitiveFragmentShadingRateWithMultipleViewports-08642
If theprimitiveFragmentShadingRateWithMultipleViewports
limit is not supported, and any shader object bound to a graphics stage writes to thePrimitiveShadingRateKHR
built-in, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must be1
-
VUID-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-None-08643
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then for each color attachment in the render pass, if the corresponding image view’s format features do not containVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then the corresponding member ofpColorBlendEnables
in the most recent call tovkCmdSetColorBlendEnableEXT
in the current command buffer that affected that attachment index must have beenVK_FALSE
-
VUID-vkCmdDrawMultiEXT-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then
rasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
-
VUID-vkCmdDrawMultiEXT-None-08644
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then the most recent call to vkCmdSetRasterizationSamplesEXT in the current command buffer must have set
rasterizationSamples
to be the same as the number of samples for the current render pass color and/or depth/stencil attachments -
-
VUID-vkCmdDrawMultiEXT-None-08876
If a shader object is bound to any graphics stage, the current render pass instance must have been begun with vkCmdBeginRendering -
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 thedynamicRenderingUnusedAttachments
feature is not enabled and the current render pass instance was begun with vkCmdBeginRendering, the currently bound graphics pipeline must have been created with a VkPipelineRenderingCreateInfo::colorAttachmentCount
equal to VkRenderingInfo::colorAttachmentCount
-
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08910
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08912
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
equal to VK_NULL_HANDLE must have the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound pipeline equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08911
If thedynamicRenderingUnusedAttachments
feature is enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline, or the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
, if it exists, must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMultiEXT-colorAttachmentCount-09362
If the current render pass instance was begun with vkCmdBeginRendering, with a VkRenderingInfo::colorAttachmentCount
equal to1
, there is no shader object bound to any graphics stage, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aresolveImageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMultiEXT-None-09363
If there is no shader object bound to any graphics stage, the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCount
equal to1
, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aimageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMultiEXT-None-09364
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled, then vkCmdSetColorBlendEnableEXT must have set the blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-09365
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-09366
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetColorBlendEnableEXT must have set blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDrawMultiEXT-rasterizationSamples-09367
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-09368
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-09369
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-vkCmdDrawMultiEXT-pFragmentSize-09370
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDrawMultiEXT-pFragmentSize-09371
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08646
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteEnableEXT must have been called and not subsequently invalidated 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-08647
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then theattachmentCount
parameter of most recent call tovkCmdSetColorWriteEnableEXT
in the current command buffer must be greater than or equal to the number of color attachments in the current render pass instance -
VUID-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 and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-rasterizerDiscardEnable-09236
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08648
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDiscardRectangleEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08649
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08913
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08914
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
-
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08915
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
, the value of the format must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08916
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08917
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView
-
VUID-vkCmdDrawMultiEXT-dynamicRenderingUnusedAttachments-08918
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pStencilAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::stencilAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the VkFormat used to create VkRenderingInfo::pStencilAttachment->imageView
, the value of the format must beVK_FORMAT_UNDEFINED
-
VUID-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 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 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 a shader object is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_TESSELLATION_DOMAIN_ORIGIN_EXT
dynamic state enabled, then vkCmdSetTessellationDomainOriginEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07620
If thedepthClamp
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLAMP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthClampEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07621
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_POLYGON_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetPolygonModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07622
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetRasterizationSamplesEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07623
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SAMPLE_MASK_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetSampleMaskEXT must have been called and not subsequently invalidated 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-alphaToCoverageEnable-08920
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetAlphaToCoverageEnableEXT in the current command buffer setalphaToCoverageEnable
toVK_TRUE
, then the Fragment Output Interface must contain a variable for the alphaComponent
word inLocation
0 atIndex
0 -
VUID-vkCmdDrawMultiEXT-None-07624
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ALPHA_TO_COVERAGE_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAlphaToCoverageEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07625
If thealphaToOne
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ALPHA_TO_ONE_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAlphaToOneEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07626
If thelogicOp
feature is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_LOGIC_OP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetLogicOpEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08657
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorBlendEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08658
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT for any attachment set that attachment’s value inpColorBlendEnables
toVK_TRUE
, then vkCmdSetColorBlendEquationEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08659
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorWriteMaskEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07630
If thegeometryStreams
feature is enabled, and a shader object is bound to theVK_SHADER_STAGE_GEOMETRY_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZATION_STREAM_EXT
dynamic state enabled, then vkCmdSetRasterizationStreamEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07631
If theVK_EXT_conservative_rasterization
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_CONSERVATIVE_RASTERIZATION_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetConservativeRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07632
If theVK_EXT_conservative_rasterization
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXTRA_PRIMITIVE_OVERESTIMATION_SIZE_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofconservativeRasterizationMode
isVK_CONSERVATIVE_RASTERIZATION_MODE_OVERESTIMATE_EXT
, then vkCmdSetExtraPrimitiveOverestimationSizeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07633
If thedepthClipEnable
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLIP_ENABLE_EXT
dynamic state, then vkCmdSetDepthClipEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08664
If theVK_EXT_sample_locations
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetSampleLocationsEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-rasterizerDiscardEnable-09416
If theVK_EXT_blend_operation_advanced
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then at least one of vkCmdSetColorBlendEquationEXT and vkCmdSetColorBlendAdvancedEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07636
If theVK_EXT_provoking_vertex
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_PROVOKING_VERTEX_MODE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetProvokingVertexModeEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08666
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08667
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08668
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLineRasterizationModeEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08669
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08670
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08671
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetLineStippleEnableEXT must have been called and not subsequently invalidated 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_KHR
dynamic state enabled then vkCmdSetLineStippleKHR must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-08672
If theVK_KHR_line_rasterization
orVK_EXT_line_rasterization
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetLineStippleEnableEXT in the current command buffer setstippledLineEnable
toVK_TRUE
, then vkCmdSetLineStippleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07639
If thedepthClipControl
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_CLIP_NEGATIVE_ONE_TO_ONE_EXT
dynamic state enabled, then vkCmdSetDepthClipNegativeOneToOneEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07640
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_VIEWPORT_W_SCALING_ENABLE_NV
dynamic state enabled, then vkCmdSetViewportWScalingEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07641
If theVK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_VIEWPORT_SWIZZLE_NV
dynamic state enabled, then vkCmdSetViewportSwizzleNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07642
If theVK_NV_fragment_coverage_to_color
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageToColorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07643
If theVK_NV_fragment_coverage_to_color
extension is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_TO_COLOR_LOCATION_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageToColorEnable
isVK_TRUE
, then vkCmdSetCoverageToColorLocationNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07644
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_MODE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageModulationModeNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07645
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageModulationMode
is any value other thanVK_COVERAGE_MODULATION_MODE_NONE_NV
, then vkCmdSetCoverageModulationTableEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07646
If theVK_NV_framebuffer_mixed_samples
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_NV
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofcoverageModulationTableEnable
isVK_TRUE
, then vkCmdSetCoverageModulationTableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07647
If theshadingRateImage
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SHADING_RATE_IMAGE_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetShadingRateImageEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-pipelineFragmentShadingRate-09238
If thepipelineFragmentShadingRate
feature is enabled, a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetFragmentShadingRateKHR must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07648
If therepresentativeFragmentTest
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_REPRESENTATIVE_FRAGMENT_TEST_ENABLE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetRepresentativeFragmentTestEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-07649
If thecoverageReductionMode
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_COVERAGE_REDUCTION_MODE_NV
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCoverageReductionModeNV must have been called and not subsequently invalidated 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, or a shader object is bound to any graphics stage, and the current render pass instance includes a VkMultisampledRenderToSingleSampledInfoEXT structure withmultisampledRenderToSingleSampledEnable
equal toVK_TRUE
, then therasterizationSamples
in the last call to vkCmdSetRasterizationSamplesEXT must be the same as therasterizationSamples
member of that structure -
VUID-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-rasterizerDiscardEnable-09417
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorBlendEnableEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEnableEXT
calls must specify an enable for all active color attachments in the current subpass -
VUID-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-rasterizerDiscardEnable-09418
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and both the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
and there are color attachments bound, then vkCmdSetColorBlendEquationEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorBlendEquationEXT
calls must specify the blend equations for all active color attachments in the current subpass where blending is enabled -
VUID-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-rasterizerDiscardEnable-09419
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteMaskEXT must have been called in the current command buffer prior to this drawing command, and the attachments specified by thefirstAttachment
andattachmentCount
parameters ofvkCmdSetColorWriteMaskEXT
calls must specify the color write mask for all active color attachments in the current subpass -
VUID-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 a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, andsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, and the current subpass has a depth/stencil attachment, then that attachment must have been created with theVK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set -
VUID-vkCmdDrawMultiEXT-sampleLocationsEnable-07485
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.sampleLocationGridSize.width
in the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.width
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equalingrasterizationSamples
-
VUID-vkCmdDrawMultiEXT-sampleLocationsEnable-07486
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
state enabled and theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, then thesampleLocationsInfo.sampleLocationGridSize.height
in the last call to vkCmdSetSampleLocationsEXT must evenly divide VkMultisamplePropertiesEXT::sampleLocationGridSize.height
as returned by vkGetPhysicalDeviceMultisamplePropertiesEXT with asamples
parameter equalingrasterizationSamples
-
VUID-vkCmdDrawMultiEXT-sampleLocationsEnable-07487
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_ENABLE_EXT
state enabled, and ifsampleLocationsEnable
wasVK_TRUE
in the last call to vkCmdSetSampleLocationsEnableEXT, the fragment shader code must not statically use the extended instructionInterpolateAtSample
-
VUID-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 a shader object is bound to any graphics stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_COVERAGE_MODULATION_TABLE_ENABLE_NV
state enabled, and the last call to vkCmdSetCoverageModulationTableEnableNV setcoverageModulationTableEnable
toVK_TRUE
, then thecoverageModulationTableCount
parameter in the last call to vkCmdSetCoverageModulationTableNV must equal the currentrasterizationSamples
divided by the number of color samples in the current subpass -
VUID-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-rasterizerDiscardEnable-09420
If theVK_NV_fragment_coverage_to_color
extension is enabled, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the last call to vkCmdSetCoverageToColorEnableNV set thecoverageToColorEnable
toVK_TRUE
, then the current subpass must have a color attachment at the location selected by the last call to vkCmdSetCoverageToColorLocationNVcoverageToColorLocation
, with a VkFormat ofVK_FORMAT_R8_UINT
,VK_FORMAT_R8_SINT
,VK_FORMAT_R16_UINT
,VK_FORMAT_R16_SINT
,VK_FORMAT_R32_UINT
, orVK_FORMAT_R32_SINT
-
VUID-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-viewportCount-09421
If theVK_NV_viewport_swizzle
extension is enabled, and a shader object is bound to any graphics stage, then theviewportCount
parameter in the last call to vkCmdSetViewportSwizzleNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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_KHR
, 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_KHR
, 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_KHR
, 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_KHR
, 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-08877
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetAttachmentFeedbackLoopEnableEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
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-08684
If there is no bound graphics pipeline,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_VERTEX_BIT
-
VUID-vkCmdDrawMultiEXT-None-08685
If there is no bound graphics pipeline, and thetessellationShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TESSELLATION_CONTROL_BIT
-
VUID-vkCmdDrawMultiEXT-None-08686
If there is no bound graphics pipeline, and thetessellationShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
-
VUID-vkCmdDrawMultiEXT-None-08687
If there is no bound graphics pipeline, and thegeometryShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_GEOMETRY_BIT
-
VUID-vkCmdDrawMultiEXT-None-08688
If there is no bound graphics pipeline,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_FRAGMENT_BIT
-
VUID-vkCmdDrawMultiEXT-None-08689
If there is no bound graphics pipeline, and thetaskShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_TASK_BIT_EXT
-
VUID-vkCmdDrawMultiEXT-None-08690
If there is no bound graphics pipeline, and themeshShader
feature is enabled,vkCmdBindShadersEXT
must have been called in the current command buffer withpStages
with an element ofVK_SHADER_STAGE_MESH_BIT_EXT
-
VUID-vkCmdDrawMultiEXT-None-08693
If there is no bound graphics pipeline, and at least one of thetaskShader
andmeshShader
features is enabled, one of theVK_SHADER_STAGE_VERTEX_BIT
orVK_SHADER_STAGE_MESH_BIT_EXT
stages must have a validVkShaderEXT
bound, and the other must have noVkShaderEXT
bound -
VUID-vkCmdDrawMultiEXT-None-08694
If there is no bound graphics pipeline, and both thetaskShader
andmeshShader
features are enabled, and a validVkShaderEXT
is bound the to theVK_SHADER_STAGE_MESH_BIT_EXT
stage, and thatVkShaderEXT
was created without theVK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, a validVkShaderEXT
must be bound to theVK_SHADER_STAGE_TASK_BIT_EXT
stage -
VUID-vkCmdDrawMultiEXT-None-08695
If there is no bound graphics pipeline, and both thetaskShader
andmeshShader
features are enabled, and a validVkShaderEXT
is bound the to theVK_SHADER_STAGE_MESH_BIT_EXT
stage, and thatVkShaderEXT
was created with theVK_SHADER_CREATE_NO_TASK_SHADER_BIT_EXT
flag, there must be noVkShaderEXT
bound to theVK_SHADER_STAGE_TASK_BIT_EXT
stage -
VUID-vkCmdDrawMultiEXT-None-08696
If there is no bound graphics pipeline, and a validVkShaderEXT
is bound to theVK_SHADER_STAGE_VERTEX_BIT
stage, there must be noVkShaderEXT
bound to either theVK_SHADER_STAGE_TASK_BIT_EXT
stage or theVK_SHADER_STAGE_MESH_BIT_EXT
stage -
VUID-vkCmdDrawMultiEXT-None-08698
If any graphics shader is bound which was created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, then all shaders created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag in the same vkCreateShadersEXT call must also be bound -
VUID-vkCmdDrawMultiEXT-None-08699
If any graphics shader is bound which was created with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag, any stages in between stages whose shaders which did not create a shader with theVK_SHADER_CREATE_LINK_STAGE_BIT_EXT
flag as part of the same vkCreateShadersEXT call must not have anyVkShaderEXT
bound -
VUID-vkCmdDrawMultiEXT-None-08878
All bound graphics shader objects must have been created with identical or identically defined push constant ranges -
VUID-vkCmdDrawMultiEXT-None-08879
All bound graphics shader objects must have been created with identical or identically defined arrays of descriptor set layouts -
VUID-vkCmdDrawMultiEXT-colorAttachmentCount-09372
If the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCount
equal to1
, a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, and a fragment shader is bound, it must not declare theDepthReplacing
orStencilRefReplacingEXT
execution modes -
VUID-vkCmdDrawMultiEXT-pDynamicStates-08715
If the bound graphics pipeline state includes a fragment shader stage, was created withVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
set in VkPipelineDynamicStateCreateInfo::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpDepthAttachmentReadEXT
, thedepthWriteEnable
parameter in the last call to vkCmdSetDepthWriteEnable must beVK_FALSE
-
VUID-vkCmdDrawMultiEXT-pDynamicStates-08716
If the bound graphics pipeline state includes a fragment shader stage, was created withVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
set in VkPipelineDynamicStateCreateInfo::pDynamicStates
, and the fragment shader declares theEarlyFragmentTests
execution mode and usesOpStencilAttachmentReadEXT
, thewriteMask
parameter in the last call to vkCmdSetStencilWriteMask must be0
-
VUID-vkCmdDrawMultiEXT-None-09116
If a shader object is bound to any graphics stage or the currently bound graphics pipeline was created withVK_DYNAMIC_STATE_COLOR_WRITE_MASK_EXT
, and the format of any color attachment isVK_FORMAT_E5B9G9R9_UFLOAT_PACK32
, the corresponding element of thepColorWriteMasks
parameter of vkCmdSetColorWriteMaskEXT must either include all ofVK_COLOR_COMPONENT_R_BIT
,VK_COLOR_COMPONENT_G_BIT
, andVK_COLOR_COMPONENT_B_BIT
, or none of them -
VUID-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-None-09548
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, the value of each element of VkRenderingAttachmentLocationInfoKHR::pColorAttachmentLocations
set by vkCmdSetRenderingAttachmentLocationsKHR must match the value set for the corresponding element in the currently bound pipeline -
VUID-vkCmdDrawMultiEXT-None-09549
If the current render pass was begun with vkCmdBeginRendering, and there is no shader object bound to any graphics stage, input attachment index mappings in the currently bound pipeline must match those set for the current render pass instance via VkRenderingInputAttachmentIndexInfoKHR -
VUID-vkCmdDrawMultiEXT-None-09642
If the current render pass was begun with vkCmdBeginRendering with theVK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT
flag, the bound graphics pipeline must have been created withVK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT
-
VUID-vkCmdDrawMultiEXT-None-09643
If the bound graphics pipeline was created withVK_PIPELINE_CREATE_2_ENABLE_LEGACY_DITHERING_BIT_EXT
, the current render pass must have begun with vkCmdBeginRendering with theVK_RENDERING_ENABLE_LEGACY_DITHERING_BIT_EXT
flag
-
VUID-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
IfrobustBufferAccess
is not enabled, and that pipeline was created without enablingVK_PIPELINE_ROBUSTNESS_BUFFER_BEHAVIOR_ROBUST_BUFFER_ACCESS_EXT
forvertexInputs
, then for a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in Vertex Input Description -
VUID-vkCmdDrawMultiEXT-None-07842
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_TOPOLOGY
dynamic state enabled then vkCmdSetPrimitiveTopology must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-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-pStrides-04913
If the bound graphics pipeline was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic state enabled, but without theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, then vkCmdBindVertexBuffers2EXT must have been called and not subsequently invalidated in the current command buffer prior to this draw command, and thepStrides
parameter of vkCmdBindVertexBuffers2EXT must not beNULL
-
VUID-vkCmdDrawMultiEXT-None-04914
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled then vkCmdSetVertexInputEXT must have been called and not subsequently invalidated in the current command buffer prior to this draw command -
VUID-vkCmdDrawMultiEXT-Input-07939
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled and eitherlegacyVertexAttributes
is not enabled or the SPIR-V Type associated with a givenInput
variable of the correspondingLocation
in theVertex
Execution
Model
OpEntryPoint
is 64-bit, 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state 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 there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage and the most recent call tovkCmdSetPrimitiveTopology
in the current command buffer setprimitiveTopology
toVK_PRIMITIVE_TOPOLOGY_PATCH_LIST
, or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT
dynamic state enabled then vkCmdSetPatchControlPointsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-04879
If there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiEXT-None-09637
If theprimitiveTopologyListRestart
feature is not enabled, the topology 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
, there is a shader object bound to theVK_SHADER_STAGE_VERTEX_BIT
stage or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE
dynamic state enabled then vkCmdSetPrimitiveRestartEnable must beVK_FALSE
-
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-08885
There must be no shader object bound to either of theVK_SHADER_STAGE_TASK_BIT_EXT
orVK_SHADER_STAGE_MESH_BIT_EXT
stages
-
VUID-vkCmdDrawMultiEXT-pNext-09461
If the bound graphics pipeline state was created with VkPipelineVertexInputDivisorStateCreateInfoKHR in thepNext
chain of VkGraphicsPipelineCreateInfo::pVertexInputState
, any member of VkPipelineVertexInputDivisorStateCreateInfoKHR::pVertexBindingDivisors
has a value other than1
indivisor
, and VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR::supportsNonZeroFirstInstance
isVK_FALSE
, thenfirstInstance
must be0
-
VUID-vkCmdDrawMultiEXT-None-09462
If shader objects are used for drawing or the bound graphics pipeline state was created with theVK_DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, any member of thepVertexBindingDescriptions
parameter to the vkCmdSetVertexInputEXT call that sets this dynamic state has a value other than1
indivisor
, and VkPhysicalDeviceVertexAttributeDivisorPropertiesKHR::supportsNonZeroFirstInstance
isVK_FALSE
, thenfirstInstance
must be0
-
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-drawCount-09628
IfdrawCount
is greater than1
,stride
must be a multiple of4
and must be greater than or equal tosizeof
(VkMultiDrawInfoEXT
)
-
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 draws 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 per draw. -
firstInstance
is the instance ID of the first instance in each 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.
The number of draws recorded is drawCount
, with each draw reading,
sequentially, a firstIndex
and an indexCount
from
pIndexInfo
.
For each recorded draw, primitives are assembled as for
vkCmdDrawIndexed, and drawn instanceCount
times with
instanceIndex
starting with firstInstance
and sequentially for
each instance.
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
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDrawMultiIndexedEXT-magFilter-09598
If a VkSampler created withmagFilter
orminFilter
equal toVK_FILTER_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDrawMultiIndexedEXT-mipmapMode-04770
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
,reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
, andcompareEnable
equal toVK_FALSE
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
-
VUID-vkCmdDrawMultiIndexedEXT-mipmapMode-09599
If a VkSampler created withmipmapMode
equal toVK_SAMPLER_MIPMAP_MODE_LINEAR
andreductionMode
equal to eitherVK_SAMPLER_REDUCTION_MODE_MIN
orVK_SAMPLER_REDUCTION_MODE_MAX
is used to sample a VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT
-
VUID-vkCmdDrawMultiIndexedEXT-unnormalizedCoordinates-09635
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’slevelCount
andlayerCount
must be 1 -
VUID-vkCmdDrawMultiIndexedEXT-unnormalizedCoordinates-09636
If a VkSampler created withunnormalizedCoordinates
equal toVK_TRUE
is used to sample a VkImageView as a result of this command, then the image view’sviewType
must beVK_IMAGE_VIEW_TYPE_1D
orVK_IMAGE_VIEW_TYPE_2D
-
VUID-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-cubicRangeClamp-09212
If thecubicRangeClamp
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must not have a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
-
VUID-vkCmdDrawMultiIndexedEXT-reductionMode-09213
Any VkImageView being sampled with a VkSamplerReductionModeCreateInfo::reductionMode
equal toVK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
as a result of this command must sample withVK_FILTER_CUBIC_EXT
-
VUID-vkCmdDrawMultiIndexedEXT-selectableCubicWeights-09214
If theselectableCubicWeights
feature is not enabled, then any VkImageView being sampled withVK_FILTER_CUBIC_EXT
as a result of this command must have VkSamplerCubicWeightsCreateInfoQCOM::cubicWeights
equal toVK_CUBIC_FILTER_WEIGHTS_CATMULL_ROM_QCOM
-
VUID-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-08600
For each set n that is statically used by a bound shader, a descriptor set must have been bound to n at the same pipeline bind point, with a VkPipelineLayout that is compatible for set n, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiIndexedEXT-None-08601
For each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout array used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiIndexedEXT-None-10068
For each array of resources that is used by a bound shader, the indices used to access members of the array must be less than the descriptor count for the identified binding in the descriptor sets used by this command -
VUID-vkCmdDrawMultiIndexedEXT-maintenance4-08602
If themaintenance4
feature is not enabled, then for each push constant that is statically used by a bound shader, a push constant value must have been set for the same pipeline bind point, with a VkPipelineLayout that is compatible for push constants, with the VkPipelineLayout used to create the current VkPipeline or the VkDescriptorSetLayout and VkPushConstantRange arrays used to create the current VkShaderEXT , as described in Pipeline Layout Compatibility -
VUID-vkCmdDrawMultiIndexedEXT-None-08114
Descriptors in each bound descriptor set, specified via vkCmdBindDescriptorSets, must be valid as described by descriptor validity if they are statically used by the VkPipeline bound to the pipeline bind point used by this command and the bound VkPipeline was not created withVK_PIPELINE_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
-
VUID-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-08604
Descriptors in bound descriptor buffers, specified via vkCmdSetDescriptorBufferOffsetsEXT, must be valid if they are dynamically used by any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command -
VUID-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-08605
If a descriptor is dynamically used with a VkShaderEXT created with aVkDescriptorSetLayout
that was created withVK_DESCRIPTOR_SET_LAYOUT_CREATE_DESCRIPTOR_BUFFER_BIT_EXT
, the descriptor memory must be resident -
VUID-vkCmdDrawMultiIndexedEXT-None-08606
If theshaderObject
feature is not enabled, a valid pipeline must be bound to the pipeline bind point used by this command -
VUID-vkCmdDrawMultiIndexedEXT-None-08608
If a pipeline is bound to the pipeline bind point used by this command, there must not have been any calls to dynamic state setting commands for any state specified statically in the VkPipeline object bound to the pipeline bind point used by this command, since that pipeline was bound -
VUID-vkCmdDrawMultiIndexedEXT-None-08609
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used to sample from any VkImage with a VkImageView of the typeVK_IMAGE_VIEW_TYPE_3D
,VK_IMAGE_VIEW_TYPE_CUBE
,VK_IMAGE_VIEW_TYPE_1D_ARRAY
,VK_IMAGE_VIEW_TYPE_2D_ARRAY
orVK_IMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage -
VUID-vkCmdDrawMultiIndexedEXT-None-08610
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions withImplicitLod
,Dref
orProj
in their name, in any shader stage -
VUID-vkCmdDrawMultiIndexedEXT-None-08611
If the VkPipeline object bound to the pipeline bind point used by this command or any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a VkSampler object that uses unnormalized coordinates, that sampler must not be used with any of the SPIR-VOpImageSample*
orOpImageSparseSample*
instructions that includes a LOD bias or any offset values, in any shader stage -
VUID-vkCmdDrawMultiIndexedEXT-None-08607
If theshaderObject
is enabled, either a valid pipeline must be bound to the pipeline bind point used by this command, or a valid combination of valid and VK_NULL_HANDLE shader objects must be bound to every supported shader stage corresponding to the pipeline bind point used by this command -
VUID-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-None-08612
If therobustBufferAccess
feature is not enabled, and any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a uniform buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-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-None-08613
If therobustBufferAccess
feature is not enabled, and any VkShaderEXT bound to a stage corresponding to the pipeline bind point used by this command accesses a storage buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point -
VUID-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 Compatibility Between SPIR-V Image Dimensions and Vulkan ImageView Types -
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 created with a format other thanVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have at least as many components as the image view’s format -
VUID-vkCmdDrawMultiIndexedEXT-OpImageWrite-08796
If a VkImageView created with the formatVK_FORMAT_A8_UNORM_KHR
is accessed usingOpImageWrite
as a result of this command, then theType
of theTexel
operand of that instruction must have four components -
VUID-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
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDrawMultiIndexedEXT-OpImageWeightedSampleQCOM-06978
If any command other thanOpImageWeightedSampleQCOM
,OpImageBoxFilterQCOM
,OpImageBlockMatchWindowSSDQCOM
,OpImageBlockMatchWindowSADQCOM
,OpImageBlockMatchGatherSSDQCOM
,OpImageBlockMatchGatherSADQCOM
,OpImageBlockMatchSSDQCOM
, orOpImageBlockMatchSADQCOM
uses a VkSampler as a result of this command, then the sampler must not have been created withVK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
-
VUID-vkCmdDrawMultiIndexedEXT-OpImageBlockMatchWindow-09215
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format features must containVK_FORMAT_FEATURE_2_BLOCK_MATCHING_BIT_QCOM
-
VUID-vkCmdDrawMultiIndexedEXT-OpImageBlockMatchWindow-09216
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
instruction is used to read from an VkImageView as a result of this command, then the image view’s format must be a single-component format -
VUID-vkCmdDrawMultiIndexedEXT-OpImageBlockMatchWindow-09217
If aOpImageBlockMatchWindow*QCOM
orOpImageBlockMatchGather*QCOM
read from a reference image as result of this command, then the specified reference coordinates must not fail integer texel coordinate validation -
VUID-vkCmdDrawMultiIndexedEXT-None-07288
Any shader invocation executed by this command must terminate -
VUID-vkCmdDrawMultiIndexedEXT-None-09600
If a descriptor with type equal to any ofVK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM
,VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE
,VK_DESCRIPTOR_TYPE_STORAGE_IMAGE
, orVK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT
is accessed as a result of this command, the image subresource identified by that descriptor must be in the image layout identified when the descriptor was written -
VUID-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-pDepthInputAttachmentIndex-09595
Input attachment views accessed in a dynamic render pass with aInputAttachmentIndex
referenced by VkRenderingInputAttachmentIndexInfoKHR, or noInputAttachmentIndex
if VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
or VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
areNULL
, must be created with a VkImageView that is compatible with the corresponding color, depth, or stencil attachment in VkRenderingInfo -
VUID-vkCmdDrawMultiIndexedEXT-pDepthInputAttachmentIndex-09596
Input attachment views accessed in a dynamic render pass via a shader object must have anInputAttachmentIndex
if both VkRenderingInputAttachmentIndexInfoKHR:pDepthInputAttachmentIndex
and VkRenderingInputAttachmentIndexInfoKHR:pStencilInputAttachmentIndex
are non-NULL
-
VUID-vkCmdDrawMultiIndexedEXT-InputAttachmentIndex-09597
If an input attachment view accessed in a dynamic render pass via a shader object has anInputAttachmentIndex
, theInputAttachmentIndex
must match an index in VkRenderingInputAttachmentIndexInfoKHR -
VUID-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 either:-
the
VK_PIPELINE_CREATE_COLOR_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_COLOR_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_DEPTH_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 either:-
the
VK_PIPELINE_CREATE_DEPTH_STENCIL_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
is set on the currently bound pipeline or -
the last call to vkCmdSetAttachmentFeedbackLoopEnableEXT included
VK_IMAGE_ASPECT_STENCIL_BIT
and-
there is no currently bound graphics pipeline or
-
the currently bound graphics pipeline was created with
VK_DYNAMIC_STATE_ATTACHMENT_FEEDBACK_LOOP_ENABLE_EXT
-
it must not be accessed in any way other than as an attachment by this command
-
-
VUID-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 and not subsequently invalidated 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 and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08617
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPolygonModeEXT in the current command buffer setpolygonMode
toVK_POLYGON_MODE_LINE
, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08618
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetPrimitiveTopology in the current command buffer setprimitiveTopology
to any line topology, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08619
If a shader object that outputs line primitives is bound to theVK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT
orVK_SHADER_STAGE_GEOMETRY_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, vkCmdSetLineWidth must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07834
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BIAS
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthBiasEnable
isVK_TRUE
, then vkCmdSetDepthBounds or vkCmdSetDepthBias2EXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08621
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetColorBlendEnableEXT in the current command buffer set any element ofpColorBlendEnables
toVK_TRUE
, and the most recent call to vkCmdSetColorBlendEquationEXT in the current command buffer set the same element ofpColorBlendEquations
to aVkColorBlendEquationEXT
structure with any VkBlendFactor member with a value ofVK_BLEND_FACTOR_CONSTANT_COLOR
,VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR
,VK_BLEND_FACTOR_CONSTANT_ALPHA
, orVK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA
, vkCmdSetBlendConstants must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07836
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthBoundsTestEnable
isVK_TRUE
, then vkCmdSetDepthBounds must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07837
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_COMPARE_MASK
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilCompareMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07838
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_WRITE_MASK
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilWriteMask must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07839
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_REFERENCE
dynamic state enabled, the current value of andrasterizerDiscardEnable
isVK_FALSE
, the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilReference must have been called and not subsequently invalidated 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 theVK_EXT_sample_locations
extension is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_SAMPLE_LOCATIONS_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofsampleLocationsEnable
isVK_TRUE
, then vkCmdSetSampleLocationsEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07840
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_CULL_MODE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetCullMode must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07841
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_FRONT_FACE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetFrontFace must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07843
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, vkCmdSetDepthTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07844
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_WRITE_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthWriteEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07845
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_COMPARE_OP
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value ofdepthTestEnable
isVK_TRUE
, then vkCmdSetDepthCompareOp must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07846
If thedepthBounds
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BOUNDS_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthBoundsTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07847
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_TEST_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetStencilTestEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07848
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_STENCIL_OP
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, the current value ofstencilTestEnable
isVK_TRUE
, then vkCmdSetStencilOp must have been called and not subsequently invalidated 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-None-08635
If a shader object is bound to any graphics stage, then both vkCmdSetViewportWithCount and vkCmdSetScissorWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must match thescissorCount
parameter ofvkCmdSetScissorWithCount
-
VUID-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-None-09232
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then vkCmdSetViewportWScalingNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08636
If theVK_NV_clip_space_w_scaling
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetViewportWScalingEnableNV in the current command buffer setviewportWScalingEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportWScalingNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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-shadingRateImage-09233
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetCoarseSampleOrderNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-shadingRateImage-09234
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then vkCmdSetViewportShadingRatePaletteNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08637
If theshadingRateImage
feature is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetShadingRateImageEnableNV in the current command buffer setshadingRateImageEnable
toVK_TRUE
, then theviewportCount
parameter in the last call to vkCmdSetViewportShadingRatePaletteNV must be greater than or equal to theviewportCount
parameter in the last call to vkCmdSetViewportWithCount -
VUID-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 theexclusiveScissor
feature is enabled, and a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_ENABLE_NV
dynamic state enabled, then vkCmdSetExclusiveScissorEnableNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-07879
If theexclusiveScissor
feature is enabled, a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_EXCLUSIVE_SCISSOR_NV
dynamic state enabled, and the most recent call to vkCmdSetExclusiveScissorEnableNV in the current command buffer set any element ofpExclusiveScissorEnables
toVK_TRUE
, then vkCmdSetExclusiveScissorNV must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-04876
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE
dynamic state enabled, then vkCmdSetRasterizerDiscardEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-04877
If a shader object is bound to any graphics stage or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_DEPTH_BIAS_ENABLE
dynamic state enabled, and the current value ofrasterizerDiscardEnable
isVK_FALSE
, then vkCmdSetDepthBiasEnable must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-logicOp-04878
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
or a graphics pipeline is bound which was created with theVK_DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled, the current value ofrasterizerDiscardEnable
isVK_FALSE
, and the current value oflogicOpEnable
isVK_TRUE
, then vkCmdSetLogicOpEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
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-primitiveFragmentShadingRateWithMultipleViewports-08642
If theprimitiveFragmentShadingRateWithMultipleViewports
limit is not supported, and any shader object bound to a graphics stage writes to thePrimitiveShadingRateKHR
built-in, then vkCmdSetViewportWithCount must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofvkCmdSetViewportWithCount
must be1
-
VUID-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-None-08643
If a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then for each color attachment in the render pass, if the corresponding image view’s format features do not containVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then the corresponding member ofpColorBlendEnables
in the most recent call tovkCmdSetColorBlendEnableEXT
in the current command buffer that affected that attachment index must have beenVK_FALSE
-
VUID-vkCmdDrawMultiIndexedEXT-multisampledRenderToSingleSampled-07284
If rasterization is not disabled in the bound graphics pipeline, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then
rasterizationSamples
for the currently bound graphics pipeline must be the same as the current subpass color and/or depth/stencil attachments -
-
VUID-vkCmdDrawMultiIndexedEXT-None-08644
If a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and none of the following is enabled:-
the
VK_AMD_mixed_attachment_samples
extension -
the
VK_NV_framebuffer_mixed_samples
extension -
the
multisampledRenderToSingleSampled
feature
then the most recent call to vkCmdSetRasterizationSamplesEXT in the current command buffer must have set
rasterizationSamples
to be the same as the number of samples for the current render pass color and/or depth/stencil attachments -
-
VUID-vkCmdDrawMultiIndexedEXT-None-08876
If a shader object is bound to any graphics stage, the current render pass instance must have been begun with vkCmdBeginRendering -
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 thedynamicRenderingUnusedAttachments
feature is not enabled and the current render pass instance was begun with vkCmdBeginRendering, the currently bound graphics pipeline must have been created with a VkPipelineRenderingCreateInfo::colorAttachmentCount
equal to VkRenderingInfo::colorAttachmentCount
-
VUID-vkCmdDrawMultiIndexedEXT-dynamicRenderingUnusedAttachments-08910
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMultiIndexedEXT-dynamicRenderingUnusedAttachments-08912
If thedynamicRenderingUnusedAttachments
feature is not enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
equal to VK_NULL_HANDLE must have the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound pipeline equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMultiIndexedEXT-dynamicRenderingUnusedAttachments-08911
If thedynamicRenderingUnusedAttachments
feature is enabled, and the current render pass instance was begun with vkCmdBeginRendering and VkRenderingInfo::colorAttachmentCount
greater than0
, then each element of the VkRenderingInfo::pColorAttachments
array with animageView
not equal to VK_NULL_HANDLE must have been created with a VkFormat equal to the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
used to create the currently bound graphics pipeline, or the corresponding element of VkPipelineRenderingCreateInfo::pColorAttachmentFormats
, if it exists, must beVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMultiIndexedEXT-colorAttachmentCount-09362
If the current render pass instance was begun with vkCmdBeginRendering, with a VkRenderingInfo::colorAttachmentCount
equal to1
, there is no shader object bound to any graphics stage, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aresolveImageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMultiIndexedEXT-None-09363
If there is no shader object bound to any graphics stage, the current render pass instance was begun with vkCmdBeginRendering and a VkRenderingInfo::colorAttachmentCount
equal to1
, and a color attachment with a resolve mode ofVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
, each element of the VkRenderingInfo::pColorAttachments
array with aimageView
not equal to VK_NULL_HANDLE must have been created with an image created with a VkExternalFormatANDROID::externalFormat
value equal to the VkExternalFormatANDROID::externalFormat
value used to create the currently bound graphics pipeline -
VUID-vkCmdDrawMultiIndexedEXT-None-09364
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_COLOR_BLEND_ENABLE_EXT
dynamic state enabled, then vkCmdSetColorBlendEnableEXT must have set the blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-09365
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_RASTERIZATION_SAMPLES_EXT
dynamic state enabled, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-09366
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetColorBlendEnableEXT must have set blend enable toVK_FALSE
prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-rasterizationSamples-09367
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetRasterizationSamplesEXT must have setrasterizationSamples
toVK_SAMPLE_COUNT_1_BIT
prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-09368
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-09369
If the current render pass instance was begun with vkCmdBeginRendering, there is no shader object bound to any graphics stage, and the currently bound graphics pipeline was created with a non-zero VkExternalFormatANDROID::externalFormat
value and with theVK_DYNAMIC_STATE_FRAGMENT_SHADING_RATE_KHR
dynamic state enabled, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-pFragmentSize-09370
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->width
to1
prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-pFragmentSize-09371
If there is a shader object bound to any graphics stage, and the current render pass includes a color attachment that uses theVK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID
resolve mode, then vkCmdSetFragmentShadingRateKHR must have setpFragmentSize->height
to1
prior to this drawing command -
VUID-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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08646
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetColorWriteEnableEXT must have been called and not subsequently invalidated 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-08647
If thecolorWriteEnable
feature is enabled on the device, and a shader object is bound to theVK_SHADER_STAGE_FRAGMENT_BIT
stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then theattachmentCount
parameter of most recent call tovkCmdSetColorWriteEnableEXT
in the current command buffer must be greater than or equal to the number of color attachments in the current render pass instance -
VUID-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 and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-rasterizerDiscardEnable-09236
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08648
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, then vkCmdSetDiscardRectangleEnableEXT must have been called and not subsequently invalidated 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 and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-None-08649
If theVK_EXT_discard_rectangles
extension is enabled, and a shader object is bound to any graphics stage, and the most recent call to vkCmdSetRasterizerDiscardEnable in the current command buffer setrasterizerDiscardEnable
toVK_FALSE
, and the most recent call to vkCmdSetDiscardRectangleEnableEXT in the current command buffer setdiscardRectangleEnable
toVK_TRUE
, then vkCmdSetDiscardRectangleModeEXT must have been called and not subsequently invalidated in the current command buffer prior to this drawing command -
VUID-vkCmdDrawMultiIndexedEXT-dynamicRenderingUnusedAttachments-08913
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal toVK_FORMAT_UNDEFINED
-
VUID-vkCmdDrawMultiIndexedEXT-dynamicRenderingUnusedAttachments-08914
If current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is not enabled, and VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to the VkFormat used to create VkRenderingInfo::pDepthAttachment->imageView
-
VUID-vkCmdDrawMultiIndexedEXT-dynamicRenderingUnusedAttachments-08915
If the current render pass instance was begun with vkCmdBeginRendering, thedynamicRenderingUnusedAttachments
feature is enabled, VkRenderingInfo::pDepthAttachment->imageView
was not VK_NULL_HANDLE, and the value of VkPipelineRenderingCreateInfo::depthAttachmentFormat
used to create the currently bound graphics pipeline was not equal to the