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
-
sType
is a VkStructureType value identifying this structure. -
pNext
isNULL
or a pointer to a structure extending this structure. -
colorAttachmentCount
is the number of elements inpColorAttachmentInputIndices
. -
pColorAttachmentInputIndices
is a pointer to an array ofcolorAttachmentCount
uint32_t
values defining indices for color attachments to be used as input attachments. -
pDepthInputAttachmentIndex
is eitherNULL
, or a pointer to auint32_t
value defining the index for the depth attachment to be used as an input attachment. -
pStencilInputAttachmentIndex
is eitherNULL
, or a pointer to auint32_t
value defining the index for the stencil attachment to be used as 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.
If this structure is not included in the pNext
chain of
VkGraphicsPipelineCreateInfo, it is equivalent to specifying this
structure with the following properties:
-
colorAttachmentCount
set to VkPipelineRenderingCreateInfo::colorAttachmentCount
. -
pColorAttachmentInputIndices
set toNULL
. -
pDepthInputAttachmentIndex
set toNULL
. -
pStencilInputAttachmentIndex
set toNULL
.
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
VkCommandBufferInheritanceInfo, it is equivalent to specifying this
structure with the following properties:
-
colorAttachmentCount
set to VkCommandBufferInheritanceRenderingInfo::colorAttachmentCount
. -
pColorAttachmentInputIndices
set toNULL
. -
pDepthInputAttachmentIndex
set toNULL
. -
pStencilInputAttachmentIndex
set 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.