Class XrBindingModificationsKHR

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

public class XrBindingModificationsKHR extends org.lwjgl.system.Struct<XrBindingModificationsKHR> implements org.lwjgl.system.NativeResource
Suggested bindings with binding modification details.
Valid Usage (Implicit)
See Also

XrBindingModificationBaseHeaderKHR, SuggestInteractionProfileBindings

Layout


 struct XrBindingModificationsKHR {
     XrStructureType type();
     void const * next();
     uint32_t bindingModificationCount();
     XrBindingModificationBaseHeaderKHR const * const * bindingModifications();
 }
  • 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.
    • BINDINGMODIFICATIONCOUNT

      public static final int BINDINGMODIFICATIONCOUNT
      The struct member offsets.
    • BINDINGMODIFICATIONS

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

    • XrBindingModificationsKHR

      public XrBindingModificationsKHR(ByteBuffer container)
      Creates a XrBindingModificationsKHR 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<XrBindingModificationsKHR>
    • 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.
    • bindingModificationCount

      public int bindingModificationCount()
      the number of binding modifications in the array pointed to by bindingModifications.
    • bindingModifications

      public @Nullable org.lwjgl.PointerBuffer bindingModifications()
      a pointer to an array of pointers to binding modification structures based on XrBindingModificationBaseHeaderKHR, that define all of the application’s suggested binding modifications for the specified interaction profile.
    • type

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

      public XrBindingModificationsKHR type$Default()
      Sets the TYPE_BINDING_MODIFICATIONS_KHR value to the type() field.
    • next

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

      public XrBindingModificationsKHR bindingModificationCount(int value)
      Sets the specified value to the bindingModificationCount() field.
    • bindingModifications

      public XrBindingModificationsKHR bindingModifications(@Nullable org.lwjgl.PointerBuffer value)
      Sets the address of the specified PointerBuffer to the bindingModifications() field.
    • set

      public XrBindingModificationsKHR set(int type, long next, int bindingModificationCount, @Nullable org.lwjgl.PointerBuffer bindingModifications)
      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 XrBindingModificationsKHR malloc()
      Returns a new XrBindingModificationsKHR instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nbindingModificationCount(long struct)
      Unsafe version of bindingModificationCount().
    • nbindingModifications

      public static @Nullable org.lwjgl.PointerBuffer nbindingModifications(long struct)
      Unsafe version of bindingModifications.
    • 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.
    • nbindingModificationCount

      public static void nbindingModificationCount(long struct, int value)
      Sets the specified value to the bindingModificationCount field of the specified struct.
    • nbindingModifications

      public static void nbindingModifications(long struct, @Nullable org.lwjgl.PointerBuffer value)
      Unsafe version of bindingModifications.