Class XrCompositionLayerDepthInfoKHR

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, SUBIMAGE, MINDEPTH, MAXDEPTH, NEARZ, FARZ

        The struct member offsets.
    • Constructor Detail

      • XrCompositionLayerDepthInfoKHR

        public XrCompositionLayerDepthInfoKHR​(java.nio.ByteBuffer container)
        Creates a XrCompositionLayerDepthInfoKHR 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.
      • subImage

        public XrSwapchainSubImage subImage()
        identifies the depth image XrSwapchainSubImage to be associated with the color swapchain. The contained imageRect specifies the valid portion of the depth image to use, in pixels. It also implicitly defines the transform from normalized image coordinates into pixel coordinates. The contained imageArrayIndex is the depth image array index, with 0 meaning the first or only array element.
      • minDepth

        public float minDepth()
        minDepth and maxDepth are the range of depth values the depthSwapchain could have, in the range of [0.0,1.0]. This is akin to min and max values of OpenGL’s glDepthRange, but with the requirement here that maxDepth ≥ minDepth.
      • maxDepth

        public float maxDepth()
        see minDepth
      • nearZ

        public float nearZ()
        the positive distance in meters of the minDepth value in the depth swapchain. Applications may use a nearZ that is greater than farZ to indicate depth values are reversed. nearZ can be infinite.
      • farZ

        public float farZ()
        the positive distance in meters of the maxDepth value in the depth swapchain. farZ can be infinite. Applications must not use the same value as nearZ.
      • malloc

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

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

        public static XrCompositionLayerDepthInfoKHR create​(long address)
        Returns a new XrCompositionLayerDepthInfoKHR instance for the specified memory address.
      • malloc

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

        public static XrCompositionLayerDepthInfoKHR calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new XrCompositionLayerDepthInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        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().
      • nminDepth

        public static float nminDepth​(long struct)
        Unsafe version of minDepth().
      • nmaxDepth

        public static float nmaxDepth​(long struct)
        Unsafe version of maxDepth().
      • nnearZ

        public static float nnearZ​(long struct)
        Unsafe version of nearZ().
      • nfarZ

        public static float nfarZ​(long struct)
        Unsafe version of farZ().
      • 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.
      • nminDepth

        public static void nminDepth​(long struct,
                                     float value)
        Unsafe version of minDepth.
      • nmaxDepth

        public static void nmaxDepth​(long struct,
                                     float value)
        Unsafe version of maxDepth.
      • nnearZ

        public static void nnearZ​(long struct,
                                  float value)
        Unsafe version of nearZ.
      • nfarZ

        public static void nfarZ​(long struct,
                                 float value)
        Unsafe version of farZ.
      • validate

        public static void validate​(long struct)
        Validates pointer members that should not be NULL.
        Parameters:
        struct - the struct to validate