From 8b223c121a1704d7d902d5a1daf0a7c487afeff0 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Tue, 22 Oct 2024 16:29:10 +0300 Subject: [PATCH] Implement bicubic GI texture filtering. --- UnleashedRecomp/gpu/video.cpp | 3 +++ thirdparty/ShaderRecomp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 3eb408c..b730566 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -73,6 +73,7 @@ struct SharedConstants uint32_t booleans{}; uint32_t swappedTexcoords{}; uint32_t inputLayoutFlags{}; + uint32_t enableGIBicubicFiltering{}; }; static GuestSurface* g_renderTarget; @@ -740,6 +741,8 @@ static void BeginCommandList() g_backBuffer->layout = RenderTextureLayout::UNKNOWN; + g_sharedConstants.enableGIBicubicFiltering = (Config::GITextureFiltering == EGITextureFiltering::Bicubic); + auto& commandList = g_commandLists[g_frame]; commandList->begin(); diff --git a/thirdparty/ShaderRecomp b/thirdparty/ShaderRecomp index 6477f65..f315ae4 160000 --- a/thirdparty/ShaderRecomp +++ b/thirdparty/ShaderRecomp @@ -1 +1 @@ -Subproject commit 6477f65937e7d95717fd7d857ad9315015bfacf5 +Subproject commit f315ae49baeebdcbd817d8a8928e23ce07df7596