chore: converted BufferHandle ToInt32 extension to an implicit int operator on BufferHandle directly.

This commit is contained in:
GreemDev
2025-07-03 23:21:51 -05:00
parent 1f3e4674b5
commit f2105d6040
8 changed files with 29 additions and 32 deletions

View File

@@ -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);
}
}
}