Class VkAttachmentDescription2

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, FORMAT, SAMPLES, LOADOP, STOREOP, STENCILLOADOP, STENCILSTOREOP, INITIALLAYOUT, FINALLAYOUT

        The struct member offsets.
    • Constructor Detail

      • VkAttachmentDescription2

        public VkAttachmentDescription2​(java.nio.ByteBuffer container)
        Creates a VkAttachmentDescription2 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.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • flags

        public int flags()
        a bitmask of VkAttachmentDescriptionFlagBits specifying additional properties of the attachment.
      • format

        public int format()
        a VkFormat value specifying the format of the image that will be used for the attachment.
      • samples

        public int samples()
        a VkSampleCountFlagBits value specifying the number of samples of the image.
      • loadOp

        public int 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

        public int 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

        public int 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

        public int 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

        public int initialLayout()
        the layout the attachment image subresource will be in when a render pass instance begins.
      • finalLayout

        public int finalLayout()
        the layout the attachment image subresource will be transitioned to when a render pass instance ends.
      • set

        public VkAttachmentDescription2 set​(int sType,
                                            long pNext,
                                            int flags,
                                            int format,
                                            int samples,
                                            int loadOp,
                                            int storeOp,
                                            int stencilLoadOp,
                                            int stencilStoreOp,
                                            int initialLayout,
                                            int finalLayout)
        Initializes this struct with the specified values.
      • malloc

        public static VkAttachmentDescription2 malloc()
        Returns a new VkAttachmentDescription2 instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkAttachmentDescription2 calloc()
        Returns a new VkAttachmentDescription2 instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkAttachmentDescription2 create()
        Returns a new VkAttachmentDescription2 instance allocated with BufferUtils.
      • create

        public static VkAttachmentDescription2 create​(long address)
        Returns a new VkAttachmentDescription2 instance for the specified memory address.
      • malloc

        public static VkAttachmentDescription2 malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkAttachmentDescription2 instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkAttachmentDescription2 calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkAttachmentDescription2 instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkAttachmentDescription2.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new VkAttachmentDescription2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nflags

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nformat

        public static int nformat​(long struct)
        Unsafe version of format().
      • nsamples

        public static int nsamples​(long struct)
        Unsafe version of samples().
      • nloadOp

        public static int nloadOp​(long struct)
        Unsafe version of loadOp().
      • nstoreOp

        public static int nstoreOp​(long struct)
        Unsafe version of storeOp().
      • nstencilLoadOp

        public static int nstencilLoadOp​(long struct)
        Unsafe version of stencilLoadOp().
      • nstencilStoreOp

        public static int nstencilStoreOp​(long struct)
        Unsafe version of stencilStoreOp().
      • ninitialLayout

        public static int ninitialLayout​(long struct)
        Unsafe version of initialLayout().
      • nfinalLayout

        public static int nfinalLayout​(long struct)
        Unsafe version of finalLayout().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nformat

        public static void nformat​(long struct,
                                   int value)
        Unsafe version of format.
      • nsamples

        public static void nsamples​(long struct,
                                    int value)
        Unsafe version of samples.
      • nloadOp

        public static void nloadOp​(long struct,
                                   int value)
        Unsafe version of loadOp.
      • nstoreOp

        public static void nstoreOp​(long struct,
                                    int value)
        Unsafe version of storeOp.
      • nstencilLoadOp

        public static void nstencilLoadOp​(long struct,
                                          int value)
        Unsafe version of stencilLoadOp.
      • nstencilStoreOp

        public static void nstencilStoreOp​(long struct,
                                           int value)
        Unsafe version of stencilStoreOp.
      • ninitialLayout

        public static void ninitialLayout​(long struct,
                                          int value)
        Unsafe version of initialLayout.
      • nfinalLayout

        public static void nfinalLayout​(long struct,
                                        int value)
        Unsafe version of finalLayout.