C Specification

The xrEnumerateSupportedSemanticLabelSetsANDROID function is defined as:

// Provided by XR_ANDROID_scene_meshing
XrResult xrEnumerateSupportedSemanticLabelSetsANDROID(
    XrInstance                                  instance,
    XrSystemId                                  systemId,
    uint32_t                                    supportedSemanticLabelSetsInputCapacity,
    uint32_t*                                   supportedSemanticLabelSetsOutputCount,
    XrSceneMeshSemanticLabelSetANDROID*         supportedSemanticLabelSets);

Parameters

Parameter Descriptions
  • instance is an XrInstance created by the application.

  • systemId is an XrSystemId retried from xrGetSystem.

  • supportedSemanticLabelSetsInputCapacity is the capacity of supportedSemanticLabelSets, or 0 to retrieve the required capacity.

  • supportedSemanticLabelSetsOutputCount is a pointer to the count of supportedSemanticLabelSets written, or a pointer to the required capacity in the case that supportedSemanticLabelSetsInputCapacity is insufficient.

  • supportedSemanticLabelSets is a pointer to an array of XrSceneMeshSemanticLabelSetANDROID. It can be NULL if supportedSemanticLabelSetsInputCapacity is 0.

  • See Buffer Size Parameters chapter for a detailed description of retrieving the required supportedSemanticLabelSets size.

Description

The application can enumerate semantic label sets supported by the system using xrEnumerateSupportedSemanticLabelSetsANDROID function.

Every system must at least support XR_SCENE_MESH_SEMANTIC_LABEL_SET_NONE_ANDROID because this enum value represents no semantic label set and can be used in the case the application does not need vertex semantics.

Valid Usage (Implicit)
Return Codes
On success, this command returns
  • XR_SUCCESS

On failure, this command returns
  • XR_ERROR_FUNCTION_UNSUPPORTED

  • XR_ERROR_HANDLE_INVALID

  • XR_ERROR_INSTANCE_LOST

  • XR_ERROR_RUNTIME_FAILURE

  • XR_ERROR_SIZE_INSUFFICIENT

  • XR_ERROR_SYSTEM_INVALID

  • XR_ERROR_VALIDATION_FAILURE

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.