Ask for XR_FB_composition_layer_depth_test and XR_KHR_composition_layer_depth

Enable depth testing between GUI and lobby

Use reversed-Z, prefer floating point depth buffer
This commit is contained in:
Guillaume Meunier
2024-11-01 11:40:33 +01:00
parent 16a1a7f0bf
commit 6c10a9ee95
18 changed files with 310 additions and 174 deletions
+4
View File
@@ -65,6 +65,8 @@ class lobby : public scene_impl<lobby>
std::optional<input_profile> input;
std::optional<hand_model> left_hand;
std::optional<hand_model> right_hand;
node_handle lobby_handle;
bool composition_layer_depth_test_supported;
std::optional<imgui_context> imgui_ctx;
std::array<XrAction, 2> haptic_output;
@@ -75,8 +77,10 @@ class lobby : public scene_impl<lobby>
std::vector<xr::swapchain> swapchains_lobby;
std::vector<xr::swapchain> swapchains_controllers;
std::vector<xr::swapchain> swapchains_depth;
xr::swapchain swapchain_imgui;
vk::Format swapchain_format;
vk::Format depth_format;
xr::system::passthrough_type passthrough_supported;
xr::passthrough passthrough;
XrViewConfigurationView stream_view;