aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Handle.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Handle.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Handle.cs23
1 files changed, 0 insertions, 23 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Handle.cs b/Ryujinx.Graphics.OpenGL/Handle.cs
deleted file mode 100644
index 4b2f05e6..00000000
--- a/Ryujinx.Graphics.OpenGL/Handle.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-using Ryujinx.Graphics.GAL;
-using System.Diagnostics;
-using System.Runtime.CompilerServices;
-
-namespace Ryujinx.Graphics.OpenGL
-{
- static class Handle
- {
- public static T FromInt32<T>(int handle) where T : unmanaged
- {
- Debug.Assert(Unsafe.SizeOf<T>() == sizeof(ulong));
-
- ulong handle64 = (uint)handle;
-
- return Unsafe.As<ulong, T>(ref handle64);
- }
-
- public static int ToInt32(this BufferHandle handle)
- {
- return (int)Unsafe.As<BufferHandle, ulong>(ref handle);
- }
- }
-}