summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorMatías Locatti <matias.locatti@gmail.com>2022-11-20 01:04:04 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-11-24 10:22:13 +0100
commitf209e976f4887f399250c558ac725bc5723eec38 (patch)
tree78d1ed79f0bfadaa968a8f0e0fb21465441428b5 /src/video_core
parentMerge pull request #9299 from lioncash/cast (diff)
downloadyuzu-f209e976f4887f399250c558ac725bc5723eec38.tar
yuzu-f209e976f4887f399250c558ac725bc5723eec38.tar.gz
yuzu-f209e976f4887f399250c558ac725bc5723eec38.tar.bz2
yuzu-f209e976f4887f399250c558ac725bc5723eec38.tar.lz
yuzu-f209e976f4887f399250c558ac725bc5723eec38.tar.xz
yuzu-f209e976f4887f399250c558ac725bc5723eec38.tar.zst
yuzu-f209e976f4887f399250c558ac725bc5723eec38.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);
{