1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-18 19:02:00 +00:00

Warning about host map buffer creation

This commit is contained in:
Isaac Marovitz 2024-06-26 12:39:05 +01:00 committed by Isaac Marovitz
parent 113e721cce
commit a60643620d

View file

@ -63,6 +63,7 @@ namespace Ryujinx.Graphics.Metal
public BufferHandle Create(nint pointer, int size)
{
// TODO: This is the wrong Metal method, we need no-copy which SharpMetal isn't giving us.
var buffer = _device.NewBuffer(pointer, (ulong)size, MTLResourceOptions.ResourceStorageModeShared);
if (buffer == IntPtr.Zero)