Support passthrough for stream

This commit is contained in:
Patrick Nicolas
2024-11-06 19:50:44 +01:00
parent 45412e3389
commit 410b112fcf
34 changed files with 571 additions and 260 deletions
+5 -1
View File
@@ -27,6 +27,7 @@
#include "wifi_lock.h"
#include "wivrn_client.h"
#include "wivrn_packets.h"
#include "xr/passthrough.h"
#include <mutex>
#include <shared_mutex>
#include <thread>
@@ -60,7 +61,8 @@ private:
// latest frames from oldest to most recent
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, image_buffer_size> latest_frames;
std::shared_ptr<wivrn::shard_accumulator::blit_handle> frame(std::optional<uint64_t> id) const;
std::shared_ptr<wivrn::shard_accumulator::blit_handle> frame(uint64_t id) const;
bool alpha() const;
std::vector<uint64_t> frames() const;
};
@@ -99,6 +101,8 @@ private:
std::optional<stream_reprojection> reprojector;
std::optional<xr::passthrough> passthrough;
vk::raii::Fence fence = nullptr;
vk::raii::CommandBuffer command_buffer = nullptr;