2 * Copyright © 2012 Intel Corporation
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
25 * \name dispatch_sanity.cpp
27 * Verify that only set of functions that should be available in a particular
28 * API are available in that API.
30 * The list of expected functions originally came from the functions set by
31 * api_exec_es2.c. This file no longer exists in Mesa (but api_exec_es1.c was
32 * still generated at the time this test was written). It was the generated
33 * file that configured the dispatch table for ES2 contexts. This test
34 * verifies that all of the functions set by the old api_exec_es2.c (with the
35 * recent addition of VAO functions) are set in the dispatch table and
36 * everything else is a NOP.
38 * When adding extensions that add new functions, this test will need to be
39 * modified to expect dispatch functions for the new extension functions.
42 #include <gtest/gtest.h>
46 #include "main/compiler.h"
47 #include "main/api_exec.h"
48 #include "main/context.h"
49 #include "main/remap.h"
50 #include "main/vtxfmt.h"
51 #include "glapi/glapi.h"
52 #include "drivers/common/driverfuncs.h"
54 #include "swrast/swrast.h"
57 #include "swrast_setup/swrast_setup.h"
60 #define GLAPIENTRYP GL_APIENTRYP
63 #include "main/dispatch.h"
71 extern const struct function gl_core_functions_possible
[];
72 extern const struct function gles11_functions_possible
[];
73 extern const struct function gles2_functions_possible
[];
74 extern const struct function gles3_functions_possible
[];
76 class DispatchSanity_test
: public ::testing::Test
{
79 void SetUpCtx(gl_api api
, unsigned int version
);
81 struct gl_config visual
;
82 struct dd_function_table driver_functions
;
83 struct gl_context share_list
;
84 struct gl_context ctx
;
85 _glapi_proc
*nop_table
;
89 DispatchSanity_test::SetUp()
91 memset(&visual
, 0, sizeof(visual
));
92 memset(&driver_functions
, 0, sizeof(driver_functions
));
93 memset(&share_list
, 0, sizeof(share_list
));
94 memset(&ctx
, 0, sizeof(ctx
));
96 _mesa_init_driver_functions(&driver_functions
);
98 const unsigned size
= _glapi_get_dispatch_table_size();
99 nop_table
= (_glapi_proc
*) _glapi_new_nop_table(size
);
103 DispatchSanity_test::SetUpCtx(gl_api api
, unsigned int version
)
105 _mesa_initialize_context(&ctx
,
110 _vbo_CreateContext(&ctx
);
112 ctx
.Version
= version
;
114 _mesa_initialize_dispatch_tables(&ctx
);
115 _mesa_initialize_vbo_vtxfmt(&ctx
);
119 offset_to_proc_name_safe(unsigned offset
)
121 const char *name
= _glapi_get_proc_name(offset
);
122 return name
? name
: "???";
125 /* Scan through the dispatch table and check that all the functions in
126 * _glapi_proc *table exist.
129 validate_functions(struct gl_context
*ctx
, const struct function
*function_table
,
130 const _glapi_proc
*nop_table
)
132 _glapi_proc
*table
= (_glapi_proc
*) ctx
->Exec
;
134 for (unsigned i
= 0; function_table
[i
].name
!= NULL
; i
++) {
135 /* The context version is >= the GL version where the function was
136 * introduced. Therefore, the function cannot be set to the nop
139 const bool cant_be_nop
= ctx
->Version
>= function_table
[i
].Version
;
141 const int offset
= (function_table
[i
].offset
!= -1)
142 ? function_table
[i
].offset
143 : _glapi_get_proc_offset(function_table
[i
].name
);
145 ASSERT_NE(-1, offset
)
146 << "Function: " << function_table
[i
].name
;
148 _glapi_get_proc_offset(function_table
[i
].name
))
149 << "Function: " << function_table
[i
].name
;
151 EXPECT_NE(nop_table
[offset
], table
[offset
])
152 << "Function: " << function_table
[i
].name
153 << " at offset " << offset
;
156 table
[offset
] = nop_table
[offset
];
160 /* Scan through the table and ensure that there is nothing except
161 * nop functions (as set by validate_functions().
164 validate_nops(struct gl_context
*ctx
, const _glapi_proc
*nop_table
)
166 _glapi_proc
*table
= (_glapi_proc
*) ctx
->Exec
;
168 const unsigned size
= _glapi_get_dispatch_table_size();
169 for (unsigned i
= 0; i
< size
; i
++) {
170 EXPECT_EQ(nop_table
[i
], table
[i
])
171 << "i = " << i
<< " (" << offset_to_proc_name_safe(i
) << ")";
175 TEST_F(DispatchSanity_test
, GL31_CORE
)
177 SetUpCtx(API_OPENGL_CORE
, 31);
178 validate_functions(&ctx
, gl_core_functions_possible
, nop_table
);
179 validate_nops(&ctx
, nop_table
);
182 TEST_F(DispatchSanity_test
, GLES11
)
184 SetUpCtx(API_OPENGLES
, 11);
185 validate_functions(&ctx
, gles11_functions_possible
, nop_table
);
186 validate_nops(&ctx
, nop_table
);
189 TEST_F(DispatchSanity_test
, GLES2
)
191 SetUpCtx(API_OPENGLES2
, 20);
192 validate_functions(&ctx
, gles2_functions_possible
, nop_table
);
193 validate_nops(&ctx
, nop_table
);
196 TEST_F(DispatchSanity_test
, GLES3
)
198 SetUpCtx(API_OPENGLES2
, 30);
199 validate_functions(&ctx
, gles2_functions_possible
, nop_table
);
200 validate_functions(&ctx
, gles3_functions_possible
, nop_table
);
201 validate_nops(&ctx
, nop_table
);
204 const struct function gl_core_functions_possible
[] = {
205 { "glCullFace", 10, -1 },
206 { "glFrontFace", 10, -1 },
207 { "glHint", 10, -1 },
208 { "glLineWidth", 10, -1 },
209 { "glPointSize", 10, -1 },
210 { "glPolygonMode", 10, -1 },
211 { "glScissor", 10, -1 },
212 { "glTexParameterf", 10, -1 },
213 { "glTexParameterfv", 10, -1 },
214 { "glTexParameteri", 10, -1 },
215 { "glTexParameteriv", 10, -1 },
216 { "glTexImage1D", 10, -1 },
217 { "glTexImage2D", 10, -1 },
218 { "glDrawBuffer", 10, -1 },
219 { "glClear", 10, -1 },
220 { "glClearColor", 10, -1 },
221 { "glClearStencil", 10, -1 },
222 { "glClearDepth", 10, -1 },
223 { "glStencilMask", 10, -1 },
224 { "glColorMask", 10, -1 },
225 { "glDepthMask", 10, -1 },
226 { "glDisable", 10, -1 },
227 { "glEnable", 10, -1 },
228 { "glFinish", 10, -1 },
229 { "glFlush", 10, -1 },
230 { "glBlendFunc", 10, -1 },
231 { "glLogicOp", 10, -1 },
232 { "glStencilFunc", 10, -1 },
233 { "glStencilOp", 10, -1 },
234 { "glDepthFunc", 10, -1 },
235 { "glPixelStoref", 10, -1 },
236 { "glPixelStorei", 10, -1 },
237 { "glReadBuffer", 10, -1 },
238 { "glReadPixels", 10, -1 },
239 { "glGetBooleanv", 10, -1 },
240 { "glGetDoublev", 10, -1 },
241 { "glGetError", 10, -1 },
242 { "glGetFloatv", 10, -1 },
243 { "glGetIntegerv", 10, -1 },
244 { "glGetString", 10, -1 },
245 { "glGetTexImage", 10, -1 },
246 { "glGetTexParameterfv", 10, -1 },
247 { "glGetTexParameteriv", 10, -1 },
248 { "glGetTexLevelParameterfv", 10, -1 },
249 { "glGetTexLevelParameteriv", 10, -1 },
250 { "glIsEnabled", 10, -1 },
251 { "glDepthRange", 10, -1 },
252 { "glViewport", 10, -1 },
255 { "glDrawArrays", 11, -1 },
256 { "glDrawElements", 11, -1 },
257 { "glGetPointerv", 11, -1 },
258 { "glPolygonOffset", 11, -1 },
259 { "glCopyTexImage1D", 11, -1 },
260 { "glCopyTexImage2D", 11, -1 },
261 { "glCopyTexSubImage1D", 11, -1 },
262 { "glCopyTexSubImage2D", 11, -1 },
263 { "glTexSubImage1D", 11, -1 },
264 { "glTexSubImage2D", 11, -1 },
265 { "glBindTexture", 11, -1 },
266 { "glDeleteTextures", 11, -1 },
267 { "glGenTextures", 11, -1 },
268 { "glIsTexture", 11, -1 },
271 { "glBlendColor", 12, -1 },
272 { "glBlendEquation", 12, -1 },
273 { "glDrawRangeElements", 12, -1 },
274 { "glTexImage3D", 12, -1 },
275 { "glTexSubImage3D", 12, -1 },
276 { "glCopyTexSubImage3D", 12, -1 },
279 { "glActiveTexture", 13, -1 },
280 { "glSampleCoverage", 13, -1 },
281 { "glCompressedTexImage3D", 13, -1 },
282 { "glCompressedTexImage2D", 13, -1 },
283 { "glCompressedTexImage1D", 13, -1 },
284 { "glCompressedTexSubImage3D", 13, -1 },
285 { "glCompressedTexSubImage2D", 13, -1 },
286 { "glCompressedTexSubImage1D", 13, -1 },
287 { "glGetCompressedTexImage", 13, -1 },
290 { "glBlendFuncSeparate", 14, -1 },
291 { "glMultiDrawArrays", 14, -1 },
292 { "glMultiDrawElements", 14, -1 },
293 { "glPointParameterf", 14, -1 },
294 { "glPointParameterfv", 14, -1 },
295 { "glPointParameteri", 14, -1 },
296 { "glPointParameteriv", 14, -1 },
299 { "glGenQueries", 15, -1 },
300 { "glDeleteQueries", 15, -1 },
301 { "glIsQuery", 15, -1 },
302 { "glBeginQuery", 15, -1 },
303 { "glEndQuery", 15, -1 },
304 { "glGetQueryiv", 15, -1 },
305 { "glGetQueryObjectiv", 15, -1 },
306 { "glGetQueryObjectuiv", 15, -1 },
307 { "glBindBuffer", 15, -1 },
308 { "glDeleteBuffers", 15, -1 },
309 { "glGenBuffers", 15, -1 },
310 { "glIsBuffer", 15, -1 },
311 { "glBufferData", 15, -1 },
312 { "glBufferSubData", 15, -1 },
313 { "glGetBufferSubData", 15, -1 },
314 { "glMapBuffer", 15, -1 },
315 { "glUnmapBuffer", 15, -1 },
316 { "glGetBufferParameteriv", 15, -1 },
317 { "glGetBufferPointerv", 15, -1 },
320 { "glBlendEquationSeparate", 20, -1 },
321 { "glDrawBuffers", 20, -1 },
322 { "glStencilOpSeparate", 20, -1 },
323 { "glStencilFuncSeparate", 20, -1 },
324 { "glStencilMaskSeparate", 20, -1 },
325 { "glAttachShader", 20, -1 },
326 { "glBindAttribLocation", 20, -1 },
327 { "glCompileShader", 20, -1 },
328 { "glCreateProgram", 20, -1 },
329 { "glCreateShader", 20, -1 },
330 { "glDeleteProgram", 20, -1 },
331 { "glDeleteShader", 20, -1 },
332 { "glDetachShader", 20, -1 },
333 { "glDisableVertexAttribArray", 20, -1 },
334 { "glEnableVertexAttribArray", 20, -1 },
335 { "glGetActiveAttrib", 20, -1 },
336 { "glGetActiveUniform", 20, -1 },
337 { "glGetAttachedShaders", 20, -1 },
338 { "glGetAttribLocation", 20, -1 },
339 { "glGetProgramiv", 20, -1 },
340 { "glGetProgramInfoLog", 20, -1 },
341 { "glGetShaderiv", 20, -1 },
342 { "glGetShaderInfoLog", 20, -1 },
343 { "glGetShaderSource", 20, -1 },
344 { "glGetUniformLocation", 20, -1 },
345 { "glGetUniformfv", 20, -1 },
346 { "glGetUniformiv", 20, -1 },
347 { "glGetVertexAttribdv", 20, -1 },
348 { "glGetVertexAttribfv", 20, -1 },
349 { "glGetVertexAttribiv", 20, -1 },
350 { "glGetVertexAttribPointerv", 20, -1 },
351 { "glIsProgram", 20, -1 },
352 { "glIsShader", 20, -1 },
353 { "glLinkProgram", 20, -1 },
354 { "glShaderSource", 20, -1 },
355 { "glUseProgram", 20, -1 },
356 { "glUniform1f", 20, -1 },
357 { "glUniform2f", 20, -1 },
358 { "glUniform3f", 20, -1 },
359 { "glUniform4f", 20, -1 },
360 { "glUniform1i", 20, -1 },
361 { "glUniform2i", 20, -1 },
362 { "glUniform3i", 20, -1 },
363 { "glUniform4i", 20, -1 },
364 { "glUniform1fv", 20, -1 },
365 { "glUniform2fv", 20, -1 },
366 { "glUniform3fv", 20, -1 },
367 { "glUniform4fv", 20, -1 },
368 { "glUniform1iv", 20, -1 },
369 { "glUniform2iv", 20, -1 },
370 { "glUniform3iv", 20, -1 },
371 { "glUniform4iv", 20, -1 },
372 { "glUniformMatrix2fv", 20, -1 },
373 { "glUniformMatrix3fv", 20, -1 },
374 { "glUniformMatrix4fv", 20, -1 },
375 { "glValidateProgram", 20, -1 },
376 { "glVertexAttrib1d", 20, -1 },
377 { "glVertexAttrib1dv", 20, -1 },
378 { "glVertexAttrib1f", 20, -1 },
379 { "glVertexAttrib1fv", 20, -1 },
380 { "glVertexAttrib1s", 20, -1 },
381 { "glVertexAttrib1sv", 20, -1 },
382 { "glVertexAttrib2d", 20, -1 },
383 { "glVertexAttrib2dv", 20, -1 },
384 { "glVertexAttrib2f", 20, -1 },
385 { "glVertexAttrib2fv", 20, -1 },
386 { "glVertexAttrib2s", 20, -1 },
387 { "glVertexAttrib2sv", 20, -1 },
388 { "glVertexAttrib3d", 20, -1 },
389 { "glVertexAttrib3dv", 20, -1 },
390 { "glVertexAttrib3f", 20, -1 },
391 { "glVertexAttrib3fv", 20, -1 },
392 { "glVertexAttrib3s", 20, -1 },
393 { "glVertexAttrib3sv", 20, -1 },
394 { "glVertexAttrib4Nbv", 20, -1 },
395 { "glVertexAttrib4Niv", 20, -1 },
396 { "glVertexAttrib4Nsv", 20, -1 },
397 { "glVertexAttrib4Nub", 20, -1 },
398 { "glVertexAttrib4Nubv", 20, -1 },
399 { "glVertexAttrib4Nuiv", 20, -1 },
400 { "glVertexAttrib4Nusv", 20, -1 },
401 { "glVertexAttrib4bv", 20, -1 },
402 { "glVertexAttrib4d", 20, -1 },
403 { "glVertexAttrib4dv", 20, -1 },
404 { "glVertexAttrib4f", 20, -1 },
405 { "glVertexAttrib4fv", 20, -1 },
406 { "glVertexAttrib4iv", 20, -1 },
407 { "glVertexAttrib4s", 20, -1 },
408 { "glVertexAttrib4sv", 20, -1 },
409 { "glVertexAttrib4ubv", 20, -1 },
410 { "glVertexAttrib4uiv", 20, -1 },
411 { "glVertexAttrib4usv", 20, -1 },
412 { "glVertexAttribPointer", 20, -1 },
415 { "glUniformMatrix2x3fv", 21, -1 },
416 { "glUniformMatrix3x2fv", 21, -1 },
417 { "glUniformMatrix2x4fv", 21, -1 },
418 { "glUniformMatrix4x2fv", 21, -1 },
419 { "glUniformMatrix3x4fv", 21, -1 },
420 { "glUniformMatrix4x3fv", 21, -1 },
423 { "glColorMaski", 30, -1 },
424 { "glGetBooleani_v", 30, -1 },
425 { "glGetIntegeri_v", 30, -1 },
426 { "glEnablei", 30, -1 },
427 { "glDisablei", 30, -1 },
428 { "glIsEnabledi", 30, -1 },
429 { "glBeginTransformFeedback", 30, -1 },
430 { "glEndTransformFeedback", 30, -1 },
431 { "glBindBufferRange", 30, -1 },
432 { "glBindBufferBase", 30, -1 },
433 { "glTransformFeedbackVaryings", 30, -1 },
434 { "glGetTransformFeedbackVarying", 30, -1 },
435 { "glClampColor", 30, -1 },
436 { "glBeginConditionalRender", 30, -1 },
437 { "glEndConditionalRender", 30, -1 },
438 { "glVertexAttribIPointer", 30, -1 },
439 { "glGetVertexAttribIiv", 30, -1 },
440 { "glGetVertexAttribIuiv", 30, -1 },
441 { "glVertexAttribI1i", 30, -1 },
442 { "glVertexAttribI2i", 30, -1 },
443 { "glVertexAttribI3i", 30, -1 },
444 { "glVertexAttribI4i", 30, -1 },
445 { "glVertexAttribI1ui", 30, -1 },
446 { "glVertexAttribI2ui", 30, -1 },
447 { "glVertexAttribI3ui", 30, -1 },
448 { "glVertexAttribI4ui", 30, -1 },
449 { "glVertexAttribI1iv", 30, -1 },
450 { "glVertexAttribI2iv", 30, -1 },
451 { "glVertexAttribI3iv", 30, -1 },
452 { "glVertexAttribI4iv", 30, -1 },
453 { "glVertexAttribI1uiv", 30, -1 },
454 { "glVertexAttribI2uiv", 30, -1 },
455 { "glVertexAttribI3uiv", 30, -1 },
456 { "glVertexAttribI4uiv", 30, -1 },
457 { "glVertexAttribI4bv", 30, -1 },
458 { "glVertexAttribI4sv", 30, -1 },
459 { "glVertexAttribI4ubv", 30, -1 },
460 { "glVertexAttribI4usv", 30, -1 },
461 { "glGetUniformuiv", 30, -1 },
462 { "glBindFragDataLocation", 30, -1 },
463 { "glGetFragDataLocation", 30, -1 },
464 { "glUniform1ui", 30, -1 },
465 { "glUniform2ui", 30, -1 },
466 { "glUniform3ui", 30, -1 },
467 { "glUniform4ui", 30, -1 },
468 { "glUniform1uiv", 30, -1 },
469 { "glUniform2uiv", 30, -1 },
470 { "glUniform3uiv", 30, -1 },
471 { "glUniform4uiv", 30, -1 },
472 { "glTexParameterIiv", 30, -1 },
473 { "glTexParameterIuiv", 30, -1 },
474 { "glGetTexParameterIiv", 30, -1 },
475 { "glGetTexParameterIuiv", 30, -1 },
476 { "glClearBufferiv", 30, -1 },
477 { "glClearBufferuiv", 30, -1 },
478 { "glClearBufferfv", 30, -1 },
479 { "glClearBufferfi", 30, -1 },
480 { "glGetStringi", 30, -1 },
483 { "glDrawArraysInstanced", 31, -1 },
484 { "glDrawElementsInstanced", 31, -1 },
485 { "glTexBuffer", 31, -1 },
486 { "glPrimitiveRestartIndex", 31, -1 },
488 /* GL_ARB_shader_objects */
489 { "glDeleteObjectARB", 31, -1 },
490 { "glGetHandleARB", 31, -1 },
491 { "glDetachObjectARB", 31, -1 },
492 { "glCreateShaderObjectARB", 31, -1 },
493 { "glCreateProgramObjectARB", 31, -1 },
494 { "glAttachObjectARB", 31, -1 },
495 { "glGetObjectParameterfvARB", 31, -1 },
496 { "glGetObjectParameterivARB", 31, -1 },
497 { "glGetInfoLogARB", 31, -1 },
498 { "glGetAttachedObjectsARB", 31, -1 },
500 /* GL_ARB_get_program_binary */
501 { "glGetProgramBinary", 30, -1 },
502 { "glProgramBinary", 30, -1 },
503 { "glProgramParameteri", 30, -1 },
505 /* GL_EXT_transform_feedback */
506 { "glBindBufferOffsetEXT", 31, -1 },
508 /* GL_IBM_multimode_draw_arrays */
509 { "glMultiModeDrawArraysIBM", 31, -1 },
510 { "glMultiModeDrawElementsIBM", 31, -1 },
512 /* GL_EXT_depth_bounds_test */
513 { "glDepthBoundsEXT", 31, -1 },
515 /* GL_apple_object_purgeable */
516 { "glObjectPurgeableAPPLE", 31, -1 },
517 { "glObjectUnpurgeableAPPLE", 31, -1 },
518 { "glGetObjectParameterivAPPLE", 31, -1 },
520 /* GL_ARB_instanced_arrays */
521 { "glVertexAttribDivisorARB", 31, -1 },
523 /* GL_NV_texture_barrier */
524 { "glTextureBarrierNV", 31, -1 },
526 /* GL_EXT_texture_integer */
527 { "glClearColorIiEXT", 31, -1 },
528 { "glClearColorIuiEXT", 31, -1 },
530 /* GL_OES_EGL_image */
531 { "glEGLImageTargetRenderbufferStorageOES", 31, -1 },
532 { "glEGLImageTargetTexture2DOES", 31, -1 },
535 { "glGetInteger64i_v", 32, -1 },
536 { "glGetBufferParameteri64v", 32, -1 },
537 { "glFramebufferTexture", 32, -1 },
539 /* GL_ARB_geometry_shader4 */
540 { "glProgramParameteriARB", 32, -1 },
541 { "glFramebufferTextureARB", 32, -1 },
542 { "glFramebufferTextureLayerARB", 32, -1 },
543 { "glFramebufferTextureFaceARB", 32, -1 },
546 { "glVertexAttribDivisor", 33, -1 },
549 { "glMinSampleShading", 40, -1 },
550 { "glBlendEquationi", 40, -1 },
551 { "glBlendEquationSeparatei", 40, -1 },
552 { "glBlendFunci", 40, -1 },
553 { "glBlendFuncSeparatei", 40, -1 },
556 { "glIsRenderbuffer", 43, -1 },
557 { "glBindRenderbuffer", 43, -1 },
558 { "glDeleteRenderbuffers", 43, -1 },
559 { "glGenRenderbuffers", 43, -1 },
560 { "glRenderbufferStorage", 43, -1 },
561 { "glGetRenderbufferParameteriv", 43, -1 },
562 { "glIsFramebuffer", 43, -1 },
563 { "glBindFramebuffer", 43, -1 },
564 { "glDeleteFramebuffers", 43, -1 },
565 { "glGenFramebuffers", 43, -1 },
566 { "glCheckFramebufferStatus", 43, -1 },
567 { "glFramebufferTexture1D", 43, -1 },
568 { "glFramebufferTexture2D", 43, -1 },
569 { "glFramebufferTexture3D", 43, -1 },
570 { "glFramebufferRenderbuffer", 43, -1 },
571 { "glGetFramebufferAttachmentParameteriv", 43, -1 },
572 { "glGenerateMipmap", 43, -1 },
573 { "glBlitFramebuffer", 43, -1 },
574 { "glRenderbufferStorageMultisample", 43, -1 },
575 { "glFramebufferTextureLayer", 43, -1 },
576 { "glMapBufferRange", 43, -1 },
577 { "glFlushMappedBufferRange", 43, -1 },
578 { "glBindVertexArray", 43, -1 },
579 { "glDeleteVertexArrays", 43, -1 },
580 { "glGenVertexArrays", 43, -1 },
581 { "glIsVertexArray", 43, -1 },
582 { "glGetUniformIndices", 43, -1 },
583 { "glGetActiveUniformsiv", 43, -1 },
584 { "glGetActiveUniformName", 43, -1 },
585 { "glGetUniformBlockIndex", 43, -1 },
586 { "glGetActiveUniformBlockiv", 43, -1 },
587 { "glGetActiveUniformBlockName", 43, -1 },
588 { "glUniformBlockBinding", 43, -1 },
589 { "glCopyBufferSubData", 43, -1 },
590 { "glDrawElementsBaseVertex", 43, -1 },
591 { "glDrawRangeElementsBaseVertex", 43, -1 },
592 { "glDrawElementsInstancedBaseVertex", 43, -1 },
593 { "glMultiDrawElementsBaseVertex", 43, -1 },
594 { "glProvokingVertex", 43, -1 },
595 { "glFenceSync", 43, -1 },
596 { "glIsSync", 43, -1 },
597 { "glDeleteSync", 43, -1 },
598 { "glClientWaitSync", 43, -1 },
599 { "glWaitSync", 43, -1 },
600 { "glGetInteger64v", 43, -1 },
601 { "glGetSynciv", 43, -1 },
602 { "glTexImage2DMultisample", 43, -1 },
603 { "glTexImage3DMultisample", 43, -1 },
604 { "glGetMultisamplefv", 43, -1 },
605 { "glSampleMaski", 43, -1 },
606 { "glBlendEquationiARB", 43, -1 },
607 { "glBlendEquationSeparateiARB", 43, -1 },
608 { "glBlendFunciARB", 43, -1 },
609 { "glBlendFuncSeparateiARB", 43, -1 },
610 { "glMinSampleShadingARB", 43, -1 }, // XXX: Add to xml
611 // { "glNamedStringARB", 43, -1 }, // XXX: Add to xml
612 // { "glDeleteNamedStringARB", 43, -1 }, // XXX: Add to xml
613 // { "glCompileShaderIncludeARB", 43, -1 }, // XXX: Add to xml
614 // { "glIsNamedStringARB", 43, -1 }, // XXX: Add to xml
615 // { "glGetNamedStringARB", 43, -1 }, // XXX: Add to xml
616 // { "glGetNamedStringivARB", 43, -1 }, // XXX: Add to xml
617 { "glBindFragDataLocationIndexed", 43, -1 },
618 { "glGetFragDataIndex", 43, -1 },
619 { "glGenSamplers", 43, -1 },
620 { "glDeleteSamplers", 43, -1 },
621 { "glIsSampler", 43, -1 },
622 { "glBindSampler", 43, -1 },
623 { "glSamplerParameteri", 43, -1 },
624 { "glSamplerParameteriv", 43, -1 },
625 { "glSamplerParameterf", 43, -1 },
626 { "glSamplerParameterfv", 43, -1 },
627 { "glSamplerParameterIiv", 43, -1 },
628 { "glSamplerParameterIuiv", 43, -1 },
629 { "glGetSamplerParameteriv", 43, -1 },
630 { "glGetSamplerParameterIiv", 43, -1 },
631 { "glGetSamplerParameterfv", 43, -1 },
632 { "glGetSamplerParameterIuiv", 43, -1 },
633 { "glQueryCounter", 43, -1 },
634 { "glGetQueryObjecti64v", 43, -1 },
635 { "glGetQueryObjectui64v", 43, -1 },
636 { "glVertexP2ui", 43, -1 },
637 { "glVertexP2uiv", 43, -1 },
638 { "glVertexP3ui", 43, -1 },
639 { "glVertexP3uiv", 43, -1 },
640 { "glVertexP4ui", 43, -1 },
641 { "glVertexP4uiv", 43, -1 },
642 { "glTexCoordP1ui", 43, -1 },
643 { "glTexCoordP1uiv", 43, -1 },
644 { "glTexCoordP2ui", 43, -1 },
645 { "glTexCoordP2uiv", 43, -1 },
646 { "glTexCoordP3ui", 43, -1 },
647 { "glTexCoordP3uiv", 43, -1 },
648 { "glTexCoordP4ui", 43, -1 },
649 { "glTexCoordP4uiv", 43, -1 },
650 { "glMultiTexCoordP1ui", 43, -1 },
651 { "glMultiTexCoordP1uiv", 43, -1 },
652 { "glMultiTexCoordP2ui", 43, -1 },
653 { "glMultiTexCoordP2uiv", 43, -1 },
654 { "glMultiTexCoordP3ui", 43, -1 },
655 { "glMultiTexCoordP3uiv", 43, -1 },
656 { "glMultiTexCoordP4ui", 43, -1 },
657 { "glMultiTexCoordP4uiv", 43, -1 },
658 { "glNormalP3ui", 43, -1 },
659 { "glNormalP3uiv", 43, -1 },
660 { "glColorP3ui", 43, -1 },
661 { "glColorP3uiv", 43, -1 },
662 { "glColorP4ui", 43, -1 },
663 { "glColorP4uiv", 43, -1 },
664 { "glSecondaryColorP3ui", 43, -1 },
665 { "glSecondaryColorP3uiv", 43, -1 },
666 { "glVertexAttribP1ui", 43, -1 },
667 { "glVertexAttribP1uiv", 43, -1 },
668 { "glVertexAttribP2ui", 43, -1 },
669 { "glVertexAttribP2uiv", 43, -1 },
670 { "glVertexAttribP3ui", 43, -1 },
671 { "glVertexAttribP3uiv", 43, -1 },
672 { "glVertexAttribP4ui", 43, -1 },
673 { "glVertexAttribP4uiv", 43, -1 },
674 { "glDrawArraysIndirect", 43, -1 },
675 { "glDrawElementsIndirect", 43, -1 },
676 { "glUniform1d", 40, -1 },
677 { "glUniform2d", 40, -1 },
678 { "glUniform3d", 40, -1 },
679 { "glUniform4d", 40, -1 },
680 { "glUniform1dv", 40, -1 },
681 { "glUniform2dv", 40, -1 },
682 { "glUniform3dv", 40, -1 },
683 { "glUniform4dv", 40, -1 },
684 { "glUniformMatrix2dv", 40, -1 },
685 { "glUniformMatrix3dv", 40, -1 },
686 { "glUniformMatrix4dv", 40, -1 },
687 { "glUniformMatrix2x3dv", 40, -1 },
688 { "glUniformMatrix2x4dv", 40, -1 },
689 { "glUniformMatrix3x2dv", 40, -1 },
690 { "glUniformMatrix3x4dv", 40, -1 },
691 { "glUniformMatrix4x2dv", 40, -1 },
692 { "glUniformMatrix4x3dv", 40, -1 },
693 { "glGetUniformdv", 43, -1 },
694 // { "glGetSubroutineUniformLocation", 43, -1 }, // XXX: Add to xml
695 // { "glGetSubroutineIndex", 43, -1 }, // XXX: Add to xml
696 // { "glGetActiveSubroutineUniformiv", 43, -1 }, // XXX: Add to xml
697 // { "glGetActiveSubroutineUniformName", 43, -1 }, // XXX: Add to xml
698 // { "glGetActiveSubroutineName", 43, -1 }, // XXX: Add to xml
699 // { "glUniformSubroutinesuiv", 43, -1 }, // XXX: Add to xml
700 // { "glGetUniformSubroutineuiv", 43, -1 }, // XXX: Add to xml
701 // { "glGetProgramStageiv", 43, -1 }, // XXX: Add to xml
702 // { "glPatchParameteri", 43, -1 }, // XXX: Add to xml
703 // { "glPatchParameterfv", 43, -1 }, // XXX: Add to xml
704 { "glBindTransformFeedback", 43, -1 },
705 { "glDeleteTransformFeedbacks", 43, -1 },
706 { "glGenTransformFeedbacks", 43, -1 },
707 { "glIsTransformFeedback", 43, -1 },
708 { "glPauseTransformFeedback", 43, -1 },
709 { "glResumeTransformFeedback", 43, -1 },
710 { "glDrawTransformFeedback", 43, -1 },
711 { "glDrawTransformFeedbackStream", 43, -1 },
712 { "glBeginQueryIndexed", 43, -1 },
713 { "glEndQueryIndexed", 43, -1 },
714 { "glGetQueryIndexediv", 43, -1 },
715 { "glReleaseShaderCompiler", 43, -1 },
716 { "glShaderBinary", 43, -1 },
717 { "glGetShaderPrecisionFormat", 43, -1 },
718 { "glDepthRangef", 43, -1 },
719 { "glClearDepthf", 43, -1 },
720 { "glGetProgramBinary", 43, -1 },
721 { "glProgramBinary", 43, -1 },
722 { "glProgramParameteri", 43, -1 },
723 { "glUseProgramStages", 43, -1 },
724 { "glActiveShaderProgram", 43, -1 },
725 { "glCreateShaderProgramv", 43, -1 },
726 { "glBindProgramPipeline", 43, -1 },
727 { "glDeleteProgramPipelines", 43, -1 },
728 { "glGenProgramPipelines", 43, -1 },
729 { "glIsProgramPipeline", 43, -1 },
730 { "glGetProgramPipelineiv", 43, -1 },
731 { "glProgramUniform1i", 43, -1 },
732 { "glProgramUniform1iv", 43, -1 },
733 { "glProgramUniform1f", 43, -1 },
734 { "glProgramUniform1fv", 43, -1 },
735 { "glProgramUniform1d", 40, -1 },
736 { "glProgramUniform1dv", 40, -1 },
737 { "glProgramUniform1ui", 43, -1 },
738 { "glProgramUniform1uiv", 43, -1 },
739 { "glProgramUniform2i", 43, -1 },
740 { "glProgramUniform2iv", 43, -1 },
741 { "glProgramUniform2f", 43, -1 },
742 { "glProgramUniform2fv", 43, -1 },
743 { "glProgramUniform2d", 40, -1 },
744 { "glProgramUniform2dv", 40, -1 },
745 { "glProgramUniform2ui", 43, -1 },
746 { "glProgramUniform2uiv", 43, -1 },
747 { "glProgramUniform3i", 43, -1 },
748 { "glProgramUniform3iv", 43, -1 },
749 { "glProgramUniform3f", 43, -1 },
750 { "glProgramUniform3fv", 43, -1 },
751 { "glProgramUniform3d", 40, -1 },
752 { "glProgramUniform3dv", 40, -1 },
753 { "glProgramUniform3ui", 43, -1 },
754 { "glProgramUniform3uiv", 43, -1 },
755 { "glProgramUniform4i", 43, -1 },
756 { "glProgramUniform4iv", 43, -1 },
757 { "glProgramUniform4f", 43, -1 },
758 { "glProgramUniform4fv", 43, -1 },
759 { "glProgramUniform4d", 40, -1 },
760 { "glProgramUniform4dv", 40, -1 },
761 { "glProgramUniform4ui", 43, -1 },
762 { "glProgramUniform4uiv", 43, -1 },
763 { "glProgramUniformMatrix2fv", 43, -1 },
764 { "glProgramUniformMatrix3fv", 43, -1 },
765 { "glProgramUniformMatrix4fv", 43, -1 },
766 { "glProgramUniformMatrix2dv", 40, -1 },
767 { "glProgramUniformMatrix3dv", 40, -1 },
768 { "glProgramUniformMatrix4dv", 40, -1 },
769 { "glProgramUniformMatrix2x3fv", 43, -1 },
770 { "glProgramUniformMatrix3x2fv", 43, -1 },
771 { "glProgramUniformMatrix2x4fv", 43, -1 },
772 { "glProgramUniformMatrix4x2fv", 43, -1 },
773 { "glProgramUniformMatrix3x4fv", 43, -1 },
774 { "glProgramUniformMatrix4x3fv", 43, -1 },
775 { "glProgramUniformMatrix2x3dv", 40, -1 },
776 { "glProgramUniformMatrix3x2dv", 40, -1 },
777 { "glProgramUniformMatrix2x4dv", 40, -1 },
778 { "glProgramUniformMatrix4x2dv", 40, -1 },
779 { "glProgramUniformMatrix3x4dv", 40, -1 },
780 { "glProgramUniformMatrix4x3dv", 40, -1 },
781 { "glValidateProgramPipeline", 43, -1 },
782 { "glGetProgramPipelineInfoLog", 43, -1 },
783 { "glVertexAttribL1d", 41, -1 },
784 { "glVertexAttribL2d", 41, -1 },
785 { "glVertexAttribL3d", 41, -1 },
786 { "glVertexAttribL4d", 41, -1 },
787 { "glVertexAttribL1dv", 41, -1 },
788 { "glVertexAttribL2dv", 41, -1 },
789 { "glVertexAttribL3dv", 41, -1 },
790 { "glVertexAttribL4dv", 41, -1 },
791 { "glVertexAttribLPointer", 41, -1 },
792 { "glGetVertexAttribLdv", 41, -1 },
793 { "glViewportArrayv", 43, -1 },
794 { "glViewportIndexedf", 43, -1 },
795 { "glViewportIndexedfv", 43, -1 },
796 { "glScissorArrayv", 43, -1 },
797 { "glScissorIndexed", 43, -1 },
798 { "glScissorIndexedv", 43, -1 },
799 { "glDepthRangeArrayv", 43, -1 },
800 { "glDepthRangeIndexed", 43, -1 },
801 { "glGetFloati_v", 43, -1 },
802 { "glGetDoublei_v", 43, -1 },
803 // { "glCreateSyncFromCLeventARB", 43, -1 }, // XXX: Add to xml
804 { "glGetGraphicsResetStatusARB", 43, -1 },
805 { "glGetnMapdvARB", 43, -1 },
806 { "glGetnMapfvARB", 43, -1 },
807 { "glGetnMapivARB", 43, -1 },
808 { "glGetnPixelMapfvARB", 43, -1 },
809 { "glGetnPixelMapuivARB", 43, -1 },
810 { "glGetnPixelMapusvARB", 43, -1 },
811 { "glGetnPolygonStippleARB", 43, -1 },
812 { "glGetnColorTableARB", 43, -1 },
813 { "glGetnConvolutionFilterARB", 43, -1 },
814 { "glGetnSeparableFilterARB", 43, -1 },
815 { "glGetnHistogramARB", 43, -1 },
816 { "glGetnMinmaxARB", 43, -1 },
817 { "glGetnTexImageARB", 43, -1 },
818 { "glReadnPixelsARB", 43, -1 },
819 { "glGetnCompressedTexImageARB", 43, -1 },
820 { "glGetnUniformfvARB", 43, -1 },
821 { "glGetnUniformivARB", 43, -1 },
822 { "glGetnUniformuivARB", 43, -1 },
823 { "glGetnUniformdvARB", 43, -1 },
824 { "glDrawArraysInstancedBaseInstance", 43, -1 },
825 { "glDrawElementsInstancedBaseInstance", 43, -1 },
826 { "glDrawElementsInstancedBaseVertexBaseInstance", 43, -1 },
827 { "glDrawTransformFeedbackInstanced", 43, -1 },
828 { "glDrawTransformFeedbackStreamInstanced", 43, -1 },
829 // { "glGetInternalformativ", 43, -1 }, // XXX: Add to xml
830 { "glGetActiveAtomicCounterBufferiv", 43, -1 },
831 { "glBindImageTexture", 43, -1 },
832 { "glMemoryBarrier", 43, -1 },
833 { "glTexStorage1D", 43, -1 },
834 { "glTexStorage2D", 43, -1 },
835 { "glTexStorage3D", 43, -1 },
836 { "glTextureStorage1DEXT", 43, -1 },
837 { "glTextureStorage2DEXT", 43, -1 },
838 { "glTextureStorage3DEXT", 43, -1 },
839 { "glClearBufferData", 43, -1 },
840 { "glClearBufferSubData", 43, -1 },
841 // { "glClearNamedBufferDataEXT", 43, -1 }, // XXX: Add to xml
842 // { "glClearNamedBufferSubDataEXT", 43, -1 }, // XXX: Add to xml
843 { "glDispatchCompute", 43, -1 },
844 { "glDispatchComputeIndirect", 43, -1 },
845 { "glCopyImageSubData", 43, -1 },
846 { "glTextureView", 43, -1 },
847 { "glBindVertexBuffer", 43, -1 },
848 { "glVertexAttribFormat", 43, -1 },
849 { "glVertexAttribIFormat", 43, -1 },
850 { "glVertexAttribLFormat", 43, -1 },
851 { "glVertexAttribBinding", 43, -1 },
852 { "glVertexBindingDivisor", 43, -1 },
853 // { "glVertexArrayBindVertexBufferEXT", 43, -1 }, // XXX: Add to xml
854 // { "glVertexArrayVertexAttribFormatEXT", 43, -1 }, // XXX: Add to xml
855 // { "glVertexArrayVertexAttribIFormatEXT", 43, -1 }, // XXX: Add to xml
856 // { "glVertexArrayVertexAttribLFormatEXT", 43, -1 }, // XXX: Add to xml
857 // { "glVertexArrayVertexAttribBindingEXT", 43, -1 }, // XXX: Add to xml
858 // { "glVertexArrayVertexBindingDivisorEXT", 43, -1 }, // XXX: Add to xml
859 // { "glFramebufferParameteri", 43, -1 }, // XXX: Add to xml
860 // { "glGetFramebufferParameteriv", 43, -1 }, // XXX: Add to xml
861 // { "glNamedFramebufferParameteriEXT", 43, -1 }, // XXX: Add to xml
862 // { "glGetNamedFramebufferParameterivEXT", 43, -1 }, // XXX: Add to xml
863 // { "glGetInternalformati64v", 43, -1 }, // XXX: Add to xml
864 { "glInvalidateTexSubImage", 43, -1 },
865 { "glInvalidateTexImage", 43, -1 },
866 { "glInvalidateBufferSubData", 43, -1 },
867 { "glInvalidateBufferData", 43, -1 },
868 { "glInvalidateFramebuffer", 43, -1 },
869 { "glInvalidateSubFramebuffer", 43, -1 },
870 { "glMultiDrawArraysIndirect", 43, -1 },
871 { "glMultiDrawElementsIndirect", 43, -1 },
872 { "glGetProgramInterfaceiv", 43, -1 },
873 { "glGetProgramResourceIndex", 43, -1 },
874 { "glGetProgramResourceName", 43, -1 },
875 { "glGetProgramResourceiv", 43, -1 },
876 { "glGetProgramResourceLocation", 43, -1 },
877 { "glGetProgramResourceLocationIndex", 43, -1 },
878 // { "glShaderStorageBlockBinding", 43, -1 }, // XXX: Add to xml
879 { "glTexBufferRange", 43, -1 },
880 // { "glTextureBufferRangeEXT", 43, -1 }, // XXX: Add to xml
881 { "glTexStorage2DMultisample", 43, -1 },
882 { "glTexStorage3DMultisample", 43, -1 },
883 // { "glTextureStorage2DMultisampleEXT", 43, -1 }, // XXX: Add to xml
884 // { "glTextureStorage3DMultisampleEXT", 43, -1 }, // XXX: Add to xml
886 /* GL_ARB_internalformat_query */
887 { "glGetInternalformativ", 30, -1 },
889 /* GL_ARB_multi_bind */
890 { "glBindBuffersBase", 44, -1 },
891 { "glBindBuffersRange", 44, -1 },
892 { "glBindTextures", 44, -1 },
893 { "glBindSamplers", 44, -1 },
894 { "glBindImageTextures", 44, -1 },
895 { "glBindVertexBuffers", 44, -1 },
897 /* GL_KHR_debug/GL_ARB_debug_output */
898 { "glPushDebugGroup", 11, -1 },
899 { "glPopDebugGroup", 11, -1 },
900 { "glDebugMessageCallback", 11, -1 },
901 { "glDebugMessageControl", 11, -1 },
902 { "glDebugMessageInsert", 11, -1 },
903 { "glGetDebugMessageLog", 11, -1 },
904 { "glGetObjectLabel", 11, -1 },
905 { "glGetObjectPtrLabel", 11, -1 },
906 { "glObjectLabel", 11, -1 },
907 { "glObjectPtrLabel", 11, -1 },
908 /* aliased versions checked above */
909 //{ "glDebugMessageControlARB", 11, -1 },
910 //{ "glDebugMessageInsertARB", 11, -1 },
911 //{ "glDebugMessageCallbackARB", 11, -1 },
912 //{ "glGetDebugMessageLogARB", 11, -1 },
914 /* GL_AMD_performance_monitor */
915 { "glGetPerfMonitorGroupsAMD", 11, -1 },
916 { "glGetPerfMonitorCountersAMD", 11, -1 },
917 { "glGetPerfMonitorGroupStringAMD", 11, -1 },
918 { "glGetPerfMonitorCounterStringAMD", 11, -1 },
919 { "glGetPerfMonitorCounterInfoAMD", 11, -1 },
920 { "glGenPerfMonitorsAMD", 11, -1 },
921 { "glDeletePerfMonitorsAMD", 11, -1 },
922 { "glSelectPerfMonitorCountersAMD", 11, -1 },
923 { "glBeginPerfMonitorAMD", 11, -1 },
924 { "glEndPerfMonitorAMD", 11, -1 },
925 { "glGetPerfMonitorCounterDataAMD", 11, -1 },
927 /* GL_INTEL_performance_query */
928 { "glGetFirstPerfQueryIdINTEL", 30, -1 },
929 { "glGetNextPerfQueryIdINTEL", 30, -1 },
930 { "glGetPerfQueryIdByNameINTEL", 30, -1 },
931 { "glGetPerfQueryInfoINTEL", 30, -1 },
932 { "glGetPerfCounterInfoINTEL", 30, -1 },
933 { "glCreatePerfQueryINTEL", 30, -1 },
934 { "glDeletePerfQueryINTEL", 30, -1 },
935 { "glBeginPerfQueryINTEL", 30, -1 },
936 { "glEndPerfQueryINTEL", 30, -1 },
937 { "glGetPerfQueryDataINTEL", 30, -1 },
939 /* GL_NV_vdpau_interop */
940 { "glVDPAUInitNV", 11, -1 },
941 { "glVDPAUFiniNV", 11, -1 },
942 { "glVDPAURegisterVideoSurfaceNV", 11, -1 },
943 { "glVDPAURegisterOutputSurfaceNV", 11, -1 },
944 { "glVDPAUIsSurfaceNV", 11, -1 },
945 { "glVDPAUUnregisterSurfaceNV", 11, -1 },
946 { "glVDPAUGetSurfaceivNV", 11, -1 },
947 { "glVDPAUSurfaceAccessNV", 11, -1 },
948 { "glVDPAUMapSurfacesNV", 11, -1 },
949 { "glVDPAUUnmapSurfacesNV", 11, -1 },
951 /* GL_ARB_buffer_storage */
952 { "glBufferStorage", 43, -1 },
954 /* GL_ARB_clear_texture */
955 { "glClearTexImage", 13, -1 },
956 { "glClearTexSubImage", 13, -1 },
958 /* GL_ARB_clip_control */
959 { "glClipControl", 45, -1 },
961 /* GL_ARB_direct_state_access */
962 { "glCreateTransformFeedbacks", 45, -1 },
963 { "glTransformFeedbackBufferBase", 45, -1 },
964 { "glTransformFeedbackBufferRange", 45, -1 },
965 { "glGetTransformFeedbackiv", 45, -1 },
966 { "glGetTransformFeedbacki_v", 45, -1 },
967 { "glGetTransformFeedbacki64_v", 45, -1 },
968 { "glCreateBuffers", 45, -1 },
969 { "glNamedBufferStorage", 45, -1 },
970 { "glNamedBufferData", 45, -1 },
971 { "glNamedBufferSubData", 45, -1 },
972 { "glCopyNamedBufferSubData", 45, -1 },
973 { "glClearNamedBufferData", 45, -1 },
974 { "glClearNamedBufferSubData", 45, -1 },
975 { "glMapNamedBuffer", 45, -1 },
976 { "glMapNamedBufferRange", 45, -1 },
977 { "glUnmapNamedBuffer", 45, -1 },
978 { "glFlushMappedNamedBufferRange", 45, -1 },
979 { "glGetNamedBufferParameteriv", 45, -1 },
980 { "glGetNamedBufferParameteri64v", 45, -1 },
981 { "glGetNamedBufferPointerv", 45, -1 },
982 { "glGetNamedBufferSubData", 45, -1 },
983 { "glCreateRenderbuffers", 45, -1 },
984 { "glNamedRenderbufferStorage", 45, -1 },
985 { "glNamedRenderbufferStorageMultisample", 45, -1 },
986 { "glGetNamedRenderbufferParameteriv", 45, -1 },
987 { "glCreateTextures", 45, -1 },
988 { "glTextureStorage1D", 45, -1 },
989 { "glTextureStorage2D", 45, -1 },
990 { "glTextureStorage3D", 45, -1 },
991 { "glTextureSubImage1D", 45, -1 },
992 { "glTextureSubImage2D", 45, -1 },
993 { "glTextureSubImage3D", 45, -1 },
994 { "glBindTextureUnit", 45, -1 },
995 { "glTextureParameterf", 45, -1 },
996 { "glTextureParameterfv", 45, -1 },
997 { "glTextureParameteri", 45, -1 },
998 { "glTextureParameterIiv", 45, -1 },
999 { "glTextureParameterIuiv", 45, -1 },
1000 { "glTextureParameteriv", 45, -1 },
1001 { "glGetTextureLevelParameterfv", 45, -1 },
1002 { "glGetTextureLevelParameteriv", 45, -1 },
1003 { "glGetTextureParameterfv", 45, -1 },
1004 { "glGetTextureParameterIiv", 45, -1 },
1005 { "glGetTextureParameterIuiv", 45, -1 },
1006 { "glGetTextureParameteriv", 45, -1 },
1007 { "glCopyTextureSubImage1D", 45, -1 },
1008 { "glCopyTextureSubImage2D", 45, -1 },
1009 { "glCopyTextureSubImage3D", 45, -1 },
1010 { "glGetTextureImage", 45, -1 },
1011 { "glGetCompressedTextureImage", 45, -1 },
1012 { "glCompressedTextureSubImage1D", 45, -1 },
1013 { "glCompressedTextureSubImage2D", 45, -1 },
1014 { "glCompressedTextureSubImage3D", 45, -1 },
1015 { "glGenerateTextureMipmap", 45, -1 },
1016 { "glTextureStorage2DMultisample", 45, -1 },
1017 { "glTextureStorage3DMultisample", 45, -1 },
1018 { "glTextureBuffer", 45, -1 },
1019 { "glTextureBufferRange", 45, -1 },
1020 { "glCreateVertexArrays", 45, -1 },
1021 { "glDisableVertexArrayAttrib", 45, -1 },
1022 { "glEnableVertexArrayAttrib", 45, -1 },
1023 { "glVertexArrayElementBuffer", 45, -1 },
1024 { "glVertexArrayVertexBuffer", 45, -1 },
1025 { "glVertexArrayVertexBuffers", 45, -1 },
1026 { "glVertexArrayAttribFormat", 45, -1 },
1027 { "glVertexArrayAttribIFormat", 45, -1 },
1028 { "glVertexArrayAttribLFormat", 45, -1 },
1029 { "glVertexArrayAttribBinding", 45, -1 },
1030 { "glVertexArrayBindingDivisor", 45, -1 },
1031 { "glGetVertexArrayiv", 45, -1 },
1032 { "glCreateSamplers", 45, -1 },
1033 { "glCreateProgramPipelines", 45, -1 },
1034 { "glCreateQueries", 45, -1 },
1035 { "glGetQueryBufferObjectiv", 45, -1 },
1036 { "glGetQueryBufferObjectuiv", 45, -1 },
1037 { "glGetQueryBufferObjecti64v", 45, -1 },
1038 { "glGetQueryBufferObjectui64v", 45, -1 },
1040 /* GL_EXT_polygon_offset_clamp */
1041 { "glPolygonOffsetClampEXT", 11, -1 },
1046 const struct function gles11_functions_possible
[] = {
1047 { "glActiveTexture", 11, _gloffset_ActiveTexture
},
1048 { "glAlphaFunc", 11, _gloffset_AlphaFunc
},
1049 { "glAlphaFuncx", 11, -1 },
1050 { "glBindBuffer", 11, -1 },
1051 { "glBindFramebufferOES", 11, -1 },
1052 { "glBindRenderbufferOES", 11, -1 },
1053 { "glBindTexture", 11, _gloffset_BindTexture
},
1054 { "glBlendEquationOES", 11, _gloffset_BlendEquation
},
1055 { "glBlendEquationSeparateOES", 11, -1 },
1056 { "glBlendFunc", 11, _gloffset_BlendFunc
},
1057 { "glBlendFuncSeparateOES", 11, -1 },
1058 { "glBufferData", 11, -1 },
1059 { "glBufferSubData", 11, -1 },
1060 { "glCheckFramebufferStatusOES", 11, -1 },
1061 { "glClear", 11, _gloffset_Clear
},
1062 { "glClearColor", 11, _gloffset_ClearColor
},
1063 { "glClearColorx", 11, -1 },
1064 { "glClearDepthf", 11, -1 },
1065 { "glClearDepthx", 11, -1 },
1066 { "glClearStencil", 11, _gloffset_ClearStencil
},
1067 { "glClientActiveTexture", 11, _gloffset_ClientActiveTexture
},
1068 { "glClipPlanef", 11, -1 },
1069 { "glClipPlanex", 11, -1 },
1070 { "glColor4f", 11, _gloffset_Color4f
},
1071 { "glColor4ub", 11, _gloffset_Color4ub
},
1072 { "glColor4x", 11, -1 },
1073 { "glColorMask", 11, _gloffset_ColorMask
},
1074 { "glColorPointer", 11, _gloffset_ColorPointer
},
1075 { "glCompressedTexImage2D", 11, -1 },
1076 { "glCompressedTexSubImage2D", 11, -1 },
1077 { "glCopyTexImage2D", 11, _gloffset_CopyTexImage2D
},
1078 { "glCopyTexSubImage2D", 11, _gloffset_CopyTexSubImage2D
},
1079 { "glCullFace", 11, _gloffset_CullFace
},
1080 { "glDeleteBuffers", 11, -1 },
1081 { "glDeleteFramebuffersOES", 11, -1 },
1082 { "glDeleteRenderbuffersOES", 11, -1 },
1083 { "glDeleteTextures", 11, _gloffset_DeleteTextures
},
1084 { "glDepthFunc", 11, _gloffset_DepthFunc
},
1085 { "glDepthMask", 11, _gloffset_DepthMask
},
1086 { "glDepthRangef", 11, -1 },
1087 { "glDepthRangex", 11, -1 },
1088 { "glDisable", 11, _gloffset_Disable
},
1089 { "glDiscardFramebufferEXT", 11, -1 },
1090 { "glDisableClientState", 11, _gloffset_DisableClientState
},
1091 { "glDrawArrays", 11, _gloffset_DrawArrays
},
1092 { "glDrawElements", 11, _gloffset_DrawElements
},
1093 { "glDrawTexfOES", 11, -1 },
1094 { "glDrawTexfvOES", 11, -1 },
1095 { "glDrawTexiOES", 11, -1 },
1096 { "glDrawTexivOES", 11, -1 },
1097 { "glDrawTexsOES", 11, -1 },
1098 { "glDrawTexsvOES", 11, -1 },
1099 { "glDrawTexxOES", 11, -1 },
1100 { "glDrawTexxvOES", 11, -1 },
1101 { "glEGLImageTargetRenderbufferStorageOES", 11, -1 },
1102 { "glEGLImageTargetTexture2DOES", 11, -1 },
1103 { "glEnable", 11, _gloffset_Enable
},
1104 { "glEnableClientState", 11, _gloffset_EnableClientState
},
1105 { "glFinish", 11, _gloffset_Finish
},
1106 { "glFlush", 11, _gloffset_Flush
},
1107 { "glFlushMappedBufferRangeEXT", 11, -1 },
1108 { "glFogf", 11, _gloffset_Fogf
},
1109 { "glFogfv", 11, _gloffset_Fogfv
},
1110 { "glFogx", 11, -1 },
1111 { "glFogxv", 11, -1 },
1112 { "glFramebufferRenderbufferOES", 11, -1 },
1113 { "glFramebufferTexture2DOES", 11, -1 },
1114 { "glFrontFace", 11, _gloffset_FrontFace
},
1115 { "glFrustumf", 11, -1 },
1116 { "glFrustumx", 11, -1 },
1117 { "glGenBuffers", 11, -1 },
1118 { "glGenFramebuffersOES", 11, -1 },
1119 { "glGenRenderbuffersOES", 11, -1 },
1120 { "glGenTextures", 11, _gloffset_GenTextures
},
1121 { "glGenerateMipmapOES", 11, -1 },
1122 { "glGetBooleanv", 11, _gloffset_GetBooleanv
},
1123 { "glGetBufferParameteriv", 11, -1 },
1124 { "glGetBufferPointervOES", 11, -1 },
1125 { "glGetClipPlanef", 11, -1 },
1126 { "glGetClipPlanex", 11, -1 },
1127 { "glGetError", 11, _gloffset_GetError
},
1128 { "glGetFixedv", 11, -1 },
1129 { "glGetFloatv", 11, _gloffset_GetFloatv
},
1130 { "glGetFramebufferAttachmentParameterivOES", 11, -1 },
1131 { "glGetIntegerv", 11, _gloffset_GetIntegerv
},
1132 { "glGetLightfv", 11, _gloffset_GetLightfv
},
1133 { "glGetLightxv", 11, -1 },
1134 { "glGetMaterialfv", 11, _gloffset_GetMaterialfv
},
1135 { "glGetMaterialxv", 11, -1 },
1136 { "glGetPointerv", 11, _gloffset_GetPointerv
},
1137 { "glGetRenderbufferParameterivOES", 11, -1 },
1138 { "glGetString", 11, _gloffset_GetString
},
1139 { "glGetTexEnvfv", 11, _gloffset_GetTexEnvfv
},
1140 { "glGetTexEnviv", 11, _gloffset_GetTexEnviv
},
1141 { "glGetTexEnvxv", 11, -1 },
1142 { "glGetTexGenfvOES", 11, _gloffset_GetTexGenfv
},
1143 { "glGetTexGenivOES", 11, _gloffset_GetTexGeniv
},
1144 { "glGetTexGenxvOES", 11, -1 },
1145 { "glGetTexParameterfv", 11, _gloffset_GetTexParameterfv
},
1146 { "glGetTexParameteriv", 11, _gloffset_GetTexParameteriv
},
1147 { "glGetTexParameterxv", 11, -1 },
1148 { "glHint", 11, _gloffset_Hint
},
1149 { "glIsBuffer", 11, -1 },
1150 { "glIsEnabled", 11, _gloffset_IsEnabled
},
1151 { "glIsFramebufferOES", 11, -1 },
1152 { "glIsRenderbufferOES", 11, -1 },
1153 { "glIsTexture", 11, _gloffset_IsTexture
},
1154 { "glLightModelf", 11, _gloffset_LightModelf
},
1155 { "glLightModelfv", 11, _gloffset_LightModelfv
},
1156 { "glLightModelx", 11, -1 },
1157 { "glLightModelxv", 11, -1 },
1158 { "glLightf", 11, _gloffset_Lightf
},
1159 { "glLightfv", 11, _gloffset_Lightfv
},
1160 { "glLightx", 11, -1 },
1161 { "glLightxv", 11, -1 },
1162 { "glLineWidth", 11, _gloffset_LineWidth
},
1163 { "glLineWidthx", 11, -1 },
1164 { "glLoadIdentity", 11, _gloffset_LoadIdentity
},
1165 { "glLoadMatrixf", 11, _gloffset_LoadMatrixf
},
1166 { "glLoadMatrixx", 11, -1 },
1167 { "glLogicOp", 11, _gloffset_LogicOp
},
1168 { "glMapBufferOES", 11, -1 },
1169 { "glMapBufferRangeEXT", 11, -1 },
1170 { "glMaterialf", 11, _gloffset_Materialf
},
1171 { "glMaterialfv", 11, _gloffset_Materialfv
},
1172 { "glMaterialx", 11, -1 },
1173 { "glMaterialxv", 11, -1 },
1174 { "glMatrixMode", 11, _gloffset_MatrixMode
},
1175 { "glMultMatrixf", 11, _gloffset_MultMatrixf
},
1176 { "glMultMatrixx", 11, -1 },
1177 { "glMultiDrawArraysEXT", 11, -1 },
1178 { "glMultiDrawElementsEXT", 11, -1 },
1179 { "glMultiTexCoord4f", 11, _gloffset_MultiTexCoord4fARB
},
1180 { "glMultiTexCoord4x", 11, -1 },
1181 { "glNormal3f", 11, _gloffset_Normal3f
},
1182 { "glNormal3x", 11, -1 },
1183 { "glNormalPointer", 11, _gloffset_NormalPointer
},
1184 { "glOrthof", 11, -1 },
1185 { "glOrthox", 11, -1 },
1186 { "glPixelStorei", 11, _gloffset_PixelStorei
},
1187 { "glPointParameterf", 11, -1 },
1188 { "glPointParameterfv", 11, -1 },
1189 { "glPointParameterx", 11, -1 },
1190 { "glPointParameterxv", 11, -1 },
1191 { "glPointSize", 11, _gloffset_PointSize
},
1192 { "glPointSizePointerOES", 11, -1 },
1193 { "glPointSizex", 11, -1 },
1194 { "glPolygonOffset", 11, _gloffset_PolygonOffset
},
1195 { "glPolygonOffsetx", 11, -1 },
1196 { "glPopMatrix", 11, _gloffset_PopMatrix
},
1197 { "glPushMatrix", 11, _gloffset_PushMatrix
},
1198 { "glQueryMatrixxOES", 11, -1 },
1199 { "glReadPixels", 11, _gloffset_ReadPixels
},
1200 { "glRenderbufferStorageOES", 11, -1 },
1201 { "glRotatef", 11, _gloffset_Rotatef
},
1202 { "glRotatex", 11, -1 },
1203 { "glSampleCoverage", 11, -1 },
1204 { "glSampleCoveragex", 11, -1 },
1205 { "glScalef", 11, _gloffset_Scalef
},
1206 { "glScalex", 11, -1 },
1207 { "glScissor", 11, _gloffset_Scissor
},
1208 { "glShadeModel", 11, _gloffset_ShadeModel
},
1209 { "glStencilFunc", 11, _gloffset_StencilFunc
},
1210 { "glStencilMask", 11, _gloffset_StencilMask
},
1211 { "glStencilOp", 11, _gloffset_StencilOp
},
1212 { "glTexCoordPointer", 11, _gloffset_TexCoordPointer
},
1213 { "glTexEnvf", 11, _gloffset_TexEnvf
},
1214 { "glTexEnvfv", 11, _gloffset_TexEnvfv
},
1215 { "glTexEnvi", 11, _gloffset_TexEnvi
},
1216 { "glTexEnviv", 11, _gloffset_TexEnviv
},
1217 { "glTexEnvx", 11, -1 },
1218 { "glTexEnvxv", 11, -1 },
1219 { "glTexGenfOES", 11, _gloffset_TexGenf
},
1220 { "glTexGenfvOES", 11, _gloffset_TexGenfv
},
1221 { "glTexGeniOES", 11, _gloffset_TexGeni
},
1222 { "glTexGenivOES", 11, _gloffset_TexGeniv
},
1223 { "glTexGenxOES", 11, -1 },
1224 { "glTexGenxvOES", 11, -1 },
1225 { "glTexImage2D", 11, _gloffset_TexImage2D
},
1226 { "glTexParameterf", 11, _gloffset_TexParameterf
},
1227 { "glTexParameterfv", 11, _gloffset_TexParameterfv
},
1228 { "glTexParameteri", 11, _gloffset_TexParameteri
},
1229 { "glTexParameteriv", 11, _gloffset_TexParameteriv
},
1230 { "glTexParameterx", 11, -1 },
1231 { "glTexParameterxv", 11, -1 },
1232 { "glTexSubImage2D", 11, _gloffset_TexSubImage2D
},
1233 { "glTranslatef", 11, _gloffset_Translatef
},
1234 { "glTranslatex", 11, -1 },
1235 { "glUnmapBufferOES", 11, -1 },
1236 { "glVertexPointer", 11, _gloffset_VertexPointer
},
1237 { "glViewport", 11, _gloffset_Viewport
},
1241 const struct function gles2_functions_possible
[] = {
1242 { "glActiveTexture", 20, _gloffset_ActiveTexture
},
1243 { "glAttachShader", 20, -1 },
1244 { "glBindAttribLocation", 20, -1 },
1245 { "glBindBuffer", 20, -1 },
1246 { "glBindFramebuffer", 20, -1 },
1247 { "glBindRenderbuffer", 20, -1 },
1248 { "glBindTexture", 20, _gloffset_BindTexture
},
1249 { "glBindVertexArrayOES", 20, -1 },
1250 { "glBlendColor", 20, _gloffset_BlendColor
},
1251 { "glBlendEquation", 20, _gloffset_BlendEquation
},
1252 { "glBlendEquationSeparate", 20, -1 },
1253 { "glBlendFunc", 20, _gloffset_BlendFunc
},
1254 { "glBlendFuncSeparate", 20, -1 },
1255 { "glBufferData", 20, -1 },
1256 { "glBufferSubData", 20, -1 },
1257 { "glCheckFramebufferStatus", 20, -1 },
1258 { "glClear", 20, _gloffset_Clear
},
1259 { "glClearColor", 20, _gloffset_ClearColor
},
1260 { "glClearDepthf", 20, -1 },
1261 { "glClearStencil", 20, _gloffset_ClearStencil
},
1262 { "glColorMask", 20, _gloffset_ColorMask
},
1263 { "glCompileShader", 20, -1 },
1264 { "glCompressedTexImage2D", 20, -1 },
1265 { "glCompressedTexImage3DOES", 20, -1 },
1266 { "glCompressedTexSubImage2D", 20, -1 },
1267 { "glCompressedTexSubImage3DOES", 20, -1 },
1268 { "glCopyTexImage2D", 20, _gloffset_CopyTexImage2D
},
1269 { "glCopyTexSubImage2D", 20, _gloffset_CopyTexSubImage2D
},
1270 { "glCopyTexSubImage3DOES", 20, _gloffset_CopyTexSubImage3D
},
1271 { "glCreateProgram", 20, -1 },
1272 { "glCreateShader", 20, -1 },
1273 { "glCullFace", 20, _gloffset_CullFace
},
1274 { "glDeleteBuffers", 20, -1 },
1275 { "glDeleteFramebuffers", 20, -1 },
1276 { "glDeleteProgram", 20, -1 },
1277 { "glDeleteRenderbuffers", 20, -1 },
1278 { "glDeleteShader", 20, -1 },
1279 { "glDeleteTextures", 20, _gloffset_DeleteTextures
},
1280 { "glDeleteVertexArraysOES", 20, -1 },
1281 { "glDepthFunc", 20, _gloffset_DepthFunc
},
1282 { "glDepthMask", 20, _gloffset_DepthMask
},
1283 { "glDepthRangef", 20, -1 },
1284 { "glDetachShader", 20, -1 },
1285 { "glDisable", 20, _gloffset_Disable
},
1286 { "glDiscardFramebufferEXT", 20, -1 },
1287 { "glDisableVertexAttribArray", 20, -1 },
1288 { "glDrawArrays", 20, _gloffset_DrawArrays
},
1289 { "glDrawBuffersNV", 20, -1 },
1290 { "glDrawElements", 20, _gloffset_DrawElements
},
1291 { "glEGLImageTargetRenderbufferStorageOES", 20, -1 },
1292 { "glEGLImageTargetTexture2DOES", 20, -1 },
1293 { "glEnable", 20, _gloffset_Enable
},
1294 { "glEnableVertexAttribArray", 20, -1 },
1295 { "glFinish", 20, _gloffset_Finish
},
1296 { "glFlush", 20, _gloffset_Flush
},
1297 { "glFlushMappedBufferRangeEXT", 20, -1 },
1298 { "glFramebufferRenderbuffer", 20, -1 },
1299 { "glFramebufferTexture2D", 20, -1 },
1300 { "glFramebufferTexture3DOES", 20, -1 },
1301 { "glFrontFace", 20, _gloffset_FrontFace
},
1302 { "glGenBuffers", 20, -1 },
1303 { "glGenFramebuffers", 20, -1 },
1304 { "glGenRenderbuffers", 20, -1 },
1305 { "glGenTextures", 20, _gloffset_GenTextures
},
1306 { "glGenVertexArraysOES", 20, -1 },
1307 { "glGenerateMipmap", 20, -1 },
1308 { "glGetActiveAttrib", 20, -1 },
1309 { "glGetActiveUniform", 20, -1 },
1310 { "glGetAttachedShaders", 20, -1 },
1311 { "glGetAttribLocation", 20, -1 },
1312 { "glGetBooleanv", 20, _gloffset_GetBooleanv
},
1313 { "glGetBufferParameteriv", 20, -1 },
1314 { "glGetBufferPointervOES", 20, -1 },
1315 { "glGetError", 20, _gloffset_GetError
},
1316 { "glGetFloatv", 20, _gloffset_GetFloatv
},
1317 { "glGetFramebufferAttachmentParameteriv", 20, -1 },
1318 { "glGetIntegerv", 20, _gloffset_GetIntegerv
},
1319 { "glGetProgramInfoLog", 20, -1 },
1320 { "glGetProgramiv", 20, -1 },
1321 { "glGetRenderbufferParameteriv", 20, -1 },
1322 { "glGetShaderInfoLog", 20, -1 },
1323 { "glGetShaderPrecisionFormat", 20, -1 },
1324 { "glGetShaderSource", 20, -1 },
1325 { "glGetShaderiv", 20, -1 },
1326 { "glGetString", 20, _gloffset_GetString
},
1327 { "glGetTexParameterfv", 20, _gloffset_GetTexParameterfv
},
1328 { "glGetTexParameteriv", 20, _gloffset_GetTexParameteriv
},
1329 { "glGetUniformLocation", 20, -1 },
1330 { "glGetUniformfv", 20, -1 },
1331 { "glGetUniformiv", 20, -1 },
1332 { "glGetVertexAttribPointerv", 20, -1 },
1333 { "glGetVertexAttribfv", 20, -1 },
1334 { "glGetVertexAttribiv", 20, -1 },
1335 { "glHint", 20, _gloffset_Hint
},
1336 { "glIsBuffer", 20, -1 },
1337 { "glIsEnabled", 20, _gloffset_IsEnabled
},
1338 { "glIsFramebuffer", 20, -1 },
1339 { "glIsProgram", 20, -1 },
1340 { "glIsRenderbuffer", 20, -1 },
1341 { "glIsShader", 20, -1 },
1342 { "glIsTexture", 20, _gloffset_IsTexture
},
1343 { "glIsVertexArrayOES", 20, -1 },
1344 { "glLineWidth", 20, _gloffset_LineWidth
},
1345 { "glLinkProgram", 20, -1 },
1346 { "glMapBufferOES", 20, -1 },
1347 { "glMapBufferRangeEXT", 20, -1 },
1348 { "glMultiDrawArraysEXT", 20, -1 },
1349 { "glMultiDrawElementsEXT", 20, -1 },
1350 { "glPixelStorei", 20, _gloffset_PixelStorei
},
1351 { "glPolygonOffset", 20, _gloffset_PolygonOffset
},
1352 { "glReadBufferNV", 20, _gloffset_ReadBuffer
},
1353 { "glReadPixels", 20, _gloffset_ReadPixels
},
1354 { "glReleaseShaderCompiler", 20, -1 },
1355 { "glRenderbufferStorage", 20, -1 },
1356 { "glSampleCoverage", 20, -1 },
1357 { "glScissor", 20, _gloffset_Scissor
},
1358 { "glShaderBinary", 20, -1 },
1359 { "glShaderSource", 20, -1 },
1360 { "glStencilFunc", 20, _gloffset_StencilFunc
},
1361 { "glStencilFuncSeparate", 20, -1 },
1362 { "glStencilMask", 20, _gloffset_StencilMask
},
1363 { "glStencilMaskSeparate", 20, -1 },
1364 { "glStencilOp", 20, _gloffset_StencilOp
},
1365 { "glStencilOpSeparate", 20, -1 },
1366 { "glTexImage2D", 20, _gloffset_TexImage2D
},
1367 { "glTexImage3DOES", 20, _gloffset_TexImage3D
},
1368 { "glTexParameterf", 20, _gloffset_TexParameterf
},
1369 { "glTexParameterfv", 20, _gloffset_TexParameterfv
},
1370 { "glTexParameteri", 20, _gloffset_TexParameteri
},
1371 { "glTexParameteriv", 20, _gloffset_TexParameteriv
},
1372 { "glTexSubImage2D", 20, _gloffset_TexSubImage2D
},
1373 { "glTexSubImage3DOES", 20, _gloffset_TexSubImage3D
},
1374 { "glUniform1f", 20, -1 },
1375 { "glUniform1fv", 20, -1 },
1376 { "glUniform1i", 20, -1 },
1377 { "glUniform1iv", 20, -1 },
1378 { "glUniform2f", 20, -1 },
1379 { "glUniform2fv", 20, -1 },
1380 { "glUniform2i", 20, -1 },
1381 { "glUniform2iv", 20, -1 },
1382 { "glUniform3f", 20, -1 },
1383 { "glUniform3fv", 20, -1 },
1384 { "glUniform3i", 20, -1 },
1385 { "glUniform3iv", 20, -1 },
1386 { "glUniform4f", 20, -1 },
1387 { "glUniform4fv", 20, -1 },
1388 { "glUniform4i", 20, -1 },
1389 { "glUniform4iv", 20, -1 },
1390 { "glUniformMatrix2fv", 20, -1 },
1391 { "glUniformMatrix3fv", 20, -1 },
1392 { "glUniformMatrix4fv", 20, -1 },
1393 { "glUnmapBufferOES", 20, -1 },
1394 { "glUseProgram", 20, -1 },
1395 { "glValidateProgram", 20, -1 },
1396 { "glVertexAttrib1f", 20, -1 },
1397 { "glVertexAttrib1fv", 20, -1 },
1398 { "glVertexAttrib2f", 20, -1 },
1399 { "glVertexAttrib2fv", 20, -1 },
1400 { "glVertexAttrib3f", 20, -1 },
1401 { "glVertexAttrib3fv", 20, -1 },
1402 { "glVertexAttrib4f", 20, -1 },
1403 { "glVertexAttrib4fv", 20, -1 },
1404 { "glVertexAttribPointer", 20, -1 },
1405 { "glViewport", 20, _gloffset_Viewport
},
1407 /* GL_OES_get_program_binary - Also part of OpenGL ES 3.0. */
1408 { "glGetProgramBinaryOES", 20, -1 },
1409 { "glProgramBinaryOES", 20, -1 },
1411 /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
1412 { "glProgramParameteriEXT", 20, -1 },
1413 { "glUseProgramStagesEXT", 20, -1 },
1414 { "glActiveShaderProgramEXT", 20, -1 },
1415 { "glCreateShaderProgramvEXT", 20, -1 },
1416 { "glBindProgramPipelineEXT", 20, -1 },
1417 { "glDeleteProgramPipelinesEXT", 20, -1 },
1418 { "glGenProgramPipelinesEXT", 20, -1 },
1419 { "glIsProgramPipelineEXT", 20, -1 },
1420 { "glGetProgramPipelineivEXT", 20, -1 },
1421 { "glProgramUniform1iEXT", 20, -1 },
1422 { "glProgramUniform1ivEXT", 20, -1 },
1423 { "glProgramUniform1fEXT", 20, -1 },
1424 { "glProgramUniform1fvEXT", 20, -1 },
1425 { "glProgramUniform2iEXT", 20, -1 },
1426 { "glProgramUniform2ivEXT", 20, -1 },
1427 { "glProgramUniform2fEXT", 20, -1 },
1428 { "glProgramUniform2fvEXT", 20, -1 },
1429 { "glProgramUniform3iEXT", 20, -1 },
1430 { "glProgramUniform3ivEXT", 20, -1 },
1431 { "glProgramUniform3fEXT", 20, -1 },
1432 { "glProgramUniform3fvEXT", 20, -1 },
1433 { "glProgramUniform4iEXT", 20, -1 },
1434 { "glProgramUniform4ivEXT", 20, -1 },
1435 { "glProgramUniform4fEXT", 20, -1 },
1436 { "glProgramUniform4fvEXT", 20, -1 },
1437 { "glProgramUniformMatrix2fvEXT", 20, -1 },
1438 { "glProgramUniformMatrix3fvEXT", 20, -1 },
1439 { "glProgramUniformMatrix4fvEXT", 20, -1 },
1440 { "glProgramUniformMatrix2x3fvEXT", 20, -1 },
1441 { "glProgramUniformMatrix3x2fvEXT", 20, -1 },
1442 { "glProgramUniformMatrix2x4fvEXT", 20, -1 },
1443 { "glProgramUniformMatrix4x2fvEXT", 20, -1 },
1444 { "glProgramUniformMatrix3x4fvEXT", 20, -1 },
1445 { "glProgramUniformMatrix4x3fvEXT", 20, -1 },
1446 { "glValidateProgramPipelineEXT", 20, -1 },
1447 { "glGetProgramPipelineInfoLogEXT", 20, -1 },
1449 /* GL_INTEL_performance_query */
1450 { "glGetFirstPerfQueryIdINTEL", 20, -1 },
1451 { "glGetNextPerfQueryIdINTEL", 20, -1 },
1452 { "glGetPerfQueryIdByNameINTEL", 20, -1 },
1453 { "glGetPerfQueryInfoINTEL", 20, -1 },
1454 { "glGetPerfCounterInfoINTEL", 20, -1 },
1455 { "glCreatePerfQueryINTEL", 20, -1 },
1456 { "glDeletePerfQueryINTEL", 20, -1 },
1457 { "glBeginPerfQueryINTEL", 20, -1 },
1458 { "glEndPerfQueryINTEL", 20, -1 },
1459 { "glGetPerfQueryDataINTEL", 20, -1 },
1464 const struct function gles3_functions_possible
[] = {
1465 { "glBeginQuery", 30, -1 },
1466 { "glBeginTransformFeedback", 30, -1 },
1467 { "glBindBufferBase", 30, -1 },
1468 { "glBindBufferRange", 30, -1 },
1469 { "glBindSampler", 30, -1 },
1470 { "glBindTransformFeedback", 30, -1 },
1471 // We check for the aliased -OES version in GLES 2
1472 // { "glBindVertexArray", 30, -1 },
1473 { "glBlitFramebuffer", 30, -1 },
1474 { "glClearBufferfi", 30, -1 },
1475 { "glClearBufferfv", 30, -1 },
1476 { "glClearBufferiv", 30, -1 },
1477 { "glClearBufferuiv", 30, -1 },
1478 { "glClientWaitSync", 30, -1 },
1479 // We check for the aliased -OES version in GLES 2
1480 // { "glCompressedTexImage3D", 30, -1 },
1481 // We check for the aliased -OES version in GLES 2
1482 // { "glCompressedTexSubImage3D", 30, -1 },
1483 { "glCopyBufferSubData", 30, -1 },
1484 // We check for the aliased -OES version in GLES 2
1485 // { "glCopyTexSubImage3D", 30, -1 },
1486 { "glDeleteQueries", 30, -1 },
1487 { "glDeleteSamplers", 30, -1 },
1488 { "glDeleteSync", 30, -1 },
1489 { "glDeleteTransformFeedbacks", 30, -1 },
1490 // We check for the aliased -OES version in GLES 2
1491 // { "glDeleteVertexArrays", 30, -1 },
1492 { "glDrawArraysInstanced", 30, -1 },
1493 // We check for the aliased -NV version in GLES 2
1494 // { "glDrawBuffers", 30, -1 },
1495 { "glDrawElementsInstanced", 30, -1 },
1496 { "glDrawRangeElements", 30, -1 },
1497 { "glEndQuery", 30, -1 },
1498 { "glEndTransformFeedback", 30, -1 },
1499 { "glFenceSync", 30, -1 },
1500 // We check for the aliased -EXT version in GLES 2
1501 // { "glFlushMappedBufferRange", 30, -1 },
1502 { "glFramebufferTextureLayer", 30, -1 },
1503 { "glGenQueries", 30, -1 },
1504 { "glGenSamplers", 30, -1 },
1505 { "glGenTransformFeedbacks", 30, -1 },
1506 // We check for the aliased -OES version in GLES 2
1507 // { "glGenVertexArrays", 30, -1 },
1508 { "glGetActiveUniformBlockiv", 30, -1 },
1509 { "glGetActiveUniformBlockName", 30, -1 },
1510 { "glGetActiveUniformsiv", 30, -1 },
1511 { "glGetBufferParameteri64v", 30, -1 },
1512 // We check for the aliased -OES version in GLES 2
1513 // { "glGetBufferPointerv", 30, -1 },
1514 { "glGetFragDataLocation", 30, -1 },
1515 { "glGetInteger64i_v", 30, -1 },
1516 { "glGetInteger64v", 30, -1 },
1517 { "glGetIntegeri_v", 30, -1 },
1518 { "glGetInternalformativ", 30, -1 },
1519 // glGetProgramBinary aliases glGetProgramBinaryOES in GLES 2
1520 { "glGetQueryiv", 30, -1 },
1521 { "glGetQueryObjectuiv", 30, -1 },
1522 { "glGetSamplerParameterfv", 30, -1 },
1523 { "glGetSamplerParameteriv", 30, -1 },
1524 { "glGetStringi", 30, -1 },
1525 { "glGetSynciv", 30, -1 },
1526 { "glGetTransformFeedbackVarying", 30, -1 },
1527 { "glGetUniformBlockIndex", 30, -1 },
1528 { "glGetUniformIndices", 30, -1 },
1529 { "glGetUniformuiv", 30, -1 },
1530 { "glGetVertexAttribIiv", 30, -1 },
1531 { "glGetVertexAttribIuiv", 30, -1 },
1532 { "glInvalidateFramebuffer", 30, -1 },
1533 { "glInvalidateSubFramebuffer", 30, -1 },
1534 { "glIsQuery", 30, -1 },
1535 { "glIsSampler", 30, -1 },
1536 { "glIsSync", 30, -1 },
1537 { "glIsTransformFeedback", 30, -1 },
1538 // We check for the aliased -OES version in GLES 2
1539 // { "glIsVertexArray", 30, -1 },
1540 // We check for the aliased -EXT version in GLES 2
1541 // { "glMapBufferRange", 30, -1 },
1542 { "glPauseTransformFeedback", 30, -1 },
1543 // glProgramBinary aliases glProgramBinaryOES in GLES 2
1544 // glProgramParameteri aliases glProgramParameteriEXT in GLES 2
1545 // We check for the aliased -NV version in GLES 2
1546 // { "glReadBuffer", 30, -1 },
1547 { "glRenderbufferStorageMultisample", 30, -1 },
1548 { "glResumeTransformFeedback", 30, -1 },
1549 { "glSamplerParameterf", 30, -1 },
1550 { "glSamplerParameterfv", 30, -1 },
1551 { "glSamplerParameteri", 30, -1 },
1552 { "glSamplerParameteriv", 30, -1 },
1553 // We check for the aliased -OES version in GLES 2
1554 // { "glTexImage3D", 30, -1 },
1555 { "glTexStorage2D", 30, -1 },
1556 { "glTexStorage3D", 30, -1 },
1557 // We check for the aliased -OES version in GLES 2
1558 // { "glTexSubImage3D", 30, -1 },
1559 { "glTransformFeedbackVaryings", 30, -1 },
1560 { "glUniform1ui", 30, -1 },
1561 { "glUniform1uiv", 30, -1 },
1562 { "glUniform2ui", 30, -1 },
1563 { "glUniform2uiv", 30, -1 },
1564 { "glUniform3ui", 30, -1 },
1565 { "glUniform3uiv", 30, -1 },
1566 { "glUniform4ui", 30, -1 },
1567 { "glUniform4uiv", 30, -1 },
1568 { "glUniformBlockBinding", 30, -1 },
1569 { "glUniformMatrix2x3fv", 30, -1 },
1570 { "glUniformMatrix2x4fv", 30, -1 },
1571 { "glUniformMatrix3x2fv", 30, -1 },
1572 { "glUniformMatrix3x4fv", 30, -1 },
1573 { "glUniformMatrix4x2fv", 30, -1 },
1574 { "glUniformMatrix4x3fv", 30, -1 },
1575 // We check for the aliased -OES version in GLES 2
1576 // { "glUnmapBuffer", 30, -1 },
1577 { "glVertexAttribDivisor", 30, -1 },
1578 { "glVertexAttribI4i", 30, -1 },
1579 { "glVertexAttribI4iv", 30, -1 },
1580 { "glVertexAttribI4ui", 30, -1 },
1581 { "glVertexAttribI4uiv", 30, -1 },
1582 { "glVertexAttribIPointer", 30, -1 },
1583 { "glWaitSync", 30, -1 },
1585 /* GL_EXT_separate_shader_objects - Also part of OpenGL ES 3.1. */
1586 { "glProgramUniform1uiEXT", 30, -1 },
1587 { "glProgramUniform1uivEXT", 30, -1 },
1588 { "glProgramUniform2uiEXT", 30, -1 },
1589 { "glProgramUniform2uivEXT", 30, -1 },
1590 { "glProgramUniform3uiEXT", 30, -1 },
1591 { "glProgramUniform3uivEXT", 30, -1 },
1592 { "glProgramUniform4uiEXT", 30, -1 },
1593 { "glProgramUniform4uivEXT", 30, -1 },