Class XrScenePlaneMSFT.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<XrScenePlaneMSFT>, NativeResource, Pointer
Enclosing class:
XrScenePlaneMSFT

public static class XrScenePlaneMSFT.Buffer extends StructBuffer<XrScenePlaneMSFT,XrScenePlaneMSFT.Buffer> implements NativeResource
An array of XrScenePlaneMSFT structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new XrScenePlaneMSFT.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrScenePlaneMSFT.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • alignment

      public int alignment()
      Returns:
      the value of the alignment field.
    • size

      public XrExtent2Df size()
      Returns:
      a XrExtent2Df view of the size field.
    • meshBufferId

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

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

      public XrScenePlaneMSFT.Buffer alignment(int value)
      Sets the specified value to the alignment field.
    • size

      public XrScenePlaneMSFT.Buffer size(XrExtent2Df value)
      Copies the specified XrExtent2Df to the size field.
    • size

      public XrScenePlaneMSFT.Buffer size(Consumer<XrExtent2Df> consumer)
      Passes the size field to the specified Consumer.
    • meshBufferId

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

      public XrScenePlaneMSFT.Buffer supportsIndicesUint16(boolean value)
      Sets the specified value to the supportsIndicesUint16 field.