Submit depth texture from camera to OpenXR runtime

Hello, I’m using custom OpenXR plugin to VR/AR project and Unreal Engine version 5.3.2.
Is it possible and how, to submit depth texture from camera to OpenXR runtime in Unreal engine?

The default OpenXR plugin at least submits depth by default if the runtime supports the XR_KHR_composition_layer_depth extension (except the combination of SteamVR and Vulkan is actively blocked). It is controllable with the xr.OpenXRAllowDepthLayer console variable.

What custom plugin are you using?

Does this mean that Stereolayers WorldLocked will be compliant with depth on platforms like MetaXR using only OpenXR?

Currently stereolayers are always rendered infront (unreal 5.7). I want it to respect scene depth.

That would require using a vendor extension like XR_FB_composition_layer_depth_test, and I don’t think that’s implemented into the Unreal OpenXR plugin currently.