misc: Replace references to IntPtr/UIntPtr with nint/nuint + code cleanups.

This commit is contained in:
Evan Husted 2024-10-26 08:46:41 -05:00
parent a09d314817
commit dfb4854d19
172 changed files with 902 additions and 914 deletions

View file

@ -11,7 +11,7 @@ namespace Ryujinx.Graphics.OpenGL
private class SyncHandle
{
public ulong ID;
public IntPtr Handle;
public nint Handle;
}
private ulong _firstHandle = 0;
@ -50,7 +50,7 @@ namespace Ryujinx.Graphics.OpenGL
{
lock (handle)
{
if (handle.Handle == IntPtr.Zero)
if (handle.Handle == nint.Zero)
{
continue;
}
@ -96,7 +96,7 @@ namespace Ryujinx.Graphics.OpenGL
{
lock (result)
{
if (result.Handle == IntPtr.Zero)
if (result.Handle == nint.Zero)
{
return;
}
@ -140,7 +140,7 @@ namespace Ryujinx.Graphics.OpenGL
_firstHandle = first.ID + 1;
_handles.RemoveAt(0);
GL.DeleteSync(first.Handle);
first.Handle = IntPtr.Zero;
first.Handle = nint.Zero;
}
}
}
@ -161,7 +161,7 @@ namespace Ryujinx.Graphics.OpenGL
lock (handle)
{
GL.DeleteSync(handle.Handle);
handle.Handle = IntPtr.Zero;
handle.Handle = nint.Zero;
}
}