gamescope/src/main.hpp

64 lines
1.2 KiB
C++
Raw Normal View History

#pragma once
#include <getopt.h>
#include <atomic>
extern const char *gamescope_optstring;
extern const struct option *gamescope_options;
extern std::atomic< bool > g_bRun;
extern int g_nNestedWidth;
extern int g_nNestedHeight;
extern int g_nNestedRefresh; // Hz
extern int g_nNestedUnfocusedRefresh; // Hz
extern uint32_t g_nOutputWidth;
extern uint32_t g_nOutputHeight;
extern int g_nOutputRefresh; // Hz
extern bool g_bOutputHDREnabled;
extern bool g_bFullscreen;
enum class GamescopeUpscaleFilter : uint32_t
{
LINEAR = 0,
NEAREST,
FSR,
NIS
};
enum class GamescopeUpscaleScaler : uint32_t
{
2022-10-28 01:02:29 +00:00
AUTO,
INTEGER,
FIT,
2022-10-28 01:18:11 +00:00
FILL,
2022-10-28 01:20:19 +00:00
STRETCH,
};
extern GamescopeUpscaleFilter g_upscaleFilter;
extern GamescopeUpscaleScaler g_upscaleScaler;
extern GamescopeUpscaleFilter g_wantedUpscaleFilter;
extern GamescopeUpscaleScaler g_wantedUpscaleScaler;
extern int g_upscaleFilterSharpness;
extern bool g_bBorderlessOutputWindow;
extern bool g_bNiceCap;
extern int g_nOldNice;
extern int g_nNewNice;
extern bool g_bRt;
extern int g_nOldPolicy;
extern struct sched_param g_schedOldParam;
extern int g_nXWaylandCount;
extern uint32_t g_preferVendorID;
extern uint32_t g_preferDeviceID;
void restore_fd_limit( void );
2021-09-14 16:36:27 +00:00
bool BIsNested( void );