C Specification
To set the input attachment index mappings during dynamic rendering, call:
// Provided by VK_KHR_dynamic_rendering_local_read
void vkCmdSetRenderingInputAttachmentIndicesKHR(
VkCommandBuffer commandBuffer,
const VkRenderingInputAttachmentIndexInfoKHR* pLocationInfo);
Parameters
-
commandBuffer
is the command buffer into which the command will be recorded. -
pInputAttachmentIndexInfo
is a VkRenderingInputAttachmentIndexInfoKHR structure indicating the new mappings.
Description
This command sets the input attachment index mappings for subsequent drawing commands, and must match the mappings provided to the currently bound pipeline, if one is bound, which can be set by chaining VkRenderingInputAttachmentIndexInfoKHR to VkGraphicsPipelineCreateInfo.
Until this command is called, mappings in the command buffer state are
treated as each color attachment specified in vkCmdBeginRendering
mapping to subpass inputs with a InputAttachmentIndex
equal to its
index in VkRenderingInfo::pColorAttachments
, and depth/stencil
attachments mapping to input attachments without these decorations.
This state is reset whenever vkCmdBeginRendering is called.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.