Rebase almost everything to Master

This commit is contained in:
Vindicus999
2025-09-25 09:16:54 -04:00
parent 492ed88ae2
commit cf3c364b42
129 changed files with 13067 additions and 4431 deletions
+6 -2
View File
@@ -24,6 +24,8 @@
#include "xrt/xrt_defines.h"
#include "xrt/xrt_device.h"
#include "utils/singleton.h"
#include <mutex>
#include <vulkan/vulkan_raii.hpp>
struct render_resources;
@@ -34,7 +36,7 @@ namespace wivrn
struct clock_offset;
struct wivrn_vk_bundle;
class wivrn_foveation
class wivrn_foveation : public singleton<wivrn_foveation>
{
std::mutex mutex;
@@ -53,8 +55,8 @@ class wivrn_foveation
vk::raii::CommandPool command_pool;
vk::raii::CommandBuffer cmd;
buffer_allocation gpu_buffer;
buffer_allocation host_buffer;
vk::Buffer gpu_buffer = nullptr;
// parameters used for last computation
struct P
@@ -81,6 +83,8 @@ public:
void update_foveation_center_override(const from_headset::override_foveation_center &);
std::array<to_headset::foveation_parameter, 2> get_parameters();
vk::Buffer get_gpu_buffer();
vk::CommandBuffer update_foveation_buffer(
vk::Buffer target,
bool flip_y,