Class XrActiveActionSet

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

public class XrActiveActionSet extends org.lwjgl.system.Struct<XrActiveActionSet> implements org.lwjgl.system.NativeResource
Describes an active action set.
Description

This structure defines a single active action set and subaction path combination. Applications can provide a list of these structures to the SyncActions function.

Valid Usage (Implicit)
  • actionSet must be a valid XrActionSet handle
See Also

XrActionsSyncInfo, SyncActions

Layout


 struct XrActiveActionSet {
     XrActionSet actionSet();
     XrPath subactionPath();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ACTIONSET
      The struct member offsets.
    • SUBACTIONPATH

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

    • XrActiveActionSet

      public XrActiveActionSet(ByteBuffer container)
      Creates a XrActiveActionSet 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<XrActiveActionSet>
    • actionSet

      public long actionSet()
      the handle of the action set to activate.
    • subactionPath

      public long subactionPath()
      a subaction path that was declared when one or more actions in the action set was created or NULL_PATH. If the application wants to activate the action set on more than one subaction path, it can include additional XrActiveActionSet structs with the other subactionPath values. Using NULL_PATH as the value for subactionPath, acts as a wildcard for all subaction paths on the actions in the action set. If the subaction path was not specified on any of the actions in the actionSet when that action was created, the runtime must return ERROR_PATH_UNSUPPORTED.
    • actionSet

      public XrActiveActionSet actionSet(XrActionSet value)
      Sets the specified value to the actionSet() field.
    • subactionPath

      public XrActiveActionSet subactionPath(long value)
      Sets the specified value to the subactionPath() field.
    • set

      public XrActiveActionSet set(XrActionSet actionSet, long subactionPath)
      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 XrActiveActionSet malloc()
      Returns a new XrActiveActionSet instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

      public static XrActiveActionSet calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrActiveActionSet instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

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

      public static XrActiveActionSet.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrActiveActionSet.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
    • nactionSet

      public static long nactionSet(long struct)
      Unsafe version of actionSet().
    • nsubactionPath

      public static long nsubactionPath(long struct)
      Unsafe version of subactionPath().
    • nactionSet

      public static void nactionSet(long struct, XrActionSet value)
      Unsafe version of actionSet.
    • nsubactionPath

      public static void nsubactionPath(long struct, long value)
      Unsafe version of subactionPath.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate