Search Unity

Question OpenXR depth submission on Android OpenGLES

Discussion in 'VR' started by keveleigh, May 12, 2023.

  1. keveleigh

    keveleigh

    Official Microsoft Employee

    Joined:
    Jun 19, 2015
    Posts:
    35
    I'm seeing something slightly unexpected (to me, at least!) on Android when switching from Vulkan to OpenGLES on OpenXR on both Quest and Snapdragon Spaces devices and am looking for some guidance.

    When selecting a depth submission mode in the Unity settings on Vulkan, I successfully see the things I expect:

    1. a depth texture format selected in the logs
    2. `XR_KHR_composition_layer_depth` enabled at startup
    3. `XrCompositionLayerDepthInfoKHR` structs being chained to the `XrCompositionLayerProjectionView`s being submitted to the runtime

    When doing nothing else except switching from Vulkan to OpenGLES, I no longer see any of these three things happening.

    Does depth submission on OpenGLES happen outside the OpenXR context? Or is Unity looking for specific depth formats that might not be supported by these runtimes? Looking for any guidance that might help get this working! Thanks!
     
  2. lianne13

    lianne13

    Unity Technologies

    Joined:
    Jan 31, 2023
    Posts:
    21
    Hey @keveleigh,

    Unfortunately, we do not have depth support for OpenGLES at the moment.
     
    daechan_sec likes this.
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,063
    Why doesn't they say anywhere in the docs?
     
    keveleigh likes this.