Package org.lwjgl.openxr
Class XrFrameWaitInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrFrameWaitInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrFrameWaitInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceWait frame information structure.Description
Because this structure only exists to support extension-specific structures,
WaitFramemust accept aNULLargument forframeWaitInfofor applications that are not using any relevant extensions.Valid Usage (Implicit)
typemust beTYPE_FRAME_WAIT_INFOnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrFrameWaitInfo { XrStructureTypetype(); void const *next(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrFrameWaitInfo.BufferAn array ofXrFrameWaitInfostructs.
-
Constructor Summary
Constructors Constructor Description XrFrameWaitInfo(java.nio.ByteBuffer container)Creates aXrFrameWaitInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrFrameWaitInfocalloc()Returns a newXrFrameWaitInfoinstance allocated withmemCalloc.static XrFrameWaitInfo.Buffercalloc(int capacity)Returns a newXrFrameWaitInfo.Bufferinstance allocated withmemCalloc.static XrFrameWaitInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrFrameWaitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFrameWaitInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrFrameWaitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFrameWaitInfocreate()Returns a newXrFrameWaitInfoinstance allocated withBufferUtils.static XrFrameWaitInfo.Buffercreate(int capacity)Returns a newXrFrameWaitInfo.Bufferinstance allocated withBufferUtils.static XrFrameWaitInfocreate(long address)Returns a newXrFrameWaitInfoinstance for the specified memory address.static XrFrameWaitInfo.Buffercreate(long address, int capacity)Create aXrFrameWaitInfo.Bufferinstance at the specified memory.static XrFrameWaitInfocreateSafe(long address)static XrFrameWaitInfo.BuffercreateSafe(long address, int capacity)static XrFrameWaitInfomalloc()Returns a newXrFrameWaitInfoinstance allocated withmemAlloc.static XrFrameWaitInfo.Buffermalloc(int capacity)Returns a newXrFrameWaitInfo.Bufferinstance allocated withmemAlloc.static XrFrameWaitInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrFrameWaitInfo.Bufferinstance allocated on the specifiedMemoryStack.static XrFrameWaitInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrFrameWaitInfoinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrFrameWaitInfonext(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.XrFrameWaitInfoset(int type, long next)Initializes this struct with the specified values.XrFrameWaitInfoset(XrFrameWaitInfo src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrFrameWaitInfotype(int value)Sets the specified value to thetype()field.XrFrameWaitInfotype$Default()Sets theTYPE_FRAME_WAIT_INFOvalue to thetype()field.
-
-
-
Constructor Detail
-
XrFrameWaitInfo
public XrFrameWaitInfo(java.nio.ByteBuffer container)
Creates aXrFrameWaitInfoinstance 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.
-
type
public XrFrameWaitInfo type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrFrameWaitInfo type$Default()
Sets theTYPE_FRAME_WAIT_INFOvalue to thetype()field.
-
next
public XrFrameWaitInfo next(long value)
Sets the specified value to thenext()field.
-
set
public XrFrameWaitInfo set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrFrameWaitInfo set(XrFrameWaitInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrFrameWaitInfo malloc()
Returns a newXrFrameWaitInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrFrameWaitInfo calloc()
Returns a newXrFrameWaitInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrFrameWaitInfo create()
Returns a newXrFrameWaitInfoinstance allocated withBufferUtils.
-
create
public static XrFrameWaitInfo create(long address)
Returns a newXrFrameWaitInfoinstance for the specified memory address.
-
createSafe
@Nullable public static XrFrameWaitInfo createSafe(long address)
-
malloc
public static XrFrameWaitInfo.Buffer malloc(int capacity)
Returns a newXrFrameWaitInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrFrameWaitInfo.Buffer calloc(int capacity)
Returns a newXrFrameWaitInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrFrameWaitInfo.Buffer create(int capacity)
Returns a newXrFrameWaitInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrFrameWaitInfo.Buffer create(long address, int capacity)
Create aXrFrameWaitInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrFrameWaitInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static XrFrameWaitInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrFrameWaitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrFrameWaitInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrFrameWaitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrFrameWaitInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrFrameWaitInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrFrameWaitInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrFrameWaitInfo.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().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-