mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-09-15 06:07:17 +00:00
Moved delegate loaders to the Delegates class
This commit is contained in:
parent
03a26ed12f
commit
8ee2152709
|
@ -222,9 +222,6 @@ namespace Bind
|
|||
d.Name);
|
||||
}
|
||||
|
||||
sw.Unindent();
|
||||
sw.WriteLine("}");
|
||||
|
||||
foreach (var d in delegates.Values.Select(d => d.First()))
|
||||
{
|
||||
var load_d = new Delegate(d);
|
||||
|
@ -249,6 +246,9 @@ namespace Bind
|
|||
|
||||
sw.Unindent();
|
||||
sw.WriteLine("}");
|
||||
|
||||
sw.Unindent();
|
||||
sw.WriteLine("}");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
|
@ -1191,7 +1191,6 @@ namespace OpenTK.Graphics.ES11
|
|||
[SuppressUnmanagedCodeSecurity]
|
||||
internal delegate void WeightPointerOES(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer);
|
||||
internal static WeightPointerOES glWeightPointerOES = Load_WeightPointerOES;
|
||||
}
|
||||
internal static void Load_AccumxOES(OpenTK.Graphics.ES11.All op, int value)
|
||||
{
|
||||
Delegates.glAccumxOES = (Delegates.AccumxOES)GetExtensionDelegateStatic("glAccumxOES", typeof(Delegates.AccumxOES));
|
||||
|
@ -3113,4 +3112,5 @@ namespace OpenTK.Graphics.ES11
|
|||
Delegates.glWeightPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1065,7 +1065,6 @@ namespace OpenTK.Graphics.ES20
|
|||
[SuppressUnmanagedCodeSecurity]
|
||||
internal delegate void WaitSyncAPPLE(IntPtr sync, OpenTK.Graphics.ES20.WaitSyncFlags flags, UInt64 timeout);
|
||||
internal static WaitSyncAPPLE glWaitSyncAPPLE = Load_WaitSyncAPPLE;
|
||||
}
|
||||
internal static void Load_ActiveProgramEXT(UInt32 program)
|
||||
{
|
||||
Delegates.glActiveProgramEXT = (Delegates.ActiveProgramEXT)GetExtensionDelegateStatic("glActiveProgramEXT", typeof(Delegates.ActiveProgramEXT));
|
||||
|
@ -2777,4 +2776,5 @@ namespace OpenTK.Graphics.ES20
|
|||
Delegates.glWaitSyncAPPLE((IntPtr)sync, (OpenTK.Graphics.ES20.WaitSyncFlags)flags, (UInt64)timeout);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1377,7 +1377,6 @@ namespace OpenTK.Graphics.ES30
|
|||
[SuppressUnmanagedCodeSecurity]
|
||||
internal delegate void WaitSyncAPPLE(IntPtr sync, OpenTK.Graphics.ES30.WaitSyncFlags flags, UInt64 timeout);
|
||||
internal static WaitSyncAPPLE glWaitSyncAPPLE = Load_WaitSyncAPPLE;
|
||||
}
|
||||
internal static void Load_ActiveProgramEXT(UInt32 program)
|
||||
{
|
||||
Delegates.glActiveProgramEXT = (Delegates.ActiveProgramEXT)GetExtensionDelegateStatic("glActiveProgramEXT", typeof(Delegates.ActiveProgramEXT));
|
||||
|
@ -3609,4 +3608,5 @@ namespace OpenTK.Graphics.ES30
|
|||
Delegates.glWaitSyncAPPLE((IntPtr)sync, (OpenTK.Graphics.ES30.WaitSyncFlags)flags, (UInt64)timeout);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7983,7 +7983,6 @@ namespace OpenTK.Graphics.OpenGL
|
|||
[SuppressUnmanagedCodeSecurity]
|
||||
internal delegate void WriteMaskEXT(UInt32 res, UInt32 @in, OpenTK.Graphics.OpenGL.ExtVertexShader outX, OpenTK.Graphics.OpenGL.ExtVertexShader outY, OpenTK.Graphics.OpenGL.ExtVertexShader outZ, OpenTK.Graphics.OpenGL.ExtVertexShader outW);
|
||||
internal static WriteMaskEXT glWriteMaskEXT = Load_WriteMaskEXT;
|
||||
}
|
||||
internal static void Load_Accum(OpenTK.Graphics.OpenGL.AccumOp op, Single value)
|
||||
{
|
||||
Delegates.glAccum = (Delegates.Accum)GetExtensionDelegateStatic("glAccum", typeof(Delegates.Accum));
|
||||
|
@ -21225,4 +21224,5 @@ namespace OpenTK.Graphics.OpenGL
|
|||
Delegates.glWriteMaskEXT((UInt32)res, (UInt32)@in, (OpenTK.Graphics.OpenGL.ExtVertexShader)outX, (OpenTK.Graphics.OpenGL.ExtVertexShader)outY, (OpenTK.Graphics.OpenGL.ExtVertexShader)outZ, (OpenTK.Graphics.OpenGL.ExtVertexShader)outW);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2055,7 +2055,6 @@ namespace OpenTK.Graphics.OpenGL4
|
|||
[SuppressUnmanagedCodeSecurity]
|
||||
internal delegate OpenTK.Graphics.OpenGL4.WaitSyncStatus WaitSync(IntPtr sync, OpenTK.Graphics.OpenGL4.WaitSyncFlags flags, UInt64 timeout);
|
||||
internal static WaitSync glWaitSync = Load_WaitSync;
|
||||
}
|
||||
internal static void Load_ActiveShaderProgram(UInt32 pipeline, UInt32 program)
|
||||
{
|
||||
Delegates.glActiveShaderProgram = (Delegates.ActiveShaderProgram)GetExtensionDelegateStatic("glActiveShaderProgram", typeof(Delegates.ActiveShaderProgram));
|
||||
|
@ -5417,4 +5416,5 @@ namespace OpenTK.Graphics.OpenGL4
|
|||
return Delegates.glWaitSync((IntPtr)sync, (OpenTK.Graphics.OpenGL4.WaitSyncFlags)flags, (UInt64)timeout);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue