Class XrScenePlanesMSFT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrScenePlanesMSFT extends Struct<XrScenePlanesMSFT> implements NativeResource

 struct XrScenePlanesMSFT {
     XrStructureType type;
     void * next;
     uint32_t scenePlaneCount;
     {@link XrScenePlaneMSFT XrScenePlaneMSFT} * scenePlanes;
 }
  • 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.
    • SCENEPLANECOUNT

      public static final int SCENEPLANECOUNT
      The struct member offsets.
    • SCENEPLANES

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

    • XrScenePlanesMSFT

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

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

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

      public int scenePlaneCount()
      Returns:
      the value of the scenePlaneCount field.
    • scenePlanes

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

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

      public XrScenePlanesMSFT type$Default()
      Sets the TYPE_SCENE_PLANES_MSFT value to the type field.
    • next

      public XrScenePlanesMSFT next(long value)
      Sets the specified value to the next field.
    • scenePlaneCount

      public XrScenePlanesMSFT scenePlaneCount(int value)
      Sets the specified value to the scenePlaneCount field.
    • scenePlanes

      public XrScenePlanesMSFT scenePlanes(@Nullable XrScenePlaneMSFT.Buffer value)
      Sets the address of the specified XrScenePlaneMSFT.Buffer to the scenePlanes field.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nscenePlaneCount(long struct)
      Unsafe version of scenePlaneCount().
    • nscenePlanes

      public static @Nullable XrScenePlaneMSFT.Buffer nscenePlanes(long struct)
      Unsafe version of scenePlanes().
    • 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.
    • nscenePlaneCount

      public static void nscenePlaneCount(long struct, int value)
      Sets the specified value to the scenePlaneCount field of the specified struct.
    • nscenePlanes

      public static void nscenePlanes(long struct, @Nullable XrScenePlaneMSFT.Buffer value)
      Unsafe version of scenePlanes.