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.
43 #include "main/mfeatures.h"
46 #include <gtest/gtest.h>
51 #include "main/compiler.h"
52 #include "main/api_exec.h"
53 #include "main/context.h"
54 #include "main/remap.h"
55 #include "main/vtxfmt.h"
56 #include "glapi/glapi.h"
57 #include "drivers/common/driverfuncs.h"
59 #include "swrast/swrast.h"
62 #include "swrast_setup/swrast_setup.h"
65 #define GLAPIENTRYP GL_APIENTRYP
68 #include "main/dispatch.h"
77 extern const struct function gl_core_functions_possible
[];
78 extern const struct function gles11_functions_possible
[];
79 extern const struct function gles2_functions_possible
[];
80 extern const struct function gles3_functions_possible
[];
82 class DispatchSanity_test
: public ::testing::Test
{
85 void SetUpCtx(gl_api api
, unsigned int version
);
87 struct gl_config visual
;
88 struct dd_function_table driver_functions
;
89 struct gl_context share_list
;
90 struct gl_context ctx
;
94 DispatchSanity_test::SetUp()
96 memset(&visual
, 0, sizeof(visual
));
97 memset(&driver_functions
, 0, sizeof(driver_functions
));
98 memset(&share_list
, 0, sizeof(share_list
));
99 memset(&ctx
, 0, sizeof(ctx
));
101 _mesa_init_driver_functions(&driver_functions
);
105 DispatchSanity_test::SetUpCtx(gl_api api
, unsigned int version
)
107 _mesa_initialize_context(&ctx
,
112 _vbo_CreateContext(&ctx
);
114 ctx
.Version
= version
;
116 _mesa_initialize_exec_table(&ctx
);
117 _mesa_initialize_vbo_vtxfmt(&ctx
);
121 offset_to_proc_name_safe(unsigned offset
)
123 const char *name
= _glapi_get_proc_name(offset
);
124 return name
? name
: "???";
127 /* Scan through the dispatch table and check that all the functions in
128 * _glapi_proc *table exist. When found, set their pointers in the table
129 * to _mesa_generic_nop. */
131 validate_functions(struct gl_context
*ctx
, const struct function
*function_table
)
133 _glapi_proc
*table
= (_glapi_proc
*) ctx
->Exec
;
135 for (unsigned i
= 0; function_table
[i
].name
!= NULL
; i
++) {
136 /* The context version is >= the GL version where the
137 function was introduced. Therefore, the function cannot
138 be set to the nop function.
140 bool cant_be_nop
= ctx
->Version
>= function_table
[i
].Version
;
142 const int offset
= (function_table
[i
].offset
!= -1)
143 ? function_table
[i
].offset
144 : _glapi_get_proc_offset(function_table
[i
].name
);
146 ASSERT_NE(-1, offset
)
147 << "Function: " << function_table
[i
].name
;
149 _glapi_get_proc_offset(function_table
[i
].name
))
150 << "Function: " << function_table
[i
].name
;
152 EXPECT_NE((_glapi_proc
) _mesa_generic_nop
, table
[offset
])
153 << "Function: " << function_table
[i
].name
154 << " at offset " << offset
;
157 table
[offset
] = (_glapi_proc
) _mesa_generic_nop
;
161 /* Scan through the table and ensure that there is nothing except
162 * _mesa_generic_nop (as set by validate_functions(). */
164 validate_nops(struct gl_context
*ctx
)
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((_glapi_proc
) _mesa_generic_nop
, 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
);
182 TEST_F(DispatchSanity_test
, GLES11
)
184 SetUpCtx(API_OPENGLES
, 11);
185 validate_functions(&ctx
, gles11_functions_possible
);
189 TEST_F(DispatchSanity_test
, GLES2
)
191 SetUpCtx(API_OPENGLES2
, 20);
192 validate_functions(&ctx
, gles2_functions_possible
);
196 TEST_F(DispatchSanity_test
, GLES3
)
198 SetUpCtx(API_OPENGLES2
, 30);
199 validate_functions(&ctx
, gles2_functions_possible
);
200 validate_functions(&ctx
, gles3_functions_possible
);
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_EXT_transform_feedback */
501 { "glBindBufferOffsetEXT", 31, -1 },
503 /* GL_MESA_resize_buffers */
504 { "glResizeBuffersMESA", 31, -1 },
506 /* GL_IBM_multimode_draw_arrays */
507 { "glMultiModeDrawArraysIBM", 31, -1 },
508 { "glMultiModeDrawElementsIBM", 31, -1 },
510 /* GL_EXT_depth_bounds_test */
511 { "glDepthBoundsEXT", 31, -1 },
513 /* GL_apple_object_purgeable */
514 { "glObjectPurgeableAPPLE", 31, -1 },
515 { "glObjectUnpurgeableAPPLE", 31, -1 },
516 { "glGetObjectParameterivAPPLE", 31, -1 },
518 /* GL_ARB_instanced_arrays */
519 { "glVertexAttribDivisorARB", 31, -1 },
521 /* GL_NV_texture_barrier */
522 { "glTextureBarrierNV", 31, -1 },
524 /* GL_EXT_texture_integer */
525 { "glClearColorIiEXT", 31, -1 },
526 { "glClearColorIuiEXT", 31, -1 },
528 /* GL_OES_EGL_image */
529 { "glEGLImageTargetRenderbufferStorageOES", 31, -1 },
530 { "glEGLImageTargetTexture2DOES", 31, -1 },
533 { "glGetInteger64i_v", 32, -1 },
534 { "glGetBufferParameteri64v", 32, -1 },
535 { "glFramebufferTexture", 32, -1 },
537 /* GL_ARB_geometry_shader4 */
538 { "glProgramParameteriARB", 32, -1 },
539 { "glFramebufferTextureARB", 32, -1 },
540 { "glFramebufferTextureLayerARB", 32, -1 },
541 { "glFramebufferTextureFaceARB", 32, -1 },
544 { "glVertexAttribDivisor", 33, -1 },
547 // { "glMinSampleShading", 40, -1 }, // XXX: Add to xml
548 // { "glBlendEquationi", 40, -1 }, // XXX: Add to xml
549 // { "glBlendEquationSeparatei", 40, -1 }, // XXX: Add to xml
550 // { "glBlendFunci", 40, -1 }, // XXX: Add to xml
551 // { "glBlendFuncSeparatei", 40, -1 }, // XXX: Add to xml
554 { "glIsRenderbuffer", 43, -1 },
555 { "glBindRenderbuffer", 43, -1 },
556 { "glDeleteRenderbuffers", 43, -1 },
557 { "glGenRenderbuffers", 43, -1 },
558 { "glRenderbufferStorage", 43, -1 },
559 { "glGetRenderbufferParameteriv", 43, -1 },
560 { "glIsFramebuffer", 43, -1 },
561 { "glBindFramebuffer", 43, -1 },
562 { "glDeleteFramebuffers", 43, -1 },
563 { "glGenFramebuffers", 43, -1 },
564 { "glCheckFramebufferStatus", 43, -1 },
565 { "glFramebufferTexture1D", 43, -1 },
566 { "glFramebufferTexture2D", 43, -1 },
567 { "glFramebufferTexture3D", 43, -1 },
568 { "glFramebufferRenderbuffer", 43, -1 },
569 { "glGetFramebufferAttachmentParameteriv", 43, -1 },
570 { "glGenerateMipmap", 43, -1 },
571 { "glBlitFramebuffer", 43, -1 },
572 { "glRenderbufferStorageMultisample", 43, -1 },
573 { "glFramebufferTextureLayer", 43, -1 },
574 { "glMapBufferRange", 43, -1 },
575 { "glFlushMappedBufferRange", 43, -1 },
576 { "glBindVertexArray", 43, -1 },
577 { "glDeleteVertexArrays", 43, -1 },
578 { "glGenVertexArrays", 43, -1 },
579 { "glIsVertexArray", 43, -1 },
580 { "glGetUniformIndices", 43, -1 },
581 { "glGetActiveUniformsiv", 43, -1 },
582 { "glGetActiveUniformName", 43, -1 },
583 { "glGetUniformBlockIndex", 43, -1 },
584 { "glGetActiveUniformBlockiv", 43, -1 },
585 { "glGetActiveUniformBlockName", 43, -1 },
586 { "glUniformBlockBinding", 43, -1 },
587 { "glCopyBufferSubData", 43, -1 },
588 { "glDrawElementsBaseVertex", 43, -1 },
589 { "glDrawRangeElementsBaseVertex", 43, -1 },
590 { "glDrawElementsInstancedBaseVertex", 43, -1 },
591 { "glMultiDrawElementsBaseVertex", 43, -1 },
592 { "glProvokingVertex", 43, -1 },
593 { "glFenceSync", 43, -1 },
594 { "glIsSync", 43, -1 },
595 { "glDeleteSync", 43, -1 },
596 { "glClientWaitSync", 43, -1 },
597 { "glWaitSync", 43, -1 },
598 { "glGetInteger64v", 43, -1 },
599 { "glGetSynciv", 43, -1 },
600 // { "glTexImage2DMultisample", 43, -1 }, // XXX: Add to xml
601 // { "glTexImage3DMultisample", 43, -1 }, // XXX: Add to xml
602 // { "glGetMultisamplefv", 43, -1 }, // XXX: Add to xml
603 // { "glSampleMaski", 43, -1 }, // XXX: Add to xml
604 { "glBlendEquationiARB", 43, -1 },
605 { "glBlendEquationSeparateiARB", 43, -1 },
606 { "glBlendFunciARB", 43, -1 },
607 { "glBlendFuncSeparateiARB", 43, -1 },
608 // { "glMinSampleShadingARB", 43, -1 }, // XXX: Add to xml
609 // { "glNamedStringARB", 43, -1 }, // XXX: Add to xml
610 // { "glDeleteNamedStringARB", 43, -1 }, // XXX: Add to xml
611 // { "glCompileShaderIncludeARB", 43, -1 }, // XXX: Add to xml
612 // { "glIsNamedStringARB", 43, -1 }, // XXX: Add to xml
613 // { "glGetNamedStringARB", 43, -1 }, // XXX: Add to xml
614 // { "glGetNamedStringivARB", 43, -1 }, // XXX: Add to xml
615 { "glBindFragDataLocationIndexed", 43, -1 },
616 { "glGetFragDataIndex", 43, -1 },
617 { "glGenSamplers", 43, -1 },
618 { "glDeleteSamplers", 43, -1 },
619 { "glIsSampler", 43, -1 },
620 { "glBindSampler", 43, -1 },
621 { "glSamplerParameteri", 43, -1 },
622 { "glSamplerParameteriv", 43, -1 },
623 { "glSamplerParameterf", 43, -1 },
624 { "glSamplerParameterfv", 43, -1 },
625 { "glSamplerParameterIiv", 43, -1 },
626 { "glSamplerParameterIuiv", 43, -1 },
627 { "glGetSamplerParameteriv", 43, -1 },
628 { "glGetSamplerParameterIiv", 43, -1 },
629 { "glGetSamplerParameterfv", 43, -1 },
630 { "glGetSamplerParameterIuiv", 43, -1 },
631 { "glQueryCounter", 43, -1 },
632 { "glGetQueryObjecti64v", 43, -1 },
633 { "glGetQueryObjectui64v", 43, -1 },
634 { "glVertexP2ui", 43, -1 },
635 { "glVertexP2uiv", 43, -1 },
636 { "glVertexP3ui", 43, -1 },
637 { "glVertexP3uiv", 43, -1 },
638 { "glVertexP4ui", 43, -1 },
639 { "glVertexP4uiv", 43, -1 },
640 { "glTexCoordP1ui", 43, -1 },
641 { "glTexCoordP1uiv", 43, -1 },
642 { "glTexCoordP2ui", 43, -1 },
643 { "glTexCoordP2uiv", 43, -1 },
644 { "glTexCoordP3ui", 43, -1 },
645 { "glTexCoordP3uiv", 43, -1 },
646 { "glTexCoordP4ui", 43, -1 },
647 { "glTexCoordP4uiv", 43, -1 },
648 { "glMultiTexCoordP1ui", 43, -1 },
649 { "glMultiTexCoordP1uiv", 43, -1 },
650 { "glMultiTexCoordP2ui", 43, -1 },
651 { "glMultiTexCoordP2uiv", 43, -1 },
652 { "glMultiTexCoordP3ui", 43, -1 },
653 { "glMultiTexCoordP3uiv", 43, -1 },
654 { "glMultiTexCoordP4ui", 43, -1 },
655 { "glMultiTexCoordP4uiv", 43, -1 },
656 { "glNormalP3ui", 43, -1 },
657 { "glNormalP3uiv", 43, -1 },
658 { "glColorP3ui", 43, -1 },
659 { "glColorP3uiv", 43, -1 },
660 { "glColorP4ui", 43, -1 },
661 { "glColorP4uiv", 43, -1 },
662 { "glSecondaryColorP3ui", 43, -1 },
663 { "glSecondaryColorP3uiv", 43, -1 },
664 { "glVertexAttribP1ui", 43, -1 },
665 { "glVertexAttribP1uiv", 43, -1 },
666 { "glVertexAttribP2ui", 43, -1 },
667 { "glVertexAttribP2uiv", 43, -1 },
668 { "glVertexAttribP3ui", 43, -1 },
669 { "glVertexAttribP3uiv", 43, -1 },
670 { "glVertexAttribP4ui", 43, -1 },
671 { "glVertexAttribP4uiv", 43, -1 },
672 // { "glDrawArraysIndirect", 43, -1 }, // XXX: Add to xml
673 // { "glDrawElementsIndirect", 43, -1 }, // XXX: Add to xml
674 // { "glUniform1d", 43, -1 }, // XXX: Add to xml
675 // { "glUniform2d", 43, -1 }, // XXX: Add to xml
676 // { "glUniform3d", 43, -1 }, // XXX: Add to xml
677 // { "glUniform4d", 43, -1 }, // XXX: Add to xml
678 // { "glUniform1dv", 43, -1 }, // XXX: Add to xml
679 // { "glUniform2dv", 43, -1 }, // XXX: Add to xml
680 // { "glUniform3dv", 43, -1 }, // XXX: Add to xml
681 // { "glUniform4dv", 43, -1 }, // XXX: Add to xml
682 // { "glUniformMatrix2dv", 43, -1 }, // XXX: Add to xml
683 // { "glUniformMatrix3dv", 43, -1 }, // XXX: Add to xml
684 // { "glUniformMatrix4dv", 43, -1 }, // XXX: Add to xml
685 // { "glUniformMatrix2x3dv", 43, -1 }, // XXX: Add to xml
686 // { "glUniformMatrix2x4dv", 43, -1 }, // XXX: Add to xml
687 // { "glUniformMatrix3x2dv", 43, -1 }, // XXX: Add to xml
688 // { "glUniformMatrix3x4dv", 43, -1 }, // XXX: Add to xml
689 // { "glUniformMatrix4x2dv", 43, -1 }, // XXX: Add to xml
690 // { "glUniformMatrix4x3dv", 43, -1 }, // XXX: Add to xml
691 // { "glGetUniformdv", 43, -1 }, // XXX: Add to xml
692 // { "glGetSubroutineUniformLocation", 43, -1 }, // XXX: Add to xml
693 // { "glGetSubroutineIndex", 43, -1 }, // XXX: Add to xml
694 // { "glGetActiveSubroutineUniformiv", 43, -1 }, // XXX: Add to xml
695 // { "glGetActiveSubroutineUniformName", 43, -1 }, // XXX: Add to xml
696 // { "glGetActiveSubroutineName", 43, -1 }, // XXX: Add to xml
697 // { "glUniformSubroutinesuiv", 43, -1 }, // XXX: Add to xml
698 // { "glGetUniformSubroutineuiv", 43, -1 }, // XXX: Add to xml
699 // { "glGetProgramStageiv", 43, -1 }, // XXX: Add to xml
700 // { "glPatchParameteri", 43, -1 }, // XXX: Add to xml
701 // { "glPatchParameterfv", 43, -1 }, // XXX: Add to xml
702 { "glBindTransformFeedback", 43, -1 },
703 { "glDeleteTransformFeedbacks", 43, -1 },
704 { "glGenTransformFeedbacks", 43, -1 },
705 { "glIsTransformFeedback", 43, -1 },
706 { "glPauseTransformFeedback", 43, -1 },
707 { "glResumeTransformFeedback", 43, -1 },
708 { "glDrawTransformFeedback", 43, -1 },
709 { "glDrawTransformFeedbackStream", 43, -1 },
710 { "glBeginQueryIndexed", 43, -1 },
711 { "glEndQueryIndexed", 43, -1 },
712 { "glGetQueryIndexediv", 43, -1 },
713 { "glReleaseShaderCompiler", 43, -1 },
714 { "glShaderBinary", 43, -1 },
715 { "glGetShaderPrecisionFormat", 43, -1 },
716 { "glDepthRangef", 43, -1 },
717 { "glClearDepthf", 43, -1 },
718 { "glGetProgramBinary", 43, -1 },
719 { "glProgramBinary", 43, -1 },
720 { "glProgramParameteri", 43, -1 },
721 // { "glUseProgramStages", 43, -1 }, // XXX: Add to xml
722 // { "glActiveShaderProgram", 43, -1 }, // XXX: Add to xml
723 // { "glCreateShaderProgramv", 43, -1 }, // XXX: Add to xml
724 // { "glBindProgramPipeline", 43, -1 }, // XXX: Add to xml
725 // { "glDeleteProgramPipelines", 43, -1 }, // XXX: Add to xml
726 // { "glGenProgramPipelines", 43, -1 }, // XXX: Add to xml
727 // { "glIsProgramPipeline", 43, -1 }, // XXX: Add to xml
728 // { "glGetProgramPipelineiv", 43, -1 }, // XXX: Add to xml
729 // { "glProgramUniform1i", 43, -1 }, // XXX: Add to xml
730 // { "glProgramUniform1iv", 43, -1 }, // XXX: Add to xml
731 // { "glProgramUniform1f", 43, -1 }, // XXX: Add to xml
732 // { "glProgramUniform1fv", 43, -1 }, // XXX: Add to xml
733 // { "glProgramUniform1d", 43, -1 }, // XXX: Add to xml
734 // { "glProgramUniform1dv", 43, -1 }, // XXX: Add to xml
735 // { "glProgramUniform1ui", 43, -1 }, // XXX: Add to xml
736 // { "glProgramUniform1uiv", 43, -1 }, // XXX: Add to xml
737 // { "glProgramUniform2i", 43, -1 }, // XXX: Add to xml
738 // { "glProgramUniform2iv", 43, -1 }, // XXX: Add to xml
739 // { "glProgramUniform2f", 43, -1 }, // XXX: Add to xml
740 // { "glProgramUniform2fv", 43, -1 }, // XXX: Add to xml
741 // { "glProgramUniform2d", 43, -1 }, // XXX: Add to xml
742 // { "glProgramUniform2dv", 43, -1 }, // XXX: Add to xml
743 // { "glProgramUniform2ui", 43, -1 }, // XXX: Add to xml
744 // { "glProgramUniform2uiv", 43, -1 }, // XXX: Add to xml
745 // { "glProgramUniform3i", 43, -1 }, // XXX: Add to xml
746 // { "glProgramUniform3iv", 43, -1 }, // XXX: Add to xml
747 // { "glProgramUniform3f", 43, -1 }, // XXX: Add to xml
748 // { "glProgramUniform3fv", 43, -1 }, // XXX: Add to xml
749 // { "glProgramUniform3d", 43, -1 }, // XXX: Add to xml
750 // { "glProgramUniform3dv", 43, -1 }, // XXX: Add to xml
751 // { "glProgramUniform3ui", 43, -1 }, // XXX: Add to xml
752 // { "glProgramUniform3uiv", 43, -1 }, // XXX: Add to xml
753 // { "glProgramUniform4i", 43, -1 }, // XXX: Add to xml
754 // { "glProgramUniform4iv", 43, -1 }, // XXX: Add to xml
755 // { "glProgramUniform4f", 43, -1 }, // XXX: Add to xml
756 // { "glProgramUniform4fv", 43, -1 }, // XXX: Add to xml
757 // { "glProgramUniform4d", 43, -1 }, // XXX: Add to xml
758 // { "glProgramUniform4dv", 43, -1 }, // XXX: Add to xml
759 // { "glProgramUniform4ui", 43, -1 }, // XXX: Add to xml
760 // { "glProgramUniform4uiv", 43, -1 }, // XXX: Add to xml
761 // { "glProgramUniformMatrix2fv", 43, -1 }, // XXX: Add to xml
762 // { "glProgramUniformMatrix3fv", 43, -1 }, // XXX: Add to xml
763 // { "glProgramUniformMatrix4fv", 43, -1 }, // XXX: Add to xml
764 // { "glProgramUniformMatrix2dv", 43, -1 }, // XXX: Add to xml
765 // { "glProgramUniformMatrix3dv", 43, -1 }, // XXX: Add to xml
766 // { "glProgramUniformMatrix4dv", 43, -1 }, // XXX: Add to xml
767 // { "glProgramUniformMatrix2x3fv", 43, -1 }, // XXX: Add to xml
768 // { "glProgramUniformMatrix3x2fv", 43, -1 }, // XXX: Add to xml
769 // { "glProgramUniformMatrix2x4fv", 43, -1 }, // XXX: Add to xml
770 // { "glProgramUniformMatrix4x2fv", 43, -1 }, // XXX: Add to xml
771 // { "glProgramUniformMatrix3x4fv", 43, -1 }, // XXX: Add to xml
772 // { "glProgramUniformMatrix4x3fv", 43, -1 }, // XXX: Add to xml
773 // { "glProgramUniformMatrix2x3dv", 43, -1 }, // XXX: Add to xml
774 // { "glProgramUniformMatrix3x2dv", 43, -1 }, // XXX: Add to xml
775 // { "glProgramUniformMatrix2x4dv", 43, -1 }, // XXX: Add to xml
776 // { "glProgramUniformMatrix4x2dv", 43, -1 }, // XXX: Add to xml
777 // { "glProgramUniformMatrix3x4dv", 43, -1 }, // XXX: Add to xml
778 // { "glProgramUniformMatrix4x3dv", 43, -1 }, // XXX: Add to xml
779 // { "glValidateProgramPipeline", 43, -1 }, // XXX: Add to xml
780 // { "glGetProgramPipelineInfoLog", 43, -1 }, // XXX: Add to xml
781 // { "glVertexAttribL1d", 43, -1 }, // XXX: Add to xml
782 // { "glVertexAttribL2d", 43, -1 }, // XXX: Add to xml
783 // { "glVertexAttribL3d", 43, -1 }, // XXX: Add to xml
784 // { "glVertexAttribL4d", 43, -1 }, // XXX: Add to xml
785 // { "glVertexAttribL1dv", 43, -1 }, // XXX: Add to xml
786 // { "glVertexAttribL2dv", 43, -1 }, // XXX: Add to xml
787 // { "glVertexAttribL3dv", 43, -1 }, // XXX: Add to xml
788 // { "glVertexAttribL4dv", 43, -1 }, // XXX: Add to xml
789 // { "glVertexAttribLPointer", 43, -1 }, // XXX: Add to xml
790 // { "glGetVertexAttribLdv", 43, -1 }, // XXX: Add to xml
791 // { "glViewportArrayv", 43, -1 }, // XXX: Add to xml
792 // { "glViewportIndexedf", 43, -1 }, // XXX: Add to xml
793 // { "glViewportIndexedfv", 43, -1 }, // XXX: Add to xml
794 // { "glScissorArrayv", 43, -1 }, // XXX: Add to xml
795 // { "glScissorIndexed", 43, -1 }, // XXX: Add to xml
796 // { "glScissorIndexedv", 43, -1 }, // XXX: Add to xml
797 // { "glDepthRangeArrayv", 43, -1 }, // XXX: Add to xml
798 // { "glDepthRangeIndexed", 43, -1 }, // XXX: Add to xml
799 // { "glGetFloati_v", 43, -1 }, // XXX: Add to xml
800 // { "glGetDoublei_v", 43, -1 }, // XXX: Add to xml
801 // { "glCreateSyncFromCLeventARB", 43, -1 }, // XXX: Add to xml
802 { "glDebugMessageControlARB", 43, -1 },
803 { "glDebugMessageInsertARB", 43, -1 },
804 { "glDebugMessageCallbackARB", 43, -1 },
805 { "glGetDebugMessageLogARB", 43, -1 },
806 { "glGetGraphicsResetStatusARB", 43, -1 },
807 { "glGetnMapdvARB", 43, -1 },
808 { "glGetnMapfvARB", 43, -1 },
809 { "glGetnMapivARB", 43, -1 },
810 { "glGetnPixelMapfvARB", 43, -1 },
811 { "glGetnPixelMapuivARB", 43, -1 },
812 { "glGetnPixelMapusvARB", 43, -1 },
813 { "glGetnPolygonStippleARB", 43, -1 },
814 { "glGetnColorTableARB", 43, -1 },
815 { "glGetnConvolutionFilterARB", 43, -1 },
816 { "glGetnSeparableFilterARB", 43, -1 },
817 { "glGetnHistogramARB", 43, -1 },
818 { "glGetnMinmaxARB", 43, -1 },
819 { "glGetnTexImageARB", 43, -1 },
820 { "glReadnPixelsARB", 43, -1 },
821 { "glGetnCompressedTexImageARB", 43, -1 },
822 { "glGetnUniformfvARB", 43, -1 },
823 { "glGetnUniformivARB", 43, -1 },
824 { "glGetnUniformuivARB", 43, -1 },
825 { "glGetnUniformdvARB", 43, -1 },
826 { "glDrawArraysInstancedBaseInstance", 43, -1 },
827 { "glDrawElementsInstancedBaseInstance", 43, -1 },
828 { "glDrawElementsInstancedBaseVertexBaseInstance", 43, -1 },
829 { "glDrawTransformFeedbackInstanced", 43, -1 },
830 { "glDrawTransformFeedbackStreamInstanced", 43, -1 },
831 // { "glGetInternalformativ", 43, -1 }, // XXX: Add to xml
832 // { "glGetActiveAtomicCounterBufferiv", 43, -1 }, // XXX: Add to xml
833 // { "glBindImageTexture", 43, -1 }, // XXX: Add to xml
834 // { "glMemoryBarrier", 43, -1 }, // XXX: Add to xml
835 { "glTexStorage1D", 43, -1 },
836 { "glTexStorage2D", 43, -1 },
837 { "glTexStorage3D", 43, -1 },
838 { "glTextureStorage1DEXT", 43, -1 },
839 { "glTextureStorage2DEXT", 43, -1 },
840 { "glTextureStorage3DEXT", 43, -1 },
841 // { "glDebugMessageControl", 43, -1 }, // XXX: Add to xml
842 // { "glDebugMessageInsert", 43, -1 }, // XXX: Add to xml
843 // { "glDebugMessageCallback", 43, -1 }, // XXX: Add to xml
844 // { "glGetDebugMessageLog", 43, -1 }, // XXX: Add to xml
845 // { "glPushDebugGroup", 43, -1 }, // XXX: Add to xml
846 // { "glPopDebugGroup", 43, -1 }, // XXX: Add to xml
847 // { "glObjectLabel", 43, -1 }, // XXX: Add to xml
848 // { "glGetObjectLabel", 43, -1 }, // XXX: Add to xml
849 // { "glObjectPtrLabel", 43, -1 }, // XXX: Add to xml
850 // { "glGetObjectPtrLabel", 43, -1 }, // XXX: Add to xml
851 // { "glClearBufferData", 43, -1 }, // XXX: Add to xml
852 // { "glClearBufferSubData", 43, -1 }, // XXX: Add to xml
853 // { "glClearNamedBufferDataEXT", 43, -1 }, // XXX: Add to xml
854 // { "glClearNamedBufferSubDataEXT", 43, -1 }, // XXX: Add to xml
855 // { "glDispatchCompute", 43, -1 }, // XXX: Add to xml
856 // { "glDispatchComputeIndirect", 43, -1 }, // XXX: Add to xml
857 // { "glCopyImageSubData", 43, -1 }, // XXX: Add to xml
858 // { "glTextureView", 43, -1 }, // XXX: Add to xml
859 // { "glBindVertexBuffer", 43, -1 }, // XXX: Add to xml
860 // { "glVertexAttribFormat", 43, -1 }, // XXX: Add to xml
861 // { "glVertexAttribIFormat", 43, -1 }, // XXX: Add to xml
862 // { "glVertexAttribLFormat", 43, -1 }, // XXX: Add to xml
863 // { "glVertexAttribBinding", 43, -1 }, // XXX: Add to xml
864 // { "glVertexBindingDivisor", 43, -1 }, // XXX: Add to xml
865 // { "glVertexArrayBindVertexBufferEXT", 43, -1 }, // XXX: Add to xml
866 // { "glVertexArrayVertexAttribFormatEXT", 43, -1 }, // XXX: Add to xml
867 // { "glVertexArrayVertexAttribIFormatEXT", 43, -1 }, // XXX: Add to xml
868 // { "glVertexArrayVertexAttribLFormatEXT", 43, -1 }, // XXX: Add to xml
869 // { "glVertexArrayVertexAttribBindingEXT", 43, -1 }, // XXX: Add to xml
870 // { "glVertexArrayVertexBindingDivisorEXT", 43, -1 }, // XXX: Add to xml
871 // { "glFramebufferParameteri", 43, -1 }, // XXX: Add to xml
872 // { "glGetFramebufferParameteriv", 43, -1 }, // XXX: Add to xml
873 // { "glNamedFramebufferParameteriEXT", 43, -1 }, // XXX: Add to xml
874 // { "glGetNamedFramebufferParameterivEXT", 43, -1 }, // XXX: Add to xml
875 // { "glGetInternalformati64v", 43, -1 }, // XXX: Add to xml
876 { "glInvalidateTexSubImage", 43, -1 },
877 { "glInvalidateTexImage", 43, -1 },
878 { "glInvalidateBufferSubData", 43, -1 },
879 { "glInvalidateBufferData", 43, -1 },
880 { "glInvalidateFramebuffer", 43, -1 },
881 { "glInvalidateSubFramebuffer", 43, -1 },
882 // { "glMultiDrawArraysIndirect", 43, -1 }, // XXX: Add to xml
883 // { "glMultiDrawElementsIndirect", 43, -1 }, // XXX: Add to xml
884 // { "glGetProgramInterfaceiv", 43, -1 }, // XXX: Add to xml
885 // { "glGetProgramResourceIndex", 43, -1 }, // XXX: Add to xml
886 // { "glGetProgramResourceName", 43, -1 }, // XXX: Add to xml
887 // { "glGetProgramResourceiv", 43, -1 }, // XXX: Add to xml
888 // { "glGetProgramResourceLocation", 43, -1 }, // XXX: Add to xml
889 // { "glGetProgramResourceLocationIndex", 43, -1 }, // XXX: Add to xml
890 // { "glShaderStorageBlockBinding", 43, -1 }, // XXX: Add to xml
891 // { "glTexBufferRange", 43, -1 }, // XXX: Add to xml
892 // { "glTextureBufferRangeEXT", 43, -1 }, // XXX: Add to xml
893 // { "glTexStorage2DMultisample", 43, -1 }, // XXX: Add to xml
894 // { "glTexStorage3DMultisample", 43, -1 }, // XXX: Add to xml
895 // { "glTextureStorage2DMultisampleEXT", 43, -1 }, // XXX: Add to xml
896 // { "glTextureStorage3DMultisampleEXT", 43, -1 }, // XXX: Add to xml
901 const struct function gles11_functions_possible
[] = {
902 { "glActiveTexture", 11, _gloffset_ActiveTexture
},
903 { "glAlphaFunc", 11, _gloffset_AlphaFunc
},
904 { "glAlphaFuncx", 11, -1 },
905 { "glBindBuffer", 11, -1 },
906 { "glBindFramebufferOES", 11, -1 },
907 { "glBindRenderbufferOES", 11, -1 },
908 { "glBindTexture", 11, _gloffset_BindTexture
},
909 { "glBlendEquationOES", 11, _gloffset_BlendEquation
},
910 { "glBlendEquationSeparateOES", 11, -1 },
911 { "glBlendFunc", 11, _gloffset_BlendFunc
},
912 { "glBlendFuncSeparateOES", 11, -1 },
913 { "glBufferData", 11, -1 },
914 { "glBufferSubData", 11, -1 },
915 { "glCheckFramebufferStatusOES", 11, -1 },
916 { "glClear", 11, _gloffset_Clear
},
917 { "glClearColor", 11, _gloffset_ClearColor
},
918 { "glClearColorx", 11, -1 },
919 { "glClearDepthf", 11, -1 },
920 { "glClearDepthx", 11, -1 },
921 { "glClearStencil", 11, _gloffset_ClearStencil
},
922 { "glClientActiveTexture", 11, _gloffset_ClientActiveTexture
},
923 { "glClipPlanef", 11, -1 },
924 { "glClipPlanex", 11, -1 },
925 { "glColor4f", 11, _gloffset_Color4f
},
926 { "glColor4ub", 11, _gloffset_Color4ub
},
927 { "glColor4x", 11, -1 },
928 { "glColorMask", 11, _gloffset_ColorMask
},
929 { "glColorPointer", 11, _gloffset_ColorPointer
},
930 { "glCompressedTexImage2D", 11, -1 },
931 { "glCompressedTexSubImage2D", 11, -1 },
932 { "glCopyTexImage2D", 11, _gloffset_CopyTexImage2D
},
933 { "glCopyTexSubImage2D", 11, _gloffset_CopyTexSubImage2D
},
934 { "glCullFace", 11, _gloffset_CullFace
},
935 { "glDeleteBuffers", 11, -1 },
936 { "glDeleteFramebuffersOES", 11, -1 },
937 { "glDeleteRenderbuffersOES", 11, -1 },
938 { "glDeleteTextures", 11, _gloffset_DeleteTextures
},
939 { "glDepthFunc", 11, _gloffset_DepthFunc
},
940 { "glDepthMask", 11, _gloffset_DepthMask
},
941 { "glDepthRangef", 11, -1 },
942 { "glDepthRangex", 11, -1 },
943 { "glDisable", 11, _gloffset_Disable
},
944 { "glDisableClientState", 11, _gloffset_DisableClientState
},
945 { "glDrawArrays", 11, _gloffset_DrawArrays
},
946 { "glDrawElements", 11, _gloffset_DrawElements
},
947 { "glDrawTexfOES", 11, -1 },
948 { "glDrawTexfvOES", 11, -1 },
949 { "glDrawTexiOES", 11, -1 },
950 { "glDrawTexivOES", 11, -1 },
951 { "glDrawTexsOES", 11, -1 },
952 { "glDrawTexsvOES", 11, -1 },
953 { "glDrawTexxOES", 11, -1 },
954 { "glDrawTexxvOES", 11, -1 },
955 { "glEGLImageTargetRenderbufferStorageOES", 11, -1 },
956 { "glEGLImageTargetTexture2DOES", 11, -1 },
957 { "glEnable", 11, _gloffset_Enable
},
958 { "glEnableClientState", 11, _gloffset_EnableClientState
},
959 { "glFinish", 11, _gloffset_Finish
},
960 { "glFlush", 11, _gloffset_Flush
},
961 { "glFlushMappedBufferRangeEXT", 11, -1 },
962 { "glFogf", 11, _gloffset_Fogf
},
963 { "glFogfv", 11, _gloffset_Fogfv
},
964 { "glFogx", 11, -1 },
965 { "glFogxv", 11, -1 },
966 { "glFramebufferRenderbufferOES", 11, -1 },
967 { "glFramebufferTexture2DOES", 11, -1 },
968 { "glFrontFace", 11, _gloffset_FrontFace
},
969 { "glFrustumf", 11, -1 },
970 { "glFrustumx", 11, -1 },
971 { "glGenBuffers", 11, -1 },
972 { "glGenFramebuffersOES", 11, -1 },
973 { "glGenRenderbuffersOES", 11, -1 },
974 { "glGenTextures", 11, _gloffset_GenTextures
},
975 { "glGenerateMipmapOES", 11, -1 },
976 { "glGetBooleanv", 11, _gloffset_GetBooleanv
},
977 { "glGetBufferParameteriv", 11, -1 },
978 { "glGetBufferPointervOES", 11, -1 },
979 { "glGetClipPlanef", 11, -1 },
980 { "glGetClipPlanex", 11, -1 },
981 { "glGetError", 11, _gloffset_GetError
},
982 { "glGetFixedv", 11, -1 },
983 { "glGetFloatv", 11, _gloffset_GetFloatv
},
984 { "glGetFramebufferAttachmentParameterivOES", 11, -1 },
985 { "glGetIntegerv", 11, _gloffset_GetIntegerv
},
986 { "glGetLightfv", 11, _gloffset_GetLightfv
},
987 { "glGetLightxv", 11, -1 },
988 { "glGetMaterialfv", 11, _gloffset_GetMaterialfv
},
989 { "glGetMaterialxv", 11, -1 },
990 { "glGetPointerv", 11, _gloffset_GetPointerv
},
991 { "glGetRenderbufferParameterivOES", 11, -1 },
992 { "glGetString", 11, _gloffset_GetString
},
993 { "glGetTexEnvfv", 11, _gloffset_GetTexEnvfv
},
994 { "glGetTexEnviv", 11, _gloffset_GetTexEnviv
},
995 { "glGetTexEnvxv", 11, -1 },
996 { "glGetTexGenfvOES", 11, _gloffset_GetTexGenfv
},
997 { "glGetTexGenivOES", 11, _gloffset_GetTexGeniv
},
998 { "glGetTexGenxvOES", 11, -1 },
999 { "glGetTexParameterfv", 11, _gloffset_GetTexParameterfv
},
1000 { "glGetTexParameteriv", 11, _gloffset_GetTexParameteriv
},
1001 { "glGetTexParameterxv", 11, -1 },
1002 { "glHint", 11, _gloffset_Hint
},
1003 { "glIsBuffer", 11, -1 },
1004 { "glIsEnabled", 11, _gloffset_IsEnabled
},
1005 { "glIsFramebufferOES", 11, -1 },
1006 { "glIsRenderbufferOES", 11, -1 },
1007 { "glIsTexture", 11, _gloffset_IsTexture
},
1008 { "glLightModelf", 11, _gloffset_LightModelf
},
1009 { "glLightModelfv", 11, _gloffset_LightModelfv
},
1010 { "glLightModelx", 11, -1 },
1011 { "glLightModelxv", 11, -1 },
1012 { "glLightf", 11, _gloffset_Lightf
},
1013 { "glLightfv", 11, _gloffset_Lightfv
},
1014 { "glLightx", 11, -1 },
1015 { "glLightxv", 11, -1 },
1016 { "glLineWidth", 11, _gloffset_LineWidth
},
1017 { "glLineWidthx", 11, -1 },
1018 { "glLoadIdentity", 11, _gloffset_LoadIdentity
},
1019 { "glLoadMatrixf", 11, _gloffset_LoadMatrixf
},
1020 { "glLoadMatrixx", 11, -1 },
1021 { "glLogicOp", 11, _gloffset_LogicOp
},
1022 { "glMapBufferOES", 11, -1 },
1023 { "glMapBufferRangeEXT", 11, -1 },
1024 { "glMaterialf", 11, _gloffset_Materialf
},
1025 { "glMaterialfv", 11, _gloffset_Materialfv
},
1026 { "glMaterialx", 11, -1 },
1027 { "glMaterialxv", 11, -1 },
1028 { "glMatrixMode", 11, _gloffset_MatrixMode
},
1029 { "glMultMatrixf", 11, _gloffset_MultMatrixf
},
1030 { "glMultMatrixx", 11, -1 },
1031 { "glMultiDrawArraysEXT", 11, -1 },
1032 { "glMultiDrawElementsEXT", 11, -1 },
1033 { "glMultiTexCoord4f", 11, _gloffset_MultiTexCoord4fARB
},
1034 { "glMultiTexCoord4x", 11, -1 },
1035 { "glNormal3f", 11, _gloffset_Normal3f
},
1036 { "glNormal3x", 11, -1 },
1037 { "glNormalPointer", 11, _gloffset_NormalPointer
},
1038 { "glOrthof", 11, -1 },
1039 { "glOrthox", 11, -1 },
1040 { "glPixelStorei", 11, _gloffset_PixelStorei
},
1041 { "glPointParameterf", 11, -1 },
1042 { "glPointParameterfv", 11, -1 },
1043 { "glPointParameterx", 11, -1 },
1044 { "glPointParameterxv", 11, -1 },
1045 { "glPointSize", 11, _gloffset_PointSize
},
1046 { "glPointSizePointerOES", 11, -1 },
1047 { "glPointSizex", 11, -1 },
1048 { "glPolygonOffset", 11, _gloffset_PolygonOffset
},
1049 { "glPolygonOffsetx", 11, -1 },
1050 { "glPopMatrix", 11, _gloffset_PopMatrix
},
1051 { "glPushMatrix", 11, _gloffset_PushMatrix
},
1052 { "glQueryMatrixxOES", 11, -1 },
1053 { "glReadPixels", 11, _gloffset_ReadPixels
},
1054 { "glRenderbufferStorageOES", 11, -1 },
1055 { "glRotatef", 11, _gloffset_Rotatef
},
1056 { "glRotatex", 11, -1 },
1057 { "glSampleCoverage", 11, -1 },
1058 { "glSampleCoveragex", 11, -1 },
1059 { "glScalef", 11, _gloffset_Scalef
},
1060 { "glScalex", 11, -1 },
1061 { "glScissor", 11, _gloffset_Scissor
},
1062 { "glShadeModel", 11, _gloffset_ShadeModel
},
1063 { "glStencilFunc", 11, _gloffset_StencilFunc
},
1064 { "glStencilMask", 11, _gloffset_StencilMask
},
1065 { "glStencilOp", 11, _gloffset_StencilOp
},
1066 { "glTexCoordPointer", 11, _gloffset_TexCoordPointer
},
1067 { "glTexEnvf", 11, _gloffset_TexEnvf
},
1068 { "glTexEnvfv", 11, _gloffset_TexEnvfv
},
1069 { "glTexEnvi", 11, _gloffset_TexEnvi
},
1070 { "glTexEnviv", 11, _gloffset_TexEnviv
},
1071 { "glTexEnvx", 11, -1 },
1072 { "glTexEnvxv", 11, -1 },
1073 { "glTexGenfOES", 11, _gloffset_TexGenf
},
1074 { "glTexGenfvOES", 11, _gloffset_TexGenfv
},
1075 { "glTexGeniOES", 11, _gloffset_TexGeni
},
1076 { "glTexGenivOES", 11, _gloffset_TexGeniv
},
1077 { "glTexGenxOES", 11, -1 },
1078 { "glTexGenxvOES", 11, -1 },
1079 { "glTexImage2D", 11, _gloffset_TexImage2D
},
1080 { "glTexParameterf", 11, _gloffset_TexParameterf
},
1081 { "glTexParameterfv", 11, _gloffset_TexParameterfv
},
1082 { "glTexParameteri", 11, _gloffset_TexParameteri
},
1083 { "glTexParameteriv", 11, _gloffset_TexParameteriv
},
1084 { "glTexParameterx", 11, -1 },
1085 { "glTexParameterxv", 11, -1 },
1086 { "glTexSubImage2D", 11, _gloffset_TexSubImage2D
},
1087 { "glTranslatef", 11, _gloffset_Translatef
},
1088 { "glTranslatex", 11, -1 },
1089 { "glUnmapBufferOES", 11, -1 },
1090 { "glVertexPointer", 11, _gloffset_VertexPointer
},
1091 { "glViewport", 11, _gloffset_Viewport
},
1095 const struct function gles2_functions_possible
[] = {
1096 { "glActiveTexture", 20, _gloffset_ActiveTexture
},
1097 { "glAttachShader", 20, -1 },
1098 { "glBindAttribLocation", 20, -1 },
1099 { "glBindBuffer", 20, -1 },
1100 { "glBindFramebuffer", 20, -1 },
1101 { "glBindRenderbuffer", 20, -1 },
1102 { "glBindTexture", 20, _gloffset_BindTexture
},
1103 { "glBindVertexArrayOES", 20, -1 },
1104 { "glBlendColor", 20, _gloffset_BlendColor
},
1105 { "glBlendEquation", 20, _gloffset_BlendEquation
},
1106 { "glBlendEquationSeparate", 20, -1 },
1107 { "glBlendFunc", 20, _gloffset_BlendFunc
},
1108 { "glBlendFuncSeparate", 20, -1 },
1109 { "glBufferData", 20, -1 },
1110 { "glBufferSubData", 20, -1 },
1111 { "glCheckFramebufferStatus", 20, -1 },
1112 { "glClear", 20, _gloffset_Clear
},
1113 { "glClearColor", 20, _gloffset_ClearColor
},
1114 { "glClearDepthf", 20, -1 },
1115 { "glClearStencil", 20, _gloffset_ClearStencil
},
1116 { "glColorMask", 20, _gloffset_ColorMask
},
1117 { "glCompileShader", 20, -1 },
1118 { "glCompressedTexImage2D", 20, -1 },
1119 { "glCompressedTexImage3DOES", 20, -1 },
1120 { "glCompressedTexSubImage2D", 20, -1 },
1121 { "glCompressedTexSubImage3DOES", 20, -1 },
1122 { "glCopyTexImage2D", 20, _gloffset_CopyTexImage2D
},
1123 { "glCopyTexSubImage2D", 20, _gloffset_CopyTexSubImage2D
},
1124 { "glCopyTexSubImage3DOES", 20, _gloffset_CopyTexSubImage3D
},
1125 { "glCreateProgram", 20, -1 },
1126 { "glCreateShader", 20, -1 },
1127 { "glCullFace", 20, _gloffset_CullFace
},
1128 { "glDeleteBuffers", 20, -1 },
1129 { "glDeleteFramebuffers", 20, -1 },
1130 { "glDeleteProgram", 20, -1 },
1131 { "glDeleteRenderbuffers", 20, -1 },
1132 { "glDeleteShader", 20, -1 },
1133 { "glDeleteTextures", 20, _gloffset_DeleteTextures
},
1134 { "glDeleteVertexArraysOES", 20, -1 },
1135 { "glDepthFunc", 20, _gloffset_DepthFunc
},
1136 { "glDepthMask", 20, _gloffset_DepthMask
},
1137 { "glDepthRangef", 20, -1 },
1138 { "glDetachShader", 20, -1 },
1139 { "glDisable", 20, _gloffset_Disable
},
1140 { "glDisableVertexAttribArray", 20, -1 },
1141 { "glDrawArrays", 20, _gloffset_DrawArrays
},
1142 { "glDrawBuffersNV", 20, -1 },
1143 { "glDrawElements", 20, _gloffset_DrawElements
},
1144 { "glEGLImageTargetRenderbufferStorageOES", 20, -1 },
1145 { "glEGLImageTargetTexture2DOES", 20, -1 },
1146 { "glEnable", 20, _gloffset_Enable
},
1147 { "glEnableVertexAttribArray", 20, -1 },
1148 { "glFinish", 20, _gloffset_Finish
},
1149 { "glFlush", 20, _gloffset_Flush
},
1150 { "glFlushMappedBufferRangeEXT", 20, -1 },
1151 { "glFramebufferRenderbuffer", 20, -1 },
1152 { "glFramebufferTexture2D", 20, -1 },
1153 { "glFramebufferTexture3DOES", 20, -1 },
1154 { "glFrontFace", 20, _gloffset_FrontFace
},
1155 { "glGenBuffers", 20, -1 },
1156 { "glGenFramebuffers", 20, -1 },
1157 { "glGenRenderbuffers", 20, -1 },
1158 { "glGenTextures", 20, _gloffset_GenTextures
},
1159 { "glGenVertexArraysOES", 20, -1 },
1160 { "glGenerateMipmap", 20, -1 },
1161 { "glGetActiveAttrib", 20, -1 },
1162 { "glGetActiveUniform", 20, -1 },
1163 { "glGetAttachedShaders", 20, -1 },
1164 { "glGetAttribLocation", 20, -1 },
1165 { "glGetBooleanv", 20, _gloffset_GetBooleanv
},
1166 { "glGetBufferParameteriv", 20, -1 },
1167 { "glGetBufferPointervOES", 20, -1 },
1168 { "glGetError", 20, _gloffset_GetError
},
1169 { "glGetFloatv", 20, _gloffset_GetFloatv
},
1170 { "glGetFramebufferAttachmentParameteriv", 20, -1 },
1171 { "glGetIntegerv", 20, _gloffset_GetIntegerv
},
1172 { "glGetProgramInfoLog", 20, -1 },
1173 { "glGetProgramiv", 20, -1 },
1174 { "glGetRenderbufferParameteriv", 20, -1 },
1175 { "glGetShaderInfoLog", 20, -1 },
1176 { "glGetShaderPrecisionFormat", 20, -1 },
1177 { "glGetShaderSource", 20, -1 },
1178 { "glGetShaderiv", 20, -1 },
1179 { "glGetString", 20, _gloffset_GetString
},
1180 { "glGetTexParameterfv", 20, _gloffset_GetTexParameterfv
},
1181 { "glGetTexParameteriv", 20, _gloffset_GetTexParameteriv
},
1182 { "glGetUniformLocation", 20, -1 },
1183 { "glGetUniformfv", 20, -1 },
1184 { "glGetUniformiv", 20, -1 },
1185 { "glGetVertexAttribPointerv", 20, -1 },
1186 { "glGetVertexAttribfv", 20, -1 },
1187 { "glGetVertexAttribiv", 20, -1 },
1188 { "glHint", 20, _gloffset_Hint
},
1189 { "glIsBuffer", 20, -1 },
1190 { "glIsEnabled", 20, _gloffset_IsEnabled
},
1191 { "glIsFramebuffer", 20, -1 },
1192 { "glIsProgram", 20, -1 },
1193 { "glIsRenderbuffer", 20, -1 },
1194 { "glIsShader", 20, -1 },
1195 { "glIsTexture", 20, _gloffset_IsTexture
},
1196 { "glIsVertexArrayOES", 20, -1 },
1197 { "glLineWidth", 20, _gloffset_LineWidth
},
1198 { "glLinkProgram", 20, -1 },
1199 { "glMapBufferOES", 20, -1 },
1200 { "glMapBufferRangeEXT", 20, -1 },
1201 { "glMultiDrawArraysEXT", 20, -1 },
1202 { "glMultiDrawElementsEXT", 20, -1 },
1203 { "glPixelStorei", 20, _gloffset_PixelStorei
},
1204 { "glPolygonOffset", 20, _gloffset_PolygonOffset
},
1205 { "glReadBufferNV", 20, _gloffset_ReadBuffer
},
1206 { "glReadPixels", 20, _gloffset_ReadPixels
},
1207 { "glReleaseShaderCompiler", 20, -1 },
1208 { "glRenderbufferStorage", 20, -1 },
1209 { "glSampleCoverage", 20, -1 },
1210 { "glScissor", 20, _gloffset_Scissor
},
1211 { "glShaderBinary", 20, -1 },
1212 { "glShaderSource", 20, -1 },
1213 { "glStencilFunc", 20, _gloffset_StencilFunc
},
1214 { "glStencilFuncSeparate", 20, -1 },
1215 { "glStencilMask", 20, _gloffset_StencilMask
},
1216 { "glStencilMaskSeparate", 20, -1 },
1217 { "glStencilOp", 20, _gloffset_StencilOp
},
1218 { "glStencilOpSeparate", 20, -1 },
1219 { "glTexImage2D", 20, _gloffset_TexImage2D
},
1220 { "glTexImage3DOES", 20, _gloffset_TexImage3D
},
1221 { "glTexParameterf", 20, _gloffset_TexParameterf
},
1222 { "glTexParameterfv", 20, _gloffset_TexParameterfv
},
1223 { "glTexParameteri", 20, _gloffset_TexParameteri
},
1224 { "glTexParameteriv", 20, _gloffset_TexParameteriv
},
1225 { "glTexSubImage2D", 20, _gloffset_TexSubImage2D
},
1226 { "glTexSubImage3DOES", 20, _gloffset_TexSubImage3D
},
1227 { "glUniform1f", 20, -1 },
1228 { "glUniform1fv", 20, -1 },
1229 { "glUniform1i", 20, -1 },
1230 { "glUniform1iv", 20, -1 },
1231 { "glUniform2f", 20, -1 },
1232 { "glUniform2fv", 20, -1 },
1233 { "glUniform2i", 20, -1 },
1234 { "glUniform2iv", 20, -1 },
1235 { "glUniform3f", 20, -1 },
1236 { "glUniform3fv", 20, -1 },
1237 { "glUniform3i", 20, -1 },
1238 { "glUniform3iv", 20, -1 },
1239 { "glUniform4f", 20, -1 },
1240 { "glUniform4fv", 20, -1 },
1241 { "glUniform4i", 20, -1 },
1242 { "glUniform4iv", 20, -1 },
1243 { "glUniformMatrix2fv", 20, -1 },
1244 { "glUniformMatrix3fv", 20, -1 },
1245 { "glUniformMatrix4fv", 20, -1 },
1246 { "glUnmapBufferOES", 20, -1 },
1247 { "glUseProgram", 20, -1 },
1248 { "glValidateProgram", 20, -1 },
1249 { "glVertexAttrib1f", 20, -1 },
1250 { "glVertexAttrib1fv", 20, -1 },
1251 { "glVertexAttrib2f", 20, -1 },
1252 { "glVertexAttrib2fv", 20, -1 },
1253 { "glVertexAttrib3f", 20, -1 },
1254 { "glVertexAttrib3fv", 20, -1 },
1255 { "glVertexAttrib4f", 20, -1 },
1256 { "glVertexAttrib4fv", 20, -1 },
1257 { "glVertexAttribPointer", 20, -1 },
1258 { "glViewport", 20, _gloffset_Viewport
},
1262 const struct function gles3_functions_possible
[] = {
1263 { "glBeginQuery", 30, -1 },
1264 { "glBeginTransformFeedback", 30, -1 },
1265 { "glBindBufferBase", 30, -1 },
1266 { "glBindBufferRange", 30, -1 },
1267 { "glBindSampler", 30, -1 },
1268 { "glBindTransformFeedback", 30, -1 },
1269 // We check for the aliased -OES version in GLES 2
1270 // { "glBindVertexArray", 30, -1 },
1271 { "glBlitFramebuffer", 30, -1 },
1272 { "glClearBufferfi", 30, -1 },
1273 { "glClearBufferfv", 30, -1 },
1274 { "glClearBufferiv", 30, -1 },
1275 { "glClearBufferuiv", 30, -1 },
1276 { "glClientWaitSync", 30, -1 },
1277 // We check for the aliased -OES version in GLES 2
1278 // { "glCompressedTexImage3D", 30, -1 },
1279 // We check for the aliased -OES version in GLES 2
1280 // { "glCompressedTexSubImage3D", 30, -1 },
1281 { "glCopyBufferSubData", 30, -1 },
1282 // We check for the aliased -OES version in GLES 2
1283 // { "glCopyTexSubImage3D", 30, -1 },
1284 { "glDeleteQueries", 30, -1 },
1285 { "glDeleteSamplers", 30, -1 },
1286 { "glDeleteSync", 30, -1 },
1287 { "glDeleteTransformFeedbacks", 30, -1 },
1288 // We check for the aliased -OES version in GLES 2
1289 // { "glDeleteVertexArrays", 30, -1 },
1290 { "glDrawArraysInstanced", 30, -1 },
1291 // We check for the aliased -NV version in GLES 2
1292 // { "glDrawBuffers", 30, -1 },
1293 { "glDrawElementsInstanced", 30, -1 },
1294 { "glDrawRangeElements", 30, -1 },
1295 { "glEndQuery", 30, -1 },
1296 { "glEndTransformFeedback", 30, -1 },
1297 { "glFenceSync", 30, -1 },
1298 // We check for the aliased -EXT version in GLES 2
1299 // { "glFlushMappedBufferRange", 30, -1 },
1300 { "glFramebufferTextureLayer", 30, -1 },
1301 { "glGenQueries", 30, -1 },
1302 { "glGenSamplers", 30, -1 },
1303 { "glGenTransformFeedbacks", 30, -1 },
1304 // We check for the aliased -OES version in GLES 2
1305 // { "glGenVertexArrays", 30, -1 },
1306 { "glGetActiveUniformBlockiv", 30, -1 },
1307 { "glGetActiveUniformBlockName", 30, -1 },
1308 { "glGetActiveUniformsiv", 30, -1 },
1309 { "glGetBufferParameteri64v", 30, -1 },
1310 // We check for the aliased -OES version in GLES 2
1311 // { "glGetBufferPointerv", 30, -1 },
1312 { "glGetFragDataLocation", 30, -1 },
1313 /// XXX: Missing implementation of glGetInteger64i_v
1314 // { "glGetInteger64i_v", 30, -1 },
1315 { "glGetInteger64v", 30, -1 },
1316 { "glGetIntegeri_v", 30, -1 },
1317 // XXX: Missing implementation of ARB_internalformat_query
1318 // { "glGetInternalformativ", 30, -1 },
1319 // XXX: Missing implementation of ARB_get_program_binary
1320 /// { "glGetProgramBinary", 30, -1 },
1321 { "glGetQueryiv", 30, -1 },
1322 { "glGetQueryObjectuiv", 30, -1 },
1323 { "glGetSamplerParameterfv", 30, -1 },
1324 { "glGetSamplerParameteriv", 30, -1 },
1325 { "glGetStringi", 30, -1 },
1326 { "glGetSynciv", 30, -1 },
1327 { "glGetTransformFeedbackVarying", 30, -1 },
1328 { "glGetUniformBlockIndex", 30, -1 },
1329 { "glGetUniformIndices", 30, -1 },
1330 { "glGetUniformuiv", 30, -1 },
1331 { "glGetVertexAttribIiv", 30, -1 },
1332 { "glGetVertexAttribIuiv", 30, -1 },
1333 { "glInvalidateFramebuffer", 30, -1 },
1334 { "glInvalidateSubFramebuffer", 30, -1 },
1335 { "glIsQuery", 30, -1 },
1336 { "glIsSampler", 30, -1 },
1337 { "glIsSync", 30, -1 },
1338 { "glIsTransformFeedback", 30, -1 },
1339 // We check for the aliased -OES version in GLES 2
1340 // { "glIsVertexArray", 30, -1 },
1341 // We check for the aliased -EXT version in GLES 2
1342 // { "glMapBufferRange", 30, -1 },
1343 { "glPauseTransformFeedback", 30, -1 },
1344 // XXX: Missing implementation of ARB_get_program_binary
1345 // { "glProgramBinary", 30, -1 },
1346 // XXX: Missing implementation of ARB_get_program_binary
1347 // { "glProgramParameteri", 30, -1 },
1348 // We check for the aliased -NV version in GLES 2
1349 // { "glReadBuffer", 30, -1 },
1350 { "glRenderbufferStorageMultisample", 30, -1 },
1351 { "glResumeTransformFeedback", 30, -1 },
1352 { "glSamplerParameterf", 30, -1 },
1353 { "glSamplerParameterfv", 30, -1 },
1354 { "glSamplerParameteri", 30, -1 },
1355 { "glSamplerParameteriv", 30, -1 },
1356 // We check for the aliased -OES version in GLES 2
1357 // { "glTexImage3D", 30, -1 },
1358 { "glTexStorage2D", 30, -1 },
1359 { "glTexStorage3D", 30, -1 },
1360 // We check for the aliased -OES version in GLES 2
1361 // { "glTexSubImage3D", 30, -1 },
1362 { "glTransformFeedbackVaryings", 30, -1 },
1363 { "glUniform1ui", 30, -1 },
1364 { "glUniform1uiv", 30, -1 },
1365 { "glUniform2ui", 30, -1 },
1366 { "glUniform2uiv", 30, -1 },
1367 { "glUniform3ui", 30, -1 },
1368 { "glUniform3uiv", 30, -1 },
1369 { "glUniform4ui", 30, -1 },
1370 { "glUniform4uiv", 30, -1 },
1371 { "glUniformBlockBinding", 30, -1 },
1372 { "glUniformMatrix2x3fv", 30, -1 },
1373 { "glUniformMatrix2x4fv", 30, -1 },
1374 { "glUniformMatrix3x2fv", 30, -1 },
1375 { "glUniformMatrix3x4fv", 30, -1 },
1376 { "glUniformMatrix4x2fv", 30, -1 },
1377 { "glUniformMatrix4x3fv", 30, -1 },
1378 // We check for the aliased -OES version in GLES 2
1379 // { "glUnmapBuffer", 30, -1 },
1380 { "glVertexAttribDivisor", 30, -1 },
1381 { "glVertexAttribI4i", 30, -1 },
1382 { "glVertexAttribI4iv", 30, -1 },
1383 { "glVertexAttribI4ui", 30, -1 },
1384 { "glVertexAttribI4uiv", 30, -1 },
1385 { "glVertexAttribIPointer", 30, -1 },
1386 { "glWaitSync", 30, -1 },