C Specification
The VkRenderingInputAttachmentIndexInfoKHR structure is defined as:
// Provided by VK_KHR_dynamic_rendering_local_read
typedef struct VkRenderingInputAttachmentIndexInfoKHR {
VkStructureType sType;
const void* pNext;
uint32_t colorAttachmentCount;
const uint32_t* pColorAttachmentInputIndices;
const uint32_t* pDepthInputAttachmentIndex;
const uint32_t* pStencilInputAttachmentIndex;
} VkRenderingInputAttachmentIndexInfoKHR;
Members
-
sTypeis a VkStructureType value identifying this structure. -
pNextisNULLor a pointer to a structure extending this structure. -
colorAttachmentCountis the number of elements inpColorAttachmentInputIndices. -
pColorAttachmentInputIndicesis a pointer to an array ofcolorAttachmentCountuint32_tvalues defining indices for color attachments to be used as input attachments. -
pDepthInputAttachmentIndexis eitherNULL, or a pointer to auint32_tvalue defining the index for the depth attachment to be used an an input attachment. -
pStencilInputAttachmentIndexis eitherNULL, or a pointer to auint32_tvalue defining the index for the stencil attachment to be used an an input attachment.
Description
This structure allows applications to remap attachments to different input attachment indices.
Each element of pColorAttachmentInputIndices set to a value of
VK_ATTACHMENT_UNUSED indicates that the corresponding attachment will
not be used as an input attachment in this pipeline.
Any other value in each of those elements will map the corresponding
attachment to a InputAttachmentIndex value defined in shader code.
If pColorAttachmentInputIndices is NULL, it is equivalent to setting
each element to its index within the array.
If pDepthInputAttachmentIndex or pStencilInputAttachmentIndex
are set to NULL, they map to input attachments without a
InputAttachmentIndex decoration.
If they point to a value of VK_ATTACHMENT_UNUSED, it indicates that
the corresponding attachment will not be used as an input attachment in this
pipeline.
If they point to any other value it maps the corresponding attachment to a
InputAttachmentIndex value defined in shader code.
This structure can be included in the pNext chain of a
VkGraphicsPipelineCreateInfo structure to set this state for a
pipeline.
This structure can be included in the pNext chain of a
VkCommandBufferInheritanceInfo structure to specify inherited state
from the primary command buffer.
If this structure is not included in the pNext chain of
VkGraphicsPipelineCreateInfo or VkCommandBufferInheritanceInfo,
it is equivalent to specifying this structure with the following properties:
-
colorAttachmentCountset to VkPipelineRenderingCreateInfo::colorAttachmentCount. -
pColorAttachmentInputIndicesset toNULL. -
pDepthInputAttachmentIndexset toNULL. -
pStencilInputAttachmentIndexset toNULL.
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.