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,3 +1,4 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
namespace Ryujinx.Graphics.GAL
@@ -10,5 +11,7 @@ namespace Ryujinx.Graphics.GAL
public static BufferHandle Null => new(0);
private BufferHandle(ulong value) => _value = value;
public static implicit operator int(BufferHandle handle) => (int)Unsafe.As<BufferHandle, ulong>(ref handle);
}
}