C Specification

The XrEnvironmentRaycastFilterDistanceMETA structure is defined as:

// Provided by XR_META_environment_raycast
typedef struct XrEnvironmentRaycastFilterDistanceMETA {
    XrStructureType    type;
    const void*        next;
    float              maxDistance;
} XrEnvironmentRaycastFilterDistanceMETA;

Members

Member Descriptions

Description

The XrEnvironmentRaycastFilterDistanceMETA structure contains distance filter information for environment raycast.

If the application provides an XrEnvironmentRaycastFilterDistanceMETA, the runtime must constrain the length of the ray from XrEnvironmentRaycastHitGetInfoMETA::origin along XrEnvironmentRaycastHitGetInfoMETA::direction to maxDistance in meters. This means that the runtime must not return any hitpoint that is more than XrEnvironmentRaycastFilterDistanceMETA::maxDistance away from XrEnvironmentRaycastHitGetInfoMETA::origin.

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-2026 The Khronos Group Inc.