Class XrSceneMeshMSFT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrSceneMeshMSFT extends Struct<XrSceneMeshMSFT> implements NativeResource

 struct XrSceneMeshMSFT {
     uint64_t meshBufferId;
     XrBool32 supportsIndicesUint16;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MESHBUFFERID
      The struct member offsets.
    • SUPPORTSINDICESUINT16

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

    • XrSceneMeshMSFT

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

      public long meshBufferId()
      Returns:
      the value of the meshBufferId field.
    • supportsIndicesUint16

      public boolean supportsIndicesUint16()
      Returns:
      the value of the supportsIndicesUint16 field.
    • meshBufferId

      public XrSceneMeshMSFT meshBufferId(long value)
      Sets the specified value to the meshBufferId field.
    • supportsIndicesUint16

      public XrSceneMeshMSFT supportsIndicesUint16(boolean value)
      Sets the specified value to the supportsIndicesUint16 field.
    • set

      public XrSceneMeshMSFT set(long meshBufferId, boolean supportsIndicesUint16)
      Initializes this struct with the specified values.
    • set

      public XrSceneMeshMSFT set(XrSceneMeshMSFT src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static long nmeshBufferId(long struct)
      Unsafe version of meshBufferId().
    • nsupportsIndicesUint16

      public static int nsupportsIndicesUint16(long struct)
      Unsafe version of supportsIndicesUint16().
    • nmeshBufferId

      public static void nmeshBufferId(long struct, long value)
      Unsafe version of meshBufferId.
    • nsupportsIndicesUint16

      public static void nsupportsIndicesUint16(long struct, int value)
      Unsafe version of supportsIndicesUint16.