C Specification

The XrSpatialAnchorsPublishInfoML structure is defined as:

// Provided by XR_ML_spatial_anchors_storage
typedef struct XrSpatialAnchorsPublishInfoML {
    XrStructureType    type;
    const void*        next;
    uint32_t           anchorCount;
    const XrSpace*     anchors;
    uint64_t           expiration;
} XrSpatialAnchorsPublishInfoML;

Members

Member Descriptions
  • type is the XrStructureType of this structure.

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

  • anchorCount is the number of anchors in the anchors array.

  • anchors is an array of XrSpace.

  • expiration is an uint64_t, is the time in seconds since epoch after which these anchors may expire. The system may retain the anchors longer but should retain the anchors at least until this timestamp. Use 0 or XR_INFINITE_DURATION to create an anchor that does not expire.

Description

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.