Class VkImageSubresourceLayers

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ASPECTMASK, MIPLEVEL, BASEARRAYLAYER, LAYERCOUNT

        The struct member offsets.
    • Constructor Detail

      • VkImageSubresourceLayers

        public VkImageSubresourceLayers​(java.nio.ByteBuffer container)
        Creates a VkImageSubresourceLayers 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 combination of VkImageAspectFlagBits, selecting the color, depth and/or stencil aspects to be copied.
      • mipLevel

        public int mipLevel()
        the mipmap level to copy
      • baseArrayLayer

        public int baseArrayLayer()
        baseArrayLayer and layerCount are the starting layer and number of layers to copy.
      • layerCount

        public int layerCount()
        see baseArrayLayer
      • set

        public VkImageSubresourceLayers set​(int aspectMask,
                                            int mipLevel,
                                            int baseArrayLayer,
                                            int layerCount)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

        public static int nmipLevel​(long struct)
        Unsafe version of mipLevel().
      • nbaseArrayLayer

        public static int nbaseArrayLayer​(long struct)
        Unsafe version of baseArrayLayer().
      • nlayerCount

        public static int nlayerCount​(long struct)
        Unsafe version of layerCount().
      • naspectMask

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

        public static void nmipLevel​(long struct,
                                     int value)
        Unsafe version of mipLevel.
      • nbaseArrayLayer

        public static void nbaseArrayLayer​(long struct,
                                           int value)
        Unsafe version of baseArrayLayer.
      • nlayerCount

        public static void nlayerCount​(long struct,
                                       int value)
        Unsafe version of layerCount.