C Specification

The XrSurfaceAnchorTypeANDROID enumeration is defined as:

// Provided by XR_ANDROID_geospatial_anchor
typedef enum XrSurfaceAnchorTypeANDROID {
    XR_SURFACE_ANCHOR_TYPE_TERRAIN_ANDROID = 1,
    XR_SURFACE_ANCHOR_TYPE_ROOFTOP_ANDROID = 2,
    XR_SURFACE_ANCHOR_TYPE_MAX_ENUM_ANDROID = 0x7FFFFFFF
} XrSurfaceAnchorTypeANDROID;

Description

The XrSurfaceAnchorTypeANDROID enumeration specifies the type of surface an anchor is relative to.

The enumerants have the following values:

Enum Description

XR_SURFACE_ANCHOR_TYPE_TERRAIN_ANDROID

Type of an anchor placed relative to the ground.

XR_SURFACE_ANCHOR_TYPE_ROOFTOP_ANDROID

Type of an anchor placed relative to the rooftop, or ground where there is no building.

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.