C Specification

The XrEnvironmentRaycastHitGetInfoMETA structure is defined as:

// Provided by XR_META_environment_raycast
typedef struct XrEnvironmentRaycastHitGetInfoMETA {
    XrStructureType                                            type;
    const void*                                                next;
    XrSpace                                                    baseSpace;
    XrTime                                                     time;
    XrVector3f                                                 origin;
    XrVector3f                                                 direction;
    uint32_t                                                   filterCount;
    const XrEnvironmentRaycastFilterBaseHeaderMETA* const *    filters;
} XrEnvironmentRaycastHitGetInfoMETA;

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.

  • baseSpace is the XrSpace in which all the following locations in this struct will be located in.

  • time is the XrTime at which all the following locations in this struct will be located.

  • origin is an XrVector3f which describes the starting point for the ray.

  • direction is an XrVector3f which describes the direction of the ray.

  • filterCount is the number of filters that are passed in the filters parameter.

  • filters is a pointer to an array of XrEnvironmentRaycastFilterBaseHeaderMETA pointers.

Description

The XrEnvironmentRaycastHitGetInfoMETA structure describes a ray to cast.

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.