Class XrEventDataInstanceLossPending

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrEventDataInstanceLossPending>
org.lwjgl.openxr.XrEventDataInstanceLossPending
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrEventDataInstanceLossPending extends org.lwjgl.system.Struct<XrEventDataInstanceLossPending> implements org.lwjgl.system.NativeResource
Event 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 CreateInstance in a loop waiting for whatever maintenance the runtime is performing to complete. The runtime will return ERROR_RUNTIME_UNAVAILABLE from CreateInstance as long as it is unable to create the instance. Once the runtime has returned and is able to continue, it must resume returning SUCCESS from CreateInstance if valid data is passed in.

Member Descriptions
  • type is the XrStructureType of this structure.
  • next is NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
  • lossTime is the absolute time at which the indicated instance will be considered lost and become unusable.
Valid Usage (Implicit)
See Also

XrEventDataBaseHeader, PollEvent

Layout


 struct XrEventDataInstanceLossPending {
     XrStructureType type;
     void const * next;
     XrTime lossTime;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • LOSSTIME

      public static final int LOSSTIME
      The struct member offsets.
  • Constructor Details

    • XrEventDataInstanceLossPending

      public XrEventDataInstanceLossPending(ByteBuffer container)
      Creates a XrEventDataInstanceLossPending instance at the current position of the specified ByteBuffer container. 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 Details