summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-11-27 09:13:15 +0100
committerGitHub <noreply@github.com>2022-11-27 09:13:15 +0100
commit3ab8d9ac7c1fac58de314265f8936336d1f7d829 (patch)
tree9f0544fd8e47a1c3c308b420b7c9b16d622cb67f /src/video_core
parentMerge pull request #9324 from v1993/master (diff)
parentSharpness instead of Sharpening (diff)
downloadyuzu-3ab8d9ac7c1fac58de314265f8936336d1f7d829.tar
yuzu-3ab8d9ac7c1fac58de314265f8936336d1f7d829.tar.gz
yuzu-3ab8d9ac7c1fac58de314265f8936336d1f7d829.tar.bz2
yuzu-3ab8d9ac7c1fac58de314265f8936336d1f7d829.tar.lz
yuzu-3ab8d9ac7c1fac58de314265f8936336d1f7d829.tar.xz
yuzu-3ab8d9ac7c1fac58de314265f8936336d1f7d829.tar.zst
yuzu-3ab8d9ac7c1fac58de314265f8936336d1f7d829.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_fsr.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_fsr.cpp b/src/video_core/renderer_vulkan/vk_fsr.cpp
index dd450169e..33daa8c1c 100644
--- a/src/video_core/renderer_vulkan/vk_fsr.cpp
+++ b/src/video_core/renderer_vulkan/vk_fsr.cpp
@@ -5,6 +5,7 @@
#include "common/bit_cast.h"
#include "common/common_types.h"
#include "common/div_ceil.h"
+#include "common/settings.h"
#include "video_core/host_shaders/vulkan_fidelityfx_fsr_easu_fp16_comp_spv.h"
#include "video_core/host_shaders/vulkan_fidelityfx_fsr_easu_fp32_comp_spv.h"
@@ -227,7 +228,10 @@ VkImageView FSR::Draw(Scheduler& scheduler, size_t image_index, VkImageView imag
cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_COMPUTE, *rcas_pipeline);
- FsrRcasCon(push_constants.data(), 0.25f);
+ const float sharpening =
+ static_cast<float>(Settings::values.fsr_sharpening_slider.GetValue()) / 100.0f;
+
+ FsrRcasCon(push_constants.data(), sharpening);
cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_COMPUTE_BIT, push_constants);
{