mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-26 03:03:01 -03:00
Don’t use DidModifyRange
This commit is contained in:
parent
9e61294671
commit
8b5392ce9b
1 changed files with 0 additions and 5 deletions
|
@ -220,11 +220,6 @@ namespace Ryujinx.Graphics.Metal
|
||||||
{
|
{
|
||||||
var span = new Span<byte>(src.Contents.ToPointer(), data.Length);
|
var span = new Span<byte>(src.Contents.ToPointer(), data.Length);
|
||||||
data.CopyTo(span);
|
data.CopyTo(span);
|
||||||
src.DidModifyRange(new NSRange
|
|
||||||
{
|
|
||||||
location = 0,
|
|
||||||
length = (ulong)data.Length
|
|
||||||
});
|
|
||||||
|
|
||||||
MTLBuffer dst = new(Unsafe.As<BufferHandle, IntPtr>(ref buffer));
|
MTLBuffer dst = new(Unsafe.As<BufferHandle, IntPtr>(ref buffer));
|
||||||
blitEncoder.CopyFromBuffer(src, 0, dst, (ulong)offset, (ulong)data.Length);
|
blitEncoder.CopyFromBuffer(src, 0, dst, (ulong)offset, (ulong)data.Length);
|
||||||
|
|
Loading…
Add table
Reference in a new issue