Client-side post-processing - Snapdragon Game Super Resolution
This commit is contained in:
@@ -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 &);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user