Class XrSceneMeshesMSFT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrSceneMeshesMSFT extends Struct<XrSceneMeshesMSFT> implements NativeResource

 struct XrSceneMeshesMSFT {
     XrStructureType type;
     void * next;
     uint32_t sceneMeshCount;
     {@link XrSceneMeshMSFT XrSceneMeshMSFT} * sceneMeshes;
 }
  • 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.
    • SCENEMESHCOUNT

      public static final int SCENEMESHCOUNT
      The struct member offsets.
    • SCENEMESHES

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

    • XrSceneMeshesMSFT

      public XrSceneMeshesMSFT(ByteBuffer container)
      Creates a XrSceneMeshesMSFT 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()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrSceneMeshesMSFT>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • sceneMeshCount

      public int sceneMeshCount()
      Returns:
      the value of the sceneMeshCount field.
    • sceneMeshes

      public @Nullable XrSceneMeshMSFT.Buffer sceneMeshes()
      Returns:
      a XrSceneMeshMSFT.Buffer view of the struct array pointed to by the sceneMeshes field.
    • type

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

      public XrSceneMeshesMSFT type$Default()
      Sets the TYPE_SCENE_MESHES_MSFT value to the type field.
    • next

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

      public XrSceneMeshesMSFT sceneMeshCount(int value)
      Sets the specified value to the sceneMeshCount field.
    • sceneMeshes

      public XrSceneMeshesMSFT sceneMeshes(@Nullable XrSceneMeshMSFT.Buffer value)
      Sets the address of the specified XrSceneMeshMSFT.Buffer to the sceneMeshes field.
    • set

      public XrSceneMeshesMSFT set(int type, long next, int sceneMeshCount, @Nullable XrSceneMeshMSFT.Buffer sceneMeshes)
      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 XrSceneMeshesMSFT malloc()
      Returns a new XrSceneMeshesMSFT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrSceneMeshesMSFT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrSceneMeshesMSFT.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().
    • nsceneMeshCount

      public static int nsceneMeshCount(long struct)
      Unsafe version of sceneMeshCount().
    • nsceneMeshes

      public static @Nullable XrSceneMeshMSFT.Buffer nsceneMeshes(long struct)
      Unsafe version of sceneMeshes().
    • 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.
    • nsceneMeshCount

      public static void nsceneMeshCount(long struct, int value)
      Sets the specified value to the sceneMeshCount field of the specified struct.
    • nsceneMeshes

      public static void nsceneMeshes(long struct, @Nullable XrSceneMeshMSFT.Buffer value)
      Unsafe version of sceneMeshes.