Class XrVisibilityMaskKHR

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrVisibilityMaskKHR extends Struct<XrVisibilityMaskKHR> implements NativeResource

 struct XrVisibilityMaskKHR {
     XrStructureType type;
     void * next;
     uint32_t vertexCapacityInput;
     uint32_t vertexCountOutput;
     {@link XrVector2f XrVector2f} * vertices;
     uint32_t indexCapacityInput;
     uint32_t indexCountOutput;
     uint32_t * indices;
 }
  • 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.
    • VERTEXCAPACITYINPUT

      public static final int VERTEXCAPACITYINPUT
      The struct member offsets.
    • VERTEXCOUNTOUTPUT

      public static final int VERTEXCOUNTOUTPUT
      The struct member offsets.
    • VERTICES

      public static final int VERTICES
      The struct member offsets.
    • INDEXCAPACITYINPUT

      public static final int INDEXCAPACITYINPUT
      The struct member offsets.
    • INDEXCOUNTOUTPUT

      public static final int INDEXCOUNTOUTPUT
      The struct member offsets.
    • INDICES

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

    • XrVisibilityMaskKHR

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

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

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

      public int vertexCapacityInput()
      Returns:
      the value of the vertexCapacityInput field.
    • vertexCountOutput

      public int vertexCountOutput()
      Returns:
      the value of the vertexCountOutput field.
    • vertices

      public @Nullable XrVector2f.Buffer vertices()
      Returns:
      a XrVector2f.Buffer view of the struct array pointed to by the vertices field.
    • indexCapacityInput

      public int indexCapacityInput()
      Returns:
      the value of the indexCapacityInput field.
    • indexCountOutput

      public int indexCountOutput()
      Returns:
      the value of the indexCountOutput field.
    • indices

      public @Nullable IntBuffer indices()
      Returns:
      a IntBuffer view of the data pointed to by the indices field.
    • type

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

      public XrVisibilityMaskKHR type$Default()
      Sets the TYPE_VISIBILITY_MASK_KHR value to the type field.
    • next

      public XrVisibilityMaskKHR next(long value)
      Sets the specified value to the next field.
    • vertexCapacityInput

      public XrVisibilityMaskKHR vertexCapacityInput(int value)
      Sets the specified value to the vertexCapacityInput field.
    • vertexCountOutput

      public XrVisibilityMaskKHR vertexCountOutput(int value)
      Sets the specified value to the vertexCountOutput field.
    • vertices

      public XrVisibilityMaskKHR vertices(@Nullable XrVector2f.Buffer value)
      Sets the address of the specified XrVector2f.Buffer to the vertices field.
    • indexCapacityInput

      public XrVisibilityMaskKHR indexCapacityInput(int value)
      Sets the specified value to the indexCapacityInput field.
    • indexCountOutput

      public XrVisibilityMaskKHR indexCountOutput(int value)
      Sets the specified value to the indexCountOutput field.
    • indices

      public XrVisibilityMaskKHR indices(@Nullable IntBuffer value)
      Sets the address of the specified IntBuffer to the indices field.
    • set

      public XrVisibilityMaskKHR set(int type, long next, int vertexCapacityInput, int vertexCountOutput, @Nullable XrVector2f.Buffer vertices, int indexCapacityInput, int indexCountOutput, @Nullable IntBuffer indices)
      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 XrVisibilityMaskKHR malloc()
      Returns a new XrVisibilityMaskKHR instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nvertexCapacityInput(long struct)
      Unsafe version of vertexCapacityInput().
    • nvertexCountOutput

      public static int nvertexCountOutput(long struct)
      Unsafe version of vertexCountOutput().
    • nvertices

      public static @Nullable XrVector2f.Buffer nvertices(long struct)
      Unsafe version of vertices().
    • nindexCapacityInput

      public static int nindexCapacityInput(long struct)
      Unsafe version of indexCapacityInput().
    • nindexCountOutput

      public static int nindexCountOutput(long struct)
      Unsafe version of indexCountOutput().
    • nindices

      public static @Nullable IntBuffer nindices(long struct)
      Unsafe version of indices.
    • 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.
    • nvertexCapacityInput

      public static void nvertexCapacityInput(long struct, int value)
      Sets the specified value to the vertexCapacityInput field of the specified struct.
    • nvertexCountOutput

      public static void nvertexCountOutput(long struct, int value)
      Unsafe version of vertexCountOutput.
    • nvertices

      public static void nvertices(long struct, @Nullable XrVector2f.Buffer value)
      Unsafe version of vertices.
    • nindexCapacityInput

      public static void nindexCapacityInput(long struct, int value)
      Sets the specified value to the indexCapacityInput field of the specified struct.
    • nindexCountOutput

      public static void nindexCountOutput(long struct, int value)
      Unsafe version of indexCountOutput.
    • nindices

      public static void nindices(long struct, @Nullable IntBuffer value)
      Unsafe version of indices.