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

@ -21,7 +21,7 @@ namespace Ryujinx.Graphics.OpenGL
if (logLevel == GraphicsDebugLevel.None)
{
GL.Disable(EnableCap.DebugOutputSynchronous);
GL.DebugMessageCallback(null, IntPtr.Zero);
GL.DebugMessageCallback(null, nint.Zero);
return;
}
@ -45,7 +45,7 @@ namespace Ryujinx.Graphics.OpenGL
_counter = 0;
_debugCallback = GLDebugHandler;
GL.DebugMessageCallback(_debugCallback, IntPtr.Zero);
GL.DebugMessageCallback(_debugCallback, nint.Zero);
Logger.Warning?.Print(LogClass.Gpu, "OpenGL Debugging is enabled. Performance will be negatively impacted.");
}
@ -56,8 +56,8 @@ namespace Ryujinx.Graphics.OpenGL
int id,
DebugSeverity severity,
int length,
IntPtr message,
IntPtr userParam)
nint message,
nint userParam)
{
string msg = Marshal.PtrToStringUTF8(message).Replace('\n', ' ');