Package org.lwjgl.openxr
Class XrExtensionProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrExtensionProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrExtensionProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceReturns properties of available instance extensions.Valid Usage (Implicit)
typemust beTYPE_EXTENSION_PROPERTIESnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
EnumerateInstanceExtensionPropertiesLayout
struct XrExtensionProperties { XrStructureTypetype(); void *next(); charextensionName()[XR_MAX_EXTENSION_NAME_SIZE]; uint32_textensionVersion(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrExtensionProperties.BufferAn array ofXrExtensionPropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXTENSIONNAME
EXTENSIONVERSION
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrExtensionProperties(java.nio.ByteBuffer container)Creates aXrExtensionPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrExtensionPropertiescalloc()Returns a newXrExtensionPropertiesinstance allocated withmemCalloc.static XrExtensionProperties.Buffercalloc(int capacity)Returns a newXrExtensionProperties.Bufferinstance allocated withmemCalloc.static XrExtensionProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrExtensionProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrExtensionPropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrExtensionPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrExtensionPropertiescreate()Returns a newXrExtensionPropertiesinstance allocated withBufferUtils.static XrExtensionProperties.Buffercreate(int capacity)Returns a newXrExtensionProperties.Bufferinstance allocated withBufferUtils.static XrExtensionPropertiescreate(long address)Returns a newXrExtensionPropertiesinstance for the specified memory address.static XrExtensionProperties.Buffercreate(long address, int capacity)Create aXrExtensionProperties.Bufferinstance at the specified memory.static XrExtensionPropertiescreateSafe(long address)static XrExtensionProperties.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferextensionName()aNULLterminated string specifying the name of the extension.java.lang.StringextensionNameString()aNULLterminated string specifying the name of the extension.intextensionVersion()the version of this extension.static XrExtensionPropertiesmalloc()Returns a newXrExtensionPropertiesinstance allocated withmemAlloc.static XrExtensionProperties.Buffermalloc(int capacity)Returns a newXrExtensionProperties.Bufferinstance allocated withmemAlloc.static XrExtensionProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrExtensionProperties.Bufferinstance allocated on the specifiedMemoryStack.static XrExtensionPropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrExtensionPropertiesinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrExtensionPropertiesnext(long value)Sets the specified value to thenext()field.static java.nio.ByteBuffernextensionName(long struct)Unsafe version ofextensionName().static java.lang.StringnextensionNameString(long struct)Unsafe version ofextensionNameString().static intnextensionVersion(long struct)Unsafe version ofextensionVersion().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.XrExtensionPropertiesset(int type, long next)Initializes this struct with the specified values.XrExtensionPropertiesset(XrExtensionProperties src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrExtensionPropertiestype(int value)Sets the specified value to thetype()field.XrExtensionPropertiestype$Default()Sets theTYPE_EXTENSION_PROPERTIESvalue to thetype()field.
-
-
-
Constructor Detail
-
XrExtensionProperties
public XrExtensionProperties(java.nio.ByteBuffer container)
Creates aXrExtensionPropertiesinstance 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.
-
extensionName, extensionNameString
public java.nio.ByteBuffer extensionName() public java.lang.String extensionNameString()
aNULLterminated string specifying the name of the extension.
-
extensionVersion
public int extensionVersion()
the version of this extension. It is an integer, incremented with backward compatible changes.
-
type
public XrExtensionProperties type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrExtensionProperties type$Default()
Sets theTYPE_EXTENSION_PROPERTIESvalue to thetype()field.
-
next
public XrExtensionProperties next(long value)
Sets the specified value to thenext()field.
-
set
public XrExtensionProperties set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrExtensionProperties set(XrExtensionProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrExtensionProperties malloc()
Returns a newXrExtensionPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrExtensionProperties calloc()
Returns a newXrExtensionPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrExtensionProperties create()
Returns a newXrExtensionPropertiesinstance allocated withBufferUtils.
-
create
public static XrExtensionProperties create(long address)
Returns a newXrExtensionPropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static XrExtensionProperties createSafe(long address)
-
malloc
public static XrExtensionProperties.Buffer malloc(int capacity)
Returns a newXrExtensionProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrExtensionProperties.Buffer calloc(int capacity)
Returns a newXrExtensionProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrExtensionProperties.Buffer create(int capacity)
Returns a newXrExtensionProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrExtensionProperties.Buffer create(long address, int capacity)
Create aXrExtensionProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrExtensionProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static XrExtensionProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrExtensionPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrExtensionProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrExtensionPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrExtensionProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrExtensionProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrExtensionProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrExtensionProperties.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().
-
nextensionName
public static java.nio.ByteBuffer nextensionName(long struct)
Unsafe version ofextensionName().
-
nextensionNameString
public static java.lang.String nextensionNameString(long struct)
Unsafe version ofextensionNameString().
-
nextensionVersion
public static int nextensionVersion(long struct)
Unsafe version ofextensionVersion().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-