Safe Haskell | None |
---|---|
Language | Haskell2010 |
Name
VK_EXT_multi_draw - device extension
VK_EXT_multi_draw
- Name String
VK_EXT_multi_draw
- Extension Type
- Device extension
- Registered Extension Number
- 393
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Contact
Other Extension Metadata
- Last Modified Date
- 2021-05-19
- IP Status
- No known IP claims.
- Contributors
- Mike Blumenkrantz, VALVE
- Piers Daniell, NVIDIA
- Jason Ekstrand, INTEL
- Spencer Fricke, SAMSUNG
- Ricardo Garcia, IGALIA
- Jon Leech, KHRONOS
- Stu Smith, AMD
Description
Processing multiple draw commands in sequence incurs measurable overhead
within drivers due to repeated state checks and updates during dispatch.
This extension enables passing the entire sequence of draws directly to
the driver in order to avoid any such overhead, using an array of
MultiDrawInfoEXT
or MultiDrawIndexedInfoEXT
structs with
cmdDrawMultiEXT
or cmdDrawMultiIndexedEXT
, respectively. These
functions could be used any time multiple draw commands are being
recorded without any state changes between them in order to maximize
performance.
New Commands
New Structures
MultiDrawInfoEXT
Extending
PhysicalDeviceFeatures2
,DeviceCreateInfo
:Extending
PhysicalDeviceProperties2
:
New Enum Constants
EXT_MULTI_DRAW_SPEC_VERSION
Extending
StructureType
:
New or Modified Built-In Variables
- (modified)
DrawIndex
Version History
Revision 1, 2021-01-20 (Mike Blumenkrantz)
- Initial version
See Also
MultiDrawIndexedInfoEXT
, MultiDrawInfoEXT
,
PhysicalDeviceMultiDrawFeaturesEXT
,
PhysicalDeviceMultiDrawPropertiesEXT
, cmdDrawMultiEXT
,
cmdDrawMultiIndexedEXT
Document Notes
For more information, see the Vulkan Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- cmdDrawMultiEXT :: forall io. MonadIO io => CommandBuffer -> ("vertexInfo" ::: Vector MultiDrawInfoEXT) -> ("instanceCount" ::: Word32) -> ("firstInstance" ::: Word32) -> ("stride" ::: Word32) -> io ()
- cmdDrawMultiIndexedEXT :: forall io. MonadIO io => CommandBuffer -> ("indexInfo" ::: Vector MultiDrawIndexedInfoEXT) -> ("instanceCount" ::: Word32) -> ("firstInstance" ::: Word32) -> ("stride" ::: Word32) -> ("vertexOffset" ::: Maybe Int32) -> io ()
- data MultiDrawInfoEXT = MultiDrawInfoEXT {}
- data MultiDrawIndexedInfoEXT = MultiDrawIndexedInfoEXT {}
- data PhysicalDeviceMultiDrawPropertiesEXT = PhysicalDeviceMultiDrawPropertiesEXT {}
- data PhysicalDeviceMultiDrawFeaturesEXT = PhysicalDeviceMultiDrawFeaturesEXT {}
- type EXT_MULTI_DRAW_SPEC_VERSION = 1
- pattern EXT_MULTI_DRAW_SPEC_VERSION :: forall a. Integral a => a
- type EXT_MULTI_DRAW_EXTENSION_NAME = "VK_EXT_multi_draw"
- pattern EXT_MULTI_DRAW_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
:: forall io. MonadIO io | |
=> CommandBuffer |
|
-> ("vertexInfo" ::: Vector MultiDrawInfoEXT) |
|
-> ("instanceCount" ::: Word32) |
|
-> ("firstInstance" ::: Word32) |
|
-> ("stride" ::: Word32) |
|
-> io () |
vkCmdDrawMultiEXT - Draw primitives
Description
drawCount
draws are executed with parameters taken from pVertexInfo
.
The number of draw commands recorded is drawCount
, with each command
reading, sequentially, a firstVertex
and a vertexCount
from
pVertexInfo
.
Valid Usage
- If a
Sampler
created withmagFilter
orminFilter
equal toFILTER_LINEAR
andcompareEnable
equal toFALSE
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
- If a
Sampler
created withmipmapMode
equal toSAMPLER_MIPMAP_MODE_LINEAR
andcompareEnable
equal toFALSE
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
- If a
ImageView
is accessed using atomic operations as a result of this command, then the image view’s format features must containFORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
- If a
ImageView
is sampled withFILTER_CUBIC_EXT
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
- Any
ImageView
being sampled withFILTER_CUBIC_EXT
as a result of this command must have aImageViewType
and format that supports cubic filtering, as specified byFilterCubicImageViewImageFormatPropertiesEXT
::filterCubic
returned bygetPhysicalDeviceImageFormatProperties2
- Any
ImageView
being sampled withFILTER_CUBIC_EXT
with a reduction mode of eitherSAMPLER_REDUCTION_MODE_MIN
orSAMPLER_REDUCTION_MODE_MAX
as a result of this command must have aImageViewType
and format that supports cubic filtering together with minmax filtering, as specified byFilterCubicImageViewImageFormatPropertiesEXT
::filterCubicMinmax
returned bygetPhysicalDeviceImageFormatProperties2
- Any
Image
created with aImageCreateInfo
::flags
containingIMAGE_CREATE_CORNER_SAMPLED_BIT_NV
sampled as a result of this command must only be sampled using aSamplerAddressMode
ofSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE
- Any
ImageView
orBufferView
being written as a storage image or storage texel buffer where the image format field of theOpTypeImage
isUnknown
must have image format features that supportFORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR
- Any
ImageView
orBufferView
being read as a storage image or storage texel buffer where the image format field of theOpTypeImage
isUnknown
must have image format features that supportFORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT_KHR
- For each set n that is
statically used by the
Pipeline
bound to the pipeline bind point used by this command, a descriptor set must have been bound to n at the same pipeline bind point, with aPipelineLayout
that is compatible for set n, with thePipelineLayout
used to create the currentPipeline
, as described in ??? - If the
maintenance4
feature is not enabled, then for each push constant that is
statically used by the
Pipeline
bound to the pipeline bind point used by this command, a push constant value must have been set for the same pipeline bind point, with aPipelineLayout
that is compatible for push constants, with thePipelineLayout
used to create the currentPipeline
, as described in ??? - Descriptors in each bound
descriptor set, specified via
cmdBindDescriptorSets
, must be valid if they are statically used by thePipeline
bound to the pipeline bind point used by this command - A valid pipeline must be bound to the pipeline bind point used by this command
- If the
Pipeline
object bound to the pipeline bind point used by this command requires any dynamic state, that state must have been set or inherited (if theVK_NV_inherited_viewport_scissor
extension is enabled) forcommandBuffer
, and done so after any previously bound pipeline with the corresponding state not specified as dynamic - There must not have been any
calls to dynamic state setting commands for any state not specified
as dynamic in the
Pipeline
object bound to the pipeline bind point used by this command, since that pipeline was bound - If the
Pipeline
object bound to the pipeline bind point used by this command accesses aSampler
object that uses unnormalized coordinates, that sampler must not be used to sample from anyImage
with aImageView
of the typeIMAGE_VIEW_TYPE_3D
,IMAGE_VIEW_TYPE_CUBE
,IMAGE_VIEW_TYPE_1D_ARRAY
,IMAGE_VIEW_TYPE_2D_ARRAY
orIMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage - If the
Pipeline
object bound to the pipeline bind point used by this command accesses aSampler
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 - If the
Pipeline
object bound to the pipeline bind point used by this command accesses aSampler
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 - If the
robust buffer access
feature is not enabled, and if the
Pipeline
object bound to the pipeline bind point used by this command accesses a uniform buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If the
robust buffer access
feature is not enabled, and if the
Pipeline
object bound to the pipeline bind point used by this command accesses a storage buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If
commandBuffer
is an unprotected command buffer, any resource accessed by thePipeline
object bound to the pipeline bind point used by this command must not be a protected resource - If a
ImageView
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 - If a
BufferView
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 - If a
ImageView
with aFormat
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 - If a
ImageView
with aFormat
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 - If a
BufferView
with aFormat
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 - If a
BufferView
with aFormat
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 - If the
sparseImageInt64Atomics
feature is not enabled,
Image
objects created with theIMAGE_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command - If the
sparseImageInt64Atomics
feature is not enabled,
Buffer
objects created with theBUFFER_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command - The current render pass
must be
compatible
with the
renderPass
member of theGraphicsPipelineCreateInfo
structure specified when creating thePipeline
bound toPIPELINE_BIND_POINT_GRAPHICS
- The subpass index of the
current render pass must be equal to the
subpass
member of theGraphicsPipelineCreateInfo
structure specified when creating thePipeline
bound toPIPELINE_BIND_POINT_GRAPHICS
- Every input attachment used by the current subpass must be bound to the pipeline via a descriptor set
- Image subresources used as attachments in the current render pass must not be accessed in any way other than as an attachment by this command, except for cases involving read-only access to depth/stencil attachments as described in the Render Pass chapter
- If the draw
is recorded in a render pass instance with multiview enabled, the
maximum instance index must be less than or equal to
PhysicalDeviceMultiviewProperties
::maxMultiviewInstanceIndex
- If the bound
graphics pipeline was created with
PipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
set toTRUE
and the current subpass has a depth/stencil attachment, then that attachment must have been created with theIMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, but not theDYNAMIC_STATE_SCISSOR_WITH_COUNT_EXT
dynamic state enabled, thencmdSetViewportWithCountEXT
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCountEXT
must match thePipelineViewportStateCreateInfo
::scissorCount
of the pipeline - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_SCISSOR_WITH_COUNT_EXT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, thencmdSetScissorWithCountEXT
must have been called in the current command buffer prior to this drawing command, and thescissorCount
parameter ofcmdSetScissorWithCountEXT
must match thePipelineViewportStateCreateInfo
::viewportCount
of the pipeline - If the bound graphics
pipeline state was created with both the
DYNAMIC_STATE_SCISSOR_WITH_COUNT_EXT
andDYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic states enabled then bothcmdSetViewportWithCountEXT
andcmdSetScissorWithCountEXT
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCountEXT
must match thescissorCount
parameter ofcmdSetScissorWithCountEXT
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportWScalingStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
andDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportWScalingNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportShadingRateImageStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
andDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportShadingRatePaletteNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled and aPipelineViewportSwizzleStateCreateInfoNV
structure chained fromVkPipelineVieportCreateInfo
, then the bound graphics pipeline must have been created withPipelineViewportSwizzleStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the
bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled and aPipelineViewportExclusiveScissorStateCreateInfoNV
structure chained fromVkPipelineVieportCreateInfo
, then the bound graphics pipeline must have been created withPipelineViewportExclusiveScissorStateCreateInfoNV
::exclusiveScissorCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_PRIMITIVE_TOPOLOGY_EXT
dynamic state enabled thencmdSetPrimitiveTopologyEXT
must have been called in the current command buffer prior to this drawing command, and theprimitiveTopology
parameter ofcmdSetPrimitiveTopologyEXT
must be of the same topology class as the pipelinePipelineInputAssemblyStateCreateInfo
::topology
state - If the bound graphics pipeline
state was created with the
DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT
dynamic state enabled thencmdSetPatchControlPointsEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics pipeline
state was created with the
DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE_EXT
dynamic state enabled thencmdSetRasterizerDiscardEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics pipeline
state was created with the
DYNAMIC_STATE_DEPTH_BIAS_ENABLE_EXT
dynamic state enabled thencmdSetDepthBiasEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled thencmdSetLogicOpEXT
must have been called in the current command buffer prior to this drawing command and thelogicOp
must be a validLogicOp
value - If the bound graphics pipeline
state was created with the
DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE_EXT
dynamic state enabled thencmdSetPrimitiveRestartEnableEXT
must have been called in the current command buffer prior to this drawing command -
If the
primitiveFragmentShadingRateWithMultipleViewports
limit is not supported, the bound graphics pipeline was created with
the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, and any of the shader stages of the bound graphics pipeline write to thePrimitiveShadingRateKHR
built-in, thencmdSetViewportWithCountEXT
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCountEXT
must be1
- 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 contain
FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then theblendEnable
member of the corresponding element of thepAttachments
member ofpColorBlendState
must beFALSE
- If rasterization
is not disabled in the bound graphics pipeline, and neither the
VK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, thenPipelineMultisampleStateCreateInfo
::rasterizationSamples
must be the same as the current subpass color and/or depth/stencil attachments - If the bound graphics pipeline
was created with both the
DYNAMIC_STATE_VERTEX_INPUT_EXT
andDYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic states enabled, thencmdSetVertexInputEXT
must have been called in the current command buffer prior to this draw command - If the bound graphics
pipeline was created with the
DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic state enabled, but not theDYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, thencmdBindVertexBuffers2EXT
must have been called in the current command buffer prior to this draw command, and thepStrides
parameter ofcmdBindVertexBuffers2EXT
must not beNULL
- If the bound graphics pipeline
state was created with the
DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, thencmdSetVertexInputEXT
must have been called in the current command buffer prior to this draw command - If the current render pass
instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment - If the current render pass
instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current render pass
instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
, this command must not write any values to the depth attachment - If the current render pass
instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current render pass
instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment - If the current render pass
instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current render pass
instance was begun with
cmdBeginRenderingKHR
, the currently bound graphics pipeline must have been created with aPipelineRenderingCreateInfoKHR
::viewMask
equal toRenderingInfoKHR
::viewMask
- If the current
render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound graphics pipeline must have been created with aPipelineRenderingCreateInfoKHR
::colorAttachmentCount
equal toRenderingInfoKHR
::colorAttachmentCount
- If the current
render pass instance was begun with
cmdBeginRenderingKHR
andRenderingInfoKHR
::colorAttachmentCount
greater than0
, then each element of theRenderingInfoKHR
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with aFormat
equal to the corresponding element ofPipelineRenderingCreateInfoKHR
::pColorAttachmentFormats
used to create the currently bound graphics pipeline - If the current
render pass instance was begun with
cmdBeginRenderingKHR
andRenderingInfoKHR
::pDepthAttachment->pname
:imageView was notNULL_HANDLE
, the value ofPipelineRenderingCreateInfoKHR
::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to theFormat
used to createRenderingInfoKHR
::pDepthAttachment->pname
:imageView - If the current
render pass instance was begun with
cmdBeginRenderingKHR
andRenderingInfoKHR
::pStencilAttachment->pname
:imageView was notNULL_HANDLE
, the value ofPipelineRenderingCreateInfoKHR
::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal to theFormat
used to createRenderingInfoKHR
::pStencilAttachment->pname
:imageView - If the current render pass
instance was begun with
cmdBeginRenderingKHR
andRenderingFragmentShadingRateAttachmentInfoKHR
::imageView
was notNULL_HANDLE
, the currently bound graphics pipeline must have been created withPIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
- If the current render pass
instance was begun with
cmdBeginRenderingKHR
andRenderingFragmentDensityMapAttachmentInfoEXT
::imageView
was notNULL_HANDLE
, the currently bound graphics pipeline must have been created withPIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT
- If the currently
bound pipeline was created with a
AttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the current render pass instance was begun withcmdBeginRenderingKHR
with aRenderingInfoKHR
::colorAttachmentCount
parameter greater than0
, then each element of theRenderingInfoKHR
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with a sample count equal to the corresponding element of thepColorAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline was created with aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfoKHR
::pDepthAttachment->pname
:imageView was notNULL_HANDLE
, the value of thedepthStencilAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfoKHR
::pDepthAttachment->pname
:imageView - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline was created with aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfoKHR
::pStencilAttachment->pname
:imageView was notNULL_HANDLE
, the value of thedepthStencilAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfoKHR
::pStencilAttachment->pname
:imageView - If the currently
bound pipeline was created without a
AttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the current render pass instance was begun withcmdBeginRenderingKHR
with aRenderingInfoKHR
::colorAttachmentCount
parameter greater than0
, then each element of theRenderingInfoKHR
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with a sample count equal to the value ofPipelineMultisampleStateCreateInfo
::rasterizationSamples
used to create the currently bound graphics pipeline - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline was created without aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfoKHR
::pDepthAttachment->pname
:imageView was notNULL_HANDLE
, the value ofPipelineMultisampleStateCreateInfo
::rasterizationSamples
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfoKHR
::pDepthAttachment->pname
:imageView - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline was created without aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfoKHR
::pStencilAttachment->pname
:imageView was notNULL_HANDLE
, the value ofPipelineMultisampleStateCreateInfo
::rasterizationSamples
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfoKHR
::pStencilAttachment->pname
:imageView - If the current render pass
instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline must have been created with aGraphicsPipelineCreateInfo
::renderPass
equal toNULL_HANDLE
- If
commandBuffer
is a protected command buffer, any resource written to by thePipeline
object bound to the pipeline bind point used by this command must not be an unprotected resource - If
commandBuffer
is a protected command buffer, pipeline stages other than the framebuffer-space and compute stages in thePipeline
object bound to the pipeline bind point used by this command must not write to any resource - If any of the shader
stages of the
Pipeline
bound to the pipeline bind point used by this command uses the RayQueryKHR capability, thencommandBuffer
must not be a protected command buffer - All vertex input bindings
accessed via vertex input variables declared in the vertex shader
entry point’s interface must have either valid or
NULL_HANDLE
buffers bound - If the
nullDescriptor
feature is not enabled, all vertex input bindings accessed via
vertex input variables declared in the vertex shader entry point’s
interface must not be
NULL_HANDLE
- For a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in ???
- The multiDraw feature must be enabled
-
drawCount
must be less thanPhysicalDeviceMultiDrawPropertiesEXT
::maxMultiDrawCount
- If
drawCount
is greater than zero,pVertexInfo
must be a valid pointer to memory containing one or more valid instances ofMultiDrawInfoEXT
structures -
stride
must be a multiple of 4
Valid Usage (Implicit)
-
commandBuffer
must be a validCommandBuffer
handle
-
commandBuffer
must be in the recording state - The
CommandPool
thatcommandBuffer
was allocated from must support graphics operations - This command must only be called inside of a render pass instance
Host Synchronization
- Host access to
commandBuffer
must be externally synchronized
- Host access to the
CommandPool
thatcommandBuffer
was allocated from must be externally synchronized
Command Properties
'
Command Buffer Levels | Render Pass Scope | Supported Queue Types |
---|---|---|
Primary Secondary | Inside | Graphics |
See Also
cmdDrawMultiIndexedEXT Source #
:: forall io. MonadIO io | |
=> CommandBuffer |
|
-> ("indexInfo" ::: Vector MultiDrawIndexedInfoEXT) |
|
-> ("instanceCount" ::: Word32) |
|
-> ("firstInstance" ::: Word32) |
|
-> ("stride" ::: Word32) |
|
-> ("vertexOffset" ::: Maybe Int32) |
|
-> io () |
vkCmdDrawMultiIndexedEXT - Draw primitives
Description
drawCount
indexed draws are executed with parameters taken from
pIndexInfo
. The number of draw commands recorded is drawCount
, with
each command reading, sequentially, a firstIndex
and an indexCount
from pIndexInfo
. If pVertexOffset
is NULL
, a vertexOffset
is
also read from pIndexInfo
, otherwise the value from dereferencing
pVertexOffset
is used.
Valid Usage
- If a
Sampler
created withmagFilter
orminFilter
equal toFILTER_LINEAR
andcompareEnable
equal toFALSE
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
- If a
Sampler
created withmipmapMode
equal toSAMPLER_MIPMAP_MODE_LINEAR
andcompareEnable
equal toFALSE
is used to sample aImageView
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT
- If a
ImageView
is accessed using atomic operations as a result of this command, then the image view’s format features must containFORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT
- If a
ImageView
is sampled withFILTER_CUBIC_EXT
as a result of this command, then the image view’s format features must containFORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_EXT
- Any
ImageView
being sampled withFILTER_CUBIC_EXT
as a result of this command must have aImageViewType
and format that supports cubic filtering, as specified byFilterCubicImageViewImageFormatPropertiesEXT
::filterCubic
returned bygetPhysicalDeviceImageFormatProperties2
- Any
ImageView
being sampled withFILTER_CUBIC_EXT
with a reduction mode of eitherSAMPLER_REDUCTION_MODE_MIN
orSAMPLER_REDUCTION_MODE_MAX
as a result of this command must have aImageViewType
and format that supports cubic filtering together with minmax filtering, as specified byFilterCubicImageViewImageFormatPropertiesEXT
::filterCubicMinmax
returned bygetPhysicalDeviceImageFormatProperties2
- Any
Image
created with aImageCreateInfo
::flags
containingIMAGE_CREATE_CORNER_SAMPLED_BIT_NV
sampled as a result of this command must only be sampled using aSamplerAddressMode
ofSAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE
- Any
ImageView
orBufferView
being written as a storage image or storage texel buffer where the image format field of theOpTypeImage
isUnknown
must have image format features that supportFORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR
- Any
ImageView
orBufferView
being read as a storage image or storage texel buffer where the image format field of theOpTypeImage
isUnknown
must have image format features that supportFORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT_KHR
- For each set n that is
statically used by the
Pipeline
bound to the pipeline bind point used by this command, a descriptor set must have been bound to n at the same pipeline bind point, with aPipelineLayout
that is compatible for set n, with thePipelineLayout
used to create the currentPipeline
, as described in ??? - If the
maintenance4
feature is not enabled, then for each push constant that is
statically used by the
Pipeline
bound to the pipeline bind point used by this command, a push constant value must have been set for the same pipeline bind point, with aPipelineLayout
that is compatible for push constants, with thePipelineLayout
used to create the currentPipeline
, as described in ??? - Descriptors in each bound
descriptor set, specified via
cmdBindDescriptorSets
, must be valid if they are statically used by thePipeline
bound to the pipeline bind point used by this command - A valid pipeline must be bound to the pipeline bind point used by this command
- If the
Pipeline
object bound to the pipeline bind point used by this command requires any dynamic state, that state must have been set or inherited (if theVK_NV_inherited_viewport_scissor
extension is enabled) forcommandBuffer
, and done so after any previously bound pipeline with the corresponding state not specified as dynamic - There must not have
been any calls to dynamic state setting commands for any state not
specified as dynamic in the
Pipeline
object bound to the pipeline bind point used by this command, since that pipeline was bound - If the
Pipeline
object bound to the pipeline bind point used by this command accesses aSampler
object that uses unnormalized coordinates, that sampler must not be used to sample from anyImage
with aImageView
of the typeIMAGE_VIEW_TYPE_3D
,IMAGE_VIEW_TYPE_CUBE
,IMAGE_VIEW_TYPE_1D_ARRAY
,IMAGE_VIEW_TYPE_2D_ARRAY
orIMAGE_VIEW_TYPE_CUBE_ARRAY
, in any shader stage - If the
Pipeline
object bound to the pipeline bind point used by this command accesses aSampler
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 - If the
Pipeline
object bound to the pipeline bind point used by this command accesses aSampler
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 - If the
robust buffer access
feature is not enabled, and if the
Pipeline
object bound to the pipeline bind point used by this command accesses a uniform buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If the
robust buffer access
feature is not enabled, and if the
Pipeline
object bound to the pipeline bind point used by this command accesses a storage buffer, it must not access values outside of the range of the buffer as specified in the descriptor set bound to the same pipeline bind point - If
commandBuffer
is an unprotected command buffer, any resource accessed by thePipeline
object bound to the pipeline bind point used by this command must not be a protected resource - If a
ImageView
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 - If a
BufferView
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 - If a
ImageView
with aFormat
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 - If a
ImageView
with aFormat
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 - If a
BufferView
with aFormat
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 - If a
BufferView
with aFormat
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 - If the
sparseImageInt64Atomics
feature is not enabled,
Image
objects created with theIMAGE_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command - If the
sparseImageInt64Atomics
feature is not enabled,
Buffer
objects created with theBUFFER_CREATE_SPARSE_RESIDENCY_BIT
flag must not be accessed by atomic instructions through anOpTypeImage
with aSampledType
with aWidth
of 64 by this command - The current render
pass must be
compatible
with the
renderPass
member of theGraphicsPipelineCreateInfo
structure specified when creating thePipeline
bound toPIPELINE_BIND_POINT_GRAPHICS
- The subpass index of
the current render pass must be equal to the
subpass
member of theGraphicsPipelineCreateInfo
structure specified when creating thePipeline
bound toPIPELINE_BIND_POINT_GRAPHICS
- Every input attachment used by the current subpass must be bound to the pipeline via a descriptor set
- Image subresources used as attachments in the current render pass must not be accessed in any way other than as an attachment by this command, except for cases involving read-only access to depth/stencil attachments as described in the Render Pass chapter
- If
the draw is recorded in a render pass instance with multiview
enabled, the maximum instance index must be less than or equal to
PhysicalDeviceMultiviewProperties
::maxMultiviewInstanceIndex
- If the
bound graphics pipeline was created with
PipelineSampleLocationsStateCreateInfoEXT
::sampleLocationsEnable
set toTRUE
and the current subpass has a depth/stencil attachment, then that attachment must have been created with theIMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT
bit set - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, but not theDYNAMIC_STATE_SCISSOR_WITH_COUNT_EXT
dynamic state enabled, thencmdSetViewportWithCountEXT
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCountEXT
must match thePipelineViewportStateCreateInfo
::scissorCount
of the pipeline - If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_SCISSOR_WITH_COUNT_EXT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, thencmdSetScissorWithCountEXT
must have been called in the current command buffer prior to this drawing command, and thescissorCount
parameter ofcmdSetScissorWithCountEXT
must match thePipelineViewportStateCreateInfo
::viewportCount
of the pipeline - If the bound
graphics pipeline state was created with both the
DYNAMIC_STATE_SCISSOR_WITH_COUNT_EXT
andDYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic states enabled then bothcmdSetViewportWithCountEXT
andcmdSetScissorWithCountEXT
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCountEXT
must match thescissorCount
parameter ofcmdSetScissorWithCountEXT
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportWScalingStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
andDYNAMIC_STATE_VIEWPORT_W_SCALING_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportWScalingNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, but not theDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic state enabled, then the bound graphics pipeline must have been created withPipelineViewportShadingRateImageStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
andDYNAMIC_STATE_VIEWPORT_SHADING_RATE_PALETTE_NV
dynamic states enabled then theviewportCount
parameter in the last call tocmdSetViewportShadingRatePaletteNV
must be greater than or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled and aPipelineViewportSwizzleStateCreateInfoNV
structure chained fromVkPipelineVieportCreateInfo
, then the bound graphics pipeline must have been created withPipelineViewportSwizzleStateCreateInfoNV
::viewportCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If
the bound graphics pipeline state was created with the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled and aPipelineViewportExclusiveScissorStateCreateInfoNV
structure chained fromVkPipelineVieportCreateInfo
, then the bound graphics pipeline must have been created withPipelineViewportExclusiveScissorStateCreateInfoNV
::exclusiveScissorCount
greater or equal to theviewportCount
parameter in the last call tocmdSetViewportWithCountEXT
- If the bound
graphics pipeline state was created with the
DYNAMIC_STATE_PRIMITIVE_TOPOLOGY_EXT
dynamic state enabled thencmdSetPrimitiveTopologyEXT
must have been called in the current command buffer prior to this drawing command, and theprimitiveTopology
parameter ofcmdSetPrimitiveTopologyEXT
must be of the same topology class as the pipelinePipelineInputAssemblyStateCreateInfo
::topology
state - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_PATCH_CONTROL_POINTS_EXT
dynamic state enabled thencmdSetPatchControlPointsEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_RASTERIZER_DISCARD_ENABLE_EXT
dynamic state enabled thencmdSetRasterizerDiscardEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_DEPTH_BIAS_ENABLE_EXT
dynamic state enabled thencmdSetDepthBiasEnableEXT
must have been called in the current command buffer prior to this drawing command - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_LOGIC_OP_EXT
dynamic state enabled thencmdSetLogicOpEXT
must have been called in the current command buffer prior to this drawing command and thelogicOp
must be a validLogicOp
value - If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_PRIMITIVE_RESTART_ENABLE_EXT
dynamic state enabled thencmdSetPrimitiveRestartEnableEXT
must have been called in the current command buffer prior to this drawing command -
If the
primitiveFragmentShadingRateWithMultipleViewports
limit is not supported, the bound graphics pipeline was created with
the
DYNAMIC_STATE_VIEWPORT_WITH_COUNT_EXT
dynamic state enabled, and any of the shader stages of the bound graphics pipeline write to thePrimitiveShadingRateKHR
built-in, thencmdSetViewportWithCountEXT
must have been called in the current command buffer prior to this drawing command, and theviewportCount
parameter ofcmdSetViewportWithCountEXT
must be1
- 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 contain
FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT
, then theblendEnable
member of the corresponding element of thepAttachments
member ofpColorBlendState
must beFALSE
- If
rasterization is not disabled in the bound graphics pipeline, and
neither the
VK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, thenPipelineMultisampleStateCreateInfo
::rasterizationSamples
must be the same as the current subpass color and/or depth/stencil attachments - If the bound graphics
pipeline was created with both the
DYNAMIC_STATE_VERTEX_INPUT_EXT
andDYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic states enabled, thencmdSetVertexInputEXT
must have been called in the current command buffer prior to this draw command - If the bound graphics
pipeline was created with the
DYNAMIC_STATE_VERTEX_INPUT_BINDING_STRIDE_EXT
dynamic state enabled, but not theDYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, thencmdBindVertexBuffers2EXT
must have been called in the current command buffer prior to this draw command, and thepStrides
parameter ofcmdBindVertexBuffers2EXT
must not beNULL
- If the bound graphics
pipeline state was created with the
DYNAMIC_STATE_VERTEX_INPUT_EXT
dynamic state enabled, thencmdSetVertexInputEXT
must have been called in the current command buffer prior to this draw command - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
, this command must not write any values to the depth attachment - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpDepthAttachment
is notNULL_HANDLE
, and thelayout
member ofpDepthAttachment
isIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL
, this command must not write any values to the depth attachment - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, theimageView
member ofpStencilAttachment
is notNULL_HANDLE
, and thelayout
member ofpStencilAttachment
isIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL
, this command must not write any values to the stencil attachment - If the current render
pass instance was begun with
cmdBeginRenderingKHR
, the currently bound graphics pipeline must have been created with aPipelineRenderingCreateInfoKHR
::viewMask
equal toRenderingInfoKHR
::viewMask
- If the
current render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound graphics pipeline must have been created with aPipelineRenderingCreateInfoKHR
::colorAttachmentCount
equal toRenderingInfoKHR
::colorAttachmentCount
- If the
current render pass instance was begun with
cmdBeginRenderingKHR
andRenderingInfoKHR
::colorAttachmentCount
greater than0
, then each element of theRenderingInfoKHR
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with aFormat
equal to the corresponding element ofPipelineRenderingCreateInfoKHR
::pColorAttachmentFormats
used to create the currently bound graphics pipeline - If the
current render pass instance was begun with
cmdBeginRenderingKHR
andRenderingInfoKHR
::pDepthAttachment->pname
:imageView was notNULL_HANDLE
, the value ofPipelineRenderingCreateInfoKHR
::depthAttachmentFormat
used to create the currently bound graphics pipeline must be equal to theFormat
used to createRenderingInfoKHR
::pDepthAttachment->pname
:imageView - If the
current render pass instance was begun with
cmdBeginRenderingKHR
andRenderingInfoKHR
::pStencilAttachment->pname
:imageView was notNULL_HANDLE
, the value ofPipelineRenderingCreateInfoKHR
::stencilAttachmentFormat
used to create the currently bound graphics pipeline must be equal to theFormat
used to createRenderingInfoKHR
::pStencilAttachment->pname
:imageView - If the current
render pass instance was begun with
cmdBeginRenderingKHR
andRenderingFragmentShadingRateAttachmentInfoKHR
::imageView
was notNULL_HANDLE
, the currently bound graphics pipeline must have been created withPIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR
- If the current
render pass instance was begun with
cmdBeginRenderingKHR
andRenderingFragmentDensityMapAttachmentInfoEXT
::imageView
was notNULL_HANDLE
, the currently bound graphics pipeline must have been created withPIPELINE_RASTERIZATION_STATE_CREATE_FRAGMENT_DENSITY_MAP_ATTACHMENT_BIT_EXT
- If the
currently bound pipeline was created with a
AttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the current render pass instance was begun withcmdBeginRenderingKHR
with aRenderingInfoKHR
::colorAttachmentCount
parameter greater than0
, then each element of theRenderingInfoKHR
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with a sample count equal to the corresponding element of thepColorAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline - If the
current render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline was created with aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfoKHR
::pDepthAttachment->pname
:imageView was notNULL_HANDLE
, the value of thedepthStencilAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfoKHR
::pDepthAttachment->pname
:imageView - If the
current render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline was created with aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfoKHR
::pStencilAttachment->pname
:imageView was notNULL_HANDLE
, the value of thedepthStencilAttachmentSamples
member ofAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfoKHR
::pStencilAttachment->pname
:imageView - If the
currently bound pipeline was created without a
AttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, and the current render pass instance was begun withcmdBeginRenderingKHR
with aRenderingInfoKHR
::colorAttachmentCount
parameter greater than0
, then each element of theRenderingInfoKHR
::pColorAttachments
array with aimageView
not equal toNULL_HANDLE
must have been created with a sample count equal to the value ofPipelineMultisampleStateCreateInfo
::rasterizationSamples
used to create the currently bound graphics pipeline - If the
current render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline was created without aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfoKHR
::pDepthAttachment->pname
:imageView was notNULL_HANDLE
, the value ofPipelineMultisampleStateCreateInfo
::rasterizationSamples
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfoKHR
::pDepthAttachment->pname
:imageView - If the
current render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline was created without aAttachmentSampleCountInfoAMD
orAttachmentSampleCountInfoNV
structure, andRenderingInfoKHR
::pStencilAttachment->pname
:imageView was notNULL_HANDLE
, the value ofPipelineMultisampleStateCreateInfo
::rasterizationSamples
used to create the currently bound graphics pipeline must be equal to the sample count used to createRenderingInfoKHR
::pStencilAttachment->pname
:imageView - If the current
render pass instance was begun with
cmdBeginRenderingKHR
, the currently bound pipeline must have been created with aGraphicsPipelineCreateInfo
::renderPass
equal toNULL_HANDLE
- If
commandBuffer
is a protected command buffer, any resource written to by thePipeline
object bound to the pipeline bind point used by this command must not be an unprotected resource - If
commandBuffer
is a protected command buffer, pipeline stages other than the framebuffer-space and compute stages in thePipeline
object bound to the pipeline bind point used by this command must not write to any resource - If any of the
shader stages of the
Pipeline
bound to the pipeline bind point used by this command uses the RayQueryKHR capability, thencommandBuffer
must not be a protected command buffer - All vertex input bindings
accessed via vertex input variables declared in the vertex shader
entry point’s interface must have either valid or
NULL_HANDLE
buffers bound - If the
nullDescriptor
feature is not enabled, all vertex input bindings accessed via
vertex input variables declared in the vertex shader entry point’s
interface must not be
NULL_HANDLE
- For a given vertex buffer binding, any attribute data fetched must be entirely contained within the corresponding vertex buffer binding, as described in ???
- The multiDraw feature must be 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 viacmdBindIndexBuffer
-
drawCount
must be less thanPhysicalDeviceMultiDrawPropertiesEXT
::maxMultiDrawCount
- If
drawCount
is greater than zero,pIndexInfo
must be a valid pointer to memory containing one or more valid instances ofMultiDrawIndexedInfoEXT
structures -
stride
must be a multiple of 4
Valid Usage (Implicit)
-
commandBuffer
must be a validCommandBuffer
handle
- If
pVertexOffset
is notNULL
,pVertexOffset
must be a valid pointer to a validint32_t
value -
commandBuffer
must be in the recording state - The
CommandPool
thatcommandBuffer
was allocated from must support graphics operations - This command must only be called inside of a render pass instance
Host Synchronization
- Host access to
commandBuffer
must be externally synchronized
- Host access to the
CommandPool
thatcommandBuffer
was allocated from must be externally synchronized
Command Properties
'
Command Buffer Levels | Render Pass Scope | Supported Queue Types |
---|---|---|
Primary Secondary | Inside | Graphics |
See Also
data MultiDrawInfoEXT Source #
VkMultiDrawInfoEXT - Structure specifying a multi-draw command
Description
The members of MultiDrawInfoEXT
have the same meaning as the
firstVertex
and vertexCount
parameters in
cmdDraw
.
See Also
MultiDrawInfoEXT | |
|
Instances
data MultiDrawIndexedInfoEXT Source #
VkMultiDrawIndexedInfoEXT - Structure specifying a multi-draw command
Description
The firstIndex
, indexCount
, and vertexOffset
members of
MultiDrawIndexedInfoEXT
have the same meaning as the firstIndex
,
indexCount
, and vertexOffset
parameters, respectively, of
cmdDrawIndexed
.
See Also
MultiDrawIndexedInfoEXT | |
|
Instances
data PhysicalDeviceMultiDrawPropertiesEXT Source #
VkPhysicalDeviceMultiDrawPropertiesEXT - Structure describing multidraw limits of an implementation
Members
The members of the PhysicalDeviceMultiDrawPropertiesEXT
structure
describe the following features:
Description
If the VkPhysicalDeviceMultiDrawPropertiesPropertiesEXT
structure is
included in the pNext
chain of the
PhysicalDeviceProperties2
structure passed to
getPhysicalDeviceProperties2
,
it is filled in with each corresponding implementation-dependent
property.
Valid Usage (Implicit)
See Also
Instances
data PhysicalDeviceMultiDrawFeaturesEXT Source #
VkPhysicalDeviceMultiDrawFeaturesEXT - Structure describing whether the implementation supports multi draw functionality
Members
The members of the PhysicalDeviceMultiDrawFeaturesEXT
structure
describe the following features:
Description
If the PhysicalDeviceMultiDrawFeaturesEXT
structure is included in the
pNext
chain of the
PhysicalDeviceFeatures2
structure passed to
getPhysicalDeviceFeatures2
,
it is filled in to indicate whether each corresponding feature is
supported. PhysicalDeviceMultiDrawFeaturesEXT
can also be used in
the pNext
chain of DeviceCreateInfo
to
selectively enable these features.
Valid Usage (Implicit)
See Also
PhysicalDeviceMultiDrawFeaturesEXT | |
|
Instances
type EXT_MULTI_DRAW_SPEC_VERSION = 1 Source #
pattern EXT_MULTI_DRAW_SPEC_VERSION :: forall a. Integral a => a Source #
type EXT_MULTI_DRAW_EXTENSION_NAME = "VK_EXT_multi_draw" Source #
pattern EXT_MULTI_DRAW_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #