1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
13 #include "base/trace_event/trace_event.h"
14 #include "ui/gl/gl_bindings.h"
15 #include "ui/gl/gl_context.h"
16 #include "ui/gl/gl_enums.h"
17 #include "ui/gl/gl_gl_api_implementation.h"
18 #include "ui/gl/gl_implementation.h"
19 #include "ui/gl/gl_version_info.h"
23 static bool g_debugBindingsInitialized
;
26 void DriverGL::InitializeStaticBindings() {
27 fn
.glActiveTextureFn
= reinterpret_cast<glActiveTextureProc
>(
28 GetGLProcAddress("glActiveTexture"));
30 reinterpret_cast<glAttachShaderProc
>(GetGLProcAddress("glAttachShader"));
31 fn
.glBeginQueryFn
= 0;
32 fn
.glBeginTransformFeedbackFn
= 0;
33 fn
.glBindAttribLocationFn
= reinterpret_cast<glBindAttribLocationProc
>(
34 GetGLProcAddress("glBindAttribLocation"));
36 reinterpret_cast<glBindBufferProc
>(GetGLProcAddress("glBindBuffer"));
37 fn
.glBindBufferBaseFn
= 0;
38 fn
.glBindBufferRangeFn
= 0;
39 fn
.glBindFragDataLocationFn
= 0;
40 fn
.glBindFragDataLocationIndexedFn
= 0;
41 fn
.glBindFramebufferEXTFn
= 0;
42 fn
.glBindRenderbufferEXTFn
= 0;
43 fn
.glBindSamplerFn
= 0;
45 reinterpret_cast<glBindTextureProc
>(GetGLProcAddress("glBindTexture"));
46 fn
.glBindTransformFeedbackFn
= 0;
47 fn
.glBindVertexArrayOESFn
= 0;
48 fn
.glBlendBarrierKHRFn
= 0;
50 reinterpret_cast<glBlendColorProc
>(GetGLProcAddress("glBlendColor"));
51 fn
.glBlendEquationFn
= reinterpret_cast<glBlendEquationProc
>(
52 GetGLProcAddress("glBlendEquation"));
53 fn
.glBlendEquationSeparateFn
= reinterpret_cast<glBlendEquationSeparateProc
>(
54 GetGLProcAddress("glBlendEquationSeparate"));
56 reinterpret_cast<glBlendFuncProc
>(GetGLProcAddress("glBlendFunc"));
57 fn
.glBlendFuncSeparateFn
= reinterpret_cast<glBlendFuncSeparateProc
>(
58 GetGLProcAddress("glBlendFuncSeparate"));
59 fn
.glBlitFramebufferFn
= 0;
60 fn
.glBlitFramebufferANGLEFn
= 0;
61 fn
.glBlitFramebufferEXTFn
= 0;
63 reinterpret_cast<glBufferDataProc
>(GetGLProcAddress("glBufferData"));
64 fn
.glBufferSubDataFn
= reinterpret_cast<glBufferSubDataProc
>(
65 GetGLProcAddress("glBufferSubData"));
66 fn
.glCheckFramebufferStatusEXTFn
= 0;
67 fn
.glClearFn
= reinterpret_cast<glClearProc
>(GetGLProcAddress("glClear"));
68 fn
.glClearBufferfiFn
= 0;
69 fn
.glClearBufferfvFn
= 0;
70 fn
.glClearBufferivFn
= 0;
71 fn
.glClearBufferuivFn
= 0;
73 reinterpret_cast<glClearColorProc
>(GetGLProcAddress("glClearColor"));
75 reinterpret_cast<glClearDepthProc
>(GetGLProcAddress("glClearDepth"));
76 fn
.glClearDepthfFn
= 0;
78 reinterpret_cast<glClearStencilProc
>(GetGLProcAddress("glClearStencil"));
79 fn
.glClientWaitSyncFn
= 0;
81 reinterpret_cast<glColorMaskProc
>(GetGLProcAddress("glColorMask"));
82 fn
.glCompileShaderFn
= reinterpret_cast<glCompileShaderProc
>(
83 GetGLProcAddress("glCompileShader"));
84 fn
.glCompressedTexImage2DFn
= reinterpret_cast<glCompressedTexImage2DProc
>(
85 GetGLProcAddress("glCompressedTexImage2D"));
86 fn
.glCompressedTexImage3DFn
= 0;
87 fn
.glCompressedTexSubImage2DFn
=
88 reinterpret_cast<glCompressedTexSubImage2DProc
>(
89 GetGLProcAddress("glCompressedTexSubImage2D"));
90 fn
.glCopyBufferSubDataFn
= 0;
91 fn
.glCopyTexImage2DFn
= reinterpret_cast<glCopyTexImage2DProc
>(
92 GetGLProcAddress("glCopyTexImage2D"));
93 fn
.glCopyTexSubImage2DFn
= reinterpret_cast<glCopyTexSubImage2DProc
>(
94 GetGLProcAddress("glCopyTexSubImage2D"));
95 fn
.glCopyTexSubImage3DFn
= 0;
96 fn
.glCreateProgramFn
= reinterpret_cast<glCreateProgramProc
>(
97 GetGLProcAddress("glCreateProgram"));
99 reinterpret_cast<glCreateShaderProc
>(GetGLProcAddress("glCreateShader"));
101 reinterpret_cast<glCullFaceProc
>(GetGLProcAddress("glCullFace"));
102 fn
.glDeleteBuffersARBFn
= reinterpret_cast<glDeleteBuffersARBProc
>(
103 GetGLProcAddress("glDeleteBuffers"));
104 fn
.glDeleteFencesAPPLEFn
= 0;
105 fn
.glDeleteFencesNVFn
= 0;
106 fn
.glDeleteFramebuffersEXTFn
= 0;
107 fn
.glDeleteProgramFn
= reinterpret_cast<glDeleteProgramProc
>(
108 GetGLProcAddress("glDeleteProgram"));
109 fn
.glDeleteQueriesFn
= 0;
110 fn
.glDeleteRenderbuffersEXTFn
= 0;
111 fn
.glDeleteSamplersFn
= 0;
112 fn
.glDeleteShaderFn
=
113 reinterpret_cast<glDeleteShaderProc
>(GetGLProcAddress("glDeleteShader"));
114 fn
.glDeleteSyncFn
= 0;
115 fn
.glDeleteTexturesFn
= reinterpret_cast<glDeleteTexturesProc
>(
116 GetGLProcAddress("glDeleteTextures"));
117 fn
.glDeleteTransformFeedbacksFn
= 0;
118 fn
.glDeleteVertexArraysOESFn
= 0;
120 reinterpret_cast<glDepthFuncProc
>(GetGLProcAddress("glDepthFunc"));
122 reinterpret_cast<glDepthMaskProc
>(GetGLProcAddress("glDepthMask"));
124 reinterpret_cast<glDepthRangeProc
>(GetGLProcAddress("glDepthRange"));
125 fn
.glDepthRangefFn
= 0;
126 fn
.glDetachShaderFn
=
127 reinterpret_cast<glDetachShaderProc
>(GetGLProcAddress("glDetachShader"));
129 reinterpret_cast<glDisableProc
>(GetGLProcAddress("glDisable"));
130 fn
.glDisableVertexAttribArrayFn
=
131 reinterpret_cast<glDisableVertexAttribArrayProc
>(
132 GetGLProcAddress("glDisableVertexAttribArray"));
133 fn
.glDiscardFramebufferEXTFn
= 0;
135 reinterpret_cast<glDrawArraysProc
>(GetGLProcAddress("glDrawArrays"));
136 fn
.glDrawArraysInstancedANGLEFn
= 0;
137 fn
.glDrawBufferFn
= 0;
138 fn
.glDrawBuffersARBFn
= 0;
139 fn
.glDrawElementsFn
=
140 reinterpret_cast<glDrawElementsProc
>(GetGLProcAddress("glDrawElements"));
141 fn
.glDrawElementsInstancedANGLEFn
= 0;
142 fn
.glDrawRangeElementsFn
= 0;
143 fn
.glEGLImageTargetRenderbufferStorageOESFn
= 0;
144 fn
.glEGLImageTargetTexture2DOESFn
= 0;
145 fn
.glEnableFn
= reinterpret_cast<glEnableProc
>(GetGLProcAddress("glEnable"));
146 fn
.glEnableVertexAttribArrayFn
=
147 reinterpret_cast<glEnableVertexAttribArrayProc
>(
148 GetGLProcAddress("glEnableVertexAttribArray"));
150 fn
.glEndTransformFeedbackFn
= 0;
151 fn
.glFenceSyncFn
= 0;
152 fn
.glFinishFn
= reinterpret_cast<glFinishProc
>(GetGLProcAddress("glFinish"));
153 fn
.glFinishFenceAPPLEFn
= 0;
154 fn
.glFinishFenceNVFn
= 0;
155 fn
.glFlushFn
= reinterpret_cast<glFlushProc
>(GetGLProcAddress("glFlush"));
156 fn
.glFlushMappedBufferRangeFn
= 0;
157 fn
.glFramebufferRenderbufferEXTFn
= 0;
158 fn
.glFramebufferTexture2DEXTFn
= 0;
159 fn
.glFramebufferTexture2DMultisampleEXTFn
= 0;
160 fn
.glFramebufferTexture2DMultisampleIMGFn
= 0;
161 fn
.glFramebufferTextureLayerFn
= 0;
163 reinterpret_cast<glFrontFaceProc
>(GetGLProcAddress("glFrontFace"));
164 fn
.glGenBuffersARBFn
=
165 reinterpret_cast<glGenBuffersARBProc
>(GetGLProcAddress("glGenBuffers"));
166 fn
.glGenerateMipmapEXTFn
= 0;
167 fn
.glGenFencesAPPLEFn
= 0;
168 fn
.glGenFencesNVFn
= 0;
169 fn
.glGenFramebuffersEXTFn
= 0;
170 fn
.glGenQueriesFn
= 0;
171 fn
.glGenRenderbuffersEXTFn
= 0;
172 fn
.glGenSamplersFn
= 0;
174 reinterpret_cast<glGenTexturesProc
>(GetGLProcAddress("glGenTextures"));
175 fn
.glGenTransformFeedbacksFn
= 0;
176 fn
.glGenVertexArraysOESFn
= 0;
177 fn
.glGetActiveAttribFn
= reinterpret_cast<glGetActiveAttribProc
>(
178 GetGLProcAddress("glGetActiveAttrib"));
179 fn
.glGetActiveUniformFn
= reinterpret_cast<glGetActiveUniformProc
>(
180 GetGLProcAddress("glGetActiveUniform"));
181 fn
.glGetActiveUniformBlockivFn
= 0;
182 fn
.glGetActiveUniformBlockNameFn
= 0;
183 fn
.glGetActiveUniformsivFn
= 0;
184 fn
.glGetAttachedShadersFn
= reinterpret_cast<glGetAttachedShadersProc
>(
185 GetGLProcAddress("glGetAttachedShaders"));
186 fn
.glGetAttribLocationFn
= reinterpret_cast<glGetAttribLocationProc
>(
187 GetGLProcAddress("glGetAttribLocation"));
189 reinterpret_cast<glGetBooleanvProc
>(GetGLProcAddress("glGetBooleanv"));
190 fn
.glGetBufferParameterivFn
= reinterpret_cast<glGetBufferParameterivProc
>(
191 GetGLProcAddress("glGetBufferParameteriv"));
193 reinterpret_cast<glGetErrorProc
>(GetGLProcAddress("glGetError"));
194 fn
.glGetFenceivNVFn
= 0;
196 reinterpret_cast<glGetFloatvProc
>(GetGLProcAddress("glGetFloatv"));
197 fn
.glGetFragDataLocationFn
= 0;
198 fn
.glGetFramebufferAttachmentParameterivEXTFn
= 0;
199 fn
.glGetGraphicsResetStatusARBFn
= 0;
200 fn
.glGetInteger64i_vFn
= 0;
201 fn
.glGetInteger64vFn
= 0;
202 fn
.glGetIntegeri_vFn
= 0;
204 reinterpret_cast<glGetIntegervProc
>(GetGLProcAddress("glGetIntegerv"));
205 fn
.glGetInternalformativFn
= 0;
206 fn
.glGetProgramBinaryFn
= 0;
207 fn
.glGetProgramInfoLogFn
= reinterpret_cast<glGetProgramInfoLogProc
>(
208 GetGLProcAddress("glGetProgramInfoLog"));
209 fn
.glGetProgramivFn
=
210 reinterpret_cast<glGetProgramivProc
>(GetGLProcAddress("glGetProgramiv"));
211 fn
.glGetProgramResourceLocationFn
= 0;
212 fn
.glGetQueryivFn
= 0;
213 fn
.glGetQueryObjecti64vFn
= 0;
214 fn
.glGetQueryObjectivFn
= 0;
215 fn
.glGetQueryObjectui64vFn
= 0;
216 fn
.glGetQueryObjectuivFn
= 0;
217 fn
.glGetRenderbufferParameterivEXTFn
= 0;
218 fn
.glGetSamplerParameterfvFn
= 0;
219 fn
.glGetSamplerParameterivFn
= 0;
220 fn
.glGetShaderInfoLogFn
= reinterpret_cast<glGetShaderInfoLogProc
>(
221 GetGLProcAddress("glGetShaderInfoLog"));
223 reinterpret_cast<glGetShaderivProc
>(GetGLProcAddress("glGetShaderiv"));
224 fn
.glGetShaderPrecisionFormatFn
= 0;
225 fn
.glGetShaderSourceFn
= reinterpret_cast<glGetShaderSourceProc
>(
226 GetGLProcAddress("glGetShaderSource"));
228 reinterpret_cast<glGetStringProc
>(GetGLProcAddress("glGetString"));
230 reinterpret_cast<glGetStringiProc
>(GetGLProcAddress("glGetStringi"));
231 fn
.glGetSyncivFn
= 0;
232 fn
.glGetTexLevelParameterfvFn
= 0;
233 fn
.glGetTexLevelParameterivFn
= 0;
234 fn
.glGetTexParameterfvFn
= reinterpret_cast<glGetTexParameterfvProc
>(
235 GetGLProcAddress("glGetTexParameterfv"));
236 fn
.glGetTexParameterivFn
= reinterpret_cast<glGetTexParameterivProc
>(
237 GetGLProcAddress("glGetTexParameteriv"));
238 fn
.glGetTransformFeedbackVaryingFn
= 0;
239 fn
.glGetTranslatedShaderSourceANGLEFn
= 0;
240 fn
.glGetUniformBlockIndexFn
= 0;
241 fn
.glGetUniformfvFn
=
242 reinterpret_cast<glGetUniformfvProc
>(GetGLProcAddress("glGetUniformfv"));
243 fn
.glGetUniformIndicesFn
= 0;
244 fn
.glGetUniformivFn
=
245 reinterpret_cast<glGetUniformivProc
>(GetGLProcAddress("glGetUniformiv"));
246 fn
.glGetUniformLocationFn
= reinterpret_cast<glGetUniformLocationProc
>(
247 GetGLProcAddress("glGetUniformLocation"));
248 fn
.glGetVertexAttribfvFn
= reinterpret_cast<glGetVertexAttribfvProc
>(
249 GetGLProcAddress("glGetVertexAttribfv"));
250 fn
.glGetVertexAttribivFn
= reinterpret_cast<glGetVertexAttribivProc
>(
251 GetGLProcAddress("glGetVertexAttribiv"));
252 fn
.glGetVertexAttribPointervFn
=
253 reinterpret_cast<glGetVertexAttribPointervProc
>(
254 GetGLProcAddress("glGetVertexAttribPointerv"));
255 fn
.glHintFn
= reinterpret_cast<glHintProc
>(GetGLProcAddress("glHint"));
256 fn
.glInsertEventMarkerEXTFn
= 0;
257 fn
.glInvalidateFramebufferFn
= 0;
258 fn
.glInvalidateSubFramebufferFn
= 0;
260 reinterpret_cast<glIsBufferProc
>(GetGLProcAddress("glIsBuffer"));
262 reinterpret_cast<glIsEnabledProc
>(GetGLProcAddress("glIsEnabled"));
263 fn
.glIsFenceAPPLEFn
= 0;
264 fn
.glIsFenceNVFn
= 0;
265 fn
.glIsFramebufferEXTFn
= 0;
267 reinterpret_cast<glIsProgramProc
>(GetGLProcAddress("glIsProgram"));
269 fn
.glIsRenderbufferEXTFn
= 0;
270 fn
.glIsSamplerFn
= 0;
272 reinterpret_cast<glIsShaderProc
>(GetGLProcAddress("glIsShader"));
275 reinterpret_cast<glIsTextureProc
>(GetGLProcAddress("glIsTexture"));
276 fn
.glIsTransformFeedbackFn
= 0;
277 fn
.glIsVertexArrayOESFn
= 0;
279 reinterpret_cast<glLineWidthProc
>(GetGLProcAddress("glLineWidth"));
281 reinterpret_cast<glLinkProgramProc
>(GetGLProcAddress("glLinkProgram"));
282 fn
.glMapBufferFn
= 0;
283 fn
.glMapBufferRangeFn
= 0;
284 fn
.glMatrixLoadfEXTFn
= 0;
285 fn
.glMatrixLoadIdentityEXTFn
= 0;
286 fn
.glPauseTransformFeedbackFn
= 0;
288 reinterpret_cast<glPixelStoreiProc
>(GetGLProcAddress("glPixelStorei"));
289 fn
.glPointParameteriFn
= 0;
290 fn
.glPolygonOffsetFn
= reinterpret_cast<glPolygonOffsetProc
>(
291 GetGLProcAddress("glPolygonOffset"));
292 fn
.glPopGroupMarkerEXTFn
= 0;
293 fn
.glProgramBinaryFn
= 0;
294 fn
.glProgramParameteriFn
= 0;
295 fn
.glPushGroupMarkerEXTFn
= 0;
296 fn
.glQueryCounterFn
= 0;
297 fn
.glReadBufferFn
= 0;
299 reinterpret_cast<glReadPixelsProc
>(GetGLProcAddress("glReadPixels"));
300 fn
.glReleaseShaderCompilerFn
= 0;
301 fn
.glRenderbufferStorageEXTFn
= 0;
302 fn
.glRenderbufferStorageMultisampleFn
= 0;
303 fn
.glRenderbufferStorageMultisampleANGLEFn
= 0;
304 fn
.glRenderbufferStorageMultisampleEXTFn
= 0;
305 fn
.glRenderbufferStorageMultisampleIMGFn
= 0;
306 fn
.glResumeTransformFeedbackFn
= 0;
307 fn
.glSampleCoverageFn
= reinterpret_cast<glSampleCoverageProc
>(
308 GetGLProcAddress("glSampleCoverage"));
309 fn
.glSamplerParameterfFn
= 0;
310 fn
.glSamplerParameterfvFn
= 0;
311 fn
.glSamplerParameteriFn
= 0;
312 fn
.glSamplerParameterivFn
= 0;
314 reinterpret_cast<glScissorProc
>(GetGLProcAddress("glScissor"));
315 fn
.glSetFenceAPPLEFn
= 0;
316 fn
.glSetFenceNVFn
= 0;
317 fn
.glShaderBinaryFn
= 0;
318 fn
.glShaderSourceFn
=
319 reinterpret_cast<glShaderSourceProc
>(GetGLProcAddress("glShaderSource"));
321 reinterpret_cast<glStencilFuncProc
>(GetGLProcAddress("glStencilFunc"));
322 fn
.glStencilFuncSeparateFn
= reinterpret_cast<glStencilFuncSeparateProc
>(
323 GetGLProcAddress("glStencilFuncSeparate"));
325 reinterpret_cast<glStencilMaskProc
>(GetGLProcAddress("glStencilMask"));
326 fn
.glStencilMaskSeparateFn
= reinterpret_cast<glStencilMaskSeparateProc
>(
327 GetGLProcAddress("glStencilMaskSeparate"));
329 reinterpret_cast<glStencilOpProc
>(GetGLProcAddress("glStencilOp"));
330 fn
.glStencilOpSeparateFn
= reinterpret_cast<glStencilOpSeparateProc
>(
331 GetGLProcAddress("glStencilOpSeparate"));
332 fn
.glTestFenceAPPLEFn
= 0;
333 fn
.glTestFenceNVFn
= 0;
335 reinterpret_cast<glTexImage2DProc
>(GetGLProcAddress("glTexImage2D"));
336 fn
.glTexImage3DFn
= 0;
337 fn
.glTexParameterfFn
= reinterpret_cast<glTexParameterfProc
>(
338 GetGLProcAddress("glTexParameterf"));
339 fn
.glTexParameterfvFn
= reinterpret_cast<glTexParameterfvProc
>(
340 GetGLProcAddress("glTexParameterfv"));
341 fn
.glTexParameteriFn
= reinterpret_cast<glTexParameteriProc
>(
342 GetGLProcAddress("glTexParameteri"));
343 fn
.glTexParameterivFn
= reinterpret_cast<glTexParameterivProc
>(
344 GetGLProcAddress("glTexParameteriv"));
345 fn
.glTexStorage2DEXTFn
= 0;
346 fn
.glTexStorage3DFn
= 0;
347 fn
.glTexSubImage2DFn
= reinterpret_cast<glTexSubImage2DProc
>(
348 GetGLProcAddress("glTexSubImage2D"));
349 fn
.glTransformFeedbackVaryingsFn
= 0;
351 reinterpret_cast<glUniform1fProc
>(GetGLProcAddress("glUniform1f"));
353 reinterpret_cast<glUniform1fvProc
>(GetGLProcAddress("glUniform1fv"));
355 reinterpret_cast<glUniform1iProc
>(GetGLProcAddress("glUniform1i"));
357 reinterpret_cast<glUniform1ivProc
>(GetGLProcAddress("glUniform1iv"));
358 fn
.glUniform1uiFn
= 0;
359 fn
.glUniform1uivFn
= 0;
361 reinterpret_cast<glUniform2fProc
>(GetGLProcAddress("glUniform2f"));
363 reinterpret_cast<glUniform2fvProc
>(GetGLProcAddress("glUniform2fv"));
365 reinterpret_cast<glUniform2iProc
>(GetGLProcAddress("glUniform2i"));
367 reinterpret_cast<glUniform2ivProc
>(GetGLProcAddress("glUniform2iv"));
368 fn
.glUniform2uiFn
= 0;
369 fn
.glUniform2uivFn
= 0;
371 reinterpret_cast<glUniform3fProc
>(GetGLProcAddress("glUniform3f"));
373 reinterpret_cast<glUniform3fvProc
>(GetGLProcAddress("glUniform3fv"));
375 reinterpret_cast<glUniform3iProc
>(GetGLProcAddress("glUniform3i"));
377 reinterpret_cast<glUniform3ivProc
>(GetGLProcAddress("glUniform3iv"));
378 fn
.glUniform3uiFn
= 0;
379 fn
.glUniform3uivFn
= 0;
381 reinterpret_cast<glUniform4fProc
>(GetGLProcAddress("glUniform4f"));
383 reinterpret_cast<glUniform4fvProc
>(GetGLProcAddress("glUniform4fv"));
385 reinterpret_cast<glUniform4iProc
>(GetGLProcAddress("glUniform4i"));
387 reinterpret_cast<glUniform4ivProc
>(GetGLProcAddress("glUniform4iv"));
388 fn
.glUniform4uiFn
= 0;
389 fn
.glUniform4uivFn
= 0;
390 fn
.glUniformBlockBindingFn
= 0;
391 fn
.glUniformMatrix2fvFn
= reinterpret_cast<glUniformMatrix2fvProc
>(
392 GetGLProcAddress("glUniformMatrix2fv"));
393 fn
.glUniformMatrix2x3fvFn
= 0;
394 fn
.glUniformMatrix2x4fvFn
= 0;
395 fn
.glUniformMatrix3fvFn
= reinterpret_cast<glUniformMatrix3fvProc
>(
396 GetGLProcAddress("glUniformMatrix3fv"));
397 fn
.glUniformMatrix3x2fvFn
= 0;
398 fn
.glUniformMatrix3x4fvFn
= 0;
399 fn
.glUniformMatrix4fvFn
= reinterpret_cast<glUniformMatrix4fvProc
>(
400 GetGLProcAddress("glUniformMatrix4fv"));
401 fn
.glUniformMatrix4x2fvFn
= 0;
402 fn
.glUniformMatrix4x3fvFn
= 0;
403 fn
.glUnmapBufferFn
= 0;
405 reinterpret_cast<glUseProgramProc
>(GetGLProcAddress("glUseProgram"));
406 fn
.glValidateProgramFn
= reinterpret_cast<glValidateProgramProc
>(
407 GetGLProcAddress("glValidateProgram"));
408 fn
.glVertexAttrib1fFn
= reinterpret_cast<glVertexAttrib1fProc
>(
409 GetGLProcAddress("glVertexAttrib1f"));
410 fn
.glVertexAttrib1fvFn
= reinterpret_cast<glVertexAttrib1fvProc
>(
411 GetGLProcAddress("glVertexAttrib1fv"));
412 fn
.glVertexAttrib2fFn
= reinterpret_cast<glVertexAttrib2fProc
>(
413 GetGLProcAddress("glVertexAttrib2f"));
414 fn
.glVertexAttrib2fvFn
= reinterpret_cast<glVertexAttrib2fvProc
>(
415 GetGLProcAddress("glVertexAttrib2fv"));
416 fn
.glVertexAttrib3fFn
= reinterpret_cast<glVertexAttrib3fProc
>(
417 GetGLProcAddress("glVertexAttrib3f"));
418 fn
.glVertexAttrib3fvFn
= reinterpret_cast<glVertexAttrib3fvProc
>(
419 GetGLProcAddress("glVertexAttrib3fv"));
420 fn
.glVertexAttrib4fFn
= reinterpret_cast<glVertexAttrib4fProc
>(
421 GetGLProcAddress("glVertexAttrib4f"));
422 fn
.glVertexAttrib4fvFn
= reinterpret_cast<glVertexAttrib4fvProc
>(
423 GetGLProcAddress("glVertexAttrib4fv"));
424 fn
.glVertexAttribDivisorANGLEFn
= 0;
425 fn
.glVertexAttribI4iFn
= 0;
426 fn
.glVertexAttribI4ivFn
= 0;
427 fn
.glVertexAttribI4uiFn
= 0;
428 fn
.glVertexAttribI4uivFn
= 0;
429 fn
.glVertexAttribIPointerFn
= 0;
430 fn
.glVertexAttribPointerFn
= reinterpret_cast<glVertexAttribPointerProc
>(
431 GetGLProcAddress("glVertexAttribPointer"));
433 reinterpret_cast<glViewportProc
>(GetGLProcAddress("glViewport"));
437 void DriverGL::InitializeDynamicBindings(GLContext
* context
) {
438 DCHECK(context
&& context
->IsCurrent(NULL
));
439 const GLVersionInfo
* ver
= context
->GetVersionInfo();
440 ALLOW_UNUSED_LOCAL(ver
);
441 std::string extensions
= context
->GetExtensions() + " ";
442 ALLOW_UNUSED_LOCAL(extensions
);
444 ext
.b_GL_ANGLE_framebuffer_blit
=
445 extensions
.find("GL_ANGLE_framebuffer_blit ") != std::string::npos
;
446 ext
.b_GL_ANGLE_framebuffer_multisample
=
447 extensions
.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos
;
448 ext
.b_GL_ANGLE_instanced_arrays
=
449 extensions
.find("GL_ANGLE_instanced_arrays ") != std::string::npos
;
450 ext
.b_GL_ANGLE_translated_shader_source
=
451 extensions
.find("GL_ANGLE_translated_shader_source ") !=
453 ext
.b_GL_APPLE_fence
=
454 extensions
.find("GL_APPLE_fence ") != std::string::npos
;
455 ext
.b_GL_APPLE_vertex_array_object
=
456 extensions
.find("GL_APPLE_vertex_array_object ") != std::string::npos
;
457 ext
.b_GL_ARB_draw_buffers
=
458 extensions
.find("GL_ARB_draw_buffers ") != std::string::npos
;
459 ext
.b_GL_ARB_draw_instanced
=
460 extensions
.find("GL_ARB_draw_instanced ") != std::string::npos
;
461 ext
.b_GL_ARB_get_program_binary
=
462 extensions
.find("GL_ARB_get_program_binary ") != std::string::npos
;
463 ext
.b_GL_ARB_instanced_arrays
=
464 extensions
.find("GL_ARB_instanced_arrays ") != std::string::npos
;
465 ext
.b_GL_ARB_map_buffer_range
=
466 extensions
.find("GL_ARB_map_buffer_range ") != std::string::npos
;
467 ext
.b_GL_ARB_occlusion_query
=
468 extensions
.find("GL_ARB_occlusion_query ") != std::string::npos
;
469 ext
.b_GL_ARB_robustness
=
470 extensions
.find("GL_ARB_robustness ") != std::string::npos
;
471 ext
.b_GL_ARB_sync
= extensions
.find("GL_ARB_sync ") != std::string::npos
;
472 ext
.b_GL_ARB_texture_storage
=
473 extensions
.find("GL_ARB_texture_storage ") != std::string::npos
;
474 ext
.b_GL_ARB_timer_query
=
475 extensions
.find("GL_ARB_timer_query ") != std::string::npos
;
476 ext
.b_GL_ARB_vertex_array_object
=
477 extensions
.find("GL_ARB_vertex_array_object ") != std::string::npos
;
478 ext
.b_GL_CHROMIUM_gles_depth_binding_hack
=
479 extensions
.find("GL_CHROMIUM_gles_depth_binding_hack ") !=
481 ext
.b_GL_CHROMIUM_glgetstringi_hack
=
482 extensions
.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos
;
483 ext
.b_GL_EXT_debug_marker
=
484 extensions
.find("GL_EXT_debug_marker ") != std::string::npos
;
485 ext
.b_GL_EXT_direct_state_access
=
486 extensions
.find("GL_EXT_direct_state_access ") != std::string::npos
;
487 ext
.b_GL_EXT_discard_framebuffer
=
488 extensions
.find("GL_EXT_discard_framebuffer ") != std::string::npos
;
489 ext
.b_GL_EXT_disjoint_timer_query
=
490 extensions
.find("GL_EXT_disjoint_timer_query ") != std::string::npos
;
491 ext
.b_GL_EXT_draw_buffers
=
492 extensions
.find("GL_EXT_draw_buffers ") != std::string::npos
;
493 ext
.b_GL_EXT_framebuffer_blit
=
494 extensions
.find("GL_EXT_framebuffer_blit ") != std::string::npos
;
495 ext
.b_GL_EXT_framebuffer_multisample
=
496 extensions
.find("GL_EXT_framebuffer_multisample ") != std::string::npos
;
497 ext
.b_GL_EXT_framebuffer_object
=
498 extensions
.find("GL_EXT_framebuffer_object ") != std::string::npos
;
499 ext
.b_GL_EXT_map_buffer_range
=
500 extensions
.find("GL_EXT_map_buffer_range ") != std::string::npos
;
501 ext
.b_GL_EXT_multisampled_render_to_texture
=
502 extensions
.find("GL_EXT_multisampled_render_to_texture ") !=
504 ext
.b_GL_EXT_occlusion_query_boolean
=
505 extensions
.find("GL_EXT_occlusion_query_boolean ") != std::string::npos
;
506 ext
.b_GL_EXT_robustness
=
507 extensions
.find("GL_EXT_robustness ") != std::string::npos
;
508 ext
.b_GL_EXT_texture_storage
=
509 extensions
.find("GL_EXT_texture_storage ") != std::string::npos
;
510 ext
.b_GL_EXT_timer_query
=
511 extensions
.find("GL_EXT_timer_query ") != std::string::npos
;
512 ext
.b_GL_IMG_multisampled_render_to_texture
=
513 extensions
.find("GL_IMG_multisampled_render_to_texture ") !=
515 ext
.b_GL_KHR_blend_equation_advanced
=
516 extensions
.find("GL_KHR_blend_equation_advanced ") != std::string::npos
;
517 ext
.b_GL_KHR_robustness
=
518 extensions
.find("GL_KHR_robustness ") != std::string::npos
;
519 ext
.b_GL_NV_blend_equation_advanced
=
520 extensions
.find("GL_NV_blend_equation_advanced ") != std::string::npos
;
521 ext
.b_GL_NV_fence
= extensions
.find("GL_NV_fence ") != std::string::npos
;
522 ext
.b_GL_NV_path_rendering
=
523 extensions
.find("GL_NV_path_rendering ") != std::string::npos
;
524 ext
.b_GL_OES_EGL_image
=
525 extensions
.find("GL_OES_EGL_image ") != std::string::npos
;
526 ext
.b_GL_OES_get_program_binary
=
527 extensions
.find("GL_OES_get_program_binary ") != std::string::npos
;
528 ext
.b_GL_OES_mapbuffer
=
529 extensions
.find("GL_OES_mapbuffer ") != std::string::npos
;
530 ext
.b_GL_OES_vertex_array_object
=
531 extensions
.find("GL_OES_vertex_array_object ") != std::string::npos
;
533 debug_fn
.glBeginQueryFn
= 0;
534 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
536 reinterpret_cast<glBeginQueryProc
>(GetGLProcAddress("glBeginQuery"));
537 DCHECK(fn
.glBeginQueryFn
);
538 } else if (ext
.b_GL_ARB_occlusion_query
) {
540 reinterpret_cast<glBeginQueryProc
>(GetGLProcAddress("glBeginQueryARB"));
541 DCHECK(fn
.glBeginQueryFn
);
542 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
543 ext
.b_GL_EXT_occlusion_query_boolean
) {
545 reinterpret_cast<glBeginQueryProc
>(GetGLProcAddress("glBeginQueryEXT"));
546 DCHECK(fn
.glBeginQueryFn
);
549 debug_fn
.glBeginTransformFeedbackFn
= 0;
550 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
551 fn
.glBeginTransformFeedbackFn
=
552 reinterpret_cast<glBeginTransformFeedbackProc
>(
553 GetGLProcAddress("glBeginTransformFeedback"));
554 DCHECK(fn
.glBeginTransformFeedbackFn
);
557 debug_fn
.glBindBufferBaseFn
= 0;
558 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
559 fn
.glBindBufferBaseFn
= reinterpret_cast<glBindBufferBaseProc
>(
560 GetGLProcAddress("glBindBufferBase"));
561 DCHECK(fn
.glBindBufferBaseFn
);
564 debug_fn
.glBindBufferRangeFn
= 0;
565 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
566 fn
.glBindBufferRangeFn
= reinterpret_cast<glBindBufferRangeProc
>(
567 GetGLProcAddress("glBindBufferRange"));
568 DCHECK(fn
.glBindBufferRangeFn
);
571 debug_fn
.glBindFragDataLocationFn
= 0;
572 if (ver
->IsAtLeastGL(3u, 0u)) {
573 fn
.glBindFragDataLocationFn
= reinterpret_cast<glBindFragDataLocationProc
>(
574 GetGLProcAddress("glBindFragDataLocation"));
575 DCHECK(fn
.glBindFragDataLocationFn
);
578 debug_fn
.glBindFragDataLocationIndexedFn
= 0;
579 if (ver
->IsAtLeastGL(3u, 3u)) {
580 fn
.glBindFragDataLocationIndexedFn
=
581 reinterpret_cast<glBindFragDataLocationIndexedProc
>(
582 GetGLProcAddress("glBindFragDataLocationIndexed"));
583 DCHECK(fn
.glBindFragDataLocationIndexedFn
);
586 debug_fn
.glBindFramebufferEXTFn
= 0;
587 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
588 fn
.glBindFramebufferEXTFn
= reinterpret_cast<glBindFramebufferEXTProc
>(
589 GetGLProcAddress("glBindFramebuffer"));
590 DCHECK(fn
.glBindFramebufferEXTFn
);
591 } else if (ext
.b_GL_EXT_framebuffer_object
) {
592 fn
.glBindFramebufferEXTFn
= reinterpret_cast<glBindFramebufferEXTProc
>(
593 GetGLProcAddress("glBindFramebufferEXT"));
594 DCHECK(fn
.glBindFramebufferEXTFn
);
597 debug_fn
.glBindRenderbufferEXTFn
= 0;
598 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
599 fn
.glBindRenderbufferEXTFn
= reinterpret_cast<glBindRenderbufferEXTProc
>(
600 GetGLProcAddress("glBindRenderbuffer"));
601 DCHECK(fn
.glBindRenderbufferEXTFn
);
602 } else if (ext
.b_GL_EXT_framebuffer_object
) {
603 fn
.glBindRenderbufferEXTFn
= reinterpret_cast<glBindRenderbufferEXTProc
>(
604 GetGLProcAddress("glBindRenderbufferEXT"));
605 DCHECK(fn
.glBindRenderbufferEXTFn
);
608 debug_fn
.glBindSamplerFn
= 0;
609 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
611 reinterpret_cast<glBindSamplerProc
>(GetGLProcAddress("glBindSampler"));
612 DCHECK(fn
.glBindSamplerFn
);
615 debug_fn
.glBindTransformFeedbackFn
= 0;
616 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
617 fn
.glBindTransformFeedbackFn
=
618 reinterpret_cast<glBindTransformFeedbackProc
>(
619 GetGLProcAddress("glBindTransformFeedback"));
620 DCHECK(fn
.glBindTransformFeedbackFn
);
623 debug_fn
.glBindVertexArrayOESFn
= 0;
624 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
625 ext
.b_GL_ARB_vertex_array_object
) {
626 fn
.glBindVertexArrayOESFn
= reinterpret_cast<glBindVertexArrayOESProc
>(
627 GetGLProcAddress("glBindVertexArray"));
628 DCHECK(fn
.glBindVertexArrayOESFn
);
629 } else if (ext
.b_GL_OES_vertex_array_object
) {
630 fn
.glBindVertexArrayOESFn
= reinterpret_cast<glBindVertexArrayOESProc
>(
631 GetGLProcAddress("glBindVertexArrayOES"));
632 DCHECK(fn
.glBindVertexArrayOESFn
);
633 } else if (ext
.b_GL_APPLE_vertex_array_object
) {
634 fn
.glBindVertexArrayOESFn
= reinterpret_cast<glBindVertexArrayOESProc
>(
635 GetGLProcAddress("glBindVertexArrayAPPLE"));
636 DCHECK(fn
.glBindVertexArrayOESFn
);
639 debug_fn
.glBlendBarrierKHRFn
= 0;
640 if (ext
.b_GL_NV_blend_equation_advanced
) {
641 fn
.glBlendBarrierKHRFn
= reinterpret_cast<glBlendBarrierKHRProc
>(
642 GetGLProcAddress("glBlendBarrierNV"));
643 DCHECK(fn
.glBlendBarrierKHRFn
);
644 } else if (ext
.b_GL_KHR_blend_equation_advanced
) {
645 fn
.glBlendBarrierKHRFn
= reinterpret_cast<glBlendBarrierKHRProc
>(
646 GetGLProcAddress("glBlendBarrierKHR"));
647 DCHECK(fn
.glBlendBarrierKHRFn
);
650 debug_fn
.glBlitFramebufferFn
= 0;
651 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
652 fn
.glBlitFramebufferFn
= reinterpret_cast<glBlitFramebufferProc
>(
653 GetGLProcAddress("glBlitFramebuffer"));
654 DCHECK(fn
.glBlitFramebufferFn
);
657 debug_fn
.glBlitFramebufferANGLEFn
= 0;
658 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
659 fn
.glBlitFramebufferANGLEFn
= reinterpret_cast<glBlitFramebufferANGLEProc
>(
660 GetGLProcAddress("glBlitFramebuffer"));
661 DCHECK(fn
.glBlitFramebufferANGLEFn
);
662 } else if (ext
.b_GL_ANGLE_framebuffer_blit
) {
663 fn
.glBlitFramebufferANGLEFn
= reinterpret_cast<glBlitFramebufferANGLEProc
>(
664 GetGLProcAddress("glBlitFramebufferANGLE"));
665 DCHECK(fn
.glBlitFramebufferANGLEFn
);
668 debug_fn
.glBlitFramebufferEXTFn
= 0;
669 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
670 fn
.glBlitFramebufferEXTFn
= reinterpret_cast<glBlitFramebufferEXTProc
>(
671 GetGLProcAddress("glBlitFramebuffer"));
672 DCHECK(fn
.glBlitFramebufferEXTFn
);
673 } else if (ext
.b_GL_EXT_framebuffer_blit
) {
674 fn
.glBlitFramebufferEXTFn
= reinterpret_cast<glBlitFramebufferEXTProc
>(
675 GetGLProcAddress("glBlitFramebufferEXT"));
676 DCHECK(fn
.glBlitFramebufferEXTFn
);
679 debug_fn
.glCheckFramebufferStatusEXTFn
= 0;
680 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
681 fn
.glCheckFramebufferStatusEXTFn
=
682 reinterpret_cast<glCheckFramebufferStatusEXTProc
>(
683 GetGLProcAddress("glCheckFramebufferStatus"));
684 DCHECK(fn
.glCheckFramebufferStatusEXTFn
);
685 } else if (ext
.b_GL_EXT_framebuffer_object
) {
686 fn
.glCheckFramebufferStatusEXTFn
=
687 reinterpret_cast<glCheckFramebufferStatusEXTProc
>(
688 GetGLProcAddress("glCheckFramebufferStatusEXT"));
689 DCHECK(fn
.glCheckFramebufferStatusEXTFn
);
692 debug_fn
.glClearBufferfiFn
= 0;
693 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
694 fn
.glClearBufferfiFn
= reinterpret_cast<glClearBufferfiProc
>(
695 GetGLProcAddress("glClearBufferfi"));
696 DCHECK(fn
.glClearBufferfiFn
);
699 debug_fn
.glClearBufferfvFn
= 0;
700 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
701 fn
.glClearBufferfvFn
= reinterpret_cast<glClearBufferfvProc
>(
702 GetGLProcAddress("glClearBufferfv"));
703 DCHECK(fn
.glClearBufferfvFn
);
706 debug_fn
.glClearBufferivFn
= 0;
707 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
708 fn
.glClearBufferivFn
= reinterpret_cast<glClearBufferivProc
>(
709 GetGLProcAddress("glClearBufferiv"));
710 DCHECK(fn
.glClearBufferivFn
);
713 debug_fn
.glClearBufferuivFn
= 0;
714 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
715 fn
.glClearBufferuivFn
= reinterpret_cast<glClearBufferuivProc
>(
716 GetGLProcAddress("glClearBufferuiv"));
717 DCHECK(fn
.glClearBufferuivFn
);
720 debug_fn
.glClearDepthfFn
= 0;
721 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
723 reinterpret_cast<glClearDepthfProc
>(GetGLProcAddress("glClearDepthf"));
724 DCHECK(fn
.glClearDepthfFn
);
727 debug_fn
.glClientWaitSyncFn
= 0;
728 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
730 fn
.glClientWaitSyncFn
= reinterpret_cast<glClientWaitSyncProc
>(
731 GetGLProcAddress("glClientWaitSync"));
732 DCHECK(fn
.glClientWaitSyncFn
);
735 debug_fn
.glCompressedTexImage3DFn
= 0;
736 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
737 fn
.glCompressedTexImage3DFn
= reinterpret_cast<glCompressedTexImage3DProc
>(
738 GetGLProcAddress("glCompressedTexImage3D"));
739 DCHECK(fn
.glCompressedTexImage3DFn
);
742 debug_fn
.glCopyBufferSubDataFn
= 0;
743 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
744 fn
.glCopyBufferSubDataFn
= reinterpret_cast<glCopyBufferSubDataProc
>(
745 GetGLProcAddress("glCopyBufferSubData"));
746 DCHECK(fn
.glCopyBufferSubDataFn
);
749 debug_fn
.glCopyTexSubImage3DFn
= 0;
750 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
751 fn
.glCopyTexSubImage3DFn
= reinterpret_cast<glCopyTexSubImage3DProc
>(
752 GetGLProcAddress("glCopyTexSubImage3D"));
753 DCHECK(fn
.glCopyTexSubImage3DFn
);
756 debug_fn
.glDeleteFencesAPPLEFn
= 0;
757 if (ext
.b_GL_APPLE_fence
) {
758 fn
.glDeleteFencesAPPLEFn
= reinterpret_cast<glDeleteFencesAPPLEProc
>(
759 GetGLProcAddress("glDeleteFencesAPPLE"));
760 DCHECK(fn
.glDeleteFencesAPPLEFn
);
763 debug_fn
.glDeleteFencesNVFn
= 0;
764 if (ext
.b_GL_NV_fence
) {
765 fn
.glDeleteFencesNVFn
= reinterpret_cast<glDeleteFencesNVProc
>(
766 GetGLProcAddress("glDeleteFencesNV"));
767 DCHECK(fn
.glDeleteFencesNVFn
);
770 debug_fn
.glDeleteFramebuffersEXTFn
= 0;
771 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
772 fn
.glDeleteFramebuffersEXTFn
=
773 reinterpret_cast<glDeleteFramebuffersEXTProc
>(
774 GetGLProcAddress("glDeleteFramebuffers"));
775 DCHECK(fn
.glDeleteFramebuffersEXTFn
);
776 } else if (ext
.b_GL_EXT_framebuffer_object
) {
777 fn
.glDeleteFramebuffersEXTFn
=
778 reinterpret_cast<glDeleteFramebuffersEXTProc
>(
779 GetGLProcAddress("glDeleteFramebuffersEXT"));
780 DCHECK(fn
.glDeleteFramebuffersEXTFn
);
783 debug_fn
.glDeleteQueriesFn
= 0;
784 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
785 fn
.glDeleteQueriesFn
= reinterpret_cast<glDeleteQueriesProc
>(
786 GetGLProcAddress("glDeleteQueries"));
787 DCHECK(fn
.glDeleteQueriesFn
);
788 } else if (ext
.b_GL_ARB_occlusion_query
) {
789 fn
.glDeleteQueriesFn
= reinterpret_cast<glDeleteQueriesProc
>(
790 GetGLProcAddress("glDeleteQueriesARB"));
791 DCHECK(fn
.glDeleteQueriesFn
);
792 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
793 ext
.b_GL_EXT_occlusion_query_boolean
) {
794 fn
.glDeleteQueriesFn
= reinterpret_cast<glDeleteQueriesProc
>(
795 GetGLProcAddress("glDeleteQueriesEXT"));
796 DCHECK(fn
.glDeleteQueriesFn
);
799 debug_fn
.glDeleteRenderbuffersEXTFn
= 0;
800 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
801 fn
.glDeleteRenderbuffersEXTFn
=
802 reinterpret_cast<glDeleteRenderbuffersEXTProc
>(
803 GetGLProcAddress("glDeleteRenderbuffers"));
804 DCHECK(fn
.glDeleteRenderbuffersEXTFn
);
805 } else if (ext
.b_GL_EXT_framebuffer_object
) {
806 fn
.glDeleteRenderbuffersEXTFn
=
807 reinterpret_cast<glDeleteRenderbuffersEXTProc
>(
808 GetGLProcAddress("glDeleteRenderbuffersEXT"));
809 DCHECK(fn
.glDeleteRenderbuffersEXTFn
);
812 debug_fn
.glDeleteSamplersFn
= 0;
813 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
814 fn
.glDeleteSamplersFn
= reinterpret_cast<glDeleteSamplersProc
>(
815 GetGLProcAddress("glDeleteSamplers"));
816 DCHECK(fn
.glDeleteSamplersFn
);
819 debug_fn
.glDeleteSyncFn
= 0;
820 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
823 reinterpret_cast<glDeleteSyncProc
>(GetGLProcAddress("glDeleteSync"));
824 DCHECK(fn
.glDeleteSyncFn
);
827 debug_fn
.glDeleteTransformFeedbacksFn
= 0;
828 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
829 fn
.glDeleteTransformFeedbacksFn
=
830 reinterpret_cast<glDeleteTransformFeedbacksProc
>(
831 GetGLProcAddress("glDeleteTransformFeedbacks"));
832 DCHECK(fn
.glDeleteTransformFeedbacksFn
);
835 debug_fn
.glDeleteVertexArraysOESFn
= 0;
836 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
837 ext
.b_GL_ARB_vertex_array_object
) {
838 fn
.glDeleteVertexArraysOESFn
=
839 reinterpret_cast<glDeleteVertexArraysOESProc
>(
840 GetGLProcAddress("glDeleteVertexArrays"));
841 DCHECK(fn
.glDeleteVertexArraysOESFn
);
842 } else if (ext
.b_GL_OES_vertex_array_object
) {
843 fn
.glDeleteVertexArraysOESFn
=
844 reinterpret_cast<glDeleteVertexArraysOESProc
>(
845 GetGLProcAddress("glDeleteVertexArraysOES"));
846 DCHECK(fn
.glDeleteVertexArraysOESFn
);
847 } else if (ext
.b_GL_APPLE_vertex_array_object
) {
848 fn
.glDeleteVertexArraysOESFn
=
849 reinterpret_cast<glDeleteVertexArraysOESProc
>(
850 GetGLProcAddress("glDeleteVertexArraysAPPLE"));
851 DCHECK(fn
.glDeleteVertexArraysOESFn
);
854 debug_fn
.glDepthRangefFn
= 0;
855 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
857 reinterpret_cast<glDepthRangefProc
>(GetGLProcAddress("glDepthRangef"));
858 DCHECK(fn
.glDepthRangefFn
);
861 debug_fn
.glDiscardFramebufferEXTFn
= 0;
862 if (ext
.b_GL_EXT_discard_framebuffer
) {
863 fn
.glDiscardFramebufferEXTFn
=
864 reinterpret_cast<glDiscardFramebufferEXTProc
>(
865 GetGLProcAddress("glDiscardFramebufferEXT"));
866 DCHECK(fn
.glDiscardFramebufferEXTFn
);
869 debug_fn
.glDrawArraysInstancedANGLEFn
= 0;
870 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
871 fn
.glDrawArraysInstancedANGLEFn
=
872 reinterpret_cast<glDrawArraysInstancedANGLEProc
>(
873 GetGLProcAddress("glDrawArraysInstanced"));
874 DCHECK(fn
.glDrawArraysInstancedANGLEFn
);
875 } else if (ext
.b_GL_ARB_draw_instanced
) {
876 fn
.glDrawArraysInstancedANGLEFn
=
877 reinterpret_cast<glDrawArraysInstancedANGLEProc
>(
878 GetGLProcAddress("glDrawArraysInstancedARB"));
879 DCHECK(fn
.glDrawArraysInstancedANGLEFn
);
880 } else if (ext
.b_GL_ANGLE_instanced_arrays
) {
881 fn
.glDrawArraysInstancedANGLEFn
=
882 reinterpret_cast<glDrawArraysInstancedANGLEProc
>(
883 GetGLProcAddress("glDrawArraysInstancedANGLE"));
884 DCHECK(fn
.glDrawArraysInstancedANGLEFn
);
887 debug_fn
.glDrawBufferFn
= 0;
890 reinterpret_cast<glDrawBufferProc
>(GetGLProcAddress("glDrawBuffer"));
891 DCHECK(fn
.glDrawBufferFn
);
894 debug_fn
.glDrawBuffersARBFn
= 0;
895 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
896 fn
.glDrawBuffersARBFn
= reinterpret_cast<glDrawBuffersARBProc
>(
897 GetGLProcAddress("glDrawBuffers"));
898 DCHECK(fn
.glDrawBuffersARBFn
);
899 } else if (ext
.b_GL_ARB_draw_buffers
) {
900 fn
.glDrawBuffersARBFn
= reinterpret_cast<glDrawBuffersARBProc
>(
901 GetGLProcAddress("glDrawBuffersARB"));
902 DCHECK(fn
.glDrawBuffersARBFn
);
903 } else if (ext
.b_GL_EXT_draw_buffers
) {
904 fn
.glDrawBuffersARBFn
= reinterpret_cast<glDrawBuffersARBProc
>(
905 GetGLProcAddress("glDrawBuffersEXT"));
906 DCHECK(fn
.glDrawBuffersARBFn
);
909 debug_fn
.glDrawElementsInstancedANGLEFn
= 0;
910 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
911 fn
.glDrawElementsInstancedANGLEFn
=
912 reinterpret_cast<glDrawElementsInstancedANGLEProc
>(
913 GetGLProcAddress("glDrawElementsInstanced"));
914 DCHECK(fn
.glDrawElementsInstancedANGLEFn
);
915 } else if (ext
.b_GL_ARB_draw_instanced
) {
916 fn
.glDrawElementsInstancedANGLEFn
=
917 reinterpret_cast<glDrawElementsInstancedANGLEProc
>(
918 GetGLProcAddress("glDrawElementsInstancedARB"));
919 DCHECK(fn
.glDrawElementsInstancedANGLEFn
);
920 } else if (ext
.b_GL_ANGLE_instanced_arrays
) {
921 fn
.glDrawElementsInstancedANGLEFn
=
922 reinterpret_cast<glDrawElementsInstancedANGLEProc
>(
923 GetGLProcAddress("glDrawElementsInstancedANGLE"));
924 DCHECK(fn
.glDrawElementsInstancedANGLEFn
);
927 debug_fn
.glDrawRangeElementsFn
= 0;
928 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
929 fn
.glDrawRangeElementsFn
= reinterpret_cast<glDrawRangeElementsProc
>(
930 GetGLProcAddress("glDrawRangeElements"));
931 DCHECK(fn
.glDrawRangeElementsFn
);
934 debug_fn
.glEGLImageTargetRenderbufferStorageOESFn
= 0;
935 if (ext
.b_GL_OES_EGL_image
) {
936 fn
.glEGLImageTargetRenderbufferStorageOESFn
=
937 reinterpret_cast<glEGLImageTargetRenderbufferStorageOESProc
>(
938 GetGLProcAddress("glEGLImageTargetRenderbufferStorageOES"));
939 DCHECK(fn
.glEGLImageTargetRenderbufferStorageOESFn
);
942 debug_fn
.glEGLImageTargetTexture2DOESFn
= 0;
943 if (ext
.b_GL_OES_EGL_image
) {
944 fn
.glEGLImageTargetTexture2DOESFn
=
945 reinterpret_cast<glEGLImageTargetTexture2DOESProc
>(
946 GetGLProcAddress("glEGLImageTargetTexture2DOES"));
947 DCHECK(fn
.glEGLImageTargetTexture2DOESFn
);
950 debug_fn
.glEndQueryFn
= 0;
951 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
953 reinterpret_cast<glEndQueryProc
>(GetGLProcAddress("glEndQuery"));
954 DCHECK(fn
.glEndQueryFn
);
955 } else if (ext
.b_GL_ARB_occlusion_query
) {
957 reinterpret_cast<glEndQueryProc
>(GetGLProcAddress("glEndQueryARB"));
958 DCHECK(fn
.glEndQueryFn
);
959 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
960 ext
.b_GL_EXT_occlusion_query_boolean
) {
962 reinterpret_cast<glEndQueryProc
>(GetGLProcAddress("glEndQueryEXT"));
963 DCHECK(fn
.glEndQueryFn
);
966 debug_fn
.glEndTransformFeedbackFn
= 0;
967 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
968 fn
.glEndTransformFeedbackFn
= reinterpret_cast<glEndTransformFeedbackProc
>(
969 GetGLProcAddress("glEndTransformFeedback"));
970 DCHECK(fn
.glEndTransformFeedbackFn
);
973 debug_fn
.glFenceSyncFn
= 0;
974 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
977 reinterpret_cast<glFenceSyncProc
>(GetGLProcAddress("glFenceSync"));
978 DCHECK(fn
.glFenceSyncFn
);
981 debug_fn
.glFinishFenceAPPLEFn
= 0;
982 if (ext
.b_GL_APPLE_fence
) {
983 fn
.glFinishFenceAPPLEFn
= reinterpret_cast<glFinishFenceAPPLEProc
>(
984 GetGLProcAddress("glFinishFenceAPPLE"));
985 DCHECK(fn
.glFinishFenceAPPLEFn
);
988 debug_fn
.glFinishFenceNVFn
= 0;
989 if (ext
.b_GL_NV_fence
) {
990 fn
.glFinishFenceNVFn
= reinterpret_cast<glFinishFenceNVProc
>(
991 GetGLProcAddress("glFinishFenceNV"));
992 DCHECK(fn
.glFinishFenceNVFn
);
995 debug_fn
.glFlushMappedBufferRangeFn
= 0;
996 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
997 fn
.glFlushMappedBufferRangeFn
=
998 reinterpret_cast<glFlushMappedBufferRangeProc
>(
999 GetGLProcAddress("glFlushMappedBufferRange"));
1000 DCHECK(fn
.glFlushMappedBufferRangeFn
);
1003 debug_fn
.glFramebufferRenderbufferEXTFn
= 0;
1004 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1005 fn
.glFramebufferRenderbufferEXTFn
=
1006 reinterpret_cast<glFramebufferRenderbufferEXTProc
>(
1007 GetGLProcAddress("glFramebufferRenderbuffer"));
1008 DCHECK(fn
.glFramebufferRenderbufferEXTFn
);
1009 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1010 fn
.glFramebufferRenderbufferEXTFn
=
1011 reinterpret_cast<glFramebufferRenderbufferEXTProc
>(
1012 GetGLProcAddress("glFramebufferRenderbufferEXT"));
1013 DCHECK(fn
.glFramebufferRenderbufferEXTFn
);
1016 debug_fn
.glFramebufferTexture2DEXTFn
= 0;
1017 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1018 fn
.glFramebufferTexture2DEXTFn
=
1019 reinterpret_cast<glFramebufferTexture2DEXTProc
>(
1020 GetGLProcAddress("glFramebufferTexture2D"));
1021 DCHECK(fn
.glFramebufferTexture2DEXTFn
);
1022 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1023 fn
.glFramebufferTexture2DEXTFn
=
1024 reinterpret_cast<glFramebufferTexture2DEXTProc
>(
1025 GetGLProcAddress("glFramebufferTexture2DEXT"));
1026 DCHECK(fn
.glFramebufferTexture2DEXTFn
);
1029 debug_fn
.glFramebufferTexture2DMultisampleEXTFn
= 0;
1030 if (ext
.b_GL_EXT_multisampled_render_to_texture
) {
1031 fn
.glFramebufferTexture2DMultisampleEXTFn
=
1032 reinterpret_cast<glFramebufferTexture2DMultisampleEXTProc
>(
1033 GetGLProcAddress("glFramebufferTexture2DMultisampleEXT"));
1034 DCHECK(fn
.glFramebufferTexture2DMultisampleEXTFn
);
1037 debug_fn
.glFramebufferTexture2DMultisampleIMGFn
= 0;
1038 if (ext
.b_GL_IMG_multisampled_render_to_texture
) {
1039 fn
.glFramebufferTexture2DMultisampleIMGFn
=
1040 reinterpret_cast<glFramebufferTexture2DMultisampleIMGProc
>(
1041 GetGLProcAddress("glFramebufferTexture2DMultisampleIMG"));
1042 DCHECK(fn
.glFramebufferTexture2DMultisampleIMGFn
);
1045 debug_fn
.glFramebufferTextureLayerFn
= 0;
1046 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1047 fn
.glFramebufferTextureLayerFn
=
1048 reinterpret_cast<glFramebufferTextureLayerProc
>(
1049 GetGLProcAddress("glFramebufferTextureLayer"));
1050 DCHECK(fn
.glFramebufferTextureLayerFn
);
1053 debug_fn
.glGenerateMipmapEXTFn
= 0;
1054 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1055 fn
.glGenerateMipmapEXTFn
= reinterpret_cast<glGenerateMipmapEXTProc
>(
1056 GetGLProcAddress("glGenerateMipmap"));
1057 DCHECK(fn
.glGenerateMipmapEXTFn
);
1058 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1059 fn
.glGenerateMipmapEXTFn
= reinterpret_cast<glGenerateMipmapEXTProc
>(
1060 GetGLProcAddress("glGenerateMipmapEXT"));
1061 DCHECK(fn
.glGenerateMipmapEXTFn
);
1064 debug_fn
.glGenFencesAPPLEFn
= 0;
1065 if (ext
.b_GL_APPLE_fence
) {
1066 fn
.glGenFencesAPPLEFn
= reinterpret_cast<glGenFencesAPPLEProc
>(
1067 GetGLProcAddress("glGenFencesAPPLE"));
1068 DCHECK(fn
.glGenFencesAPPLEFn
);
1071 debug_fn
.glGenFencesNVFn
= 0;
1072 if (ext
.b_GL_NV_fence
) {
1073 fn
.glGenFencesNVFn
=
1074 reinterpret_cast<glGenFencesNVProc
>(GetGLProcAddress("glGenFencesNV"));
1075 DCHECK(fn
.glGenFencesNVFn
);
1078 debug_fn
.glGenFramebuffersEXTFn
= 0;
1079 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1080 fn
.glGenFramebuffersEXTFn
= reinterpret_cast<glGenFramebuffersEXTProc
>(
1081 GetGLProcAddress("glGenFramebuffers"));
1082 DCHECK(fn
.glGenFramebuffersEXTFn
);
1083 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1084 fn
.glGenFramebuffersEXTFn
= reinterpret_cast<glGenFramebuffersEXTProc
>(
1085 GetGLProcAddress("glGenFramebuffersEXT"));
1086 DCHECK(fn
.glGenFramebuffersEXTFn
);
1089 debug_fn
.glGenQueriesFn
= 0;
1090 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1092 reinterpret_cast<glGenQueriesProc
>(GetGLProcAddress("glGenQueries"));
1093 DCHECK(fn
.glGenQueriesFn
);
1094 } else if (ext
.b_GL_ARB_occlusion_query
) {
1096 reinterpret_cast<glGenQueriesProc
>(GetGLProcAddress("glGenQueriesARB"));
1097 DCHECK(fn
.glGenQueriesFn
);
1098 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1099 ext
.b_GL_EXT_occlusion_query_boolean
) {
1101 reinterpret_cast<glGenQueriesProc
>(GetGLProcAddress("glGenQueriesEXT"));
1102 DCHECK(fn
.glGenQueriesFn
);
1105 debug_fn
.glGenRenderbuffersEXTFn
= 0;
1106 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1107 fn
.glGenRenderbuffersEXTFn
= reinterpret_cast<glGenRenderbuffersEXTProc
>(
1108 GetGLProcAddress("glGenRenderbuffers"));
1109 DCHECK(fn
.glGenRenderbuffersEXTFn
);
1110 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1111 fn
.glGenRenderbuffersEXTFn
= reinterpret_cast<glGenRenderbuffersEXTProc
>(
1112 GetGLProcAddress("glGenRenderbuffersEXT"));
1113 DCHECK(fn
.glGenRenderbuffersEXTFn
);
1116 debug_fn
.glGenSamplersFn
= 0;
1117 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1118 fn
.glGenSamplersFn
=
1119 reinterpret_cast<glGenSamplersProc
>(GetGLProcAddress("glGenSamplers"));
1120 DCHECK(fn
.glGenSamplersFn
);
1123 debug_fn
.glGenTransformFeedbacksFn
= 0;
1124 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
1125 fn
.glGenTransformFeedbacksFn
=
1126 reinterpret_cast<glGenTransformFeedbacksProc
>(
1127 GetGLProcAddress("glGenTransformFeedbacks"));
1128 DCHECK(fn
.glGenTransformFeedbacksFn
);
1131 debug_fn
.glGenVertexArraysOESFn
= 0;
1132 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
1133 ext
.b_GL_ARB_vertex_array_object
) {
1134 fn
.glGenVertexArraysOESFn
= reinterpret_cast<glGenVertexArraysOESProc
>(
1135 GetGLProcAddress("glGenVertexArrays"));
1136 DCHECK(fn
.glGenVertexArraysOESFn
);
1137 } else if (ext
.b_GL_OES_vertex_array_object
) {
1138 fn
.glGenVertexArraysOESFn
= reinterpret_cast<glGenVertexArraysOESProc
>(
1139 GetGLProcAddress("glGenVertexArraysOES"));
1140 DCHECK(fn
.glGenVertexArraysOESFn
);
1141 } else if (ext
.b_GL_APPLE_vertex_array_object
) {
1142 fn
.glGenVertexArraysOESFn
= reinterpret_cast<glGenVertexArraysOESProc
>(
1143 GetGLProcAddress("glGenVertexArraysAPPLE"));
1144 DCHECK(fn
.glGenVertexArraysOESFn
);
1147 debug_fn
.glGetActiveUniformBlockivFn
= 0;
1148 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1149 fn
.glGetActiveUniformBlockivFn
=
1150 reinterpret_cast<glGetActiveUniformBlockivProc
>(
1151 GetGLProcAddress("glGetActiveUniformBlockiv"));
1152 DCHECK(fn
.glGetActiveUniformBlockivFn
);
1155 debug_fn
.glGetActiveUniformBlockNameFn
= 0;
1156 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1157 fn
.glGetActiveUniformBlockNameFn
=
1158 reinterpret_cast<glGetActiveUniformBlockNameProc
>(
1159 GetGLProcAddress("glGetActiveUniformBlockName"));
1160 DCHECK(fn
.glGetActiveUniformBlockNameFn
);
1163 debug_fn
.glGetActiveUniformsivFn
= 0;
1164 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1165 fn
.glGetActiveUniformsivFn
= reinterpret_cast<glGetActiveUniformsivProc
>(
1166 GetGLProcAddress("glGetActiveUniformsiv"));
1167 DCHECK(fn
.glGetActiveUniformsivFn
);
1170 debug_fn
.glGetFenceivNVFn
= 0;
1171 if (ext
.b_GL_NV_fence
) {
1172 fn
.glGetFenceivNVFn
= reinterpret_cast<glGetFenceivNVProc
>(
1173 GetGLProcAddress("glGetFenceivNV"));
1174 DCHECK(fn
.glGetFenceivNVFn
);
1177 debug_fn
.glGetFragDataLocationFn
= 0;
1178 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1179 fn
.glGetFragDataLocationFn
= reinterpret_cast<glGetFragDataLocationProc
>(
1180 GetGLProcAddress("glGetFragDataLocation"));
1181 DCHECK(fn
.glGetFragDataLocationFn
);
1184 debug_fn
.glGetFramebufferAttachmentParameterivEXTFn
= 0;
1185 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1186 fn
.glGetFramebufferAttachmentParameterivEXTFn
=
1187 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc
>(
1188 GetGLProcAddress("glGetFramebufferAttachmentParameteriv"));
1189 DCHECK(fn
.glGetFramebufferAttachmentParameterivEXTFn
);
1190 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1191 fn
.glGetFramebufferAttachmentParameterivEXTFn
=
1192 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc
>(
1193 GetGLProcAddress("glGetFramebufferAttachmentParameterivEXT"));
1194 DCHECK(fn
.glGetFramebufferAttachmentParameterivEXTFn
);
1197 debug_fn
.glGetGraphicsResetStatusARBFn
= 0;
1198 if (ver
->IsAtLeastGL(4u, 5u)) {
1199 fn
.glGetGraphicsResetStatusARBFn
=
1200 reinterpret_cast<glGetGraphicsResetStatusARBProc
>(
1201 GetGLProcAddress("glGetGraphicsResetStatus"));
1202 DCHECK(fn
.glGetGraphicsResetStatusARBFn
);
1203 } else if (ext
.b_GL_ARB_robustness
) {
1204 fn
.glGetGraphicsResetStatusARBFn
=
1205 reinterpret_cast<glGetGraphicsResetStatusARBProc
>(
1206 GetGLProcAddress("glGetGraphicsResetStatusARB"));
1207 DCHECK(fn
.glGetGraphicsResetStatusARBFn
);
1208 } else if (ext
.b_GL_KHR_robustness
) {
1209 fn
.glGetGraphicsResetStatusARBFn
=
1210 reinterpret_cast<glGetGraphicsResetStatusARBProc
>(
1211 GetGLProcAddress("glGetGraphicsResetStatusKHR"));
1212 DCHECK(fn
.glGetGraphicsResetStatusARBFn
);
1213 } else if (ext
.b_GL_EXT_robustness
) {
1214 fn
.glGetGraphicsResetStatusARBFn
=
1215 reinterpret_cast<glGetGraphicsResetStatusARBProc
>(
1216 GetGLProcAddress("glGetGraphicsResetStatusEXT"));
1217 DCHECK(fn
.glGetGraphicsResetStatusARBFn
);
1220 debug_fn
.glGetInteger64i_vFn
= 0;
1221 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u)) {
1222 fn
.glGetInteger64i_vFn
= reinterpret_cast<glGetInteger64i_vProc
>(
1223 GetGLProcAddress("glGetInteger64i_v"));
1224 DCHECK(fn
.glGetInteger64i_vFn
);
1227 debug_fn
.glGetInteger64vFn
= 0;
1228 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u)) {
1229 fn
.glGetInteger64vFn
= reinterpret_cast<glGetInteger64vProc
>(
1230 GetGLProcAddress("glGetInteger64v"));
1231 DCHECK(fn
.glGetInteger64vFn
);
1234 debug_fn
.glGetIntegeri_vFn
= 0;
1235 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1236 fn
.glGetIntegeri_vFn
= reinterpret_cast<glGetIntegeri_vProc
>(
1237 GetGLProcAddress("glGetIntegeri_v"));
1238 DCHECK(fn
.glGetIntegeri_vFn
);
1241 debug_fn
.glGetInternalformativFn
= 0;
1242 if (ver
->IsAtLeastGL(4u, 2u) || ver
->IsAtLeastGLES(3u, 0u)) {
1243 fn
.glGetInternalformativFn
= reinterpret_cast<glGetInternalformativProc
>(
1244 GetGLProcAddress("glGetInternalformativ"));
1245 DCHECK(fn
.glGetInternalformativFn
);
1248 debug_fn
.glGetProgramBinaryFn
= 0;
1249 if (ver
->IsAtLeastGL(4u, 1u) || ver
->IsAtLeastGLES(3u, 0u) ||
1250 ext
.b_GL_ARB_get_program_binary
) {
1251 fn
.glGetProgramBinaryFn
= reinterpret_cast<glGetProgramBinaryProc
>(
1252 GetGLProcAddress("glGetProgramBinary"));
1253 DCHECK(fn
.glGetProgramBinaryFn
);
1254 } else if (ext
.b_GL_OES_get_program_binary
) {
1255 fn
.glGetProgramBinaryFn
= reinterpret_cast<glGetProgramBinaryProc
>(
1256 GetGLProcAddress("glGetProgramBinaryOES"));
1257 DCHECK(fn
.glGetProgramBinaryFn
);
1260 debug_fn
.glGetProgramResourceLocationFn
= 0;
1261 if (ver
->IsAtLeastGL(4u, 3u) || ver
->IsAtLeastGLES(3u, 1u)) {
1262 fn
.glGetProgramResourceLocationFn
=
1263 reinterpret_cast<glGetProgramResourceLocationProc
>(
1264 GetGLProcAddress("glGetProgramResourceLocation"));
1265 DCHECK(fn
.glGetProgramResourceLocationFn
);
1268 debug_fn
.glGetQueryivFn
= 0;
1269 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1271 reinterpret_cast<glGetQueryivProc
>(GetGLProcAddress("glGetQueryiv"));
1272 DCHECK(fn
.glGetQueryivFn
);
1273 } else if (ext
.b_GL_ARB_occlusion_query
) {
1275 reinterpret_cast<glGetQueryivProc
>(GetGLProcAddress("glGetQueryivARB"));
1276 DCHECK(fn
.glGetQueryivFn
);
1277 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1278 ext
.b_GL_EXT_occlusion_query_boolean
) {
1280 reinterpret_cast<glGetQueryivProc
>(GetGLProcAddress("glGetQueryivEXT"));
1281 DCHECK(fn
.glGetQueryivFn
);
1284 debug_fn
.glGetQueryObjecti64vFn
= 0;
1285 if (ver
->IsAtLeastGL(3u, 3u) || ext
.b_GL_ARB_timer_query
) {
1286 fn
.glGetQueryObjecti64vFn
= reinterpret_cast<glGetQueryObjecti64vProc
>(
1287 GetGLProcAddress("glGetQueryObjecti64v"));
1288 DCHECK(fn
.glGetQueryObjecti64vFn
);
1289 } else if (ext
.b_GL_EXT_timer_query
|| ext
.b_GL_EXT_disjoint_timer_query
) {
1290 fn
.glGetQueryObjecti64vFn
= reinterpret_cast<glGetQueryObjecti64vProc
>(
1291 GetGLProcAddress("glGetQueryObjecti64vEXT"));
1292 DCHECK(fn
.glGetQueryObjecti64vFn
);
1295 debug_fn
.glGetQueryObjectivFn
= 0;
1297 fn
.glGetQueryObjectivFn
= reinterpret_cast<glGetQueryObjectivProc
>(
1298 GetGLProcAddress("glGetQueryObjectiv"));
1299 DCHECK(fn
.glGetQueryObjectivFn
);
1300 } else if (ext
.b_GL_ARB_occlusion_query
) {
1301 fn
.glGetQueryObjectivFn
= reinterpret_cast<glGetQueryObjectivProc
>(
1302 GetGLProcAddress("glGetQueryObjectivARB"));
1303 DCHECK(fn
.glGetQueryObjectivFn
);
1304 } else if (ext
.b_GL_EXT_disjoint_timer_query
) {
1305 fn
.glGetQueryObjectivFn
= reinterpret_cast<glGetQueryObjectivProc
>(
1306 GetGLProcAddress("glGetQueryObjectivEXT"));
1307 DCHECK(fn
.glGetQueryObjectivFn
);
1310 debug_fn
.glGetQueryObjectui64vFn
= 0;
1311 if (ver
->IsAtLeastGL(3u, 3u) || ext
.b_GL_ARB_timer_query
) {
1312 fn
.glGetQueryObjectui64vFn
= reinterpret_cast<glGetQueryObjectui64vProc
>(
1313 GetGLProcAddress("glGetQueryObjectui64v"));
1314 DCHECK(fn
.glGetQueryObjectui64vFn
);
1315 } else if (ext
.b_GL_EXT_timer_query
|| ext
.b_GL_EXT_disjoint_timer_query
) {
1316 fn
.glGetQueryObjectui64vFn
= reinterpret_cast<glGetQueryObjectui64vProc
>(
1317 GetGLProcAddress("glGetQueryObjectui64vEXT"));
1318 DCHECK(fn
.glGetQueryObjectui64vFn
);
1321 debug_fn
.glGetQueryObjectuivFn
= 0;
1322 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1323 fn
.glGetQueryObjectuivFn
= reinterpret_cast<glGetQueryObjectuivProc
>(
1324 GetGLProcAddress("glGetQueryObjectuiv"));
1325 DCHECK(fn
.glGetQueryObjectuivFn
);
1326 } else if (ext
.b_GL_ARB_occlusion_query
) {
1327 fn
.glGetQueryObjectuivFn
= reinterpret_cast<glGetQueryObjectuivProc
>(
1328 GetGLProcAddress("glGetQueryObjectuivARB"));
1329 DCHECK(fn
.glGetQueryObjectuivFn
);
1330 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1331 ext
.b_GL_EXT_occlusion_query_boolean
) {
1332 fn
.glGetQueryObjectuivFn
= reinterpret_cast<glGetQueryObjectuivProc
>(
1333 GetGLProcAddress("glGetQueryObjectuivEXT"));
1334 DCHECK(fn
.glGetQueryObjectuivFn
);
1337 debug_fn
.glGetRenderbufferParameterivEXTFn
= 0;
1338 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1339 fn
.glGetRenderbufferParameterivEXTFn
=
1340 reinterpret_cast<glGetRenderbufferParameterivEXTProc
>(
1341 GetGLProcAddress("glGetRenderbufferParameteriv"));
1342 DCHECK(fn
.glGetRenderbufferParameterivEXTFn
);
1343 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1344 fn
.glGetRenderbufferParameterivEXTFn
=
1345 reinterpret_cast<glGetRenderbufferParameterivEXTProc
>(
1346 GetGLProcAddress("glGetRenderbufferParameterivEXT"));
1347 DCHECK(fn
.glGetRenderbufferParameterivEXTFn
);
1350 debug_fn
.glGetSamplerParameterfvFn
= 0;
1351 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1352 fn
.glGetSamplerParameterfvFn
=
1353 reinterpret_cast<glGetSamplerParameterfvProc
>(
1354 GetGLProcAddress("glGetSamplerParameterfv"));
1355 DCHECK(fn
.glGetSamplerParameterfvFn
);
1358 debug_fn
.glGetSamplerParameterivFn
= 0;
1359 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1360 fn
.glGetSamplerParameterivFn
=
1361 reinterpret_cast<glGetSamplerParameterivProc
>(
1362 GetGLProcAddress("glGetSamplerParameteriv"));
1363 DCHECK(fn
.glGetSamplerParameterivFn
);
1366 debug_fn
.glGetShaderPrecisionFormatFn
= 0;
1367 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
1368 fn
.glGetShaderPrecisionFormatFn
=
1369 reinterpret_cast<glGetShaderPrecisionFormatProc
>(
1370 GetGLProcAddress("glGetShaderPrecisionFormat"));
1371 DCHECK(fn
.glGetShaderPrecisionFormatFn
);
1374 debug_fn
.glGetSyncivFn
= 0;
1375 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
1376 ext
.b_GL_ARB_sync
) {
1378 reinterpret_cast<glGetSyncivProc
>(GetGLProcAddress("glGetSynciv"));
1379 DCHECK(fn
.glGetSyncivFn
);
1382 debug_fn
.glGetTexLevelParameterfvFn
= 0;
1383 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 1u)) {
1384 fn
.glGetTexLevelParameterfvFn
=
1385 reinterpret_cast<glGetTexLevelParameterfvProc
>(
1386 GetGLProcAddress("glGetTexLevelParameterfv"));
1387 DCHECK(fn
.glGetTexLevelParameterfvFn
);
1390 debug_fn
.glGetTexLevelParameterivFn
= 0;
1391 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 1u)) {
1392 fn
.glGetTexLevelParameterivFn
=
1393 reinterpret_cast<glGetTexLevelParameterivProc
>(
1394 GetGLProcAddress("glGetTexLevelParameteriv"));
1395 DCHECK(fn
.glGetTexLevelParameterivFn
);
1398 debug_fn
.glGetTransformFeedbackVaryingFn
= 0;
1399 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1400 fn
.glGetTransformFeedbackVaryingFn
=
1401 reinterpret_cast<glGetTransformFeedbackVaryingProc
>(
1402 GetGLProcAddress("glGetTransformFeedbackVarying"));
1403 DCHECK(fn
.glGetTransformFeedbackVaryingFn
);
1406 debug_fn
.glGetTranslatedShaderSourceANGLEFn
= 0;
1407 if (ext
.b_GL_ANGLE_translated_shader_source
) {
1408 fn
.glGetTranslatedShaderSourceANGLEFn
=
1409 reinterpret_cast<glGetTranslatedShaderSourceANGLEProc
>(
1410 GetGLProcAddress("glGetTranslatedShaderSourceANGLE"));
1411 DCHECK(fn
.glGetTranslatedShaderSourceANGLEFn
);
1414 debug_fn
.glGetUniformBlockIndexFn
= 0;
1415 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1416 fn
.glGetUniformBlockIndexFn
= reinterpret_cast<glGetUniformBlockIndexProc
>(
1417 GetGLProcAddress("glGetUniformBlockIndex"));
1418 DCHECK(fn
.glGetUniformBlockIndexFn
);
1421 debug_fn
.glGetUniformIndicesFn
= 0;
1422 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1423 fn
.glGetUniformIndicesFn
= reinterpret_cast<glGetUniformIndicesProc
>(
1424 GetGLProcAddress("glGetUniformIndices"));
1425 DCHECK(fn
.glGetUniformIndicesFn
);
1428 debug_fn
.glInsertEventMarkerEXTFn
= 0;
1429 if (ext
.b_GL_EXT_debug_marker
) {
1430 fn
.glInsertEventMarkerEXTFn
= reinterpret_cast<glInsertEventMarkerEXTProc
>(
1431 GetGLProcAddress("glInsertEventMarkerEXT"));
1432 DCHECK(fn
.glInsertEventMarkerEXTFn
);
1435 debug_fn
.glInvalidateFramebufferFn
= 0;
1436 if (ver
->IsAtLeastGL(4u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1437 fn
.glInvalidateFramebufferFn
=
1438 reinterpret_cast<glInvalidateFramebufferProc
>(
1439 GetGLProcAddress("glInvalidateFramebuffer"));
1440 DCHECK(fn
.glInvalidateFramebufferFn
);
1443 debug_fn
.glInvalidateSubFramebufferFn
= 0;
1444 if (ver
->IsAtLeastGL(4u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1445 fn
.glInvalidateSubFramebufferFn
=
1446 reinterpret_cast<glInvalidateSubFramebufferProc
>(
1447 GetGLProcAddress("glInvalidateSubFramebuffer"));
1448 DCHECK(fn
.glInvalidateSubFramebufferFn
);
1451 debug_fn
.glIsFenceAPPLEFn
= 0;
1452 if (ext
.b_GL_APPLE_fence
) {
1453 fn
.glIsFenceAPPLEFn
= reinterpret_cast<glIsFenceAPPLEProc
>(
1454 GetGLProcAddress("glIsFenceAPPLE"));
1455 DCHECK(fn
.glIsFenceAPPLEFn
);
1458 debug_fn
.glIsFenceNVFn
= 0;
1459 if (ext
.b_GL_NV_fence
) {
1461 reinterpret_cast<glIsFenceNVProc
>(GetGLProcAddress("glIsFenceNV"));
1462 DCHECK(fn
.glIsFenceNVFn
);
1465 debug_fn
.glIsFramebufferEXTFn
= 0;
1466 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1467 fn
.glIsFramebufferEXTFn
= reinterpret_cast<glIsFramebufferEXTProc
>(
1468 GetGLProcAddress("glIsFramebuffer"));
1469 DCHECK(fn
.glIsFramebufferEXTFn
);
1470 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1471 fn
.glIsFramebufferEXTFn
= reinterpret_cast<glIsFramebufferEXTProc
>(
1472 GetGLProcAddress("glIsFramebufferEXT"));
1473 DCHECK(fn
.glIsFramebufferEXTFn
);
1476 debug_fn
.glIsQueryFn
= 0;
1477 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1479 reinterpret_cast<glIsQueryProc
>(GetGLProcAddress("glIsQuery"));
1480 DCHECK(fn
.glIsQueryFn
);
1481 } else if (ext
.b_GL_ARB_occlusion_query
) {
1483 reinterpret_cast<glIsQueryProc
>(GetGLProcAddress("glIsQueryARB"));
1484 DCHECK(fn
.glIsQueryFn
);
1485 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1486 ext
.b_GL_EXT_occlusion_query_boolean
) {
1488 reinterpret_cast<glIsQueryProc
>(GetGLProcAddress("glIsQueryEXT"));
1489 DCHECK(fn
.glIsQueryFn
);
1492 debug_fn
.glIsRenderbufferEXTFn
= 0;
1493 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1494 fn
.glIsRenderbufferEXTFn
= reinterpret_cast<glIsRenderbufferEXTProc
>(
1495 GetGLProcAddress("glIsRenderbuffer"));
1496 DCHECK(fn
.glIsRenderbufferEXTFn
);
1497 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1498 fn
.glIsRenderbufferEXTFn
= reinterpret_cast<glIsRenderbufferEXTProc
>(
1499 GetGLProcAddress("glIsRenderbufferEXT"));
1500 DCHECK(fn
.glIsRenderbufferEXTFn
);
1503 debug_fn
.glIsSamplerFn
= 0;
1504 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1506 reinterpret_cast<glIsSamplerProc
>(GetGLProcAddress("glIsSampler"));
1507 DCHECK(fn
.glIsSamplerFn
);
1510 debug_fn
.glIsSyncFn
= 0;
1511 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
1512 ext
.b_GL_ARB_sync
) {
1514 reinterpret_cast<glIsSyncProc
>(GetGLProcAddress("glIsSync"));
1515 DCHECK(fn
.glIsSyncFn
);
1518 debug_fn
.glIsTransformFeedbackFn
= 0;
1519 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
1520 fn
.glIsTransformFeedbackFn
= reinterpret_cast<glIsTransformFeedbackProc
>(
1521 GetGLProcAddress("glIsTransformFeedback"));
1522 DCHECK(fn
.glIsTransformFeedbackFn
);
1525 debug_fn
.glIsVertexArrayOESFn
= 0;
1526 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
1527 ext
.b_GL_ARB_vertex_array_object
) {
1528 fn
.glIsVertexArrayOESFn
= reinterpret_cast<glIsVertexArrayOESProc
>(
1529 GetGLProcAddress("glIsVertexArray"));
1530 DCHECK(fn
.glIsVertexArrayOESFn
);
1531 } else if (ext
.b_GL_OES_vertex_array_object
) {
1532 fn
.glIsVertexArrayOESFn
= reinterpret_cast<glIsVertexArrayOESProc
>(
1533 GetGLProcAddress("glIsVertexArrayOES"));
1534 DCHECK(fn
.glIsVertexArrayOESFn
);
1535 } else if (ext
.b_GL_APPLE_vertex_array_object
) {
1536 fn
.glIsVertexArrayOESFn
= reinterpret_cast<glIsVertexArrayOESProc
>(
1537 GetGLProcAddress("glIsVertexArrayAPPLE"));
1538 DCHECK(fn
.glIsVertexArrayOESFn
);
1541 debug_fn
.glMapBufferFn
= 0;
1544 reinterpret_cast<glMapBufferProc
>(GetGLProcAddress("glMapBuffer"));
1545 DCHECK(fn
.glMapBufferFn
);
1546 } else if (ext
.b_GL_OES_mapbuffer
) {
1548 reinterpret_cast<glMapBufferProc
>(GetGLProcAddress("glMapBufferOES"));
1549 DCHECK(fn
.glMapBufferFn
);
1552 debug_fn
.glMapBufferRangeFn
= 0;
1553 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
1554 ext
.b_GL_ARB_map_buffer_range
) {
1555 fn
.glMapBufferRangeFn
= reinterpret_cast<glMapBufferRangeProc
>(
1556 GetGLProcAddress("glMapBufferRange"));
1557 DCHECK(fn
.glMapBufferRangeFn
);
1558 } else if (ext
.b_GL_EXT_map_buffer_range
) {
1559 fn
.glMapBufferRangeFn
= reinterpret_cast<glMapBufferRangeProc
>(
1560 GetGLProcAddress("glMapBufferRangeEXT"));
1561 DCHECK(fn
.glMapBufferRangeFn
);
1564 debug_fn
.glMatrixLoadfEXTFn
= 0;
1565 if (ext
.b_GL_EXT_direct_state_access
|| ext
.b_GL_NV_path_rendering
) {
1566 fn
.glMatrixLoadfEXTFn
= reinterpret_cast<glMatrixLoadfEXTProc
>(
1567 GetGLProcAddress("glMatrixLoadfEXT"));
1568 DCHECK(fn
.glMatrixLoadfEXTFn
);
1571 debug_fn
.glMatrixLoadIdentityEXTFn
= 0;
1572 if (ext
.b_GL_EXT_direct_state_access
|| ext
.b_GL_NV_path_rendering
) {
1573 fn
.glMatrixLoadIdentityEXTFn
=
1574 reinterpret_cast<glMatrixLoadIdentityEXTProc
>(
1575 GetGLProcAddress("glMatrixLoadIdentityEXT"));
1576 DCHECK(fn
.glMatrixLoadIdentityEXTFn
);
1579 debug_fn
.glPauseTransformFeedbackFn
= 0;
1580 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
1581 fn
.glPauseTransformFeedbackFn
=
1582 reinterpret_cast<glPauseTransformFeedbackProc
>(
1583 GetGLProcAddress("glPauseTransformFeedback"));
1584 DCHECK(fn
.glPauseTransformFeedbackFn
);
1587 debug_fn
.glPointParameteriFn
= 0;
1589 fn
.glPointParameteriFn
= reinterpret_cast<glPointParameteriProc
>(
1590 GetGLProcAddress("glPointParameteri"));
1591 DCHECK(fn
.glPointParameteriFn
);
1594 debug_fn
.glPopGroupMarkerEXTFn
= 0;
1595 if (ext
.b_GL_EXT_debug_marker
) {
1596 fn
.glPopGroupMarkerEXTFn
= reinterpret_cast<glPopGroupMarkerEXTProc
>(
1597 GetGLProcAddress("glPopGroupMarkerEXT"));
1598 DCHECK(fn
.glPopGroupMarkerEXTFn
);
1601 debug_fn
.glProgramBinaryFn
= 0;
1602 if (ver
->IsAtLeastGL(4u, 1u) || ver
->IsAtLeastGLES(3u, 0u) ||
1603 ext
.b_GL_ARB_get_program_binary
) {
1604 fn
.glProgramBinaryFn
= reinterpret_cast<glProgramBinaryProc
>(
1605 GetGLProcAddress("glProgramBinary"));
1606 DCHECK(fn
.glProgramBinaryFn
);
1607 } else if (ext
.b_GL_OES_get_program_binary
) {
1608 fn
.glProgramBinaryFn
= reinterpret_cast<glProgramBinaryProc
>(
1609 GetGLProcAddress("glProgramBinaryOES"));
1610 DCHECK(fn
.glProgramBinaryFn
);
1613 debug_fn
.glProgramParameteriFn
= 0;
1614 if (ver
->IsAtLeastGL(4u, 1u) || ver
->IsAtLeastGLES(3u, 0u) ||
1615 ext
.b_GL_ARB_get_program_binary
) {
1616 fn
.glProgramParameteriFn
= reinterpret_cast<glProgramParameteriProc
>(
1617 GetGLProcAddress("glProgramParameteri"));
1618 DCHECK(fn
.glProgramParameteriFn
);
1621 debug_fn
.glPushGroupMarkerEXTFn
= 0;
1622 if (ext
.b_GL_EXT_debug_marker
) {
1623 fn
.glPushGroupMarkerEXTFn
= reinterpret_cast<glPushGroupMarkerEXTProc
>(
1624 GetGLProcAddress("glPushGroupMarkerEXT"));
1625 DCHECK(fn
.glPushGroupMarkerEXTFn
);
1628 debug_fn
.glQueryCounterFn
= 0;
1629 if (ver
->IsAtLeastGL(3u, 3u) || ext
.b_GL_ARB_timer_query
) {
1630 fn
.glQueryCounterFn
= reinterpret_cast<glQueryCounterProc
>(
1631 GetGLProcAddress("glQueryCounter"));
1632 DCHECK(fn
.glQueryCounterFn
);
1633 } else if (ext
.b_GL_EXT_disjoint_timer_query
) {
1634 fn
.glQueryCounterFn
= reinterpret_cast<glQueryCounterProc
>(
1635 GetGLProcAddress("glQueryCounterEXT"));
1636 DCHECK(fn
.glQueryCounterFn
);
1639 debug_fn
.glReadBufferFn
= 0;
1640 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1642 reinterpret_cast<glReadBufferProc
>(GetGLProcAddress("glReadBuffer"));
1643 DCHECK(fn
.glReadBufferFn
);
1646 debug_fn
.glReleaseShaderCompilerFn
= 0;
1647 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
1648 fn
.glReleaseShaderCompilerFn
=
1649 reinterpret_cast<glReleaseShaderCompilerProc
>(
1650 GetGLProcAddress("glReleaseShaderCompiler"));
1651 DCHECK(fn
.glReleaseShaderCompilerFn
);
1654 debug_fn
.glRenderbufferStorageEXTFn
= 0;
1655 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1656 fn
.glRenderbufferStorageEXTFn
=
1657 reinterpret_cast<glRenderbufferStorageEXTProc
>(
1658 GetGLProcAddress("glRenderbufferStorage"));
1659 DCHECK(fn
.glRenderbufferStorageEXTFn
);
1660 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1661 fn
.glRenderbufferStorageEXTFn
=
1662 reinterpret_cast<glRenderbufferStorageEXTProc
>(
1663 GetGLProcAddress("glRenderbufferStorageEXT"));
1664 DCHECK(fn
.glRenderbufferStorageEXTFn
);
1667 debug_fn
.glRenderbufferStorageMultisampleFn
= 0;
1668 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1669 fn
.glRenderbufferStorageMultisampleFn
=
1670 reinterpret_cast<glRenderbufferStorageMultisampleProc
>(
1671 GetGLProcAddress("glRenderbufferStorageMultisample"));
1672 DCHECK(fn
.glRenderbufferStorageMultisampleFn
);
1675 debug_fn
.glRenderbufferStorageMultisampleANGLEFn
= 0;
1676 if (ext
.b_GL_ANGLE_framebuffer_multisample
) {
1677 fn
.glRenderbufferStorageMultisampleANGLEFn
=
1678 reinterpret_cast<glRenderbufferStorageMultisampleANGLEProc
>(
1679 GetGLProcAddress("glRenderbufferStorageMultisampleANGLE"));
1680 DCHECK(fn
.glRenderbufferStorageMultisampleANGLEFn
);
1683 debug_fn
.glRenderbufferStorageMultisampleEXTFn
= 0;
1684 if (ext
.b_GL_EXT_multisampled_render_to_texture
||
1685 ext
.b_GL_EXT_framebuffer_multisample
) {
1686 fn
.glRenderbufferStorageMultisampleEXTFn
=
1687 reinterpret_cast<glRenderbufferStorageMultisampleEXTProc
>(
1688 GetGLProcAddress("glRenderbufferStorageMultisampleEXT"));
1689 DCHECK(fn
.glRenderbufferStorageMultisampleEXTFn
);
1692 debug_fn
.glRenderbufferStorageMultisampleIMGFn
= 0;
1693 if (ext
.b_GL_IMG_multisampled_render_to_texture
) {
1694 fn
.glRenderbufferStorageMultisampleIMGFn
=
1695 reinterpret_cast<glRenderbufferStorageMultisampleIMGProc
>(
1696 GetGLProcAddress("glRenderbufferStorageMultisampleIMG"));
1697 DCHECK(fn
.glRenderbufferStorageMultisampleIMGFn
);
1700 debug_fn
.glResumeTransformFeedbackFn
= 0;
1701 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
1702 fn
.glResumeTransformFeedbackFn
=
1703 reinterpret_cast<glResumeTransformFeedbackProc
>(
1704 GetGLProcAddress("glResumeTransformFeedback"));
1705 DCHECK(fn
.glResumeTransformFeedbackFn
);
1708 debug_fn
.glSamplerParameterfFn
= 0;
1709 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1710 fn
.glSamplerParameterfFn
= reinterpret_cast<glSamplerParameterfProc
>(
1711 GetGLProcAddress("glSamplerParameterf"));
1712 DCHECK(fn
.glSamplerParameterfFn
);
1715 debug_fn
.glSamplerParameterfvFn
= 0;
1716 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1717 fn
.glSamplerParameterfvFn
= reinterpret_cast<glSamplerParameterfvProc
>(
1718 GetGLProcAddress("glSamplerParameterfv"));
1719 DCHECK(fn
.glSamplerParameterfvFn
);
1722 debug_fn
.glSamplerParameteriFn
= 0;
1723 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1724 fn
.glSamplerParameteriFn
= reinterpret_cast<glSamplerParameteriProc
>(
1725 GetGLProcAddress("glSamplerParameteri"));
1726 DCHECK(fn
.glSamplerParameteriFn
);
1729 debug_fn
.glSamplerParameterivFn
= 0;
1730 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1731 fn
.glSamplerParameterivFn
= reinterpret_cast<glSamplerParameterivProc
>(
1732 GetGLProcAddress("glSamplerParameteriv"));
1733 DCHECK(fn
.glSamplerParameterivFn
);
1736 debug_fn
.glSetFenceAPPLEFn
= 0;
1737 if (ext
.b_GL_APPLE_fence
) {
1738 fn
.glSetFenceAPPLEFn
= reinterpret_cast<glSetFenceAPPLEProc
>(
1739 GetGLProcAddress("glSetFenceAPPLE"));
1740 DCHECK(fn
.glSetFenceAPPLEFn
);
1743 debug_fn
.glSetFenceNVFn
= 0;
1744 if (ext
.b_GL_NV_fence
) {
1746 reinterpret_cast<glSetFenceNVProc
>(GetGLProcAddress("glSetFenceNV"));
1747 DCHECK(fn
.glSetFenceNVFn
);
1750 debug_fn
.glShaderBinaryFn
= 0;
1751 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
1752 fn
.glShaderBinaryFn
= reinterpret_cast<glShaderBinaryProc
>(
1753 GetGLProcAddress("glShaderBinary"));
1754 DCHECK(fn
.glShaderBinaryFn
);
1757 debug_fn
.glTestFenceAPPLEFn
= 0;
1758 if (ext
.b_GL_APPLE_fence
) {
1759 fn
.glTestFenceAPPLEFn
= reinterpret_cast<glTestFenceAPPLEProc
>(
1760 GetGLProcAddress("glTestFenceAPPLE"));
1761 DCHECK(fn
.glTestFenceAPPLEFn
);
1764 debug_fn
.glTestFenceNVFn
= 0;
1765 if (ext
.b_GL_NV_fence
) {
1766 fn
.glTestFenceNVFn
=
1767 reinterpret_cast<glTestFenceNVProc
>(GetGLProcAddress("glTestFenceNV"));
1768 DCHECK(fn
.glTestFenceNVFn
);
1771 debug_fn
.glTexImage3DFn
= 0;
1772 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1774 reinterpret_cast<glTexImage3DProc
>(GetGLProcAddress("glTexImage3D"));
1775 DCHECK(fn
.glTexImage3DFn
);
1778 debug_fn
.glTexStorage2DEXTFn
= 0;
1779 if (ver
->IsAtLeastGL(4u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
1780 ext
.b_GL_ARB_texture_storage
) {
1781 fn
.glTexStorage2DEXTFn
= reinterpret_cast<glTexStorage2DEXTProc
>(
1782 GetGLProcAddress("glTexStorage2D"));
1783 DCHECK(fn
.glTexStorage2DEXTFn
);
1784 } else if (ext
.b_GL_EXT_texture_storage
) {
1785 fn
.glTexStorage2DEXTFn
= reinterpret_cast<glTexStorage2DEXTProc
>(
1786 GetGLProcAddress("glTexStorage2DEXT"));
1787 DCHECK(fn
.glTexStorage2DEXTFn
);
1790 debug_fn
.glTexStorage3DFn
= 0;
1791 if (ver
->IsAtLeastGL(4u, 2u) || ver
->IsAtLeastGLES(3u, 0u)) {
1792 fn
.glTexStorage3DFn
= reinterpret_cast<glTexStorage3DProc
>(
1793 GetGLProcAddress("glTexStorage3D"));
1794 DCHECK(fn
.glTexStorage3DFn
);
1797 debug_fn
.glTransformFeedbackVaryingsFn
= 0;
1798 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1799 fn
.glTransformFeedbackVaryingsFn
=
1800 reinterpret_cast<glTransformFeedbackVaryingsProc
>(
1801 GetGLProcAddress("glTransformFeedbackVaryings"));
1802 DCHECK(fn
.glTransformFeedbackVaryingsFn
);
1805 debug_fn
.glUniform1uiFn
= 0;
1806 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1808 reinterpret_cast<glUniform1uiProc
>(GetGLProcAddress("glUniform1ui"));
1809 DCHECK(fn
.glUniform1uiFn
);
1812 debug_fn
.glUniform1uivFn
= 0;
1813 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1814 fn
.glUniform1uivFn
=
1815 reinterpret_cast<glUniform1uivProc
>(GetGLProcAddress("glUniform1uiv"));
1816 DCHECK(fn
.glUniform1uivFn
);
1819 debug_fn
.glUniform2uiFn
= 0;
1820 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1822 reinterpret_cast<glUniform2uiProc
>(GetGLProcAddress("glUniform2ui"));
1823 DCHECK(fn
.glUniform2uiFn
);
1826 debug_fn
.glUniform2uivFn
= 0;
1827 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1828 fn
.glUniform2uivFn
=
1829 reinterpret_cast<glUniform2uivProc
>(GetGLProcAddress("glUniform2uiv"));
1830 DCHECK(fn
.glUniform2uivFn
);
1833 debug_fn
.glUniform3uiFn
= 0;
1834 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1836 reinterpret_cast<glUniform3uiProc
>(GetGLProcAddress("glUniform3ui"));
1837 DCHECK(fn
.glUniform3uiFn
);
1840 debug_fn
.glUniform3uivFn
= 0;
1841 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1842 fn
.glUniform3uivFn
=
1843 reinterpret_cast<glUniform3uivProc
>(GetGLProcAddress("glUniform3uiv"));
1844 DCHECK(fn
.glUniform3uivFn
);
1847 debug_fn
.glUniform4uiFn
= 0;
1848 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1850 reinterpret_cast<glUniform4uiProc
>(GetGLProcAddress("glUniform4ui"));
1851 DCHECK(fn
.glUniform4uiFn
);
1854 debug_fn
.glUniform4uivFn
= 0;
1855 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1856 fn
.glUniform4uivFn
=
1857 reinterpret_cast<glUniform4uivProc
>(GetGLProcAddress("glUniform4uiv"));
1858 DCHECK(fn
.glUniform4uivFn
);
1861 debug_fn
.glUniformBlockBindingFn
= 0;
1862 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1863 fn
.glUniformBlockBindingFn
= reinterpret_cast<glUniformBlockBindingProc
>(
1864 GetGLProcAddress("glUniformBlockBinding"));
1865 DCHECK(fn
.glUniformBlockBindingFn
);
1868 debug_fn
.glUniformMatrix2x3fvFn
= 0;
1869 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1870 fn
.glUniformMatrix2x3fvFn
= reinterpret_cast<glUniformMatrix2x3fvProc
>(
1871 GetGLProcAddress("glUniformMatrix2x3fv"));
1872 DCHECK(fn
.glUniformMatrix2x3fvFn
);
1875 debug_fn
.glUniformMatrix2x4fvFn
= 0;
1876 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1877 fn
.glUniformMatrix2x4fvFn
= reinterpret_cast<glUniformMatrix2x4fvProc
>(
1878 GetGLProcAddress("glUniformMatrix2x4fv"));
1879 DCHECK(fn
.glUniformMatrix2x4fvFn
);
1882 debug_fn
.glUniformMatrix3x2fvFn
= 0;
1883 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1884 fn
.glUniformMatrix3x2fvFn
= reinterpret_cast<glUniformMatrix3x2fvProc
>(
1885 GetGLProcAddress("glUniformMatrix3x2fv"));
1886 DCHECK(fn
.glUniformMatrix3x2fvFn
);
1889 debug_fn
.glUniformMatrix3x4fvFn
= 0;
1890 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1891 fn
.glUniformMatrix3x4fvFn
= reinterpret_cast<glUniformMatrix3x4fvProc
>(
1892 GetGLProcAddress("glUniformMatrix3x4fv"));
1893 DCHECK(fn
.glUniformMatrix3x4fvFn
);
1896 debug_fn
.glUniformMatrix4x2fvFn
= 0;
1897 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1898 fn
.glUniformMatrix4x2fvFn
= reinterpret_cast<glUniformMatrix4x2fvProc
>(
1899 GetGLProcAddress("glUniformMatrix4x2fv"));
1900 DCHECK(fn
.glUniformMatrix4x2fvFn
);
1903 debug_fn
.glUniformMatrix4x3fvFn
= 0;
1904 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1905 fn
.glUniformMatrix4x3fvFn
= reinterpret_cast<glUniformMatrix4x3fvProc
>(
1906 GetGLProcAddress("glUniformMatrix4x3fv"));
1907 DCHECK(fn
.glUniformMatrix4x3fvFn
);
1910 debug_fn
.glUnmapBufferFn
= 0;
1911 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1912 fn
.glUnmapBufferFn
=
1913 reinterpret_cast<glUnmapBufferProc
>(GetGLProcAddress("glUnmapBuffer"));
1914 DCHECK(fn
.glUnmapBufferFn
);
1915 } else if (ext
.b_GL_OES_mapbuffer
) {
1916 fn
.glUnmapBufferFn
= reinterpret_cast<glUnmapBufferProc
>(
1917 GetGLProcAddress("glUnmapBufferOES"));
1918 DCHECK(fn
.glUnmapBufferFn
);
1921 debug_fn
.glVertexAttribDivisorANGLEFn
= 0;
1922 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1923 fn
.glVertexAttribDivisorANGLEFn
=
1924 reinterpret_cast<glVertexAttribDivisorANGLEProc
>(
1925 GetGLProcAddress("glVertexAttribDivisor"));
1926 DCHECK(fn
.glVertexAttribDivisorANGLEFn
);
1927 } else if (ext
.b_GL_ARB_instanced_arrays
) {
1928 fn
.glVertexAttribDivisorANGLEFn
=
1929 reinterpret_cast<glVertexAttribDivisorANGLEProc
>(
1930 GetGLProcAddress("glVertexAttribDivisorARB"));
1931 DCHECK(fn
.glVertexAttribDivisorANGLEFn
);
1932 } else if (ext
.b_GL_ANGLE_instanced_arrays
) {
1933 fn
.glVertexAttribDivisorANGLEFn
=
1934 reinterpret_cast<glVertexAttribDivisorANGLEProc
>(
1935 GetGLProcAddress("glVertexAttribDivisorANGLE"));
1936 DCHECK(fn
.glVertexAttribDivisorANGLEFn
);
1939 debug_fn
.glVertexAttribI4iFn
= 0;
1940 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1941 fn
.glVertexAttribI4iFn
= reinterpret_cast<glVertexAttribI4iProc
>(
1942 GetGLProcAddress("glVertexAttribI4i"));
1943 DCHECK(fn
.glVertexAttribI4iFn
);
1946 debug_fn
.glVertexAttribI4ivFn
= 0;
1947 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1948 fn
.glVertexAttribI4ivFn
= reinterpret_cast<glVertexAttribI4ivProc
>(
1949 GetGLProcAddress("glVertexAttribI4iv"));
1950 DCHECK(fn
.glVertexAttribI4ivFn
);
1953 debug_fn
.glVertexAttribI4uiFn
= 0;
1954 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1955 fn
.glVertexAttribI4uiFn
= reinterpret_cast<glVertexAttribI4uiProc
>(
1956 GetGLProcAddress("glVertexAttribI4ui"));
1957 DCHECK(fn
.glVertexAttribI4uiFn
);
1960 debug_fn
.glVertexAttribI4uivFn
= 0;
1961 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1962 fn
.glVertexAttribI4uivFn
= reinterpret_cast<glVertexAttribI4uivProc
>(
1963 GetGLProcAddress("glVertexAttribI4uiv"));
1964 DCHECK(fn
.glVertexAttribI4uivFn
);
1967 debug_fn
.glVertexAttribIPointerFn
= 0;
1968 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1969 fn
.glVertexAttribIPointerFn
= reinterpret_cast<glVertexAttribIPointerProc
>(
1970 GetGLProcAddress("glVertexAttribIPointer"));
1971 DCHECK(fn
.glVertexAttribIPointerFn
);
1974 debug_fn
.glWaitSyncFn
= 0;
1975 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
1976 ext
.b_GL_ARB_sync
) {
1978 reinterpret_cast<glWaitSyncProc
>(GetGLProcAddress("glWaitSync"));
1979 DCHECK(fn
.glWaitSyncFn
);
1982 if (g_debugBindingsInitialized
)
1983 InitializeDebugBindings();
1988 static void GL_BINDING_CALL
Debug_glActiveTexture(GLenum texture
) {
1989 GL_SERVICE_LOG("glActiveTexture"
1990 << "(" << GLEnums::GetStringEnum(texture
) << ")");
1991 g_driver_gl
.debug_fn
.glActiveTextureFn(texture
);
1994 static void GL_BINDING_CALL
1995 Debug_glAttachShader(GLuint program
, GLuint shader
) {
1996 GL_SERVICE_LOG("glAttachShader"
1997 << "(" << program
<< ", " << shader
<< ")");
1998 g_driver_gl
.debug_fn
.glAttachShaderFn(program
, shader
);
2001 static void GL_BINDING_CALL
Debug_glBeginQuery(GLenum target
, GLuint id
) {
2002 GL_SERVICE_LOG("glBeginQuery"
2003 << "(" << GLEnums::GetStringEnum(target
) << ", " << id
<< ")");
2004 g_driver_gl
.debug_fn
.glBeginQueryFn(target
, id
);
2007 static void GL_BINDING_CALL
2008 Debug_glBeginTransformFeedback(GLenum primitiveMode
) {
2009 GL_SERVICE_LOG("glBeginTransformFeedback"
2010 << "(" << GLEnums::GetStringEnum(primitiveMode
) << ")");
2011 g_driver_gl
.debug_fn
.glBeginTransformFeedbackFn(primitiveMode
);
2014 static void GL_BINDING_CALL
2015 Debug_glBindAttribLocation(GLuint program
, GLuint index
, const char* name
) {
2016 GL_SERVICE_LOG("glBindAttribLocation"
2017 << "(" << program
<< ", " << index
<< ", " << name
<< ")");
2018 g_driver_gl
.debug_fn
.glBindAttribLocationFn(program
, index
, name
);
2021 static void GL_BINDING_CALL
Debug_glBindBuffer(GLenum target
, GLuint buffer
) {
2022 GL_SERVICE_LOG("glBindBuffer"
2023 << "(" << GLEnums::GetStringEnum(target
) << ", " << buffer
2025 g_driver_gl
.debug_fn
.glBindBufferFn(target
, buffer
);
2028 static void GL_BINDING_CALL
2029 Debug_glBindBufferBase(GLenum target
, GLuint index
, GLuint buffer
) {
2030 GL_SERVICE_LOG("glBindBufferBase"
2031 << "(" << GLEnums::GetStringEnum(target
) << ", " << index
2032 << ", " << buffer
<< ")");
2033 g_driver_gl
.debug_fn
.glBindBufferBaseFn(target
, index
, buffer
);
2036 static void GL_BINDING_CALL
Debug_glBindBufferRange(GLenum target
,
2041 GL_SERVICE_LOG("glBindBufferRange"
2042 << "(" << GLEnums::GetStringEnum(target
) << ", " << index
2043 << ", " << buffer
<< ", " << offset
<< ", " << size
<< ")");
2044 g_driver_gl
.debug_fn
.glBindBufferRangeFn(target
, index
, buffer
, offset
, size
);
2047 static void GL_BINDING_CALL
Debug_glBindFragDataLocation(GLuint program
,
2050 GL_SERVICE_LOG("glBindFragDataLocation"
2051 << "(" << program
<< ", " << colorNumber
<< ", " << name
2053 g_driver_gl
.debug_fn
.glBindFragDataLocationFn(program
, colorNumber
, name
);
2056 static void GL_BINDING_CALL
2057 Debug_glBindFragDataLocationIndexed(GLuint program
,
2061 GL_SERVICE_LOG("glBindFragDataLocationIndexed"
2062 << "(" << program
<< ", " << colorNumber
<< ", " << index
2063 << ", " << name
<< ")");
2064 g_driver_gl
.debug_fn
.glBindFragDataLocationIndexedFn(program
, colorNumber
,
2068 static void GL_BINDING_CALL
2069 Debug_glBindFramebufferEXT(GLenum target
, GLuint framebuffer
) {
2070 GL_SERVICE_LOG("glBindFramebufferEXT"
2071 << "(" << GLEnums::GetStringEnum(target
) << ", " << framebuffer
2073 g_driver_gl
.debug_fn
.glBindFramebufferEXTFn(target
, framebuffer
);
2076 static void GL_BINDING_CALL
2077 Debug_glBindRenderbufferEXT(GLenum target
, GLuint renderbuffer
) {
2078 GL_SERVICE_LOG("glBindRenderbufferEXT"
2079 << "(" << GLEnums::GetStringEnum(target
) << ", "
2080 << renderbuffer
<< ")");
2081 g_driver_gl
.debug_fn
.glBindRenderbufferEXTFn(target
, renderbuffer
);
2084 static void GL_BINDING_CALL
Debug_glBindSampler(GLuint unit
, GLuint sampler
) {
2085 GL_SERVICE_LOG("glBindSampler"
2086 << "(" << unit
<< ", " << sampler
<< ")");
2087 g_driver_gl
.debug_fn
.glBindSamplerFn(unit
, sampler
);
2090 static void GL_BINDING_CALL
Debug_glBindTexture(GLenum target
, GLuint texture
) {
2091 GL_SERVICE_LOG("glBindTexture"
2092 << "(" << GLEnums::GetStringEnum(target
) << ", " << texture
2094 g_driver_gl
.debug_fn
.glBindTextureFn(target
, texture
);
2097 static void GL_BINDING_CALL
2098 Debug_glBindTransformFeedback(GLenum target
, GLuint id
) {
2099 GL_SERVICE_LOG("glBindTransformFeedback"
2100 << "(" << GLEnums::GetStringEnum(target
) << ", " << id
<< ")");
2101 g_driver_gl
.debug_fn
.glBindTransformFeedbackFn(target
, id
);
2104 static void GL_BINDING_CALL
Debug_glBindVertexArrayOES(GLuint array
) {
2105 GL_SERVICE_LOG("glBindVertexArrayOES"
2106 << "(" << array
<< ")");
2107 g_driver_gl
.debug_fn
.glBindVertexArrayOESFn(array
);
2110 static void GL_BINDING_CALL
Debug_glBlendBarrierKHR(void) {
2111 GL_SERVICE_LOG("glBlendBarrierKHR"
2114 g_driver_gl
.debug_fn
.glBlendBarrierKHRFn();
2117 static void GL_BINDING_CALL
Debug_glBlendColor(GLclampf red
,
2121 GL_SERVICE_LOG("glBlendColor"
2122 << "(" << red
<< ", " << green
<< ", " << blue
<< ", " << alpha
2124 g_driver_gl
.debug_fn
.glBlendColorFn(red
, green
, blue
, alpha
);
2127 static void GL_BINDING_CALL
Debug_glBlendEquation(GLenum mode
) {
2128 GL_SERVICE_LOG("glBlendEquation"
2129 << "(" << GLEnums::GetStringEnum(mode
) << ")");
2130 g_driver_gl
.debug_fn
.glBlendEquationFn(mode
);
2133 static void GL_BINDING_CALL
2134 Debug_glBlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
2135 GL_SERVICE_LOG("glBlendEquationSeparate"
2136 << "(" << GLEnums::GetStringEnum(modeRGB
) << ", "
2137 << GLEnums::GetStringEnum(modeAlpha
) << ")");
2138 g_driver_gl
.debug_fn
.glBlendEquationSeparateFn(modeRGB
, modeAlpha
);
2141 static void GL_BINDING_CALL
Debug_glBlendFunc(GLenum sfactor
, GLenum dfactor
) {
2142 GL_SERVICE_LOG("glBlendFunc"
2143 << "(" << GLEnums::GetStringEnum(sfactor
) << ", "
2144 << GLEnums::GetStringEnum(dfactor
) << ")");
2145 g_driver_gl
.debug_fn
.glBlendFuncFn(sfactor
, dfactor
);
2148 static void GL_BINDING_CALL
Debug_glBlendFuncSeparate(GLenum srcRGB
,
2152 GL_SERVICE_LOG("glBlendFuncSeparate"
2153 << "(" << GLEnums::GetStringEnum(srcRGB
) << ", "
2154 << GLEnums::GetStringEnum(dstRGB
) << ", "
2155 << GLEnums::GetStringEnum(srcAlpha
) << ", "
2156 << GLEnums::GetStringEnum(dstAlpha
) << ")");
2157 g_driver_gl
.debug_fn
.glBlendFuncSeparateFn(srcRGB
, dstRGB
, srcAlpha
,
2161 static void GL_BINDING_CALL
Debug_glBlitFramebuffer(GLint srcX0
,
2171 GL_SERVICE_LOG("glBlitFramebuffer"
2172 << "(" << srcX0
<< ", " << srcY0
<< ", " << srcX1
<< ", "
2173 << srcY1
<< ", " << dstX0
<< ", " << dstY0
<< ", " << dstX1
2174 << ", " << dstY1
<< ", " << mask
<< ", "
2175 << GLEnums::GetStringEnum(filter
) << ")");
2176 g_driver_gl
.debug_fn
.glBlitFramebufferFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
,
2177 dstY0
, dstX1
, dstY1
, mask
, filter
);
2180 static void GL_BINDING_CALL
Debug_glBlitFramebufferANGLE(GLint srcX0
,
2190 GL_SERVICE_LOG("glBlitFramebufferANGLE"
2191 << "(" << srcX0
<< ", " << srcY0
<< ", " << srcX1
<< ", "
2192 << srcY1
<< ", " << dstX0
<< ", " << dstY0
<< ", " << dstX1
2193 << ", " << dstY1
<< ", " << mask
<< ", "
2194 << GLEnums::GetStringEnum(filter
) << ")");
2195 g_driver_gl
.debug_fn
.glBlitFramebufferANGLEFn(
2196 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
2199 static void GL_BINDING_CALL
Debug_glBlitFramebufferEXT(GLint srcX0
,
2209 GL_SERVICE_LOG("glBlitFramebufferEXT"
2210 << "(" << srcX0
<< ", " << srcY0
<< ", " << srcX1
<< ", "
2211 << srcY1
<< ", " << dstX0
<< ", " << dstY0
<< ", " << dstX1
2212 << ", " << dstY1
<< ", " << mask
<< ", "
2213 << GLEnums::GetStringEnum(filter
) << ")");
2214 g_driver_gl
.debug_fn
.glBlitFramebufferEXTFn(
2215 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
2218 static void GL_BINDING_CALL
Debug_glBufferData(GLenum target
,
2222 GL_SERVICE_LOG("glBufferData"
2223 << "(" << GLEnums::GetStringEnum(target
) << ", " << size
2224 << ", " << static_cast<const void*>(data
) << ", "
2225 << GLEnums::GetStringEnum(usage
) << ")");
2226 g_driver_gl
.debug_fn
.glBufferDataFn(target
, size
, data
, usage
);
2229 static void GL_BINDING_CALL
Debug_glBufferSubData(GLenum target
,
2233 GL_SERVICE_LOG("glBufferSubData"
2234 << "(" << GLEnums::GetStringEnum(target
) << ", " << offset
2235 << ", " << size
<< ", " << static_cast<const void*>(data
)
2237 g_driver_gl
.debug_fn
.glBufferSubDataFn(target
, offset
, size
, data
);
2240 static GLenum GL_BINDING_CALL
Debug_glCheckFramebufferStatusEXT(GLenum target
) {
2241 GL_SERVICE_LOG("glCheckFramebufferStatusEXT"
2242 << "(" << GLEnums::GetStringEnum(target
) << ")");
2243 GLenum result
= g_driver_gl
.debug_fn
.glCheckFramebufferStatusEXTFn(target
);
2245 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringEnum(result
));
2250 static void GL_BINDING_CALL
Debug_glClear(GLbitfield mask
) {
2251 GL_SERVICE_LOG("glClear"
2252 << "(" << mask
<< ")");
2253 g_driver_gl
.debug_fn
.glClearFn(mask
);
2256 static void GL_BINDING_CALL
Debug_glClearBufferfi(GLenum buffer
,
2258 const GLfloat depth
,
2260 GL_SERVICE_LOG("glClearBufferfi"
2261 << "(" << GLEnums::GetStringEnum(buffer
) << ", " << drawbuffer
2262 << ", " << depth
<< ", " << stencil
<< ")");
2263 g_driver_gl
.debug_fn
.glClearBufferfiFn(buffer
, drawbuffer
, depth
, stencil
);
2266 static void GL_BINDING_CALL
2267 Debug_glClearBufferfv(GLenum buffer
, GLint drawbuffer
, const GLfloat
* value
) {
2268 GL_SERVICE_LOG("glClearBufferfv"
2269 << "(" << GLEnums::GetStringEnum(buffer
) << ", " << drawbuffer
2270 << ", " << static_cast<const void*>(value
) << ")");
2271 g_driver_gl
.debug_fn
.glClearBufferfvFn(buffer
, drawbuffer
, value
);
2274 static void GL_BINDING_CALL
2275 Debug_glClearBufferiv(GLenum buffer
, GLint drawbuffer
, const GLint
* value
) {
2276 GL_SERVICE_LOG("glClearBufferiv"
2277 << "(" << GLEnums::GetStringEnum(buffer
) << ", " << drawbuffer
2278 << ", " << static_cast<const void*>(value
) << ")");
2279 g_driver_gl
.debug_fn
.glClearBufferivFn(buffer
, drawbuffer
, value
);
2282 static void GL_BINDING_CALL
2283 Debug_glClearBufferuiv(GLenum buffer
, GLint drawbuffer
, const GLuint
* value
) {
2284 GL_SERVICE_LOG("glClearBufferuiv"
2285 << "(" << GLEnums::GetStringEnum(buffer
) << ", " << drawbuffer
2286 << ", " << static_cast<const void*>(value
) << ")");
2287 g_driver_gl
.debug_fn
.glClearBufferuivFn(buffer
, drawbuffer
, value
);
2290 static void GL_BINDING_CALL
Debug_glClearColor(GLclampf red
,
2294 GL_SERVICE_LOG("glClearColor"
2295 << "(" << red
<< ", " << green
<< ", " << blue
<< ", " << alpha
2297 g_driver_gl
.debug_fn
.glClearColorFn(red
, green
, blue
, alpha
);
2300 static void GL_BINDING_CALL
Debug_glClearDepth(GLclampd depth
) {
2301 GL_SERVICE_LOG("glClearDepth"
2302 << "(" << depth
<< ")");
2303 g_driver_gl
.debug_fn
.glClearDepthFn(depth
);
2306 static void GL_BINDING_CALL
Debug_glClearDepthf(GLclampf depth
) {
2307 GL_SERVICE_LOG("glClearDepthf"
2308 << "(" << depth
<< ")");
2309 g_driver_gl
.debug_fn
.glClearDepthfFn(depth
);
2312 static void GL_BINDING_CALL
Debug_glClearStencil(GLint s
) {
2313 GL_SERVICE_LOG("glClearStencil"
2314 << "(" << s
<< ")");
2315 g_driver_gl
.debug_fn
.glClearStencilFn(s
);
2318 static GLenum GL_BINDING_CALL
2319 Debug_glClientWaitSync(GLsync sync
, GLbitfield flags
, GLuint64 timeout
) {
2320 GL_SERVICE_LOG("glClientWaitSync"
2321 << "(" << sync
<< ", " << flags
<< ", " << timeout
<< ")");
2322 GLenum result
= g_driver_gl
.debug_fn
.glClientWaitSyncFn(sync
, flags
, timeout
);
2323 GL_SERVICE_LOG("GL_RESULT: " << result
);
2327 static void GL_BINDING_CALL
Debug_glColorMask(GLboolean red
,
2331 GL_SERVICE_LOG("glColorMask"
2332 << "(" << GLEnums::GetStringBool(red
) << ", "
2333 << GLEnums::GetStringBool(green
) << ", "
2334 << GLEnums::GetStringBool(blue
) << ", "
2335 << GLEnums::GetStringBool(alpha
) << ")");
2336 g_driver_gl
.debug_fn
.glColorMaskFn(red
, green
, blue
, alpha
);
2339 static void GL_BINDING_CALL
Debug_glCompileShader(GLuint shader
) {
2340 GL_SERVICE_LOG("glCompileShader"
2341 << "(" << shader
<< ")");
2342 g_driver_gl
.debug_fn
.glCompileShaderFn(shader
);
2345 static void GL_BINDING_CALL
Debug_glCompressedTexImage2D(GLenum target
,
2347 GLenum internalformat
,
2353 GL_SERVICE_LOG("glCompressedTexImage2D"
2354 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2355 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
2356 << width
<< ", " << height
<< ", " << border
<< ", "
2357 << imageSize
<< ", " << static_cast<const void*>(data
) << ")");
2358 g_driver_gl
.debug_fn
.glCompressedTexImage2DFn(
2359 target
, level
, internalformat
, width
, height
, border
, imageSize
, data
);
2362 static void GL_BINDING_CALL
Debug_glCompressedTexImage3D(GLenum target
,
2364 GLenum internalformat
,
2371 GL_SERVICE_LOG("glCompressedTexImage3D"
2372 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2373 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
2374 << width
<< ", " << height
<< ", " << depth
<< ", " << border
2375 << ", " << imageSize
<< ", " << static_cast<const void*>(data
)
2377 g_driver_gl
.debug_fn
.glCompressedTexImage3DFn(target
, level
, internalformat
,
2378 width
, height
, depth
, border
,
2382 static void GL_BINDING_CALL
Debug_glCompressedTexSubImage2D(GLenum target
,
2391 GL_SERVICE_LOG("glCompressedTexSubImage2D"
2392 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2393 << ", " << xoffset
<< ", " << yoffset
<< ", " << width
<< ", "
2394 << height
<< ", " << GLEnums::GetStringEnum(format
) << ", "
2395 << imageSize
<< ", " << static_cast<const void*>(data
) << ")");
2396 g_driver_gl
.debug_fn
.glCompressedTexSubImage2DFn(
2397 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
2400 static void GL_BINDING_CALL
Debug_glCopyBufferSubData(GLenum readTarget
,
2402 GLintptr readOffset
,
2403 GLintptr writeOffset
,
2405 GL_SERVICE_LOG("glCopyBufferSubData"
2406 << "(" << GLEnums::GetStringEnum(readTarget
) << ", "
2407 << GLEnums::GetStringEnum(writeTarget
) << ", " << readOffset
2408 << ", " << writeOffset
<< ", " << size
<< ")");
2409 g_driver_gl
.debug_fn
.glCopyBufferSubDataFn(readTarget
, writeTarget
,
2410 readOffset
, writeOffset
, size
);
2413 static void GL_BINDING_CALL
Debug_glCopyTexImage2D(GLenum target
,
2415 GLenum internalformat
,
2421 GL_SERVICE_LOG("glCopyTexImage2D"
2422 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2423 << ", " << GLEnums::GetStringEnum(internalformat
) << ", " << x
2424 << ", " << y
<< ", " << width
<< ", " << height
<< ", "
2426 g_driver_gl
.debug_fn
.glCopyTexImage2DFn(target
, level
, internalformat
, x
, y
,
2427 width
, height
, border
);
2430 static void GL_BINDING_CALL
Debug_glCopyTexSubImage2D(GLenum target
,
2438 GL_SERVICE_LOG("glCopyTexSubImage2D"
2439 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2440 << ", " << xoffset
<< ", " << yoffset
<< ", " << x
<< ", " << y
2441 << ", " << width
<< ", " << height
<< ")");
2442 g_driver_gl
.debug_fn
.glCopyTexSubImage2DFn(target
, level
, xoffset
, yoffset
, x
,
2446 static void GL_BINDING_CALL
Debug_glCopyTexSubImage3D(GLenum target
,
2455 GL_SERVICE_LOG("glCopyTexSubImage3D"
2456 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2457 << ", " << xoffset
<< ", " << yoffset
<< ", " << zoffset
2458 << ", " << x
<< ", " << y
<< ", " << width
<< ", " << height
2460 g_driver_gl
.debug_fn
.glCopyTexSubImage3DFn(target
, level
, xoffset
, yoffset
,
2461 zoffset
, x
, y
, width
, height
);
2464 static GLuint GL_BINDING_CALL
Debug_glCreateProgram(void) {
2465 GL_SERVICE_LOG("glCreateProgram"
2468 GLuint result
= g_driver_gl
.debug_fn
.glCreateProgramFn();
2469 GL_SERVICE_LOG("GL_RESULT: " << result
);
2473 static GLuint GL_BINDING_CALL
Debug_glCreateShader(GLenum type
) {
2474 GL_SERVICE_LOG("glCreateShader"
2475 << "(" << GLEnums::GetStringEnum(type
) << ")");
2476 GLuint result
= g_driver_gl
.debug_fn
.glCreateShaderFn(type
);
2477 GL_SERVICE_LOG("GL_RESULT: " << result
);
2481 static void GL_BINDING_CALL
Debug_glCullFace(GLenum mode
) {
2482 GL_SERVICE_LOG("glCullFace"
2483 << "(" << GLEnums::GetStringEnum(mode
) << ")");
2484 g_driver_gl
.debug_fn
.glCullFaceFn(mode
);
2487 static void GL_BINDING_CALL
2488 Debug_glDeleteBuffersARB(GLsizei n
, const GLuint
* buffers
) {
2489 GL_SERVICE_LOG("glDeleteBuffersARB"
2490 << "(" << n
<< ", " << static_cast<const void*>(buffers
)
2492 g_driver_gl
.debug_fn
.glDeleteBuffersARBFn(n
, buffers
);
2495 static void GL_BINDING_CALL
2496 Debug_glDeleteFencesAPPLE(GLsizei n
, const GLuint
* fences
) {
2497 GL_SERVICE_LOG("glDeleteFencesAPPLE"
2498 << "(" << n
<< ", " << static_cast<const void*>(fences
)
2500 g_driver_gl
.debug_fn
.glDeleteFencesAPPLEFn(n
, fences
);
2503 static void GL_BINDING_CALL
2504 Debug_glDeleteFencesNV(GLsizei n
, const GLuint
* fences
) {
2505 GL_SERVICE_LOG("glDeleteFencesNV"
2506 << "(" << n
<< ", " << static_cast<const void*>(fences
)
2508 g_driver_gl
.debug_fn
.glDeleteFencesNVFn(n
, fences
);
2511 static void GL_BINDING_CALL
2512 Debug_glDeleteFramebuffersEXT(GLsizei n
, const GLuint
* framebuffers
) {
2513 GL_SERVICE_LOG("glDeleteFramebuffersEXT"
2514 << "(" << n
<< ", " << static_cast<const void*>(framebuffers
)
2516 g_driver_gl
.debug_fn
.glDeleteFramebuffersEXTFn(n
, framebuffers
);
2519 static void GL_BINDING_CALL
Debug_glDeleteProgram(GLuint program
) {
2520 GL_SERVICE_LOG("glDeleteProgram"
2521 << "(" << program
<< ")");
2522 g_driver_gl
.debug_fn
.glDeleteProgramFn(program
);
2525 static void GL_BINDING_CALL
2526 Debug_glDeleteQueries(GLsizei n
, const GLuint
* ids
) {
2527 GL_SERVICE_LOG("glDeleteQueries"
2528 << "(" << n
<< ", " << static_cast<const void*>(ids
) << ")");
2529 g_driver_gl
.debug_fn
.glDeleteQueriesFn(n
, ids
);
2532 static void GL_BINDING_CALL
2533 Debug_glDeleteRenderbuffersEXT(GLsizei n
, const GLuint
* renderbuffers
) {
2534 GL_SERVICE_LOG("glDeleteRenderbuffersEXT"
2535 << "(" << n
<< ", " << static_cast<const void*>(renderbuffers
)
2537 g_driver_gl
.debug_fn
.glDeleteRenderbuffersEXTFn(n
, renderbuffers
);
2540 static void GL_BINDING_CALL
2541 Debug_glDeleteSamplers(GLsizei n
, const GLuint
* samplers
) {
2542 GL_SERVICE_LOG("glDeleteSamplers"
2543 << "(" << n
<< ", " << static_cast<const void*>(samplers
)
2545 g_driver_gl
.debug_fn
.glDeleteSamplersFn(n
, samplers
);
2548 static void GL_BINDING_CALL
Debug_glDeleteShader(GLuint shader
) {
2549 GL_SERVICE_LOG("glDeleteShader"
2550 << "(" << shader
<< ")");
2551 g_driver_gl
.debug_fn
.glDeleteShaderFn(shader
);
2554 static void GL_BINDING_CALL
Debug_glDeleteSync(GLsync sync
) {
2555 GL_SERVICE_LOG("glDeleteSync"
2556 << "(" << sync
<< ")");
2557 g_driver_gl
.debug_fn
.glDeleteSyncFn(sync
);
2560 static void GL_BINDING_CALL
2561 Debug_glDeleteTextures(GLsizei n
, const GLuint
* textures
) {
2562 GL_SERVICE_LOG("glDeleteTextures"
2563 << "(" << n
<< ", " << static_cast<const void*>(textures
)
2565 g_driver_gl
.debug_fn
.glDeleteTexturesFn(n
, textures
);
2568 static void GL_BINDING_CALL
2569 Debug_glDeleteTransformFeedbacks(GLsizei n
, const GLuint
* ids
) {
2570 GL_SERVICE_LOG("glDeleteTransformFeedbacks"
2571 << "(" << n
<< ", " << static_cast<const void*>(ids
) << ")");
2572 g_driver_gl
.debug_fn
.glDeleteTransformFeedbacksFn(n
, ids
);
2575 static void GL_BINDING_CALL
2576 Debug_glDeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
2577 GL_SERVICE_LOG("glDeleteVertexArraysOES"
2578 << "(" << n
<< ", " << static_cast<const void*>(arrays
)
2580 g_driver_gl
.debug_fn
.glDeleteVertexArraysOESFn(n
, arrays
);
2583 static void GL_BINDING_CALL
Debug_glDepthFunc(GLenum func
) {
2584 GL_SERVICE_LOG("glDepthFunc"
2585 << "(" << GLEnums::GetStringEnum(func
) << ")");
2586 g_driver_gl
.debug_fn
.glDepthFuncFn(func
);
2589 static void GL_BINDING_CALL
Debug_glDepthMask(GLboolean flag
) {
2590 GL_SERVICE_LOG("glDepthMask"
2591 << "(" << GLEnums::GetStringBool(flag
) << ")");
2592 g_driver_gl
.debug_fn
.glDepthMaskFn(flag
);
2595 static void GL_BINDING_CALL
Debug_glDepthRange(GLclampd zNear
, GLclampd zFar
) {
2596 GL_SERVICE_LOG("glDepthRange"
2597 << "(" << zNear
<< ", " << zFar
<< ")");
2598 g_driver_gl
.debug_fn
.glDepthRangeFn(zNear
, zFar
);
2601 static void GL_BINDING_CALL
Debug_glDepthRangef(GLclampf zNear
, GLclampf zFar
) {
2602 GL_SERVICE_LOG("glDepthRangef"
2603 << "(" << zNear
<< ", " << zFar
<< ")");
2604 g_driver_gl
.debug_fn
.glDepthRangefFn(zNear
, zFar
);
2607 static void GL_BINDING_CALL
2608 Debug_glDetachShader(GLuint program
, GLuint shader
) {
2609 GL_SERVICE_LOG("glDetachShader"
2610 << "(" << program
<< ", " << shader
<< ")");
2611 g_driver_gl
.debug_fn
.glDetachShaderFn(program
, shader
);
2614 static void GL_BINDING_CALL
Debug_glDisable(GLenum cap
) {
2615 GL_SERVICE_LOG("glDisable"
2616 << "(" << GLEnums::GetStringEnum(cap
) << ")");
2617 g_driver_gl
.debug_fn
.glDisableFn(cap
);
2620 static void GL_BINDING_CALL
Debug_glDisableVertexAttribArray(GLuint index
) {
2621 GL_SERVICE_LOG("glDisableVertexAttribArray"
2622 << "(" << index
<< ")");
2623 g_driver_gl
.debug_fn
.glDisableVertexAttribArrayFn(index
);
2626 static void GL_BINDING_CALL
2627 Debug_glDiscardFramebufferEXT(GLenum target
,
2628 GLsizei numAttachments
,
2629 const GLenum
* attachments
) {
2630 GL_SERVICE_LOG("glDiscardFramebufferEXT"
2631 << "(" << GLEnums::GetStringEnum(target
) << ", "
2632 << numAttachments
<< ", "
2633 << static_cast<const void*>(attachments
) << ")");
2634 g_driver_gl
.debug_fn
.glDiscardFramebufferEXTFn(target
, numAttachments
,
2638 static void GL_BINDING_CALL
2639 Debug_glDrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
2640 GL_SERVICE_LOG("glDrawArrays"
2641 << "(" << GLEnums::GetStringEnum(mode
) << ", " << first
<< ", "
2643 g_driver_gl
.debug_fn
.glDrawArraysFn(mode
, first
, count
);
2646 static void GL_BINDING_CALL
2647 Debug_glDrawArraysInstancedANGLE(GLenum mode
,
2650 GLsizei primcount
) {
2651 GL_SERVICE_LOG("glDrawArraysInstancedANGLE"
2652 << "(" << GLEnums::GetStringEnum(mode
) << ", " << first
<< ", "
2653 << count
<< ", " << primcount
<< ")");
2654 g_driver_gl
.debug_fn
.glDrawArraysInstancedANGLEFn(mode
, first
, count
,
2658 static void GL_BINDING_CALL
Debug_glDrawBuffer(GLenum mode
) {
2659 GL_SERVICE_LOG("glDrawBuffer"
2660 << "(" << GLEnums::GetStringEnum(mode
) << ")");
2661 g_driver_gl
.debug_fn
.glDrawBufferFn(mode
);
2664 static void GL_BINDING_CALL
2665 Debug_glDrawBuffersARB(GLsizei n
, const GLenum
* bufs
) {
2666 GL_SERVICE_LOG("glDrawBuffersARB"
2667 << "(" << n
<< ", " << static_cast<const void*>(bufs
) << ")");
2668 g_driver_gl
.debug_fn
.glDrawBuffersARBFn(n
, bufs
);
2671 static void GL_BINDING_CALL
Debug_glDrawElements(GLenum mode
,
2674 const void* indices
) {
2675 GL_SERVICE_LOG("glDrawElements"
2676 << "(" << GLEnums::GetStringEnum(mode
) << ", " << count
<< ", "
2677 << GLEnums::GetStringEnum(type
) << ", "
2678 << static_cast<const void*>(indices
) << ")");
2679 g_driver_gl
.debug_fn
.glDrawElementsFn(mode
, count
, type
, indices
);
2682 static void GL_BINDING_CALL
2683 Debug_glDrawElementsInstancedANGLE(GLenum mode
,
2686 const void* indices
,
2687 GLsizei primcount
) {
2688 GL_SERVICE_LOG("glDrawElementsInstancedANGLE"
2689 << "(" << GLEnums::GetStringEnum(mode
) << ", " << count
<< ", "
2690 << GLEnums::GetStringEnum(type
) << ", "
2691 << static_cast<const void*>(indices
) << ", " << primcount
2693 g_driver_gl
.debug_fn
.glDrawElementsInstancedANGLEFn(mode
, count
, type
,
2694 indices
, primcount
);
2697 static void GL_BINDING_CALL
Debug_glDrawRangeElements(GLenum mode
,
2702 const void* indices
) {
2703 GL_SERVICE_LOG("glDrawRangeElements"
2704 << "(" << GLEnums::GetStringEnum(mode
) << ", " << start
<< ", "
2705 << end
<< ", " << count
<< ", " << GLEnums::GetStringEnum(type
)
2706 << ", " << static_cast<const void*>(indices
) << ")");
2707 g_driver_gl
.debug_fn
.glDrawRangeElementsFn(mode
, start
, end
, count
, type
,
2711 static void GL_BINDING_CALL
2712 Debug_glEGLImageTargetRenderbufferStorageOES(GLenum target
,
2713 GLeglImageOES image
) {
2714 GL_SERVICE_LOG("glEGLImageTargetRenderbufferStorageOES"
2715 << "(" << GLEnums::GetStringEnum(target
) << ", " << image
2717 g_driver_gl
.debug_fn
.glEGLImageTargetRenderbufferStorageOESFn(target
, image
);
2720 static void GL_BINDING_CALL
2721 Debug_glEGLImageTargetTexture2DOES(GLenum target
, GLeglImageOES image
) {
2722 GL_SERVICE_LOG("glEGLImageTargetTexture2DOES"
2723 << "(" << GLEnums::GetStringEnum(target
) << ", " << image
2725 g_driver_gl
.debug_fn
.glEGLImageTargetTexture2DOESFn(target
, image
);
2728 static void GL_BINDING_CALL
Debug_glEnable(GLenum cap
) {
2729 GL_SERVICE_LOG("glEnable"
2730 << "(" << GLEnums::GetStringEnum(cap
) << ")");
2731 g_driver_gl
.debug_fn
.glEnableFn(cap
);
2734 static void GL_BINDING_CALL
Debug_glEnableVertexAttribArray(GLuint index
) {
2735 GL_SERVICE_LOG("glEnableVertexAttribArray"
2736 << "(" << index
<< ")");
2737 g_driver_gl
.debug_fn
.glEnableVertexAttribArrayFn(index
);
2740 static void GL_BINDING_CALL
Debug_glEndQuery(GLenum target
) {
2741 GL_SERVICE_LOG("glEndQuery"
2742 << "(" << GLEnums::GetStringEnum(target
) << ")");
2743 g_driver_gl
.debug_fn
.glEndQueryFn(target
);
2746 static void GL_BINDING_CALL
Debug_glEndTransformFeedback(void) {
2747 GL_SERVICE_LOG("glEndTransformFeedback"
2750 g_driver_gl
.debug_fn
.glEndTransformFeedbackFn();
2753 static GLsync GL_BINDING_CALL
2754 Debug_glFenceSync(GLenum condition
, GLbitfield flags
) {
2755 GL_SERVICE_LOG("glFenceSync"
2756 << "(" << GLEnums::GetStringEnum(condition
) << ", " << flags
2758 GLsync result
= g_driver_gl
.debug_fn
.glFenceSyncFn(condition
, flags
);
2759 GL_SERVICE_LOG("GL_RESULT: " << result
);
2763 static void GL_BINDING_CALL
Debug_glFinish(void) {
2764 GL_SERVICE_LOG("glFinish"
2767 g_driver_gl
.debug_fn
.glFinishFn();
2770 static void GL_BINDING_CALL
Debug_glFinishFenceAPPLE(GLuint fence
) {
2771 GL_SERVICE_LOG("glFinishFenceAPPLE"
2772 << "(" << fence
<< ")");
2773 g_driver_gl
.debug_fn
.glFinishFenceAPPLEFn(fence
);
2776 static void GL_BINDING_CALL
Debug_glFinishFenceNV(GLuint fence
) {
2777 GL_SERVICE_LOG("glFinishFenceNV"
2778 << "(" << fence
<< ")");
2779 g_driver_gl
.debug_fn
.glFinishFenceNVFn(fence
);
2782 static void GL_BINDING_CALL
Debug_glFlush(void) {
2783 GL_SERVICE_LOG("glFlush"
2786 g_driver_gl
.debug_fn
.glFlushFn();
2789 static void GL_BINDING_CALL
Debug_glFlushMappedBufferRange(GLenum target
,
2791 GLsizeiptr length
) {
2792 GL_SERVICE_LOG("glFlushMappedBufferRange"
2793 << "(" << GLEnums::GetStringEnum(target
) << ", " << offset
2794 << ", " << length
<< ")");
2795 g_driver_gl
.debug_fn
.glFlushMappedBufferRangeFn(target
, offset
, length
);
2798 static void GL_BINDING_CALL
2799 Debug_glFramebufferRenderbufferEXT(GLenum target
,
2801 GLenum renderbuffertarget
,
2802 GLuint renderbuffer
) {
2803 GL_SERVICE_LOG("glFramebufferRenderbufferEXT"
2804 << "(" << GLEnums::GetStringEnum(target
) << ", "
2805 << GLEnums::GetStringEnum(attachment
) << ", "
2806 << GLEnums::GetStringEnum(renderbuffertarget
) << ", "
2807 << renderbuffer
<< ")");
2808 g_driver_gl
.debug_fn
.glFramebufferRenderbufferEXTFn(
2809 target
, attachment
, renderbuffertarget
, renderbuffer
);
2812 static void GL_BINDING_CALL
Debug_glFramebufferTexture2DEXT(GLenum target
,
2817 GL_SERVICE_LOG("glFramebufferTexture2DEXT"
2818 << "(" << GLEnums::GetStringEnum(target
) << ", "
2819 << GLEnums::GetStringEnum(attachment
) << ", "
2820 << GLEnums::GetStringEnum(textarget
) << ", " << texture
<< ", "
2822 g_driver_gl
.debug_fn
.glFramebufferTexture2DEXTFn(target
, attachment
,
2823 textarget
, texture
, level
);
2826 static void GL_BINDING_CALL
2827 Debug_glFramebufferTexture2DMultisampleEXT(GLenum target
,
2833 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleEXT"
2834 << "(" << GLEnums::GetStringEnum(target
) << ", "
2835 << GLEnums::GetStringEnum(attachment
) << ", "
2836 << GLEnums::GetStringEnum(textarget
) << ", " << texture
<< ", "
2837 << level
<< ", " << samples
<< ")");
2838 g_driver_gl
.debug_fn
.glFramebufferTexture2DMultisampleEXTFn(
2839 target
, attachment
, textarget
, texture
, level
, samples
);
2842 static void GL_BINDING_CALL
2843 Debug_glFramebufferTexture2DMultisampleIMG(GLenum target
,
2849 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleIMG"
2850 << "(" << GLEnums::GetStringEnum(target
) << ", "
2851 << GLEnums::GetStringEnum(attachment
) << ", "
2852 << GLEnums::GetStringEnum(textarget
) << ", " << texture
<< ", "
2853 << level
<< ", " << samples
<< ")");
2854 g_driver_gl
.debug_fn
.glFramebufferTexture2DMultisampleIMGFn(
2855 target
, attachment
, textarget
, texture
, level
, samples
);
2858 static void GL_BINDING_CALL
Debug_glFramebufferTextureLayer(GLenum target
,
2863 GL_SERVICE_LOG("glFramebufferTextureLayer"
2864 << "(" << GLEnums::GetStringEnum(target
) << ", "
2865 << GLEnums::GetStringEnum(attachment
) << ", " << texture
2866 << ", " << level
<< ", " << layer
<< ")");
2867 g_driver_gl
.debug_fn
.glFramebufferTextureLayerFn(target
, attachment
, texture
,
2871 static void GL_BINDING_CALL
Debug_glFrontFace(GLenum mode
) {
2872 GL_SERVICE_LOG("glFrontFace"
2873 << "(" << GLEnums::GetStringEnum(mode
) << ")");
2874 g_driver_gl
.debug_fn
.glFrontFaceFn(mode
);
2877 static void GL_BINDING_CALL
Debug_glGenBuffersARB(GLsizei n
, GLuint
* buffers
) {
2878 GL_SERVICE_LOG("glGenBuffersARB"
2879 << "(" << n
<< ", " << static_cast<const void*>(buffers
)
2881 g_driver_gl
.debug_fn
.glGenBuffersARBFn(n
, buffers
);
2884 static void GL_BINDING_CALL
Debug_glGenerateMipmapEXT(GLenum target
) {
2885 GL_SERVICE_LOG("glGenerateMipmapEXT"
2886 << "(" << GLEnums::GetStringEnum(target
) << ")");
2887 g_driver_gl
.debug_fn
.glGenerateMipmapEXTFn(target
);
2890 static void GL_BINDING_CALL
Debug_glGenFencesAPPLE(GLsizei n
, GLuint
* fences
) {
2891 GL_SERVICE_LOG("glGenFencesAPPLE"
2892 << "(" << n
<< ", " << static_cast<const void*>(fences
)
2894 g_driver_gl
.debug_fn
.glGenFencesAPPLEFn(n
, fences
);
2897 static void GL_BINDING_CALL
Debug_glGenFencesNV(GLsizei n
, GLuint
* fences
) {
2898 GL_SERVICE_LOG("glGenFencesNV"
2899 << "(" << n
<< ", " << static_cast<const void*>(fences
)
2901 g_driver_gl
.debug_fn
.glGenFencesNVFn(n
, fences
);
2904 static void GL_BINDING_CALL
2905 Debug_glGenFramebuffersEXT(GLsizei n
, GLuint
* framebuffers
) {
2906 GL_SERVICE_LOG("glGenFramebuffersEXT"
2907 << "(" << n
<< ", " << static_cast<const void*>(framebuffers
)
2909 g_driver_gl
.debug_fn
.glGenFramebuffersEXTFn(n
, framebuffers
);
2912 static void GL_BINDING_CALL
Debug_glGenQueries(GLsizei n
, GLuint
* ids
) {
2913 GL_SERVICE_LOG("glGenQueries"
2914 << "(" << n
<< ", " << static_cast<const void*>(ids
) << ")");
2915 g_driver_gl
.debug_fn
.glGenQueriesFn(n
, ids
);
2918 static void GL_BINDING_CALL
2919 Debug_glGenRenderbuffersEXT(GLsizei n
, GLuint
* renderbuffers
) {
2920 GL_SERVICE_LOG("glGenRenderbuffersEXT"
2921 << "(" << n
<< ", " << static_cast<const void*>(renderbuffers
)
2923 g_driver_gl
.debug_fn
.glGenRenderbuffersEXTFn(n
, renderbuffers
);
2926 static void GL_BINDING_CALL
Debug_glGenSamplers(GLsizei n
, GLuint
* samplers
) {
2927 GL_SERVICE_LOG("glGenSamplers"
2928 << "(" << n
<< ", " << static_cast<const void*>(samplers
)
2930 g_driver_gl
.debug_fn
.glGenSamplersFn(n
, samplers
);
2933 static void GL_BINDING_CALL
Debug_glGenTextures(GLsizei n
, GLuint
* textures
) {
2934 GL_SERVICE_LOG("glGenTextures"
2935 << "(" << n
<< ", " << static_cast<const void*>(textures
)
2937 g_driver_gl
.debug_fn
.glGenTexturesFn(n
, textures
);
2940 static void GL_BINDING_CALL
2941 Debug_glGenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
2942 GL_SERVICE_LOG("glGenTransformFeedbacks"
2943 << "(" << n
<< ", " << static_cast<const void*>(ids
) << ")");
2944 g_driver_gl
.debug_fn
.glGenTransformFeedbacksFn(n
, ids
);
2947 static void GL_BINDING_CALL
2948 Debug_glGenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
2949 GL_SERVICE_LOG("glGenVertexArraysOES"
2950 << "(" << n
<< ", " << static_cast<const void*>(arrays
)
2952 g_driver_gl
.debug_fn
.glGenVertexArraysOESFn(n
, arrays
);
2955 static void GL_BINDING_CALL
Debug_glGetActiveAttrib(GLuint program
,
2962 GL_SERVICE_LOG("glGetActiveAttrib"
2963 << "(" << program
<< ", " << index
<< ", " << bufsize
<< ", "
2964 << static_cast<const void*>(length
) << ", "
2965 << static_cast<const void*>(size
) << ", "
2966 << static_cast<const void*>(type
) << ", "
2967 << static_cast<const void*>(name
) << ")");
2968 g_driver_gl
.debug_fn
.glGetActiveAttribFn(program
, index
, bufsize
, length
,
2972 static void GL_BINDING_CALL
Debug_glGetActiveUniform(GLuint program
,
2979 GL_SERVICE_LOG("glGetActiveUniform"
2980 << "(" << program
<< ", " << index
<< ", " << bufsize
<< ", "
2981 << static_cast<const void*>(length
) << ", "
2982 << static_cast<const void*>(size
) << ", "
2983 << static_cast<const void*>(type
) << ", "
2984 << static_cast<const void*>(name
) << ")");
2985 g_driver_gl
.debug_fn
.glGetActiveUniformFn(program
, index
, bufsize
, length
,
2989 static void GL_BINDING_CALL
2990 Debug_glGetActiveUniformBlockiv(GLuint program
,
2991 GLuint uniformBlockIndex
,
2994 GL_SERVICE_LOG("glGetActiveUniformBlockiv"
2995 << "(" << program
<< ", " << uniformBlockIndex
<< ", "
2996 << GLEnums::GetStringEnum(pname
) << ", "
2997 << static_cast<const void*>(params
) << ")");
2998 g_driver_gl
.debug_fn
.glGetActiveUniformBlockivFn(program
, uniformBlockIndex
,
3002 static void GL_BINDING_CALL
3003 Debug_glGetActiveUniformBlockName(GLuint program
,
3004 GLuint uniformBlockIndex
,
3007 char* uniformBlockName
) {
3008 GL_SERVICE_LOG("glGetActiveUniformBlockName"
3009 << "(" << program
<< ", " << uniformBlockIndex
<< ", "
3010 << bufSize
<< ", " << static_cast<const void*>(length
) << ", "
3011 << static_cast<const void*>(uniformBlockName
) << ")");
3012 g_driver_gl
.debug_fn
.glGetActiveUniformBlockNameFn(
3013 program
, uniformBlockIndex
, bufSize
, length
, uniformBlockName
);
3016 static void GL_BINDING_CALL
3017 Debug_glGetActiveUniformsiv(GLuint program
,
3018 GLsizei uniformCount
,
3019 const GLuint
* uniformIndices
,
3022 GL_SERVICE_LOG("glGetActiveUniformsiv"
3023 << "(" << program
<< ", " << uniformCount
<< ", "
3024 << static_cast<const void*>(uniformIndices
) << ", "
3025 << GLEnums::GetStringEnum(pname
) << ", "
3026 << static_cast<const void*>(params
) << ")");
3027 g_driver_gl
.debug_fn
.glGetActiveUniformsivFn(program
, uniformCount
,
3028 uniformIndices
, pname
, params
);
3031 static void GL_BINDING_CALL
Debug_glGetAttachedShaders(GLuint program
,
3035 GL_SERVICE_LOG("glGetAttachedShaders"
3036 << "(" << program
<< ", " << maxcount
<< ", "
3037 << static_cast<const void*>(count
) << ", "
3038 << static_cast<const void*>(shaders
) << ")");
3039 g_driver_gl
.debug_fn
.glGetAttachedShadersFn(program
, maxcount
, count
,
3043 static GLint GL_BINDING_CALL
3044 Debug_glGetAttribLocation(GLuint program
, const char* name
) {
3045 GL_SERVICE_LOG("glGetAttribLocation"
3046 << "(" << program
<< ", " << name
<< ")");
3047 GLint result
= g_driver_gl
.debug_fn
.glGetAttribLocationFn(program
, name
);
3048 GL_SERVICE_LOG("GL_RESULT: " << result
);
3052 static void GL_BINDING_CALL
3053 Debug_glGetBooleanv(GLenum pname
, GLboolean
* params
) {
3054 GL_SERVICE_LOG("glGetBooleanv"
3055 << "(" << GLEnums::GetStringEnum(pname
) << ", "
3056 << static_cast<const void*>(params
) << ")");
3057 g_driver_gl
.debug_fn
.glGetBooleanvFn(pname
, params
);
3060 static void GL_BINDING_CALL
3061 Debug_glGetBufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
3062 GL_SERVICE_LOG("glGetBufferParameteriv"
3063 << "(" << GLEnums::GetStringEnum(target
) << ", "
3064 << GLEnums::GetStringEnum(pname
) << ", "
3065 << static_cast<const void*>(params
) << ")");
3066 g_driver_gl
.debug_fn
.glGetBufferParameterivFn(target
, pname
, params
);
3069 static GLenum GL_BINDING_CALL
Debug_glGetError(void) {
3070 GL_SERVICE_LOG("glGetError"
3073 GLenum result
= g_driver_gl
.debug_fn
.glGetErrorFn();
3075 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result
));
3080 static void GL_BINDING_CALL
3081 Debug_glGetFenceivNV(GLuint fence
, GLenum pname
, GLint
* params
) {
3082 GL_SERVICE_LOG("glGetFenceivNV"
3083 << "(" << fence
<< ", " << GLEnums::GetStringEnum(pname
)
3084 << ", " << static_cast<const void*>(params
) << ")");
3085 g_driver_gl
.debug_fn
.glGetFenceivNVFn(fence
, pname
, params
);
3088 static void GL_BINDING_CALL
Debug_glGetFloatv(GLenum pname
, GLfloat
* params
) {
3089 GL_SERVICE_LOG("glGetFloatv"
3090 << "(" << GLEnums::GetStringEnum(pname
) << ", "
3091 << static_cast<const void*>(params
) << ")");
3092 g_driver_gl
.debug_fn
.glGetFloatvFn(pname
, params
);
3095 static GLint GL_BINDING_CALL
3096 Debug_glGetFragDataLocation(GLuint program
, const char* name
) {
3097 GL_SERVICE_LOG("glGetFragDataLocation"
3098 << "(" << program
<< ", " << name
<< ")");
3099 GLint result
= g_driver_gl
.debug_fn
.glGetFragDataLocationFn(program
, name
);
3100 GL_SERVICE_LOG("GL_RESULT: " << result
);
3104 static void GL_BINDING_CALL
3105 Debug_glGetFramebufferAttachmentParameterivEXT(GLenum target
,
3109 GL_SERVICE_LOG("glGetFramebufferAttachmentParameterivEXT"
3110 << "(" << GLEnums::GetStringEnum(target
) << ", "
3111 << GLEnums::GetStringEnum(attachment
) << ", "
3112 << GLEnums::GetStringEnum(pname
) << ", "
3113 << static_cast<const void*>(params
) << ")");
3114 g_driver_gl
.debug_fn
.glGetFramebufferAttachmentParameterivEXTFn(
3115 target
, attachment
, pname
, params
);
3118 static GLenum GL_BINDING_CALL
Debug_glGetGraphicsResetStatusARB(void) {
3119 GL_SERVICE_LOG("glGetGraphicsResetStatusARB"
3122 GLenum result
= g_driver_gl
.debug_fn
.glGetGraphicsResetStatusARBFn();
3123 GL_SERVICE_LOG("GL_RESULT: " << result
);
3127 static void GL_BINDING_CALL
3128 Debug_glGetInteger64i_v(GLenum target
, GLuint index
, GLint64
* data
) {
3129 GL_SERVICE_LOG("glGetInteger64i_v"
3130 << "(" << GLEnums::GetStringEnum(target
) << ", " << index
3131 << ", " << static_cast<const void*>(data
) << ")");
3132 g_driver_gl
.debug_fn
.glGetInteger64i_vFn(target
, index
, data
);
3135 static void GL_BINDING_CALL
3136 Debug_glGetInteger64v(GLenum pname
, GLint64
* params
) {
3137 GL_SERVICE_LOG("glGetInteger64v"
3138 << "(" << GLEnums::GetStringEnum(pname
) << ", "
3139 << static_cast<const void*>(params
) << ")");
3140 g_driver_gl
.debug_fn
.glGetInteger64vFn(pname
, params
);
3143 static void GL_BINDING_CALL
3144 Debug_glGetIntegeri_v(GLenum target
, GLuint index
, GLint
* data
) {
3145 GL_SERVICE_LOG("glGetIntegeri_v"
3146 << "(" << GLEnums::GetStringEnum(target
) << ", " << index
3147 << ", " << static_cast<const void*>(data
) << ")");
3148 g_driver_gl
.debug_fn
.glGetIntegeri_vFn(target
, index
, data
);
3151 static void GL_BINDING_CALL
Debug_glGetIntegerv(GLenum pname
, GLint
* params
) {
3152 GL_SERVICE_LOG("glGetIntegerv"
3153 << "(" << GLEnums::GetStringEnum(pname
) << ", "
3154 << static_cast<const void*>(params
) << ")");
3155 g_driver_gl
.debug_fn
.glGetIntegervFn(pname
, params
);
3158 static void GL_BINDING_CALL
Debug_glGetInternalformativ(GLenum target
,
3159 GLenum internalformat
,
3163 GL_SERVICE_LOG("glGetInternalformativ"
3164 << "(" << GLEnums::GetStringEnum(target
) << ", "
3165 << GLEnums::GetStringEnum(internalformat
) << ", "
3166 << GLEnums::GetStringEnum(pname
) << ", " << bufSize
<< ", "
3167 << static_cast<const void*>(params
) << ")");
3168 g_driver_gl
.debug_fn
.glGetInternalformativFn(target
, internalformat
, pname
,
3172 static void GL_BINDING_CALL
Debug_glGetProgramBinary(GLuint program
,
3175 GLenum
* binaryFormat
,
3177 GL_SERVICE_LOG("glGetProgramBinary"
3178 << "(" << program
<< ", " << bufSize
<< ", "
3179 << static_cast<const void*>(length
) << ", "
3180 << static_cast<const void*>(binaryFormat
) << ", "
3181 << static_cast<const void*>(binary
) << ")");
3182 g_driver_gl
.debug_fn
.glGetProgramBinaryFn(program
, bufSize
, length
,
3183 binaryFormat
, binary
);
3186 static void GL_BINDING_CALL
Debug_glGetProgramInfoLog(GLuint program
,
3190 GL_SERVICE_LOG("glGetProgramInfoLog"
3191 << "(" << program
<< ", " << bufsize
<< ", "
3192 << static_cast<const void*>(length
) << ", "
3193 << static_cast<const void*>(infolog
) << ")");
3194 g_driver_gl
.debug_fn
.glGetProgramInfoLogFn(program
, bufsize
, length
, infolog
);
3197 static void GL_BINDING_CALL
3198 Debug_glGetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
3199 GL_SERVICE_LOG("glGetProgramiv"
3200 << "(" << program
<< ", " << GLEnums::GetStringEnum(pname
)
3201 << ", " << static_cast<const void*>(params
) << ")");
3202 g_driver_gl
.debug_fn
.glGetProgramivFn(program
, pname
, params
);
3205 static GLint GL_BINDING_CALL
3206 Debug_glGetProgramResourceLocation(GLuint program
,
3207 GLenum programInterface
,
3209 GL_SERVICE_LOG("glGetProgramResourceLocation"
3210 << "(" << program
<< ", "
3211 << GLEnums::GetStringEnum(programInterface
) << ", " << name
3213 GLint result
= g_driver_gl
.debug_fn
.glGetProgramResourceLocationFn(
3214 program
, programInterface
, name
);
3215 GL_SERVICE_LOG("GL_RESULT: " << result
);
3219 static void GL_BINDING_CALL
3220 Debug_glGetQueryiv(GLenum target
, GLenum pname
, GLint
* params
) {
3221 GL_SERVICE_LOG("glGetQueryiv"
3222 << "(" << GLEnums::GetStringEnum(target
) << ", "
3223 << GLEnums::GetStringEnum(pname
) << ", "
3224 << static_cast<const void*>(params
) << ")");
3225 g_driver_gl
.debug_fn
.glGetQueryivFn(target
, pname
, params
);
3228 static void GL_BINDING_CALL
3229 Debug_glGetQueryObjecti64v(GLuint id
, GLenum pname
, GLint64
* params
) {
3230 GL_SERVICE_LOG("glGetQueryObjecti64v"
3231 << "(" << id
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3232 << static_cast<const void*>(params
) << ")");
3233 g_driver_gl
.debug_fn
.glGetQueryObjecti64vFn(id
, pname
, params
);
3236 static void GL_BINDING_CALL
3237 Debug_glGetQueryObjectiv(GLuint id
, GLenum pname
, GLint
* params
) {
3238 GL_SERVICE_LOG("glGetQueryObjectiv"
3239 << "(" << id
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3240 << static_cast<const void*>(params
) << ")");
3241 g_driver_gl
.debug_fn
.glGetQueryObjectivFn(id
, pname
, params
);
3244 static void GL_BINDING_CALL
3245 Debug_glGetQueryObjectui64v(GLuint id
, GLenum pname
, GLuint64
* params
) {
3246 GL_SERVICE_LOG("glGetQueryObjectui64v"
3247 << "(" << id
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3248 << static_cast<const void*>(params
) << ")");
3249 g_driver_gl
.debug_fn
.glGetQueryObjectui64vFn(id
, pname
, params
);
3252 static void GL_BINDING_CALL
3253 Debug_glGetQueryObjectuiv(GLuint id
, GLenum pname
, GLuint
* params
) {
3254 GL_SERVICE_LOG("glGetQueryObjectuiv"
3255 << "(" << id
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3256 << static_cast<const void*>(params
) << ")");
3257 g_driver_gl
.debug_fn
.glGetQueryObjectuivFn(id
, pname
, params
);
3260 static void GL_BINDING_CALL
3261 Debug_glGetRenderbufferParameterivEXT(GLenum target
,
3264 GL_SERVICE_LOG("glGetRenderbufferParameterivEXT"
3265 << "(" << GLEnums::GetStringEnum(target
) << ", "
3266 << GLEnums::GetStringEnum(pname
) << ", "
3267 << static_cast<const void*>(params
) << ")");
3268 g_driver_gl
.debug_fn
.glGetRenderbufferParameterivEXTFn(target
, pname
, params
);
3271 static void GL_BINDING_CALL
3272 Debug_glGetSamplerParameterfv(GLuint sampler
, GLenum pname
, GLfloat
* params
) {
3273 GL_SERVICE_LOG("glGetSamplerParameterfv"
3274 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
3275 << ", " << static_cast<const void*>(params
) << ")");
3276 g_driver_gl
.debug_fn
.glGetSamplerParameterfvFn(sampler
, pname
, params
);
3279 static void GL_BINDING_CALL
3280 Debug_glGetSamplerParameteriv(GLuint sampler
, GLenum pname
, GLint
* params
) {
3281 GL_SERVICE_LOG("glGetSamplerParameteriv"
3282 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
3283 << ", " << static_cast<const void*>(params
) << ")");
3284 g_driver_gl
.debug_fn
.glGetSamplerParameterivFn(sampler
, pname
, params
);
3287 static void GL_BINDING_CALL
Debug_glGetShaderInfoLog(GLuint shader
,
3291 GL_SERVICE_LOG("glGetShaderInfoLog"
3292 << "(" << shader
<< ", " << bufsize
<< ", "
3293 << static_cast<const void*>(length
) << ", "
3294 << static_cast<const void*>(infolog
) << ")");
3295 g_driver_gl
.debug_fn
.glGetShaderInfoLogFn(shader
, bufsize
, length
, infolog
);
3298 static void GL_BINDING_CALL
3299 Debug_glGetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
3300 GL_SERVICE_LOG("glGetShaderiv"
3301 << "(" << shader
<< ", " << GLEnums::GetStringEnum(pname
)
3302 << ", " << static_cast<const void*>(params
) << ")");
3303 g_driver_gl
.debug_fn
.glGetShaderivFn(shader
, pname
, params
);
3306 static void GL_BINDING_CALL
3307 Debug_glGetShaderPrecisionFormat(GLenum shadertype
,
3308 GLenum precisiontype
,
3311 GL_SERVICE_LOG("glGetShaderPrecisionFormat"
3312 << "(" << GLEnums::GetStringEnum(shadertype
) << ", "
3313 << GLEnums::GetStringEnum(precisiontype
) << ", "
3314 << static_cast<const void*>(range
) << ", "
3315 << static_cast<const void*>(precision
) << ")");
3316 g_driver_gl
.debug_fn
.glGetShaderPrecisionFormatFn(shadertype
, precisiontype
,
3320 static void GL_BINDING_CALL
Debug_glGetShaderSource(GLuint shader
,
3324 GL_SERVICE_LOG("glGetShaderSource"
3325 << "(" << shader
<< ", " << bufsize
<< ", "
3326 << static_cast<const void*>(length
) << ", "
3327 << static_cast<const void*>(source
) << ")");
3328 g_driver_gl
.debug_fn
.glGetShaderSourceFn(shader
, bufsize
, length
, source
);
3331 static const GLubyte
* GL_BINDING_CALL
Debug_glGetString(GLenum name
) {
3332 GL_SERVICE_LOG("glGetString"
3333 << "(" << GLEnums::GetStringEnum(name
) << ")");
3334 const GLubyte
* result
= g_driver_gl
.debug_fn
.glGetStringFn(name
);
3335 GL_SERVICE_LOG("GL_RESULT: " << result
);
3339 static const GLubyte
* GL_BINDING_CALL
3340 Debug_glGetStringi(GLenum name
, GLuint index
) {
3341 GL_SERVICE_LOG("glGetStringi"
3342 << "(" << GLEnums::GetStringEnum(name
) << ", " << index
3344 const GLubyte
* result
= g_driver_gl
.debug_fn
.glGetStringiFn(name
, index
);
3345 GL_SERVICE_LOG("GL_RESULT: " << result
);
3349 static void GL_BINDING_CALL
Debug_glGetSynciv(GLsync sync
,
3354 GL_SERVICE_LOG("glGetSynciv"
3355 << "(" << sync
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3356 << bufSize
<< ", " << static_cast<const void*>(length
) << ", "
3357 << static_cast<const void*>(values
) << ")");
3358 g_driver_gl
.debug_fn
.glGetSyncivFn(sync
, pname
, bufSize
, length
, values
);
3361 static void GL_BINDING_CALL
Debug_glGetTexLevelParameterfv(GLenum target
,
3365 GL_SERVICE_LOG("glGetTexLevelParameterfv"
3366 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
3367 << ", " << GLEnums::GetStringEnum(pname
) << ", "
3368 << static_cast<const void*>(params
) << ")");
3369 g_driver_gl
.debug_fn
.glGetTexLevelParameterfvFn(target
, level
, pname
, params
);
3372 static void GL_BINDING_CALL
Debug_glGetTexLevelParameteriv(GLenum target
,
3376 GL_SERVICE_LOG("glGetTexLevelParameteriv"
3377 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
3378 << ", " << GLEnums::GetStringEnum(pname
) << ", "
3379 << static_cast<const void*>(params
) << ")");
3380 g_driver_gl
.debug_fn
.glGetTexLevelParameterivFn(target
, level
, pname
, params
);
3383 static void GL_BINDING_CALL
3384 Debug_glGetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
) {
3385 GL_SERVICE_LOG("glGetTexParameterfv"
3386 << "(" << GLEnums::GetStringEnum(target
) << ", "
3387 << GLEnums::GetStringEnum(pname
) << ", "
3388 << static_cast<const void*>(params
) << ")");
3389 g_driver_gl
.debug_fn
.glGetTexParameterfvFn(target
, pname
, params
);
3392 static void GL_BINDING_CALL
3393 Debug_glGetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
3394 GL_SERVICE_LOG("glGetTexParameteriv"
3395 << "(" << GLEnums::GetStringEnum(target
) << ", "
3396 << GLEnums::GetStringEnum(pname
) << ", "
3397 << static_cast<const void*>(params
) << ")");
3398 g_driver_gl
.debug_fn
.glGetTexParameterivFn(target
, pname
, params
);
3401 static void GL_BINDING_CALL
Debug_glGetTransformFeedbackVarying(GLuint program
,
3408 GL_SERVICE_LOG("glGetTransformFeedbackVarying"
3409 << "(" << program
<< ", " << index
<< ", " << bufSize
<< ", "
3410 << static_cast<const void*>(length
) << ", "
3411 << static_cast<const void*>(size
) << ", "
3412 << static_cast<const void*>(type
) << ", "
3413 << static_cast<const void*>(name
) << ")");
3414 g_driver_gl
.debug_fn
.glGetTransformFeedbackVaryingFn(
3415 program
, index
, bufSize
, length
, size
, type
, name
);
3418 static void GL_BINDING_CALL
3419 Debug_glGetTranslatedShaderSourceANGLE(GLuint shader
,
3423 GL_SERVICE_LOG("glGetTranslatedShaderSourceANGLE"
3424 << "(" << shader
<< ", " << bufsize
<< ", "
3425 << static_cast<const void*>(length
) << ", "
3426 << static_cast<const void*>(source
) << ")");
3427 g_driver_gl
.debug_fn
.glGetTranslatedShaderSourceANGLEFn(shader
, bufsize
,
3431 static GLuint GL_BINDING_CALL
3432 Debug_glGetUniformBlockIndex(GLuint program
, const char* uniformBlockName
) {
3433 GL_SERVICE_LOG("glGetUniformBlockIndex"
3434 << "(" << program
<< ", " << uniformBlockName
<< ")");
3436 g_driver_gl
.debug_fn
.glGetUniformBlockIndexFn(program
, uniformBlockName
);
3437 GL_SERVICE_LOG("GL_RESULT: " << result
);
3441 static void GL_BINDING_CALL
3442 Debug_glGetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) {
3443 GL_SERVICE_LOG("glGetUniformfv"
3444 << "(" << program
<< ", " << location
<< ", "
3445 << static_cast<const void*>(params
) << ")");
3446 g_driver_gl
.debug_fn
.glGetUniformfvFn(program
, location
, params
);
3449 static void GL_BINDING_CALL
3450 Debug_glGetUniformIndices(GLuint program
,
3451 GLsizei uniformCount
,
3452 const char* const* uniformNames
,
3453 GLuint
* uniformIndices
) {
3454 GL_SERVICE_LOG("glGetUniformIndices"
3455 << "(" << program
<< ", " << uniformCount
<< ", "
3456 << static_cast<const void*>(uniformNames
) << ", "
3457 << static_cast<const void*>(uniformIndices
) << ")");
3458 g_driver_gl
.debug_fn
.glGetUniformIndicesFn(program
, uniformCount
,
3459 uniformNames
, uniformIndices
);
3462 static void GL_BINDING_CALL
3463 Debug_glGetUniformiv(GLuint program
, GLint location
, GLint
* params
) {
3464 GL_SERVICE_LOG("glGetUniformiv"
3465 << "(" << program
<< ", " << location
<< ", "
3466 << static_cast<const void*>(params
) << ")");
3467 g_driver_gl
.debug_fn
.glGetUniformivFn(program
, location
, params
);
3470 static GLint GL_BINDING_CALL
3471 Debug_glGetUniformLocation(GLuint program
, const char* name
) {
3472 GL_SERVICE_LOG("glGetUniformLocation"
3473 << "(" << program
<< ", " << name
<< ")");
3474 GLint result
= g_driver_gl
.debug_fn
.glGetUniformLocationFn(program
, name
);
3475 GL_SERVICE_LOG("GL_RESULT: " << result
);
3479 static void GL_BINDING_CALL
3480 Debug_glGetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
* params
) {
3481 GL_SERVICE_LOG("glGetVertexAttribfv"
3482 << "(" << index
<< ", " << GLEnums::GetStringEnum(pname
)
3483 << ", " << static_cast<const void*>(params
) << ")");
3484 g_driver_gl
.debug_fn
.glGetVertexAttribfvFn(index
, pname
, params
);
3487 static void GL_BINDING_CALL
3488 Debug_glGetVertexAttribiv(GLuint index
, GLenum pname
, GLint
* params
) {
3489 GL_SERVICE_LOG("glGetVertexAttribiv"
3490 << "(" << index
<< ", " << GLEnums::GetStringEnum(pname
)
3491 << ", " << static_cast<const void*>(params
) << ")");
3492 g_driver_gl
.debug_fn
.glGetVertexAttribivFn(index
, pname
, params
);
3495 static void GL_BINDING_CALL
3496 Debug_glGetVertexAttribPointerv(GLuint index
, GLenum pname
, void** pointer
) {
3497 GL_SERVICE_LOG("glGetVertexAttribPointerv"
3498 << "(" << index
<< ", " << GLEnums::GetStringEnum(pname
)
3499 << ", " << pointer
<< ")");
3500 g_driver_gl
.debug_fn
.glGetVertexAttribPointervFn(index
, pname
, pointer
);
3503 static void GL_BINDING_CALL
Debug_glHint(GLenum target
, GLenum mode
) {
3504 GL_SERVICE_LOG("glHint"
3505 << "(" << GLEnums::GetStringEnum(target
) << ", "
3506 << GLEnums::GetStringEnum(mode
) << ")");
3507 g_driver_gl
.debug_fn
.glHintFn(target
, mode
);
3510 static void GL_BINDING_CALL
3511 Debug_glInsertEventMarkerEXT(GLsizei length
, const char* marker
) {
3512 GL_SERVICE_LOG("glInsertEventMarkerEXT"
3513 << "(" << length
<< ", " << marker
<< ")");
3514 g_driver_gl
.debug_fn
.glInsertEventMarkerEXTFn(length
, marker
);
3517 static void GL_BINDING_CALL
3518 Debug_glInvalidateFramebuffer(GLenum target
,
3519 GLsizei numAttachments
,
3520 const GLenum
* attachments
) {
3521 GL_SERVICE_LOG("glInvalidateFramebuffer"
3522 << "(" << GLEnums::GetStringEnum(target
) << ", "
3523 << numAttachments
<< ", "
3524 << static_cast<const void*>(attachments
) << ")");
3525 g_driver_gl
.debug_fn
.glInvalidateFramebufferFn(target
, numAttachments
,
3529 static void GL_BINDING_CALL
3530 Debug_glInvalidateSubFramebuffer(GLenum target
,
3531 GLsizei numAttachments
,
3532 const GLenum
* attachments
,
3537 GL_SERVICE_LOG("glInvalidateSubFramebuffer"
3538 << "(" << GLEnums::GetStringEnum(target
) << ", "
3539 << numAttachments
<< ", "
3540 << static_cast<const void*>(attachments
) << ", " << x
<< ", "
3541 << y
<< ", " << width
<< ", " << height
<< ")");
3542 g_driver_gl
.debug_fn
.glInvalidateSubFramebufferFn(
3543 target
, numAttachments
, attachments
, x
, y
, width
, height
);
3546 static GLboolean GL_BINDING_CALL
Debug_glIsBuffer(GLuint buffer
) {
3547 GL_SERVICE_LOG("glIsBuffer"
3548 << "(" << buffer
<< ")");
3549 GLboolean result
= g_driver_gl
.debug_fn
.glIsBufferFn(buffer
);
3550 GL_SERVICE_LOG("GL_RESULT: " << result
);
3554 static GLboolean GL_BINDING_CALL
Debug_glIsEnabled(GLenum cap
) {
3555 GL_SERVICE_LOG("glIsEnabled"
3556 << "(" << GLEnums::GetStringEnum(cap
) << ")");
3557 GLboolean result
= g_driver_gl
.debug_fn
.glIsEnabledFn(cap
);
3558 GL_SERVICE_LOG("GL_RESULT: " << result
);
3562 static GLboolean GL_BINDING_CALL
Debug_glIsFenceAPPLE(GLuint fence
) {
3563 GL_SERVICE_LOG("glIsFenceAPPLE"
3564 << "(" << fence
<< ")");
3565 GLboolean result
= g_driver_gl
.debug_fn
.glIsFenceAPPLEFn(fence
);
3566 GL_SERVICE_LOG("GL_RESULT: " << result
);
3570 static GLboolean GL_BINDING_CALL
Debug_glIsFenceNV(GLuint fence
) {
3571 GL_SERVICE_LOG("glIsFenceNV"
3572 << "(" << fence
<< ")");
3573 GLboolean result
= g_driver_gl
.debug_fn
.glIsFenceNVFn(fence
);
3574 GL_SERVICE_LOG("GL_RESULT: " << result
);
3578 static GLboolean GL_BINDING_CALL
Debug_glIsFramebufferEXT(GLuint framebuffer
) {
3579 GL_SERVICE_LOG("glIsFramebufferEXT"
3580 << "(" << framebuffer
<< ")");
3581 GLboolean result
= g_driver_gl
.debug_fn
.glIsFramebufferEXTFn(framebuffer
);
3582 GL_SERVICE_LOG("GL_RESULT: " << result
);
3586 static GLboolean GL_BINDING_CALL
Debug_glIsProgram(GLuint program
) {
3587 GL_SERVICE_LOG("glIsProgram"
3588 << "(" << program
<< ")");
3589 GLboolean result
= g_driver_gl
.debug_fn
.glIsProgramFn(program
);
3590 GL_SERVICE_LOG("GL_RESULT: " << result
);
3594 static GLboolean GL_BINDING_CALL
Debug_glIsQuery(GLuint query
) {
3595 GL_SERVICE_LOG("glIsQuery"
3596 << "(" << query
<< ")");
3597 GLboolean result
= g_driver_gl
.debug_fn
.glIsQueryFn(query
);
3598 GL_SERVICE_LOG("GL_RESULT: " << result
);
3602 static GLboolean GL_BINDING_CALL
3603 Debug_glIsRenderbufferEXT(GLuint renderbuffer
) {
3604 GL_SERVICE_LOG("glIsRenderbufferEXT"
3605 << "(" << renderbuffer
<< ")");
3606 GLboolean result
= g_driver_gl
.debug_fn
.glIsRenderbufferEXTFn(renderbuffer
);
3607 GL_SERVICE_LOG("GL_RESULT: " << result
);
3611 static GLboolean GL_BINDING_CALL
Debug_glIsSampler(GLuint sampler
) {
3612 GL_SERVICE_LOG("glIsSampler"
3613 << "(" << sampler
<< ")");
3614 GLboolean result
= g_driver_gl
.debug_fn
.glIsSamplerFn(sampler
);
3615 GL_SERVICE_LOG("GL_RESULT: " << result
);
3619 static GLboolean GL_BINDING_CALL
Debug_glIsShader(GLuint shader
) {
3620 GL_SERVICE_LOG("glIsShader"
3621 << "(" << shader
<< ")");
3622 GLboolean result
= g_driver_gl
.debug_fn
.glIsShaderFn(shader
);
3623 GL_SERVICE_LOG("GL_RESULT: " << result
);
3627 static GLboolean GL_BINDING_CALL
Debug_glIsSync(GLsync sync
) {
3628 GL_SERVICE_LOG("glIsSync"
3629 << "(" << sync
<< ")");
3630 GLboolean result
= g_driver_gl
.debug_fn
.glIsSyncFn(sync
);
3631 GL_SERVICE_LOG("GL_RESULT: " << result
);
3635 static GLboolean GL_BINDING_CALL
Debug_glIsTexture(GLuint texture
) {
3636 GL_SERVICE_LOG("glIsTexture"
3637 << "(" << texture
<< ")");
3638 GLboolean result
= g_driver_gl
.debug_fn
.glIsTextureFn(texture
);
3639 GL_SERVICE_LOG("GL_RESULT: " << result
);
3643 static GLboolean GL_BINDING_CALL
Debug_glIsTransformFeedback(GLuint id
) {
3644 GL_SERVICE_LOG("glIsTransformFeedback"
3645 << "(" << id
<< ")");
3646 GLboolean result
= g_driver_gl
.debug_fn
.glIsTransformFeedbackFn(id
);
3647 GL_SERVICE_LOG("GL_RESULT: " << result
);
3651 static GLboolean GL_BINDING_CALL
Debug_glIsVertexArrayOES(GLuint array
) {
3652 GL_SERVICE_LOG("glIsVertexArrayOES"
3653 << "(" << array
<< ")");
3654 GLboolean result
= g_driver_gl
.debug_fn
.glIsVertexArrayOESFn(array
);
3655 GL_SERVICE_LOG("GL_RESULT: " << result
);
3659 static void GL_BINDING_CALL
Debug_glLineWidth(GLfloat width
) {
3660 GL_SERVICE_LOG("glLineWidth"
3661 << "(" << width
<< ")");
3662 g_driver_gl
.debug_fn
.glLineWidthFn(width
);
3665 static void GL_BINDING_CALL
Debug_glLinkProgram(GLuint program
) {
3666 GL_SERVICE_LOG("glLinkProgram"
3667 << "(" << program
<< ")");
3668 g_driver_gl
.debug_fn
.glLinkProgramFn(program
);
3671 static void* GL_BINDING_CALL
Debug_glMapBuffer(GLenum target
, GLenum access
) {
3672 GL_SERVICE_LOG("glMapBuffer"
3673 << "(" << GLEnums::GetStringEnum(target
) << ", "
3674 << GLEnums::GetStringEnum(access
) << ")");
3675 void* result
= g_driver_gl
.debug_fn
.glMapBufferFn(target
, access
);
3676 GL_SERVICE_LOG("GL_RESULT: " << result
);
3680 static void* GL_BINDING_CALL
Debug_glMapBufferRange(GLenum target
,
3683 GLbitfield access
) {
3684 GL_SERVICE_LOG("glMapBufferRange"
3685 << "(" << GLEnums::GetStringEnum(target
) << ", " << offset
3686 << ", " << length
<< ", " << access
<< ")");
3688 g_driver_gl
.debug_fn
.glMapBufferRangeFn(target
, offset
, length
, access
);
3689 GL_SERVICE_LOG("GL_RESULT: " << result
);
3693 static void GL_BINDING_CALL
3694 Debug_glMatrixLoadfEXT(GLenum matrixMode
, const GLfloat
* m
) {
3695 GL_SERVICE_LOG("glMatrixLoadfEXT"
3696 << "(" << GLEnums::GetStringEnum(matrixMode
) << ", "
3697 << static_cast<const void*>(m
) << ")");
3698 g_driver_gl
.debug_fn
.glMatrixLoadfEXTFn(matrixMode
, m
);
3701 static void GL_BINDING_CALL
Debug_glMatrixLoadIdentityEXT(GLenum matrixMode
) {
3702 GL_SERVICE_LOG("glMatrixLoadIdentityEXT"
3703 << "(" << GLEnums::GetStringEnum(matrixMode
) << ")");
3704 g_driver_gl
.debug_fn
.glMatrixLoadIdentityEXTFn(matrixMode
);
3707 static void GL_BINDING_CALL
Debug_glPauseTransformFeedback(void) {
3708 GL_SERVICE_LOG("glPauseTransformFeedback"
3711 g_driver_gl
.debug_fn
.glPauseTransformFeedbackFn();
3714 static void GL_BINDING_CALL
Debug_glPixelStorei(GLenum pname
, GLint param
) {
3715 GL_SERVICE_LOG("glPixelStorei"
3716 << "(" << GLEnums::GetStringEnum(pname
) << ", " << param
3718 g_driver_gl
.debug_fn
.glPixelStoreiFn(pname
, param
);
3721 static void GL_BINDING_CALL
Debug_glPointParameteri(GLenum pname
, GLint param
) {
3722 GL_SERVICE_LOG("glPointParameteri"
3723 << "(" << GLEnums::GetStringEnum(pname
) << ", " << param
3725 g_driver_gl
.debug_fn
.glPointParameteriFn(pname
, param
);
3728 static void GL_BINDING_CALL
3729 Debug_glPolygonOffset(GLfloat factor
, GLfloat units
) {
3730 GL_SERVICE_LOG("glPolygonOffset"
3731 << "(" << factor
<< ", " << units
<< ")");
3732 g_driver_gl
.debug_fn
.glPolygonOffsetFn(factor
, units
);
3735 static void GL_BINDING_CALL
Debug_glPopGroupMarkerEXT(void) {
3736 GL_SERVICE_LOG("glPopGroupMarkerEXT"
3739 g_driver_gl
.debug_fn
.glPopGroupMarkerEXTFn();
3742 static void GL_BINDING_CALL
Debug_glProgramBinary(GLuint program
,
3743 GLenum binaryFormat
,
3744 const GLvoid
* binary
,
3746 GL_SERVICE_LOG("glProgramBinary"
3747 << "(" << program
<< ", "
3748 << GLEnums::GetStringEnum(binaryFormat
) << ", "
3749 << static_cast<const void*>(binary
) << ", " << length
<< ")");
3750 g_driver_gl
.debug_fn
.glProgramBinaryFn(program
, binaryFormat
, binary
, length
);
3753 static void GL_BINDING_CALL
3754 Debug_glProgramParameteri(GLuint program
, GLenum pname
, GLint value
) {
3755 GL_SERVICE_LOG("glProgramParameteri"
3756 << "(" << program
<< ", " << GLEnums::GetStringEnum(pname
)
3757 << ", " << value
<< ")");
3758 g_driver_gl
.debug_fn
.glProgramParameteriFn(program
, pname
, value
);
3761 static void GL_BINDING_CALL
3762 Debug_glPushGroupMarkerEXT(GLsizei length
, const char* marker
) {
3763 GL_SERVICE_LOG("glPushGroupMarkerEXT"
3764 << "(" << length
<< ", " << marker
<< ")");
3765 g_driver_gl
.debug_fn
.glPushGroupMarkerEXTFn(length
, marker
);
3768 static void GL_BINDING_CALL
Debug_glQueryCounter(GLuint id
, GLenum target
) {
3769 GL_SERVICE_LOG("glQueryCounter"
3770 << "(" << id
<< ", " << GLEnums::GetStringEnum(target
) << ")");
3771 g_driver_gl
.debug_fn
.glQueryCounterFn(id
, target
);
3774 static void GL_BINDING_CALL
Debug_glReadBuffer(GLenum src
) {
3775 GL_SERVICE_LOG("glReadBuffer"
3776 << "(" << GLEnums::GetStringEnum(src
) << ")");
3777 g_driver_gl
.debug_fn
.glReadBufferFn(src
);
3780 static void GL_BINDING_CALL
Debug_glReadPixels(GLint x
,
3787 GL_SERVICE_LOG("glReadPixels"
3788 << "(" << x
<< ", " << y
<< ", " << width
<< ", " << height
3789 << ", " << GLEnums::GetStringEnum(format
) << ", "
3790 << GLEnums::GetStringEnum(type
) << ", "
3791 << static_cast<const void*>(pixels
) << ")");
3792 g_driver_gl
.debug_fn
.glReadPixelsFn(x
, y
, width
, height
, format
, type
,
3796 static void GL_BINDING_CALL
Debug_glReleaseShaderCompiler(void) {
3797 GL_SERVICE_LOG("glReleaseShaderCompiler"
3800 g_driver_gl
.debug_fn
.glReleaseShaderCompilerFn();
3803 static void GL_BINDING_CALL
3804 Debug_glRenderbufferStorageEXT(GLenum target
,
3805 GLenum internalformat
,
3808 GL_SERVICE_LOG("glRenderbufferStorageEXT"
3809 << "(" << GLEnums::GetStringEnum(target
) << ", "
3810 << GLEnums::GetStringEnum(internalformat
) << ", " << width
3811 << ", " << height
<< ")");
3812 g_driver_gl
.debug_fn
.glRenderbufferStorageEXTFn(target
, internalformat
, width
,
3816 static void GL_BINDING_CALL
3817 Debug_glRenderbufferStorageMultisample(GLenum target
,
3819 GLenum internalformat
,
3822 GL_SERVICE_LOG("glRenderbufferStorageMultisample"
3823 << "(" << GLEnums::GetStringEnum(target
) << ", " << samples
3824 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
3825 << width
<< ", " << height
<< ")");
3826 g_driver_gl
.debug_fn
.glRenderbufferStorageMultisampleFn(
3827 target
, samples
, internalformat
, width
, height
);
3830 static void GL_BINDING_CALL
3831 Debug_glRenderbufferStorageMultisampleANGLE(GLenum target
,
3833 GLenum internalformat
,
3836 GL_SERVICE_LOG("glRenderbufferStorageMultisampleANGLE"
3837 << "(" << GLEnums::GetStringEnum(target
) << ", " << samples
3838 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
3839 << width
<< ", " << height
<< ")");
3840 g_driver_gl
.debug_fn
.glRenderbufferStorageMultisampleANGLEFn(
3841 target
, samples
, internalformat
, width
, height
);
3844 static void GL_BINDING_CALL
3845 Debug_glRenderbufferStorageMultisampleEXT(GLenum target
,
3847 GLenum internalformat
,
3850 GL_SERVICE_LOG("glRenderbufferStorageMultisampleEXT"
3851 << "(" << GLEnums::GetStringEnum(target
) << ", " << samples
3852 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
3853 << width
<< ", " << height
<< ")");
3854 g_driver_gl
.debug_fn
.glRenderbufferStorageMultisampleEXTFn(
3855 target
, samples
, internalformat
, width
, height
);
3858 static void GL_BINDING_CALL
3859 Debug_glRenderbufferStorageMultisampleIMG(GLenum target
,
3861 GLenum internalformat
,
3864 GL_SERVICE_LOG("glRenderbufferStorageMultisampleIMG"
3865 << "(" << GLEnums::GetStringEnum(target
) << ", " << samples
3866 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
3867 << width
<< ", " << height
<< ")");
3868 g_driver_gl
.debug_fn
.glRenderbufferStorageMultisampleIMGFn(
3869 target
, samples
, internalformat
, width
, height
);
3872 static void GL_BINDING_CALL
Debug_glResumeTransformFeedback(void) {
3873 GL_SERVICE_LOG("glResumeTransformFeedback"
3876 g_driver_gl
.debug_fn
.glResumeTransformFeedbackFn();
3879 static void GL_BINDING_CALL
3880 Debug_glSampleCoverage(GLclampf value
, GLboolean invert
) {
3881 GL_SERVICE_LOG("glSampleCoverage"
3882 << "(" << value
<< ", " << GLEnums::GetStringBool(invert
)
3884 g_driver_gl
.debug_fn
.glSampleCoverageFn(value
, invert
);
3887 static void GL_BINDING_CALL
3888 Debug_glSamplerParameterf(GLuint sampler
, GLenum pname
, GLfloat param
) {
3889 GL_SERVICE_LOG("glSamplerParameterf"
3890 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
3891 << ", " << param
<< ")");
3892 g_driver_gl
.debug_fn
.glSamplerParameterfFn(sampler
, pname
, param
);
3895 static void GL_BINDING_CALL
Debug_glSamplerParameterfv(GLuint sampler
,
3897 const GLfloat
* params
) {
3898 GL_SERVICE_LOG("glSamplerParameterfv"
3899 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
3900 << ", " << static_cast<const void*>(params
) << ")");
3901 g_driver_gl
.debug_fn
.glSamplerParameterfvFn(sampler
, pname
, params
);
3904 static void GL_BINDING_CALL
3905 Debug_glSamplerParameteri(GLuint sampler
, GLenum pname
, GLint param
) {
3906 GL_SERVICE_LOG("glSamplerParameteri"
3907 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
3908 << ", " << param
<< ")");
3909 g_driver_gl
.debug_fn
.glSamplerParameteriFn(sampler
, pname
, param
);
3912 static void GL_BINDING_CALL
3913 Debug_glSamplerParameteriv(GLuint sampler
, GLenum pname
, const GLint
* params
) {
3914 GL_SERVICE_LOG("glSamplerParameteriv"
3915 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
3916 << ", " << static_cast<const void*>(params
) << ")");
3917 g_driver_gl
.debug_fn
.glSamplerParameterivFn(sampler
, pname
, params
);
3920 static void GL_BINDING_CALL
3921 Debug_glScissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
3922 GL_SERVICE_LOG("glScissor"
3923 << "(" << x
<< ", " << y
<< ", " << width
<< ", " << height
3925 g_driver_gl
.debug_fn
.glScissorFn(x
, y
, width
, height
);
3928 static void GL_BINDING_CALL
Debug_glSetFenceAPPLE(GLuint fence
) {
3929 GL_SERVICE_LOG("glSetFenceAPPLE"
3930 << "(" << fence
<< ")");
3931 g_driver_gl
.debug_fn
.glSetFenceAPPLEFn(fence
);
3934 static void GL_BINDING_CALL
Debug_glSetFenceNV(GLuint fence
, GLenum condition
) {
3935 GL_SERVICE_LOG("glSetFenceNV"
3936 << "(" << fence
<< ", " << GLEnums::GetStringEnum(condition
)
3938 g_driver_gl
.debug_fn
.glSetFenceNVFn(fence
, condition
);
3941 static void GL_BINDING_CALL
Debug_glShaderBinary(GLsizei n
,
3942 const GLuint
* shaders
,
3943 GLenum binaryformat
,
3946 GL_SERVICE_LOG("glShaderBinary"
3947 << "(" << n
<< ", " << static_cast<const void*>(shaders
)
3948 << ", " << GLEnums::GetStringEnum(binaryformat
) << ", "
3949 << static_cast<const void*>(binary
) << ", " << length
<< ")");
3950 g_driver_gl
.debug_fn
.glShaderBinaryFn(n
, shaders
, binaryformat
, binary
,
3954 static void GL_BINDING_CALL
Debug_glShaderSource(GLuint shader
,
3956 const char* const* str
,
3957 const GLint
* length
) {
3958 GL_SERVICE_LOG("glShaderSource"
3959 << "(" << shader
<< ", " << count
<< ", "
3960 << static_cast<const void*>(str
) << ", "
3961 << static_cast<const void*>(length
) << ")");
3962 g_driver_gl
.debug_fn
.glShaderSourceFn(shader
, count
, str
, length
);
3964 GL_SERVICE_LOG_CODE_BLOCK({
3965 for (GLsizei ii
= 0; ii
< count
; ++ii
) {
3967 if (length
&& length
[ii
] >= 0) {
3968 std::string
source(str
[ii
], length
[ii
]);
3969 GL_SERVICE_LOG(" " << ii
<< ": ---\n" << source
<< "\n---");
3971 GL_SERVICE_LOG(" " << ii
<< ": ---\n" << str
[ii
] << "\n---");
3974 GL_SERVICE_LOG(" " << ii
<< ": NULL");
3980 static void GL_BINDING_CALL
3981 Debug_glStencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
3982 GL_SERVICE_LOG("glStencilFunc"
3983 << "(" << GLEnums::GetStringEnum(func
) << ", " << ref
<< ", "
3985 g_driver_gl
.debug_fn
.glStencilFuncFn(func
, ref
, mask
);
3988 static void GL_BINDING_CALL
3989 Debug_glStencilFuncSeparate(GLenum face
, GLenum func
, GLint ref
, GLuint mask
) {
3990 GL_SERVICE_LOG("glStencilFuncSeparate"
3991 << "(" << GLEnums::GetStringEnum(face
) << ", "
3992 << GLEnums::GetStringEnum(func
) << ", " << ref
<< ", " << mask
3994 g_driver_gl
.debug_fn
.glStencilFuncSeparateFn(face
, func
, ref
, mask
);
3997 static void GL_BINDING_CALL
Debug_glStencilMask(GLuint mask
) {
3998 GL_SERVICE_LOG("glStencilMask"
3999 << "(" << mask
<< ")");
4000 g_driver_gl
.debug_fn
.glStencilMaskFn(mask
);
4003 static void GL_BINDING_CALL
4004 Debug_glStencilMaskSeparate(GLenum face
, GLuint mask
) {
4005 GL_SERVICE_LOG("glStencilMaskSeparate"
4006 << "(" << GLEnums::GetStringEnum(face
) << ", " << mask
<< ")");
4007 g_driver_gl
.debug_fn
.glStencilMaskSeparateFn(face
, mask
);
4010 static void GL_BINDING_CALL
4011 Debug_glStencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
4012 GL_SERVICE_LOG("glStencilOp"
4013 << "(" << GLEnums::GetStringEnum(fail
) << ", "
4014 << GLEnums::GetStringEnum(zfail
) << ", "
4015 << GLEnums::GetStringEnum(zpass
) << ")");
4016 g_driver_gl
.debug_fn
.glStencilOpFn(fail
, zfail
, zpass
);
4019 static void GL_BINDING_CALL
Debug_glStencilOpSeparate(GLenum face
,
4023 GL_SERVICE_LOG("glStencilOpSeparate"
4024 << "(" << GLEnums::GetStringEnum(face
) << ", "
4025 << GLEnums::GetStringEnum(fail
) << ", "
4026 << GLEnums::GetStringEnum(zfail
) << ", "
4027 << GLEnums::GetStringEnum(zpass
) << ")");
4028 g_driver_gl
.debug_fn
.glStencilOpSeparateFn(face
, fail
, zfail
, zpass
);
4031 static GLboolean GL_BINDING_CALL
Debug_glTestFenceAPPLE(GLuint fence
) {
4032 GL_SERVICE_LOG("glTestFenceAPPLE"
4033 << "(" << fence
<< ")");
4034 GLboolean result
= g_driver_gl
.debug_fn
.glTestFenceAPPLEFn(fence
);
4035 GL_SERVICE_LOG("GL_RESULT: " << result
);
4039 static GLboolean GL_BINDING_CALL
Debug_glTestFenceNV(GLuint fence
) {
4040 GL_SERVICE_LOG("glTestFenceNV"
4041 << "(" << fence
<< ")");
4042 GLboolean result
= g_driver_gl
.debug_fn
.glTestFenceNVFn(fence
);
4043 GL_SERVICE_LOG("GL_RESULT: " << result
);
4047 static void GL_BINDING_CALL
Debug_glTexImage2D(GLenum target
,
4049 GLint internalformat
,
4055 const void* pixels
) {
4056 GL_SERVICE_LOG("glTexImage2D"
4057 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
4058 << ", " << internalformat
<< ", " << width
<< ", " << height
4059 << ", " << border
<< ", " << GLEnums::GetStringEnum(format
)
4060 << ", " << GLEnums::GetStringEnum(type
) << ", "
4061 << static_cast<const void*>(pixels
) << ")");
4062 g_driver_gl
.debug_fn
.glTexImage2DFn(target
, level
, internalformat
, width
,
4063 height
, border
, format
, type
, pixels
);
4066 static void GL_BINDING_CALL
Debug_glTexImage3D(GLenum target
,
4068 GLint internalformat
,
4075 const void* pixels
) {
4076 GL_SERVICE_LOG("glTexImage3D"
4077 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
4078 << ", " << internalformat
<< ", " << width
<< ", " << height
4079 << ", " << depth
<< ", " << border
<< ", "
4080 << GLEnums::GetStringEnum(format
) << ", "
4081 << GLEnums::GetStringEnum(type
) << ", "
4082 << static_cast<const void*>(pixels
) << ")");
4083 g_driver_gl
.debug_fn
.glTexImage3DFn(target
, level
, internalformat
, width
,
4084 height
, depth
, border
, format
, type
,
4088 static void GL_BINDING_CALL
4089 Debug_glTexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
4090 GL_SERVICE_LOG("glTexParameterf"
4091 << "(" << GLEnums::GetStringEnum(target
) << ", "
4092 << GLEnums::GetStringEnum(pname
) << ", " << param
<< ")");
4093 g_driver_gl
.debug_fn
.glTexParameterfFn(target
, pname
, param
);
4096 static void GL_BINDING_CALL
4097 Debug_glTexParameterfv(GLenum target
, GLenum pname
, const GLfloat
* params
) {
4098 GL_SERVICE_LOG("glTexParameterfv"
4099 << "(" << GLEnums::GetStringEnum(target
) << ", "
4100 << GLEnums::GetStringEnum(pname
) << ", "
4101 << static_cast<const void*>(params
) << ")");
4102 g_driver_gl
.debug_fn
.glTexParameterfvFn(target
, pname
, params
);
4105 static void GL_BINDING_CALL
4106 Debug_glTexParameteri(GLenum target
, GLenum pname
, GLint param
) {
4107 GL_SERVICE_LOG("glTexParameteri"
4108 << "(" << GLEnums::GetStringEnum(target
) << ", "
4109 << GLEnums::GetStringEnum(pname
) << ", " << param
<< ")");
4110 g_driver_gl
.debug_fn
.glTexParameteriFn(target
, pname
, param
);
4113 static void GL_BINDING_CALL
4114 Debug_glTexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
) {
4115 GL_SERVICE_LOG("glTexParameteriv"
4116 << "(" << GLEnums::GetStringEnum(target
) << ", "
4117 << GLEnums::GetStringEnum(pname
) << ", "
4118 << static_cast<const void*>(params
) << ")");
4119 g_driver_gl
.debug_fn
.glTexParameterivFn(target
, pname
, params
);
4122 static void GL_BINDING_CALL
Debug_glTexStorage2DEXT(GLenum target
,
4124 GLenum internalformat
,
4127 GL_SERVICE_LOG("glTexStorage2DEXT"
4128 << "(" << GLEnums::GetStringEnum(target
) << ", " << levels
4129 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
4130 << width
<< ", " << height
<< ")");
4131 g_driver_gl
.debug_fn
.glTexStorage2DEXTFn(target
, levels
, internalformat
,
4135 static void GL_BINDING_CALL
Debug_glTexStorage3D(GLenum target
,
4137 GLenum internalformat
,
4141 GL_SERVICE_LOG("glTexStorage3D"
4142 << "(" << GLEnums::GetStringEnum(target
) << ", " << levels
4143 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
4144 << width
<< ", " << height
<< ", " << depth
<< ")");
4145 g_driver_gl
.debug_fn
.glTexStorage3DFn(target
, levels
, internalformat
, width
,
4149 static void GL_BINDING_CALL
Debug_glTexSubImage2D(GLenum target
,
4157 const void* pixels
) {
4158 GL_SERVICE_LOG("glTexSubImage2D"
4159 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
4160 << ", " << xoffset
<< ", " << yoffset
<< ", " << width
<< ", "
4161 << height
<< ", " << GLEnums::GetStringEnum(format
) << ", "
4162 << GLEnums::GetStringEnum(type
) << ", "
4163 << static_cast<const void*>(pixels
) << ")");
4164 g_driver_gl
.debug_fn
.glTexSubImage2DFn(target
, level
, xoffset
, yoffset
, width
,
4165 height
, format
, type
, pixels
);
4168 static void GL_BINDING_CALL
4169 Debug_glTransformFeedbackVaryings(GLuint program
,
4171 const char* const* varyings
,
4172 GLenum bufferMode
) {
4173 GL_SERVICE_LOG("glTransformFeedbackVaryings"
4174 << "(" << program
<< ", " << count
<< ", "
4175 << static_cast<const void*>(varyings
) << ", "
4176 << GLEnums::GetStringEnum(bufferMode
) << ")");
4177 g_driver_gl
.debug_fn
.glTransformFeedbackVaryingsFn(program
, count
, varyings
,
4181 static void GL_BINDING_CALL
Debug_glUniform1f(GLint location
, GLfloat x
) {
4182 GL_SERVICE_LOG("glUniform1f"
4183 << "(" << location
<< ", " << x
<< ")");
4184 g_driver_gl
.debug_fn
.glUniform1fFn(location
, x
);
4187 static void GL_BINDING_CALL
4188 Debug_glUniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
4189 GL_SERVICE_LOG("glUniform1fv"
4190 << "(" << location
<< ", " << count
<< ", "
4191 << static_cast<const void*>(v
) << ")");
4192 g_driver_gl
.debug_fn
.glUniform1fvFn(location
, count
, v
);
4195 static void GL_BINDING_CALL
Debug_glUniform1i(GLint location
, GLint x
) {
4196 GL_SERVICE_LOG("glUniform1i"
4197 << "(" << location
<< ", " << x
<< ")");
4198 g_driver_gl
.debug_fn
.glUniform1iFn(location
, x
);
4201 static void GL_BINDING_CALL
4202 Debug_glUniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
4203 GL_SERVICE_LOG("glUniform1iv"
4204 << "(" << location
<< ", " << count
<< ", "
4205 << static_cast<const void*>(v
) << ")");
4206 g_driver_gl
.debug_fn
.glUniform1ivFn(location
, count
, v
);
4209 static void GL_BINDING_CALL
Debug_glUniform1ui(GLint location
, GLuint v0
) {
4210 GL_SERVICE_LOG("glUniform1ui"
4211 << "(" << location
<< ", " << v0
<< ")");
4212 g_driver_gl
.debug_fn
.glUniform1uiFn(location
, v0
);
4215 static void GL_BINDING_CALL
4216 Debug_glUniform1uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
4217 GL_SERVICE_LOG("glUniform1uiv"
4218 << "(" << location
<< ", " << count
<< ", "
4219 << static_cast<const void*>(v
) << ")");
4220 g_driver_gl
.debug_fn
.glUniform1uivFn(location
, count
, v
);
4223 static void GL_BINDING_CALL
4224 Debug_glUniform2f(GLint location
, GLfloat x
, GLfloat y
) {
4225 GL_SERVICE_LOG("glUniform2f"
4226 << "(" << location
<< ", " << x
<< ", " << y
<< ")");
4227 g_driver_gl
.debug_fn
.glUniform2fFn(location
, x
, y
);
4230 static void GL_BINDING_CALL
4231 Debug_glUniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
4232 GL_SERVICE_LOG("glUniform2fv"
4233 << "(" << location
<< ", " << count
<< ", "
4234 << static_cast<const void*>(v
) << ")");
4235 g_driver_gl
.debug_fn
.glUniform2fvFn(location
, count
, v
);
4238 static void GL_BINDING_CALL
4239 Debug_glUniform2i(GLint location
, GLint x
, GLint y
) {
4240 GL_SERVICE_LOG("glUniform2i"
4241 << "(" << location
<< ", " << x
<< ", " << y
<< ")");
4242 g_driver_gl
.debug_fn
.glUniform2iFn(location
, x
, y
);
4245 static void GL_BINDING_CALL
4246 Debug_glUniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
4247 GL_SERVICE_LOG("glUniform2iv"
4248 << "(" << location
<< ", " << count
<< ", "
4249 << static_cast<const void*>(v
) << ")");
4250 g_driver_gl
.debug_fn
.glUniform2ivFn(location
, count
, v
);
4253 static void GL_BINDING_CALL
4254 Debug_glUniform2ui(GLint location
, GLuint v0
, GLuint v1
) {
4255 GL_SERVICE_LOG("glUniform2ui"
4256 << "(" << location
<< ", " << v0
<< ", " << v1
<< ")");
4257 g_driver_gl
.debug_fn
.glUniform2uiFn(location
, v0
, v1
);
4260 static void GL_BINDING_CALL
4261 Debug_glUniform2uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
4262 GL_SERVICE_LOG("glUniform2uiv"
4263 << "(" << location
<< ", " << count
<< ", "
4264 << static_cast<const void*>(v
) << ")");
4265 g_driver_gl
.debug_fn
.glUniform2uivFn(location
, count
, v
);
4268 static void GL_BINDING_CALL
4269 Debug_glUniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
4270 GL_SERVICE_LOG("glUniform3f"
4271 << "(" << location
<< ", " << x
<< ", " << y
<< ", " << z
4273 g_driver_gl
.debug_fn
.glUniform3fFn(location
, x
, y
, z
);
4276 static void GL_BINDING_CALL
4277 Debug_glUniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
4278 GL_SERVICE_LOG("glUniform3fv"
4279 << "(" << location
<< ", " << count
<< ", "
4280 << static_cast<const void*>(v
) << ")");
4281 g_driver_gl
.debug_fn
.glUniform3fvFn(location
, count
, v
);
4284 static void GL_BINDING_CALL
4285 Debug_glUniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
4286 GL_SERVICE_LOG("glUniform3i"
4287 << "(" << location
<< ", " << x
<< ", " << y
<< ", " << z
4289 g_driver_gl
.debug_fn
.glUniform3iFn(location
, x
, y
, z
);
4292 static void GL_BINDING_CALL
4293 Debug_glUniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
4294 GL_SERVICE_LOG("glUniform3iv"
4295 << "(" << location
<< ", " << count
<< ", "
4296 << static_cast<const void*>(v
) << ")");
4297 g_driver_gl
.debug_fn
.glUniform3ivFn(location
, count
, v
);
4300 static void GL_BINDING_CALL
4301 Debug_glUniform3ui(GLint location
, GLuint v0
, GLuint v1
, GLuint v2
) {
4302 GL_SERVICE_LOG("glUniform3ui"
4303 << "(" << location
<< ", " << v0
<< ", " << v1
<< ", " << v2
4305 g_driver_gl
.debug_fn
.glUniform3uiFn(location
, v0
, v1
, v2
);
4308 static void GL_BINDING_CALL
4309 Debug_glUniform3uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
4310 GL_SERVICE_LOG("glUniform3uiv"
4311 << "(" << location
<< ", " << count
<< ", "
4312 << static_cast<const void*>(v
) << ")");
4313 g_driver_gl
.debug_fn
.glUniform3uivFn(location
, count
, v
);
4316 static void GL_BINDING_CALL
4317 Debug_glUniform4f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
4318 GL_SERVICE_LOG("glUniform4f"
4319 << "(" << location
<< ", " << x
<< ", " << y
<< ", " << z
4320 << ", " << w
<< ")");
4321 g_driver_gl
.debug_fn
.glUniform4fFn(location
, x
, y
, z
, w
);
4324 static void GL_BINDING_CALL
4325 Debug_glUniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
4326 GL_SERVICE_LOG("glUniform4fv"
4327 << "(" << location
<< ", " << count
<< ", "
4328 << static_cast<const void*>(v
) << ")");
4329 g_driver_gl
.debug_fn
.glUniform4fvFn(location
, count
, v
);
4332 static void GL_BINDING_CALL
4333 Debug_glUniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
4334 GL_SERVICE_LOG("glUniform4i"
4335 << "(" << location
<< ", " << x
<< ", " << y
<< ", " << z
4336 << ", " << w
<< ")");
4337 g_driver_gl
.debug_fn
.glUniform4iFn(location
, x
, y
, z
, w
);
4340 static void GL_BINDING_CALL
4341 Debug_glUniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
4342 GL_SERVICE_LOG("glUniform4iv"
4343 << "(" << location
<< ", " << count
<< ", "
4344 << static_cast<const void*>(v
) << ")");
4345 g_driver_gl
.debug_fn
.glUniform4ivFn(location
, count
, v
);
4348 static void GL_BINDING_CALL
4349 Debug_glUniform4ui(GLint location
, GLuint v0
, GLuint v1
, GLuint v2
, GLuint v3
) {
4350 GL_SERVICE_LOG("glUniform4ui"
4351 << "(" << location
<< ", " << v0
<< ", " << v1
<< ", " << v2
4352 << ", " << v3
<< ")");
4353 g_driver_gl
.debug_fn
.glUniform4uiFn(location
, v0
, v1
, v2
, v3
);
4356 static void GL_BINDING_CALL
4357 Debug_glUniform4uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
4358 GL_SERVICE_LOG("glUniform4uiv"
4359 << "(" << location
<< ", " << count
<< ", "
4360 << static_cast<const void*>(v
) << ")");
4361 g_driver_gl
.debug_fn
.glUniform4uivFn(location
, count
, v
);
4364 static void GL_BINDING_CALL
4365 Debug_glUniformBlockBinding(GLuint program
,
4366 GLuint uniformBlockIndex
,
4367 GLuint uniformBlockBinding
) {
4368 GL_SERVICE_LOG("glUniformBlockBinding"
4369 << "(" << program
<< ", " << uniformBlockIndex
<< ", "
4370 << uniformBlockBinding
<< ")");
4371 g_driver_gl
.debug_fn
.glUniformBlockBindingFn(program
, uniformBlockIndex
,
4372 uniformBlockBinding
);
4375 static void GL_BINDING_CALL
Debug_glUniformMatrix2fv(GLint location
,
4377 GLboolean transpose
,
4378 const GLfloat
* value
) {
4379 GL_SERVICE_LOG("glUniformMatrix2fv"
4380 << "(" << location
<< ", " << count
<< ", "
4381 << GLEnums::GetStringBool(transpose
) << ", "
4382 << static_cast<const void*>(value
) << ")");
4383 g_driver_gl
.debug_fn
.glUniformMatrix2fvFn(location
, count
, transpose
, value
);
4386 static void GL_BINDING_CALL
Debug_glUniformMatrix2x3fv(GLint location
,
4388 GLboolean transpose
,
4389 const GLfloat
* value
) {
4390 GL_SERVICE_LOG("glUniformMatrix2x3fv"
4391 << "(" << location
<< ", " << count
<< ", "
4392 << GLEnums::GetStringBool(transpose
) << ", "
4393 << static_cast<const void*>(value
) << ")");
4394 g_driver_gl
.debug_fn
.glUniformMatrix2x3fvFn(location
, count
, transpose
,
4398 static void GL_BINDING_CALL
Debug_glUniformMatrix2x4fv(GLint location
,
4400 GLboolean transpose
,
4401 const GLfloat
* value
) {
4402 GL_SERVICE_LOG("glUniformMatrix2x4fv"
4403 << "(" << location
<< ", " << count
<< ", "
4404 << GLEnums::GetStringBool(transpose
) << ", "
4405 << static_cast<const void*>(value
) << ")");
4406 g_driver_gl
.debug_fn
.glUniformMatrix2x4fvFn(location
, count
, transpose
,
4410 static void GL_BINDING_CALL
Debug_glUniformMatrix3fv(GLint location
,
4412 GLboolean transpose
,
4413 const GLfloat
* value
) {
4414 GL_SERVICE_LOG("glUniformMatrix3fv"
4415 << "(" << location
<< ", " << count
<< ", "
4416 << GLEnums::GetStringBool(transpose
) << ", "
4417 << static_cast<const void*>(value
) << ")");
4418 g_driver_gl
.debug_fn
.glUniformMatrix3fvFn(location
, count
, transpose
, value
);
4421 static void GL_BINDING_CALL
Debug_glUniformMatrix3x2fv(GLint location
,
4423 GLboolean transpose
,
4424 const GLfloat
* value
) {
4425 GL_SERVICE_LOG("glUniformMatrix3x2fv"
4426 << "(" << location
<< ", " << count
<< ", "
4427 << GLEnums::GetStringBool(transpose
) << ", "
4428 << static_cast<const void*>(value
) << ")");
4429 g_driver_gl
.debug_fn
.glUniformMatrix3x2fvFn(location
, count
, transpose
,
4433 static void GL_BINDING_CALL
Debug_glUniformMatrix3x4fv(GLint location
,
4435 GLboolean transpose
,
4436 const GLfloat
* value
) {
4437 GL_SERVICE_LOG("glUniformMatrix3x4fv"
4438 << "(" << location
<< ", " << count
<< ", "
4439 << GLEnums::GetStringBool(transpose
) << ", "
4440 << static_cast<const void*>(value
) << ")");
4441 g_driver_gl
.debug_fn
.glUniformMatrix3x4fvFn(location
, count
, transpose
,
4445 static void GL_BINDING_CALL
Debug_glUniformMatrix4fv(GLint location
,
4447 GLboolean transpose
,
4448 const GLfloat
* value
) {
4449 GL_SERVICE_LOG("glUniformMatrix4fv"
4450 << "(" << location
<< ", " << count
<< ", "
4451 << GLEnums::GetStringBool(transpose
) << ", "
4452 << static_cast<const void*>(value
) << ")");
4453 g_driver_gl
.debug_fn
.glUniformMatrix4fvFn(location
, count
, transpose
, value
);
4456 static void GL_BINDING_CALL
Debug_glUniformMatrix4x2fv(GLint location
,
4458 GLboolean transpose
,
4459 const GLfloat
* value
) {
4460 GL_SERVICE_LOG("glUniformMatrix4x2fv"
4461 << "(" << location
<< ", " << count
<< ", "
4462 << GLEnums::GetStringBool(transpose
) << ", "
4463 << static_cast<const void*>(value
) << ")");
4464 g_driver_gl
.debug_fn
.glUniformMatrix4x2fvFn(location
, count
, transpose
,
4468 static void GL_BINDING_CALL
Debug_glUniformMatrix4x3fv(GLint location
,
4470 GLboolean transpose
,
4471 const GLfloat
* value
) {
4472 GL_SERVICE_LOG("glUniformMatrix4x3fv"
4473 << "(" << location
<< ", " << count
<< ", "
4474 << GLEnums::GetStringBool(transpose
) << ", "
4475 << static_cast<const void*>(value
) << ")");
4476 g_driver_gl
.debug_fn
.glUniformMatrix4x3fvFn(location
, count
, transpose
,
4480 static GLboolean GL_BINDING_CALL
Debug_glUnmapBuffer(GLenum target
) {
4481 GL_SERVICE_LOG("glUnmapBuffer"
4482 << "(" << GLEnums::GetStringEnum(target
) << ")");
4483 GLboolean result
= g_driver_gl
.debug_fn
.glUnmapBufferFn(target
);
4484 GL_SERVICE_LOG("GL_RESULT: " << result
);
4488 static void GL_BINDING_CALL
Debug_glUseProgram(GLuint program
) {
4489 GL_SERVICE_LOG("glUseProgram"
4490 << "(" << program
<< ")");
4491 g_driver_gl
.debug_fn
.glUseProgramFn(program
);
4494 static void GL_BINDING_CALL
Debug_glValidateProgram(GLuint program
) {
4495 GL_SERVICE_LOG("glValidateProgram"
4496 << "(" << program
<< ")");
4497 g_driver_gl
.debug_fn
.glValidateProgramFn(program
);
4500 static void GL_BINDING_CALL
Debug_glVertexAttrib1f(GLuint indx
, GLfloat x
) {
4501 GL_SERVICE_LOG("glVertexAttrib1f"
4502 << "(" << indx
<< ", " << x
<< ")");
4503 g_driver_gl
.debug_fn
.glVertexAttrib1fFn(indx
, x
);
4506 static void GL_BINDING_CALL
4507 Debug_glVertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
4508 GL_SERVICE_LOG("glVertexAttrib1fv"
4509 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4511 g_driver_gl
.debug_fn
.glVertexAttrib1fvFn(indx
, values
);
4514 static void GL_BINDING_CALL
4515 Debug_glVertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
4516 GL_SERVICE_LOG("glVertexAttrib2f"
4517 << "(" << indx
<< ", " << x
<< ", " << y
<< ")");
4518 g_driver_gl
.debug_fn
.glVertexAttrib2fFn(indx
, x
, y
);
4521 static void GL_BINDING_CALL
4522 Debug_glVertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
4523 GL_SERVICE_LOG("glVertexAttrib2fv"
4524 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4526 g_driver_gl
.debug_fn
.glVertexAttrib2fvFn(indx
, values
);
4529 static void GL_BINDING_CALL
4530 Debug_glVertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
4531 GL_SERVICE_LOG("glVertexAttrib3f"
4532 << "(" << indx
<< ", " << x
<< ", " << y
<< ", " << z
<< ")");
4533 g_driver_gl
.debug_fn
.glVertexAttrib3fFn(indx
, x
, y
, z
);
4536 static void GL_BINDING_CALL
4537 Debug_glVertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
4538 GL_SERVICE_LOG("glVertexAttrib3fv"
4539 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4541 g_driver_gl
.debug_fn
.glVertexAttrib3fvFn(indx
, values
);
4544 static void GL_BINDING_CALL
Debug_glVertexAttrib4f(GLuint indx
,
4549 GL_SERVICE_LOG("glVertexAttrib4f"
4550 << "(" << indx
<< ", " << x
<< ", " << y
<< ", " << z
<< ", "
4552 g_driver_gl
.debug_fn
.glVertexAttrib4fFn(indx
, x
, y
, z
, w
);
4555 static void GL_BINDING_CALL
4556 Debug_glVertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
4557 GL_SERVICE_LOG("glVertexAttrib4fv"
4558 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4560 g_driver_gl
.debug_fn
.glVertexAttrib4fvFn(indx
, values
);
4563 static void GL_BINDING_CALL
4564 Debug_glVertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
4565 GL_SERVICE_LOG("glVertexAttribDivisorANGLE"
4566 << "(" << index
<< ", " << divisor
<< ")");
4567 g_driver_gl
.debug_fn
.glVertexAttribDivisorANGLEFn(index
, divisor
);
4570 static void GL_BINDING_CALL
4571 Debug_glVertexAttribI4i(GLuint indx
, GLint x
, GLint y
, GLint z
, GLint w
) {
4572 GL_SERVICE_LOG("glVertexAttribI4i"
4573 << "(" << indx
<< ", " << x
<< ", " << y
<< ", " << z
<< ", "
4575 g_driver_gl
.debug_fn
.glVertexAttribI4iFn(indx
, x
, y
, z
, w
);
4578 static void GL_BINDING_CALL
4579 Debug_glVertexAttribI4iv(GLuint indx
, const GLint
* values
) {
4580 GL_SERVICE_LOG("glVertexAttribI4iv"
4581 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4583 g_driver_gl
.debug_fn
.glVertexAttribI4ivFn(indx
, values
);
4586 static void GL_BINDING_CALL
4587 Debug_glVertexAttribI4ui(GLuint indx
, GLuint x
, GLuint y
, GLuint z
, GLuint w
) {
4588 GL_SERVICE_LOG("glVertexAttribI4ui"
4589 << "(" << indx
<< ", " << x
<< ", " << y
<< ", " << z
<< ", "
4591 g_driver_gl
.debug_fn
.glVertexAttribI4uiFn(indx
, x
, y
, z
, w
);
4594 static void GL_BINDING_CALL
4595 Debug_glVertexAttribI4uiv(GLuint indx
, const GLuint
* values
) {
4596 GL_SERVICE_LOG("glVertexAttribI4uiv"
4597 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4599 g_driver_gl
.debug_fn
.glVertexAttribI4uivFn(indx
, values
);
4602 static void GL_BINDING_CALL
Debug_glVertexAttribIPointer(GLuint indx
,
4607 GL_SERVICE_LOG("glVertexAttribIPointer"
4608 << "(" << indx
<< ", " << size
<< ", "
4609 << GLEnums::GetStringEnum(type
) << ", " << stride
<< ", "
4610 << static_cast<const void*>(ptr
) << ")");
4611 g_driver_gl
.debug_fn
.glVertexAttribIPointerFn(indx
, size
, type
, stride
, ptr
);
4614 static void GL_BINDING_CALL
Debug_glVertexAttribPointer(GLuint indx
,
4617 GLboolean normalized
,
4620 GL_SERVICE_LOG("glVertexAttribPointer"
4621 << "(" << indx
<< ", " << size
<< ", "
4622 << GLEnums::GetStringEnum(type
) << ", "
4623 << GLEnums::GetStringBool(normalized
) << ", " << stride
<< ", "
4624 << static_cast<const void*>(ptr
) << ")");
4625 g_driver_gl
.debug_fn
.glVertexAttribPointerFn(indx
, size
, type
, normalized
,
4629 static void GL_BINDING_CALL
4630 Debug_glViewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
4631 GL_SERVICE_LOG("glViewport"
4632 << "(" << x
<< ", " << y
<< ", " << width
<< ", " << height
4634 g_driver_gl
.debug_fn
.glViewportFn(x
, y
, width
, height
);
4637 static GLenum GL_BINDING_CALL
4638 Debug_glWaitSync(GLsync sync
, GLbitfield flags
, GLuint64 timeout
) {
4639 GL_SERVICE_LOG("glWaitSync"
4640 << "(" << sync
<< ", " << flags
<< ", " << timeout
<< ")");
4641 GLenum result
= g_driver_gl
.debug_fn
.glWaitSyncFn(sync
, flags
, timeout
);
4642 GL_SERVICE_LOG("GL_RESULT: " << result
);
4647 void DriverGL::InitializeDebugBindings() {
4648 if (!debug_fn
.glActiveTextureFn
) {
4649 debug_fn
.glActiveTextureFn
= fn
.glActiveTextureFn
;
4650 fn
.glActiveTextureFn
= Debug_glActiveTexture
;
4652 if (!debug_fn
.glAttachShaderFn
) {
4653 debug_fn
.glAttachShaderFn
= fn
.glAttachShaderFn
;
4654 fn
.glAttachShaderFn
= Debug_glAttachShader
;
4656 if (!debug_fn
.glBeginQueryFn
) {
4657 debug_fn
.glBeginQueryFn
= fn
.glBeginQueryFn
;
4658 fn
.glBeginQueryFn
= Debug_glBeginQuery
;
4660 if (!debug_fn
.glBeginTransformFeedbackFn
) {
4661 debug_fn
.glBeginTransformFeedbackFn
= fn
.glBeginTransformFeedbackFn
;
4662 fn
.glBeginTransformFeedbackFn
= Debug_glBeginTransformFeedback
;
4664 if (!debug_fn
.glBindAttribLocationFn
) {
4665 debug_fn
.glBindAttribLocationFn
= fn
.glBindAttribLocationFn
;
4666 fn
.glBindAttribLocationFn
= Debug_glBindAttribLocation
;
4668 if (!debug_fn
.glBindBufferFn
) {
4669 debug_fn
.glBindBufferFn
= fn
.glBindBufferFn
;
4670 fn
.glBindBufferFn
= Debug_glBindBuffer
;
4672 if (!debug_fn
.glBindBufferBaseFn
) {
4673 debug_fn
.glBindBufferBaseFn
= fn
.glBindBufferBaseFn
;
4674 fn
.glBindBufferBaseFn
= Debug_glBindBufferBase
;
4676 if (!debug_fn
.glBindBufferRangeFn
) {
4677 debug_fn
.glBindBufferRangeFn
= fn
.glBindBufferRangeFn
;
4678 fn
.glBindBufferRangeFn
= Debug_glBindBufferRange
;
4680 if (!debug_fn
.glBindFragDataLocationFn
) {
4681 debug_fn
.glBindFragDataLocationFn
= fn
.glBindFragDataLocationFn
;
4682 fn
.glBindFragDataLocationFn
= Debug_glBindFragDataLocation
;
4684 if (!debug_fn
.glBindFragDataLocationIndexedFn
) {
4685 debug_fn
.glBindFragDataLocationIndexedFn
=
4686 fn
.glBindFragDataLocationIndexedFn
;
4687 fn
.glBindFragDataLocationIndexedFn
= Debug_glBindFragDataLocationIndexed
;
4689 if (!debug_fn
.glBindFramebufferEXTFn
) {
4690 debug_fn
.glBindFramebufferEXTFn
= fn
.glBindFramebufferEXTFn
;
4691 fn
.glBindFramebufferEXTFn
= Debug_glBindFramebufferEXT
;
4693 if (!debug_fn
.glBindRenderbufferEXTFn
) {
4694 debug_fn
.glBindRenderbufferEXTFn
= fn
.glBindRenderbufferEXTFn
;
4695 fn
.glBindRenderbufferEXTFn
= Debug_glBindRenderbufferEXT
;
4697 if (!debug_fn
.glBindSamplerFn
) {
4698 debug_fn
.glBindSamplerFn
= fn
.glBindSamplerFn
;
4699 fn
.glBindSamplerFn
= Debug_glBindSampler
;
4701 if (!debug_fn
.glBindTextureFn
) {
4702 debug_fn
.glBindTextureFn
= fn
.glBindTextureFn
;
4703 fn
.glBindTextureFn
= Debug_glBindTexture
;
4705 if (!debug_fn
.glBindTransformFeedbackFn
) {
4706 debug_fn
.glBindTransformFeedbackFn
= fn
.glBindTransformFeedbackFn
;
4707 fn
.glBindTransformFeedbackFn
= Debug_glBindTransformFeedback
;
4709 if (!debug_fn
.glBindVertexArrayOESFn
) {
4710 debug_fn
.glBindVertexArrayOESFn
= fn
.glBindVertexArrayOESFn
;
4711 fn
.glBindVertexArrayOESFn
= Debug_glBindVertexArrayOES
;
4713 if (!debug_fn
.glBlendBarrierKHRFn
) {
4714 debug_fn
.glBlendBarrierKHRFn
= fn
.glBlendBarrierKHRFn
;
4715 fn
.glBlendBarrierKHRFn
= Debug_glBlendBarrierKHR
;
4717 if (!debug_fn
.glBlendColorFn
) {
4718 debug_fn
.glBlendColorFn
= fn
.glBlendColorFn
;
4719 fn
.glBlendColorFn
= Debug_glBlendColor
;
4721 if (!debug_fn
.glBlendEquationFn
) {
4722 debug_fn
.glBlendEquationFn
= fn
.glBlendEquationFn
;
4723 fn
.glBlendEquationFn
= Debug_glBlendEquation
;
4725 if (!debug_fn
.glBlendEquationSeparateFn
) {
4726 debug_fn
.glBlendEquationSeparateFn
= fn
.glBlendEquationSeparateFn
;
4727 fn
.glBlendEquationSeparateFn
= Debug_glBlendEquationSeparate
;
4729 if (!debug_fn
.glBlendFuncFn
) {
4730 debug_fn
.glBlendFuncFn
= fn
.glBlendFuncFn
;
4731 fn
.glBlendFuncFn
= Debug_glBlendFunc
;
4733 if (!debug_fn
.glBlendFuncSeparateFn
) {
4734 debug_fn
.glBlendFuncSeparateFn
= fn
.glBlendFuncSeparateFn
;
4735 fn
.glBlendFuncSeparateFn
= Debug_glBlendFuncSeparate
;
4737 if (!debug_fn
.glBlitFramebufferFn
) {
4738 debug_fn
.glBlitFramebufferFn
= fn
.glBlitFramebufferFn
;
4739 fn
.glBlitFramebufferFn
= Debug_glBlitFramebuffer
;
4741 if (!debug_fn
.glBlitFramebufferANGLEFn
) {
4742 debug_fn
.glBlitFramebufferANGLEFn
= fn
.glBlitFramebufferANGLEFn
;
4743 fn
.glBlitFramebufferANGLEFn
= Debug_glBlitFramebufferANGLE
;
4745 if (!debug_fn
.glBlitFramebufferEXTFn
) {
4746 debug_fn
.glBlitFramebufferEXTFn
= fn
.glBlitFramebufferEXTFn
;
4747 fn
.glBlitFramebufferEXTFn
= Debug_glBlitFramebufferEXT
;
4749 if (!debug_fn
.glBufferDataFn
) {
4750 debug_fn
.glBufferDataFn
= fn
.glBufferDataFn
;
4751 fn
.glBufferDataFn
= Debug_glBufferData
;
4753 if (!debug_fn
.glBufferSubDataFn
) {
4754 debug_fn
.glBufferSubDataFn
= fn
.glBufferSubDataFn
;
4755 fn
.glBufferSubDataFn
= Debug_glBufferSubData
;
4757 if (!debug_fn
.glCheckFramebufferStatusEXTFn
) {
4758 debug_fn
.glCheckFramebufferStatusEXTFn
= fn
.glCheckFramebufferStatusEXTFn
;
4759 fn
.glCheckFramebufferStatusEXTFn
= Debug_glCheckFramebufferStatusEXT
;
4761 if (!debug_fn
.glClearFn
) {
4762 debug_fn
.glClearFn
= fn
.glClearFn
;
4763 fn
.glClearFn
= Debug_glClear
;
4765 if (!debug_fn
.glClearBufferfiFn
) {
4766 debug_fn
.glClearBufferfiFn
= fn
.glClearBufferfiFn
;
4767 fn
.glClearBufferfiFn
= Debug_glClearBufferfi
;
4769 if (!debug_fn
.glClearBufferfvFn
) {
4770 debug_fn
.glClearBufferfvFn
= fn
.glClearBufferfvFn
;
4771 fn
.glClearBufferfvFn
= Debug_glClearBufferfv
;
4773 if (!debug_fn
.glClearBufferivFn
) {
4774 debug_fn
.glClearBufferivFn
= fn
.glClearBufferivFn
;
4775 fn
.glClearBufferivFn
= Debug_glClearBufferiv
;
4777 if (!debug_fn
.glClearBufferuivFn
) {
4778 debug_fn
.glClearBufferuivFn
= fn
.glClearBufferuivFn
;
4779 fn
.glClearBufferuivFn
= Debug_glClearBufferuiv
;
4781 if (!debug_fn
.glClearColorFn
) {
4782 debug_fn
.glClearColorFn
= fn
.glClearColorFn
;
4783 fn
.glClearColorFn
= Debug_glClearColor
;
4785 if (!debug_fn
.glClearDepthFn
) {
4786 debug_fn
.glClearDepthFn
= fn
.glClearDepthFn
;
4787 fn
.glClearDepthFn
= Debug_glClearDepth
;
4789 if (!debug_fn
.glClearDepthfFn
) {
4790 debug_fn
.glClearDepthfFn
= fn
.glClearDepthfFn
;
4791 fn
.glClearDepthfFn
= Debug_glClearDepthf
;
4793 if (!debug_fn
.glClearStencilFn
) {
4794 debug_fn
.glClearStencilFn
= fn
.glClearStencilFn
;
4795 fn
.glClearStencilFn
= Debug_glClearStencil
;
4797 if (!debug_fn
.glClientWaitSyncFn
) {
4798 debug_fn
.glClientWaitSyncFn
= fn
.glClientWaitSyncFn
;
4799 fn
.glClientWaitSyncFn
= Debug_glClientWaitSync
;
4801 if (!debug_fn
.glColorMaskFn
) {
4802 debug_fn
.glColorMaskFn
= fn
.glColorMaskFn
;
4803 fn
.glColorMaskFn
= Debug_glColorMask
;
4805 if (!debug_fn
.glCompileShaderFn
) {
4806 debug_fn
.glCompileShaderFn
= fn
.glCompileShaderFn
;
4807 fn
.glCompileShaderFn
= Debug_glCompileShader
;
4809 if (!debug_fn
.glCompressedTexImage2DFn
) {
4810 debug_fn
.glCompressedTexImage2DFn
= fn
.glCompressedTexImage2DFn
;
4811 fn
.glCompressedTexImage2DFn
= Debug_glCompressedTexImage2D
;
4813 if (!debug_fn
.glCompressedTexImage3DFn
) {
4814 debug_fn
.glCompressedTexImage3DFn
= fn
.glCompressedTexImage3DFn
;
4815 fn
.glCompressedTexImage3DFn
= Debug_glCompressedTexImage3D
;
4817 if (!debug_fn
.glCompressedTexSubImage2DFn
) {
4818 debug_fn
.glCompressedTexSubImage2DFn
= fn
.glCompressedTexSubImage2DFn
;
4819 fn
.glCompressedTexSubImage2DFn
= Debug_glCompressedTexSubImage2D
;
4821 if (!debug_fn
.glCopyBufferSubDataFn
) {
4822 debug_fn
.glCopyBufferSubDataFn
= fn
.glCopyBufferSubDataFn
;
4823 fn
.glCopyBufferSubDataFn
= Debug_glCopyBufferSubData
;
4825 if (!debug_fn
.glCopyTexImage2DFn
) {
4826 debug_fn
.glCopyTexImage2DFn
= fn
.glCopyTexImage2DFn
;
4827 fn
.glCopyTexImage2DFn
= Debug_glCopyTexImage2D
;
4829 if (!debug_fn
.glCopyTexSubImage2DFn
) {
4830 debug_fn
.glCopyTexSubImage2DFn
= fn
.glCopyTexSubImage2DFn
;
4831 fn
.glCopyTexSubImage2DFn
= Debug_glCopyTexSubImage2D
;
4833 if (!debug_fn
.glCopyTexSubImage3DFn
) {
4834 debug_fn
.glCopyTexSubImage3DFn
= fn
.glCopyTexSubImage3DFn
;
4835 fn
.glCopyTexSubImage3DFn
= Debug_glCopyTexSubImage3D
;
4837 if (!debug_fn
.glCreateProgramFn
) {
4838 debug_fn
.glCreateProgramFn
= fn
.glCreateProgramFn
;
4839 fn
.glCreateProgramFn
= Debug_glCreateProgram
;
4841 if (!debug_fn
.glCreateShaderFn
) {
4842 debug_fn
.glCreateShaderFn
= fn
.glCreateShaderFn
;
4843 fn
.glCreateShaderFn
= Debug_glCreateShader
;
4845 if (!debug_fn
.glCullFaceFn
) {
4846 debug_fn
.glCullFaceFn
= fn
.glCullFaceFn
;
4847 fn
.glCullFaceFn
= Debug_glCullFace
;
4849 if (!debug_fn
.glDeleteBuffersARBFn
) {
4850 debug_fn
.glDeleteBuffersARBFn
= fn
.glDeleteBuffersARBFn
;
4851 fn
.glDeleteBuffersARBFn
= Debug_glDeleteBuffersARB
;
4853 if (!debug_fn
.glDeleteFencesAPPLEFn
) {
4854 debug_fn
.glDeleteFencesAPPLEFn
= fn
.glDeleteFencesAPPLEFn
;
4855 fn
.glDeleteFencesAPPLEFn
= Debug_glDeleteFencesAPPLE
;
4857 if (!debug_fn
.glDeleteFencesNVFn
) {
4858 debug_fn
.glDeleteFencesNVFn
= fn
.glDeleteFencesNVFn
;
4859 fn
.glDeleteFencesNVFn
= Debug_glDeleteFencesNV
;
4861 if (!debug_fn
.glDeleteFramebuffersEXTFn
) {
4862 debug_fn
.glDeleteFramebuffersEXTFn
= fn
.glDeleteFramebuffersEXTFn
;
4863 fn
.glDeleteFramebuffersEXTFn
= Debug_glDeleteFramebuffersEXT
;
4865 if (!debug_fn
.glDeleteProgramFn
) {
4866 debug_fn
.glDeleteProgramFn
= fn
.glDeleteProgramFn
;
4867 fn
.glDeleteProgramFn
= Debug_glDeleteProgram
;
4869 if (!debug_fn
.glDeleteQueriesFn
) {
4870 debug_fn
.glDeleteQueriesFn
= fn
.glDeleteQueriesFn
;
4871 fn
.glDeleteQueriesFn
= Debug_glDeleteQueries
;
4873 if (!debug_fn
.glDeleteRenderbuffersEXTFn
) {
4874 debug_fn
.glDeleteRenderbuffersEXTFn
= fn
.glDeleteRenderbuffersEXTFn
;
4875 fn
.glDeleteRenderbuffersEXTFn
= Debug_glDeleteRenderbuffersEXT
;
4877 if (!debug_fn
.glDeleteSamplersFn
) {
4878 debug_fn
.glDeleteSamplersFn
= fn
.glDeleteSamplersFn
;
4879 fn
.glDeleteSamplersFn
= Debug_glDeleteSamplers
;
4881 if (!debug_fn
.glDeleteShaderFn
) {
4882 debug_fn
.glDeleteShaderFn
= fn
.glDeleteShaderFn
;
4883 fn
.glDeleteShaderFn
= Debug_glDeleteShader
;
4885 if (!debug_fn
.glDeleteSyncFn
) {
4886 debug_fn
.glDeleteSyncFn
= fn
.glDeleteSyncFn
;
4887 fn
.glDeleteSyncFn
= Debug_glDeleteSync
;
4889 if (!debug_fn
.glDeleteTexturesFn
) {
4890 debug_fn
.glDeleteTexturesFn
= fn
.glDeleteTexturesFn
;
4891 fn
.glDeleteTexturesFn
= Debug_glDeleteTextures
;
4893 if (!debug_fn
.glDeleteTransformFeedbacksFn
) {
4894 debug_fn
.glDeleteTransformFeedbacksFn
= fn
.glDeleteTransformFeedbacksFn
;
4895 fn
.glDeleteTransformFeedbacksFn
= Debug_glDeleteTransformFeedbacks
;
4897 if (!debug_fn
.glDeleteVertexArraysOESFn
) {
4898 debug_fn
.glDeleteVertexArraysOESFn
= fn
.glDeleteVertexArraysOESFn
;
4899 fn
.glDeleteVertexArraysOESFn
= Debug_glDeleteVertexArraysOES
;
4901 if (!debug_fn
.glDepthFuncFn
) {
4902 debug_fn
.glDepthFuncFn
= fn
.glDepthFuncFn
;
4903 fn
.glDepthFuncFn
= Debug_glDepthFunc
;
4905 if (!debug_fn
.glDepthMaskFn
) {
4906 debug_fn
.glDepthMaskFn
= fn
.glDepthMaskFn
;
4907 fn
.glDepthMaskFn
= Debug_glDepthMask
;
4909 if (!debug_fn
.glDepthRangeFn
) {
4910 debug_fn
.glDepthRangeFn
= fn
.glDepthRangeFn
;
4911 fn
.glDepthRangeFn
= Debug_glDepthRange
;
4913 if (!debug_fn
.glDepthRangefFn
) {
4914 debug_fn
.glDepthRangefFn
= fn
.glDepthRangefFn
;
4915 fn
.glDepthRangefFn
= Debug_glDepthRangef
;
4917 if (!debug_fn
.glDetachShaderFn
) {
4918 debug_fn
.glDetachShaderFn
= fn
.glDetachShaderFn
;
4919 fn
.glDetachShaderFn
= Debug_glDetachShader
;
4921 if (!debug_fn
.glDisableFn
) {
4922 debug_fn
.glDisableFn
= fn
.glDisableFn
;
4923 fn
.glDisableFn
= Debug_glDisable
;
4925 if (!debug_fn
.glDisableVertexAttribArrayFn
) {
4926 debug_fn
.glDisableVertexAttribArrayFn
= fn
.glDisableVertexAttribArrayFn
;
4927 fn
.glDisableVertexAttribArrayFn
= Debug_glDisableVertexAttribArray
;
4929 if (!debug_fn
.glDiscardFramebufferEXTFn
) {
4930 debug_fn
.glDiscardFramebufferEXTFn
= fn
.glDiscardFramebufferEXTFn
;
4931 fn
.glDiscardFramebufferEXTFn
= Debug_glDiscardFramebufferEXT
;
4933 if (!debug_fn
.glDrawArraysFn
) {
4934 debug_fn
.glDrawArraysFn
= fn
.glDrawArraysFn
;
4935 fn
.glDrawArraysFn
= Debug_glDrawArrays
;
4937 if (!debug_fn
.glDrawArraysInstancedANGLEFn
) {
4938 debug_fn
.glDrawArraysInstancedANGLEFn
= fn
.glDrawArraysInstancedANGLEFn
;
4939 fn
.glDrawArraysInstancedANGLEFn
= Debug_glDrawArraysInstancedANGLE
;
4941 if (!debug_fn
.glDrawBufferFn
) {
4942 debug_fn
.glDrawBufferFn
= fn
.glDrawBufferFn
;
4943 fn
.glDrawBufferFn
= Debug_glDrawBuffer
;
4945 if (!debug_fn
.glDrawBuffersARBFn
) {
4946 debug_fn
.glDrawBuffersARBFn
= fn
.glDrawBuffersARBFn
;
4947 fn
.glDrawBuffersARBFn
= Debug_glDrawBuffersARB
;
4949 if (!debug_fn
.glDrawElementsFn
) {
4950 debug_fn
.glDrawElementsFn
= fn
.glDrawElementsFn
;
4951 fn
.glDrawElementsFn
= Debug_glDrawElements
;
4953 if (!debug_fn
.glDrawElementsInstancedANGLEFn
) {
4954 debug_fn
.glDrawElementsInstancedANGLEFn
= fn
.glDrawElementsInstancedANGLEFn
;
4955 fn
.glDrawElementsInstancedANGLEFn
= Debug_glDrawElementsInstancedANGLE
;
4957 if (!debug_fn
.glDrawRangeElementsFn
) {
4958 debug_fn
.glDrawRangeElementsFn
= fn
.glDrawRangeElementsFn
;
4959 fn
.glDrawRangeElementsFn
= Debug_glDrawRangeElements
;
4961 if (!debug_fn
.glEGLImageTargetRenderbufferStorageOESFn
) {
4962 debug_fn
.glEGLImageTargetRenderbufferStorageOESFn
=
4963 fn
.glEGLImageTargetRenderbufferStorageOESFn
;
4964 fn
.glEGLImageTargetRenderbufferStorageOESFn
=
4965 Debug_glEGLImageTargetRenderbufferStorageOES
;
4967 if (!debug_fn
.glEGLImageTargetTexture2DOESFn
) {
4968 debug_fn
.glEGLImageTargetTexture2DOESFn
= fn
.glEGLImageTargetTexture2DOESFn
;
4969 fn
.glEGLImageTargetTexture2DOESFn
= Debug_glEGLImageTargetTexture2DOES
;
4971 if (!debug_fn
.glEnableFn
) {
4972 debug_fn
.glEnableFn
= fn
.glEnableFn
;
4973 fn
.glEnableFn
= Debug_glEnable
;
4975 if (!debug_fn
.glEnableVertexAttribArrayFn
) {
4976 debug_fn
.glEnableVertexAttribArrayFn
= fn
.glEnableVertexAttribArrayFn
;
4977 fn
.glEnableVertexAttribArrayFn
= Debug_glEnableVertexAttribArray
;
4979 if (!debug_fn
.glEndQueryFn
) {
4980 debug_fn
.glEndQueryFn
= fn
.glEndQueryFn
;
4981 fn
.glEndQueryFn
= Debug_glEndQuery
;
4983 if (!debug_fn
.glEndTransformFeedbackFn
) {
4984 debug_fn
.glEndTransformFeedbackFn
= fn
.glEndTransformFeedbackFn
;
4985 fn
.glEndTransformFeedbackFn
= Debug_glEndTransformFeedback
;
4987 if (!debug_fn
.glFenceSyncFn
) {
4988 debug_fn
.glFenceSyncFn
= fn
.glFenceSyncFn
;
4989 fn
.glFenceSyncFn
= Debug_glFenceSync
;
4991 if (!debug_fn
.glFinishFn
) {
4992 debug_fn
.glFinishFn
= fn
.glFinishFn
;
4993 fn
.glFinishFn
= Debug_glFinish
;
4995 if (!debug_fn
.glFinishFenceAPPLEFn
) {
4996 debug_fn
.glFinishFenceAPPLEFn
= fn
.glFinishFenceAPPLEFn
;
4997 fn
.glFinishFenceAPPLEFn
= Debug_glFinishFenceAPPLE
;
4999 if (!debug_fn
.glFinishFenceNVFn
) {
5000 debug_fn
.glFinishFenceNVFn
= fn
.glFinishFenceNVFn
;
5001 fn
.glFinishFenceNVFn
= Debug_glFinishFenceNV
;
5003 if (!debug_fn
.glFlushFn
) {
5004 debug_fn
.glFlushFn
= fn
.glFlushFn
;
5005 fn
.glFlushFn
= Debug_glFlush
;
5007 if (!debug_fn
.glFlushMappedBufferRangeFn
) {
5008 debug_fn
.glFlushMappedBufferRangeFn
= fn
.glFlushMappedBufferRangeFn
;
5009 fn
.glFlushMappedBufferRangeFn
= Debug_glFlushMappedBufferRange
;
5011 if (!debug_fn
.glFramebufferRenderbufferEXTFn
) {
5012 debug_fn
.glFramebufferRenderbufferEXTFn
= fn
.glFramebufferRenderbufferEXTFn
;
5013 fn
.glFramebufferRenderbufferEXTFn
= Debug_glFramebufferRenderbufferEXT
;
5015 if (!debug_fn
.glFramebufferTexture2DEXTFn
) {
5016 debug_fn
.glFramebufferTexture2DEXTFn
= fn
.glFramebufferTexture2DEXTFn
;
5017 fn
.glFramebufferTexture2DEXTFn
= Debug_glFramebufferTexture2DEXT
;
5019 if (!debug_fn
.glFramebufferTexture2DMultisampleEXTFn
) {
5020 debug_fn
.glFramebufferTexture2DMultisampleEXTFn
=
5021 fn
.glFramebufferTexture2DMultisampleEXTFn
;
5022 fn
.glFramebufferTexture2DMultisampleEXTFn
=
5023 Debug_glFramebufferTexture2DMultisampleEXT
;
5025 if (!debug_fn
.glFramebufferTexture2DMultisampleIMGFn
) {
5026 debug_fn
.glFramebufferTexture2DMultisampleIMGFn
=
5027 fn
.glFramebufferTexture2DMultisampleIMGFn
;
5028 fn
.glFramebufferTexture2DMultisampleIMGFn
=
5029 Debug_glFramebufferTexture2DMultisampleIMG
;
5031 if (!debug_fn
.glFramebufferTextureLayerFn
) {
5032 debug_fn
.glFramebufferTextureLayerFn
= fn
.glFramebufferTextureLayerFn
;
5033 fn
.glFramebufferTextureLayerFn
= Debug_glFramebufferTextureLayer
;
5035 if (!debug_fn
.glFrontFaceFn
) {
5036 debug_fn
.glFrontFaceFn
= fn
.glFrontFaceFn
;
5037 fn
.glFrontFaceFn
= Debug_glFrontFace
;
5039 if (!debug_fn
.glGenBuffersARBFn
) {
5040 debug_fn
.glGenBuffersARBFn
= fn
.glGenBuffersARBFn
;
5041 fn
.glGenBuffersARBFn
= Debug_glGenBuffersARB
;
5043 if (!debug_fn
.glGenerateMipmapEXTFn
) {
5044 debug_fn
.glGenerateMipmapEXTFn
= fn
.glGenerateMipmapEXTFn
;
5045 fn
.glGenerateMipmapEXTFn
= Debug_glGenerateMipmapEXT
;
5047 if (!debug_fn
.glGenFencesAPPLEFn
) {
5048 debug_fn
.glGenFencesAPPLEFn
= fn
.glGenFencesAPPLEFn
;
5049 fn
.glGenFencesAPPLEFn
= Debug_glGenFencesAPPLE
;
5051 if (!debug_fn
.glGenFencesNVFn
) {
5052 debug_fn
.glGenFencesNVFn
= fn
.glGenFencesNVFn
;
5053 fn
.glGenFencesNVFn
= Debug_glGenFencesNV
;
5055 if (!debug_fn
.glGenFramebuffersEXTFn
) {
5056 debug_fn
.glGenFramebuffersEXTFn
= fn
.glGenFramebuffersEXTFn
;
5057 fn
.glGenFramebuffersEXTFn
= Debug_glGenFramebuffersEXT
;
5059 if (!debug_fn
.glGenQueriesFn
) {
5060 debug_fn
.glGenQueriesFn
= fn
.glGenQueriesFn
;
5061 fn
.glGenQueriesFn
= Debug_glGenQueries
;
5063 if (!debug_fn
.glGenRenderbuffersEXTFn
) {
5064 debug_fn
.glGenRenderbuffersEXTFn
= fn
.glGenRenderbuffersEXTFn
;
5065 fn
.glGenRenderbuffersEXTFn
= Debug_glGenRenderbuffersEXT
;
5067 if (!debug_fn
.glGenSamplersFn
) {
5068 debug_fn
.glGenSamplersFn
= fn
.glGenSamplersFn
;
5069 fn
.glGenSamplersFn
= Debug_glGenSamplers
;
5071 if (!debug_fn
.glGenTexturesFn
) {
5072 debug_fn
.glGenTexturesFn
= fn
.glGenTexturesFn
;
5073 fn
.glGenTexturesFn
= Debug_glGenTextures
;
5075 if (!debug_fn
.glGenTransformFeedbacksFn
) {
5076 debug_fn
.glGenTransformFeedbacksFn
= fn
.glGenTransformFeedbacksFn
;
5077 fn
.glGenTransformFeedbacksFn
= Debug_glGenTransformFeedbacks
;
5079 if (!debug_fn
.glGenVertexArraysOESFn
) {
5080 debug_fn
.glGenVertexArraysOESFn
= fn
.glGenVertexArraysOESFn
;
5081 fn
.glGenVertexArraysOESFn
= Debug_glGenVertexArraysOES
;
5083 if (!debug_fn
.glGetActiveAttribFn
) {
5084 debug_fn
.glGetActiveAttribFn
= fn
.glGetActiveAttribFn
;
5085 fn
.glGetActiveAttribFn
= Debug_glGetActiveAttrib
;
5087 if (!debug_fn
.glGetActiveUniformFn
) {
5088 debug_fn
.glGetActiveUniformFn
= fn
.glGetActiveUniformFn
;
5089 fn
.glGetActiveUniformFn
= Debug_glGetActiveUniform
;
5091 if (!debug_fn
.glGetActiveUniformBlockivFn
) {
5092 debug_fn
.glGetActiveUniformBlockivFn
= fn
.glGetActiveUniformBlockivFn
;
5093 fn
.glGetActiveUniformBlockivFn
= Debug_glGetActiveUniformBlockiv
;
5095 if (!debug_fn
.glGetActiveUniformBlockNameFn
) {
5096 debug_fn
.glGetActiveUniformBlockNameFn
= fn
.glGetActiveUniformBlockNameFn
;
5097 fn
.glGetActiveUniformBlockNameFn
= Debug_glGetActiveUniformBlockName
;
5099 if (!debug_fn
.glGetActiveUniformsivFn
) {
5100 debug_fn
.glGetActiveUniformsivFn
= fn
.glGetActiveUniformsivFn
;
5101 fn
.glGetActiveUniformsivFn
= Debug_glGetActiveUniformsiv
;
5103 if (!debug_fn
.glGetAttachedShadersFn
) {
5104 debug_fn
.glGetAttachedShadersFn
= fn
.glGetAttachedShadersFn
;
5105 fn
.glGetAttachedShadersFn
= Debug_glGetAttachedShaders
;
5107 if (!debug_fn
.glGetAttribLocationFn
) {
5108 debug_fn
.glGetAttribLocationFn
= fn
.glGetAttribLocationFn
;
5109 fn
.glGetAttribLocationFn
= Debug_glGetAttribLocation
;
5111 if (!debug_fn
.glGetBooleanvFn
) {
5112 debug_fn
.glGetBooleanvFn
= fn
.glGetBooleanvFn
;
5113 fn
.glGetBooleanvFn
= Debug_glGetBooleanv
;
5115 if (!debug_fn
.glGetBufferParameterivFn
) {
5116 debug_fn
.glGetBufferParameterivFn
= fn
.glGetBufferParameterivFn
;
5117 fn
.glGetBufferParameterivFn
= Debug_glGetBufferParameteriv
;
5119 if (!debug_fn
.glGetErrorFn
) {
5120 debug_fn
.glGetErrorFn
= fn
.glGetErrorFn
;
5121 fn
.glGetErrorFn
= Debug_glGetError
;
5123 if (!debug_fn
.glGetFenceivNVFn
) {
5124 debug_fn
.glGetFenceivNVFn
= fn
.glGetFenceivNVFn
;
5125 fn
.glGetFenceivNVFn
= Debug_glGetFenceivNV
;
5127 if (!debug_fn
.glGetFloatvFn
) {
5128 debug_fn
.glGetFloatvFn
= fn
.glGetFloatvFn
;
5129 fn
.glGetFloatvFn
= Debug_glGetFloatv
;
5131 if (!debug_fn
.glGetFragDataLocationFn
) {
5132 debug_fn
.glGetFragDataLocationFn
= fn
.glGetFragDataLocationFn
;
5133 fn
.glGetFragDataLocationFn
= Debug_glGetFragDataLocation
;
5135 if (!debug_fn
.glGetFramebufferAttachmentParameterivEXTFn
) {
5136 debug_fn
.glGetFramebufferAttachmentParameterivEXTFn
=
5137 fn
.glGetFramebufferAttachmentParameterivEXTFn
;
5138 fn
.glGetFramebufferAttachmentParameterivEXTFn
=
5139 Debug_glGetFramebufferAttachmentParameterivEXT
;
5141 if (!debug_fn
.glGetGraphicsResetStatusARBFn
) {
5142 debug_fn
.glGetGraphicsResetStatusARBFn
= fn
.glGetGraphicsResetStatusARBFn
;
5143 fn
.glGetGraphicsResetStatusARBFn
= Debug_glGetGraphicsResetStatusARB
;
5145 if (!debug_fn
.glGetInteger64i_vFn
) {
5146 debug_fn
.glGetInteger64i_vFn
= fn
.glGetInteger64i_vFn
;
5147 fn
.glGetInteger64i_vFn
= Debug_glGetInteger64i_v
;
5149 if (!debug_fn
.glGetInteger64vFn
) {
5150 debug_fn
.glGetInteger64vFn
= fn
.glGetInteger64vFn
;
5151 fn
.glGetInteger64vFn
= Debug_glGetInteger64v
;
5153 if (!debug_fn
.glGetIntegeri_vFn
) {
5154 debug_fn
.glGetIntegeri_vFn
= fn
.glGetIntegeri_vFn
;
5155 fn
.glGetIntegeri_vFn
= Debug_glGetIntegeri_v
;
5157 if (!debug_fn
.glGetIntegervFn
) {
5158 debug_fn
.glGetIntegervFn
= fn
.glGetIntegervFn
;
5159 fn
.glGetIntegervFn
= Debug_glGetIntegerv
;
5161 if (!debug_fn
.glGetInternalformativFn
) {
5162 debug_fn
.glGetInternalformativFn
= fn
.glGetInternalformativFn
;
5163 fn
.glGetInternalformativFn
= Debug_glGetInternalformativ
;
5165 if (!debug_fn
.glGetProgramBinaryFn
) {
5166 debug_fn
.glGetProgramBinaryFn
= fn
.glGetProgramBinaryFn
;
5167 fn
.glGetProgramBinaryFn
= Debug_glGetProgramBinary
;
5169 if (!debug_fn
.glGetProgramInfoLogFn
) {
5170 debug_fn
.glGetProgramInfoLogFn
= fn
.glGetProgramInfoLogFn
;
5171 fn
.glGetProgramInfoLogFn
= Debug_glGetProgramInfoLog
;
5173 if (!debug_fn
.glGetProgramivFn
) {
5174 debug_fn
.glGetProgramivFn
= fn
.glGetProgramivFn
;
5175 fn
.glGetProgramivFn
= Debug_glGetProgramiv
;
5177 if (!debug_fn
.glGetProgramResourceLocationFn
) {
5178 debug_fn
.glGetProgramResourceLocationFn
= fn
.glGetProgramResourceLocationFn
;
5179 fn
.glGetProgramResourceLocationFn
= Debug_glGetProgramResourceLocation
;
5181 if (!debug_fn
.glGetQueryivFn
) {
5182 debug_fn
.glGetQueryivFn
= fn
.glGetQueryivFn
;
5183 fn
.glGetQueryivFn
= Debug_glGetQueryiv
;
5185 if (!debug_fn
.glGetQueryObjecti64vFn
) {
5186 debug_fn
.glGetQueryObjecti64vFn
= fn
.glGetQueryObjecti64vFn
;
5187 fn
.glGetQueryObjecti64vFn
= Debug_glGetQueryObjecti64v
;
5189 if (!debug_fn
.glGetQueryObjectivFn
) {
5190 debug_fn
.glGetQueryObjectivFn
= fn
.glGetQueryObjectivFn
;
5191 fn
.glGetQueryObjectivFn
= Debug_glGetQueryObjectiv
;
5193 if (!debug_fn
.glGetQueryObjectui64vFn
) {
5194 debug_fn
.glGetQueryObjectui64vFn
= fn
.glGetQueryObjectui64vFn
;
5195 fn
.glGetQueryObjectui64vFn
= Debug_glGetQueryObjectui64v
;
5197 if (!debug_fn
.glGetQueryObjectuivFn
) {
5198 debug_fn
.glGetQueryObjectuivFn
= fn
.glGetQueryObjectuivFn
;
5199 fn
.glGetQueryObjectuivFn
= Debug_glGetQueryObjectuiv
;
5201 if (!debug_fn
.glGetRenderbufferParameterivEXTFn
) {
5202 debug_fn
.glGetRenderbufferParameterivEXTFn
=
5203 fn
.glGetRenderbufferParameterivEXTFn
;
5204 fn
.glGetRenderbufferParameterivEXTFn
=
5205 Debug_glGetRenderbufferParameterivEXT
;
5207 if (!debug_fn
.glGetSamplerParameterfvFn
) {
5208 debug_fn
.glGetSamplerParameterfvFn
= fn
.glGetSamplerParameterfvFn
;
5209 fn
.glGetSamplerParameterfvFn
= Debug_glGetSamplerParameterfv
;
5211 if (!debug_fn
.glGetSamplerParameterivFn
) {
5212 debug_fn
.glGetSamplerParameterivFn
= fn
.glGetSamplerParameterivFn
;
5213 fn
.glGetSamplerParameterivFn
= Debug_glGetSamplerParameteriv
;
5215 if (!debug_fn
.glGetShaderInfoLogFn
) {
5216 debug_fn
.glGetShaderInfoLogFn
= fn
.glGetShaderInfoLogFn
;
5217 fn
.glGetShaderInfoLogFn
= Debug_glGetShaderInfoLog
;
5219 if (!debug_fn
.glGetShaderivFn
) {
5220 debug_fn
.glGetShaderivFn
= fn
.glGetShaderivFn
;
5221 fn
.glGetShaderivFn
= Debug_glGetShaderiv
;
5223 if (!debug_fn
.glGetShaderPrecisionFormatFn
) {
5224 debug_fn
.glGetShaderPrecisionFormatFn
= fn
.glGetShaderPrecisionFormatFn
;
5225 fn
.glGetShaderPrecisionFormatFn
= Debug_glGetShaderPrecisionFormat
;
5227 if (!debug_fn
.glGetShaderSourceFn
) {
5228 debug_fn
.glGetShaderSourceFn
= fn
.glGetShaderSourceFn
;
5229 fn
.glGetShaderSourceFn
= Debug_glGetShaderSource
;
5231 if (!debug_fn
.glGetStringFn
) {
5232 debug_fn
.glGetStringFn
= fn
.glGetStringFn
;
5233 fn
.glGetStringFn
= Debug_glGetString
;
5235 if (!debug_fn
.glGetStringiFn
) {
5236 debug_fn
.glGetStringiFn
= fn
.glGetStringiFn
;
5237 fn
.glGetStringiFn
= Debug_glGetStringi
;
5239 if (!debug_fn
.glGetSyncivFn
) {
5240 debug_fn
.glGetSyncivFn
= fn
.glGetSyncivFn
;
5241 fn
.glGetSyncivFn
= Debug_glGetSynciv
;
5243 if (!debug_fn
.glGetTexLevelParameterfvFn
) {
5244 debug_fn
.glGetTexLevelParameterfvFn
= fn
.glGetTexLevelParameterfvFn
;
5245 fn
.glGetTexLevelParameterfvFn
= Debug_glGetTexLevelParameterfv
;
5247 if (!debug_fn
.glGetTexLevelParameterivFn
) {
5248 debug_fn
.glGetTexLevelParameterivFn
= fn
.glGetTexLevelParameterivFn
;
5249 fn
.glGetTexLevelParameterivFn
= Debug_glGetTexLevelParameteriv
;
5251 if (!debug_fn
.glGetTexParameterfvFn
) {
5252 debug_fn
.glGetTexParameterfvFn
= fn
.glGetTexParameterfvFn
;
5253 fn
.glGetTexParameterfvFn
= Debug_glGetTexParameterfv
;
5255 if (!debug_fn
.glGetTexParameterivFn
) {
5256 debug_fn
.glGetTexParameterivFn
= fn
.glGetTexParameterivFn
;
5257 fn
.glGetTexParameterivFn
= Debug_glGetTexParameteriv
;
5259 if (!debug_fn
.glGetTransformFeedbackVaryingFn
) {
5260 debug_fn
.glGetTransformFeedbackVaryingFn
=
5261 fn
.glGetTransformFeedbackVaryingFn
;
5262 fn
.glGetTransformFeedbackVaryingFn
= Debug_glGetTransformFeedbackVarying
;
5264 if (!debug_fn
.glGetTranslatedShaderSourceANGLEFn
) {
5265 debug_fn
.glGetTranslatedShaderSourceANGLEFn
=
5266 fn
.glGetTranslatedShaderSourceANGLEFn
;
5267 fn
.glGetTranslatedShaderSourceANGLEFn
=
5268 Debug_glGetTranslatedShaderSourceANGLE
;
5270 if (!debug_fn
.glGetUniformBlockIndexFn
) {
5271 debug_fn
.glGetUniformBlockIndexFn
= fn
.glGetUniformBlockIndexFn
;
5272 fn
.glGetUniformBlockIndexFn
= Debug_glGetUniformBlockIndex
;
5274 if (!debug_fn
.glGetUniformfvFn
) {
5275 debug_fn
.glGetUniformfvFn
= fn
.glGetUniformfvFn
;
5276 fn
.glGetUniformfvFn
= Debug_glGetUniformfv
;
5278 if (!debug_fn
.glGetUniformIndicesFn
) {
5279 debug_fn
.glGetUniformIndicesFn
= fn
.glGetUniformIndicesFn
;
5280 fn
.glGetUniformIndicesFn
= Debug_glGetUniformIndices
;
5282 if (!debug_fn
.glGetUniformivFn
) {
5283 debug_fn
.glGetUniformivFn
= fn
.glGetUniformivFn
;
5284 fn
.glGetUniformivFn
= Debug_glGetUniformiv
;
5286 if (!debug_fn
.glGetUniformLocationFn
) {
5287 debug_fn
.glGetUniformLocationFn
= fn
.glGetUniformLocationFn
;
5288 fn
.glGetUniformLocationFn
= Debug_glGetUniformLocation
;
5290 if (!debug_fn
.glGetVertexAttribfvFn
) {
5291 debug_fn
.glGetVertexAttribfvFn
= fn
.glGetVertexAttribfvFn
;
5292 fn
.glGetVertexAttribfvFn
= Debug_glGetVertexAttribfv
;
5294 if (!debug_fn
.glGetVertexAttribivFn
) {
5295 debug_fn
.glGetVertexAttribivFn
= fn
.glGetVertexAttribivFn
;
5296 fn
.glGetVertexAttribivFn
= Debug_glGetVertexAttribiv
;
5298 if (!debug_fn
.glGetVertexAttribPointervFn
) {
5299 debug_fn
.glGetVertexAttribPointervFn
= fn
.glGetVertexAttribPointervFn
;
5300 fn
.glGetVertexAttribPointervFn
= Debug_glGetVertexAttribPointerv
;
5302 if (!debug_fn
.glHintFn
) {
5303 debug_fn
.glHintFn
= fn
.glHintFn
;
5304 fn
.glHintFn
= Debug_glHint
;
5306 if (!debug_fn
.glInsertEventMarkerEXTFn
) {
5307 debug_fn
.glInsertEventMarkerEXTFn
= fn
.glInsertEventMarkerEXTFn
;
5308 fn
.glInsertEventMarkerEXTFn
= Debug_glInsertEventMarkerEXT
;
5310 if (!debug_fn
.glInvalidateFramebufferFn
) {
5311 debug_fn
.glInvalidateFramebufferFn
= fn
.glInvalidateFramebufferFn
;
5312 fn
.glInvalidateFramebufferFn
= Debug_glInvalidateFramebuffer
;
5314 if (!debug_fn
.glInvalidateSubFramebufferFn
) {
5315 debug_fn
.glInvalidateSubFramebufferFn
= fn
.glInvalidateSubFramebufferFn
;
5316 fn
.glInvalidateSubFramebufferFn
= Debug_glInvalidateSubFramebuffer
;
5318 if (!debug_fn
.glIsBufferFn
) {
5319 debug_fn
.glIsBufferFn
= fn
.glIsBufferFn
;
5320 fn
.glIsBufferFn
= Debug_glIsBuffer
;
5322 if (!debug_fn
.glIsEnabledFn
) {
5323 debug_fn
.glIsEnabledFn
= fn
.glIsEnabledFn
;
5324 fn
.glIsEnabledFn
= Debug_glIsEnabled
;
5326 if (!debug_fn
.glIsFenceAPPLEFn
) {
5327 debug_fn
.glIsFenceAPPLEFn
= fn
.glIsFenceAPPLEFn
;
5328 fn
.glIsFenceAPPLEFn
= Debug_glIsFenceAPPLE
;
5330 if (!debug_fn
.glIsFenceNVFn
) {
5331 debug_fn
.glIsFenceNVFn
= fn
.glIsFenceNVFn
;
5332 fn
.glIsFenceNVFn
= Debug_glIsFenceNV
;
5334 if (!debug_fn
.glIsFramebufferEXTFn
) {
5335 debug_fn
.glIsFramebufferEXTFn
= fn
.glIsFramebufferEXTFn
;
5336 fn
.glIsFramebufferEXTFn
= Debug_glIsFramebufferEXT
;
5338 if (!debug_fn
.glIsProgramFn
) {
5339 debug_fn
.glIsProgramFn
= fn
.glIsProgramFn
;
5340 fn
.glIsProgramFn
= Debug_glIsProgram
;
5342 if (!debug_fn
.glIsQueryFn
) {
5343 debug_fn
.glIsQueryFn
= fn
.glIsQueryFn
;
5344 fn
.glIsQueryFn
= Debug_glIsQuery
;
5346 if (!debug_fn
.glIsRenderbufferEXTFn
) {
5347 debug_fn
.glIsRenderbufferEXTFn
= fn
.glIsRenderbufferEXTFn
;
5348 fn
.glIsRenderbufferEXTFn
= Debug_glIsRenderbufferEXT
;
5350 if (!debug_fn
.glIsSamplerFn
) {
5351 debug_fn
.glIsSamplerFn
= fn
.glIsSamplerFn
;
5352 fn
.glIsSamplerFn
= Debug_glIsSampler
;
5354 if (!debug_fn
.glIsShaderFn
) {
5355 debug_fn
.glIsShaderFn
= fn
.glIsShaderFn
;
5356 fn
.glIsShaderFn
= Debug_glIsShader
;
5358 if (!debug_fn
.glIsSyncFn
) {
5359 debug_fn
.glIsSyncFn
= fn
.glIsSyncFn
;
5360 fn
.glIsSyncFn
= Debug_glIsSync
;
5362 if (!debug_fn
.glIsTextureFn
) {
5363 debug_fn
.glIsTextureFn
= fn
.glIsTextureFn
;
5364 fn
.glIsTextureFn
= Debug_glIsTexture
;
5366 if (!debug_fn
.glIsTransformFeedbackFn
) {
5367 debug_fn
.glIsTransformFeedbackFn
= fn
.glIsTransformFeedbackFn
;
5368 fn
.glIsTransformFeedbackFn
= Debug_glIsTransformFeedback
;
5370 if (!debug_fn
.glIsVertexArrayOESFn
) {
5371 debug_fn
.glIsVertexArrayOESFn
= fn
.glIsVertexArrayOESFn
;
5372 fn
.glIsVertexArrayOESFn
= Debug_glIsVertexArrayOES
;
5374 if (!debug_fn
.glLineWidthFn
) {
5375 debug_fn
.glLineWidthFn
= fn
.glLineWidthFn
;
5376 fn
.glLineWidthFn
= Debug_glLineWidth
;
5378 if (!debug_fn
.glLinkProgramFn
) {
5379 debug_fn
.glLinkProgramFn
= fn
.glLinkProgramFn
;
5380 fn
.glLinkProgramFn
= Debug_glLinkProgram
;
5382 if (!debug_fn
.glMapBufferFn
) {
5383 debug_fn
.glMapBufferFn
= fn
.glMapBufferFn
;
5384 fn
.glMapBufferFn
= Debug_glMapBuffer
;
5386 if (!debug_fn
.glMapBufferRangeFn
) {
5387 debug_fn
.glMapBufferRangeFn
= fn
.glMapBufferRangeFn
;
5388 fn
.glMapBufferRangeFn
= Debug_glMapBufferRange
;
5390 if (!debug_fn
.glMatrixLoadfEXTFn
) {
5391 debug_fn
.glMatrixLoadfEXTFn
= fn
.glMatrixLoadfEXTFn
;
5392 fn
.glMatrixLoadfEXTFn
= Debug_glMatrixLoadfEXT
;
5394 if (!debug_fn
.glMatrixLoadIdentityEXTFn
) {
5395 debug_fn
.glMatrixLoadIdentityEXTFn
= fn
.glMatrixLoadIdentityEXTFn
;
5396 fn
.glMatrixLoadIdentityEXTFn
= Debug_glMatrixLoadIdentityEXT
;
5398 if (!debug_fn
.glPauseTransformFeedbackFn
) {
5399 debug_fn
.glPauseTransformFeedbackFn
= fn
.glPauseTransformFeedbackFn
;
5400 fn
.glPauseTransformFeedbackFn
= Debug_glPauseTransformFeedback
;
5402 if (!debug_fn
.glPixelStoreiFn
) {
5403 debug_fn
.glPixelStoreiFn
= fn
.glPixelStoreiFn
;
5404 fn
.glPixelStoreiFn
= Debug_glPixelStorei
;
5406 if (!debug_fn
.glPointParameteriFn
) {
5407 debug_fn
.glPointParameteriFn
= fn
.glPointParameteriFn
;
5408 fn
.glPointParameteriFn
= Debug_glPointParameteri
;
5410 if (!debug_fn
.glPolygonOffsetFn
) {
5411 debug_fn
.glPolygonOffsetFn
= fn
.glPolygonOffsetFn
;
5412 fn
.glPolygonOffsetFn
= Debug_glPolygonOffset
;
5414 if (!debug_fn
.glPopGroupMarkerEXTFn
) {
5415 debug_fn
.glPopGroupMarkerEXTFn
= fn
.glPopGroupMarkerEXTFn
;
5416 fn
.glPopGroupMarkerEXTFn
= Debug_glPopGroupMarkerEXT
;
5418 if (!debug_fn
.glProgramBinaryFn
) {
5419 debug_fn
.glProgramBinaryFn
= fn
.glProgramBinaryFn
;
5420 fn
.glProgramBinaryFn
= Debug_glProgramBinary
;
5422 if (!debug_fn
.glProgramParameteriFn
) {
5423 debug_fn
.glProgramParameteriFn
= fn
.glProgramParameteriFn
;
5424 fn
.glProgramParameteriFn
= Debug_glProgramParameteri
;
5426 if (!debug_fn
.glPushGroupMarkerEXTFn
) {
5427 debug_fn
.glPushGroupMarkerEXTFn
= fn
.glPushGroupMarkerEXTFn
;
5428 fn
.glPushGroupMarkerEXTFn
= Debug_glPushGroupMarkerEXT
;
5430 if (!debug_fn
.glQueryCounterFn
) {
5431 debug_fn
.glQueryCounterFn
= fn
.glQueryCounterFn
;
5432 fn
.glQueryCounterFn
= Debug_glQueryCounter
;
5434 if (!debug_fn
.glReadBufferFn
) {
5435 debug_fn
.glReadBufferFn
= fn
.glReadBufferFn
;
5436 fn
.glReadBufferFn
= Debug_glReadBuffer
;
5438 if (!debug_fn
.glReadPixelsFn
) {
5439 debug_fn
.glReadPixelsFn
= fn
.glReadPixelsFn
;
5440 fn
.glReadPixelsFn
= Debug_glReadPixels
;
5442 if (!debug_fn
.glReleaseShaderCompilerFn
) {
5443 debug_fn
.glReleaseShaderCompilerFn
= fn
.glReleaseShaderCompilerFn
;
5444 fn
.glReleaseShaderCompilerFn
= Debug_glReleaseShaderCompiler
;
5446 if (!debug_fn
.glRenderbufferStorageEXTFn
) {
5447 debug_fn
.glRenderbufferStorageEXTFn
= fn
.glRenderbufferStorageEXTFn
;
5448 fn
.glRenderbufferStorageEXTFn
= Debug_glRenderbufferStorageEXT
;
5450 if (!debug_fn
.glRenderbufferStorageMultisampleFn
) {
5451 debug_fn
.glRenderbufferStorageMultisampleFn
=
5452 fn
.glRenderbufferStorageMultisampleFn
;
5453 fn
.glRenderbufferStorageMultisampleFn
=
5454 Debug_glRenderbufferStorageMultisample
;
5456 if (!debug_fn
.glRenderbufferStorageMultisampleANGLEFn
) {
5457 debug_fn
.glRenderbufferStorageMultisampleANGLEFn
=
5458 fn
.glRenderbufferStorageMultisampleANGLEFn
;
5459 fn
.glRenderbufferStorageMultisampleANGLEFn
=
5460 Debug_glRenderbufferStorageMultisampleANGLE
;
5462 if (!debug_fn
.glRenderbufferStorageMultisampleEXTFn
) {
5463 debug_fn
.glRenderbufferStorageMultisampleEXTFn
=
5464 fn
.glRenderbufferStorageMultisampleEXTFn
;
5465 fn
.glRenderbufferStorageMultisampleEXTFn
=
5466 Debug_glRenderbufferStorageMultisampleEXT
;
5468 if (!debug_fn
.glRenderbufferStorageMultisampleIMGFn
) {
5469 debug_fn
.glRenderbufferStorageMultisampleIMGFn
=
5470 fn
.glRenderbufferStorageMultisampleIMGFn
;
5471 fn
.glRenderbufferStorageMultisampleIMGFn
=
5472 Debug_glRenderbufferStorageMultisampleIMG
;
5474 if (!debug_fn
.glResumeTransformFeedbackFn
) {
5475 debug_fn
.glResumeTransformFeedbackFn
= fn
.glResumeTransformFeedbackFn
;
5476 fn
.glResumeTransformFeedbackFn
= Debug_glResumeTransformFeedback
;
5478 if (!debug_fn
.glSampleCoverageFn
) {
5479 debug_fn
.glSampleCoverageFn
= fn
.glSampleCoverageFn
;
5480 fn
.glSampleCoverageFn
= Debug_glSampleCoverage
;
5482 if (!debug_fn
.glSamplerParameterfFn
) {
5483 debug_fn
.glSamplerParameterfFn
= fn
.glSamplerParameterfFn
;
5484 fn
.glSamplerParameterfFn
= Debug_glSamplerParameterf
;
5486 if (!debug_fn
.glSamplerParameterfvFn
) {
5487 debug_fn
.glSamplerParameterfvFn
= fn
.glSamplerParameterfvFn
;
5488 fn
.glSamplerParameterfvFn
= Debug_glSamplerParameterfv
;
5490 if (!debug_fn
.glSamplerParameteriFn
) {
5491 debug_fn
.glSamplerParameteriFn
= fn
.glSamplerParameteriFn
;
5492 fn
.glSamplerParameteriFn
= Debug_glSamplerParameteri
;
5494 if (!debug_fn
.glSamplerParameterivFn
) {
5495 debug_fn
.glSamplerParameterivFn
= fn
.glSamplerParameterivFn
;
5496 fn
.glSamplerParameterivFn
= Debug_glSamplerParameteriv
;
5498 if (!debug_fn
.glScissorFn
) {
5499 debug_fn
.glScissorFn
= fn
.glScissorFn
;
5500 fn
.glScissorFn
= Debug_glScissor
;
5502 if (!debug_fn
.glSetFenceAPPLEFn
) {
5503 debug_fn
.glSetFenceAPPLEFn
= fn
.glSetFenceAPPLEFn
;
5504 fn
.glSetFenceAPPLEFn
= Debug_glSetFenceAPPLE
;
5506 if (!debug_fn
.glSetFenceNVFn
) {
5507 debug_fn
.glSetFenceNVFn
= fn
.glSetFenceNVFn
;
5508 fn
.glSetFenceNVFn
= Debug_glSetFenceNV
;
5510 if (!debug_fn
.glShaderBinaryFn
) {
5511 debug_fn
.glShaderBinaryFn
= fn
.glShaderBinaryFn
;
5512 fn
.glShaderBinaryFn
= Debug_glShaderBinary
;
5514 if (!debug_fn
.glShaderSourceFn
) {
5515 debug_fn
.glShaderSourceFn
= fn
.glShaderSourceFn
;
5516 fn
.glShaderSourceFn
= Debug_glShaderSource
;
5518 if (!debug_fn
.glStencilFuncFn
) {
5519 debug_fn
.glStencilFuncFn
= fn
.glStencilFuncFn
;
5520 fn
.glStencilFuncFn
= Debug_glStencilFunc
;
5522 if (!debug_fn
.glStencilFuncSeparateFn
) {
5523 debug_fn
.glStencilFuncSeparateFn
= fn
.glStencilFuncSeparateFn
;
5524 fn
.glStencilFuncSeparateFn
= Debug_glStencilFuncSeparate
;
5526 if (!debug_fn
.glStencilMaskFn
) {
5527 debug_fn
.glStencilMaskFn
= fn
.glStencilMaskFn
;
5528 fn
.glStencilMaskFn
= Debug_glStencilMask
;
5530 if (!debug_fn
.glStencilMaskSeparateFn
) {
5531 debug_fn
.glStencilMaskSeparateFn
= fn
.glStencilMaskSeparateFn
;
5532 fn
.glStencilMaskSeparateFn
= Debug_glStencilMaskSeparate
;
5534 if (!debug_fn
.glStencilOpFn
) {
5535 debug_fn
.glStencilOpFn
= fn
.glStencilOpFn
;
5536 fn
.glStencilOpFn
= Debug_glStencilOp
;
5538 if (!debug_fn
.glStencilOpSeparateFn
) {
5539 debug_fn
.glStencilOpSeparateFn
= fn
.glStencilOpSeparateFn
;
5540 fn
.glStencilOpSeparateFn
= Debug_glStencilOpSeparate
;
5542 if (!debug_fn
.glTestFenceAPPLEFn
) {
5543 debug_fn
.glTestFenceAPPLEFn
= fn
.glTestFenceAPPLEFn
;
5544 fn
.glTestFenceAPPLEFn
= Debug_glTestFenceAPPLE
;
5546 if (!debug_fn
.glTestFenceNVFn
) {
5547 debug_fn
.glTestFenceNVFn
= fn
.glTestFenceNVFn
;
5548 fn
.glTestFenceNVFn
= Debug_glTestFenceNV
;
5550 if (!debug_fn
.glTexImage2DFn
) {
5551 debug_fn
.glTexImage2DFn
= fn
.glTexImage2DFn
;
5552 fn
.glTexImage2DFn
= Debug_glTexImage2D
;
5554 if (!debug_fn
.glTexImage3DFn
) {
5555 debug_fn
.glTexImage3DFn
= fn
.glTexImage3DFn
;
5556 fn
.glTexImage3DFn
= Debug_glTexImage3D
;
5558 if (!debug_fn
.glTexParameterfFn
) {
5559 debug_fn
.glTexParameterfFn
= fn
.glTexParameterfFn
;
5560 fn
.glTexParameterfFn
= Debug_glTexParameterf
;
5562 if (!debug_fn
.glTexParameterfvFn
) {
5563 debug_fn
.glTexParameterfvFn
= fn
.glTexParameterfvFn
;
5564 fn
.glTexParameterfvFn
= Debug_glTexParameterfv
;
5566 if (!debug_fn
.glTexParameteriFn
) {
5567 debug_fn
.glTexParameteriFn
= fn
.glTexParameteriFn
;
5568 fn
.glTexParameteriFn
= Debug_glTexParameteri
;
5570 if (!debug_fn
.glTexParameterivFn
) {
5571 debug_fn
.glTexParameterivFn
= fn
.glTexParameterivFn
;
5572 fn
.glTexParameterivFn
= Debug_glTexParameteriv
;
5574 if (!debug_fn
.glTexStorage2DEXTFn
) {
5575 debug_fn
.glTexStorage2DEXTFn
= fn
.glTexStorage2DEXTFn
;
5576 fn
.glTexStorage2DEXTFn
= Debug_glTexStorage2DEXT
;
5578 if (!debug_fn
.glTexStorage3DFn
) {
5579 debug_fn
.glTexStorage3DFn
= fn
.glTexStorage3DFn
;
5580 fn
.glTexStorage3DFn
= Debug_glTexStorage3D
;
5582 if (!debug_fn
.glTexSubImage2DFn
) {
5583 debug_fn
.glTexSubImage2DFn
= fn
.glTexSubImage2DFn
;
5584 fn
.glTexSubImage2DFn
= Debug_glTexSubImage2D
;
5586 if (!debug_fn
.glTransformFeedbackVaryingsFn
) {
5587 debug_fn
.glTransformFeedbackVaryingsFn
= fn
.glTransformFeedbackVaryingsFn
;
5588 fn
.glTransformFeedbackVaryingsFn
= Debug_glTransformFeedbackVaryings
;
5590 if (!debug_fn
.glUniform1fFn
) {
5591 debug_fn
.glUniform1fFn
= fn
.glUniform1fFn
;
5592 fn
.glUniform1fFn
= Debug_glUniform1f
;
5594 if (!debug_fn
.glUniform1fvFn
) {
5595 debug_fn
.glUniform1fvFn
= fn
.glUniform1fvFn
;
5596 fn
.glUniform1fvFn
= Debug_glUniform1fv
;
5598 if (!debug_fn
.glUniform1iFn
) {
5599 debug_fn
.glUniform1iFn
= fn
.glUniform1iFn
;
5600 fn
.glUniform1iFn
= Debug_glUniform1i
;
5602 if (!debug_fn
.glUniform1ivFn
) {
5603 debug_fn
.glUniform1ivFn
= fn
.glUniform1ivFn
;
5604 fn
.glUniform1ivFn
= Debug_glUniform1iv
;
5606 if (!debug_fn
.glUniform1uiFn
) {
5607 debug_fn
.glUniform1uiFn
= fn
.glUniform1uiFn
;
5608 fn
.glUniform1uiFn
= Debug_glUniform1ui
;
5610 if (!debug_fn
.glUniform1uivFn
) {
5611 debug_fn
.glUniform1uivFn
= fn
.glUniform1uivFn
;
5612 fn
.glUniform1uivFn
= Debug_glUniform1uiv
;
5614 if (!debug_fn
.glUniform2fFn
) {
5615 debug_fn
.glUniform2fFn
= fn
.glUniform2fFn
;
5616 fn
.glUniform2fFn
= Debug_glUniform2f
;
5618 if (!debug_fn
.glUniform2fvFn
) {
5619 debug_fn
.glUniform2fvFn
= fn
.glUniform2fvFn
;
5620 fn
.glUniform2fvFn
= Debug_glUniform2fv
;
5622 if (!debug_fn
.glUniform2iFn
) {
5623 debug_fn
.glUniform2iFn
= fn
.glUniform2iFn
;
5624 fn
.glUniform2iFn
= Debug_glUniform2i
;
5626 if (!debug_fn
.glUniform2ivFn
) {
5627 debug_fn
.glUniform2ivFn
= fn
.glUniform2ivFn
;
5628 fn
.glUniform2ivFn
= Debug_glUniform2iv
;
5630 if (!debug_fn
.glUniform2uiFn
) {
5631 debug_fn
.glUniform2uiFn
= fn
.glUniform2uiFn
;
5632 fn
.glUniform2uiFn
= Debug_glUniform2ui
;
5634 if (!debug_fn
.glUniform2uivFn
) {
5635 debug_fn
.glUniform2uivFn
= fn
.glUniform2uivFn
;
5636 fn
.glUniform2uivFn
= Debug_glUniform2uiv
;
5638 if (!debug_fn
.glUniform3fFn
) {
5639 debug_fn
.glUniform3fFn
= fn
.glUniform3fFn
;
5640 fn
.glUniform3fFn
= Debug_glUniform3f
;
5642 if (!debug_fn
.glUniform3fvFn
) {
5643 debug_fn
.glUniform3fvFn
= fn
.glUniform3fvFn
;
5644 fn
.glUniform3fvFn
= Debug_glUniform3fv
;
5646 if (!debug_fn
.glUniform3iFn
) {
5647 debug_fn
.glUniform3iFn
= fn
.glUniform3iFn
;
5648 fn
.glUniform3iFn
= Debug_glUniform3i
;
5650 if (!debug_fn
.glUniform3ivFn
) {
5651 debug_fn
.glUniform3ivFn
= fn
.glUniform3ivFn
;
5652 fn
.glUniform3ivFn
= Debug_glUniform3iv
;
5654 if (!debug_fn
.glUniform3uiFn
) {
5655 debug_fn
.glUniform3uiFn
= fn
.glUniform3uiFn
;
5656 fn
.glUniform3uiFn
= Debug_glUniform3ui
;
5658 if (!debug_fn
.glUniform3uivFn
) {
5659 debug_fn
.glUniform3uivFn
= fn
.glUniform3uivFn
;
5660 fn
.glUniform3uivFn
= Debug_glUniform3uiv
;
5662 if (!debug_fn
.glUniform4fFn
) {
5663 debug_fn
.glUniform4fFn
= fn
.glUniform4fFn
;
5664 fn
.glUniform4fFn
= Debug_glUniform4f
;
5666 if (!debug_fn
.glUniform4fvFn
) {
5667 debug_fn
.glUniform4fvFn
= fn
.glUniform4fvFn
;
5668 fn
.glUniform4fvFn
= Debug_glUniform4fv
;
5670 if (!debug_fn
.glUniform4iFn
) {
5671 debug_fn
.glUniform4iFn
= fn
.glUniform4iFn
;
5672 fn
.glUniform4iFn
= Debug_glUniform4i
;
5674 if (!debug_fn
.glUniform4ivFn
) {
5675 debug_fn
.glUniform4ivFn
= fn
.glUniform4ivFn
;
5676 fn
.glUniform4ivFn
= Debug_glUniform4iv
;
5678 if (!debug_fn
.glUniform4uiFn
) {
5679 debug_fn
.glUniform4uiFn
= fn
.glUniform4uiFn
;
5680 fn
.glUniform4uiFn
= Debug_glUniform4ui
;
5682 if (!debug_fn
.glUniform4uivFn
) {
5683 debug_fn
.glUniform4uivFn
= fn
.glUniform4uivFn
;
5684 fn
.glUniform4uivFn
= Debug_glUniform4uiv
;
5686 if (!debug_fn
.glUniformBlockBindingFn
) {
5687 debug_fn
.glUniformBlockBindingFn
= fn
.glUniformBlockBindingFn
;
5688 fn
.glUniformBlockBindingFn
= Debug_glUniformBlockBinding
;
5690 if (!debug_fn
.glUniformMatrix2fvFn
) {
5691 debug_fn
.glUniformMatrix2fvFn
= fn
.glUniformMatrix2fvFn
;
5692 fn
.glUniformMatrix2fvFn
= Debug_glUniformMatrix2fv
;
5694 if (!debug_fn
.glUniformMatrix2x3fvFn
) {
5695 debug_fn
.glUniformMatrix2x3fvFn
= fn
.glUniformMatrix2x3fvFn
;
5696 fn
.glUniformMatrix2x3fvFn
= Debug_glUniformMatrix2x3fv
;
5698 if (!debug_fn
.glUniformMatrix2x4fvFn
) {
5699 debug_fn
.glUniformMatrix2x4fvFn
= fn
.glUniformMatrix2x4fvFn
;
5700 fn
.glUniformMatrix2x4fvFn
= Debug_glUniformMatrix2x4fv
;
5702 if (!debug_fn
.glUniformMatrix3fvFn
) {
5703 debug_fn
.glUniformMatrix3fvFn
= fn
.glUniformMatrix3fvFn
;
5704 fn
.glUniformMatrix3fvFn
= Debug_glUniformMatrix3fv
;
5706 if (!debug_fn
.glUniformMatrix3x2fvFn
) {
5707 debug_fn
.glUniformMatrix3x2fvFn
= fn
.glUniformMatrix3x2fvFn
;
5708 fn
.glUniformMatrix3x2fvFn
= Debug_glUniformMatrix3x2fv
;
5710 if (!debug_fn
.glUniformMatrix3x4fvFn
) {
5711 debug_fn
.glUniformMatrix3x4fvFn
= fn
.glUniformMatrix3x4fvFn
;
5712 fn
.glUniformMatrix3x4fvFn
= Debug_glUniformMatrix3x4fv
;
5714 if (!debug_fn
.glUniformMatrix4fvFn
) {
5715 debug_fn
.glUniformMatrix4fvFn
= fn
.glUniformMatrix4fvFn
;
5716 fn
.glUniformMatrix4fvFn
= Debug_glUniformMatrix4fv
;
5718 if (!debug_fn
.glUniformMatrix4x2fvFn
) {
5719 debug_fn
.glUniformMatrix4x2fvFn
= fn
.glUniformMatrix4x2fvFn
;
5720 fn
.glUniformMatrix4x2fvFn
= Debug_glUniformMatrix4x2fv
;
5722 if (!debug_fn
.glUniformMatrix4x3fvFn
) {
5723 debug_fn
.glUniformMatrix4x3fvFn
= fn
.glUniformMatrix4x3fvFn
;
5724 fn
.glUniformMatrix4x3fvFn
= Debug_glUniformMatrix4x3fv
;
5726 if (!debug_fn
.glUnmapBufferFn
) {
5727 debug_fn
.glUnmapBufferFn
= fn
.glUnmapBufferFn
;
5728 fn
.glUnmapBufferFn
= Debug_glUnmapBuffer
;
5730 if (!debug_fn
.glUseProgramFn
) {
5731 debug_fn
.glUseProgramFn
= fn
.glUseProgramFn
;
5732 fn
.glUseProgramFn
= Debug_glUseProgram
;
5734 if (!debug_fn
.glValidateProgramFn
) {
5735 debug_fn
.glValidateProgramFn
= fn
.glValidateProgramFn
;
5736 fn
.glValidateProgramFn
= Debug_glValidateProgram
;
5738 if (!debug_fn
.glVertexAttrib1fFn
) {
5739 debug_fn
.glVertexAttrib1fFn
= fn
.glVertexAttrib1fFn
;
5740 fn
.glVertexAttrib1fFn
= Debug_glVertexAttrib1f
;
5742 if (!debug_fn
.glVertexAttrib1fvFn
) {
5743 debug_fn
.glVertexAttrib1fvFn
= fn
.glVertexAttrib1fvFn
;
5744 fn
.glVertexAttrib1fvFn
= Debug_glVertexAttrib1fv
;
5746 if (!debug_fn
.glVertexAttrib2fFn
) {
5747 debug_fn
.glVertexAttrib2fFn
= fn
.glVertexAttrib2fFn
;
5748 fn
.glVertexAttrib2fFn
= Debug_glVertexAttrib2f
;
5750 if (!debug_fn
.glVertexAttrib2fvFn
) {
5751 debug_fn
.glVertexAttrib2fvFn
= fn
.glVertexAttrib2fvFn
;
5752 fn
.glVertexAttrib2fvFn
= Debug_glVertexAttrib2fv
;
5754 if (!debug_fn
.glVertexAttrib3fFn
) {
5755 debug_fn
.glVertexAttrib3fFn
= fn
.glVertexAttrib3fFn
;
5756 fn
.glVertexAttrib3fFn
= Debug_glVertexAttrib3f
;
5758 if (!debug_fn
.glVertexAttrib3fvFn
) {
5759 debug_fn
.glVertexAttrib3fvFn
= fn
.glVertexAttrib3fvFn
;
5760 fn
.glVertexAttrib3fvFn
= Debug_glVertexAttrib3fv
;
5762 if (!debug_fn
.glVertexAttrib4fFn
) {
5763 debug_fn
.glVertexAttrib4fFn
= fn
.glVertexAttrib4fFn
;
5764 fn
.glVertexAttrib4fFn
= Debug_glVertexAttrib4f
;
5766 if (!debug_fn
.glVertexAttrib4fvFn
) {
5767 debug_fn
.glVertexAttrib4fvFn
= fn
.glVertexAttrib4fvFn
;
5768 fn
.glVertexAttrib4fvFn
= Debug_glVertexAttrib4fv
;
5770 if (!debug_fn
.glVertexAttribDivisorANGLEFn
) {
5771 debug_fn
.glVertexAttribDivisorANGLEFn
= fn
.glVertexAttribDivisorANGLEFn
;
5772 fn
.glVertexAttribDivisorANGLEFn
= Debug_glVertexAttribDivisorANGLE
;
5774 if (!debug_fn
.glVertexAttribI4iFn
) {
5775 debug_fn
.glVertexAttribI4iFn
= fn
.glVertexAttribI4iFn
;
5776 fn
.glVertexAttribI4iFn
= Debug_glVertexAttribI4i
;
5778 if (!debug_fn
.glVertexAttribI4ivFn
) {
5779 debug_fn
.glVertexAttribI4ivFn
= fn
.glVertexAttribI4ivFn
;
5780 fn
.glVertexAttribI4ivFn
= Debug_glVertexAttribI4iv
;
5782 if (!debug_fn
.glVertexAttribI4uiFn
) {
5783 debug_fn
.glVertexAttribI4uiFn
= fn
.glVertexAttribI4uiFn
;
5784 fn
.glVertexAttribI4uiFn
= Debug_glVertexAttribI4ui
;
5786 if (!debug_fn
.glVertexAttribI4uivFn
) {
5787 debug_fn
.glVertexAttribI4uivFn
= fn
.glVertexAttribI4uivFn
;
5788 fn
.glVertexAttribI4uivFn
= Debug_glVertexAttribI4uiv
;
5790 if (!debug_fn
.glVertexAttribIPointerFn
) {
5791 debug_fn
.glVertexAttribIPointerFn
= fn
.glVertexAttribIPointerFn
;
5792 fn
.glVertexAttribIPointerFn
= Debug_glVertexAttribIPointer
;
5794 if (!debug_fn
.glVertexAttribPointerFn
) {
5795 debug_fn
.glVertexAttribPointerFn
= fn
.glVertexAttribPointerFn
;
5796 fn
.glVertexAttribPointerFn
= Debug_glVertexAttribPointer
;
5798 if (!debug_fn
.glViewportFn
) {
5799 debug_fn
.glViewportFn
= fn
.glViewportFn
;
5800 fn
.glViewportFn
= Debug_glViewport
;
5802 if (!debug_fn
.glWaitSyncFn
) {
5803 debug_fn
.glWaitSyncFn
= fn
.glWaitSyncFn
;
5804 fn
.glWaitSyncFn
= Debug_glWaitSync
;
5806 g_debugBindingsInitialized
= true;
5809 void DriverGL::ClearBindings() {
5810 memset(this, 0, sizeof(*this));
5813 void GLApiBase::glActiveTextureFn(GLenum texture
) {
5814 driver_
->fn
.glActiveTextureFn(texture
);
5817 void GLApiBase::glAttachShaderFn(GLuint program
, GLuint shader
) {
5818 driver_
->fn
.glAttachShaderFn(program
, shader
);
5821 void GLApiBase::glBeginQueryFn(GLenum target
, GLuint id
) {
5822 driver_
->fn
.glBeginQueryFn(target
, id
);
5825 void GLApiBase::glBeginTransformFeedbackFn(GLenum primitiveMode
) {
5826 driver_
->fn
.glBeginTransformFeedbackFn(primitiveMode
);
5829 void GLApiBase::glBindAttribLocationFn(GLuint program
,
5832 driver_
->fn
.glBindAttribLocationFn(program
, index
, name
);
5835 void GLApiBase::glBindBufferFn(GLenum target
, GLuint buffer
) {
5836 driver_
->fn
.glBindBufferFn(target
, buffer
);
5839 void GLApiBase::glBindBufferBaseFn(GLenum target
, GLuint index
, GLuint buffer
) {
5840 driver_
->fn
.glBindBufferBaseFn(target
, index
, buffer
);
5843 void GLApiBase::glBindBufferRangeFn(GLenum target
,
5848 driver_
->fn
.glBindBufferRangeFn(target
, index
, buffer
, offset
, size
);
5851 void GLApiBase::glBindFragDataLocationFn(GLuint program
,
5854 driver_
->fn
.glBindFragDataLocationFn(program
, colorNumber
, name
);
5857 void GLApiBase::glBindFragDataLocationIndexedFn(GLuint program
,
5861 driver_
->fn
.glBindFragDataLocationIndexedFn(program
, colorNumber
, index
,
5865 void GLApiBase::glBindFramebufferEXTFn(GLenum target
, GLuint framebuffer
) {
5866 driver_
->fn
.glBindFramebufferEXTFn(target
, framebuffer
);
5869 void GLApiBase::glBindRenderbufferEXTFn(GLenum target
, GLuint renderbuffer
) {
5870 driver_
->fn
.glBindRenderbufferEXTFn(target
, renderbuffer
);
5873 void GLApiBase::glBindSamplerFn(GLuint unit
, GLuint sampler
) {
5874 driver_
->fn
.glBindSamplerFn(unit
, sampler
);
5877 void GLApiBase::glBindTextureFn(GLenum target
, GLuint texture
) {
5878 driver_
->fn
.glBindTextureFn(target
, texture
);
5881 void GLApiBase::glBindTransformFeedbackFn(GLenum target
, GLuint id
) {
5882 driver_
->fn
.glBindTransformFeedbackFn(target
, id
);
5885 void GLApiBase::glBindVertexArrayOESFn(GLuint array
) {
5886 driver_
->fn
.glBindVertexArrayOESFn(array
);
5889 void GLApiBase::glBlendBarrierKHRFn(void) {
5890 driver_
->fn
.glBlendBarrierKHRFn();
5893 void GLApiBase::glBlendColorFn(GLclampf red
,
5897 driver_
->fn
.glBlendColorFn(red
, green
, blue
, alpha
);
5900 void GLApiBase::glBlendEquationFn(GLenum mode
) {
5901 driver_
->fn
.glBlendEquationFn(mode
);
5904 void GLApiBase::glBlendEquationSeparateFn(GLenum modeRGB
, GLenum modeAlpha
) {
5905 driver_
->fn
.glBlendEquationSeparateFn(modeRGB
, modeAlpha
);
5908 void GLApiBase::glBlendFuncFn(GLenum sfactor
, GLenum dfactor
) {
5909 driver_
->fn
.glBlendFuncFn(sfactor
, dfactor
);
5912 void GLApiBase::glBlendFuncSeparateFn(GLenum srcRGB
,
5916 driver_
->fn
.glBlendFuncSeparateFn(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
5919 void GLApiBase::glBlitFramebufferFn(GLint srcX0
,
5929 driver_
->fn
.glBlitFramebufferFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
5930 dstX1
, dstY1
, mask
, filter
);
5933 void GLApiBase::glBlitFramebufferANGLEFn(GLint srcX0
,
5943 driver_
->fn
.glBlitFramebufferANGLEFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
5944 dstX1
, dstY1
, mask
, filter
);
5947 void GLApiBase::glBlitFramebufferEXTFn(GLint srcX0
,
5957 driver_
->fn
.glBlitFramebufferEXTFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
5958 dstX1
, dstY1
, mask
, filter
);
5961 void GLApiBase::glBufferDataFn(GLenum target
,
5965 driver_
->fn
.glBufferDataFn(target
, size
, data
, usage
);
5968 void GLApiBase::glBufferSubDataFn(GLenum target
,
5972 driver_
->fn
.glBufferSubDataFn(target
, offset
, size
, data
);
5975 GLenum
GLApiBase::glCheckFramebufferStatusEXTFn(GLenum target
) {
5976 return driver_
->fn
.glCheckFramebufferStatusEXTFn(target
);
5979 void GLApiBase::glClearFn(GLbitfield mask
) {
5980 driver_
->fn
.glClearFn(mask
);
5983 void GLApiBase::glClearBufferfiFn(GLenum buffer
,
5985 const GLfloat depth
,
5987 driver_
->fn
.glClearBufferfiFn(buffer
, drawbuffer
, depth
, stencil
);
5990 void GLApiBase::glClearBufferfvFn(GLenum buffer
,
5992 const GLfloat
* value
) {
5993 driver_
->fn
.glClearBufferfvFn(buffer
, drawbuffer
, value
);
5996 void GLApiBase::glClearBufferivFn(GLenum buffer
,
5998 const GLint
* value
) {
5999 driver_
->fn
.glClearBufferivFn(buffer
, drawbuffer
, value
);
6002 void GLApiBase::glClearBufferuivFn(GLenum buffer
,
6004 const GLuint
* value
) {
6005 driver_
->fn
.glClearBufferuivFn(buffer
, drawbuffer
, value
);
6008 void GLApiBase::glClearColorFn(GLclampf red
,
6012 driver_
->fn
.glClearColorFn(red
, green
, blue
, alpha
);
6015 void GLApiBase::glClearDepthFn(GLclampd depth
) {
6016 driver_
->fn
.glClearDepthFn(depth
);
6019 void GLApiBase::glClearDepthfFn(GLclampf depth
) {
6020 driver_
->fn
.glClearDepthfFn(depth
);
6023 void GLApiBase::glClearStencilFn(GLint s
) {
6024 driver_
->fn
.glClearStencilFn(s
);
6027 GLenum
GLApiBase::glClientWaitSyncFn(GLsync sync
,
6030 return driver_
->fn
.glClientWaitSyncFn(sync
, flags
, timeout
);
6033 void GLApiBase::glColorMaskFn(GLboolean red
,
6037 driver_
->fn
.glColorMaskFn(red
, green
, blue
, alpha
);
6040 void GLApiBase::glCompileShaderFn(GLuint shader
) {
6041 driver_
->fn
.glCompileShaderFn(shader
);
6044 void GLApiBase::glCompressedTexImage2DFn(GLenum target
,
6046 GLenum internalformat
,
6052 driver_
->fn
.glCompressedTexImage2DFn(target
, level
, internalformat
, width
,
6053 height
, border
, imageSize
, data
);
6056 void GLApiBase::glCompressedTexImage3DFn(GLenum target
,
6058 GLenum internalformat
,
6065 driver_
->fn
.glCompressedTexImage3DFn(target
, level
, internalformat
, width
,
6066 height
, depth
, border
, imageSize
, data
);
6069 void GLApiBase::glCompressedTexSubImage2DFn(GLenum target
,
6078 driver_
->fn
.glCompressedTexSubImage2DFn(
6079 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
6082 void GLApiBase::glCopyBufferSubDataFn(GLenum readTarget
,
6084 GLintptr readOffset
,
6085 GLintptr writeOffset
,
6087 driver_
->fn
.glCopyBufferSubDataFn(readTarget
, writeTarget
, readOffset
,
6091 void GLApiBase::glCopyTexImage2DFn(GLenum target
,
6093 GLenum internalformat
,
6099 driver_
->fn
.glCopyTexImage2DFn(target
, level
, internalformat
, x
, y
, width
,
6103 void GLApiBase::glCopyTexSubImage2DFn(GLenum target
,
6111 driver_
->fn
.glCopyTexSubImage2DFn(target
, level
, xoffset
, yoffset
, x
, y
,
6115 void GLApiBase::glCopyTexSubImage3DFn(GLenum target
,
6124 driver_
->fn
.glCopyTexSubImage3DFn(target
, level
, xoffset
, yoffset
, zoffset
, x
,
6128 GLuint
GLApiBase::glCreateProgramFn(void) {
6129 return driver_
->fn
.glCreateProgramFn();
6132 GLuint
GLApiBase::glCreateShaderFn(GLenum type
) {
6133 return driver_
->fn
.glCreateShaderFn(type
);
6136 void GLApiBase::glCullFaceFn(GLenum mode
) {
6137 driver_
->fn
.glCullFaceFn(mode
);
6140 void GLApiBase::glDeleteBuffersARBFn(GLsizei n
, const GLuint
* buffers
) {
6141 driver_
->fn
.glDeleteBuffersARBFn(n
, buffers
);
6144 void GLApiBase::glDeleteFencesAPPLEFn(GLsizei n
, const GLuint
* fences
) {
6145 driver_
->fn
.glDeleteFencesAPPLEFn(n
, fences
);
6148 void GLApiBase::glDeleteFencesNVFn(GLsizei n
, const GLuint
* fences
) {
6149 driver_
->fn
.glDeleteFencesNVFn(n
, fences
);
6152 void GLApiBase::glDeleteFramebuffersEXTFn(GLsizei n
,
6153 const GLuint
* framebuffers
) {
6154 driver_
->fn
.glDeleteFramebuffersEXTFn(n
, framebuffers
);
6157 void GLApiBase::glDeleteProgramFn(GLuint program
) {
6158 driver_
->fn
.glDeleteProgramFn(program
);
6161 void GLApiBase::glDeleteQueriesFn(GLsizei n
, const GLuint
* ids
) {
6162 driver_
->fn
.glDeleteQueriesFn(n
, ids
);
6165 void GLApiBase::glDeleteRenderbuffersEXTFn(GLsizei n
,
6166 const GLuint
* renderbuffers
) {
6167 driver_
->fn
.glDeleteRenderbuffersEXTFn(n
, renderbuffers
);
6170 void GLApiBase::glDeleteSamplersFn(GLsizei n
, const GLuint
* samplers
) {
6171 driver_
->fn
.glDeleteSamplersFn(n
, samplers
);
6174 void GLApiBase::glDeleteShaderFn(GLuint shader
) {
6175 driver_
->fn
.glDeleteShaderFn(shader
);
6178 void GLApiBase::glDeleteSyncFn(GLsync sync
) {
6179 driver_
->fn
.glDeleteSyncFn(sync
);
6182 void GLApiBase::glDeleteTexturesFn(GLsizei n
, const GLuint
* textures
) {
6183 driver_
->fn
.glDeleteTexturesFn(n
, textures
);
6186 void GLApiBase::glDeleteTransformFeedbacksFn(GLsizei n
, const GLuint
* ids
) {
6187 driver_
->fn
.glDeleteTransformFeedbacksFn(n
, ids
);
6190 void GLApiBase::glDeleteVertexArraysOESFn(GLsizei n
, const GLuint
* arrays
) {
6191 driver_
->fn
.glDeleteVertexArraysOESFn(n
, arrays
);
6194 void GLApiBase::glDepthFuncFn(GLenum func
) {
6195 driver_
->fn
.glDepthFuncFn(func
);
6198 void GLApiBase::glDepthMaskFn(GLboolean flag
) {
6199 driver_
->fn
.glDepthMaskFn(flag
);
6202 void GLApiBase::glDepthRangeFn(GLclampd zNear
, GLclampd zFar
) {
6203 driver_
->fn
.glDepthRangeFn(zNear
, zFar
);
6206 void GLApiBase::glDepthRangefFn(GLclampf zNear
, GLclampf zFar
) {
6207 driver_
->fn
.glDepthRangefFn(zNear
, zFar
);
6210 void GLApiBase::glDetachShaderFn(GLuint program
, GLuint shader
) {
6211 driver_
->fn
.glDetachShaderFn(program
, shader
);
6214 void GLApiBase::glDisableFn(GLenum cap
) {
6215 driver_
->fn
.glDisableFn(cap
);
6218 void GLApiBase::glDisableVertexAttribArrayFn(GLuint index
) {
6219 driver_
->fn
.glDisableVertexAttribArrayFn(index
);
6222 void GLApiBase::glDiscardFramebufferEXTFn(GLenum target
,
6223 GLsizei numAttachments
,
6224 const GLenum
* attachments
) {
6225 driver_
->fn
.glDiscardFramebufferEXTFn(target
, numAttachments
, attachments
);
6228 void GLApiBase::glDrawArraysFn(GLenum mode
, GLint first
, GLsizei count
) {
6229 driver_
->fn
.glDrawArraysFn(mode
, first
, count
);
6232 void GLApiBase::glDrawArraysInstancedANGLEFn(GLenum mode
,
6235 GLsizei primcount
) {
6236 driver_
->fn
.glDrawArraysInstancedANGLEFn(mode
, first
, count
, primcount
);
6239 void GLApiBase::glDrawBufferFn(GLenum mode
) {
6240 driver_
->fn
.glDrawBufferFn(mode
);
6243 void GLApiBase::glDrawBuffersARBFn(GLsizei n
, const GLenum
* bufs
) {
6244 driver_
->fn
.glDrawBuffersARBFn(n
, bufs
);
6247 void GLApiBase::glDrawElementsFn(GLenum mode
,
6250 const void* indices
) {
6251 driver_
->fn
.glDrawElementsFn(mode
, count
, type
, indices
);
6254 void GLApiBase::glDrawElementsInstancedANGLEFn(GLenum mode
,
6257 const void* indices
,
6258 GLsizei primcount
) {
6259 driver_
->fn
.glDrawElementsInstancedANGLEFn(mode
, count
, type
, indices
,
6263 void GLApiBase::glDrawRangeElementsFn(GLenum mode
,
6268 const void* indices
) {
6269 driver_
->fn
.glDrawRangeElementsFn(mode
, start
, end
, count
, type
, indices
);
6272 void GLApiBase::glEGLImageTargetRenderbufferStorageOESFn(GLenum target
,
6273 GLeglImageOES image
) {
6274 driver_
->fn
.glEGLImageTargetRenderbufferStorageOESFn(target
, image
);
6277 void GLApiBase::glEGLImageTargetTexture2DOESFn(GLenum target
,
6278 GLeglImageOES image
) {
6279 driver_
->fn
.glEGLImageTargetTexture2DOESFn(target
, image
);
6282 void GLApiBase::glEnableFn(GLenum cap
) {
6283 driver_
->fn
.glEnableFn(cap
);
6286 void GLApiBase::glEnableVertexAttribArrayFn(GLuint index
) {
6287 driver_
->fn
.glEnableVertexAttribArrayFn(index
);
6290 void GLApiBase::glEndQueryFn(GLenum target
) {
6291 driver_
->fn
.glEndQueryFn(target
);
6294 void GLApiBase::glEndTransformFeedbackFn(void) {
6295 driver_
->fn
.glEndTransformFeedbackFn();
6298 GLsync
GLApiBase::glFenceSyncFn(GLenum condition
, GLbitfield flags
) {
6299 return driver_
->fn
.glFenceSyncFn(condition
, flags
);
6302 void GLApiBase::glFinishFn(void) {
6303 driver_
->fn
.glFinishFn();
6306 void GLApiBase::glFinishFenceAPPLEFn(GLuint fence
) {
6307 driver_
->fn
.glFinishFenceAPPLEFn(fence
);
6310 void GLApiBase::glFinishFenceNVFn(GLuint fence
) {
6311 driver_
->fn
.glFinishFenceNVFn(fence
);
6314 void GLApiBase::glFlushFn(void) {
6315 driver_
->fn
.glFlushFn();
6318 void GLApiBase::glFlushMappedBufferRangeFn(GLenum target
,
6320 GLsizeiptr length
) {
6321 driver_
->fn
.glFlushMappedBufferRangeFn(target
, offset
, length
);
6324 void GLApiBase::glFramebufferRenderbufferEXTFn(GLenum target
,
6326 GLenum renderbuffertarget
,
6327 GLuint renderbuffer
) {
6328 driver_
->fn
.glFramebufferRenderbufferEXTFn(target
, attachment
,
6329 renderbuffertarget
, renderbuffer
);
6332 void GLApiBase::glFramebufferTexture2DEXTFn(GLenum target
,
6337 driver_
->fn
.glFramebufferTexture2DEXTFn(target
, attachment
, textarget
,
6341 void GLApiBase::glFramebufferTexture2DMultisampleEXTFn(GLenum target
,
6347 driver_
->fn
.glFramebufferTexture2DMultisampleEXTFn(
6348 target
, attachment
, textarget
, texture
, level
, samples
);
6351 void GLApiBase::glFramebufferTexture2DMultisampleIMGFn(GLenum target
,
6357 driver_
->fn
.glFramebufferTexture2DMultisampleIMGFn(
6358 target
, attachment
, textarget
, texture
, level
, samples
);
6361 void GLApiBase::glFramebufferTextureLayerFn(GLenum target
,
6366 driver_
->fn
.glFramebufferTextureLayerFn(target
, attachment
, texture
, level
,
6370 void GLApiBase::glFrontFaceFn(GLenum mode
) {
6371 driver_
->fn
.glFrontFaceFn(mode
);
6374 void GLApiBase::glGenBuffersARBFn(GLsizei n
, GLuint
* buffers
) {
6375 driver_
->fn
.glGenBuffersARBFn(n
, buffers
);
6378 void GLApiBase::glGenerateMipmapEXTFn(GLenum target
) {
6379 driver_
->fn
.glGenerateMipmapEXTFn(target
);
6382 void GLApiBase::glGenFencesAPPLEFn(GLsizei n
, GLuint
* fences
) {
6383 driver_
->fn
.glGenFencesAPPLEFn(n
, fences
);
6386 void GLApiBase::glGenFencesNVFn(GLsizei n
, GLuint
* fences
) {
6387 driver_
->fn
.glGenFencesNVFn(n
, fences
);
6390 void GLApiBase::glGenFramebuffersEXTFn(GLsizei n
, GLuint
* framebuffers
) {
6391 driver_
->fn
.glGenFramebuffersEXTFn(n
, framebuffers
);
6394 void GLApiBase::glGenQueriesFn(GLsizei n
, GLuint
* ids
) {
6395 driver_
->fn
.glGenQueriesFn(n
, ids
);
6398 void GLApiBase::glGenRenderbuffersEXTFn(GLsizei n
, GLuint
* renderbuffers
) {
6399 driver_
->fn
.glGenRenderbuffersEXTFn(n
, renderbuffers
);
6402 void GLApiBase::glGenSamplersFn(GLsizei n
, GLuint
* samplers
) {
6403 driver_
->fn
.glGenSamplersFn(n
, samplers
);
6406 void GLApiBase::glGenTexturesFn(GLsizei n
, GLuint
* textures
) {
6407 driver_
->fn
.glGenTexturesFn(n
, textures
);
6410 void GLApiBase::glGenTransformFeedbacksFn(GLsizei n
, GLuint
* ids
) {
6411 driver_
->fn
.glGenTransformFeedbacksFn(n
, ids
);
6414 void GLApiBase::glGenVertexArraysOESFn(GLsizei n
, GLuint
* arrays
) {
6415 driver_
->fn
.glGenVertexArraysOESFn(n
, arrays
);
6418 void GLApiBase::glGetActiveAttribFn(GLuint program
,
6425 driver_
->fn
.glGetActiveAttribFn(program
, index
, bufsize
, length
, size
, type
,
6429 void GLApiBase::glGetActiveUniformFn(GLuint program
,
6436 driver_
->fn
.glGetActiveUniformFn(program
, index
, bufsize
, length
, size
, type
,
6440 void GLApiBase::glGetActiveUniformBlockivFn(GLuint program
,
6441 GLuint uniformBlockIndex
,
6444 driver_
->fn
.glGetActiveUniformBlockivFn(program
, uniformBlockIndex
, pname
,
6448 void GLApiBase::glGetActiveUniformBlockNameFn(GLuint program
,
6449 GLuint uniformBlockIndex
,
6452 char* uniformBlockName
) {
6453 driver_
->fn
.glGetActiveUniformBlockNameFn(program
, uniformBlockIndex
, bufSize
,
6454 length
, uniformBlockName
);
6457 void GLApiBase::glGetActiveUniformsivFn(GLuint program
,
6458 GLsizei uniformCount
,
6459 const GLuint
* uniformIndices
,
6462 driver_
->fn
.glGetActiveUniformsivFn(program
, uniformCount
, uniformIndices
,
6466 void GLApiBase::glGetAttachedShadersFn(GLuint program
,
6470 driver_
->fn
.glGetAttachedShadersFn(program
, maxcount
, count
, shaders
);
6473 GLint
GLApiBase::glGetAttribLocationFn(GLuint program
, const char* name
) {
6474 return driver_
->fn
.glGetAttribLocationFn(program
, name
);
6477 void GLApiBase::glGetBooleanvFn(GLenum pname
, GLboolean
* params
) {
6478 driver_
->fn
.glGetBooleanvFn(pname
, params
);
6481 void GLApiBase::glGetBufferParameterivFn(GLenum target
,
6484 driver_
->fn
.glGetBufferParameterivFn(target
, pname
, params
);
6487 GLenum
GLApiBase::glGetErrorFn(void) {
6488 return driver_
->fn
.glGetErrorFn();
6491 void GLApiBase::glGetFenceivNVFn(GLuint fence
, GLenum pname
, GLint
* params
) {
6492 driver_
->fn
.glGetFenceivNVFn(fence
, pname
, params
);
6495 void GLApiBase::glGetFloatvFn(GLenum pname
, GLfloat
* params
) {
6496 driver_
->fn
.glGetFloatvFn(pname
, params
);
6499 GLint
GLApiBase::glGetFragDataLocationFn(GLuint program
, const char* name
) {
6500 return driver_
->fn
.glGetFragDataLocationFn(program
, name
);
6503 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target
,
6507 driver_
->fn
.glGetFramebufferAttachmentParameterivEXTFn(target
, attachment
,
6511 GLenum
GLApiBase::glGetGraphicsResetStatusARBFn(void) {
6512 return driver_
->fn
.glGetGraphicsResetStatusARBFn();
6515 void GLApiBase::glGetInteger64i_vFn(GLenum target
,
6518 driver_
->fn
.glGetInteger64i_vFn(target
, index
, data
);
6521 void GLApiBase::glGetInteger64vFn(GLenum pname
, GLint64
* params
) {
6522 driver_
->fn
.glGetInteger64vFn(pname
, params
);
6525 void GLApiBase::glGetIntegeri_vFn(GLenum target
, GLuint index
, GLint
* data
) {
6526 driver_
->fn
.glGetIntegeri_vFn(target
, index
, data
);
6529 void GLApiBase::glGetIntegervFn(GLenum pname
, GLint
* params
) {
6530 driver_
->fn
.glGetIntegervFn(pname
, params
);
6533 void GLApiBase::glGetInternalformativFn(GLenum target
,
6534 GLenum internalformat
,
6538 driver_
->fn
.glGetInternalformativFn(target
, internalformat
, pname
, bufSize
,
6542 void GLApiBase::glGetProgramBinaryFn(GLuint program
,
6545 GLenum
* binaryFormat
,
6547 driver_
->fn
.glGetProgramBinaryFn(program
, bufSize
, length
, binaryFormat
,
6551 void GLApiBase::glGetProgramInfoLogFn(GLuint program
,
6555 driver_
->fn
.glGetProgramInfoLogFn(program
, bufsize
, length
, infolog
);
6558 void GLApiBase::glGetProgramivFn(GLuint program
, GLenum pname
, GLint
* params
) {
6559 driver_
->fn
.glGetProgramivFn(program
, pname
, params
);
6562 GLint
GLApiBase::glGetProgramResourceLocationFn(GLuint program
,
6563 GLenum programInterface
,
6565 return driver_
->fn
.glGetProgramResourceLocationFn(program
, programInterface
,
6569 void GLApiBase::glGetQueryivFn(GLenum target
, GLenum pname
, GLint
* params
) {
6570 driver_
->fn
.glGetQueryivFn(target
, pname
, params
);
6573 void GLApiBase::glGetQueryObjecti64vFn(GLuint id
,
6576 driver_
->fn
.glGetQueryObjecti64vFn(id
, pname
, params
);
6579 void GLApiBase::glGetQueryObjectivFn(GLuint id
, GLenum pname
, GLint
* params
) {
6580 driver_
->fn
.glGetQueryObjectivFn(id
, pname
, params
);
6583 void GLApiBase::glGetQueryObjectui64vFn(GLuint id
,
6586 driver_
->fn
.glGetQueryObjectui64vFn(id
, pname
, params
);
6589 void GLApiBase::glGetQueryObjectuivFn(GLuint id
, GLenum pname
, GLuint
* params
) {
6590 driver_
->fn
.glGetQueryObjectuivFn(id
, pname
, params
);
6593 void GLApiBase::glGetRenderbufferParameterivEXTFn(GLenum target
,
6596 driver_
->fn
.glGetRenderbufferParameterivEXTFn(target
, pname
, params
);
6599 void GLApiBase::glGetSamplerParameterfvFn(GLuint sampler
,
6602 driver_
->fn
.glGetSamplerParameterfvFn(sampler
, pname
, params
);
6605 void GLApiBase::glGetSamplerParameterivFn(GLuint sampler
,
6608 driver_
->fn
.glGetSamplerParameterivFn(sampler
, pname
, params
);
6611 void GLApiBase::glGetShaderInfoLogFn(GLuint shader
,
6615 driver_
->fn
.glGetShaderInfoLogFn(shader
, bufsize
, length
, infolog
);
6618 void GLApiBase::glGetShaderivFn(GLuint shader
, GLenum pname
, GLint
* params
) {
6619 driver_
->fn
.glGetShaderivFn(shader
, pname
, params
);
6622 void GLApiBase::glGetShaderPrecisionFormatFn(GLenum shadertype
,
6623 GLenum precisiontype
,
6626 driver_
->fn
.glGetShaderPrecisionFormatFn(shadertype
, precisiontype
, range
,
6630 void GLApiBase::glGetShaderSourceFn(GLuint shader
,
6634 driver_
->fn
.glGetShaderSourceFn(shader
, bufsize
, length
, source
);
6637 const GLubyte
* GLApiBase::glGetStringFn(GLenum name
) {
6638 return driver_
->fn
.glGetStringFn(name
);
6641 const GLubyte
* GLApiBase::glGetStringiFn(GLenum name
, GLuint index
) {
6642 return driver_
->fn
.glGetStringiFn(name
, index
);
6645 void GLApiBase::glGetSyncivFn(GLsync sync
,
6650 driver_
->fn
.glGetSyncivFn(sync
, pname
, bufSize
, length
, values
);
6653 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target
,
6657 driver_
->fn
.glGetTexLevelParameterfvFn(target
, level
, pname
, params
);
6660 void GLApiBase::glGetTexLevelParameterivFn(GLenum target
,
6664 driver_
->fn
.glGetTexLevelParameterivFn(target
, level
, pname
, params
);
6667 void GLApiBase::glGetTexParameterfvFn(GLenum target
,
6670 driver_
->fn
.glGetTexParameterfvFn(target
, pname
, params
);
6673 void GLApiBase::glGetTexParameterivFn(GLenum target
,
6676 driver_
->fn
.glGetTexParameterivFn(target
, pname
, params
);
6679 void GLApiBase::glGetTransformFeedbackVaryingFn(GLuint program
,
6686 driver_
->fn
.glGetTransformFeedbackVaryingFn(program
, index
, bufSize
, length
,
6690 void GLApiBase::glGetTranslatedShaderSourceANGLEFn(GLuint shader
,
6694 driver_
->fn
.glGetTranslatedShaderSourceANGLEFn(shader
, bufsize
, length
,
6698 GLuint
GLApiBase::glGetUniformBlockIndexFn(GLuint program
,
6699 const char* uniformBlockName
) {
6700 return driver_
->fn
.glGetUniformBlockIndexFn(program
, uniformBlockName
);
6703 void GLApiBase::glGetUniformfvFn(GLuint program
,
6706 driver_
->fn
.glGetUniformfvFn(program
, location
, params
);
6709 void GLApiBase::glGetUniformIndicesFn(GLuint program
,
6710 GLsizei uniformCount
,
6711 const char* const* uniformNames
,
6712 GLuint
* uniformIndices
) {
6713 driver_
->fn
.glGetUniformIndicesFn(program
, uniformCount
, uniformNames
,
6717 void GLApiBase::glGetUniformivFn(GLuint program
,
6720 driver_
->fn
.glGetUniformivFn(program
, location
, params
);
6723 GLint
GLApiBase::glGetUniformLocationFn(GLuint program
, const char* name
) {
6724 return driver_
->fn
.glGetUniformLocationFn(program
, name
);
6727 void GLApiBase::glGetVertexAttribfvFn(GLuint index
,
6730 driver_
->fn
.glGetVertexAttribfvFn(index
, pname
, params
);
6733 void GLApiBase::glGetVertexAttribivFn(GLuint index
,
6736 driver_
->fn
.glGetVertexAttribivFn(index
, pname
, params
);
6739 void GLApiBase::glGetVertexAttribPointervFn(GLuint index
,
6742 driver_
->fn
.glGetVertexAttribPointervFn(index
, pname
, pointer
);
6745 void GLApiBase::glHintFn(GLenum target
, GLenum mode
) {
6746 driver_
->fn
.glHintFn(target
, mode
);
6749 void GLApiBase::glInsertEventMarkerEXTFn(GLsizei length
, const char* marker
) {
6750 driver_
->fn
.glInsertEventMarkerEXTFn(length
, marker
);
6753 void GLApiBase::glInvalidateFramebufferFn(GLenum target
,
6754 GLsizei numAttachments
,
6755 const GLenum
* attachments
) {
6756 driver_
->fn
.glInvalidateFramebufferFn(target
, numAttachments
, attachments
);
6759 void GLApiBase::glInvalidateSubFramebufferFn(GLenum target
,
6760 GLsizei numAttachments
,
6761 const GLenum
* attachments
,
6766 driver_
->fn
.glInvalidateSubFramebufferFn(target
, numAttachments
, attachments
,
6767 x
, y
, width
, height
);
6770 GLboolean
GLApiBase::glIsBufferFn(GLuint buffer
) {
6771 return driver_
->fn
.glIsBufferFn(buffer
);
6774 GLboolean
GLApiBase::glIsEnabledFn(GLenum cap
) {
6775 return driver_
->fn
.glIsEnabledFn(cap
);
6778 GLboolean
GLApiBase::glIsFenceAPPLEFn(GLuint fence
) {
6779 return driver_
->fn
.glIsFenceAPPLEFn(fence
);
6782 GLboolean
GLApiBase::glIsFenceNVFn(GLuint fence
) {
6783 return driver_
->fn
.glIsFenceNVFn(fence
);
6786 GLboolean
GLApiBase::glIsFramebufferEXTFn(GLuint framebuffer
) {
6787 return driver_
->fn
.glIsFramebufferEXTFn(framebuffer
);
6790 GLboolean
GLApiBase::glIsProgramFn(GLuint program
) {
6791 return driver_
->fn
.glIsProgramFn(program
);
6794 GLboolean
GLApiBase::glIsQueryFn(GLuint query
) {
6795 return driver_
->fn
.glIsQueryFn(query
);
6798 GLboolean
GLApiBase::glIsRenderbufferEXTFn(GLuint renderbuffer
) {
6799 return driver_
->fn
.glIsRenderbufferEXTFn(renderbuffer
);
6802 GLboolean
GLApiBase::glIsSamplerFn(GLuint sampler
) {
6803 return driver_
->fn
.glIsSamplerFn(sampler
);
6806 GLboolean
GLApiBase::glIsShaderFn(GLuint shader
) {
6807 return driver_
->fn
.glIsShaderFn(shader
);
6810 GLboolean
GLApiBase::glIsSyncFn(GLsync sync
) {
6811 return driver_
->fn
.glIsSyncFn(sync
);
6814 GLboolean
GLApiBase::glIsTextureFn(GLuint texture
) {
6815 return driver_
->fn
.glIsTextureFn(texture
);
6818 GLboolean
GLApiBase::glIsTransformFeedbackFn(GLuint id
) {
6819 return driver_
->fn
.glIsTransformFeedbackFn(id
);
6822 GLboolean
GLApiBase::glIsVertexArrayOESFn(GLuint array
) {
6823 return driver_
->fn
.glIsVertexArrayOESFn(array
);
6826 void GLApiBase::glLineWidthFn(GLfloat width
) {
6827 driver_
->fn
.glLineWidthFn(width
);
6830 void GLApiBase::glLinkProgramFn(GLuint program
) {
6831 driver_
->fn
.glLinkProgramFn(program
);
6834 void* GLApiBase::glMapBufferFn(GLenum target
, GLenum access
) {
6835 return driver_
->fn
.glMapBufferFn(target
, access
);
6838 void* GLApiBase::glMapBufferRangeFn(GLenum target
,
6841 GLbitfield access
) {
6842 return driver_
->fn
.glMapBufferRangeFn(target
, offset
, length
, access
);
6845 void GLApiBase::glMatrixLoadfEXTFn(GLenum matrixMode
, const GLfloat
* m
) {
6846 driver_
->fn
.glMatrixLoadfEXTFn(matrixMode
, m
);
6849 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode
) {
6850 driver_
->fn
.glMatrixLoadIdentityEXTFn(matrixMode
);
6853 void GLApiBase::glPauseTransformFeedbackFn(void) {
6854 driver_
->fn
.glPauseTransformFeedbackFn();
6857 void GLApiBase::glPixelStoreiFn(GLenum pname
, GLint param
) {
6858 driver_
->fn
.glPixelStoreiFn(pname
, param
);
6861 void GLApiBase::glPointParameteriFn(GLenum pname
, GLint param
) {
6862 driver_
->fn
.glPointParameteriFn(pname
, param
);
6865 void GLApiBase::glPolygonOffsetFn(GLfloat factor
, GLfloat units
) {
6866 driver_
->fn
.glPolygonOffsetFn(factor
, units
);
6869 void GLApiBase::glPopGroupMarkerEXTFn(void) {
6870 driver_
->fn
.glPopGroupMarkerEXTFn();
6873 void GLApiBase::glProgramBinaryFn(GLuint program
,
6874 GLenum binaryFormat
,
6875 const GLvoid
* binary
,
6877 driver_
->fn
.glProgramBinaryFn(program
, binaryFormat
, binary
, length
);
6880 void GLApiBase::glProgramParameteriFn(GLuint program
,
6883 driver_
->fn
.glProgramParameteriFn(program
, pname
, value
);
6886 void GLApiBase::glPushGroupMarkerEXTFn(GLsizei length
, const char* marker
) {
6887 driver_
->fn
.glPushGroupMarkerEXTFn(length
, marker
);
6890 void GLApiBase::glQueryCounterFn(GLuint id
, GLenum target
) {
6891 driver_
->fn
.glQueryCounterFn(id
, target
);
6894 void GLApiBase::glReadBufferFn(GLenum src
) {
6895 driver_
->fn
.glReadBufferFn(src
);
6898 void GLApiBase::glReadPixelsFn(GLint x
,
6905 driver_
->fn
.glReadPixelsFn(x
, y
, width
, height
, format
, type
, pixels
);
6908 void GLApiBase::glReleaseShaderCompilerFn(void) {
6909 driver_
->fn
.glReleaseShaderCompilerFn();
6912 void GLApiBase::glRenderbufferStorageEXTFn(GLenum target
,
6913 GLenum internalformat
,
6916 driver_
->fn
.glRenderbufferStorageEXTFn(target
, internalformat
, width
, height
);
6919 void GLApiBase::glRenderbufferStorageMultisampleFn(GLenum target
,
6921 GLenum internalformat
,
6924 driver_
->fn
.glRenderbufferStorageMultisampleFn(target
, samples
,
6925 internalformat
, width
, height
);
6928 void GLApiBase::glRenderbufferStorageMultisampleANGLEFn(GLenum target
,
6930 GLenum internalformat
,
6933 driver_
->fn
.glRenderbufferStorageMultisampleANGLEFn(
6934 target
, samples
, internalformat
, width
, height
);
6937 void GLApiBase::glRenderbufferStorageMultisampleEXTFn(GLenum target
,
6939 GLenum internalformat
,
6942 driver_
->fn
.glRenderbufferStorageMultisampleEXTFn(
6943 target
, samples
, internalformat
, width
, height
);
6946 void GLApiBase::glRenderbufferStorageMultisampleIMGFn(GLenum target
,
6948 GLenum internalformat
,
6951 driver_
->fn
.glRenderbufferStorageMultisampleIMGFn(
6952 target
, samples
, internalformat
, width
, height
);
6955 void GLApiBase::glResumeTransformFeedbackFn(void) {
6956 driver_
->fn
.glResumeTransformFeedbackFn();
6959 void GLApiBase::glSampleCoverageFn(GLclampf value
, GLboolean invert
) {
6960 driver_
->fn
.glSampleCoverageFn(value
, invert
);
6963 void GLApiBase::glSamplerParameterfFn(GLuint sampler
,
6966 driver_
->fn
.glSamplerParameterfFn(sampler
, pname
, param
);
6969 void GLApiBase::glSamplerParameterfvFn(GLuint sampler
,
6971 const GLfloat
* params
) {
6972 driver_
->fn
.glSamplerParameterfvFn(sampler
, pname
, params
);
6975 void GLApiBase::glSamplerParameteriFn(GLuint sampler
,
6978 driver_
->fn
.glSamplerParameteriFn(sampler
, pname
, param
);
6981 void GLApiBase::glSamplerParameterivFn(GLuint sampler
,
6983 const GLint
* params
) {
6984 driver_
->fn
.glSamplerParameterivFn(sampler
, pname
, params
);
6987 void GLApiBase::glScissorFn(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
6988 driver_
->fn
.glScissorFn(x
, y
, width
, height
);
6991 void GLApiBase::glSetFenceAPPLEFn(GLuint fence
) {
6992 driver_
->fn
.glSetFenceAPPLEFn(fence
);
6995 void GLApiBase::glSetFenceNVFn(GLuint fence
, GLenum condition
) {
6996 driver_
->fn
.glSetFenceNVFn(fence
, condition
);
6999 void GLApiBase::glShaderBinaryFn(GLsizei n
,
7000 const GLuint
* shaders
,
7001 GLenum binaryformat
,
7004 driver_
->fn
.glShaderBinaryFn(n
, shaders
, binaryformat
, binary
, length
);
7007 void GLApiBase::glShaderSourceFn(GLuint shader
,
7009 const char* const* str
,
7010 const GLint
* length
) {
7011 driver_
->fn
.glShaderSourceFn(shader
, count
, str
, length
);
7014 void GLApiBase::glStencilFuncFn(GLenum func
, GLint ref
, GLuint mask
) {
7015 driver_
->fn
.glStencilFuncFn(func
, ref
, mask
);
7018 void GLApiBase::glStencilFuncSeparateFn(GLenum face
,
7022 driver_
->fn
.glStencilFuncSeparateFn(face
, func
, ref
, mask
);
7025 void GLApiBase::glStencilMaskFn(GLuint mask
) {
7026 driver_
->fn
.glStencilMaskFn(mask
);
7029 void GLApiBase::glStencilMaskSeparateFn(GLenum face
, GLuint mask
) {
7030 driver_
->fn
.glStencilMaskSeparateFn(face
, mask
);
7033 void GLApiBase::glStencilOpFn(GLenum fail
, GLenum zfail
, GLenum zpass
) {
7034 driver_
->fn
.glStencilOpFn(fail
, zfail
, zpass
);
7037 void GLApiBase::glStencilOpSeparateFn(GLenum face
,
7041 driver_
->fn
.glStencilOpSeparateFn(face
, fail
, zfail
, zpass
);
7044 GLboolean
GLApiBase::glTestFenceAPPLEFn(GLuint fence
) {
7045 return driver_
->fn
.glTestFenceAPPLEFn(fence
);
7048 GLboolean
GLApiBase::glTestFenceNVFn(GLuint fence
) {
7049 return driver_
->fn
.glTestFenceNVFn(fence
);
7052 void GLApiBase::glTexImage2DFn(GLenum target
,
7054 GLint internalformat
,
7060 const void* pixels
) {
7061 driver_
->fn
.glTexImage2DFn(target
, level
, internalformat
, width
, height
,
7062 border
, format
, type
, pixels
);
7065 void GLApiBase::glTexImage3DFn(GLenum target
,
7067 GLint internalformat
,
7074 const void* pixels
) {
7075 driver_
->fn
.glTexImage3DFn(target
, level
, internalformat
, width
, height
,
7076 depth
, border
, format
, type
, pixels
);
7079 void GLApiBase::glTexParameterfFn(GLenum target
, GLenum pname
, GLfloat param
) {
7080 driver_
->fn
.glTexParameterfFn(target
, pname
, param
);
7083 void GLApiBase::glTexParameterfvFn(GLenum target
,
7085 const GLfloat
* params
) {
7086 driver_
->fn
.glTexParameterfvFn(target
, pname
, params
);
7089 void GLApiBase::glTexParameteriFn(GLenum target
, GLenum pname
, GLint param
) {
7090 driver_
->fn
.glTexParameteriFn(target
, pname
, param
);
7093 void GLApiBase::glTexParameterivFn(GLenum target
,
7095 const GLint
* params
) {
7096 driver_
->fn
.glTexParameterivFn(target
, pname
, params
);
7099 void GLApiBase::glTexStorage2DEXTFn(GLenum target
,
7101 GLenum internalformat
,
7104 driver_
->fn
.glTexStorage2DEXTFn(target
, levels
, internalformat
, width
,
7108 void GLApiBase::glTexStorage3DFn(GLenum target
,
7110 GLenum internalformat
,
7114 driver_
->fn
.glTexStorage3DFn(target
, levels
, internalformat
, width
, height
,
7118 void GLApiBase::glTexSubImage2DFn(GLenum target
,
7126 const void* pixels
) {
7127 driver_
->fn
.glTexSubImage2DFn(target
, level
, xoffset
, yoffset
, width
, height
,
7128 format
, type
, pixels
);
7131 void GLApiBase::glTransformFeedbackVaryingsFn(GLuint program
,
7133 const char* const* varyings
,
7134 GLenum bufferMode
) {
7135 driver_
->fn
.glTransformFeedbackVaryingsFn(program
, count
, varyings
,
7139 void GLApiBase::glUniform1fFn(GLint location
, GLfloat x
) {
7140 driver_
->fn
.glUniform1fFn(location
, x
);
7143 void GLApiBase::glUniform1fvFn(GLint location
,
7146 driver_
->fn
.glUniform1fvFn(location
, count
, v
);
7149 void GLApiBase::glUniform1iFn(GLint location
, GLint x
) {
7150 driver_
->fn
.glUniform1iFn(location
, x
);
7153 void GLApiBase::glUniform1ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
7154 driver_
->fn
.glUniform1ivFn(location
, count
, v
);
7157 void GLApiBase::glUniform1uiFn(GLint location
, GLuint v0
) {
7158 driver_
->fn
.glUniform1uiFn(location
, v0
);
7161 void GLApiBase::glUniform1uivFn(GLint location
,
7164 driver_
->fn
.glUniform1uivFn(location
, count
, v
);
7167 void GLApiBase::glUniform2fFn(GLint location
, GLfloat x
, GLfloat y
) {
7168 driver_
->fn
.glUniform2fFn(location
, x
, y
);
7171 void GLApiBase::glUniform2fvFn(GLint location
,
7174 driver_
->fn
.glUniform2fvFn(location
, count
, v
);
7177 void GLApiBase::glUniform2iFn(GLint location
, GLint x
, GLint y
) {
7178 driver_
->fn
.glUniform2iFn(location
, x
, y
);
7181 void GLApiBase::glUniform2ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
7182 driver_
->fn
.glUniform2ivFn(location
, count
, v
);
7185 void GLApiBase::glUniform2uiFn(GLint location
, GLuint v0
, GLuint v1
) {
7186 driver_
->fn
.glUniform2uiFn(location
, v0
, v1
);
7189 void GLApiBase::glUniform2uivFn(GLint location
,
7192 driver_
->fn
.glUniform2uivFn(location
, count
, v
);
7195 void GLApiBase::glUniform3fFn(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
7196 driver_
->fn
.glUniform3fFn(location
, x
, y
, z
);
7199 void GLApiBase::glUniform3fvFn(GLint location
,
7202 driver_
->fn
.glUniform3fvFn(location
, count
, v
);
7205 void GLApiBase::glUniform3iFn(GLint location
, GLint x
, GLint y
, GLint z
) {
7206 driver_
->fn
.glUniform3iFn(location
, x
, y
, z
);
7209 void GLApiBase::glUniform3ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
7210 driver_
->fn
.glUniform3ivFn(location
, count
, v
);
7213 void GLApiBase::glUniform3uiFn(GLint location
,
7217 driver_
->fn
.glUniform3uiFn(location
, v0
, v1
, v2
);
7220 void GLApiBase::glUniform3uivFn(GLint location
,
7223 driver_
->fn
.glUniform3uivFn(location
, count
, v
);
7226 void GLApiBase::glUniform4fFn(GLint location
,
7231 driver_
->fn
.glUniform4fFn(location
, x
, y
, z
, w
);
7234 void GLApiBase::glUniform4fvFn(GLint location
,
7237 driver_
->fn
.glUniform4fvFn(location
, count
, v
);
7240 void GLApiBase::glUniform4iFn(GLint location
,
7245 driver_
->fn
.glUniform4iFn(location
, x
, y
, z
, w
);
7248 void GLApiBase::glUniform4ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
7249 driver_
->fn
.glUniform4ivFn(location
, count
, v
);
7252 void GLApiBase::glUniform4uiFn(GLint location
,
7257 driver_
->fn
.glUniform4uiFn(location
, v0
, v1
, v2
, v3
);
7260 void GLApiBase::glUniform4uivFn(GLint location
,
7263 driver_
->fn
.glUniform4uivFn(location
, count
, v
);
7266 void GLApiBase::glUniformBlockBindingFn(GLuint program
,
7267 GLuint uniformBlockIndex
,
7268 GLuint uniformBlockBinding
) {
7269 driver_
->fn
.glUniformBlockBindingFn(program
, uniformBlockIndex
,
7270 uniformBlockBinding
);
7273 void GLApiBase::glUniformMatrix2fvFn(GLint location
,
7275 GLboolean transpose
,
7276 const GLfloat
* value
) {
7277 driver_
->fn
.glUniformMatrix2fvFn(location
, count
, transpose
, value
);
7280 void GLApiBase::glUniformMatrix2x3fvFn(GLint location
,
7282 GLboolean transpose
,
7283 const GLfloat
* value
) {
7284 driver_
->fn
.glUniformMatrix2x3fvFn(location
, count
, transpose
, value
);
7287 void GLApiBase::glUniformMatrix2x4fvFn(GLint location
,
7289 GLboolean transpose
,
7290 const GLfloat
* value
) {
7291 driver_
->fn
.glUniformMatrix2x4fvFn(location
, count
, transpose
, value
);
7294 void GLApiBase::glUniformMatrix3fvFn(GLint location
,
7296 GLboolean transpose
,
7297 const GLfloat
* value
) {
7298 driver_
->fn
.glUniformMatrix3fvFn(location
, count
, transpose
, value
);
7301 void GLApiBase::glUniformMatrix3x2fvFn(GLint location
,
7303 GLboolean transpose
,
7304 const GLfloat
* value
) {
7305 driver_
->fn
.glUniformMatrix3x2fvFn(location
, count
, transpose
, value
);
7308 void GLApiBase::glUniformMatrix3x4fvFn(GLint location
,
7310 GLboolean transpose
,
7311 const GLfloat
* value
) {
7312 driver_
->fn
.glUniformMatrix3x4fvFn(location
, count
, transpose
, value
);
7315 void GLApiBase::glUniformMatrix4fvFn(GLint location
,
7317 GLboolean transpose
,
7318 const GLfloat
* value
) {
7319 driver_
->fn
.glUniformMatrix4fvFn(location
, count
, transpose
, value
);
7322 void GLApiBase::glUniformMatrix4x2fvFn(GLint location
,
7324 GLboolean transpose
,
7325 const GLfloat
* value
) {
7326 driver_
->fn
.glUniformMatrix4x2fvFn(location
, count
, transpose
, value
);
7329 void GLApiBase::glUniformMatrix4x3fvFn(GLint location
,
7331 GLboolean transpose
,
7332 const GLfloat
* value
) {
7333 driver_
->fn
.glUniformMatrix4x3fvFn(location
, count
, transpose
, value
);
7336 GLboolean
GLApiBase::glUnmapBufferFn(GLenum target
) {
7337 return driver_
->fn
.glUnmapBufferFn(target
);
7340 void GLApiBase::glUseProgramFn(GLuint program
) {
7341 driver_
->fn
.glUseProgramFn(program
);
7344 void GLApiBase::glValidateProgramFn(GLuint program
) {
7345 driver_
->fn
.glValidateProgramFn(program
);
7348 void GLApiBase::glVertexAttrib1fFn(GLuint indx
, GLfloat x
) {
7349 driver_
->fn
.glVertexAttrib1fFn(indx
, x
);
7352 void GLApiBase::glVertexAttrib1fvFn(GLuint indx
, const GLfloat
* values
) {
7353 driver_
->fn
.glVertexAttrib1fvFn(indx
, values
);
7356 void GLApiBase::glVertexAttrib2fFn(GLuint indx
, GLfloat x
, GLfloat y
) {
7357 driver_
->fn
.glVertexAttrib2fFn(indx
, x
, y
);
7360 void GLApiBase::glVertexAttrib2fvFn(GLuint indx
, const GLfloat
* values
) {
7361 driver_
->fn
.glVertexAttrib2fvFn(indx
, values
);
7364 void GLApiBase::glVertexAttrib3fFn(GLuint indx
,
7368 driver_
->fn
.glVertexAttrib3fFn(indx
, x
, y
, z
);
7371 void GLApiBase::glVertexAttrib3fvFn(GLuint indx
, const GLfloat
* values
) {
7372 driver_
->fn
.glVertexAttrib3fvFn(indx
, values
);
7375 void GLApiBase::glVertexAttrib4fFn(GLuint indx
,
7380 driver_
->fn
.glVertexAttrib4fFn(indx
, x
, y
, z
, w
);
7383 void GLApiBase::glVertexAttrib4fvFn(GLuint indx
, const GLfloat
* values
) {
7384 driver_
->fn
.glVertexAttrib4fvFn(indx
, values
);
7387 void GLApiBase::glVertexAttribDivisorANGLEFn(GLuint index
, GLuint divisor
) {
7388 driver_
->fn
.glVertexAttribDivisorANGLEFn(index
, divisor
);
7391 void GLApiBase::glVertexAttribI4iFn(GLuint indx
,
7396 driver_
->fn
.glVertexAttribI4iFn(indx
, x
, y
, z
, w
);
7399 void GLApiBase::glVertexAttribI4ivFn(GLuint indx
, const GLint
* values
) {
7400 driver_
->fn
.glVertexAttribI4ivFn(indx
, values
);
7403 void GLApiBase::glVertexAttribI4uiFn(GLuint indx
,
7408 driver_
->fn
.glVertexAttribI4uiFn(indx
, x
, y
, z
, w
);
7411 void GLApiBase::glVertexAttribI4uivFn(GLuint indx
, const GLuint
* values
) {
7412 driver_
->fn
.glVertexAttribI4uivFn(indx
, values
);
7415 void GLApiBase::glVertexAttribIPointerFn(GLuint indx
,
7420 driver_
->fn
.glVertexAttribIPointerFn(indx
, size
, type
, stride
, ptr
);
7423 void GLApiBase::glVertexAttribPointerFn(GLuint indx
,
7426 GLboolean normalized
,
7429 driver_
->fn
.glVertexAttribPointerFn(indx
, size
, type
, normalized
, stride
,
7433 void GLApiBase::glViewportFn(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
7434 driver_
->fn
.glViewportFn(x
, y
, width
, height
);
7437 GLenum
GLApiBase::glWaitSyncFn(GLsync sync
,
7440 return driver_
->fn
.glWaitSyncFn(sync
, flags
, timeout
);
7443 void TraceGLApi::glActiveTextureFn(GLenum texture
) {
7444 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glActiveTexture")
7445 gl_api_
->glActiveTextureFn(texture
);
7448 void TraceGLApi::glAttachShaderFn(GLuint program
, GLuint shader
) {
7449 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glAttachShader")
7450 gl_api_
->glAttachShaderFn(program
, shader
);
7453 void TraceGLApi::glBeginQueryFn(GLenum target
, GLuint id
) {
7454 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginQuery")
7455 gl_api_
->glBeginQueryFn(target
, id
);
7458 void TraceGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode
) {
7459 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginTransformFeedback")
7460 gl_api_
->glBeginTransformFeedbackFn(primitiveMode
);
7463 void TraceGLApi::glBindAttribLocationFn(GLuint program
,
7466 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindAttribLocation")
7467 gl_api_
->glBindAttribLocationFn(program
, index
, name
);
7470 void TraceGLApi::glBindBufferFn(GLenum target
, GLuint buffer
) {
7471 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBuffer")
7472 gl_api_
->glBindBufferFn(target
, buffer
);
7475 void TraceGLApi::glBindBufferBaseFn(GLenum target
,
7478 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferBase")
7479 gl_api_
->glBindBufferBaseFn(target
, index
, buffer
);
7482 void TraceGLApi::glBindBufferRangeFn(GLenum target
,
7487 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferRange")
7488 gl_api_
->glBindBufferRangeFn(target
, index
, buffer
, offset
, size
);
7491 void TraceGLApi::glBindFragDataLocationFn(GLuint program
,
7494 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFragDataLocation")
7495 gl_api_
->glBindFragDataLocationFn(program
, colorNumber
, name
);
7498 void TraceGLApi::glBindFragDataLocationIndexedFn(GLuint program
,
7502 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
7503 "TraceGLAPI::glBindFragDataLocationIndexed")
7504 gl_api_
->glBindFragDataLocationIndexedFn(program
, colorNumber
, index
, name
);
7507 void TraceGLApi::glBindFramebufferEXTFn(GLenum target
, GLuint framebuffer
) {
7508 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFramebufferEXT")
7509 gl_api_
->glBindFramebufferEXTFn(target
, framebuffer
);
7512 void TraceGLApi::glBindRenderbufferEXTFn(GLenum target
, GLuint renderbuffer
) {
7513 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindRenderbufferEXT")
7514 gl_api_
->glBindRenderbufferEXTFn(target
, renderbuffer
);
7517 void TraceGLApi::glBindSamplerFn(GLuint unit
, GLuint sampler
) {
7518 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindSampler")
7519 gl_api_
->glBindSamplerFn(unit
, sampler
);
7522 void TraceGLApi::glBindTextureFn(GLenum target
, GLuint texture
) {
7523 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTexture")
7524 gl_api_
->glBindTextureFn(target
, texture
);
7527 void TraceGLApi::glBindTransformFeedbackFn(GLenum target
, GLuint id
) {
7528 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTransformFeedback")
7529 gl_api_
->glBindTransformFeedbackFn(target
, id
);
7532 void TraceGLApi::glBindVertexArrayOESFn(GLuint array
) {
7533 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindVertexArrayOES")
7534 gl_api_
->glBindVertexArrayOESFn(array
);
7537 void TraceGLApi::glBlendBarrierKHRFn(void) {
7538 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendBarrierKHR")
7539 gl_api_
->glBlendBarrierKHRFn();
7542 void TraceGLApi::glBlendColorFn(GLclampf red
,
7546 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendColor")
7547 gl_api_
->glBlendColorFn(red
, green
, blue
, alpha
);
7550 void TraceGLApi::glBlendEquationFn(GLenum mode
) {
7551 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquation")
7552 gl_api_
->glBlendEquationFn(mode
);
7555 void TraceGLApi::glBlendEquationSeparateFn(GLenum modeRGB
, GLenum modeAlpha
) {
7556 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquationSeparate")
7557 gl_api_
->glBlendEquationSeparateFn(modeRGB
, modeAlpha
);
7560 void TraceGLApi::glBlendFuncFn(GLenum sfactor
, GLenum dfactor
) {
7561 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFunc")
7562 gl_api_
->glBlendFuncFn(sfactor
, dfactor
);
7565 void TraceGLApi::glBlendFuncSeparateFn(GLenum srcRGB
,
7569 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFuncSeparate")
7570 gl_api_
->glBlendFuncSeparateFn(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
7573 void TraceGLApi::glBlitFramebufferFn(GLint srcX0
,
7583 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebuffer")
7584 gl_api_
->glBlitFramebufferFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
,
7585 dstY1
, mask
, filter
);
7588 void TraceGLApi::glBlitFramebufferANGLEFn(GLint srcX0
,
7598 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferANGLE")
7599 gl_api_
->glBlitFramebufferANGLEFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
7600 dstX1
, dstY1
, mask
, filter
);
7603 void TraceGLApi::glBlitFramebufferEXTFn(GLint srcX0
,
7613 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferEXT")
7614 gl_api_
->glBlitFramebufferEXTFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
7615 dstX1
, dstY1
, mask
, filter
);
7618 void TraceGLApi::glBufferDataFn(GLenum target
,
7622 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferData")
7623 gl_api_
->glBufferDataFn(target
, size
, data
, usage
);
7626 void TraceGLApi::glBufferSubDataFn(GLenum target
,
7630 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferSubData")
7631 gl_api_
->glBufferSubDataFn(target
, offset
, size
, data
);
7634 GLenum
TraceGLApi::glCheckFramebufferStatusEXTFn(GLenum target
) {
7635 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
7636 "TraceGLAPI::glCheckFramebufferStatusEXT")
7637 return gl_api_
->glCheckFramebufferStatusEXTFn(target
);
7640 void TraceGLApi::glClearFn(GLbitfield mask
) {
7641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClear")
7642 gl_api_
->glClearFn(mask
);
7645 void TraceGLApi::glClearBufferfiFn(GLenum buffer
,
7647 const GLfloat depth
,
7649 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfi")
7650 gl_api_
->glClearBufferfiFn(buffer
, drawbuffer
, depth
, stencil
);
7653 void TraceGLApi::glClearBufferfvFn(GLenum buffer
,
7655 const GLfloat
* value
) {
7656 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfv")
7657 gl_api_
->glClearBufferfvFn(buffer
, drawbuffer
, value
);
7660 void TraceGLApi::glClearBufferivFn(GLenum buffer
,
7662 const GLint
* value
) {
7663 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferiv")
7664 gl_api_
->glClearBufferivFn(buffer
, drawbuffer
, value
);
7667 void TraceGLApi::glClearBufferuivFn(GLenum buffer
,
7669 const GLuint
* value
) {
7670 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferuiv")
7671 gl_api_
->glClearBufferuivFn(buffer
, drawbuffer
, value
);
7674 void TraceGLApi::glClearColorFn(GLclampf red
,
7678 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearColor")
7679 gl_api_
->glClearColorFn(red
, green
, blue
, alpha
);
7682 void TraceGLApi::glClearDepthFn(GLclampd depth
) {
7683 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepth")
7684 gl_api_
->glClearDepthFn(depth
);
7687 void TraceGLApi::glClearDepthfFn(GLclampf depth
) {
7688 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepthf")
7689 gl_api_
->glClearDepthfFn(depth
);
7692 void TraceGLApi::glClearStencilFn(GLint s
) {
7693 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearStencil")
7694 gl_api_
->glClearStencilFn(s
);
7697 GLenum
TraceGLApi::glClientWaitSyncFn(GLsync sync
,
7700 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClientWaitSync")
7701 return gl_api_
->glClientWaitSyncFn(sync
, flags
, timeout
);
7704 void TraceGLApi::glColorMaskFn(GLboolean red
,
7708 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glColorMask")
7709 gl_api_
->glColorMaskFn(red
, green
, blue
, alpha
);
7712 void TraceGLApi::glCompileShaderFn(GLuint shader
) {
7713 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompileShader")
7714 gl_api_
->glCompileShaderFn(shader
);
7717 void TraceGLApi::glCompressedTexImage2DFn(GLenum target
,
7719 GLenum internalformat
,
7725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage2D")
7726 gl_api_
->glCompressedTexImage2DFn(target
, level
, internalformat
, width
,
7727 height
, border
, imageSize
, data
);
7730 void TraceGLApi::glCompressedTexImage3DFn(GLenum target
,
7732 GLenum internalformat
,
7739 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage3D")
7740 gl_api_
->glCompressedTexImage3DFn(target
, level
, internalformat
, width
,
7741 height
, depth
, border
, imageSize
, data
);
7744 void TraceGLApi::glCompressedTexSubImage2DFn(GLenum target
,
7753 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage2D")
7754 gl_api_
->glCompressedTexSubImage2DFn(target
, level
, xoffset
, yoffset
, width
,
7755 height
, format
, imageSize
, data
);
7758 void TraceGLApi::glCopyBufferSubDataFn(GLenum readTarget
,
7760 GLintptr readOffset
,
7761 GLintptr writeOffset
,
7763 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyBufferSubData")
7764 gl_api_
->glCopyBufferSubDataFn(readTarget
, writeTarget
, readOffset
,
7768 void TraceGLApi::glCopyTexImage2DFn(GLenum target
,
7770 GLenum internalformat
,
7776 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexImage2D")
7777 gl_api_
->glCopyTexImage2DFn(target
, level
, internalformat
, x
, y
, width
,
7781 void TraceGLApi::glCopyTexSubImage2DFn(GLenum target
,
7789 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage2D")
7790 gl_api_
->glCopyTexSubImage2DFn(target
, level
, xoffset
, yoffset
, x
, y
, width
,
7794 void TraceGLApi::glCopyTexSubImage3DFn(GLenum target
,
7803 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D")
7804 gl_api_
->glCopyTexSubImage3DFn(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
,
7808 GLuint
TraceGLApi::glCreateProgramFn(void) {
7809 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateProgram")
7810 return gl_api_
->glCreateProgramFn();
7813 GLuint
TraceGLApi::glCreateShaderFn(GLenum type
) {
7814 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateShader")
7815 return gl_api_
->glCreateShaderFn(type
);
7818 void TraceGLApi::glCullFaceFn(GLenum mode
) {
7819 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCullFace")
7820 gl_api_
->glCullFaceFn(mode
);
7823 void TraceGLApi::glDeleteBuffersARBFn(GLsizei n
, const GLuint
* buffers
) {
7824 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteBuffersARB")
7825 gl_api_
->glDeleteBuffersARBFn(n
, buffers
);
7828 void TraceGLApi::glDeleteFencesAPPLEFn(GLsizei n
, const GLuint
* fences
) {
7829 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesAPPLE")
7830 gl_api_
->glDeleteFencesAPPLEFn(n
, fences
);
7833 void TraceGLApi::glDeleteFencesNVFn(GLsizei n
, const GLuint
* fences
) {
7834 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesNV")
7835 gl_api_
->glDeleteFencesNVFn(n
, fences
);
7838 void TraceGLApi::glDeleteFramebuffersEXTFn(GLsizei n
,
7839 const GLuint
* framebuffers
) {
7840 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFramebuffersEXT")
7841 gl_api_
->glDeleteFramebuffersEXTFn(n
, framebuffers
);
7844 void TraceGLApi::glDeleteProgramFn(GLuint program
) {
7845 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteProgram")
7846 gl_api_
->glDeleteProgramFn(program
);
7849 void TraceGLApi::glDeleteQueriesFn(GLsizei n
, const GLuint
* ids
) {
7850 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteQueries")
7851 gl_api_
->glDeleteQueriesFn(n
, ids
);
7854 void TraceGLApi::glDeleteRenderbuffersEXTFn(GLsizei n
,
7855 const GLuint
* renderbuffers
) {
7856 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteRenderbuffersEXT")
7857 gl_api_
->glDeleteRenderbuffersEXTFn(n
, renderbuffers
);
7860 void TraceGLApi::glDeleteSamplersFn(GLsizei n
, const GLuint
* samplers
) {
7861 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSamplers")
7862 gl_api_
->glDeleteSamplersFn(n
, samplers
);
7865 void TraceGLApi::glDeleteShaderFn(GLuint shader
) {
7866 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteShader")
7867 gl_api_
->glDeleteShaderFn(shader
);
7870 void TraceGLApi::glDeleteSyncFn(GLsync sync
) {
7871 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSync")
7872 gl_api_
->glDeleteSyncFn(sync
);
7875 void TraceGLApi::glDeleteTexturesFn(GLsizei n
, const GLuint
* textures
) {
7876 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTextures")
7877 gl_api_
->glDeleteTexturesFn(n
, textures
);
7880 void TraceGLApi::glDeleteTransformFeedbacksFn(GLsizei n
, const GLuint
* ids
) {
7881 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTransformFeedbacks")
7882 gl_api_
->glDeleteTransformFeedbacksFn(n
, ids
);
7885 void TraceGLApi::glDeleteVertexArraysOESFn(GLsizei n
, const GLuint
* arrays
) {
7886 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteVertexArraysOES")
7887 gl_api_
->glDeleteVertexArraysOESFn(n
, arrays
);
7890 void TraceGLApi::glDepthFuncFn(GLenum func
) {
7891 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthFunc")
7892 gl_api_
->glDepthFuncFn(func
);
7895 void TraceGLApi::glDepthMaskFn(GLboolean flag
) {
7896 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthMask")
7897 gl_api_
->glDepthMaskFn(flag
);
7900 void TraceGLApi::glDepthRangeFn(GLclampd zNear
, GLclampd zFar
) {
7901 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRange")
7902 gl_api_
->glDepthRangeFn(zNear
, zFar
);
7905 void TraceGLApi::glDepthRangefFn(GLclampf zNear
, GLclampf zFar
) {
7906 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRangef")
7907 gl_api_
->glDepthRangefFn(zNear
, zFar
);
7910 void TraceGLApi::glDetachShaderFn(GLuint program
, GLuint shader
) {
7911 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDetachShader")
7912 gl_api_
->glDetachShaderFn(program
, shader
);
7915 void TraceGLApi::glDisableFn(GLenum cap
) {
7916 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisable")
7917 gl_api_
->glDisableFn(cap
);
7920 void TraceGLApi::glDisableVertexAttribArrayFn(GLuint index
) {
7921 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisableVertexAttribArray")
7922 gl_api_
->glDisableVertexAttribArrayFn(index
);
7925 void TraceGLApi::glDiscardFramebufferEXTFn(GLenum target
,
7926 GLsizei numAttachments
,
7927 const GLenum
* attachments
) {
7928 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDiscardFramebufferEXT")
7929 gl_api_
->glDiscardFramebufferEXTFn(target
, numAttachments
, attachments
);
7932 void TraceGLApi::glDrawArraysFn(GLenum mode
, GLint first
, GLsizei count
) {
7933 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArrays")
7934 gl_api_
->glDrawArraysFn(mode
, first
, count
);
7937 void TraceGLApi::glDrawArraysInstancedANGLEFn(GLenum mode
,
7940 GLsizei primcount
) {
7941 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArraysInstancedANGLE")
7942 gl_api_
->glDrawArraysInstancedANGLEFn(mode
, first
, count
, primcount
);
7945 void TraceGLApi::glDrawBufferFn(GLenum mode
) {
7946 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffer")
7947 gl_api_
->glDrawBufferFn(mode
);
7950 void TraceGLApi::glDrawBuffersARBFn(GLsizei n
, const GLenum
* bufs
) {
7951 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffersARB")
7952 gl_api_
->glDrawBuffersARBFn(n
, bufs
);
7955 void TraceGLApi::glDrawElementsFn(GLenum mode
,
7958 const void* indices
) {
7959 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawElements")
7960 gl_api_
->glDrawElementsFn(mode
, count
, type
, indices
);
7963 void TraceGLApi::glDrawElementsInstancedANGLEFn(GLenum mode
,
7966 const void* indices
,
7967 GLsizei primcount
) {
7968 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
7969 "TraceGLAPI::glDrawElementsInstancedANGLE")
7970 gl_api_
->glDrawElementsInstancedANGLEFn(mode
, count
, type
, indices
,
7974 void TraceGLApi::glDrawRangeElementsFn(GLenum mode
,
7979 const void* indices
) {
7980 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawRangeElements")
7981 gl_api_
->glDrawRangeElementsFn(mode
, start
, end
, count
, type
, indices
);
7984 void TraceGLApi::glEGLImageTargetRenderbufferStorageOESFn(GLenum target
,
7985 GLeglImageOES image
) {
7986 TRACE_EVENT_BINARY_EFFICIENT0(
7987 "gpu", "TraceGLAPI::glEGLImageTargetRenderbufferStorageOES")
7988 gl_api_
->glEGLImageTargetRenderbufferStorageOESFn(target
, image
);
7991 void TraceGLApi::glEGLImageTargetTexture2DOESFn(GLenum target
,
7992 GLeglImageOES image
) {
7993 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
7994 "TraceGLAPI::glEGLImageTargetTexture2DOES")
7995 gl_api_
->glEGLImageTargetTexture2DOESFn(target
, image
);
7998 void TraceGLApi::glEnableFn(GLenum cap
) {
7999 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnable")
8000 gl_api_
->glEnableFn(cap
);
8003 void TraceGLApi::glEnableVertexAttribArrayFn(GLuint index
) {
8004 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnableVertexAttribArray")
8005 gl_api_
->glEnableVertexAttribArrayFn(index
);
8008 void TraceGLApi::glEndQueryFn(GLenum target
) {
8009 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndQuery")
8010 gl_api_
->glEndQueryFn(target
);
8013 void TraceGLApi::glEndTransformFeedbackFn(void) {
8014 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndTransformFeedback")
8015 gl_api_
->glEndTransformFeedbackFn();
8018 GLsync
TraceGLApi::glFenceSyncFn(GLenum condition
, GLbitfield flags
) {
8019 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFenceSync")
8020 return gl_api_
->glFenceSyncFn(condition
, flags
);
8023 void TraceGLApi::glFinishFn(void) {
8024 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinish")
8025 gl_api_
->glFinishFn();
8028 void TraceGLApi::glFinishFenceAPPLEFn(GLuint fence
) {
8029 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceAPPLE")
8030 gl_api_
->glFinishFenceAPPLEFn(fence
);
8033 void TraceGLApi::glFinishFenceNVFn(GLuint fence
) {
8034 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceNV")
8035 gl_api_
->glFinishFenceNVFn(fence
);
8038 void TraceGLApi::glFlushFn(void) {
8039 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlush")
8040 gl_api_
->glFlushFn();
8043 void TraceGLApi::glFlushMappedBufferRangeFn(GLenum target
,
8045 GLsizeiptr length
) {
8046 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlushMappedBufferRange")
8047 gl_api_
->glFlushMappedBufferRangeFn(target
, offset
, length
);
8050 void TraceGLApi::glFramebufferRenderbufferEXTFn(GLenum target
,
8052 GLenum renderbuffertarget
,
8053 GLuint renderbuffer
) {
8054 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8055 "TraceGLAPI::glFramebufferRenderbufferEXT")
8056 gl_api_
->glFramebufferRenderbufferEXTFn(target
, attachment
,
8057 renderbuffertarget
, renderbuffer
);
8060 void TraceGLApi::glFramebufferTexture2DEXTFn(GLenum target
,
8065 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTexture2DEXT")
8066 gl_api_
->glFramebufferTexture2DEXTFn(target
, attachment
, textarget
, texture
,
8070 void TraceGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target
,
8076 TRACE_EVENT_BINARY_EFFICIENT0(
8077 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleEXT")
8078 gl_api_
->glFramebufferTexture2DMultisampleEXTFn(target
, attachment
, textarget
,
8079 texture
, level
, samples
);
8082 void TraceGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target
,
8088 TRACE_EVENT_BINARY_EFFICIENT0(
8089 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleIMG")
8090 gl_api_
->glFramebufferTexture2DMultisampleIMGFn(target
, attachment
, textarget
,
8091 texture
, level
, samples
);
8094 void TraceGLApi::glFramebufferTextureLayerFn(GLenum target
,
8099 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTextureLayer")
8100 gl_api_
->glFramebufferTextureLayerFn(target
, attachment
, texture
, level
,
8104 void TraceGLApi::glFrontFaceFn(GLenum mode
) {
8105 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFrontFace")
8106 gl_api_
->glFrontFaceFn(mode
);
8109 void TraceGLApi::glGenBuffersARBFn(GLsizei n
, GLuint
* buffers
) {
8110 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenBuffersARB")
8111 gl_api_
->glGenBuffersARBFn(n
, buffers
);
8114 void TraceGLApi::glGenerateMipmapEXTFn(GLenum target
) {
8115 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenerateMipmapEXT")
8116 gl_api_
->glGenerateMipmapEXTFn(target
);
8119 void TraceGLApi::glGenFencesAPPLEFn(GLsizei n
, GLuint
* fences
) {
8120 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesAPPLE")
8121 gl_api_
->glGenFencesAPPLEFn(n
, fences
);
8124 void TraceGLApi::glGenFencesNVFn(GLsizei n
, GLuint
* fences
) {
8125 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesNV")
8126 gl_api_
->glGenFencesNVFn(n
, fences
);
8129 void TraceGLApi::glGenFramebuffersEXTFn(GLsizei n
, GLuint
* framebuffers
) {
8130 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFramebuffersEXT")
8131 gl_api_
->glGenFramebuffersEXTFn(n
, framebuffers
);
8134 void TraceGLApi::glGenQueriesFn(GLsizei n
, GLuint
* ids
) {
8135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenQueries")
8136 gl_api_
->glGenQueriesFn(n
, ids
);
8139 void TraceGLApi::glGenRenderbuffersEXTFn(GLsizei n
, GLuint
* renderbuffers
) {
8140 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenRenderbuffersEXT")
8141 gl_api_
->glGenRenderbuffersEXTFn(n
, renderbuffers
);
8144 void TraceGLApi::glGenSamplersFn(GLsizei n
, GLuint
* samplers
) {
8145 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenSamplers")
8146 gl_api_
->glGenSamplersFn(n
, samplers
);
8149 void TraceGLApi::glGenTexturesFn(GLsizei n
, GLuint
* textures
) {
8150 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTextures")
8151 gl_api_
->glGenTexturesFn(n
, textures
);
8154 void TraceGLApi::glGenTransformFeedbacksFn(GLsizei n
, GLuint
* ids
) {
8155 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTransformFeedbacks")
8156 gl_api_
->glGenTransformFeedbacksFn(n
, ids
);
8159 void TraceGLApi::glGenVertexArraysOESFn(GLsizei n
, GLuint
* arrays
) {
8160 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenVertexArraysOES")
8161 gl_api_
->glGenVertexArraysOESFn(n
, arrays
);
8164 void TraceGLApi::glGetActiveAttribFn(GLuint program
,
8171 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveAttrib")
8172 gl_api_
->glGetActiveAttribFn(program
, index
, bufsize
, length
, size
, type
,
8176 void TraceGLApi::glGetActiveUniformFn(GLuint program
,
8183 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniform")
8184 gl_api_
->glGetActiveUniformFn(program
, index
, bufsize
, length
, size
, type
,
8188 void TraceGLApi::glGetActiveUniformBlockivFn(GLuint program
,
8189 GLuint uniformBlockIndex
,
8192 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformBlockiv")
8193 gl_api_
->glGetActiveUniformBlockivFn(program
, uniformBlockIndex
, pname
,
8197 void TraceGLApi::glGetActiveUniformBlockNameFn(GLuint program
,
8198 GLuint uniformBlockIndex
,
8201 char* uniformBlockName
) {
8202 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8203 "TraceGLAPI::glGetActiveUniformBlockName")
8204 gl_api_
->glGetActiveUniformBlockNameFn(program
, uniformBlockIndex
, bufSize
,
8205 length
, uniformBlockName
);
8208 void TraceGLApi::glGetActiveUniformsivFn(GLuint program
,
8209 GLsizei uniformCount
,
8210 const GLuint
* uniformIndices
,
8213 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformsiv")
8214 gl_api_
->glGetActiveUniformsivFn(program
, uniformCount
, uniformIndices
, pname
,
8218 void TraceGLApi::glGetAttachedShadersFn(GLuint program
,
8222 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttachedShaders")
8223 gl_api_
->glGetAttachedShadersFn(program
, maxcount
, count
, shaders
);
8226 GLint
TraceGLApi::glGetAttribLocationFn(GLuint program
, const char* name
) {
8227 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttribLocation")
8228 return gl_api_
->glGetAttribLocationFn(program
, name
);
8231 void TraceGLApi::glGetBooleanvFn(GLenum pname
, GLboolean
* params
) {
8232 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBooleanv")
8233 gl_api_
->glGetBooleanvFn(pname
, params
);
8236 void TraceGLApi::glGetBufferParameterivFn(GLenum target
,
8239 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBufferParameteriv")
8240 gl_api_
->glGetBufferParameterivFn(target
, pname
, params
);
8243 GLenum
TraceGLApi::glGetErrorFn(void) {
8244 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetError")
8245 return gl_api_
->glGetErrorFn();
8248 void TraceGLApi::glGetFenceivNVFn(GLuint fence
, GLenum pname
, GLint
* params
) {
8249 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV")
8250 gl_api_
->glGetFenceivNVFn(fence
, pname
, params
);
8253 void TraceGLApi::glGetFloatvFn(GLenum pname
, GLfloat
* params
) {
8254 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv")
8255 gl_api_
->glGetFloatvFn(pname
, params
);
8258 GLint
TraceGLApi::glGetFragDataLocationFn(GLuint program
, const char* name
) {
8259 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation")
8260 return gl_api_
->glGetFragDataLocationFn(program
, name
);
8263 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target
,
8267 TRACE_EVENT_BINARY_EFFICIENT0(
8268 "gpu", "TraceGLAPI::glGetFramebufferAttachmentParameterivEXT")
8269 gl_api_
->glGetFramebufferAttachmentParameterivEXTFn(target
, attachment
, pname
,
8273 GLenum
TraceGLApi::glGetGraphicsResetStatusARBFn(void) {
8274 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8275 "TraceGLAPI::glGetGraphicsResetStatusARB")
8276 return gl_api_
->glGetGraphicsResetStatusARBFn();
8279 void TraceGLApi::glGetInteger64i_vFn(GLenum target
,
8282 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64i_v")
8283 gl_api_
->glGetInteger64i_vFn(target
, index
, data
);
8286 void TraceGLApi::glGetInteger64vFn(GLenum pname
, GLint64
* params
) {
8287 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64v")
8288 gl_api_
->glGetInteger64vFn(pname
, params
);
8291 void TraceGLApi::glGetIntegeri_vFn(GLenum target
, GLuint index
, GLint
* data
) {
8292 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegeri_v")
8293 gl_api_
->glGetIntegeri_vFn(target
, index
, data
);
8296 void TraceGLApi::glGetIntegervFn(GLenum pname
, GLint
* params
) {
8297 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegerv")
8298 gl_api_
->glGetIntegervFn(pname
, params
);
8301 void TraceGLApi::glGetInternalformativFn(GLenum target
,
8302 GLenum internalformat
,
8306 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInternalformativ")
8307 gl_api_
->glGetInternalformativFn(target
, internalformat
, pname
, bufSize
,
8311 void TraceGLApi::glGetProgramBinaryFn(GLuint program
,
8314 GLenum
* binaryFormat
,
8316 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramBinary")
8317 gl_api_
->glGetProgramBinaryFn(program
, bufSize
, length
, binaryFormat
, binary
);
8320 void TraceGLApi::glGetProgramInfoLogFn(GLuint program
,
8324 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramInfoLog")
8325 gl_api_
->glGetProgramInfoLogFn(program
, bufsize
, length
, infolog
);
8328 void TraceGLApi::glGetProgramivFn(GLuint program
, GLenum pname
, GLint
* params
) {
8329 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramiv")
8330 gl_api_
->glGetProgramivFn(program
, pname
, params
);
8333 GLint
TraceGLApi::glGetProgramResourceLocationFn(GLuint program
,
8334 GLenum programInterface
,
8336 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8337 "TraceGLAPI::glGetProgramResourceLocation")
8338 return gl_api_
->glGetProgramResourceLocationFn(program
, programInterface
,
8342 void TraceGLApi::glGetQueryivFn(GLenum target
, GLenum pname
, GLint
* params
) {
8343 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryiv")
8344 gl_api_
->glGetQueryivFn(target
, pname
, params
);
8347 void TraceGLApi::glGetQueryObjecti64vFn(GLuint id
,
8350 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjecti64v")
8351 gl_api_
->glGetQueryObjecti64vFn(id
, pname
, params
);
8354 void TraceGLApi::glGetQueryObjectivFn(GLuint id
, GLenum pname
, GLint
* params
) {
8355 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectiv")
8356 gl_api_
->glGetQueryObjectivFn(id
, pname
, params
);
8359 void TraceGLApi::glGetQueryObjectui64vFn(GLuint id
,
8362 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectui64v")
8363 gl_api_
->glGetQueryObjectui64vFn(id
, pname
, params
);
8366 void TraceGLApi::glGetQueryObjectuivFn(GLuint id
,
8369 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectuiv")
8370 gl_api_
->glGetQueryObjectuivFn(id
, pname
, params
);
8373 void TraceGLApi::glGetRenderbufferParameterivEXTFn(GLenum target
,
8376 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8377 "TraceGLAPI::glGetRenderbufferParameterivEXT")
8378 gl_api_
->glGetRenderbufferParameterivEXTFn(target
, pname
, params
);
8381 void TraceGLApi::glGetSamplerParameterfvFn(GLuint sampler
,
8384 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameterfv")
8385 gl_api_
->glGetSamplerParameterfvFn(sampler
, pname
, params
);
8388 void TraceGLApi::glGetSamplerParameterivFn(GLuint sampler
,
8391 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameteriv")
8392 gl_api_
->glGetSamplerParameterivFn(sampler
, pname
, params
);
8395 void TraceGLApi::glGetShaderInfoLogFn(GLuint shader
,
8399 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderInfoLog")
8400 gl_api_
->glGetShaderInfoLogFn(shader
, bufsize
, length
, infolog
);
8403 void TraceGLApi::glGetShaderivFn(GLuint shader
, GLenum pname
, GLint
* params
) {
8404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderiv")
8405 gl_api_
->glGetShaderivFn(shader
, pname
, params
);
8408 void TraceGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype
,
8409 GLenum precisiontype
,
8412 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderPrecisionFormat")
8413 gl_api_
->glGetShaderPrecisionFormatFn(shadertype
, precisiontype
, range
,
8417 void TraceGLApi::glGetShaderSourceFn(GLuint shader
,
8421 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource")
8422 gl_api_
->glGetShaderSourceFn(shader
, bufsize
, length
, source
);
8425 const GLubyte
* TraceGLApi::glGetStringFn(GLenum name
) {
8426 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString")
8427 return gl_api_
->glGetStringFn(name
);
8430 const GLubyte
* TraceGLApi::glGetStringiFn(GLenum name
, GLuint index
) {
8431 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetStringi")
8432 return gl_api_
->glGetStringiFn(name
, index
);
8435 void TraceGLApi::glGetSyncivFn(GLsync sync
,
8440 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv")
8441 gl_api_
->glGetSyncivFn(sync
, pname
, bufSize
, length
, values
);
8444 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target
,
8448 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameterfv")
8449 gl_api_
->glGetTexLevelParameterfvFn(target
, level
, pname
, params
);
8452 void TraceGLApi::glGetTexLevelParameterivFn(GLenum target
,
8456 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameteriv")
8457 gl_api_
->glGetTexLevelParameterivFn(target
, level
, pname
, params
);
8460 void TraceGLApi::glGetTexParameterfvFn(GLenum target
,
8463 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameterfv")
8464 gl_api_
->glGetTexParameterfvFn(target
, pname
, params
);
8467 void TraceGLApi::glGetTexParameterivFn(GLenum target
,
8470 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameteriv")
8471 gl_api_
->glGetTexParameterivFn(target
, pname
, params
);
8474 void TraceGLApi::glGetTransformFeedbackVaryingFn(GLuint program
,
8481 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8482 "TraceGLAPI::glGetTransformFeedbackVarying")
8483 gl_api_
->glGetTransformFeedbackVaryingFn(program
, index
, bufSize
, length
,
8487 void TraceGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader
,
8491 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8492 "TraceGLAPI::glGetTranslatedShaderSourceANGLE")
8493 gl_api_
->glGetTranslatedShaderSourceANGLEFn(shader
, bufsize
, length
, source
);
8496 GLuint
TraceGLApi::glGetUniformBlockIndexFn(GLuint program
,
8497 const char* uniformBlockName
) {
8498 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformBlockIndex")
8499 return gl_api_
->glGetUniformBlockIndexFn(program
, uniformBlockName
);
8502 void TraceGLApi::glGetUniformfvFn(GLuint program
,
8505 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformfv")
8506 gl_api_
->glGetUniformfvFn(program
, location
, params
);
8509 void TraceGLApi::glGetUniformIndicesFn(GLuint program
,
8510 GLsizei uniformCount
,
8511 const char* const* uniformNames
,
8512 GLuint
* uniformIndices
) {
8513 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformIndices")
8514 gl_api_
->glGetUniformIndicesFn(program
, uniformCount
, uniformNames
,
8518 void TraceGLApi::glGetUniformivFn(GLuint program
,
8521 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformiv")
8522 gl_api_
->glGetUniformivFn(program
, location
, params
);
8525 GLint
TraceGLApi::glGetUniformLocationFn(GLuint program
, const char* name
) {
8526 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformLocation")
8527 return gl_api_
->glGetUniformLocationFn(program
, name
);
8530 void TraceGLApi::glGetVertexAttribfvFn(GLuint index
,
8533 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribfv")
8534 gl_api_
->glGetVertexAttribfvFn(index
, pname
, params
);
8537 void TraceGLApi::glGetVertexAttribivFn(GLuint index
,
8540 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribiv")
8541 gl_api_
->glGetVertexAttribivFn(index
, pname
, params
);
8544 void TraceGLApi::glGetVertexAttribPointervFn(GLuint index
,
8547 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribPointerv")
8548 gl_api_
->glGetVertexAttribPointervFn(index
, pname
, pointer
);
8551 void TraceGLApi::glHintFn(GLenum target
, GLenum mode
) {
8552 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glHint")
8553 gl_api_
->glHintFn(target
, mode
);
8556 void TraceGLApi::glInsertEventMarkerEXTFn(GLsizei length
, const char* marker
) {
8557 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInsertEventMarkerEXT")
8558 gl_api_
->glInsertEventMarkerEXTFn(length
, marker
);
8561 void TraceGLApi::glInvalidateFramebufferFn(GLenum target
,
8562 GLsizei numAttachments
,
8563 const GLenum
* attachments
) {
8564 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateFramebuffer")
8565 gl_api_
->glInvalidateFramebufferFn(target
, numAttachments
, attachments
);
8568 void TraceGLApi::glInvalidateSubFramebufferFn(GLenum target
,
8569 GLsizei numAttachments
,
8570 const GLenum
* attachments
,
8575 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateSubFramebuffer")
8576 gl_api_
->glInvalidateSubFramebufferFn(target
, numAttachments
, attachments
, x
,
8580 GLboolean
TraceGLApi::glIsBufferFn(GLuint buffer
) {
8581 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsBuffer")
8582 return gl_api_
->glIsBufferFn(buffer
);
8585 GLboolean
TraceGLApi::glIsEnabledFn(GLenum cap
) {
8586 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsEnabled")
8587 return gl_api_
->glIsEnabledFn(cap
);
8590 GLboolean
TraceGLApi::glIsFenceAPPLEFn(GLuint fence
) {
8591 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceAPPLE")
8592 return gl_api_
->glIsFenceAPPLEFn(fence
);
8595 GLboolean
TraceGLApi::glIsFenceNVFn(GLuint fence
) {
8596 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceNV")
8597 return gl_api_
->glIsFenceNVFn(fence
);
8600 GLboolean
TraceGLApi::glIsFramebufferEXTFn(GLuint framebuffer
) {
8601 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFramebufferEXT")
8602 return gl_api_
->glIsFramebufferEXTFn(framebuffer
);
8605 GLboolean
TraceGLApi::glIsProgramFn(GLuint program
) {
8606 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsProgram")
8607 return gl_api_
->glIsProgramFn(program
);
8610 GLboolean
TraceGLApi::glIsQueryFn(GLuint query
) {
8611 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsQuery")
8612 return gl_api_
->glIsQueryFn(query
);
8615 GLboolean
TraceGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer
) {
8616 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsRenderbufferEXT")
8617 return gl_api_
->glIsRenderbufferEXTFn(renderbuffer
);
8620 GLboolean
TraceGLApi::glIsSamplerFn(GLuint sampler
) {
8621 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSampler")
8622 return gl_api_
->glIsSamplerFn(sampler
);
8625 GLboolean
TraceGLApi::glIsShaderFn(GLuint shader
) {
8626 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsShader")
8627 return gl_api_
->glIsShaderFn(shader
);
8630 GLboolean
TraceGLApi::glIsSyncFn(GLsync sync
) {
8631 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSync")
8632 return gl_api_
->glIsSyncFn(sync
);
8635 GLboolean
TraceGLApi::glIsTextureFn(GLuint texture
) {
8636 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTexture")
8637 return gl_api_
->glIsTextureFn(texture
);
8640 GLboolean
TraceGLApi::glIsTransformFeedbackFn(GLuint id
) {
8641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTransformFeedback")
8642 return gl_api_
->glIsTransformFeedbackFn(id
);
8645 GLboolean
TraceGLApi::glIsVertexArrayOESFn(GLuint array
) {
8646 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsVertexArrayOES")
8647 return gl_api_
->glIsVertexArrayOESFn(array
);
8650 void TraceGLApi::glLineWidthFn(GLfloat width
) {
8651 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLineWidth")
8652 gl_api_
->glLineWidthFn(width
);
8655 void TraceGLApi::glLinkProgramFn(GLuint program
) {
8656 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLinkProgram")
8657 gl_api_
->glLinkProgramFn(program
);
8660 void* TraceGLApi::glMapBufferFn(GLenum target
, GLenum access
) {
8661 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBuffer")
8662 return gl_api_
->glMapBufferFn(target
, access
);
8665 void* TraceGLApi::glMapBufferRangeFn(GLenum target
,
8668 GLbitfield access
) {
8669 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBufferRange")
8670 return gl_api_
->glMapBufferRangeFn(target
, offset
, length
, access
);
8673 void TraceGLApi::glMatrixLoadfEXTFn(GLenum matrixMode
, const GLfloat
* m
) {
8674 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadfEXT")
8675 gl_api_
->glMatrixLoadfEXTFn(matrixMode
, m
);
8678 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode
) {
8679 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT")
8680 gl_api_
->glMatrixLoadIdentityEXTFn(matrixMode
);
8683 void TraceGLApi::glPauseTransformFeedbackFn(void) {
8684 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPauseTransformFeedback")
8685 gl_api_
->glPauseTransformFeedbackFn();
8688 void TraceGLApi::glPixelStoreiFn(GLenum pname
, GLint param
) {
8689 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPixelStorei")
8690 gl_api_
->glPixelStoreiFn(pname
, param
);
8693 void TraceGLApi::glPointParameteriFn(GLenum pname
, GLint param
) {
8694 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPointParameteri")
8695 gl_api_
->glPointParameteriFn(pname
, param
);
8698 void TraceGLApi::glPolygonOffsetFn(GLfloat factor
, GLfloat units
) {
8699 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffset")
8700 gl_api_
->glPolygonOffsetFn(factor
, units
);
8703 void TraceGLApi::glPopGroupMarkerEXTFn(void) {
8704 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopGroupMarkerEXT")
8705 gl_api_
->glPopGroupMarkerEXTFn();
8708 void TraceGLApi::glProgramBinaryFn(GLuint program
,
8709 GLenum binaryFormat
,
8710 const GLvoid
* binary
,
8712 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramBinary")
8713 gl_api_
->glProgramBinaryFn(program
, binaryFormat
, binary
, length
);
8716 void TraceGLApi::glProgramParameteriFn(GLuint program
,
8719 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramParameteri")
8720 gl_api_
->glProgramParameteriFn(program
, pname
, value
);
8723 void TraceGLApi::glPushGroupMarkerEXTFn(GLsizei length
, const char* marker
) {
8724 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushGroupMarkerEXT")
8725 gl_api_
->glPushGroupMarkerEXTFn(length
, marker
);
8728 void TraceGLApi::glQueryCounterFn(GLuint id
, GLenum target
) {
8729 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glQueryCounter")
8730 gl_api_
->glQueryCounterFn(id
, target
);
8733 void TraceGLApi::glReadBufferFn(GLenum src
) {
8734 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadBuffer")
8735 gl_api_
->glReadBufferFn(src
);
8738 void TraceGLApi::glReadPixelsFn(GLint x
,
8745 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixels")
8746 gl_api_
->glReadPixelsFn(x
, y
, width
, height
, format
, type
, pixels
);
8749 void TraceGLApi::glReleaseShaderCompilerFn(void) {
8750 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseShaderCompiler")
8751 gl_api_
->glReleaseShaderCompilerFn();
8754 void TraceGLApi::glRenderbufferStorageEXTFn(GLenum target
,
8755 GLenum internalformat
,
8758 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glRenderbufferStorageEXT")
8759 gl_api_
->glRenderbufferStorageEXTFn(target
, internalformat
, width
, height
);
8762 void TraceGLApi::glRenderbufferStorageMultisampleFn(GLenum target
,
8764 GLenum internalformat
,
8767 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8768 "TraceGLAPI::glRenderbufferStorageMultisample")
8769 gl_api_
->glRenderbufferStorageMultisampleFn(target
, samples
, internalformat
,
8773 void TraceGLApi::glRenderbufferStorageMultisampleANGLEFn(GLenum target
,
8775 GLenum internalformat
,
8778 TRACE_EVENT_BINARY_EFFICIENT0(
8779 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleANGLE")
8780 gl_api_
->glRenderbufferStorageMultisampleANGLEFn(
8781 target
, samples
, internalformat
, width
, height
);
8784 void TraceGLApi::glRenderbufferStorageMultisampleEXTFn(GLenum target
,
8786 GLenum internalformat
,
8789 TRACE_EVENT_BINARY_EFFICIENT0(
8790 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleEXT")
8791 gl_api_
->glRenderbufferStorageMultisampleEXTFn(target
, samples
,
8792 internalformat
, width
, height
);
8795 void TraceGLApi::glRenderbufferStorageMultisampleIMGFn(GLenum target
,
8797 GLenum internalformat
,
8800 TRACE_EVENT_BINARY_EFFICIENT0(
8801 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleIMG")
8802 gl_api_
->glRenderbufferStorageMultisampleIMGFn(target
, samples
,
8803 internalformat
, width
, height
);
8806 void TraceGLApi::glResumeTransformFeedbackFn(void) {
8807 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glResumeTransformFeedback")
8808 gl_api_
->glResumeTransformFeedbackFn();
8811 void TraceGLApi::glSampleCoverageFn(GLclampf value
, GLboolean invert
) {
8812 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSampleCoverage")
8813 gl_api_
->glSampleCoverageFn(value
, invert
);
8816 void TraceGLApi::glSamplerParameterfFn(GLuint sampler
,
8819 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterf")
8820 gl_api_
->glSamplerParameterfFn(sampler
, pname
, param
);
8823 void TraceGLApi::glSamplerParameterfvFn(GLuint sampler
,
8825 const GLfloat
* params
) {
8826 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterfv")
8827 gl_api_
->glSamplerParameterfvFn(sampler
, pname
, params
);
8830 void TraceGLApi::glSamplerParameteriFn(GLuint sampler
,
8833 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteri")
8834 gl_api_
->glSamplerParameteriFn(sampler
, pname
, param
);
8837 void TraceGLApi::glSamplerParameterivFn(GLuint sampler
,
8839 const GLint
* params
) {
8840 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteriv")
8841 gl_api_
->glSamplerParameterivFn(sampler
, pname
, params
);
8844 void TraceGLApi::glScissorFn(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
8845 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glScissor")
8846 gl_api_
->glScissorFn(x
, y
, width
, height
);
8849 void TraceGLApi::glSetFenceAPPLEFn(GLuint fence
) {
8850 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceAPPLE")
8851 gl_api_
->glSetFenceAPPLEFn(fence
);
8854 void TraceGLApi::glSetFenceNVFn(GLuint fence
, GLenum condition
) {
8855 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceNV")
8856 gl_api_
->glSetFenceNVFn(fence
, condition
);
8859 void TraceGLApi::glShaderBinaryFn(GLsizei n
,
8860 const GLuint
* shaders
,
8861 GLenum binaryformat
,
8864 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderBinary")
8865 gl_api_
->glShaderBinaryFn(n
, shaders
, binaryformat
, binary
, length
);
8868 void TraceGLApi::glShaderSourceFn(GLuint shader
,
8870 const char* const* str
,
8871 const GLint
* length
) {
8872 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderSource")
8873 gl_api_
->glShaderSourceFn(shader
, count
, str
, length
);
8876 void TraceGLApi::glStencilFuncFn(GLenum func
, GLint ref
, GLuint mask
) {
8877 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFunc")
8878 gl_api_
->glStencilFuncFn(func
, ref
, mask
);
8881 void TraceGLApi::glStencilFuncSeparateFn(GLenum face
,
8885 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFuncSeparate")
8886 gl_api_
->glStencilFuncSeparateFn(face
, func
, ref
, mask
);
8889 void TraceGLApi::glStencilMaskFn(GLuint mask
) {
8890 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMask")
8891 gl_api_
->glStencilMaskFn(mask
);
8894 void TraceGLApi::glStencilMaskSeparateFn(GLenum face
, GLuint mask
) {
8895 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMaskSeparate")
8896 gl_api_
->glStencilMaskSeparateFn(face
, mask
);
8899 void TraceGLApi::glStencilOpFn(GLenum fail
, GLenum zfail
, GLenum zpass
) {
8900 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOp")
8901 gl_api_
->glStencilOpFn(fail
, zfail
, zpass
);
8904 void TraceGLApi::glStencilOpSeparateFn(GLenum face
,
8908 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOpSeparate")
8909 gl_api_
->glStencilOpSeparateFn(face
, fail
, zfail
, zpass
);
8912 GLboolean
TraceGLApi::glTestFenceAPPLEFn(GLuint fence
) {
8913 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceAPPLE")
8914 return gl_api_
->glTestFenceAPPLEFn(fence
);
8917 GLboolean
TraceGLApi::glTestFenceNVFn(GLuint fence
) {
8918 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceNV")
8919 return gl_api_
->glTestFenceNVFn(fence
);
8922 void TraceGLApi::glTexImage2DFn(GLenum target
,
8924 GLint internalformat
,
8930 const void* pixels
) {
8931 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage2D")
8932 gl_api_
->glTexImage2DFn(target
, level
, internalformat
, width
, height
, border
,
8933 format
, type
, pixels
);
8936 void TraceGLApi::glTexImage3DFn(GLenum target
,
8938 GLint internalformat
,
8945 const void* pixels
) {
8946 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage3D")
8947 gl_api_
->glTexImage3DFn(target
, level
, internalformat
, width
, height
, depth
,
8948 border
, format
, type
, pixels
);
8951 void TraceGLApi::glTexParameterfFn(GLenum target
, GLenum pname
, GLfloat param
) {
8952 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterf")
8953 gl_api_
->glTexParameterfFn(target
, pname
, param
);
8956 void TraceGLApi::glTexParameterfvFn(GLenum target
,
8958 const GLfloat
* params
) {
8959 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterfv")
8960 gl_api_
->glTexParameterfvFn(target
, pname
, params
);
8963 void TraceGLApi::glTexParameteriFn(GLenum target
, GLenum pname
, GLint param
) {
8964 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteri")
8965 gl_api_
->glTexParameteriFn(target
, pname
, param
);
8968 void TraceGLApi::glTexParameterivFn(GLenum target
,
8970 const GLint
* params
) {
8971 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteriv")
8972 gl_api_
->glTexParameterivFn(target
, pname
, params
);
8975 void TraceGLApi::glTexStorage2DEXTFn(GLenum target
,
8977 GLenum internalformat
,
8980 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage2DEXT")
8981 gl_api_
->glTexStorage2DEXTFn(target
, levels
, internalformat
, width
, height
);
8984 void TraceGLApi::glTexStorage3DFn(GLenum target
,
8986 GLenum internalformat
,
8990 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage3D")
8991 gl_api_
->glTexStorage3DFn(target
, levels
, internalformat
, width
, height
,
8995 void TraceGLApi::glTexSubImage2DFn(GLenum target
,
9003 const void* pixels
) {
9004 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage2D")
9005 gl_api_
->glTexSubImage2DFn(target
, level
, xoffset
, yoffset
, width
, height
,
9006 format
, type
, pixels
);
9009 void TraceGLApi::glTransformFeedbackVaryingsFn(GLuint program
,
9011 const char* const* varyings
,
9012 GLenum bufferMode
) {
9013 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9014 "TraceGLAPI::glTransformFeedbackVaryings")
9015 gl_api_
->glTransformFeedbackVaryingsFn(program
, count
, varyings
, bufferMode
);
9018 void TraceGLApi::glUniform1fFn(GLint location
, GLfloat x
) {
9019 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1f")
9020 gl_api_
->glUniform1fFn(location
, x
);
9023 void TraceGLApi::glUniform1fvFn(GLint location
,
9026 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1fv")
9027 gl_api_
->glUniform1fvFn(location
, count
, v
);
9030 void TraceGLApi::glUniform1iFn(GLint location
, GLint x
) {
9031 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1i")
9032 gl_api_
->glUniform1iFn(location
, x
);
9035 void TraceGLApi::glUniform1ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
9036 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1iv")
9037 gl_api_
->glUniform1ivFn(location
, count
, v
);
9040 void TraceGLApi::glUniform1uiFn(GLint location
, GLuint v0
) {
9041 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1ui")
9042 gl_api_
->glUniform1uiFn(location
, v0
);
9045 void TraceGLApi::glUniform1uivFn(GLint location
,
9048 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1uiv")
9049 gl_api_
->glUniform1uivFn(location
, count
, v
);
9052 void TraceGLApi::glUniform2fFn(GLint location
, GLfloat x
, GLfloat y
) {
9053 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2f")
9054 gl_api_
->glUniform2fFn(location
, x
, y
);
9057 void TraceGLApi::glUniform2fvFn(GLint location
,
9060 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2fv")
9061 gl_api_
->glUniform2fvFn(location
, count
, v
);
9064 void TraceGLApi::glUniform2iFn(GLint location
, GLint x
, GLint y
) {
9065 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2i")
9066 gl_api_
->glUniform2iFn(location
, x
, y
);
9069 void TraceGLApi::glUniform2ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
9070 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2iv")
9071 gl_api_
->glUniform2ivFn(location
, count
, v
);
9074 void TraceGLApi::glUniform2uiFn(GLint location
, GLuint v0
, GLuint v1
) {
9075 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2ui")
9076 gl_api_
->glUniform2uiFn(location
, v0
, v1
);
9079 void TraceGLApi::glUniform2uivFn(GLint location
,
9082 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2uiv")
9083 gl_api_
->glUniform2uivFn(location
, count
, v
);
9086 void TraceGLApi::glUniform3fFn(GLint location
,
9090 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3f")
9091 gl_api_
->glUniform3fFn(location
, x
, y
, z
);
9094 void TraceGLApi::glUniform3fvFn(GLint location
,
9097 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3fv")
9098 gl_api_
->glUniform3fvFn(location
, count
, v
);
9101 void TraceGLApi::glUniform3iFn(GLint location
, GLint x
, GLint y
, GLint z
) {
9102 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3i")
9103 gl_api_
->glUniform3iFn(location
, x
, y
, z
);
9106 void TraceGLApi::glUniform3ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
9107 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3iv")
9108 gl_api_
->glUniform3ivFn(location
, count
, v
);
9111 void TraceGLApi::glUniform3uiFn(GLint location
,
9115 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3ui")
9116 gl_api_
->glUniform3uiFn(location
, v0
, v1
, v2
);
9119 void TraceGLApi::glUniform3uivFn(GLint location
,
9122 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3uiv")
9123 gl_api_
->glUniform3uivFn(location
, count
, v
);
9126 void TraceGLApi::glUniform4fFn(GLint location
,
9131 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4f")
9132 gl_api_
->glUniform4fFn(location
, x
, y
, z
, w
);
9135 void TraceGLApi::glUniform4fvFn(GLint location
,
9138 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4fv")
9139 gl_api_
->glUniform4fvFn(location
, count
, v
);
9142 void TraceGLApi::glUniform4iFn(GLint location
,
9147 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4i")
9148 gl_api_
->glUniform4iFn(location
, x
, y
, z
, w
);
9151 void TraceGLApi::glUniform4ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
9152 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4iv")
9153 gl_api_
->glUniform4ivFn(location
, count
, v
);
9156 void TraceGLApi::glUniform4uiFn(GLint location
,
9161 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4ui")
9162 gl_api_
->glUniform4uiFn(location
, v0
, v1
, v2
, v3
);
9165 void TraceGLApi::glUniform4uivFn(GLint location
,
9168 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4uiv")
9169 gl_api_
->glUniform4uivFn(location
, count
, v
);
9172 void TraceGLApi::glUniformBlockBindingFn(GLuint program
,
9173 GLuint uniformBlockIndex
,
9174 GLuint uniformBlockBinding
) {
9175 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformBlockBinding")
9176 gl_api_
->glUniformBlockBindingFn(program
, uniformBlockIndex
,
9177 uniformBlockBinding
);
9180 void TraceGLApi::glUniformMatrix2fvFn(GLint location
,
9182 GLboolean transpose
,
9183 const GLfloat
* value
) {
9184 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2fv")
9185 gl_api_
->glUniformMatrix2fvFn(location
, count
, transpose
, value
);
9188 void TraceGLApi::glUniformMatrix2x3fvFn(GLint location
,
9190 GLboolean transpose
,
9191 const GLfloat
* value
) {
9192 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x3fv")
9193 gl_api_
->glUniformMatrix2x3fvFn(location
, count
, transpose
, value
);
9196 void TraceGLApi::glUniformMatrix2x4fvFn(GLint location
,
9198 GLboolean transpose
,
9199 const GLfloat
* value
) {
9200 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x4fv")
9201 gl_api_
->glUniformMatrix2x4fvFn(location
, count
, transpose
, value
);
9204 void TraceGLApi::glUniformMatrix3fvFn(GLint location
,
9206 GLboolean transpose
,
9207 const GLfloat
* value
) {
9208 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3fv")
9209 gl_api_
->glUniformMatrix3fvFn(location
, count
, transpose
, value
);
9212 void TraceGLApi::glUniformMatrix3x2fvFn(GLint location
,
9214 GLboolean transpose
,
9215 const GLfloat
* value
) {
9216 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x2fv")
9217 gl_api_
->glUniformMatrix3x2fvFn(location
, count
, transpose
, value
);
9220 void TraceGLApi::glUniformMatrix3x4fvFn(GLint location
,
9222 GLboolean transpose
,
9223 const GLfloat
* value
) {
9224 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x4fv")
9225 gl_api_
->glUniformMatrix3x4fvFn(location
, count
, transpose
, value
);
9228 void TraceGLApi::glUniformMatrix4fvFn(GLint location
,
9230 GLboolean transpose
,
9231 const GLfloat
* value
) {
9232 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4fv")
9233 gl_api_
->glUniformMatrix4fvFn(location
, count
, transpose
, value
);
9236 void TraceGLApi::glUniformMatrix4x2fvFn(GLint location
,
9238 GLboolean transpose
,
9239 const GLfloat
* value
) {
9240 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x2fv")
9241 gl_api_
->glUniformMatrix4x2fvFn(location
, count
, transpose
, value
);
9244 void TraceGLApi::glUniformMatrix4x3fvFn(GLint location
,
9246 GLboolean transpose
,
9247 const GLfloat
* value
) {
9248 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x3fv")
9249 gl_api_
->glUniformMatrix4x3fvFn(location
, count
, transpose
, value
);
9252 GLboolean
TraceGLApi::glUnmapBufferFn(GLenum target
) {
9253 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUnmapBuffer")
9254 return gl_api_
->glUnmapBufferFn(target
);
9257 void TraceGLApi::glUseProgramFn(GLuint program
) {
9258 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUseProgram")
9259 gl_api_
->glUseProgramFn(program
);
9262 void TraceGLApi::glValidateProgramFn(GLuint program
) {
9263 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glValidateProgram")
9264 gl_api_
->glValidateProgramFn(program
);
9267 void TraceGLApi::glVertexAttrib1fFn(GLuint indx
, GLfloat x
) {
9268 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1f")
9269 gl_api_
->glVertexAttrib1fFn(indx
, x
);
9272 void TraceGLApi::glVertexAttrib1fvFn(GLuint indx
, const GLfloat
* values
) {
9273 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1fv")
9274 gl_api_
->glVertexAttrib1fvFn(indx
, values
);
9277 void TraceGLApi::glVertexAttrib2fFn(GLuint indx
, GLfloat x
, GLfloat y
) {
9278 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2f")
9279 gl_api_
->glVertexAttrib2fFn(indx
, x
, y
);
9282 void TraceGLApi::glVertexAttrib2fvFn(GLuint indx
, const GLfloat
* values
) {
9283 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2fv")
9284 gl_api_
->glVertexAttrib2fvFn(indx
, values
);
9287 void TraceGLApi::glVertexAttrib3fFn(GLuint indx
,
9291 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3f")
9292 gl_api_
->glVertexAttrib3fFn(indx
, x
, y
, z
);
9295 void TraceGLApi::glVertexAttrib3fvFn(GLuint indx
, const GLfloat
* values
) {
9296 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3fv")
9297 gl_api_
->glVertexAttrib3fvFn(indx
, values
);
9300 void TraceGLApi::glVertexAttrib4fFn(GLuint indx
,
9305 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4f")
9306 gl_api_
->glVertexAttrib4fFn(indx
, x
, y
, z
, w
);
9309 void TraceGLApi::glVertexAttrib4fvFn(GLuint indx
, const GLfloat
* values
) {
9310 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4fv")
9311 gl_api_
->glVertexAttrib4fvFn(indx
, values
);
9314 void TraceGLApi::glVertexAttribDivisorANGLEFn(GLuint index
, GLuint divisor
) {
9315 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribDivisorANGLE")
9316 gl_api_
->glVertexAttribDivisorANGLEFn(index
, divisor
);
9319 void TraceGLApi::glVertexAttribI4iFn(GLuint indx
,
9324 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4i")
9325 gl_api_
->glVertexAttribI4iFn(indx
, x
, y
, z
, w
);
9328 void TraceGLApi::glVertexAttribI4ivFn(GLuint indx
, const GLint
* values
) {
9329 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4iv")
9330 gl_api_
->glVertexAttribI4ivFn(indx
, values
);
9333 void TraceGLApi::glVertexAttribI4uiFn(GLuint indx
,
9338 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4ui")
9339 gl_api_
->glVertexAttribI4uiFn(indx
, x
, y
, z
, w
);
9342 void TraceGLApi::glVertexAttribI4uivFn(GLuint indx
, const GLuint
* values
) {
9343 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4uiv")
9344 gl_api_
->glVertexAttribI4uivFn(indx
, values
);
9347 void TraceGLApi::glVertexAttribIPointerFn(GLuint indx
,
9352 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribIPointer")
9353 gl_api_
->glVertexAttribIPointerFn(indx
, size
, type
, stride
, ptr
);
9356 void TraceGLApi::glVertexAttribPointerFn(GLuint indx
,
9359 GLboolean normalized
,
9362 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribPointer")
9363 gl_api_
->glVertexAttribPointerFn(indx
, size
, type
, normalized
, stride
, ptr
);
9366 void TraceGLApi::glViewportFn(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
9367 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glViewport")
9368 gl_api_
->glViewportFn(x
, y
, width
, height
);
9371 GLenum
TraceGLApi::glWaitSyncFn(GLsync sync
,
9374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glWaitSync")
9375 return gl_api_
->glWaitSyncFn(sync
, flags
, timeout
);
9378 void NoContextGLApi::glActiveTextureFn(GLenum texture
) {
9379 NOTREACHED() << "Trying to call glActiveTexture() without current GL context";
9380 LOG(ERROR
) << "Trying to call glActiveTexture() without current GL context";
9383 void NoContextGLApi::glAttachShaderFn(GLuint program
, GLuint shader
) {
9384 NOTREACHED() << "Trying to call glAttachShader() without current GL context";
9385 LOG(ERROR
) << "Trying to call glAttachShader() without current GL context";
9388 void NoContextGLApi::glBeginQueryFn(GLenum target
, GLuint id
) {
9389 NOTREACHED() << "Trying to call glBeginQuery() without current GL context";
9390 LOG(ERROR
) << "Trying to call glBeginQuery() without current GL context";
9393 void NoContextGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode
) {
9395 << "Trying to call glBeginTransformFeedback() without current GL context";
9397 << "Trying to call glBeginTransformFeedback() without current GL context";
9400 void NoContextGLApi::glBindAttribLocationFn(GLuint program
,
9404 << "Trying to call glBindAttribLocation() without current GL context";
9406 << "Trying to call glBindAttribLocation() without current GL context";
9409 void NoContextGLApi::glBindBufferFn(GLenum target
, GLuint buffer
) {
9410 NOTREACHED() << "Trying to call glBindBuffer() without current GL context";
9411 LOG(ERROR
) << "Trying to call glBindBuffer() without current GL context";
9414 void NoContextGLApi::glBindBufferBaseFn(GLenum target
,
9418 << "Trying to call glBindBufferBase() without current GL context";
9419 LOG(ERROR
) << "Trying to call glBindBufferBase() without current GL context";
9422 void NoContextGLApi::glBindBufferRangeFn(GLenum target
,
9428 << "Trying to call glBindBufferRange() without current GL context";
9429 LOG(ERROR
) << "Trying to call glBindBufferRange() without current GL context";
9432 void NoContextGLApi::glBindFragDataLocationFn(GLuint program
,
9436 << "Trying to call glBindFragDataLocation() without current GL context";
9438 << "Trying to call glBindFragDataLocation() without current GL context";
9441 void NoContextGLApi::glBindFragDataLocationIndexedFn(GLuint program
,
9445 NOTREACHED() << "Trying to call glBindFragDataLocationIndexed() without "
9446 "current GL context";
9447 LOG(ERROR
) << "Trying to call glBindFragDataLocationIndexed() without "
9448 "current GL context";
9451 void NoContextGLApi::glBindFramebufferEXTFn(GLenum target
, GLuint framebuffer
) {
9453 << "Trying to call glBindFramebufferEXT() without current GL context";
9455 << "Trying to call glBindFramebufferEXT() without current GL context";
9458 void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target
,
9459 GLuint renderbuffer
) {
9461 << "Trying to call glBindRenderbufferEXT() without current GL context";
9463 << "Trying to call glBindRenderbufferEXT() without current GL context";
9466 void NoContextGLApi::glBindSamplerFn(GLuint unit
, GLuint sampler
) {
9467 NOTREACHED() << "Trying to call glBindSampler() without current GL context";
9468 LOG(ERROR
) << "Trying to call glBindSampler() without current GL context";
9471 void NoContextGLApi::glBindTextureFn(GLenum target
, GLuint texture
) {
9472 NOTREACHED() << "Trying to call glBindTexture() without current GL context";
9473 LOG(ERROR
) << "Trying to call glBindTexture() without current GL context";
9476 void NoContextGLApi::glBindTransformFeedbackFn(GLenum target
, GLuint id
) {
9478 << "Trying to call glBindTransformFeedback() without current GL context";
9480 << "Trying to call glBindTransformFeedback() without current GL context";
9483 void NoContextGLApi::glBindVertexArrayOESFn(GLuint array
) {
9485 << "Trying to call glBindVertexArrayOES() without current GL context";
9487 << "Trying to call glBindVertexArrayOES() without current GL context";
9490 void NoContextGLApi::glBlendBarrierKHRFn(void) {
9492 << "Trying to call glBlendBarrierKHR() without current GL context";
9493 LOG(ERROR
) << "Trying to call glBlendBarrierKHR() without current GL context";
9496 void NoContextGLApi::glBlendColorFn(GLclampf red
,
9500 NOTREACHED() << "Trying to call glBlendColor() without current GL context";
9501 LOG(ERROR
) << "Trying to call glBlendColor() without current GL context";
9504 void NoContextGLApi::glBlendEquationFn(GLenum mode
) {
9505 NOTREACHED() << "Trying to call glBlendEquation() without current GL context";
9506 LOG(ERROR
) << "Trying to call glBlendEquation() without current GL context";
9509 void NoContextGLApi::glBlendEquationSeparateFn(GLenum modeRGB
,
9512 << "Trying to call glBlendEquationSeparate() without current GL context";
9514 << "Trying to call glBlendEquationSeparate() without current GL context";
9517 void NoContextGLApi::glBlendFuncFn(GLenum sfactor
, GLenum dfactor
) {
9518 NOTREACHED() << "Trying to call glBlendFunc() without current GL context";
9519 LOG(ERROR
) << "Trying to call glBlendFunc() without current GL context";
9522 void NoContextGLApi::glBlendFuncSeparateFn(GLenum srcRGB
,
9527 << "Trying to call glBlendFuncSeparate() without current GL context";
9529 << "Trying to call glBlendFuncSeparate() without current GL context";
9532 void NoContextGLApi::glBlitFramebufferFn(GLint srcX0
,
9543 << "Trying to call glBlitFramebuffer() without current GL context";
9544 LOG(ERROR
) << "Trying to call glBlitFramebuffer() without current GL context";
9547 void NoContextGLApi::glBlitFramebufferANGLEFn(GLint srcX0
,
9558 << "Trying to call glBlitFramebufferANGLE() without current GL context";
9560 << "Trying to call glBlitFramebufferANGLE() without current GL context";
9563 void NoContextGLApi::glBlitFramebufferEXTFn(GLint srcX0
,
9574 << "Trying to call glBlitFramebufferEXT() without current GL context";
9576 << "Trying to call glBlitFramebufferEXT() without current GL context";
9579 void NoContextGLApi::glBufferDataFn(GLenum target
,
9583 NOTREACHED() << "Trying to call glBufferData() without current GL context";
9584 LOG(ERROR
) << "Trying to call glBufferData() without current GL context";
9587 void NoContextGLApi::glBufferSubDataFn(GLenum target
,
9591 NOTREACHED() << "Trying to call glBufferSubData() without current GL context";
9592 LOG(ERROR
) << "Trying to call glBufferSubData() without current GL context";
9595 GLenum
NoContextGLApi::glCheckFramebufferStatusEXTFn(GLenum target
) {
9596 NOTREACHED() << "Trying to call glCheckFramebufferStatusEXT() without "
9597 "current GL context";
9598 LOG(ERROR
) << "Trying to call glCheckFramebufferStatusEXT() without current "
9600 return static_cast<GLenum
>(0);
9603 void NoContextGLApi::glClearFn(GLbitfield mask
) {
9604 NOTREACHED() << "Trying to call glClear() without current GL context";
9605 LOG(ERROR
) << "Trying to call glClear() without current GL context";
9608 void NoContextGLApi::glClearBufferfiFn(GLenum buffer
,
9610 const GLfloat depth
,
9612 NOTREACHED() << "Trying to call glClearBufferfi() without current GL context";
9613 LOG(ERROR
) << "Trying to call glClearBufferfi() without current GL context";
9616 void NoContextGLApi::glClearBufferfvFn(GLenum buffer
,
9618 const GLfloat
* value
) {
9619 NOTREACHED() << "Trying to call glClearBufferfv() without current GL context";
9620 LOG(ERROR
) << "Trying to call glClearBufferfv() without current GL context";
9623 void NoContextGLApi::glClearBufferivFn(GLenum buffer
,
9625 const GLint
* value
) {
9626 NOTREACHED() << "Trying to call glClearBufferiv() without current GL context";
9627 LOG(ERROR
) << "Trying to call glClearBufferiv() without current GL context";
9630 void NoContextGLApi::glClearBufferuivFn(GLenum buffer
,
9632 const GLuint
* value
) {
9634 << "Trying to call glClearBufferuiv() without current GL context";
9635 LOG(ERROR
) << "Trying to call glClearBufferuiv() without current GL context";
9638 void NoContextGLApi::glClearColorFn(GLclampf red
,
9642 NOTREACHED() << "Trying to call glClearColor() without current GL context";
9643 LOG(ERROR
) << "Trying to call glClearColor() without current GL context";
9646 void NoContextGLApi::glClearDepthFn(GLclampd depth
) {
9647 NOTREACHED() << "Trying to call glClearDepth() without current GL context";
9648 LOG(ERROR
) << "Trying to call glClearDepth() without current GL context";
9651 void NoContextGLApi::glClearDepthfFn(GLclampf depth
) {
9652 NOTREACHED() << "Trying to call glClearDepthf() without current GL context";
9653 LOG(ERROR
) << "Trying to call glClearDepthf() without current GL context";
9656 void NoContextGLApi::glClearStencilFn(GLint s
) {
9657 NOTREACHED() << "Trying to call glClearStencil() without current GL context";
9658 LOG(ERROR
) << "Trying to call glClearStencil() without current GL context";
9661 GLenum
NoContextGLApi::glClientWaitSyncFn(GLsync sync
,
9665 << "Trying to call glClientWaitSync() without current GL context";
9666 LOG(ERROR
) << "Trying to call glClientWaitSync() without current GL context";
9667 return static_cast<GLenum
>(0);
9670 void NoContextGLApi::glColorMaskFn(GLboolean red
,
9674 NOTREACHED() << "Trying to call glColorMask() without current GL context";
9675 LOG(ERROR
) << "Trying to call glColorMask() without current GL context";
9678 void NoContextGLApi::glCompileShaderFn(GLuint shader
) {
9679 NOTREACHED() << "Trying to call glCompileShader() without current GL context";
9680 LOG(ERROR
) << "Trying to call glCompileShader() without current GL context";
9683 void NoContextGLApi::glCompressedTexImage2DFn(GLenum target
,
9685 GLenum internalformat
,
9692 << "Trying to call glCompressedTexImage2D() without current GL context";
9694 << "Trying to call glCompressedTexImage2D() without current GL context";
9697 void NoContextGLApi::glCompressedTexImage3DFn(GLenum target
,
9699 GLenum internalformat
,
9707 << "Trying to call glCompressedTexImage3D() without current GL context";
9709 << "Trying to call glCompressedTexImage3D() without current GL context";
9712 void NoContextGLApi::glCompressedTexSubImage2DFn(GLenum target
,
9721 NOTREACHED() << "Trying to call glCompressedTexSubImage2D() without current "
9723 LOG(ERROR
) << "Trying to call glCompressedTexSubImage2D() without current GL "
9727 void NoContextGLApi::glCopyBufferSubDataFn(GLenum readTarget
,
9729 GLintptr readOffset
,
9730 GLintptr writeOffset
,
9733 << "Trying to call glCopyBufferSubData() without current GL context";
9735 << "Trying to call glCopyBufferSubData() without current GL context";
9738 void NoContextGLApi::glCopyTexImage2DFn(GLenum target
,
9740 GLenum internalformat
,
9747 << "Trying to call glCopyTexImage2D() without current GL context";
9748 LOG(ERROR
) << "Trying to call glCopyTexImage2D() without current GL context";
9751 void NoContextGLApi::glCopyTexSubImage2DFn(GLenum target
,
9760 << "Trying to call glCopyTexSubImage2D() without current GL context";
9762 << "Trying to call glCopyTexSubImage2D() without current GL context";
9765 void NoContextGLApi::glCopyTexSubImage3DFn(GLenum target
,
9775 << "Trying to call glCopyTexSubImage3D() without current GL context";
9777 << "Trying to call glCopyTexSubImage3D() without current GL context";
9780 GLuint
NoContextGLApi::glCreateProgramFn(void) {
9781 NOTREACHED() << "Trying to call glCreateProgram() without current GL context";
9782 LOG(ERROR
) << "Trying to call glCreateProgram() without current GL context";
9786 GLuint
NoContextGLApi::glCreateShaderFn(GLenum type
) {
9787 NOTREACHED() << "Trying to call glCreateShader() without current GL context";
9788 LOG(ERROR
) << "Trying to call glCreateShader() without current GL context";
9792 void NoContextGLApi::glCullFaceFn(GLenum mode
) {
9793 NOTREACHED() << "Trying to call glCullFace() without current GL context";
9794 LOG(ERROR
) << "Trying to call glCullFace() without current GL context";
9797 void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n
, const GLuint
* buffers
) {
9799 << "Trying to call glDeleteBuffersARB() without current GL context";
9801 << "Trying to call glDeleteBuffersARB() without current GL context";
9804 void NoContextGLApi::glDeleteFencesAPPLEFn(GLsizei n
, const GLuint
* fences
) {
9806 << "Trying to call glDeleteFencesAPPLE() without current GL context";
9808 << "Trying to call glDeleteFencesAPPLE() without current GL context";
9811 void NoContextGLApi::glDeleteFencesNVFn(GLsizei n
, const GLuint
* fences
) {
9813 << "Trying to call glDeleteFencesNV() without current GL context";
9814 LOG(ERROR
) << "Trying to call glDeleteFencesNV() without current GL context";
9817 void NoContextGLApi::glDeleteFramebuffersEXTFn(GLsizei n
,
9818 const GLuint
* framebuffers
) {
9820 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
9822 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
9825 void NoContextGLApi::glDeleteProgramFn(GLuint program
) {
9826 NOTREACHED() << "Trying to call glDeleteProgram() without current GL context";
9827 LOG(ERROR
) << "Trying to call glDeleteProgram() without current GL context";
9830 void NoContextGLApi::glDeleteQueriesFn(GLsizei n
, const GLuint
* ids
) {
9831 NOTREACHED() << "Trying to call glDeleteQueries() without current GL context";
9832 LOG(ERROR
) << "Trying to call glDeleteQueries() without current GL context";
9835 void NoContextGLApi::glDeleteRenderbuffersEXTFn(GLsizei n
,
9836 const GLuint
* renderbuffers
) {
9838 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
9840 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
9843 void NoContextGLApi::glDeleteSamplersFn(GLsizei n
, const GLuint
* samplers
) {
9845 << "Trying to call glDeleteSamplers() without current GL context";
9846 LOG(ERROR
) << "Trying to call glDeleteSamplers() without current GL context";
9849 void NoContextGLApi::glDeleteShaderFn(GLuint shader
) {
9850 NOTREACHED() << "Trying to call glDeleteShader() without current GL context";
9851 LOG(ERROR
) << "Trying to call glDeleteShader() without current GL context";
9854 void NoContextGLApi::glDeleteSyncFn(GLsync sync
) {
9855 NOTREACHED() << "Trying to call glDeleteSync() without current GL context";
9856 LOG(ERROR
) << "Trying to call glDeleteSync() without current GL context";
9859 void NoContextGLApi::glDeleteTexturesFn(GLsizei n
, const GLuint
* textures
) {
9861 << "Trying to call glDeleteTextures() without current GL context";
9862 LOG(ERROR
) << "Trying to call glDeleteTextures() without current GL context";
9865 void NoContextGLApi::glDeleteTransformFeedbacksFn(GLsizei n
,
9866 const GLuint
* ids
) {
9867 NOTREACHED() << "Trying to call glDeleteTransformFeedbacks() without current "
9869 LOG(ERROR
) << "Trying to call glDeleteTransformFeedbacks() without current "
9873 void NoContextGLApi::glDeleteVertexArraysOESFn(GLsizei n
,
9874 const GLuint
* arrays
) {
9876 << "Trying to call glDeleteVertexArraysOES() without current GL context";
9878 << "Trying to call glDeleteVertexArraysOES() without current GL context";
9881 void NoContextGLApi::glDepthFuncFn(GLenum func
) {
9882 NOTREACHED() << "Trying to call glDepthFunc() without current GL context";
9883 LOG(ERROR
) << "Trying to call glDepthFunc() without current GL context";
9886 void NoContextGLApi::glDepthMaskFn(GLboolean flag
) {
9887 NOTREACHED() << "Trying to call glDepthMask() without current GL context";
9888 LOG(ERROR
) << "Trying to call glDepthMask() without current GL context";
9891 void NoContextGLApi::glDepthRangeFn(GLclampd zNear
, GLclampd zFar
) {
9892 NOTREACHED() << "Trying to call glDepthRange() without current GL context";
9893 LOG(ERROR
) << "Trying to call glDepthRange() without current GL context";
9896 void NoContextGLApi::glDepthRangefFn(GLclampf zNear
, GLclampf zFar
) {
9897 NOTREACHED() << "Trying to call glDepthRangef() without current GL context";
9898 LOG(ERROR
) << "Trying to call glDepthRangef() without current GL context";
9901 void NoContextGLApi::glDetachShaderFn(GLuint program
, GLuint shader
) {
9902 NOTREACHED() << "Trying to call glDetachShader() without current GL context";
9903 LOG(ERROR
) << "Trying to call glDetachShader() without current GL context";
9906 void NoContextGLApi::glDisableFn(GLenum cap
) {
9907 NOTREACHED() << "Trying to call glDisable() without current GL context";
9908 LOG(ERROR
) << "Trying to call glDisable() without current GL context";
9911 void NoContextGLApi::glDisableVertexAttribArrayFn(GLuint index
) {
9912 NOTREACHED() << "Trying to call glDisableVertexAttribArray() without current "
9914 LOG(ERROR
) << "Trying to call glDisableVertexAttribArray() without current "
9918 void NoContextGLApi::glDiscardFramebufferEXTFn(GLenum target
,
9919 GLsizei numAttachments
,
9920 const GLenum
* attachments
) {
9922 << "Trying to call glDiscardFramebufferEXT() without current GL context";
9924 << "Trying to call glDiscardFramebufferEXT() without current GL context";
9927 void NoContextGLApi::glDrawArraysFn(GLenum mode
, GLint first
, GLsizei count
) {
9928 NOTREACHED() << "Trying to call glDrawArrays() without current GL context";
9929 LOG(ERROR
) << "Trying to call glDrawArrays() without current GL context";
9932 void NoContextGLApi::glDrawArraysInstancedANGLEFn(GLenum mode
,
9935 GLsizei primcount
) {
9936 NOTREACHED() << "Trying to call glDrawArraysInstancedANGLE() without current "
9938 LOG(ERROR
) << "Trying to call glDrawArraysInstancedANGLE() without current "
9942 void NoContextGLApi::glDrawBufferFn(GLenum mode
) {
9943 NOTREACHED() << "Trying to call glDrawBuffer() without current GL context";
9944 LOG(ERROR
) << "Trying to call glDrawBuffer() without current GL context";
9947 void NoContextGLApi::glDrawBuffersARBFn(GLsizei n
, const GLenum
* bufs
) {
9949 << "Trying to call glDrawBuffersARB() without current GL context";
9950 LOG(ERROR
) << "Trying to call glDrawBuffersARB() without current GL context";
9953 void NoContextGLApi::glDrawElementsFn(GLenum mode
,
9956 const void* indices
) {
9957 NOTREACHED() << "Trying to call glDrawElements() without current GL context";
9958 LOG(ERROR
) << "Trying to call glDrawElements() without current GL context";
9961 void NoContextGLApi::glDrawElementsInstancedANGLEFn(GLenum mode
,
9964 const void* indices
,
9965 GLsizei primcount
) {
9966 NOTREACHED() << "Trying to call glDrawElementsInstancedANGLE() without "
9967 "current GL context";
9968 LOG(ERROR
) << "Trying to call glDrawElementsInstancedANGLE() without current "
9972 void NoContextGLApi::glDrawRangeElementsFn(GLenum mode
,
9977 const void* indices
) {
9979 << "Trying to call glDrawRangeElements() without current GL context";
9981 << "Trying to call glDrawRangeElements() without current GL context";
9984 void NoContextGLApi::glEGLImageTargetRenderbufferStorageOESFn(
9986 GLeglImageOES image
) {
9987 NOTREACHED() << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
9988 "without current GL context";
9989 LOG(ERROR
) << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
9990 "without current GL context";
9993 void NoContextGLApi::glEGLImageTargetTexture2DOESFn(GLenum target
,
9994 GLeglImageOES image
) {
9995 NOTREACHED() << "Trying to call glEGLImageTargetTexture2DOES() without "
9996 "current GL context";
9997 LOG(ERROR
) << "Trying to call glEGLImageTargetTexture2DOES() without current "
10001 void NoContextGLApi::glEnableFn(GLenum cap
) {
10002 NOTREACHED() << "Trying to call glEnable() without current GL context";
10003 LOG(ERROR
) << "Trying to call glEnable() without current GL context";
10006 void NoContextGLApi::glEnableVertexAttribArrayFn(GLuint index
) {
10007 NOTREACHED() << "Trying to call glEnableVertexAttribArray() without current "
10009 LOG(ERROR
) << "Trying to call glEnableVertexAttribArray() without current GL "
10013 void NoContextGLApi::glEndQueryFn(GLenum target
) {
10014 NOTREACHED() << "Trying to call glEndQuery() without current GL context";
10015 LOG(ERROR
) << "Trying to call glEndQuery() without current GL context";
10018 void NoContextGLApi::glEndTransformFeedbackFn(void) {
10020 << "Trying to call glEndTransformFeedback() without current GL context";
10022 << "Trying to call glEndTransformFeedback() without current GL context";
10025 GLsync
NoContextGLApi::glFenceSyncFn(GLenum condition
, GLbitfield flags
) {
10026 NOTREACHED() << "Trying to call glFenceSync() without current GL context";
10027 LOG(ERROR
) << "Trying to call glFenceSync() without current GL context";
10031 void NoContextGLApi::glFinishFn(void) {
10032 NOTREACHED() << "Trying to call glFinish() without current GL context";
10033 LOG(ERROR
) << "Trying to call glFinish() without current GL context";
10036 void NoContextGLApi::glFinishFenceAPPLEFn(GLuint fence
) {
10038 << "Trying to call glFinishFenceAPPLE() without current GL context";
10040 << "Trying to call glFinishFenceAPPLE() without current GL context";
10043 void NoContextGLApi::glFinishFenceNVFn(GLuint fence
) {
10044 NOTREACHED() << "Trying to call glFinishFenceNV() without current GL context";
10045 LOG(ERROR
) << "Trying to call glFinishFenceNV() without current GL context";
10048 void NoContextGLApi::glFlushFn(void) {
10049 NOTREACHED() << "Trying to call glFlush() without current GL context";
10050 LOG(ERROR
) << "Trying to call glFlush() without current GL context";
10053 void NoContextGLApi::glFlushMappedBufferRangeFn(GLenum target
,
10055 GLsizeiptr length
) {
10057 << "Trying to call glFlushMappedBufferRange() without current GL context";
10059 << "Trying to call glFlushMappedBufferRange() without current GL context";
10062 void NoContextGLApi::glFramebufferRenderbufferEXTFn(GLenum target
,
10064 GLenum renderbuffertarget
,
10065 GLuint renderbuffer
) {
10066 NOTREACHED() << "Trying to call glFramebufferRenderbufferEXT() without "
10067 "current GL context";
10068 LOG(ERROR
) << "Trying to call glFramebufferRenderbufferEXT() without current "
10072 void NoContextGLApi::glFramebufferTexture2DEXTFn(GLenum target
,
10077 NOTREACHED() << "Trying to call glFramebufferTexture2DEXT() without current "
10079 LOG(ERROR
) << "Trying to call glFramebufferTexture2DEXT() without current GL "
10083 void NoContextGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target
,
10089 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleEXT() "
10090 "without current GL context";
10091 LOG(ERROR
) << "Trying to call glFramebufferTexture2DMultisampleEXT() without "
10092 "current GL context";
10095 void NoContextGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target
,
10101 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleIMG() "
10102 "without current GL context";
10103 LOG(ERROR
) << "Trying to call glFramebufferTexture2DMultisampleIMG() without "
10104 "current GL context";
10107 void NoContextGLApi::glFramebufferTextureLayerFn(GLenum target
,
10112 NOTREACHED() << "Trying to call glFramebufferTextureLayer() without current "
10114 LOG(ERROR
) << "Trying to call glFramebufferTextureLayer() without current GL "
10118 void NoContextGLApi::glFrontFaceFn(GLenum mode
) {
10119 NOTREACHED() << "Trying to call glFrontFace() without current GL context";
10120 LOG(ERROR
) << "Trying to call glFrontFace() without current GL context";
10123 void NoContextGLApi::glGenBuffersARBFn(GLsizei n
, GLuint
* buffers
) {
10124 NOTREACHED() << "Trying to call glGenBuffersARB() without current GL context";
10125 LOG(ERROR
) << "Trying to call glGenBuffersARB() without current GL context";
10128 void NoContextGLApi::glGenerateMipmapEXTFn(GLenum target
) {
10130 << "Trying to call glGenerateMipmapEXT() without current GL context";
10132 << "Trying to call glGenerateMipmapEXT() without current GL context";
10135 void NoContextGLApi::glGenFencesAPPLEFn(GLsizei n
, GLuint
* fences
) {
10137 << "Trying to call glGenFencesAPPLE() without current GL context";
10138 LOG(ERROR
) << "Trying to call glGenFencesAPPLE() without current GL context";
10141 void NoContextGLApi::glGenFencesNVFn(GLsizei n
, GLuint
* fences
) {
10142 NOTREACHED() << "Trying to call glGenFencesNV() without current GL context";
10143 LOG(ERROR
) << "Trying to call glGenFencesNV() without current GL context";
10146 void NoContextGLApi::glGenFramebuffersEXTFn(GLsizei n
, GLuint
* framebuffers
) {
10148 << "Trying to call glGenFramebuffersEXT() without current GL context";
10150 << "Trying to call glGenFramebuffersEXT() without current GL context";
10153 void NoContextGLApi::glGenQueriesFn(GLsizei n
, GLuint
* ids
) {
10154 NOTREACHED() << "Trying to call glGenQueries() without current GL context";
10155 LOG(ERROR
) << "Trying to call glGenQueries() without current GL context";
10158 void NoContextGLApi::glGenRenderbuffersEXTFn(GLsizei n
, GLuint
* renderbuffers
) {
10160 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10162 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10165 void NoContextGLApi::glGenSamplersFn(GLsizei n
, GLuint
* samplers
) {
10166 NOTREACHED() << "Trying to call glGenSamplers() without current GL context";
10167 LOG(ERROR
) << "Trying to call glGenSamplers() without current GL context";
10170 void NoContextGLApi::glGenTexturesFn(GLsizei n
, GLuint
* textures
) {
10171 NOTREACHED() << "Trying to call glGenTextures() without current GL context";
10172 LOG(ERROR
) << "Trying to call glGenTextures() without current GL context";
10175 void NoContextGLApi::glGenTransformFeedbacksFn(GLsizei n
, GLuint
* ids
) {
10177 << "Trying to call glGenTransformFeedbacks() without current GL context";
10179 << "Trying to call glGenTransformFeedbacks() without current GL context";
10182 void NoContextGLApi::glGenVertexArraysOESFn(GLsizei n
, GLuint
* arrays
) {
10184 << "Trying to call glGenVertexArraysOES() without current GL context";
10186 << "Trying to call glGenVertexArraysOES() without current GL context";
10189 void NoContextGLApi::glGetActiveAttribFn(GLuint program
,
10197 << "Trying to call glGetActiveAttrib() without current GL context";
10198 LOG(ERROR
) << "Trying to call glGetActiveAttrib() without current GL context";
10201 void NoContextGLApi::glGetActiveUniformFn(GLuint program
,
10209 << "Trying to call glGetActiveUniform() without current GL context";
10211 << "Trying to call glGetActiveUniform() without current GL context";
10214 void NoContextGLApi::glGetActiveUniformBlockivFn(GLuint program
,
10215 GLuint uniformBlockIndex
,
10218 NOTREACHED() << "Trying to call glGetActiveUniformBlockiv() without current "
10220 LOG(ERROR
) << "Trying to call glGetActiveUniformBlockiv() without current GL "
10224 void NoContextGLApi::glGetActiveUniformBlockNameFn(GLuint program
,
10225 GLuint uniformBlockIndex
,
10228 char* uniformBlockName
) {
10229 NOTREACHED() << "Trying to call glGetActiveUniformBlockName() without "
10230 "current GL context";
10231 LOG(ERROR
) << "Trying to call glGetActiveUniformBlockName() without current "
10235 void NoContextGLApi::glGetActiveUniformsivFn(GLuint program
,
10236 GLsizei uniformCount
,
10237 const GLuint
* uniformIndices
,
10241 << "Trying to call glGetActiveUniformsiv() without current GL context";
10243 << "Trying to call glGetActiveUniformsiv() without current GL context";
10246 void NoContextGLApi::glGetAttachedShadersFn(GLuint program
,
10251 << "Trying to call glGetAttachedShaders() without current GL context";
10253 << "Trying to call glGetAttachedShaders() without current GL context";
10256 GLint
NoContextGLApi::glGetAttribLocationFn(GLuint program
, const char* name
) {
10258 << "Trying to call glGetAttribLocation() without current GL context";
10260 << "Trying to call glGetAttribLocation() without current GL context";
10264 void NoContextGLApi::glGetBooleanvFn(GLenum pname
, GLboolean
* params
) {
10265 NOTREACHED() << "Trying to call glGetBooleanv() without current GL context";
10266 LOG(ERROR
) << "Trying to call glGetBooleanv() without current GL context";
10269 void NoContextGLApi::glGetBufferParameterivFn(GLenum target
,
10273 << "Trying to call glGetBufferParameteriv() without current GL context";
10275 << "Trying to call glGetBufferParameteriv() without current GL context";
10278 GLenum
NoContextGLApi::glGetErrorFn(void) {
10279 NOTREACHED() << "Trying to call glGetError() without current GL context";
10280 LOG(ERROR
) << "Trying to call glGetError() without current GL context";
10281 return static_cast<GLenum
>(0);
10284 void NoContextGLApi::glGetFenceivNVFn(GLuint fence
,
10287 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context";
10288 LOG(ERROR
) << "Trying to call glGetFenceivNV() without current GL context";
10291 void NoContextGLApi::glGetFloatvFn(GLenum pname
, GLfloat
* params
) {
10292 NOTREACHED() << "Trying to call glGetFloatv() without current GL context";
10293 LOG(ERROR
) << "Trying to call glGetFloatv() without current GL context";
10296 GLint
NoContextGLApi::glGetFragDataLocationFn(GLuint program
,
10297 const char* name
) {
10299 << "Trying to call glGetFragDataLocation() without current GL context";
10301 << "Trying to call glGetFragDataLocation() without current GL context";
10305 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn(
10310 NOTREACHED() << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
10311 "without current GL context";
10312 LOG(ERROR
) << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
10313 "without current GL context";
10316 GLenum
NoContextGLApi::glGetGraphicsResetStatusARBFn(void) {
10317 NOTREACHED() << "Trying to call glGetGraphicsResetStatusARB() without "
10318 "current GL context";
10319 LOG(ERROR
) << "Trying to call glGetGraphicsResetStatusARB() without current "
10321 return static_cast<GLenum
>(0);
10324 void NoContextGLApi::glGetInteger64i_vFn(GLenum target
,
10328 << "Trying to call glGetInteger64i_v() without current GL context";
10329 LOG(ERROR
) << "Trying to call glGetInteger64i_v() without current GL context";
10332 void NoContextGLApi::glGetInteger64vFn(GLenum pname
, GLint64
* params
) {
10333 NOTREACHED() << "Trying to call glGetInteger64v() without current GL context";
10334 LOG(ERROR
) << "Trying to call glGetInteger64v() without current GL context";
10337 void NoContextGLApi::glGetIntegeri_vFn(GLenum target
,
10340 NOTREACHED() << "Trying to call glGetIntegeri_v() without current GL context";
10341 LOG(ERROR
) << "Trying to call glGetIntegeri_v() without current GL context";
10344 void NoContextGLApi::glGetIntegervFn(GLenum pname
, GLint
* params
) {
10345 NOTREACHED() << "Trying to call glGetIntegerv() without current GL context";
10346 LOG(ERROR
) << "Trying to call glGetIntegerv() without current GL context";
10349 void NoContextGLApi::glGetInternalformativFn(GLenum target
,
10350 GLenum internalformat
,
10355 << "Trying to call glGetInternalformativ() without current GL context";
10357 << "Trying to call glGetInternalformativ() without current GL context";
10360 void NoContextGLApi::glGetProgramBinaryFn(GLuint program
,
10363 GLenum
* binaryFormat
,
10366 << "Trying to call glGetProgramBinary() without current GL context";
10368 << "Trying to call glGetProgramBinary() without current GL context";
10371 void NoContextGLApi::glGetProgramInfoLogFn(GLuint program
,
10376 << "Trying to call glGetProgramInfoLog() without current GL context";
10378 << "Trying to call glGetProgramInfoLog() without current GL context";
10381 void NoContextGLApi::glGetProgramivFn(GLuint program
,
10384 NOTREACHED() << "Trying to call glGetProgramiv() without current GL context";
10385 LOG(ERROR
) << "Trying to call glGetProgramiv() without current GL context";
10388 GLint
NoContextGLApi::glGetProgramResourceLocationFn(GLuint program
,
10389 GLenum programInterface
,
10390 const char* name
) {
10391 NOTREACHED() << "Trying to call glGetProgramResourceLocation() without "
10392 "current GL context";
10393 LOG(ERROR
) << "Trying to call glGetProgramResourceLocation() without current "
10398 void NoContextGLApi::glGetQueryivFn(GLenum target
,
10401 NOTREACHED() << "Trying to call glGetQueryiv() without current GL context";
10402 LOG(ERROR
) << "Trying to call glGetQueryiv() without current GL context";
10405 void NoContextGLApi::glGetQueryObjecti64vFn(GLuint id
,
10409 << "Trying to call glGetQueryObjecti64v() without current GL context";
10411 << "Trying to call glGetQueryObjecti64v() without current GL context";
10414 void NoContextGLApi::glGetQueryObjectivFn(GLuint id
,
10418 << "Trying to call glGetQueryObjectiv() without current GL context";
10420 << "Trying to call glGetQueryObjectiv() without current GL context";
10423 void NoContextGLApi::glGetQueryObjectui64vFn(GLuint id
,
10425 GLuint64
* params
) {
10427 << "Trying to call glGetQueryObjectui64v() without current GL context";
10429 << "Trying to call glGetQueryObjectui64v() without current GL context";
10432 void NoContextGLApi::glGetQueryObjectuivFn(GLuint id
,
10436 << "Trying to call glGetQueryObjectuiv() without current GL context";
10438 << "Trying to call glGetQueryObjectuiv() without current GL context";
10441 void NoContextGLApi::glGetRenderbufferParameterivEXTFn(GLenum target
,
10444 NOTREACHED() << "Trying to call glGetRenderbufferParameterivEXT() without "
10445 "current GL context";
10446 LOG(ERROR
) << "Trying to call glGetRenderbufferParameterivEXT() without "
10447 "current GL context";
10450 void NoContextGLApi::glGetSamplerParameterfvFn(GLuint sampler
,
10454 << "Trying to call glGetSamplerParameterfv() without current GL context";
10456 << "Trying to call glGetSamplerParameterfv() without current GL context";
10459 void NoContextGLApi::glGetSamplerParameterivFn(GLuint sampler
,
10463 << "Trying to call glGetSamplerParameteriv() without current GL context";
10465 << "Trying to call glGetSamplerParameteriv() without current GL context";
10468 void NoContextGLApi::glGetShaderInfoLogFn(GLuint shader
,
10473 << "Trying to call glGetShaderInfoLog() without current GL context";
10475 << "Trying to call glGetShaderInfoLog() without current GL context";
10478 void NoContextGLApi::glGetShaderivFn(GLuint shader
,
10481 NOTREACHED() << "Trying to call glGetShaderiv() without current GL context";
10482 LOG(ERROR
) << "Trying to call glGetShaderiv() without current GL context";
10485 void NoContextGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype
,
10486 GLenum precisiontype
,
10488 GLint
* precision
) {
10489 NOTREACHED() << "Trying to call glGetShaderPrecisionFormat() without current "
10491 LOG(ERROR
) << "Trying to call glGetShaderPrecisionFormat() without current "
10495 void NoContextGLApi::glGetShaderSourceFn(GLuint shader
,
10500 << "Trying to call glGetShaderSource() without current GL context";
10501 LOG(ERROR
) << "Trying to call glGetShaderSource() without current GL context";
10504 const GLubyte
* NoContextGLApi::glGetStringFn(GLenum name
) {
10505 NOTREACHED() << "Trying to call glGetString() without current GL context";
10506 LOG(ERROR
) << "Trying to call glGetString() without current GL context";
10510 const GLubyte
* NoContextGLApi::glGetStringiFn(GLenum name
, GLuint index
) {
10511 NOTREACHED() << "Trying to call glGetStringi() without current GL context";
10512 LOG(ERROR
) << "Trying to call glGetStringi() without current GL context";
10516 void NoContextGLApi::glGetSyncivFn(GLsync sync
,
10521 NOTREACHED() << "Trying to call glGetSynciv() without current GL context";
10522 LOG(ERROR
) << "Trying to call glGetSynciv() without current GL context";
10525 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target
,
10530 << "Trying to call glGetTexLevelParameterfv() without current GL context";
10532 << "Trying to call glGetTexLevelParameterfv() without current GL context";
10535 void NoContextGLApi::glGetTexLevelParameterivFn(GLenum target
,
10540 << "Trying to call glGetTexLevelParameteriv() without current GL context";
10542 << "Trying to call glGetTexLevelParameteriv() without current GL context";
10545 void NoContextGLApi::glGetTexParameterfvFn(GLenum target
,
10549 << "Trying to call glGetTexParameterfv() without current GL context";
10551 << "Trying to call glGetTexParameterfv() without current GL context";
10554 void NoContextGLApi::glGetTexParameterivFn(GLenum target
,
10558 << "Trying to call glGetTexParameteriv() without current GL context";
10560 << "Trying to call glGetTexParameteriv() without current GL context";
10563 void NoContextGLApi::glGetTransformFeedbackVaryingFn(GLuint program
,
10570 NOTREACHED() << "Trying to call glGetTransformFeedbackVarying() without "
10571 "current GL context";
10572 LOG(ERROR
) << "Trying to call glGetTransformFeedbackVarying() without "
10573 "current GL context";
10576 void NoContextGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader
,
10580 NOTREACHED() << "Trying to call glGetTranslatedShaderSourceANGLE() without "
10581 "current GL context";
10582 LOG(ERROR
) << "Trying to call glGetTranslatedShaderSourceANGLE() without "
10583 "current GL context";
10586 GLuint
NoContextGLApi::glGetUniformBlockIndexFn(GLuint program
,
10587 const char* uniformBlockName
) {
10589 << "Trying to call glGetUniformBlockIndex() without current GL context";
10591 << "Trying to call glGetUniformBlockIndex() without current GL context";
10595 void NoContextGLApi::glGetUniformfvFn(GLuint program
,
10598 NOTREACHED() << "Trying to call glGetUniformfv() without current GL context";
10599 LOG(ERROR
) << "Trying to call glGetUniformfv() without current GL context";
10602 void NoContextGLApi::glGetUniformIndicesFn(GLuint program
,
10603 GLsizei uniformCount
,
10604 const char* const* uniformNames
,
10605 GLuint
* uniformIndices
) {
10607 << "Trying to call glGetUniformIndices() without current GL context";
10609 << "Trying to call glGetUniformIndices() without current GL context";
10612 void NoContextGLApi::glGetUniformivFn(GLuint program
,
10615 NOTREACHED() << "Trying to call glGetUniformiv() without current GL context";
10616 LOG(ERROR
) << "Trying to call glGetUniformiv() without current GL context";
10619 GLint
NoContextGLApi::glGetUniformLocationFn(GLuint program
, const char* name
) {
10621 << "Trying to call glGetUniformLocation() without current GL context";
10623 << "Trying to call glGetUniformLocation() without current GL context";
10627 void NoContextGLApi::glGetVertexAttribfvFn(GLuint index
,
10631 << "Trying to call glGetVertexAttribfv() without current GL context";
10633 << "Trying to call glGetVertexAttribfv() without current GL context";
10636 void NoContextGLApi::glGetVertexAttribivFn(GLuint index
,
10640 << "Trying to call glGetVertexAttribiv() without current GL context";
10642 << "Trying to call glGetVertexAttribiv() without current GL context";
10645 void NoContextGLApi::glGetVertexAttribPointervFn(GLuint index
,
10648 NOTREACHED() << "Trying to call glGetVertexAttribPointerv() without current "
10650 LOG(ERROR
) << "Trying to call glGetVertexAttribPointerv() without current GL "
10654 void NoContextGLApi::glHintFn(GLenum target
, GLenum mode
) {
10655 NOTREACHED() << "Trying to call glHint() without current GL context";
10656 LOG(ERROR
) << "Trying to call glHint() without current GL context";
10659 void NoContextGLApi::glInsertEventMarkerEXTFn(GLsizei length
,
10660 const char* marker
) {
10662 << "Trying to call glInsertEventMarkerEXT() without current GL context";
10664 << "Trying to call glInsertEventMarkerEXT() without current GL context";
10667 void NoContextGLApi::glInvalidateFramebufferFn(GLenum target
,
10668 GLsizei numAttachments
,
10669 const GLenum
* attachments
) {
10671 << "Trying to call glInvalidateFramebuffer() without current GL context";
10673 << "Trying to call glInvalidateFramebuffer() without current GL context";
10676 void NoContextGLApi::glInvalidateSubFramebufferFn(GLenum target
,
10677 GLsizei numAttachments
,
10678 const GLenum
* attachments
,
10683 NOTREACHED() << "Trying to call glInvalidateSubFramebuffer() without current "
10685 LOG(ERROR
) << "Trying to call glInvalidateSubFramebuffer() without current "
10689 GLboolean
NoContextGLApi::glIsBufferFn(GLuint buffer
) {
10690 NOTREACHED() << "Trying to call glIsBuffer() without current GL context";
10691 LOG(ERROR
) << "Trying to call glIsBuffer() without current GL context";
10695 GLboolean
NoContextGLApi::glIsEnabledFn(GLenum cap
) {
10696 NOTREACHED() << "Trying to call glIsEnabled() without current GL context";
10697 LOG(ERROR
) << "Trying to call glIsEnabled() without current GL context";
10701 GLboolean
NoContextGLApi::glIsFenceAPPLEFn(GLuint fence
) {
10702 NOTREACHED() << "Trying to call glIsFenceAPPLE() without current GL context";
10703 LOG(ERROR
) << "Trying to call glIsFenceAPPLE() without current GL context";
10707 GLboolean
NoContextGLApi::glIsFenceNVFn(GLuint fence
) {
10708 NOTREACHED() << "Trying to call glIsFenceNV() without current GL context";
10709 LOG(ERROR
) << "Trying to call glIsFenceNV() without current GL context";
10713 GLboolean
NoContextGLApi::glIsFramebufferEXTFn(GLuint framebuffer
) {
10715 << "Trying to call glIsFramebufferEXT() without current GL context";
10717 << "Trying to call glIsFramebufferEXT() without current GL context";
10721 GLboolean
NoContextGLApi::glIsProgramFn(GLuint program
) {
10722 NOTREACHED() << "Trying to call glIsProgram() without current GL context";
10723 LOG(ERROR
) << "Trying to call glIsProgram() without current GL context";
10727 GLboolean
NoContextGLApi::glIsQueryFn(GLuint query
) {
10728 NOTREACHED() << "Trying to call glIsQuery() without current GL context";
10729 LOG(ERROR
) << "Trying to call glIsQuery() without current GL context";
10733 GLboolean
NoContextGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer
) {
10735 << "Trying to call glIsRenderbufferEXT() without current GL context";
10737 << "Trying to call glIsRenderbufferEXT() without current GL context";
10741 GLboolean
NoContextGLApi::glIsSamplerFn(GLuint sampler
) {
10742 NOTREACHED() << "Trying to call glIsSampler() without current GL context";
10743 LOG(ERROR
) << "Trying to call glIsSampler() without current GL context";
10747 GLboolean
NoContextGLApi::glIsShaderFn(GLuint shader
) {
10748 NOTREACHED() << "Trying to call glIsShader() without current GL context";
10749 LOG(ERROR
) << "Trying to call glIsShader() without current GL context";
10753 GLboolean
NoContextGLApi::glIsSyncFn(GLsync sync
) {
10754 NOTREACHED() << "Trying to call glIsSync() without current GL context";
10755 LOG(ERROR
) << "Trying to call glIsSync() without current GL context";
10759 GLboolean
NoContextGLApi::glIsTextureFn(GLuint texture
) {
10760 NOTREACHED() << "Trying to call glIsTexture() without current GL context";
10761 LOG(ERROR
) << "Trying to call glIsTexture() without current GL context";
10765 GLboolean
NoContextGLApi::glIsTransformFeedbackFn(GLuint id
) {
10767 << "Trying to call glIsTransformFeedback() without current GL context";
10769 << "Trying to call glIsTransformFeedback() without current GL context";
10773 GLboolean
NoContextGLApi::glIsVertexArrayOESFn(GLuint array
) {
10775 << "Trying to call glIsVertexArrayOES() without current GL context";
10777 << "Trying to call glIsVertexArrayOES() without current GL context";
10781 void NoContextGLApi::glLineWidthFn(GLfloat width
) {
10782 NOTREACHED() << "Trying to call glLineWidth() without current GL context";
10783 LOG(ERROR
) << "Trying to call glLineWidth() without current GL context";
10786 void NoContextGLApi::glLinkProgramFn(GLuint program
) {
10787 NOTREACHED() << "Trying to call glLinkProgram() without current GL context";
10788 LOG(ERROR
) << "Trying to call glLinkProgram() without current GL context";
10791 void* NoContextGLApi::glMapBufferFn(GLenum target
, GLenum access
) {
10792 NOTREACHED() << "Trying to call glMapBuffer() without current GL context";
10793 LOG(ERROR
) << "Trying to call glMapBuffer() without current GL context";
10797 void* NoContextGLApi::glMapBufferRangeFn(GLenum target
,
10800 GLbitfield access
) {
10802 << "Trying to call glMapBufferRange() without current GL context";
10803 LOG(ERROR
) << "Trying to call glMapBufferRange() without current GL context";
10807 void NoContextGLApi::glMatrixLoadfEXTFn(GLenum matrixMode
, const GLfloat
* m
) {
10809 << "Trying to call glMatrixLoadfEXT() without current GL context";
10810 LOG(ERROR
) << "Trying to call glMatrixLoadfEXT() without current GL context";
10813 void NoContextGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode
) {
10815 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
10817 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
10820 void NoContextGLApi::glPauseTransformFeedbackFn(void) {
10822 << "Trying to call glPauseTransformFeedback() without current GL context";
10824 << "Trying to call glPauseTransformFeedback() without current GL context";
10827 void NoContextGLApi::glPixelStoreiFn(GLenum pname
, GLint param
) {
10828 NOTREACHED() << "Trying to call glPixelStorei() without current GL context";
10829 LOG(ERROR
) << "Trying to call glPixelStorei() without current GL context";
10832 void NoContextGLApi::glPointParameteriFn(GLenum pname
, GLint param
) {
10834 << "Trying to call glPointParameteri() without current GL context";
10835 LOG(ERROR
) << "Trying to call glPointParameteri() without current GL context";
10838 void NoContextGLApi::glPolygonOffsetFn(GLfloat factor
, GLfloat units
) {
10839 NOTREACHED() << "Trying to call glPolygonOffset() without current GL context";
10840 LOG(ERROR
) << "Trying to call glPolygonOffset() without current GL context";
10843 void NoContextGLApi::glPopGroupMarkerEXTFn(void) {
10845 << "Trying to call glPopGroupMarkerEXT() without current GL context";
10847 << "Trying to call glPopGroupMarkerEXT() without current GL context";
10850 void NoContextGLApi::glProgramBinaryFn(GLuint program
,
10851 GLenum binaryFormat
,
10852 const GLvoid
* binary
,
10854 NOTREACHED() << "Trying to call glProgramBinary() without current GL context";
10855 LOG(ERROR
) << "Trying to call glProgramBinary() without current GL context";
10858 void NoContextGLApi::glProgramParameteriFn(GLuint program
,
10862 << "Trying to call glProgramParameteri() without current GL context";
10864 << "Trying to call glProgramParameteri() without current GL context";
10867 void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length
,
10868 const char* marker
) {
10870 << "Trying to call glPushGroupMarkerEXT() without current GL context";
10872 << "Trying to call glPushGroupMarkerEXT() without current GL context";
10875 void NoContextGLApi::glQueryCounterFn(GLuint id
, GLenum target
) {
10876 NOTREACHED() << "Trying to call glQueryCounter() without current GL context";
10877 LOG(ERROR
) << "Trying to call glQueryCounter() without current GL context";
10880 void NoContextGLApi::glReadBufferFn(GLenum src
) {
10881 NOTREACHED() << "Trying to call glReadBuffer() without current GL context";
10882 LOG(ERROR
) << "Trying to call glReadBuffer() without current GL context";
10885 void NoContextGLApi::glReadPixelsFn(GLint x
,
10892 NOTREACHED() << "Trying to call glReadPixels() without current GL context";
10893 LOG(ERROR
) << "Trying to call glReadPixels() without current GL context";
10896 void NoContextGLApi::glReleaseShaderCompilerFn(void) {
10898 << "Trying to call glReleaseShaderCompiler() without current GL context";
10900 << "Trying to call glReleaseShaderCompiler() without current GL context";
10903 void NoContextGLApi::glRenderbufferStorageEXTFn(GLenum target
,
10904 GLenum internalformat
,
10908 << "Trying to call glRenderbufferStorageEXT() without current GL context";
10910 << "Trying to call glRenderbufferStorageEXT() without current GL context";
10913 void NoContextGLApi::glRenderbufferStorageMultisampleFn(GLenum target
,
10915 GLenum internalformat
,
10918 NOTREACHED() << "Trying to call glRenderbufferStorageMultisample() without "
10919 "current GL context";
10920 LOG(ERROR
) << "Trying to call glRenderbufferStorageMultisample() without "
10921 "current GL context";
10924 void NoContextGLApi::glRenderbufferStorageMultisampleANGLEFn(
10927 GLenum internalformat
,
10930 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleANGLE() "
10931 "without current GL context";
10932 LOG(ERROR
) << "Trying to call glRenderbufferStorageMultisampleANGLE() "
10933 "without current GL context";
10936 void NoContextGLApi::glRenderbufferStorageMultisampleEXTFn(
10939 GLenum internalformat
,
10942 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleEXT() "
10943 "without current GL context";
10944 LOG(ERROR
) << "Trying to call glRenderbufferStorageMultisampleEXT() without "
10945 "current GL context";
10948 void NoContextGLApi::glRenderbufferStorageMultisampleIMGFn(
10951 GLenum internalformat
,
10954 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleIMG() "
10955 "without current GL context";
10956 LOG(ERROR
) << "Trying to call glRenderbufferStorageMultisampleIMG() without "
10957 "current GL context";
10960 void NoContextGLApi::glResumeTransformFeedbackFn(void) {
10961 NOTREACHED() << "Trying to call glResumeTransformFeedback() without current "
10963 LOG(ERROR
) << "Trying to call glResumeTransformFeedback() without current GL "
10967 void NoContextGLApi::glSampleCoverageFn(GLclampf value
, GLboolean invert
) {
10969 << "Trying to call glSampleCoverage() without current GL context";
10970 LOG(ERROR
) << "Trying to call glSampleCoverage() without current GL context";
10973 void NoContextGLApi::glSamplerParameterfFn(GLuint sampler
,
10977 << "Trying to call glSamplerParameterf() without current GL context";
10979 << "Trying to call glSamplerParameterf() without current GL context";
10982 void NoContextGLApi::glSamplerParameterfvFn(GLuint sampler
,
10984 const GLfloat
* params
) {
10986 << "Trying to call glSamplerParameterfv() without current GL context";
10988 << "Trying to call glSamplerParameterfv() without current GL context";
10991 void NoContextGLApi::glSamplerParameteriFn(GLuint sampler
,
10995 << "Trying to call glSamplerParameteri() without current GL context";
10997 << "Trying to call glSamplerParameteri() without current GL context";
11000 void NoContextGLApi::glSamplerParameterivFn(GLuint sampler
,
11002 const GLint
* params
) {
11004 << "Trying to call glSamplerParameteriv() without current GL context";
11006 << "Trying to call glSamplerParameteriv() without current GL context";
11009 void NoContextGLApi::glScissorFn(GLint x
,
11013 NOTREACHED() << "Trying to call glScissor() without current GL context";
11014 LOG(ERROR
) << "Trying to call glScissor() without current GL context";
11017 void NoContextGLApi::glSetFenceAPPLEFn(GLuint fence
) {
11018 NOTREACHED() << "Trying to call glSetFenceAPPLE() without current GL context";
11019 LOG(ERROR
) << "Trying to call glSetFenceAPPLE() without current GL context";
11022 void NoContextGLApi::glSetFenceNVFn(GLuint fence
, GLenum condition
) {
11023 NOTREACHED() << "Trying to call glSetFenceNV() without current GL context";
11024 LOG(ERROR
) << "Trying to call glSetFenceNV() without current GL context";
11027 void NoContextGLApi::glShaderBinaryFn(GLsizei n
,
11028 const GLuint
* shaders
,
11029 GLenum binaryformat
,
11030 const void* binary
,
11032 NOTREACHED() << "Trying to call glShaderBinary() without current GL context";
11033 LOG(ERROR
) << "Trying to call glShaderBinary() without current GL context";
11036 void NoContextGLApi::glShaderSourceFn(GLuint shader
,
11038 const char* const* str
,
11039 const GLint
* length
) {
11040 NOTREACHED() << "Trying to call glShaderSource() without current GL context";
11041 LOG(ERROR
) << "Trying to call glShaderSource() without current GL context";
11044 void NoContextGLApi::glStencilFuncFn(GLenum func
, GLint ref
, GLuint mask
) {
11045 NOTREACHED() << "Trying to call glStencilFunc() without current GL context";
11046 LOG(ERROR
) << "Trying to call glStencilFunc() without current GL context";
11049 void NoContextGLApi::glStencilFuncSeparateFn(GLenum face
,
11054 << "Trying to call glStencilFuncSeparate() without current GL context";
11056 << "Trying to call glStencilFuncSeparate() without current GL context";
11059 void NoContextGLApi::glStencilMaskFn(GLuint mask
) {
11060 NOTREACHED() << "Trying to call glStencilMask() without current GL context";
11061 LOG(ERROR
) << "Trying to call glStencilMask() without current GL context";
11064 void NoContextGLApi::glStencilMaskSeparateFn(GLenum face
, GLuint mask
) {
11066 << "Trying to call glStencilMaskSeparate() without current GL context";
11068 << "Trying to call glStencilMaskSeparate() without current GL context";
11071 void NoContextGLApi::glStencilOpFn(GLenum fail
, GLenum zfail
, GLenum zpass
) {
11072 NOTREACHED() << "Trying to call glStencilOp() without current GL context";
11073 LOG(ERROR
) << "Trying to call glStencilOp() without current GL context";
11076 void NoContextGLApi::glStencilOpSeparateFn(GLenum face
,
11081 << "Trying to call glStencilOpSeparate() without current GL context";
11083 << "Trying to call glStencilOpSeparate() without current GL context";
11086 GLboolean
NoContextGLApi::glTestFenceAPPLEFn(GLuint fence
) {
11088 << "Trying to call glTestFenceAPPLE() without current GL context";
11089 LOG(ERROR
) << "Trying to call glTestFenceAPPLE() without current GL context";
11093 GLboolean
NoContextGLApi::glTestFenceNVFn(GLuint fence
) {
11094 NOTREACHED() << "Trying to call glTestFenceNV() without current GL context";
11095 LOG(ERROR
) << "Trying to call glTestFenceNV() without current GL context";
11099 void NoContextGLApi::glTexImage2DFn(GLenum target
,
11101 GLint internalformat
,
11107 const void* pixels
) {
11108 NOTREACHED() << "Trying to call glTexImage2D() without current GL context";
11109 LOG(ERROR
) << "Trying to call glTexImage2D() without current GL context";
11112 void NoContextGLApi::glTexImage3DFn(GLenum target
,
11114 GLint internalformat
,
11121 const void* pixels
) {
11122 NOTREACHED() << "Trying to call glTexImage3D() without current GL context";
11123 LOG(ERROR
) << "Trying to call glTexImage3D() without current GL context";
11126 void NoContextGLApi::glTexParameterfFn(GLenum target
,
11129 NOTREACHED() << "Trying to call glTexParameterf() without current GL context";
11130 LOG(ERROR
) << "Trying to call glTexParameterf() without current GL context";
11133 void NoContextGLApi::glTexParameterfvFn(GLenum target
,
11135 const GLfloat
* params
) {
11137 << "Trying to call glTexParameterfv() without current GL context";
11138 LOG(ERROR
) << "Trying to call glTexParameterfv() without current GL context";
11141 void NoContextGLApi::glTexParameteriFn(GLenum target
,
11144 NOTREACHED() << "Trying to call glTexParameteri() without current GL context";
11145 LOG(ERROR
) << "Trying to call glTexParameteri() without current GL context";
11148 void NoContextGLApi::glTexParameterivFn(GLenum target
,
11150 const GLint
* params
) {
11152 << "Trying to call glTexParameteriv() without current GL context";
11153 LOG(ERROR
) << "Trying to call glTexParameteriv() without current GL context";
11156 void NoContextGLApi::glTexStorage2DEXTFn(GLenum target
,
11158 GLenum internalformat
,
11162 << "Trying to call glTexStorage2DEXT() without current GL context";
11163 LOG(ERROR
) << "Trying to call glTexStorage2DEXT() without current GL context";
11166 void NoContextGLApi::glTexStorage3DFn(GLenum target
,
11168 GLenum internalformat
,
11172 NOTREACHED() << "Trying to call glTexStorage3D() without current GL context";
11173 LOG(ERROR
) << "Trying to call glTexStorage3D() without current GL context";
11176 void NoContextGLApi::glTexSubImage2DFn(GLenum target
,
11184 const void* pixels
) {
11185 NOTREACHED() << "Trying to call glTexSubImage2D() without current GL context";
11186 LOG(ERROR
) << "Trying to call glTexSubImage2D() without current GL context";
11189 void NoContextGLApi::glTransformFeedbackVaryingsFn(GLuint program
,
11191 const char* const* varyings
,
11192 GLenum bufferMode
) {
11193 NOTREACHED() << "Trying to call glTransformFeedbackVaryings() without "
11194 "current GL context";
11195 LOG(ERROR
) << "Trying to call glTransformFeedbackVaryings() without current "
11199 void NoContextGLApi::glUniform1fFn(GLint location
, GLfloat x
) {
11200 NOTREACHED() << "Trying to call glUniform1f() without current GL context";
11201 LOG(ERROR
) << "Trying to call glUniform1f() without current GL context";
11204 void NoContextGLApi::glUniform1fvFn(GLint location
,
11206 const GLfloat
* v
) {
11207 NOTREACHED() << "Trying to call glUniform1fv() without current GL context";
11208 LOG(ERROR
) << "Trying to call glUniform1fv() without current GL context";
11211 void NoContextGLApi::glUniform1iFn(GLint location
, GLint x
) {
11212 NOTREACHED() << "Trying to call glUniform1i() without current GL context";
11213 LOG(ERROR
) << "Trying to call glUniform1i() without current GL context";
11216 void NoContextGLApi::glUniform1ivFn(GLint location
,
11219 NOTREACHED() << "Trying to call glUniform1iv() without current GL context";
11220 LOG(ERROR
) << "Trying to call glUniform1iv() without current GL context";
11223 void NoContextGLApi::glUniform1uiFn(GLint location
, GLuint v0
) {
11224 NOTREACHED() << "Trying to call glUniform1ui() without current GL context";
11225 LOG(ERROR
) << "Trying to call glUniform1ui() without current GL context";
11228 void NoContextGLApi::glUniform1uivFn(GLint location
,
11231 NOTREACHED() << "Trying to call glUniform1uiv() without current GL context";
11232 LOG(ERROR
) << "Trying to call glUniform1uiv() without current GL context";
11235 void NoContextGLApi::glUniform2fFn(GLint location
, GLfloat x
, GLfloat y
) {
11236 NOTREACHED() << "Trying to call glUniform2f() without current GL context";
11237 LOG(ERROR
) << "Trying to call glUniform2f() without current GL context";
11240 void NoContextGLApi::glUniform2fvFn(GLint location
,
11242 const GLfloat
* v
) {
11243 NOTREACHED() << "Trying to call glUniform2fv() without current GL context";
11244 LOG(ERROR
) << "Trying to call glUniform2fv() without current GL context";
11247 void NoContextGLApi::glUniform2iFn(GLint location
, GLint x
, GLint y
) {
11248 NOTREACHED() << "Trying to call glUniform2i() without current GL context";
11249 LOG(ERROR
) << "Trying to call glUniform2i() without current GL context";
11252 void NoContextGLApi::glUniform2ivFn(GLint location
,
11255 NOTREACHED() << "Trying to call glUniform2iv() without current GL context";
11256 LOG(ERROR
) << "Trying to call glUniform2iv() without current GL context";
11259 void NoContextGLApi::glUniform2uiFn(GLint location
, GLuint v0
, GLuint v1
) {
11260 NOTREACHED() << "Trying to call glUniform2ui() without current GL context";
11261 LOG(ERROR
) << "Trying to call glUniform2ui() without current GL context";
11264 void NoContextGLApi::glUniform2uivFn(GLint location
,
11267 NOTREACHED() << "Trying to call glUniform2uiv() without current GL context";
11268 LOG(ERROR
) << "Trying to call glUniform2uiv() without current GL context";
11271 void NoContextGLApi::glUniform3fFn(GLint location
,
11275 NOTREACHED() << "Trying to call glUniform3f() without current GL context";
11276 LOG(ERROR
) << "Trying to call glUniform3f() without current GL context";
11279 void NoContextGLApi::glUniform3fvFn(GLint location
,
11281 const GLfloat
* v
) {
11282 NOTREACHED() << "Trying to call glUniform3fv() without current GL context";
11283 LOG(ERROR
) << "Trying to call glUniform3fv() without current GL context";
11286 void NoContextGLApi::glUniform3iFn(GLint location
, GLint x
, GLint y
, GLint z
) {
11287 NOTREACHED() << "Trying to call glUniform3i() without current GL context";
11288 LOG(ERROR
) << "Trying to call glUniform3i() without current GL context";
11291 void NoContextGLApi::glUniform3ivFn(GLint location
,
11294 NOTREACHED() << "Trying to call glUniform3iv() without current GL context";
11295 LOG(ERROR
) << "Trying to call glUniform3iv() without current GL context";
11298 void NoContextGLApi::glUniform3uiFn(GLint location
,
11302 NOTREACHED() << "Trying to call glUniform3ui() without current GL context";
11303 LOG(ERROR
) << "Trying to call glUniform3ui() without current GL context";
11306 void NoContextGLApi::glUniform3uivFn(GLint location
,
11309 NOTREACHED() << "Trying to call glUniform3uiv() without current GL context";
11310 LOG(ERROR
) << "Trying to call glUniform3uiv() without current GL context";
11313 void NoContextGLApi::glUniform4fFn(GLint location
,
11318 NOTREACHED() << "Trying to call glUniform4f() without current GL context";
11319 LOG(ERROR
) << "Trying to call glUniform4f() without current GL context";
11322 void NoContextGLApi::glUniform4fvFn(GLint location
,
11324 const GLfloat
* v
) {
11325 NOTREACHED() << "Trying to call glUniform4fv() without current GL context";
11326 LOG(ERROR
) << "Trying to call glUniform4fv() without current GL context";
11329 void NoContextGLApi::glUniform4iFn(GLint location
,
11334 NOTREACHED() << "Trying to call glUniform4i() without current GL context";
11335 LOG(ERROR
) << "Trying to call glUniform4i() without current GL context";
11338 void NoContextGLApi::glUniform4ivFn(GLint location
,
11341 NOTREACHED() << "Trying to call glUniform4iv() without current GL context";
11342 LOG(ERROR
) << "Trying to call glUniform4iv() without current GL context";
11345 void NoContextGLApi::glUniform4uiFn(GLint location
,
11350 NOTREACHED() << "Trying to call glUniform4ui() without current GL context";
11351 LOG(ERROR
) << "Trying to call glUniform4ui() without current GL context";
11354 void NoContextGLApi::glUniform4uivFn(GLint location
,
11357 NOTREACHED() << "Trying to call glUniform4uiv() without current GL context";
11358 LOG(ERROR
) << "Trying to call glUniform4uiv() without current GL context";
11361 void NoContextGLApi::glUniformBlockBindingFn(GLuint program
,
11362 GLuint uniformBlockIndex
,
11363 GLuint uniformBlockBinding
) {
11365 << "Trying to call glUniformBlockBinding() without current GL context";
11367 << "Trying to call glUniformBlockBinding() without current GL context";
11370 void NoContextGLApi::glUniformMatrix2fvFn(GLint location
,
11372 GLboolean transpose
,
11373 const GLfloat
* value
) {
11375 << "Trying to call glUniformMatrix2fv() without current GL context";
11377 << "Trying to call glUniformMatrix2fv() without current GL context";
11380 void NoContextGLApi::glUniformMatrix2x3fvFn(GLint location
,
11382 GLboolean transpose
,
11383 const GLfloat
* value
) {
11385 << "Trying to call glUniformMatrix2x3fv() without current GL context";
11387 << "Trying to call glUniformMatrix2x3fv() without current GL context";
11390 void NoContextGLApi::glUniformMatrix2x4fvFn(GLint location
,
11392 GLboolean transpose
,
11393 const GLfloat
* value
) {
11395 << "Trying to call glUniformMatrix2x4fv() without current GL context";
11397 << "Trying to call glUniformMatrix2x4fv() without current GL context";
11400 void NoContextGLApi::glUniformMatrix3fvFn(GLint location
,
11402 GLboolean transpose
,
11403 const GLfloat
* value
) {
11405 << "Trying to call glUniformMatrix3fv() without current GL context";
11407 << "Trying to call glUniformMatrix3fv() without current GL context";
11410 void NoContextGLApi::glUniformMatrix3x2fvFn(GLint location
,
11412 GLboolean transpose
,
11413 const GLfloat
* value
) {
11415 << "Trying to call glUniformMatrix3x2fv() without current GL context";
11417 << "Trying to call glUniformMatrix3x2fv() without current GL context";
11420 void NoContextGLApi::glUniformMatrix3x4fvFn(GLint location
,
11422 GLboolean transpose
,
11423 const GLfloat
* value
) {
11425 << "Trying to call glUniformMatrix3x4fv() without current GL context";
11427 << "Trying to call glUniformMatrix3x4fv() without current GL context";
11430 void NoContextGLApi::glUniformMatrix4fvFn(GLint location
,
11432 GLboolean transpose
,
11433 const GLfloat
* value
) {
11435 << "Trying to call glUniformMatrix4fv() without current GL context";
11437 << "Trying to call glUniformMatrix4fv() without current GL context";
11440 void NoContextGLApi::glUniformMatrix4x2fvFn(GLint location
,
11442 GLboolean transpose
,
11443 const GLfloat
* value
) {
11445 << "Trying to call glUniformMatrix4x2fv() without current GL context";
11447 << "Trying to call glUniformMatrix4x2fv() without current GL context";
11450 void NoContextGLApi::glUniformMatrix4x3fvFn(GLint location
,
11452 GLboolean transpose
,
11453 const GLfloat
* value
) {
11455 << "Trying to call glUniformMatrix4x3fv() without current GL context";
11457 << "Trying to call glUniformMatrix4x3fv() without current GL context";
11460 GLboolean
NoContextGLApi::glUnmapBufferFn(GLenum target
) {
11461 NOTREACHED() << "Trying to call glUnmapBuffer() without current GL context";
11462 LOG(ERROR
) << "Trying to call glUnmapBuffer() without current GL context";
11466 void NoContextGLApi::glUseProgramFn(GLuint program
) {
11467 NOTREACHED() << "Trying to call glUseProgram() without current GL context";
11468 LOG(ERROR
) << "Trying to call glUseProgram() without current GL context";
11471 void NoContextGLApi::glValidateProgramFn(GLuint program
) {
11473 << "Trying to call glValidateProgram() without current GL context";
11474 LOG(ERROR
) << "Trying to call glValidateProgram() without current GL context";
11477 void NoContextGLApi::glVertexAttrib1fFn(GLuint indx
, GLfloat x
) {
11479 << "Trying to call glVertexAttrib1f() without current GL context";
11480 LOG(ERROR
) << "Trying to call glVertexAttrib1f() without current GL context";
11483 void NoContextGLApi::glVertexAttrib1fvFn(GLuint indx
, const GLfloat
* values
) {
11485 << "Trying to call glVertexAttrib1fv() without current GL context";
11486 LOG(ERROR
) << "Trying to call glVertexAttrib1fv() without current GL context";
11489 void NoContextGLApi::glVertexAttrib2fFn(GLuint indx
, GLfloat x
, GLfloat y
) {
11491 << "Trying to call glVertexAttrib2f() without current GL context";
11492 LOG(ERROR
) << "Trying to call glVertexAttrib2f() without current GL context";
11495 void NoContextGLApi::glVertexAttrib2fvFn(GLuint indx
, const GLfloat
* values
) {
11497 << "Trying to call glVertexAttrib2fv() without current GL context";
11498 LOG(ERROR
) << "Trying to call glVertexAttrib2fv() without current GL context";
11501 void NoContextGLApi::glVertexAttrib3fFn(GLuint indx
,
11506 << "Trying to call glVertexAttrib3f() without current GL context";
11507 LOG(ERROR
) << "Trying to call glVertexAttrib3f() without current GL context";
11510 void NoContextGLApi::glVertexAttrib3fvFn(GLuint indx
, const GLfloat
* values
) {
11512 << "Trying to call glVertexAttrib3fv() without current GL context";
11513 LOG(ERROR
) << "Trying to call glVertexAttrib3fv() without current GL context";
11516 void NoContextGLApi::glVertexAttrib4fFn(GLuint indx
,
11522 << "Trying to call glVertexAttrib4f() without current GL context";
11523 LOG(ERROR
) << "Trying to call glVertexAttrib4f() without current GL context";
11526 void NoContextGLApi::glVertexAttrib4fvFn(GLuint indx
, const GLfloat
* values
) {
11528 << "Trying to call glVertexAttrib4fv() without current GL context";
11529 LOG(ERROR
) << "Trying to call glVertexAttrib4fv() without current GL context";
11532 void NoContextGLApi::glVertexAttribDivisorANGLEFn(GLuint index
,
11534 NOTREACHED() << "Trying to call glVertexAttribDivisorANGLE() without current "
11536 LOG(ERROR
) << "Trying to call glVertexAttribDivisorANGLE() without current "
11540 void NoContextGLApi::glVertexAttribI4iFn(GLuint indx
,
11546 << "Trying to call glVertexAttribI4i() without current GL context";
11547 LOG(ERROR
) << "Trying to call glVertexAttribI4i() without current GL context";
11550 void NoContextGLApi::glVertexAttribI4ivFn(GLuint indx
, const GLint
* values
) {
11552 << "Trying to call glVertexAttribI4iv() without current GL context";
11554 << "Trying to call glVertexAttribI4iv() without current GL context";
11557 void NoContextGLApi::glVertexAttribI4uiFn(GLuint indx
,
11563 << "Trying to call glVertexAttribI4ui() without current GL context";
11565 << "Trying to call glVertexAttribI4ui() without current GL context";
11568 void NoContextGLApi::glVertexAttribI4uivFn(GLuint indx
, const GLuint
* values
) {
11570 << "Trying to call glVertexAttribI4uiv() without current GL context";
11572 << "Trying to call glVertexAttribI4uiv() without current GL context";
11575 void NoContextGLApi::glVertexAttribIPointerFn(GLuint indx
,
11581 << "Trying to call glVertexAttribIPointer() without current GL context";
11583 << "Trying to call glVertexAttribIPointer() without current GL context";
11586 void NoContextGLApi::glVertexAttribPointerFn(GLuint indx
,
11589 GLboolean normalized
,
11593 << "Trying to call glVertexAttribPointer() without current GL context";
11595 << "Trying to call glVertexAttribPointer() without current GL context";
11598 void NoContextGLApi::glViewportFn(GLint x
,
11602 NOTREACHED() << "Trying to call glViewport() without current GL context";
11603 LOG(ERROR
) << "Trying to call glViewport() without current GL context";
11606 GLenum
NoContextGLApi::glWaitSyncFn(GLsync sync
,
11608 GLuint64 timeout
) {
11609 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
11610 LOG(ERROR
) << "Trying to call glWaitSync() without current GL context";
11611 return static_cast<GLenum
>(0);