Support passthrough for stream
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user