From 29cd6989c19d86bb66a930e543dfedc8f41c22ab Mon Sep 17 00:00:00 2001 From: Samuliak Date: Sun, 19 Jan 2025 11:23:00 +0100 Subject: [PATCH] skip bindings for framebuffer fetched textures --- .../HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp b/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp index f9611ff1..01aa3579 100644 --- a/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp +++ b/src/Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompilerAnalyzer.cpp @@ -511,7 +511,7 @@ namespace LatteDecompiler // for Vulkan we use consecutive indices for (sint32 i = 0; i < LATTE_NUM_MAX_TEX_UNITS; i++) { - if (!decompilerContext->output->textureUnitMask[i]) + if (!decompilerContext->output->textureUnitMask[i] || decompilerContext->shader->textureRenderTargetIndex[i] != 255) continue; decompilerContext->output->resourceMappingMTL.textureUnitToBindingPoint[i] = decompilerContext->currentTextureBindingPointMTL; decompilerContext->currentTextureBindingPointMTL++;