Package org.lwjgl.openxr
Class XrEventDataInstanceLossPending
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataInstanceLossPending
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataInstanceLossPending extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEvent indicating instance loss will occur.Description
After the application has destroyed all of its instances and their children and waited past the specified time, it may then re-try
CreateInstancein a loop waiting for whatever maintenance the runtime is performing to complete. The runtime will returnERROR_RUNTIME_UNAVAILABLEfromCreateInstanceas long as it is unable to create the instance. Once the runtime has returned and is able to continue, it must resume returningSUCCESSfromCreateInstanceif valid data is passed in.Member Descriptions
typeis theXrStructureTypeof this structure.nextisNULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.lossTimeis the absolute time at which the indicated instance will be considered lost and become unusable.
Valid Usage (Implicit)
typemust beTYPE_EVENT_DATA_INSTANCE_LOSS_PENDINGnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrEventDataBaseHeader,PollEventLayout
struct XrEventDataInstanceLossPending { XrStructureType type; void const * next; XrTime lossTime; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataInstanceLossPending.BufferAn array ofXrEventDataInstanceLossPendingstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataInstanceLossPending(java.nio.ByteBuffer container)Creates aXrEventDataInstanceLossPendinginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataInstanceLossPendingcalloc()Returns a newXrEventDataInstanceLossPendinginstance allocated withmemCalloc.static XrEventDataInstanceLossPending.Buffercalloc(int capacity)Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated withmemCalloc.static XrEventDataInstanceLossPending.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataInstanceLossPendingcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataInstanceLossPendinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataInstanceLossPendingcreate()Returns a newXrEventDataInstanceLossPendinginstance allocated withBufferUtils.static XrEventDataInstanceLossPending.Buffercreate(int capacity)Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated withBufferUtils.static XrEventDataInstanceLossPendingcreate(long address)Returns a newXrEventDataInstanceLossPendinginstance for the specified memory address.static XrEventDataInstanceLossPending.Buffercreate(long address, int capacity)Create aXrEventDataInstanceLossPending.Bufferinstance at the specified memory.static XrEventDataInstanceLossPendingcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataInstanceLossPending.static XrEventDataInstanceLossPending.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataInstanceLossPending.Buffer.static XrEventDataInstanceLossPendingcreateSafe(long address)static XrEventDataInstanceLossPending.BuffercreateSafe(long address, int capacity)longlossTime()XrEventDataInstanceLossPendinglossTime(long value)Sets the specified value to thelossTimefield.static XrEventDataInstanceLossPendingmalloc()Returns a newXrEventDataInstanceLossPendinginstance allocated withmemAlloc.static XrEventDataInstanceLossPending.Buffermalloc(int capacity)Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated withmemAlloc.static XrEventDataInstanceLossPending.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataInstanceLossPendingmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataInstanceLossPendinginstance allocated on the specifiedMemoryStack.longnext()XrEventDataInstanceLossPendingnext(long value)Sets the specified value to thenextfield.static longnlossTime(long struct)Unsafe version oflossTime().static voidnlossTime(long struct, long value)Unsafe version oflossTime.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.XrEventDataInstanceLossPendingset(int type, long next, long lossTime)Initializes this struct with the specified values.XrEventDataInstanceLossPendingset(XrEventDataInstanceLossPending src)Copies the specified struct data to this struct.intsizeof()inttype()XrEventDataInstanceLossPendingtype(int value)Sets the specified value to thetypefield.XrEventDataInstanceLossPendingtype$Default()Sets theTYPE_EVENT_DATA_INSTANCE_LOSS_PENDINGvalue to thetypefield.
-
-
-
Constructor Detail
-
XrEventDataInstanceLossPending
public XrEventDataInstanceLossPending(java.nio.ByteBuffer container)
Creates aXrEventDataInstanceLossPendinginstance 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()
- Returns:
- the value of the
typefield.
-
next
public long next()
- Returns:
- the value of the
nextfield.
-
lossTime
public long lossTime()
- Returns:
- the value of the
lossTimefield.
-
type
public XrEventDataInstanceLossPending type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrEventDataInstanceLossPending type$Default()
Sets theTYPE_EVENT_DATA_INSTANCE_LOSS_PENDINGvalue to thetypefield.
-
next
public XrEventDataInstanceLossPending next(long value)
Sets the specified value to thenextfield.
-
lossTime
public XrEventDataInstanceLossPending lossTime(long value)
Sets the specified value to thelossTimefield.
-
set
public XrEventDataInstanceLossPending set(int type, long next, long lossTime)
Initializes this struct with the specified values.
-
set
public XrEventDataInstanceLossPending set(XrEventDataInstanceLossPending src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataInstanceLossPending malloc()
Returns a newXrEventDataInstanceLossPendinginstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataInstanceLossPending calloc()
Returns a newXrEventDataInstanceLossPendinginstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataInstanceLossPending create()
Returns a newXrEventDataInstanceLossPendinginstance allocated withBufferUtils.
-
create
public static XrEventDataInstanceLossPending create(long address)
Returns a newXrEventDataInstanceLossPendinginstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataInstanceLossPending createSafe(long address)
-
create
public static XrEventDataInstanceLossPending create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataInstanceLossPending.
-
malloc
public static XrEventDataInstanceLossPending.Buffer malloc(int capacity)
Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataInstanceLossPending.Buffer calloc(int capacity)
Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataInstanceLossPending.Buffer create(int capacity)
Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataInstanceLossPending.Buffer create(long address, int capacity)
Create aXrEventDataInstanceLossPending.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataInstanceLossPending.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataInstanceLossPending.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataInstanceLossPending.Buffer.
-
malloc
public static XrEventDataInstanceLossPending malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataInstanceLossPendinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataInstanceLossPending calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataInstanceLossPendinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataInstanceLossPending.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataInstanceLossPending.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataInstanceLossPending.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataInstanceLossPending.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().
-
nlossTime
public static long nlossTime(long struct)
Unsafe version oflossTime().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nlossTime
public static void nlossTime(long struct, long value)Unsafe version oflossTime.
-
-