Class XrActionsSyncInfo

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

public class XrActionsSyncInfo extends org.lwjgl.system.Struct<XrActionsSyncInfo> implements org.lwjgl.system.NativeResource
Information to sync actions.
Valid Usage (Implicit)
See Also

XrActiveActionSet, SyncActions

Layout


 struct XrActionsSyncInfo {
     XrStructureType type();
     void const * next();
     uint32_t countActiveActionSets();
     XrActiveActionSet const * activeActionSets();
 }
  • 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.
    • COUNTACTIVEACTIONSETS

      public static final int COUNTACTIVEACTIONSETS
      The struct member offsets.
    • ACTIVEACTIONSETS

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

    • XrActionsSyncInfo

      public XrActionsSyncInfo(ByteBuffer container)
      Creates a XrActionsSyncInfo 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

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrActionsSyncInfo>
    • type

      public int type()
      the XrStructureType of this structure.
    • next

      public long next()
      NULL or 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 the activeActionSets array.
    • activeActionSets

      public @Nullable XrActiveActionSet.Buffer activeActionSets()
      NULL or a pointer to an array of one or more XrActiveActionSet structures that should be synchronized.
    • type

      public XrActionsSyncInfo type(int value)
      Sets the specified value to the type() field.
    • type$Default

      public XrActionsSyncInfo type$Default()
      Sets the TYPE_ACTIONS_SYNC_INFO value to the type() field.
    • next

      public XrActionsSyncInfo next(long value)
      Sets the specified value to the next() field.
    • next

      Prepends the specified XrActiveActionSetPrioritiesEXT value to the next chain.
    • countActiveActionSets

      public XrActionsSyncInfo countActiveActionSets(int value)
      Sets the specified value to the countActiveActionSets() field.
    • activeActionSets

      public XrActionsSyncInfo activeActionSets(@Nullable XrActiveActionSet.Buffer value)
      Sets the address of the specified XrActiveActionSet.Buffer to the activeActionSets() field.
    • set

      public XrActionsSyncInfo set(int type, long next, int countActiveActionSets, @Nullable XrActiveActionSet.Buffer activeActionSets)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static XrActionsSyncInfo malloc()
      Returns a new XrActionsSyncInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrActionsSyncInfo calloc()
      Returns a new XrActionsSyncInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrActionsSyncInfo create()
      Returns a new XrActionsSyncInfo instance allocated with BufferUtils.
    • create

      public static XrActionsSyncInfo create(long address)
      Returns a new XrActionsSyncInfo instance for the specified memory address.
    • createSafe

      public static @Nullable XrActionsSyncInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrActionsSyncInfo.Buffer malloc(int capacity)
      Returns a new XrActionsSyncInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrActionsSyncInfo.Buffer calloc(int capacity)
      Returns a new XrActionsSyncInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrActionsSyncInfo.Buffer create(int capacity)
      Returns a new XrActionsSyncInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrActionsSyncInfo.Buffer create(long address, int capacity)
      Create a XrActionsSyncInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrActionsSyncInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrActionsSyncInfo malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrActionsSyncInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrActionsSyncInfo calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrActionsSyncInfo instance allocated on the specified MemoryStack and 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 new XrActionsSyncInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrActionsSyncInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrActionsSyncInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • ncountActiveActionSets

      public static int ncountActiveActionSets(long struct)
      Unsafe version of countActiveActionSets().
    • nactiveActionSets

      public static @Nullable XrActiveActionSet.Buffer nactiveActionSets(long struct)
      Unsafe version of activeActionSets().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.
    • ncountActiveActionSets

      public static void ncountActiveActionSets(long struct, int value)
      Sets the specified value to the countActiveActionSets field of the specified struct.
    • nactiveActionSets

      public static void nactiveActionSets(long struct, @Nullable XrActiveActionSet.Buffer value)
      Unsafe version of activeActionSets.