Basic GUI

This commit is contained in:
Guillaume Meunier
2024-01-28 11:33:35 +01:00
parent a7bd88aa6c
commit d84095e1ea
42 changed files with 1970 additions and 363 deletions
+4 -5
View File
@@ -19,6 +19,7 @@
#pragma once
#include "utils/named_thread.h"
#include "decoder/shard_accumulator.h"
#include "scene.h"
#include "stream_reprojection.h"
@@ -83,6 +84,9 @@ class stream : public scene_impl<stream>, public std::enable_shared_from_this<st
XrTime first_frame_time{};
const float dbrightness = 2;
std::vector<xr::swapchain> swapchains;
vk::Format swapchain_format;
std::optional<audio> audio_handle;
stream() = default;
@@ -102,11 +106,6 @@ public:
void operator()(to_headset::video_stream_description &&);
void operator()(audio_data&&);
vk::Format swapchain_format()
{
return swapchains[0].format();
}
void push_blit_handle(shard_accumulator * decoder, std::shared_ptr<shard_accumulator::blit_handle> handle);
void send_feedback(const xrt::drivers::wivrn::from_headset::feedback & feedback);