Vulkan-Docs/chapters/commonvalidity/draw_common.txt

35 lines
1.8 KiB
Plaintext

// Common Valid Usage
// Common to all drawing commands
include::draw_dispatch_common.txt[]
* [[VUID-{refpage}-renderPass-02684]]
The current render pass must: be <<renderpass-compatibility,compatible>>
with the pname:renderPass member of the
sname:VkGraphicsPipelineCreateInfo structure specified when creating the
sname:VkPipeline bound to ename:VK_PIPELINE_BIND_POINT_GRAPHICS.
* [[VUID-{refpage}-subpass-02685]]
The subpass index of the current render pass must: be equal to the
pname:subpass member of the sname:VkGraphicsPipelineCreateInfo structure
specified when creating the sname:VkPipeline bound to
ename:VK_PIPELINE_BIND_POINT_GRAPHICS.
* [[VUID-{refpage}-None-02686]]
Every input attachment used by the current subpass must: be bound to the
pipeline via a descriptor set
* [[VUID-{refpage}-None-02687]]
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.
ifdef::VK_VERSION_1_1,VK_KHR_multiview[]
* [[VUID-{refpage}-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
slink:VkPhysicalDeviceMultiviewProperties::pname:maxMultiviewInstanceIndex.
endif::VK_VERSION_1_1,VK_KHR_multiview[]
ifdef::VK_EXT_sample_locations[]
* [[VUID-{refpage}-sampleLocationsEnable-02689]]
If the bound graphics pipeline was created with
slink:VkPipelineSampleLocationsStateCreateInfoEXT::pname:sampleLocationsEnable
set to ename:VK_TRUE and the current subpass has a depth/stencil
attachment, then that attachment must: have been created with the
ename:VK_IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT bit set
endif::VK_EXT_sample_locations[]
// Common Valid Usage