warn about barriers

This commit is contained in:
Samuliak 2024-05-24 18:41:36 +02:00 committed by Isaac Marovitz
parent cb183b3945
commit 4a97c2b64d
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 3 additions and 0 deletions

View File

@ -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");
}
}