Client-side post-processing - Snapdragon Game Super Resolution

This commit is contained in:
Baplar
2025-04-13 22:28:31 +02:00
parent 1c57dae421
commit 99fbedab02
11 changed files with 468 additions and 33 deletions
+14
View File
@@ -25,6 +25,7 @@
#include <map>
#include <mutex>
#include <optional>
#include <simdjson.h>
#include <string>
namespace xr
@@ -53,6 +54,17 @@ public:
bool passthrough_enabled = false;
bool mic_unprocessed_audio = false;
// Snapdragon Game Super Resolution
struct sgsr_settings
{
bool enabled = false;
float upscaling_factor = 1.5;
bool use_edge_direction = true;
float edge_threshold = 4.0;
float edge_sharpness = 2.0;
};
sgsr_settings sgsr{};
std::string virtual_keyboard_layout = "QWERTY";
bool check_feature(feature f) const;
@@ -62,6 +74,8 @@ private:
mutable std::mutex mutex;
std::map<feature, bool> features;
void parse_sgsr_options(simdjson::simdjson_result<simdjson::dom::object> root);
public:
configuration(xr::system &);