Class XrSwapchainSubImage

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SWAPCHAIN, IMAGERECT, IMAGEARRAYINDEX

        The struct member offsets.
    • Constructor Detail

      • XrSwapchainSubImage

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

        public long swapchain()
        the XrSwapchain to be displayed.
      • imageRect

        public XrRect2Di imageRect()
        an XrRect2Di representing the valid portion of the image to use, in pixels. It also implicitly defines the transform from normalized image coordinates into pixel coordinates. The coordinate origin depends on which graphics API is being used. See the graphics API extension details for more information on the coordinate origin definition. Note that the compositor may bleed in pixels from outside the bounds in some cases, for instance due to mipmapping.
      • imageArrayIndex

        public int imageArrayIndex()
        the image array index, with 0 meaning the first or only array element.
      • malloc

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

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

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

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

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

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

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

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

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

        public static long nswapchain​(long struct)
        Unsafe version of swapchain().
      • nimageArrayIndex

        public static int nimageArrayIndex​(long struct)
        Unsafe version of imageArrayIndex().
      • nswapchain

        public static void nswapchain​(long struct,
                                      XrSwapchain value)
        Unsafe version of swapchain.
      • nimageRect

        public static void nimageRect​(long struct,
                                      XrRect2Di value)
        Unsafe version of imageRect.
      • nimageArrayIndex

        public static void nimageArrayIndex​(long struct,
                                            int value)
        Unsafe version of imageArrayIndex.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate