08-07-2024 03:38 PM
Hi,
I'm using XR_KHR_composition_layer_depth and running into some issues with the PCVR OpenXR runtme:
If I turn off XR_KHR_composition_layer_depth (or otherwise disable creating a depth swap chain and just create my own depth buffer) then the color chains work fine.
My expectation would be that if my device doesn't support everything that the OpenXR runtime needs for a depth swap chain that xrEnumerateSwapchainFormats would tell me that by simply not enumerating any depth formats (or maybe just not advertising XR_KHR_composition_layer_depth), no? Or is there some other API that tells me that? (Hoping there's something other than an "if PCVR and vendor == Meta then do a bunch of silly hacks" fix.)
Thanks