Class VkAttachmentDescription2KHR

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

    public class VkAttachmentDescription2KHR
    extends Struct
    implements NativeResource
    Structure specifying an attachment description.
    Description

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

    Valid Usage
    Valid Usage (Implicit)
    • sType must be STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2_KHR
    • flags must be a valid combination of VkAttachmentDescriptionFlagBits values
    • format must be a valid VkFormat value
    • samples must be a valid VkSampleCountFlagBits value
    • loadOp must be a valid VkAttachmentLoadOp value
    • storeOp must be a valid VkAttachmentStoreOp value
    • stencilLoadOp must be a valid VkAttachmentLoadOp value
    • stencilStoreOp must be a valid VkAttachmentStoreOp value
    • initialLayout must be a valid VkImageLayout value
    • finalLayout must be a valid VkImageLayout value
    See Also

    VkRenderPassCreateInfo2KHR

    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • flags – a bitmask of VkAttachmentDescription2KHRFlagBits specifying additional properties of the attachment.
    • format – a VkFormat value specifying the format of the image that will be used for the attachment.
    • samples – the number of samples of the image as defined in VkSampleCountFlagBits.
    • loadOp – a VkAttachmentLoadOp value specifying how the contents of color and depth components of the attachment are treated at the beginning of the subpass where it is first used.
    • storeOp – a VkAttachmentStoreOp value specifying how the contents of color and depth components of the attachment are treated at the end of the subpass where it is last used.
    • stencilLoadOp – a VkAttachmentLoadOp value specifying how the contents of stencil components of the attachment are treated at the beginning of the subpass where it is first used.
    • stencilStoreOp – a VkAttachmentStoreOp value specifying how the contents of stencil components of the attachment are treated at the end of the last subpass where it is used.
    • initialLayout – the layout the attachment image subresource will be in when a render pass instance begins.
    • finalLayout – the layout the attachment image subresource will be transitioned to when a render pass instance ends.

    Layout

    
     struct VkAttachmentDescription2KHR {
         VkStructureType sType;
         void const * pNext;
         VkAttachmentDescriptionFlags flags;
         VkFormat format;
         VkSampleCountFlagBits samples;
         VkAttachmentLoadOp loadOp;
         VkAttachmentStoreOp storeOp;
         VkAttachmentLoadOp stencilLoadOp;
         VkAttachmentStoreOp stencilStoreOp;
         VkImageLayout initialLayout;
         VkImageLayout finalLayout;
     }