C Specification
The xrCreateEnvironmentDepthProviderMETA function is defined as:
// Provided by XR_META_environment_depth
XrResult xrCreateEnvironmentDepthProviderMETA(
    XrSession                                   session,
    const XrEnvironmentDepthProviderCreateInfoMETA* createInfo,
    XrEnvironmentDepthProviderMETA*             environmentDepthProvider);Parameters
Description
The xrCreateEnvironmentDepthProviderMETA function creates a depth provider instance.
Creating the depth provider may allocate resources, but should not incur any per-frame compute costs until the provider has been started.
- 
Runtimes must create the provider in a stopped state. 
- 
Runtimes may limit the number of depth providers per XrInstance. If xrCreateEnvironmentDepthProviderMETA fails due to reaching this limit, the runtime must return XR_ERROR_LIMIT_REACHED.
- 
Runtimes must support at least 1 provider per XrInstance. 
- 
Runtimes may return XR_ERROR_NOT_PERMITTED_PASSTHROUGH_FBif the app permissions have not been granted to the calling app.
- 
Applications can call xrStartEnvironmentDepthProviderMETA to start the generation of depth maps. 
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
Copyright 2014-2025 The Khronos Group Inc.
This work is licensed under a Creative Commons Attribution 4.0 International License.