C Specification

// Provided by XR_ANDROID_spatial_discovery_raycast
typedef struct XrSpatialCapabilityConfigurationDepthRaycastANDROID {
    XrStructureType                     type;
    const void*                         next;
    XrSpatialCapabilityEXT              capability;
    uint32_t                            enabledComponentCount;
    const XrSpatialComponentTypeEXT*    enabledComponents;
} XrSpatialCapabilityConfigurationDepthRaycastANDROID;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

  • next is NULL or a pointer to the next structure in a structure chain.

  • capability is an XrSpatialCapabilityEXT and must be XR_SPATIAL_CAPABILITY_DEPTH_RAYCAST_ANDROID.

  • enabledComponentCount is a uint32_t describing the count of elements in the enabledComponents array. It must be greater than 0.

  • enabledComponents is a pointer to an array of XrSpatialComponentTypeEXT.

Description

Anpplications can enable the XR_SPATIAL_CAPABILITY_DEPTH_RAYCAST_ANDROID spatial capability by including a pointer to an XrSpatialCapabilityConfigurationDepthRaycastANDROID structure in XrSpatialContextCreateInfoEXT::capabilityConfigs.

The runtime must return XR_ERROR_VALIDATION_FAILURE if capability is not XR_SPATIAL_CAPABILITY_DEPTH_RAYCAST_ANDROID.

The ID of entities discovered via this capability is always XR_NULL_SPATIAL_ENTITY_ID_EXT. This also means that application can not create an XrSpatialEntityEXT handle for these entities, and thus they can not be included in XrSpatialUpdateSnapshotCreateInfoEXT::entities to create a update snapshot

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.