Class VkAttachmentReference2KHR

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

    public class VkAttachmentReference2KHR
    extends Struct
    implements NativeResource
    Structure specifying an attachment reference.

    Parameters defined by this structure with the same name as those in VkAttachmentReference have the identical effect to those parameters.

    aspectMask has the same effect for the described attachment as VkInputAttachmentAspectReference::aspectMask has on each corresponding attachment. It is ignored when this structure is used to describe anything other than an input attachment reference.

    Valid Usage
    Valid Usage (Implicit)
    See Also

    VkSubpassDescription2KHR, VkSubpassDescriptionDepthStencilResolveKHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • attachment – either an integer value identifying an attachment at the corresponding index in VkRenderPassCreateInfo::pAttachments, or ATTACHMENT_UNUSED to signify that this attachment is not used.
    • layout – a VkImageLayout value specifying the layout the attachment uses during the subpass.
    • aspectMask – a mask of which aspect(s) can be accessed within the specified subpass as an input attachment.


     struct VkAttachmentReference2KHR {
         VkStructureType sType;
         void const * pNext;
         uint32_t attachment;
         VkImageLayout layout;
         VkImageAspectFlags aspectMask;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • VkAttachmentReference2KHR

        public VkAttachmentReference2KHR​(java.nio.ByteBuffer container)
        Creates a VkAttachmentReference2KHR instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.