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
@@ -23,8 +23,8 @@
#include "imgui_internal.h"
#include "lobby.h"
#include "utils/ranges.h"
#include <cwchar>
#include <ranges>
#include <unicode/uchar.h> // u_toupper
struct key
@@ -364,7 +364,7 @@ void scenes::lobby::gui_keyboard(ImVec2 size)
}
int id = 0;
for (const auto & [row, width]: utils::zip(layout, keys_width))
for (const auto & [row, width]: std::views::zip(layout, keys_width))
{
ImVec2 key_position = position;