Class VkAttachmentReference

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class VkAttachmentReference
    extends Struct
    implements NativeResource
    Structure specifying an attachment reference.
    Valid Usage
    Valid Usage (Implicit)
    • layout must be a valid VkImageLayout value
    See Also

    VkSubpassDescription

    Member documentation

    • attachment – 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 ATTACHMENT_UNUSED, then no writes occur for those attachments.
    • layout – a VkImageLayout value specifying the layout the attachment uses during the subpass.

    Layout

    
     struct VkAttachmentReference {
         uint32_t attachment;
         VkImageLayout layout;
     }