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
+2 -2
View File
@@ -19,7 +19,7 @@
#include "application.h"
#include "stream.h"
#include "utils/ranges.h"
#include <ranges>
#include <spdlog/spdlog.h>
#include <thread>
@@ -245,7 +245,7 @@ void scenes::stream::tracking()
auto [flags, views] = session.locate_views(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO, t0 + Δt, view_space);
assert(views.size() == packet.views.size());
for (auto [i, j]: utils::zip(views, packet.views))
for (auto [i, j]: std::views::zip(views, packet.views))
{
j.pose = i.pose;
j.fov = i.fov;