WIP: Experimental: Metal backend #439

Closed
GreemDev wants to merge 374 commits from metal into master
Showing only changes of commit f470430c2f - Show all commits

View File

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