From b434cae2c2a63ce68ba62d45ff504c8380224d78 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Wed, 24 Jul 2024 21:02:19 +0100 Subject: [PATCH] Fix image bindings --- .../EncoderStateManager.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs index 463979dca..db7b81dce 100644 --- a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs +++ b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs @@ -234,10 +234,10 @@ namespace Ryujinx.Graphics.Metal UpdateAndBind(renderCommandEncoder, _currentState.RenderProgram, MetalRenderer.TextureSetIndex); } - // if (_currentState.Dirty.HasFlag(DirtyFlags.Images)) - // { - // UpdateAndBind(renderCommandEncoder, _currentState.RenderProgram, MetalRenderer.ImageSetIndex); - // } + if (_currentState.Dirty.HasFlag(DirtyFlags.Images)) + { + UpdateAndBind(renderCommandEncoder, _currentState.RenderProgram, MetalRenderer.ImageSetIndex); + } _currentState.Dirty &= ~DirtyFlags.RenderAll; } @@ -264,10 +264,10 @@ namespace Ryujinx.Graphics.Metal UpdateAndBind(computeCommandEncoder, _currentState.ComputeProgram, MetalRenderer.TextureSetIndex); } - // if (_currentState.Dirty.HasFlag(DirtyFlags.Images)) - // { - // UpdateAndBind(computeCommandEncoder, _currentState.ComputeProgram, MetalRenderer.ImageSetIndex); - // } + if (_currentState.Dirty.HasFlag(DirtyFlags.Images)) + { + UpdateAndBind(computeCommandEncoder, _currentState.ComputeProgram, MetalRenderer.ImageSetIndex); + } _currentState.Dirty &= ~DirtyFlags.ComputeAll; }