C Specification

The XrEnvironmentDepthImageMETA structure is defined as:

// Provided by XR_META_environment_depth
typedef struct XrEnvironmentDepthImageMETA {
    XrStructureType                    type;
    const void*                        next;
    uint32_t                           swapchainIndex;
    float                              nearZ;
    float                              farZ;
    XrEnvironmentDepthImageViewMETA    views[2];
} XrEnvironmentDepthImageMETA;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.

  • swapchainIndex is the index of the acquired texture in the depth swapchain.

  • nearZ is the distance to the near Z plane in meters.

  • farZ is the distance to the far Z plane in meters.

  • views is an array of two XrEnvironmentDepthImageViewMETA, one for each eye, where index 0 is left eye and index 1 is the right eye.

Description

Depth is provided as textures in the same format as described in the XR_KHR_composition_layer_depth extension.

The frustum’s Z-planes are placed at nearZ and farZ meters. When farZ is less than nearZ, an infinite projection matrix is used.

Valid Usage (Implicit)

See Also

Document Notes

For more information, see the OpenXR Specification

This page is extracted from the OpenXR Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2025 The Khronos Group Inc.