Package org.lwjgl.openxr
Class XrInstanceProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrInstanceProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrInstanceProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceContains information about the instance.Valid Usage (Implicit)
typemust beTYPE_INSTANCE_PROPERTIESnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrInstanceProperties { XrStructureTypetype(); void *next(); XrVersionruntimeVersion(); charruntimeName()[XR_MAX_RUNTIME_NAME_SIZE]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrInstanceProperties.BufferAn array ofXrInstancePropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXT
RUNTIMENAME
RUNTIMEVERSIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrInstanceProperties(java.nio.ByteBuffer container)Creates aXrInstancePropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrInstancePropertiescalloc()Returns a newXrInstancePropertiesinstance allocated withmemCalloc.static XrInstanceProperties.Buffercalloc(int capacity)Returns a newXrInstanceProperties.Bufferinstance allocated withmemCalloc.static XrInstanceProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrInstanceProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInstancePropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrInstancePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInstancePropertiescreate()Returns a newXrInstancePropertiesinstance allocated withBufferUtils.static XrInstanceProperties.Buffercreate(int capacity)Returns a newXrInstanceProperties.Bufferinstance allocated withBufferUtils.static XrInstancePropertiescreate(long address)Returns a newXrInstancePropertiesinstance for the specified memory address.static XrInstanceProperties.Buffercreate(long address, int capacity)Create aXrInstanceProperties.Bufferinstance at the specified memory.static XrInstancePropertiescreateSafe(long address)static XrInstanceProperties.BuffercreateSafe(long address, int capacity)static XrInstancePropertiesmalloc()Returns a newXrInstancePropertiesinstance allocated withmemAlloc.static XrInstanceProperties.Buffermalloc(int capacity)Returns a newXrInstanceProperties.Bufferinstance allocated withmemAlloc.static XrInstanceProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrInstanceProperties.Bufferinstance allocated on the specifiedMemoryStack.static XrInstancePropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrInstancePropertiesinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrInstancePropertiesnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static java.nio.ByteBuffernruntimeName(long struct)Unsafe version ofruntimeName().static java.lang.StringnruntimeNameString(long struct)Unsafe version ofruntimeNameString().static longnruntimeVersion(long struct)Unsafe version ofruntimeVersion().static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.java.nio.ByteBufferruntimeName()the name of the runtime.java.lang.StringruntimeNameString()the name of the runtime.longruntimeVersion()the runtime’s version (not necessarily related to an OpenXR API version), expressed in the format ofXR10.XR_MAKE_VERSION(int, int, int).XrInstancePropertiesset(int type, long next)Initializes this struct with the specified values.XrInstancePropertiesset(XrInstanceProperties src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrInstancePropertiestype(int value)Sets the specified value to thetype()field.XrInstancePropertiestype$Default()Sets theTYPE_INSTANCE_PROPERTIESvalue to thetype()field.
-
-
-
Constructor Detail
-
XrInstanceProperties
public XrInstanceProperties(java.nio.ByteBuffer container)
Creates aXrInstancePropertiesinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
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.
-
runtimeVersion
public long runtimeVersion()
the runtime’s version (not necessarily related to an OpenXR API version), expressed in the format ofXR10.XR_MAKE_VERSION(int, int, int).
-
runtimeName, runtimeNameString
public java.nio.ByteBuffer runtimeName() public java.lang.String runtimeNameString()
the name of the runtime.
-
type
public XrInstanceProperties type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrInstanceProperties type$Default()
Sets theTYPE_INSTANCE_PROPERTIESvalue to thetype()field.
-
next
public XrInstanceProperties next(long value)
Sets the specified value to thenext()field.
-
set
public XrInstanceProperties set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrInstanceProperties set(XrInstanceProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrInstanceProperties malloc()
Returns a newXrInstancePropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrInstanceProperties calloc()
Returns a newXrInstancePropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrInstanceProperties create()
Returns a newXrInstancePropertiesinstance allocated withBufferUtils.
-
create
public static XrInstanceProperties create(long address)
Returns a newXrInstancePropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static XrInstanceProperties createSafe(long address)
-
malloc
public static XrInstanceProperties.Buffer malloc(int capacity)
Returns a newXrInstanceProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrInstanceProperties.Buffer calloc(int capacity)
Returns a newXrInstanceProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrInstanceProperties.Buffer create(int capacity)
Returns a newXrInstanceProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrInstanceProperties.Buffer create(long address, int capacity)
Create aXrInstanceProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrInstanceProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static XrInstanceProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrInstancePropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrInstanceProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrInstancePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrInstanceProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrInstanceProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrInstanceProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrInstanceProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nruntimeVersion
public static long nruntimeVersion(long struct)
Unsafe version ofruntimeVersion().
-
nruntimeName
public static java.nio.ByteBuffer nruntimeName(long struct)
Unsafe version ofruntimeName().
-
nruntimeNameString
public static java.lang.String nruntimeNameString(long struct)
Unsafe version ofruntimeNameString().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-