mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-24 05:54:56 +03:00
warn about barriers
This commit is contained in:
parent
78553f31d9
commit
2cb5265c8e
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user