diff options
| author | 2021-10-20 18:32:11 -0500 | |
|---|---|---|
| committer | 2021-11-16 22:11:32 +0100 | |
| commit | 510caeefb3e3bf4b365f08a97cdfeffaaf8a80ce (patch) | |
| tree | c9d525c22242459cefb3eb2021af252d252104b1 /src/common | |
| parent | QtGUI: Add buttton to toggle the filter. (diff) | |
| download | yuzu-510caeefb3e3bf4b365f08a97cdfeffaaf8a80ce.tar.gz yuzu-510caeefb3e3bf4b365f08a97cdfeffaaf8a80ce.tar.xz yuzu-510caeefb3e3bf4b365f08a97cdfeffaaf8a80ce.zip | |
Settings: Add anti-aliasing method setting
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/settings.cpp | 1 | ||||
| -rw-r--r-- | src/common/settings.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 84ac937e5..3bcaa072f 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -49,6 +49,7 @@ void LogSettings() { | |||
| 49 | log_setting("CPU_Accuracy", values.cpu_accuracy.GetValue()); | 49 | log_setting("CPU_Accuracy", values.cpu_accuracy.GetValue()); |
| 50 | log_setting("Renderer_UseResolutionScaling", values.resolution_setup.GetValue()); | 50 | log_setting("Renderer_UseResolutionScaling", values.resolution_setup.GetValue()); |
| 51 | log_setting("Renderer_ScalingFilter", values.scaling_filter.GetValue()); | 51 | log_setting("Renderer_ScalingFilter", values.scaling_filter.GetValue()); |
| 52 | log_setting("Renderer_AntiAliasing", values.anti_aliasing.GetValue()); | ||
| 52 | log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue()); | 53 | log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue()); |
| 53 | log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue()); | 54 | log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue()); |
| 54 | log_setting("Renderer_UseDiskShaderCache", values.use_disk_shader_cache.GetValue()); | 55 | log_setting("Renderer_UseDiskShaderCache", values.use_disk_shader_cache.GetValue()); |
diff --git a/src/common/settings.h b/src/common/settings.h index e926a3268..ca1c3c1aa 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -73,6 +73,11 @@ enum class ScalingFilter : u32 { | |||
| 73 | LastFilter = Fsr, | 73 | LastFilter = Fsr, |
| 74 | }; | 74 | }; |
| 75 | 75 | ||
| 76 | enum class AntiAliasing : u32 { | ||
| 77 | None = 0, | ||
| 78 | Fxaa = 1, | ||
| 79 | }; | ||
| 80 | |||
| 76 | struct ResolutionScalingInfo { | 81 | struct ResolutionScalingInfo { |
| 77 | u32 up_scale{1}; | 82 | u32 up_scale{1}; |
| 78 | u32 down_shift{0}; | 83 | u32 down_shift{0}; |
| @@ -498,6 +503,7 @@ struct Values { | |||
| 498 | ResolutionScalingInfo resolution_info{}; | 503 | ResolutionScalingInfo resolution_info{}; |
| 499 | Setting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"}; | 504 | Setting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"}; |
| 500 | Setting<ScalingFilter> scaling_filter{ScalingFilter::Bilinear, "scaling_filter"}; | 505 | Setting<ScalingFilter> scaling_filter{ScalingFilter::Bilinear, "scaling_filter"}; |
| 506 | Setting<AntiAliasing> anti_aliasing{AntiAliasing::None, "anti_aliasing"}; | ||
| 501 | // *nix platforms may have issues with the borderless windowed fullscreen mode. | 507 | // *nix platforms may have issues with the borderless windowed fullscreen mode. |
| 502 | // Default to exclusive fullscreen on these platforms for now. | 508 | // Default to exclusive fullscreen on these platforms for now. |
| 503 | RangedSetting<FullscreenMode> fullscreen_mode{ | 509 | RangedSetting<FullscreenMode> fullscreen_mode{ |