diff options
author | Fernando S <fsahmkow27@gmail.com> | 2023-05-24 03:55:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 03:55:45 +0200 |
commit | 76f63889692a0836dafd626841aa050ef26b407b (patch) | |
tree | 442b586dc2ead257e4411101b05a06298c97e423 /src/common | |
parent | Merge pull request #10388 from GPUCode/fence-wait (diff) | |
parent | textures: add BC1 and BC3 compressors and recompression setting (diff) | |
download | yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.gz yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.bz2 yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.lz yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.xz yuzu-76f63889692a0836dafd626841aa050ef26b407b.tar.zst yuzu-76f63889692a0836dafd626841aa050ef26b407b.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/settings.cpp | 2 | ||||
-rw-r--r-- | src/common/settings.h | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index ba617aea1..ff53e80bb 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp @@ -61,6 +61,7 @@ void LogSettings() { log_setting("Renderer_NvdecEmulation", values.nvdec_emulation.GetValue()); log_setting("Renderer_AccelerateASTC", values.accelerate_astc.GetValue()); log_setting("Renderer_AsyncASTC", values.async_astc.GetValue()); + log_setting("Renderer_AstcRecompression", values.astc_recompression.GetValue()); log_setting("Renderer_UseVsync", values.vsync_mode.GetValue()); log_setting("Renderer_UseReactiveFlushing", values.use_reactive_flushing.GetValue()); log_setting("Renderer_ShaderBackend", values.shader_backend.GetValue()); @@ -224,6 +225,7 @@ void RestoreGlobalState(bool is_powered_on) { values.nvdec_emulation.SetGlobal(true); values.accelerate_astc.SetGlobal(true); values.async_astc.SetGlobal(true); + values.astc_recompression.SetGlobal(true); values.use_reactive_flushing.SetGlobal(true); values.shader_backend.SetGlobal(true); values.use_asynchronous_shaders.SetGlobal(true); diff --git a/src/common/settings.h b/src/common/settings.h index 36ffcd693..7f865b2a7 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -90,6 +90,12 @@ enum class AntiAliasing : u32 { LastAA = Smaa, }; +enum class AstcRecompression : u32 { + Uncompressed = 0, + Bc1 = 1, + Bc3 = 2, +}; + struct ResolutionScalingInfo { u32 up_scale{1}; u32 down_shift{0}; @@ -473,6 +479,9 @@ struct Values { SwitchableSetting<bool> use_vulkan_driver_pipeline_cache{true, "use_vulkan_driver_pipeline_cache"}; SwitchableSetting<bool> enable_compute_pipelines{false, "enable_compute_pipelines"}; + SwitchableSetting<AstcRecompression, true> astc_recompression{ + AstcRecompression::Uncompressed, AstcRecompression::Uncompressed, AstcRecompression::Bc3, + "astc_recompression"}; SwitchableSetting<u8> bg_red{0, "bg_red"}; SwitchableSetting<u8> bg_green{0, "bg_green"}; |