For develop XR_KHR_composition_layer_depth, I try to finish it with XR SDK Display subsystem.
I try to get native color , depth texture by GfxThread_PopulateNextFrameDesc function. So I create Unity texture(UnityXRRenderTextureId).
But when I save textures to bmp files , I found native color texture is right, but native depth texture is a black, which means when I sample depth texture I got a float value 0.f.
Can I get depth texture when I get color texture? Or what only I can do is to use one pass for color texture, and one depth only pass for depth texture.