C Specification

The XrEventDataColocationDiscoveryCompleteMETA structure is defined as:

// Provided by XR_META_colocation_discovery
typedef struct XrEventDataColocationDiscoveryCompleteMETA {
    XrStructureType       type;
    const void*           next;
    XrAsyncRequestIdFB    discoveryRequestId;
    XrResult              result;
} XrEventDataColocationDiscoveryCompleteMETA;

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.

  • discoveryRequestId is an XrAsyncRequestIdFB specifying the original start discovery async request id. The runtime must return a value which matches a previously returned discoveryRequestId value from an xrStartColocationDiscoveryMETA request.

  • result is an XrResult representing the discovery process result. The valid result values are: XR_SUCCESS, XR_ERROR_RUNTIME_FAILURE, and XR_ERROR_COLOCATION_DISCOVERY_NO_DISCOVERY_METHOD_META.

Description

The runtime must queue exactly one XrEventDataColocationDiscoveryCompleteMETA event whenever an active colocation discovery is stopped. This includes if the colocation discovery is stopped due to an application calling xrStopColocationDiscoveryMETA, or the runtime needs to stop the colocation discovery for any reason. When the XrSession is destroyed, the runtime must stop all active advertisements started from the same XrSession.

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.