mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 13:31:18 +12:00
Vulkan: Make scaling shaders compatible + fixes (#1392)
This commit is contained in:
parent
6f9f3d52ea
commit
269d5b9aab
7 changed files with 135 additions and 149 deletions
|
@ -933,13 +933,6 @@ void LatteRenderTarget_copyToBackbuffer(LatteTextureView* textureView, bool isPa
|
|||
if (shader == nullptr)
|
||||
{
|
||||
sint32 scaling_filter = downscaling ? GetConfig().downscale_filter : GetConfig().upscale_filter;
|
||||
|
||||
if (g_renderer->GetType() == RendererAPI::Vulkan)
|
||||
{
|
||||
// force linear or nearest neighbor filter
|
||||
if(scaling_filter != kLinearFilter && scaling_filter != kNearestNeighborFilter)
|
||||
scaling_filter = kLinearFilter;
|
||||
}
|
||||
|
||||
if (scaling_filter == kLinearFilter)
|
||||
{
|
||||
|
@ -957,7 +950,7 @@ void LatteRenderTarget_copyToBackbuffer(LatteTextureView* textureView, bool isPa
|
|||
else
|
||||
shader = RendererOutputShader::s_bicubic_shader;
|
||||
|
||||
filter = LatteTextureView::MagFilter::kNearestNeighbor;
|
||||
filter = LatteTextureView::MagFilter::kLinear;
|
||||
}
|
||||
else if (scaling_filter == kBicubicHermiteFilter)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue