Skip to content

Commit

Permalink
skip bindings for framebuffer fetched textures
Browse files Browse the repository at this point in the history
  • Loading branch information
SamoZ256 committed Jan 19, 2025
1 parent db8c7de commit 29cd698
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 29cd698

Please sign in to comment.