Class XrInstanceCreateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, CREATEFLAGS, APPLICATIONINFO, ENABLEDAPILAYERCOUNT, ENABLEDAPILAYERNAMES, ENABLEDEXTENSIONCOUNT, ENABLEDEXTENSIONNAMES

        The struct member offsets.
    • Constructor Detail

      • XrInstanceCreateInfo

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

        public int type()
        the XrStructureType of this structure.
      • next

        public long next()
        NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
      • createFlags

        public long createFlags()
        a bitmask of XrInstanceCreateFlags that identifies options that apply to the creation.
      • enabledApiLayerCount

        public int enabledApiLayerCount()
        the number of global API layers to enable.
      • enabledApiLayerNames

        @Nullable
        public org.lwjgl.PointerBuffer enabledApiLayerNames()
        a pointer to an array of enabledApiLayerCount strings containing the names of API layers to enable for the created instance. See the API Layers And Extensions section for further details.
      • enabledExtensionCount

        public int enabledExtensionCount()
        the number of global extensions to enable.
      • enabledExtensionNames

        @Nullable
        public org.lwjgl.PointerBuffer enabledExtensionNames()
        a pointer to an array of enabledExtensionCount strings containing the names of extensions to enable.
      • set

        public XrInstanceCreateInfo set​(int type,
                                        long next,
                                        long createFlags,
                                        XrApplicationInfo applicationInfo,
                                        @Nullable
                                        org.lwjgl.PointerBuffer enabledApiLayerNames,
                                        @Nullable
                                        org.lwjgl.PointerBuffer enabledExtensionNames)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

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

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

        public static int ntype​(long struct)
        Unsafe version of type().
      • nnext

        public static long nnext​(long struct)
        Unsafe version of next().
      • ncreateFlags

        public static long ncreateFlags​(long struct)
        Unsafe version of createFlags().
      • nenabledApiLayerCount

        public static int nenabledApiLayerCount​(long struct)
        Unsafe version of enabledApiLayerCount().
      • nenabledApiLayerNames

        @Nullable
        public static org.lwjgl.PointerBuffer nenabledApiLayerNames​(long struct)
        Unsafe version of enabledApiLayerNames.
      • nenabledExtensionCount

        public static int nenabledExtensionCount​(long struct)
        Unsafe version of enabledExtensionCount().
      • nenabledExtensionNames

        @Nullable
        public static org.lwjgl.PointerBuffer nenabledExtensionNames​(long struct)
        Unsafe version of enabledExtensionNames.
      • ntype

        public static void ntype​(long struct,
                                 int value)
        Unsafe version of type.
      • nnext

        public static void nnext​(long struct,
                                 long value)
        Unsafe version of next.
      • ncreateFlags

        public static void ncreateFlags​(long struct,
                                        long value)
        Unsafe version of createFlags.
      • nenabledApiLayerCount

        public static void nenabledApiLayerCount​(long struct,
                                                 int value)
        Sets the specified value to the enabledApiLayerCount field of the specified struct.
      • nenabledApiLayerNames

        public static void nenabledApiLayerNames​(long struct,
                                                 @Nullable
                                                 org.lwjgl.PointerBuffer value)
        Unsafe version of enabledApiLayerNames.
      • nenabledExtensionCount

        public static void nenabledExtensionCount​(long struct,
                                                  int value)
        Sets the specified value to the enabledExtensionCount field of the specified struct.
      • nenabledExtensionNames

        public static void nenabledExtensionNames​(long struct,
                                                  @Nullable
                                                  org.lwjgl.PointerBuffer value)
        Unsafe version of enabledExtensionNames.
      • validate

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