C Specification

The XrSpaceDiscoveryResultsMETA structure is defined as:

// Provided by XR_META_spatial_entity_discovery
typedef struct XrSpaceDiscoveryResultsMETA {
    XrStructureType                type;
    const void*                    next;
    uint32_t                       resultCapacityInput;
    uint32_t                       resultCountOutput;
    XrSpaceDiscoveryResultMETA*    results;
} XrSpaceDiscoveryResultsMETA;

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.

  • resultCapacityInput is the capacity of the results array, or 0 to indicate a request to retrieve the required capacity.

  • resultCountOutput is an output parameter containing the count of results for retrieval, or returns the required capacity in the case that resultCapacityInput is insufficient.

  • results is a pointer to an array of XrSpaceDiscoveryResultMETA structures to populate with the spaces retrieved, but can be NULL if resultCapacityInput is 0.

  • See the https://registry.khronos.org/OpenXR/specs/1.1/html/xrspec.html#fundamentals-buffer-size-parameters section for a detailed description of retrieving the required results size.

Description

The XrSpaceDiscoveryResultsMETA structure is used to retrieve all results from a Discovery operation.

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.