Add support for passthrough in lobby

This commit is contained in:
Guillaume Meunier
2024-03-16 20:05:57 +01:00
parent a581e7f856
commit 6f5a00cdd3
13 changed files with 301 additions and 11 deletions
+4
View File
@@ -24,6 +24,7 @@
#include <vulkan/vulkan_raii.hpp>
#include "wivrn_discover.h"
#include "xr/passthrough.h"
#include <optional>
#include <vector>
#include <map>
@@ -88,6 +89,8 @@ class lobby : public scene_impl<lobby>
std::vector<xr::swapchain> swapchains_controllers;
xr::swapchain swapchain_imgui;
vk::Format swapchain_format;
bool passthrough_supported;
xr::passthrough passthrough;
void save_config();
@@ -114,6 +117,7 @@ class lobby : public scene_impl<lobby>
float preferred_refresh_rate = 0;
bool show_performance_metrics = false;
bool microphone = false;
bool passthrough_enabled = false;
void gui_connecting();
void gui_server_list();