warn about barriers

This commit is contained in:
Samuliak 2024-05-24 18:41:36 +02:00 committed by Evan Husted
parent 78553f31d9
commit 2cb5265c8e

View File

@ -206,6 +206,9 @@ namespace Ryujinx.Graphics.Metal
// TODO: Should there be a barrier on render targets? // TODO: Should there be a barrier on render targets?
var scope = MTLBarrierScope.Buffers | MTLBarrierScope.Textures; var scope = MTLBarrierScope.Buffers | MTLBarrierScope.Textures;
computeCommandEncoder.MemoryBarrier(scope); computeCommandEncoder.MemoryBarrier(scope);
} else
{
Logger.Warning?.Print(LogClass.Gpu, "Barrier called outside of a render or compute pass");
} }
} }