Package org.lwjgl.openxr
Class XrInstanceCreateInfo
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrInstanceCreateInfo>
org.lwjgl.openxr.XrInstanceCreateInfo
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrInstanceCreateInfo
extends org.lwjgl.system.Struct<XrInstanceCreateInfo>
implements org.lwjgl.system.NativeResource
Structure specifying params of a newly created instance.
Valid Usage (Implicit)
typemust beTYPE_INSTANCE_CREATE_INFOnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrDebugUtilsMessengerCreateInfoEXTcreateFlagsmust be 0applicationInfomust be a validXrApplicationInfostructure- If
enabledApiLayerCountis not 0,enabledApiLayerNamesmust be a pointer to an array ofenabledApiLayerCountnull-terminated UTF-8 strings - If
enabledExtensionCountis not 0,enabledExtensionNamesmust be a pointer to an array ofenabledExtensionCountnull-terminated UTF-8 strings
See Also
XrApplicationInfo, CreateInstance
Layout
struct XrInstanceCreateInfo {
XrStructureType type();
void const * next();
XrInstanceCreateFlags createFlags();
XrApplicationInfo applicationInfo();
uint32_t enabledApiLayerCount();
char const * const * enabledApiLayerNames();
uint32_t enabledExtensionCount();
char const * const * enabledExtensionNames();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrInstanceCreateInfo(ByteBuffer container) Creates aXrInstanceCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionan instance ofXrApplicationInfo.applicationInfo(Consumer<XrApplicationInfo> consumer) Passes theapplicationInfo()field to the specifiedConsumer.applicationInfo(XrApplicationInfo value) Copies the specifiedXrApplicationInfoto theapplicationInfo()field.static XrInstanceCreateInfocalloc()Returns a newXrInstanceCreateInfoinstance allocated withmemCalloc.static XrInstanceCreateInfo.Buffercalloc(int capacity) Returns a newXrInstanceCreateInfo.Bufferinstance allocated withmemCalloc.static XrInstanceCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrInstanceCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInstanceCreateInfocalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrInstanceCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInstanceCreateInfocreate()Returns a newXrInstanceCreateInfoinstance allocated withBufferUtils.static XrInstanceCreateInfo.Buffercreate(int capacity) Returns a newXrInstanceCreateInfo.Bufferinstance allocated withBufferUtils.static XrInstanceCreateInfocreate(long address) Returns a newXrInstanceCreateInfoinstance for the specified memory address.static XrInstanceCreateInfo.Buffercreate(long address, int capacity) Create aXrInstanceCreateInfo.Bufferinstance at the specified memory.longa bitmask ofXrInstanceCreateFlagsthat identifies options that apply to the creation.createFlags(long value) Sets the specified value to thecreateFlags()field.static @Nullable XrInstanceCreateInfocreateSafe(long address) static @Nullable XrInstanceCreateInfo.BuffercreateSafe(long address, int capacity) intthe number of global API layers to enable.@Nullable org.lwjgl.PointerBuffera pointer to an array ofenabledApiLayerCountstrings containing the names of API layers to enable for the created instance.enabledApiLayerNames(@Nullable org.lwjgl.PointerBuffer value) Sets the address of the specifiedPointerBufferto theenabledApiLayerNames()field.intthe number of global extensions to enable.@Nullable org.lwjgl.PointerBuffera pointer to an array ofenabledExtensionCountstrings containing the names of extensions to enable.enabledExtensionNames(@Nullable org.lwjgl.PointerBuffer value) Sets the address of the specifiedPointerBufferto theenabledExtensionNames()field.static XrInstanceCreateInfomalloc()Returns a newXrInstanceCreateInfoinstance allocated withmemAlloc.static XrInstanceCreateInfo.Buffermalloc(int capacity) Returns a newXrInstanceCreateInfo.Bufferinstance allocated withmemAlloc.static XrInstanceCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrInstanceCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static XrInstanceCreateInfomalloc(org.lwjgl.system.MemoryStack stack) Returns a newXrInstanceCreateInfoinstance allocated on the specifiedMemoryStack.static XrApplicationInfonapplicationInfo(long struct) Unsafe version ofapplicationInfo().static voidnapplicationInfo(long struct, XrApplicationInfo value) Unsafe version ofapplicationInfo.static longncreateFlags(long struct) Unsafe version ofcreateFlags().static voidncreateFlags(long struct, long value) Unsafe version ofcreateFlags.static intnenabledApiLayerCount(long struct) Unsafe version ofenabledApiLayerCount().static voidnenabledApiLayerCount(long struct, int value) Sets the specified value to theenabledApiLayerCountfield of the specifiedstruct.static @Nullable org.lwjgl.PointerBuffernenabledApiLayerNames(long struct) Unsafe version ofenabledApiLayerNames.static voidnenabledApiLayerNames(long struct, @Nullable org.lwjgl.PointerBuffer value) Unsafe version ofenabledApiLayerNames.static intnenabledExtensionCount(long struct) Unsafe version ofenabledExtensionCount().static voidnenabledExtensionCount(long struct, int value) Sets the specified value to theenabledExtensionCountfield of the specifiedstruct.static @Nullable org.lwjgl.PointerBuffernenabledExtensionNames(long struct) Unsafe version ofenabledExtensionNames.static voidnenabledExtensionNames(long struct, @Nullable org.lwjgl.PointerBuffer value) Unsafe version ofenabledExtensionNames.longnext()NULLor a pointer to the next structure in a structure chain.next(long value) Sets the specified value to thenext()field.Prepends the specifiedXrDebugUtilsMessengerCreateInfoEXTvalue to thenextchain.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.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.set(XrInstanceCreateInfo src) Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.type(int value) Sets the specified value to thetype()field.Sets theTYPE_INSTANCE_CREATE_INFOvalue to thetype()field.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
CREATEFLAGS
public static final int CREATEFLAGSThe struct member offsets. -
APPLICATIONINFO
public static final int APPLICATIONINFOThe struct member offsets. -
ENABLEDAPILAYERCOUNT
public static final int ENABLEDAPILAYERCOUNTThe struct member offsets. -
ENABLEDAPILAYERNAMES
public static final int ENABLEDAPILAYERNAMESThe struct member offsets. -
ENABLEDEXTENSIONCOUNT
public static final int ENABLEDEXTENSIONCOUNTThe struct member offsets. -
ENABLEDEXTENSIONNAMES
public static final int ENABLEDEXTENSIONNAMESThe struct member offsets.
-
-
Constructor Details
-
XrInstanceCreateInfo
Creates aXrInstanceCreateInfoinstance at the current position of the specifiedByteBuffercontainer. 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrInstanceCreateInfo>
-
type
public int type()theXrStructureTypeof this structure. -
next
public long next()NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. -
createFlags
public long createFlags()a bitmask ofXrInstanceCreateFlagsthat identifies options that apply to the creation. -
applicationInfo
an instance ofXrApplicationInfo. This information helps runtimes recognize behavior inherent to classes of applications.XrApplicationInfois defined in detail below. -
enabledApiLayerCount
public int enabledApiLayerCount()the number of global API layers to enable. -
enabledApiLayerNames
public @Nullable org.lwjgl.PointerBuffer enabledApiLayerNames()a pointer to an array ofenabledApiLayerCountstrings 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
public @Nullable org.lwjgl.PointerBuffer enabledExtensionNames()a pointer to an array ofenabledExtensionCountstrings containing the names of extensions to enable. -
type
Sets the specified value to thetype()field. -
type$Default
Sets theTYPE_INSTANCE_CREATE_INFOvalue to thetype()field. -
next
Sets the specified value to thenext()field. -
next
Prepends the specifiedXrDebugUtilsMessengerCreateInfoEXTvalue to thenextchain. -
createFlags
Sets the specified value to thecreateFlags()field. -
applicationInfo
Copies the specifiedXrApplicationInfoto theapplicationInfo()field. -
applicationInfo
Passes theapplicationInfo()field to the specifiedConsumer. -
enabledApiLayerNames
Sets the address of the specifiedPointerBufferto theenabledApiLayerNames()field. -
enabledExtensionNames
Sets the address of the specifiedPointerBufferto theenabledExtensionNames()field. -
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. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrInstanceCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrInstanceCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrInstanceCreateInfoinstance allocated withBufferUtils. -
create
Returns a newXrInstanceCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrInstanceCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrInstanceCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrInstanceCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrInstanceCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrInstanceCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrInstanceCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrInstanceCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrInstanceCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
ncreateFlags
public static long ncreateFlags(long struct) Unsafe version ofcreateFlags(). -
napplicationInfo
Unsafe version ofapplicationInfo(). -
nenabledApiLayerCount
public static int nenabledApiLayerCount(long struct) Unsafe version ofenabledApiLayerCount(). -
nenabledApiLayerNames
public static @Nullable org.lwjgl.PointerBuffer nenabledApiLayerNames(long struct) Unsafe version ofenabledApiLayerNames. -
nenabledExtensionCount
public static int nenabledExtensionCount(long struct) Unsafe version ofenabledExtensionCount(). -
nenabledExtensionNames
public static @Nullable org.lwjgl.PointerBuffer nenabledExtensionNames(long struct) Unsafe version ofenabledExtensionNames. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
ncreateFlags
public static void ncreateFlags(long struct, long value) Unsafe version ofcreateFlags. -
napplicationInfo
Unsafe version ofapplicationInfo. -
nenabledApiLayerCount
public static void nenabledApiLayerCount(long struct, int value) Sets the specified value to theenabledApiLayerCountfield of the specifiedstruct. -
nenabledApiLayerNames
public static void nenabledApiLayerNames(long struct, @Nullable org.lwjgl.PointerBuffer value) Unsafe version ofenabledApiLayerNames. -
nenabledExtensionCount
public static void nenabledExtensionCount(long struct, int value) Sets the specified value to theenabledExtensionCountfield of the specifiedstruct. -
nenabledExtensionNames
public static void nenabledExtensionNames(long struct, @Nullable org.lwjgl.PointerBuffer value) Unsafe version ofenabledExtensionNames. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-