Class XrVisibilityMaskKHR

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, VERTEXCAPACITYINPUT, VERTEXCOUNTOUTPUT, VERTICES, INDEXCAPACITYINPUT, INDEXCOUNTOUTPUT, INDICES

        The struct member offsets.
    • Constructor Detail

      • XrVisibilityMaskKHR

        public XrVisibilityMaskKHR​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • type

        public int type()
        the XrStructureType of this structure.
      • next

        public long next()
        NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
      • vertexCapacityInput

        public int vertexCapacityInput()
        the capacity of the vertices array, or 0 to indicate a request to retrieve the required capacity.
      • vertexCountOutput

        public int vertexCountOutput()
        filled in by the runtime with the count of vertices written or the required capacity in the case that vertexCapacityInput or indexCapacityInput is 0.
      • vertices

        @Nullable
        public XrVector2f.Buffer vertices()
        an array of vertices filled in by the runtime that specifies mask coordinates in the z=-1 plane of the rendered view—​i.e. one meter in front of the view. When rendering the mask for use in a projection layer, these vertices must be transformed by the application’s projection matrix used for the respective XrCompositionLayerProjectionView.
      • indexCapacityInput

        public int indexCapacityInput()
        the capacity of the indices array, or 0 to indicate a request to retrieve the required capacity.
      • indexCountOutput

        public int indexCountOutput()
        filled in by the runtime with the count of indices written or the required capacity in the case that vertexCapacityInput or indexCapacityInput is 0.
      • indices

        @Nullable
        public java.nio.IntBuffer indices()
        an array of indices filled in by the runtime, specifying the indices of the mask geometry in the vertices array.
      • indices

        public XrVisibilityMaskKHR indices​(@Nullable
                                           java.nio.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
                                       java.nio.IntBuffer indices)
        Initializes this struct with the specified values.
      • 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

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

        public static XrVisibilityMaskKHR malloc​(org.lwjgl.system.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​(org.lwjgl.system.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,
                                                        org.lwjgl.system.MemoryStack stack)
        Returns a new XrVisibilityMaskKHR.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static XrVisibilityMaskKHR.Buffer calloc​(int capacity,
                                                        org.lwjgl.system.MemoryStack stack)
        Returns a new XrVisibilityMaskKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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().
      • nindexCapacityInput

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

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

        @Nullable
        public static java.nio.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.
      • 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
                                    java.nio.IntBuffer value)
        Unsafe version of indices.