dispose temporary metal buffer

This commit is contained in:
Samuliak
2024-05-25 14:48:07 +02:00
committed by Evan Husted
parent 3be47ae4a9
commit 58b42a1143

View File

@@ -223,7 +223,7 @@ namespace Ryujinx.Graphics.Metal
); );
// TODO: Dispose the buffer // TODO: Dispose the buffer
return new PinnedSpan<byte>(mtlBuffer.Contents.ToPointer(), (int)length); return new PinnedSpan<byte>(mtlBuffer.Contents.ToPointer(), (int)length, () => mtlBuffer.Dispose());
} }
} }