mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-08 22:35:46 +00:00
chore: converted BufferHandle ToInt32 extension to an implicit int operator on BufferHandle directly.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Ryujinx.Graphics.GAL;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
@@ -14,10 +13,5 @@ namespace Ryujinx.Graphics.OpenGL
|
||||
|
||||
return Unsafe.As<ulong, T>(ref handle64);
|
||||
}
|
||||
|
||||
public static int ToInt32(this BufferHandle handle)
|
||||
{
|
||||
return (int)Unsafe.As<BufferHandle, ulong>(ref handle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user