-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgl.Version_3_2.cs
474 lines (421 loc) · 23.8 KB
/
gl.Version_3_2.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
#region Copyright and License
// Copyright (c) 2013-2014 The Khronos Group Inc.
// Copyright (c) of C# port 2014 by Shinta <shintadono@googlemail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and/or associated documentation files (the
// "Materials"), to deal in the Materials without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Materials, and to
// permit persons to whom the Materials are furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be included
// in all copies or substantial portions of the Materials.
//
// THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
// MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
#endregion
using System;
using System.Runtime.InteropServices;
namespace OpenGL.Core
{
using Delegates;
namespace Delegates
{
internal delegate void glDrawElementsBaseVertex(glDrawMode mode, int count, glDrawElementsType type, IntPtr indices, int basevertex);
internal delegate void glDrawRangeElementsBaseVertex(glDrawMode mode, uint start, uint end, int count, glDrawElementsType type, IntPtr indices, int basevertex);
internal delegate void glDrawElementsInstancedBaseVertex(glDrawMode mode, int count, glDrawElementsType type, IntPtr indices, int instancecount, int basevertex);
internal delegate void glMultiDrawElementsBaseVertex(glDrawMode mode, int[] count, glDrawElementsType type, IntPtr[] indices, int drawcount, int[] basevertex);
/// <summary>
/// Sets the provoking vertex for flat shading.
/// </summary>
/// <param name="mode">A <see cref="glProvokingVertexMode"/> specifying the vertex.</param>
public delegate void glProvokingVertex(glProvokingVertexMode mode);
/// <summary>
/// Creates a sync object and inserts it into the command stream.
/// </summary>
/// <param name="condition">Must be <see cref="glSyncCondition.SYNC_GPU_COMMANDS_COMPLETE"/>.</param>
/// <param name="flags">Must be zero.</param>
/// <returns>Return the handle sync object.</returns>
public delegate IntPtr glFenceSync(glSyncCondition condition, glSyncFlag flags);
/// <summary>
/// Determines if a handle is a sync object.
/// </summary>
/// <param name="sync">The handle to check.</param>
/// <returns><b>true</b> if <paramref name="sync"/> is a sync object.</returns>
[return: MarshalAs(UnmanagedType.I1)]
public delegate bool glIsSync(IntPtr sync);
/// <summary>
/// Deletes a sync object.
/// </summary>
/// <param name="sync">The handle to the sync object.</param>
public delegate void glDeleteSync(IntPtr sync);
/// <summary>
/// Waits for a sync object for a time.
/// </summary>
/// <param name="sync">The handle to the sync object.</param>
/// <param name="flags">A <see cref="glClientWaitSyncFlag"/> controlling command flushing behavior.</param>
/// <param name="timeout">Timeout in nanoseconds.</param>
/// <returns>Returns information on the waiting operation.</returns>
public delegate glClientWaitSyncResult glClientWaitSync(IntPtr sync, glClientWaitSyncFlag flags, ulong timeout);
/// <summary>
/// Instructs the GL server to block until the specified sync object becomes signaled.
/// </summary>
/// <param name="sync">The handle to the sync object.</param>
/// <param name="flags">Must be zero.</param>
/// <param name="timeout">Must be <see cref="gl.TIMEOUT_IGNORED"/>.</param>
public delegate void glWaitSync(IntPtr sync, glWaitSyncFlag flags, ulong timeout);
/// <summary>
/// Returns the value of a parameter.
/// </summary>
/// <param name="pname">A <see cref="glGetInteger64Parameter"/> specifying the parameter.</param>
/// <param name="param">Returns the requested value.</param>
public delegate void glGetInteger64(glGetInteger64Parameter pname, out long param);
/// <summary>
/// Returns the value(s) of a parameter.
/// </summary>
/// <param name="pname">A <see cref="glGetInteger64Parameter"/> specifying the parameter.</param>
/// <param name="params">Returns the requested value(s).</param>
public delegate void glGetInteger64v(glGetInteger64Parameter pname, long[] @params);
/// <summary>
/// Returns the value of parameters of sync objects.
/// </summary>
/// <param name="sync">The handle of the sync object.</param>
/// <param name="pname">A <see cref="glSyncParameter"/> specifying the parameter.</param>
/// <param name="bufSize">Must be one.</param>
/// <param name="length">Will be one.</param>
/// <param name="value">The requested value.</param>
public delegate void glGetSynci(IntPtr sync, glSyncParameter pname, int bufSize, out int length, out int value);
/// <summary>
/// Returns the value(s) of parameters of sync objects.
/// </summary>
/// <param name="sync">The handle of the sync object.</param>
/// <param name="pname">A <see cref="glSyncParameter"/> specifying the parameter.</param>
/// <param name="bufSize">Size of the <paramref name="values"/> buffer.</param>
/// <param name="length">The number of value(s) actually writter to <paramref name="values"/>.</param>
/// <param name="values">The requested value(s).</param>
public delegate void glGetSynciv(IntPtr sync, glSyncParameter pname, int bufSize, out int length, int[] values);
/// <summary>
/// Returns the value of an indexed parameter.
/// </summary>
/// <param name="target">A <see cref="glGetInteger64Parameter"/> specifying the parameter.</param>
/// <param name="index"></param>
/// <param name="data">Returns the requested value.</param>
public delegate void glGetInteger64i_(glGetInteger64IndexedParameter target, uint index, out long data);
/// <summary>
/// Returns the value(s) of an indexed parameter.
/// </summary>
/// <param name="target">A <see cref="glGetInteger64Parameter"/> specifying the parameter.</param>
/// <param name="index"></param>
/// <param name="data">Returns the requested value(s).</param>
public delegate void glGetInteger64i_v(glGetInteger64IndexedParameter target, uint index, long[] data);
/// <summary>
/// Returns parameter of a buffer object.
/// </summary>
/// <param name="target">A <see cref="glBufferTarget"/> specifying the target.</param>
/// <param name="pname">A <see cref="glGetBufferParameter"/> specifying the parameter.</param>
/// <param name="param">Returns the requested value.</param>
public delegate void glGetBufferParameteri64(glBufferTarget target, glGetBufferParameter pname, out long param);
/// <summary>
/// Returns parameter of a buffer object.
/// </summary>
/// <param name="target">A <see cref="glBufferTarget"/> specifying the target.</param>
/// <param name="pname">A <see cref="glGetBufferParameter"/> specifying the parameter.</param>
/// <param name="params">Returns the requested value(s).</param>
public delegate void glGetBufferParameteri64v(glBufferTarget target, glGetBufferParameter pname, long[] @params);
/// <summary>
/// Attachs a level of a texture as a buffer to a attachment of the currently bound framebuffer bound to a specific framebuffer target.
/// </summary>
/// <param name="target">A <see cref="glFramebufferTarget"/> specifying the framebuffer target.</param>
/// <param name="attachment">The framebuffer attachment.</param>
/// <param name="texture">The name of the texture.</param>
/// <param name="level">The level of the texture.</param>
public delegate void glFramebufferTexture(glFramebufferTarget target, glBuffer attachment, uint texture, int level);
/// <summary>
/// Creates storage for a 2D multisample texture.
/// </summary>
/// <param name="target">A <see cref="glTexture2DProxyTarget"/> specifying the texture target.</param>
/// <param name="samples">Number of samples.</param>
/// <param name="internalformat">A <see cref="glInternalFormat"/> specifying the internal format to be used.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <param name="fixedsamplelocations">Specifies whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image.</param>
public delegate void glTexImage2DMultisample(glTexture2DProxyTarget target, int samples, glInternalFormat internalformat, int width, int height, [MarshalAs(UnmanagedType.I1)] bool fixedsamplelocations);
/// <summary>
/// Creates storage for a 3D multisample texture.
/// </summary>
/// <param name="target">A <see cref="glTexture3DProxyTarget"/> specifying the texture target.</param>
/// <param name="samples">Number of samples.</param>
/// <param name="internalformat">A <see cref="glInternalFormat"/> specifying the internal format to be used.</param>
/// <param name="width">The width of the texture.</param>
/// <param name="height">The height of the texture.</param>
/// <param name="depth">The depth of the texture.</param>
/// <param name="fixedsamplelocations">Specifies whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image.</param>
public delegate void glTexImage3DMultisample(glTexture3DProxyTarget target, int samples, glInternalFormat internalformat, int width, int height, int depth, [MarshalAs(UnmanagedType.I1)] bool fixedsamplelocations);
/// <summary>
/// Retrieves the location of a sample.
/// </summary>
/// <param name="pname">Must be <see cref="glMultisampleParameter.SAMPLE_POSITION"/>.</param>
/// <param name="index">The index of the sample.</param>
/// <param name="val">A <b>float[2]</b> to receive the sample position.</param>
public delegate void glGetMultisamplefv(glMultisampleParameter pname, uint index, float[] val);
/// <summary>
/// Sets the value of a sub-word of the sample mask.
/// </summary>
/// <param name="index">Specifies which 32-bit sub-word of the sample mask to update.</param>
/// <param name="mask">The new mask value.</param>
public delegate void glSampleMaski(uint index, uint mask);
}
public static partial class gl
{
/// <summary>
/// Indicates if OpenGL version 3.2 is available.
/// </summary>
public static bool VERSION_3_2;
#region Delegates
private static glDrawElementsBaseVertex _DrawElementsBaseVertex;
private static glDrawRangeElementsBaseVertex _DrawRangeElementsBaseVertex;
private static glDrawElementsInstancedBaseVertex _DrawElementsInstancedBaseVertex;
private static glMultiDrawElementsBaseVertex _MultiDrawElementsBaseVertex;
/// <summary>
/// Sets the provoking vertex for flat shading.
/// </summary>
public static glProvokingVertex ProvokingVertex;
/// <summary>
/// Creates a sync object and inserts it into the command stream.
/// </summary>
public static glFenceSync FenceSync;
/// <summary>
/// Determines if a handle is a sync object.
/// </summary>
public static glIsSync IsSync;
/// <summary>
/// Deletes a sync object.
/// </summary>
public static glDeleteSync DeleteSync;
/// <summary>
/// Waits for a sync object for a time.
/// </summary>
public static glClientWaitSync ClientWaitSync;
/// <summary>
/// Instructs the GL server to block until the specified sync object becomes signaled.
/// </summary>
public static glWaitSync WaitSync;
/// <summary>
/// Returns the value of a parameter.
/// </summary>
public static glGetInteger64 GetInteger64;
/// <summary>
/// Returns the value(s) of a parameter.
/// </summary>
public static glGetInteger64v GetInteger64v;
/// <summary>
/// Returns the value of parameters of sync objects.
/// </summary>
public static glGetSynci GetSynci;
/// <summary>
/// Returns the value(s) of parameters of sync objects.
/// </summary>
public static glGetSynciv GetSynciv;
/// <summary>
/// Returns the value of an indexed parameter.
/// </summary>
public static glGetInteger64i_ GetInteger64i_;
/// <summary>
/// Returns the value(s) of an indexed parameter.
/// </summary>
public static glGetInteger64i_v GetInteger64i_v;
/// <summary>
/// Returns parameter of a buffer object.
/// </summary>
public static glGetBufferParameteri64 GetBufferParameteri64;
/// <summary>
/// Returns parameter of a buffer object.
/// </summary>
public static glGetBufferParameteri64v GetBufferParameteri64v;
/// <summary>
/// Attachs a level of a texture as a buffer to a attachment of the currently bound framebuffer bound to a specific framebuffer target.
/// </summary>
public static glFramebufferTexture FramebufferTexture;
/// <summary>
/// Creates storage for a 2D multisample texture.
/// </summary>
public static glTexImage2DMultisample TexImage2DMultisample;
/// <summary>
/// Creates storage for a 3D multisample texture.
/// </summary>
public static glTexImage3DMultisample TexImage3DMultisample;
/// <summary>
/// Retrieves the location of a sample.
/// </summary>
public static glGetMultisamplefv GetMultisamplefv;
/// <summary>
/// Sets the value of a sub-word of the sample mask.
/// </summary>
public static glSampleMaski SampleMaski;
#endregion
#region Overloads
#region DrawElementsBaseVertex
/// <summary>
/// Renders primitives from array via indices with a per-element offset.
/// </summary>
/// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to render.</param>
/// <param name="count">Number of indices.</param>
/// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param>
/// <param name="offset">The offset into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param>
/// <param name="basevertex">The per-element offset.</param>
public static void DrawElementsBaseVertex(glDrawMode mode, int count, glDrawElementsType type, int offset, int basevertex)
{
_DrawElementsBaseVertex(mode, count, type, (IntPtr)offset, basevertex);
}
/// <summary>
/// Renders primitives from array via indices with a per-element offset.
/// </summary>
/// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to render.</param>
/// <param name="count">Number of indices.</param>
/// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param>
/// <param name="offset">The offset into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param>
/// <param name="basevertex">The per-element offset.</param>
public static void DrawElementsBaseVertex(glDrawMode mode, int count, glDrawElementsType type, long offset, int basevertex)
{
if (IntPtr.Size == 4 && ((long)offset >> 32) != 0) throw new ArgumentOutOfRangeException("offset", PlatformErrorString);
_DrawElementsBaseVertex(mode, count, type, (IntPtr)offset, basevertex);
}
#endregion
#region DrawRangeElementsBaseVertex
/// <summary>
/// Render primitives from array via a range of indices with a per-element offset.
/// </summary>
/// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to render.</param>
/// <param name="start">Start of the range.</param>
/// <param name="end">End of the range.</param>
/// <param name="count">Number of indices.</param>
/// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param>
/// <param name="offset">The offset into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param>
/// <param name="basevertex">The per-element offset.</param>
public static void DrawRangeElementsBaseVertex(glDrawMode mode, uint start, uint end, int count, glDrawElementsType type, int offset, int basevertex)
{
_DrawRangeElementsBaseVertex(mode, start, end, count, type, (IntPtr)offset, basevertex);
}
/// <summary>
/// Render primitives from array via a range of indices with a per-element offset.
/// </summary>
/// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to render.</param>
/// <param name="start">Start of the range.</param>
/// <param name="end">End of the range.</param>
/// <param name="count">Number of indices.</param>
/// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param>
/// <param name="offset">The offset into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param>
/// <param name="basevertex">The per-element offset.</param>
public static void DrawRangeElementsBaseVertex(glDrawMode mode, uint start, uint end, int count, glDrawElementsType type, long offset, int basevertex)
{
if (IntPtr.Size == 4 && ((long)offset >> 32) != 0) throw new ArgumentOutOfRangeException("offset", PlatformErrorString);
_DrawRangeElementsBaseVertex(mode, start, end, count, type, (IntPtr)offset, basevertex);
}
#endregion
#region DrawElementsInstancedBaseVertex
/// <summary>
/// Renders multiple instances from array via indices with a per-element offset.
/// </summary>
/// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to be rendered.</param>
/// <param name="count">Number of indices.</param>
/// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param>
/// <param name="offset">The offset into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param>
/// <param name="instancecount">Number of instances to be rendered.</param>
/// <param name="basevertex">The per-element offset.</param>
public static void DrawElementsInstancedBaseVertex(glDrawMode mode, int count, glDrawElementsType type, int offset, int instancecount, int basevertex)
{
_DrawElementsInstancedBaseVertex(mode, count, type, (IntPtr)offset, instancecount, basevertex);
}
/// <summary>
/// Renders multiple instances from array via indices with a per-element offset.
/// </summary>
/// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to be rendered.</param>
/// <param name="count">Number of indices.</param>
/// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param>
/// <param name="offset">The offset into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param>
/// <param name="instancecount">Number of instances to be rendered.</param>
/// <param name="basevertex">The per-element offset.</param>
public static void DrawElementsInstancedBaseVertex(glDrawMode mode, int count, glDrawElementsType type, long offset, int instancecount, int basevertex)
{
if (IntPtr.Size == 4 && ((long)offset >> 32) != 0) throw new ArgumentOutOfRangeException("offset", PlatformErrorString);
_DrawElementsInstancedBaseVertex(mode, count, type, (IntPtr)offset, instancecount, basevertex);
}
#endregion
#region MultiDrawElementsBaseVertex
/// <summary>
/// Renders primitives from array via indices with a per-element offset.
/// </summary>
/// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to render.</param>
/// <param name="count">Numbers of indices.</param>
/// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param>
/// <param name="offsets">The offsets into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param>
/// <param name="drawcount">Number of draws (Length of <paramref name="count"/> and <paramref name="offsets"/>.</param>
/// <param name="basevertex">The per-element offset.</param>
public static void MultiDrawElementsBaseVertex(glDrawMode mode, int[] count, glDrawElementsType type, int[] offsets, int drawcount, int[] basevertex)
{
IntPtr[] iOffsets = new IntPtr[drawcount];
for (int i = 0; i < drawcount; i++) iOffsets[i] = (IntPtr)offsets[i];
_MultiDrawElementsBaseVertex(mode, count, type, iOffsets, drawcount, basevertex);
}
/// <summary>
/// Renders primitives from array via indices with a per-element offset.
/// </summary>
/// <param name="mode">A <see cref="glDrawMode"/> specifying the type of primitive to render.</param>
/// <param name="count">Numbers of indices.</param>
/// <param name="type">A <see cref="glDrawElementsType"/> specifying the data type of the indices.</param>
/// <param name="offsets">The offsets into the array bound to <see cref="glBufferTarget.ELEMENT_ARRAY_BUFFER"/>.</param>
/// <param name="drawcount">Number of draws (Length of <paramref name="count"/> and <paramref name="offsets"/>.</param>
/// <param name="basevertex">The per-element offset.</param>
public static void MultiDrawElementsBaseVertex(glDrawMode mode, int[] count, glDrawElementsType type, long[] offsets, int drawcount, int[] basevertex)
{
IntPtr[] iOffsets = new IntPtr[drawcount];
for (int i = 0; i < drawcount; i++)
{
if (IntPtr.Size == 4 && ((long)offsets[i] >> 32) != 0) throw new ArgumentOutOfRangeException("offsets", PlatformArrayErrorString);
iOffsets[i] = (IntPtr)offsets[i];
}
_MultiDrawElementsBaseVertex(mode, count, type, iOffsets, drawcount, basevertex);
}
#endregion
#endregion
private static void Load_VERSION_3_2()
{
_DrawElementsBaseVertex = GetAddress<glDrawElementsBaseVertex>("glDrawElementsBaseVertex");
_DrawRangeElementsBaseVertex = GetAddress<glDrawRangeElementsBaseVertex>("glDrawRangeElementsBaseVertex");
_DrawElementsInstancedBaseVertex = GetAddress<glDrawElementsInstancedBaseVertex>("glDrawElementsInstancedBaseVertex");
_MultiDrawElementsBaseVertex = GetAddress<glMultiDrawElementsBaseVertex>("glMultiDrawElementsBaseVertex");
ProvokingVertex = GetAddress<glProvokingVertex>("glProvokingVertex");
FenceSync = GetAddress<glFenceSync>("glFenceSync");
IsSync = GetAddress<glIsSync>("glIsSync");
DeleteSync = GetAddress<glDeleteSync>("glDeleteSync");
ClientWaitSync = GetAddress<glClientWaitSync>("glClientWaitSync");
WaitSync = GetAddress<glWaitSync>("glWaitSync");
GetInteger64 = GetAddress<glGetInteger64>("glGetInteger64v");
GetInteger64v = GetAddress<glGetInteger64v>("glGetInteger64v");
GetSynci = GetAddress<glGetSynci>("glGetSynciv");
GetSynciv = GetAddress<glGetSynciv>("glGetSynciv");
GetInteger64i_ = GetAddress<glGetInteger64i_>("glGetInteger64i_v");
GetInteger64i_v = GetAddress<glGetInteger64i_v>("glGetInteger64i_v");
GetBufferParameteri64 = GetAddress<glGetBufferParameteri64>("glGetBufferParameteri64v");
GetBufferParameteri64v = GetAddress<glGetBufferParameteri64v>("glGetBufferParameteri64v");
FramebufferTexture = GetAddress<glFramebufferTexture>("glFramebufferTexture");
TexImage2DMultisample = GetAddress<glTexImage2DMultisample>("glTexImage2DMultisample");
TexImage3DMultisample = GetAddress<glTexImage3DMultisample>("glTexImage3DMultisample");
GetMultisamplefv = GetAddress<glGetMultisamplefv>("glGetMultisamplefv");
SampleMaski = GetAddress<glSampleMaski>("glSampleMaski");
VERSION_3_2 = VERSION_3_1 && _DrawElementsBaseVertex != null && _DrawRangeElementsBaseVertex != null &&
_DrawElementsInstancedBaseVertex != null && _MultiDrawElementsBaseVertex != null &&
ProvokingVertex != null && FenceSync != null && IsSync != null && DeleteSync != null && ClientWaitSync != null &&
WaitSync != null && GetInteger64v != null && GetSynciv != null && GetInteger64i_v != null && GetBufferParameteri64v != null &&
FramebufferTexture != null && TexImage2DMultisample != null && TexImage3DMultisample != null &&
GetMultisamplefv != null && SampleMaski != null;
}
}
}