From 3345ff8448f929dc7fc6c19874e873e73fc5bc03 Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 30 Aug 2021 04:17:25 -0400 Subject: [PATCH] [client] egl: mark all preset-only options as such --- client/renderers/EGL/filter_downscale.c | 5 +++++ client/renderers/EGL/filter_ffx_cas.c | 2 ++ client/renderers/EGL/filter_ffx_fsr1.c | 2 ++ client/renderers/EGL/postprocess.c | 1 + 4 files changed, 10 insertions(+) diff --git a/client/renderers/EGL/filter_downscale.c b/client/renderers/EGL/filter_downscale.c index b60c8fc7..b77047da 100644 --- a/client/renderers/EGL/filter_downscale.c +++ b/client/renderers/EGL/filter_downscale.c @@ -81,6 +81,7 @@ static void egl_filterDownscaleEarlyInit(void) .module = "eglFilter", .name = "downscale", .description = "Enable downscaling", + .preset = true, .type = OPTION_TYPE_BOOL, .value.x_bool = false }, @@ -88,6 +89,7 @@ static void egl_filterDownscaleEarlyInit(void) .module = "eglFilter", .name = "downscalePixelSize", .description = "Downscale filter pixel size", + .preset = true, .type = OPTION_TYPE_FLOAT, .value.x_float = 2.0f }, @@ -95,6 +97,7 @@ static void egl_filterDownscaleEarlyInit(void) .module = "eglFilter", .name = "downscaleHOffset", .description = "Downscale filter horizontal offset", + .preset = true, .type = OPTION_TYPE_FLOAT, .value.x_float = 0.0f }, @@ -102,6 +105,7 @@ static void egl_filterDownscaleEarlyInit(void) .module = "eglFilter", .name = "downscaleVOffset", .description = "Downscale filter vertical offset", + .preset = true, .type = OPTION_TYPE_FLOAT, .value.x_float = 0.0f }, @@ -109,6 +113,7 @@ static void egl_filterDownscaleEarlyInit(void) .module = "eglFilter", .name = "downscaleFilter", .description = "Downscale filter type", + .preset = true, .type = OPTION_TYPE_INT, .value.x_int = 0 }, diff --git a/client/renderers/EGL/filter_ffx_cas.c b/client/renderers/EGL/filter_ffx_cas.c index fab9bf55..26452885 100644 --- a/client/renderers/EGL/filter_ffx_cas.c +++ b/client/renderers/EGL/filter_ffx_cas.c @@ -56,6 +56,7 @@ static void egl_filterFFXCASEarlyInit(void) .module = "eglFilter", .name = "ffxCAS", .description = "AMD FidelityFX CAS", + .preset = true, .type = OPTION_TYPE_BOOL, .value.x_bool = false }, @@ -63,6 +64,7 @@ static void egl_filterFFXCASEarlyInit(void) .module = "eglFilter", .name = "ffxCASSharpness", .description = "AMD FidelityFX CAS Sharpness", + .preset = true, .type = OPTION_TYPE_FLOAT, .value.x_float = 0.0f }, diff --git a/client/renderers/EGL/filter_ffx_fsr1.c b/client/renderers/EGL/filter_ffx_fsr1.c index 1282b364..4ddb8304 100644 --- a/client/renderers/EGL/filter_ffx_fsr1.c +++ b/client/renderers/EGL/filter_ffx_fsr1.c @@ -61,6 +61,7 @@ static void egl_filterFFXFSR1EarlyInit(void) .module = "eglFilter", .name = "ffxFSR", .description = "AMD FidelityFX FSR", + .preset = true, .type = OPTION_TYPE_BOOL, .value.x_bool = false }, @@ -68,6 +69,7 @@ static void egl_filterFFXFSR1EarlyInit(void) .module = "eglFilter", .name = "ffxFSRSharpness", .description = "AMD FidelityFX FSR Sharpness", + .preset = true, .type = OPTION_TYPE_FLOAT, .value.x_float = 1.0f }, diff --git a/client/renderers/EGL/postprocess.c b/client/renderers/EGL/postprocess.c index c939f3f5..c7a67034 100644 --- a/client/renderers/EGL/postprocess.c +++ b/client/renderers/EGL/postprocess.c @@ -70,6 +70,7 @@ void egl_postProcessEarlyInit(void) .module = "eglFilter", .name = "order", .description = "The order of filters to use", + .preset = true, .type = OPTION_TYPE_STRING, .value.x_string = "" },