C Specification

The VkAttachmentReference structure is defined as:

typedef struct VkAttachmentReference {
uint32_t         attachment;
VkImageLayout    layout;
} VkAttachmentReference;

Members

• attachment is the index of the attachment of the render pass, and corresponds to the index of the corresponding element in the pAttachments array of the VkRenderPassCreateInfo structure. If any color or depth/stencil attachments are VK_ATTACHMENT_UNUSED, then no writes occur for those attachments.

• layout is a VkImageLayout value specifying the layout the attachment uses during the subpass.

Description

Valid Usage
• layout must not be VK_IMAGE_LAYOUT_UNDEFINED or VK_IMAGE_LAYOUT_PREINITIALIZED

Valid Usage (Implicit)