Class VkClearAttachment

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ASPECTMASK, COLORATTACHMENT, CLEARVALUE

        The struct member offsets.
    • Constructor Detail

      • VkClearAttachment

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

        public int aspectMask()
        a mask selecting the color, depth and/or stencil aspects of the attachment to be cleared.
      • colorAttachment

        public int colorAttachment()
        only meaningful if IMAGE_ASPECT_COLOR_BIT is set in aspectMask, in which case it is an index into the currently bound color attachments.
      • clearValue

        public VkClearValue clearValue()
        the color or depth/stencil value to clear the attachment to, as described in Clear Values below.
      • set

        public VkClearAttachment set​(int aspectMask,
                                     int colorAttachment,
                                     VkClearValue clearValue)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

        @Nullable
        public static VkClearAttachment createSafe​(long address)
        Like create, but returns null if address is NULL.
      • createSafe

        @Nullable
        public static VkClearAttachment.Buffer createSafe​(long address,
                                                          int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        @Deprecated
        public static VkClearAttachment mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static VkClearAttachment callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

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

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

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

        public static VkClearAttachment.Buffer calloc​(int capacity,
                                                      org.lwjgl.system.MemoryStack stack)
        Returns a new VkClearAttachment.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
      • naspectMask

        public static int naspectMask​(long struct)
        Unsafe version of aspectMask().
      • ncolorAttachment

        public static int ncolorAttachment​(long struct)
        Unsafe version of colorAttachment().
      • naspectMask

        public static void naspectMask​(long struct,
                                       int value)
        Unsafe version of aspectMask.
      • ncolorAttachment

        public static void ncolorAttachment​(long struct,
                                            int value)
        Unsafe version of colorAttachment.
      • nclearValue

        public static void nclearValue​(long struct,
                                       VkClearValue value)
        Unsafe version of clearValue.