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 -1
View File
@@ -27,6 +27,7 @@
#include "utils/ranges.h"
#include <cmath>
#include <limits>
#include <ranges>
#include <spdlog/spdlog.h>
namespace
@@ -106,7 +107,7 @@ void scenes::stream::accumulate_metrics(XrTime predicted_display_time, const std
min_encode_begin = std::min(min_encode_begin, bh->timing_info.encode_begin);
}
for (auto && [metrics, bh]: utils::zip(decoder_metrics, blit_handles))
for (auto && [metrics, bh]: std::views::zip(decoder_metrics, blit_handles))
{
if (metrics.size() != global_metrics.size())
metrics.resize(global_metrics.size());