Class XrSessionActionSetsAttachInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class XrSessionActionSetsAttachInfo
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Information to attach action sets to a session.
    Valid Usage (Implicit)
    See Also

    AttachSessionActionSets

    Layout

    
     struct XrSessionActionSetsAttachInfo {
         XrStructureType type();
         void const * next();
         uint32_t countActionSets();
         XrActionSet const * actionSets();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, COUNTACTIONSETS, ACTIONSETS

        The struct member offsets.
    • Constructor Detail

      • XrSessionActionSetsAttachInfo

        public XrSessionActionSetsAttachInfo​(java.nio.ByteBuffer container)
        Creates a XrSessionActionSetsAttachInfo 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • countActionSets

        public int countActionSets()
        an integer specifying the number of valid elements in the actionSets array.
      • actionSets

        public org.lwjgl.PointerBuffer actionSets()
        a pointer to an array of one or more XrActionSet handles to be attached to the session.
      • set

        public XrSessionActionSetsAttachInfo set​(int type,
                                                 long next,
                                                 org.lwjgl.PointerBuffer actionSets)
        Initializes this struct with the specified values.
      • malloc

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

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

        public static XrSessionActionSetsAttachInfo create​(long address)
        Returns a new XrSessionActionSetsAttachInfo instance for the specified memory address.
      • malloc

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

        public static XrSessionActionSetsAttachInfo calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrSessionActionSetsAttachInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        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().
      • ncountActionSets

        public static int ncountActionSets​(long struct)
        Unsafe version of countActionSets().
      • nactionSets

        public static org.lwjgl.PointerBuffer nactionSets​(long struct)
        Unsafe version of actionSets.
      • 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.
      • ncountActionSets

        public static void ncountActionSets​(long struct,
                                            int value)
        Sets the specified value to the countActionSets field of the specified struct.
      • nactionSets

        public static void nactionSets​(long struct,
                                       org.lwjgl.PointerBuffer value)
        Unsafe version of actionSets.
      • validate

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