From 41fb433495b0fd6bf8f9c5dd6861fab7b10ad906 Mon Sep 17 00:00:00 2001 From: Samuliak Date: Fri, 24 May 2024 18:41:36 +0200 Subject: [PATCH] warn about barriers --- src/Ryujinx.Graphics.Metal/Pipeline.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Ryujinx.Graphics.Metal/Pipeline.cs b/src/Ryujinx.Graphics.Metal/Pipeline.cs index 66984c2bb..1424c74bc 100644 --- a/src/Ryujinx.Graphics.Metal/Pipeline.cs +++ b/src/Ryujinx.Graphics.Metal/Pipeline.cs @@ -206,6 +206,9 @@ namespace Ryujinx.Graphics.Metal // TODO: Should there be a barrier on render targets? var scope = MTLBarrierScope.Buffers | MTLBarrierScope.Textures; computeCommandEncoder.MemoryBarrier(scope); + } else + { + Logger.Warning?.Print(LogClass.Gpu, "Barrier called outside of a render or compute pass"); } }