mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 14:31:17 +12:00
don't bind textures when framebuffer fetched
This commit is contained in:
parent
6d1d739de5
commit
03ec23140b
1 changed files with 5 additions and 0 deletions
|
@ -1926,6 +1926,11 @@ void MetalRenderer::BindStageResources(MTL::RenderCommandEncoder* renderCommandE
|
|||
{
|
||||
const auto relative_textureUnit = shader->resourceMapping.getTextureUnitFromBindingPoint(i);
|
||||
auto hostTextureUnit = relative_textureUnit;
|
||||
|
||||
// Don't bind textures that are accessed with a framebuffer fetch
|
||||
if (shader->textureRenderTargetIndex[relative_textureUnit] != 255)
|
||||
continue;
|
||||
|
||||
auto textureDim = shader->textureUnitDim[relative_textureUnit];
|
||||
auto texUnitRegIndex = hostTextureUnit * 7;
|
||||
switch (shader->shaderType)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue