From b1549be8c316503154c2786ea9ec3f826b0dc8a5 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Thu, 23 May 2024 17:49:22 +0200 Subject: [PATCH] do texture barrier --- src/Ryujinx.Graphics.Metal/Pipeline.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 172439675..ea64ae3bb 100644 --- a/src/Ryujinx.Graphics.Metal/Pipeline.cs +++ b/src/Ryujinx.Graphics.Metal/Pipeline.cs @@ -514,10 +514,9 @@ namespace Ryujinx.Graphics.Metal public void TextureBarrier() { - // var renderCommandEncoder = GetOrCreateRenderEncoder(); + var renderCommandEncoder = GetOrCreateRenderEncoder(); - // renderCommandEncoder.MemoryBarrier(MTLBarrierScope.Textures, ); - Logger.Warning?.Print(LogClass.Gpu, "Not Implemented!"); + renderCommandEncoder.MemoryBarrier(MTLBarrierScope.Textures, MTLRenderStages.RenderStageFragment, MTLRenderStages.RenderStageFragment); } public void TextureBarrierTiled()