Package org.lwjgl.openxr
Class XrActionsSyncInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrActionsSyncInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrActionsSyncInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceInformation to sync actions.Valid Usage (Implicit)
typemust beTYPE_ACTIONS_SYNC_INFOnextmust beNULLor a valid pointer to the next structure in a structure chain- If
countActiveActionSetsis not 0,activeActionSetsmust be a pointer to an array ofcountActiveActionSetsvalidXrActiveActionSetstructures
See Also
XrActiveActionSet,SyncActionsLayout
struct XrActionsSyncInfo { XrStructureTypetype(); void const *next(); uint32_tcountActiveActionSets();XrActiveActionSetconst *activeActionSets(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrActionsSyncInfo.BufferAn array ofXrActionsSyncInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intACTIVEACTIONSETSThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intCOUNTACTIVEACTIONSETS
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrActionsSyncInfo(java.nio.ByteBuffer container)Creates aXrActionsSyncInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XrActiveActionSet.BufferactiveActionSets()NULLor a pointer to an array of one or moreXrActiveActionSetstructures that should be synchronized.XrActionsSyncInfoactiveActionSets(XrActiveActionSet.Buffer value)Sets the address of the specifiedXrActiveActionSet.Bufferto theactiveActionSets()field.static XrActionsSyncInfocalloc()Returns a newXrActionsSyncInfoinstance allocated withmemCalloc.static XrActionsSyncInfo.Buffercalloc(int capacity)Returns a newXrActionsSyncInfo.Bufferinstance allocated withmemCalloc.static XrActionsSyncInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrActionsSyncInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrActionsSyncInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrActionsSyncInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcountActiveActionSets()an integer specifying the number of valid elements in theactiveActionSetsarray.XrActionsSyncInfocountActiveActionSets(int value)Sets the specified value to thecountActiveActionSets()field.static XrActionsSyncInfocreate()Returns a newXrActionsSyncInfoinstance allocated withBufferUtils.static XrActionsSyncInfo.Buffercreate(int capacity)Returns a newXrActionsSyncInfo.Bufferinstance allocated withBufferUtils.static XrActionsSyncInfocreate(long address)Returns a newXrActionsSyncInfoinstance for the specified memory address.static XrActionsSyncInfo.Buffercreate(long address, int capacity)Create aXrActionsSyncInfo.Bufferinstance at the specified memory.static XrActionsSyncInfocreateSafe(long address)static XrActionsSyncInfo.BuffercreateSafe(long address, int capacity)static XrActionsSyncInfomalloc()Returns a newXrActionsSyncInfoinstance allocated withmemAlloc.static XrActionsSyncInfo.Buffermalloc(int capacity)Returns a newXrActionsSyncInfo.Bufferinstance allocated withmemAlloc.static XrActionsSyncInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrActionsSyncInfo.Bufferinstance allocated on the specifiedMemoryStack.static XrActionsSyncInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrActionsSyncInfoinstance allocated on the specifiedMemoryStack.static XrActiveActionSet.BuffernactiveActionSets(long struct)Unsafe version ofactiveActionSets().static voidnactiveActionSets(long struct, XrActiveActionSet.Buffer value)Unsafe version ofactiveActionSets.static intncountActiveActionSets(long struct)Unsafe version ofcountActiveActionSets().static voidncountActiveActionSets(long struct, int value)Sets the specified value to thecountActiveActionSetsfield of the specifiedstruct.longnext()NULLor a pointer to the next structure in a structure chain.XrActionsSyncInfonext(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.XrActionsSyncInfoset(int type, long next, int countActiveActionSets, XrActiveActionSet.Buffer activeActionSets)Initializes this struct with the specified values.XrActionsSyncInfoset(XrActionsSyncInfo src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrActionsSyncInfotype(int value)Sets the specified value to thetype()field.XrActionsSyncInfotype$Default()Sets theTYPE_ACTIONS_SYNC_INFOvalue to thetype()field.
-
-
-
Constructor Detail
-
XrActionsSyncInfo
public XrActionsSyncInfo(java.nio.ByteBuffer container)
Creates aXrActionsSyncInfoinstance 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.
-
countActiveActionSets
public int countActiveActionSets()
an integer specifying the number of valid elements in theactiveActionSetsarray.
-
activeActionSets
@Nullable public XrActiveActionSet.Buffer activeActionSets()
NULLor a pointer to an array of one or moreXrActiveActionSetstructures that should be synchronized.
-
type
public XrActionsSyncInfo type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrActionsSyncInfo type$Default()
Sets theTYPE_ACTIONS_SYNC_INFOvalue to thetype()field.
-
next
public XrActionsSyncInfo next(long value)
Sets the specified value to thenext()field.
-
countActiveActionSets
public XrActionsSyncInfo countActiveActionSets(int value)
Sets the specified value to thecountActiveActionSets()field.
-
activeActionSets
public XrActionsSyncInfo activeActionSets(@Nullable XrActiveActionSet.Buffer value)
Sets the address of the specifiedXrActiveActionSet.Bufferto theactiveActionSets()field.
-
set
public XrActionsSyncInfo set(int type, long next, int countActiveActionSets, @Nullable XrActiveActionSet.Buffer activeActionSets)
Initializes this struct with the specified values.
-
set
public XrActionsSyncInfo set(XrActionsSyncInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrActionsSyncInfo malloc()
Returns a newXrActionsSyncInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrActionsSyncInfo calloc()
Returns a newXrActionsSyncInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrActionsSyncInfo create()
Returns a newXrActionsSyncInfoinstance allocated withBufferUtils.
-
create
public static XrActionsSyncInfo create(long address)
Returns a newXrActionsSyncInfoinstance for the specified memory address.
-
createSafe
@Nullable public static XrActionsSyncInfo createSafe(long address)
-
malloc
public static XrActionsSyncInfo.Buffer malloc(int capacity)
Returns a newXrActionsSyncInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrActionsSyncInfo.Buffer calloc(int capacity)
Returns a newXrActionsSyncInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrActionsSyncInfo.Buffer create(int capacity)
Returns a newXrActionsSyncInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrActionsSyncInfo.Buffer create(long address, int capacity)
Create aXrActionsSyncInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrActionsSyncInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static XrActionsSyncInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrActionsSyncInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrActionsSyncInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrActionsSyncInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrActionsSyncInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrActionsSyncInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrActionsSyncInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrActionsSyncInfo.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().
-
ncountActiveActionSets
public static int ncountActiveActionSets(long struct)
Unsafe version ofcountActiveActionSets().
-
nactiveActionSets
@Nullable public static XrActiveActionSet.Buffer nactiveActionSets(long struct)
Unsafe version ofactiveActionSets().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ncountActiveActionSets
public static void ncountActiveActionSets(long struct, int value)Sets the specified value to thecountActiveActionSetsfield of the specifiedstruct.
-
nactiveActionSets
public static void nactiveActionSets(long struct, @Nullable XrActiveActionSet.Buffer value)Unsafe version ofactiveActionSets.
-
-