Package org.lwjgl.openxr
Class XrSessionActionSetsAttachInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSessionActionSetsAttachInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSessionActionSetsAttachInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceInformation to attach action sets to a session.Valid Usage (Implicit)
typemust beTYPE_SESSION_ACTION_SETS_ATTACH_INFOnextmust beNULLor a valid pointer to the next structure in a structure chainactionSetsmust be a pointer to an array ofcountActionSetsvalidXrActionSethandles- The
countActionSetsparameter must be greater than 0
See Also
Layout
struct XrSessionActionSetsAttachInfo { XrStructureTypetype(); void const *next(); uint32_tcountActionSets(); XrActionSet const *actionSets(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSessionActionSetsAttachInfo.BufferAn array ofXrSessionActionSetsAttachInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIONSETSThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intCOUNTACTIONSETS
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSessionActionSetsAttachInfo(java.nio.ByteBuffer container)Creates aXrSessionActionSetsAttachInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.lwjgl.PointerBufferactionSets()a pointer to an array of one or moreXrActionSethandles to be attached to the session.XrSessionActionSetsAttachInfoactionSets(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theactionSets()field.static XrSessionActionSetsAttachInfocalloc()Returns a newXrSessionActionSetsAttachInfoinstance allocated withmemCalloc.static XrSessionActionSetsAttachInfo.Buffercalloc(int capacity)Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated withmemCalloc.static XrSessionActionSetsAttachInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSessionActionSetsAttachInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSessionActionSetsAttachInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcountActionSets()an integer specifying the number of valid elements in theactionSetsarray.static XrSessionActionSetsAttachInfocreate()Returns a newXrSessionActionSetsAttachInfoinstance allocated withBufferUtils.static XrSessionActionSetsAttachInfo.Buffercreate(int capacity)Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated withBufferUtils.static XrSessionActionSetsAttachInfocreate(long address)Returns a newXrSessionActionSetsAttachInfoinstance for the specified memory address.static XrSessionActionSetsAttachInfo.Buffercreate(long address, int capacity)Create aXrSessionActionSetsAttachInfo.Bufferinstance at the specified memory.static XrSessionActionSetsAttachInfocreateSafe(long address)static XrSessionActionSetsAttachInfo.BuffercreateSafe(long address, int capacity)static XrSessionActionSetsAttachInfomalloc()Returns a newXrSessionActionSetsAttachInfoinstance allocated withmemAlloc.static XrSessionActionSetsAttachInfo.Buffermalloc(int capacity)Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated withmemAlloc.static XrSessionActionSetsAttachInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated on the specifiedMemoryStack.static XrSessionActionSetsAttachInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSessionActionSetsAttachInfoinstance allocated on the specifiedMemoryStack.static org.lwjgl.PointerBuffernactionSets(long struct)Unsafe version ofactionSets.static voidnactionSets(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofactionSets.static intncountActionSets(long struct)Unsafe version ofcountActionSets().static voidncountActionSets(long struct, int value)Sets the specified value to thecountActionSetsfield of the specifiedstruct.longnext()NULLor a pointer to the next structure in a structure chain.XrSessionActionSetsAttachInfonext(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 intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSessionActionSetsAttachInfoset(int type, long next, org.lwjgl.PointerBuffer actionSets)Initializes this struct with the specified values.XrSessionActionSetsAttachInfoset(XrSessionActionSetsAttachInfo src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSessionActionSetsAttachInfotype(int value)Sets the specified value to thetype()field.XrSessionActionSetsAttachInfotype$Default()Sets theTYPE_SESSION_ACTION_SETS_ATTACH_INFOvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrSessionActionSetsAttachInfo
public XrSessionActionSetsAttachInfo(java.nio.ByteBuffer container)
Creates aXrSessionActionSetsAttachInfoinstance 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.
-
countActionSets
public int countActionSets()
an integer specifying the number of valid elements in theactionSetsarray.
-
actionSets
public org.lwjgl.PointerBuffer actionSets()
a pointer to an array of one or moreXrActionSethandles to be attached to the session.
-
type
public XrSessionActionSetsAttachInfo type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSessionActionSetsAttachInfo type$Default()
Sets theTYPE_SESSION_ACTION_SETS_ATTACH_INFOvalue to thetype()field.
-
next
public XrSessionActionSetsAttachInfo next(long value)
Sets the specified value to thenext()field.
-
actionSets
public XrSessionActionSetsAttachInfo actionSets(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theactionSets()field.
-
set
public XrSessionActionSetsAttachInfo set(int type, long next, org.lwjgl.PointerBuffer actionSets)
Initializes this struct with the specified values.
-
set
public XrSessionActionSetsAttachInfo set(XrSessionActionSetsAttachInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSessionActionSetsAttachInfo malloc()
Returns a newXrSessionActionSetsAttachInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSessionActionSetsAttachInfo calloc()
Returns a newXrSessionActionSetsAttachInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSessionActionSetsAttachInfo create()
Returns a newXrSessionActionSetsAttachInfoinstance allocated withBufferUtils.
-
create
public static XrSessionActionSetsAttachInfo create(long address)
Returns a newXrSessionActionSetsAttachInfoinstance for the specified memory address.
-
createSafe
@Nullable public static XrSessionActionSetsAttachInfo createSafe(long address)
-
malloc
public static XrSessionActionSetsAttachInfo.Buffer malloc(int capacity)
Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSessionActionSetsAttachInfo.Buffer calloc(int capacity)
Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSessionActionSetsAttachInfo.Buffer create(int capacity)
Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSessionActionSetsAttachInfo.Buffer create(long address, int capacity)
Create aXrSessionActionSetsAttachInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSessionActionSetsAttachInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSessionActionSetsAttachInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSessionActionSetsAttachInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSessionActionSetsAttachInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSessionActionSetsAttachInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSessionActionSetsAttachInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSessionActionSetsAttachInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSessionActionSetsAttachInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSessionActionSetsAttachInfo.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().
-
ncountActionSets
public static int ncountActionSets(long struct)
Unsafe version ofcountActionSets().
-
nactionSets
public static org.lwjgl.PointerBuffer nactionSets(long struct)
Unsafe version ofactionSets.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ncountActionSets
public static void ncountActionSets(long struct, int value)Sets the specified value to thecountActionSetsfield of the specifiedstruct.
-
nactionSets
public static void nactionSets(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofactionSets.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-