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"));
29 fn
.glApplyFramebufferAttachmentCMAAINTELFn
= 0;
31 reinterpret_cast<glAttachShaderProc
>(GetGLProcAddress("glAttachShader"));
32 fn
.glBeginQueryFn
= 0;
33 fn
.glBeginTransformFeedbackFn
= 0;
34 fn
.glBindAttribLocationFn
= reinterpret_cast<glBindAttribLocationProc
>(
35 GetGLProcAddress("glBindAttribLocation"));
37 reinterpret_cast<glBindBufferProc
>(GetGLProcAddress("glBindBuffer"));
38 fn
.glBindBufferBaseFn
= 0;
39 fn
.glBindBufferRangeFn
= 0;
40 fn
.glBindFragDataLocationFn
= 0;
41 fn
.glBindFragDataLocationIndexedFn
= 0;
42 fn
.glBindFramebufferEXTFn
= 0;
43 fn
.glBindRenderbufferEXTFn
= 0;
44 fn
.glBindSamplerFn
= 0;
46 reinterpret_cast<glBindTextureProc
>(GetGLProcAddress("glBindTexture"));
47 fn
.glBindTransformFeedbackFn
= 0;
48 fn
.glBindVertexArrayOESFn
= 0;
49 fn
.glBlendBarrierKHRFn
= 0;
51 reinterpret_cast<glBlendColorProc
>(GetGLProcAddress("glBlendColor"));
52 fn
.glBlendEquationFn
= reinterpret_cast<glBlendEquationProc
>(
53 GetGLProcAddress("glBlendEquation"));
54 fn
.glBlendEquationSeparateFn
= reinterpret_cast<glBlendEquationSeparateProc
>(
55 GetGLProcAddress("glBlendEquationSeparate"));
57 reinterpret_cast<glBlendFuncProc
>(GetGLProcAddress("glBlendFunc"));
58 fn
.glBlendFuncSeparateFn
= reinterpret_cast<glBlendFuncSeparateProc
>(
59 GetGLProcAddress("glBlendFuncSeparate"));
60 fn
.glBlitFramebufferFn
= 0;
61 fn
.glBlitFramebufferANGLEFn
= 0;
62 fn
.glBlitFramebufferEXTFn
= 0;
64 reinterpret_cast<glBufferDataProc
>(GetGLProcAddress("glBufferData"));
65 fn
.glBufferSubDataFn
= reinterpret_cast<glBufferSubDataProc
>(
66 GetGLProcAddress("glBufferSubData"));
67 fn
.glCheckFramebufferStatusEXTFn
= 0;
68 fn
.glClearFn
= reinterpret_cast<glClearProc
>(GetGLProcAddress("glClear"));
69 fn
.glClearBufferfiFn
= 0;
70 fn
.glClearBufferfvFn
= 0;
71 fn
.glClearBufferivFn
= 0;
72 fn
.glClearBufferuivFn
= 0;
74 reinterpret_cast<glClearColorProc
>(GetGLProcAddress("glClearColor"));
76 reinterpret_cast<glClearDepthProc
>(GetGLProcAddress("glClearDepth"));
77 fn
.glClearDepthfFn
= 0;
79 reinterpret_cast<glClearStencilProc
>(GetGLProcAddress("glClearStencil"));
80 fn
.glClientWaitSyncFn
= 0;
82 reinterpret_cast<glColorMaskProc
>(GetGLProcAddress("glColorMask"));
83 fn
.glCompileShaderFn
= reinterpret_cast<glCompileShaderProc
>(
84 GetGLProcAddress("glCompileShader"));
85 fn
.glCompressedTexImage2DFn
= reinterpret_cast<glCompressedTexImage2DProc
>(
86 GetGLProcAddress("glCompressedTexImage2D"));
87 fn
.glCompressedTexImage3DFn
= 0;
88 fn
.glCompressedTexSubImage2DFn
=
89 reinterpret_cast<glCompressedTexSubImage2DProc
>(
90 GetGLProcAddress("glCompressedTexSubImage2D"));
91 fn
.glCompressedTexSubImage3DFn
= 0;
92 fn
.glCopyBufferSubDataFn
= 0;
93 fn
.glCopyTexImage2DFn
= reinterpret_cast<glCopyTexImage2DProc
>(
94 GetGLProcAddress("glCopyTexImage2D"));
95 fn
.glCopyTexSubImage2DFn
= reinterpret_cast<glCopyTexSubImage2DProc
>(
96 GetGLProcAddress("glCopyTexSubImage2D"));
97 fn
.glCopyTexSubImage3DFn
= 0;
98 fn
.glCoverFillPathNVFn
= 0;
99 fn
.glCoverStrokePathNVFn
= 0;
100 fn
.glCreateProgramFn
= reinterpret_cast<glCreateProgramProc
>(
101 GetGLProcAddress("glCreateProgram"));
102 fn
.glCreateShaderFn
=
103 reinterpret_cast<glCreateShaderProc
>(GetGLProcAddress("glCreateShader"));
105 reinterpret_cast<glCullFaceProc
>(GetGLProcAddress("glCullFace"));
106 fn
.glDeleteBuffersARBFn
= reinterpret_cast<glDeleteBuffersARBProc
>(
107 GetGLProcAddress("glDeleteBuffers"));
108 fn
.glDeleteFencesAPPLEFn
= 0;
109 fn
.glDeleteFencesNVFn
= 0;
110 fn
.glDeleteFramebuffersEXTFn
= 0;
111 fn
.glDeletePathsNVFn
= 0;
112 fn
.glDeleteProgramFn
= reinterpret_cast<glDeleteProgramProc
>(
113 GetGLProcAddress("glDeleteProgram"));
114 fn
.glDeleteQueriesFn
= 0;
115 fn
.glDeleteRenderbuffersEXTFn
= 0;
116 fn
.glDeleteSamplersFn
= 0;
117 fn
.glDeleteShaderFn
=
118 reinterpret_cast<glDeleteShaderProc
>(GetGLProcAddress("glDeleteShader"));
119 fn
.glDeleteSyncFn
= 0;
120 fn
.glDeleteTexturesFn
= reinterpret_cast<glDeleteTexturesProc
>(
121 GetGLProcAddress("glDeleteTextures"));
122 fn
.glDeleteTransformFeedbacksFn
= 0;
123 fn
.glDeleteVertexArraysOESFn
= 0;
125 reinterpret_cast<glDepthFuncProc
>(GetGLProcAddress("glDepthFunc"));
127 reinterpret_cast<glDepthMaskProc
>(GetGLProcAddress("glDepthMask"));
129 reinterpret_cast<glDepthRangeProc
>(GetGLProcAddress("glDepthRange"));
130 fn
.glDepthRangefFn
= 0;
131 fn
.glDetachShaderFn
=
132 reinterpret_cast<glDetachShaderProc
>(GetGLProcAddress("glDetachShader"));
134 reinterpret_cast<glDisableProc
>(GetGLProcAddress("glDisable"));
135 fn
.glDisableVertexAttribArrayFn
=
136 reinterpret_cast<glDisableVertexAttribArrayProc
>(
137 GetGLProcAddress("glDisableVertexAttribArray"));
138 fn
.glDiscardFramebufferEXTFn
= 0;
140 reinterpret_cast<glDrawArraysProc
>(GetGLProcAddress("glDrawArrays"));
141 fn
.glDrawArraysInstancedANGLEFn
= 0;
142 fn
.glDrawBufferFn
= 0;
143 fn
.glDrawBuffersARBFn
= 0;
144 fn
.glDrawElementsFn
=
145 reinterpret_cast<glDrawElementsProc
>(GetGLProcAddress("glDrawElements"));
146 fn
.glDrawElementsInstancedANGLEFn
= 0;
147 fn
.glDrawRangeElementsFn
= 0;
148 fn
.glEGLImageTargetRenderbufferStorageOESFn
= 0;
149 fn
.glEGLImageTargetTexture2DOESFn
= 0;
150 fn
.glEnableFn
= reinterpret_cast<glEnableProc
>(GetGLProcAddress("glEnable"));
151 fn
.glEnableVertexAttribArrayFn
=
152 reinterpret_cast<glEnableVertexAttribArrayProc
>(
153 GetGLProcAddress("glEnableVertexAttribArray"));
155 fn
.glEndTransformFeedbackFn
= 0;
156 fn
.glFenceSyncFn
= 0;
157 fn
.glFinishFn
= reinterpret_cast<glFinishProc
>(GetGLProcAddress("glFinish"));
158 fn
.glFinishFenceAPPLEFn
= 0;
159 fn
.glFinishFenceNVFn
= 0;
160 fn
.glFlushFn
= reinterpret_cast<glFlushProc
>(GetGLProcAddress("glFlush"));
161 fn
.glFlushMappedBufferRangeFn
= 0;
162 fn
.glFramebufferRenderbufferEXTFn
= 0;
163 fn
.glFramebufferTexture2DEXTFn
= 0;
164 fn
.glFramebufferTexture2DMultisampleEXTFn
= 0;
165 fn
.glFramebufferTexture2DMultisampleIMGFn
= 0;
166 fn
.glFramebufferTextureLayerFn
= 0;
168 reinterpret_cast<glFrontFaceProc
>(GetGLProcAddress("glFrontFace"));
169 fn
.glGenBuffersARBFn
=
170 reinterpret_cast<glGenBuffersARBProc
>(GetGLProcAddress("glGenBuffers"));
171 fn
.glGenerateMipmapEXTFn
= 0;
172 fn
.glGenFencesAPPLEFn
= 0;
173 fn
.glGenFencesNVFn
= 0;
174 fn
.glGenFramebuffersEXTFn
= 0;
175 fn
.glGenPathsNVFn
= 0;
176 fn
.glGenQueriesFn
= 0;
177 fn
.glGenRenderbuffersEXTFn
= 0;
178 fn
.glGenSamplersFn
= 0;
180 reinterpret_cast<glGenTexturesProc
>(GetGLProcAddress("glGenTextures"));
181 fn
.glGenTransformFeedbacksFn
= 0;
182 fn
.glGenVertexArraysOESFn
= 0;
183 fn
.glGetActiveAttribFn
= reinterpret_cast<glGetActiveAttribProc
>(
184 GetGLProcAddress("glGetActiveAttrib"));
185 fn
.glGetActiveUniformFn
= reinterpret_cast<glGetActiveUniformProc
>(
186 GetGLProcAddress("glGetActiveUniform"));
187 fn
.glGetActiveUniformBlockivFn
= 0;
188 fn
.glGetActiveUniformBlockNameFn
= 0;
189 fn
.glGetActiveUniformsivFn
= 0;
190 fn
.glGetAttachedShadersFn
= reinterpret_cast<glGetAttachedShadersProc
>(
191 GetGLProcAddress("glGetAttachedShaders"));
192 fn
.glGetAttribLocationFn
= reinterpret_cast<glGetAttribLocationProc
>(
193 GetGLProcAddress("glGetAttribLocation"));
195 reinterpret_cast<glGetBooleanvProc
>(GetGLProcAddress("glGetBooleanv"));
196 fn
.glGetBufferParameterivFn
= reinterpret_cast<glGetBufferParameterivProc
>(
197 GetGLProcAddress("glGetBufferParameteriv"));
199 reinterpret_cast<glGetErrorProc
>(GetGLProcAddress("glGetError"));
200 fn
.glGetFenceivNVFn
= 0;
202 reinterpret_cast<glGetFloatvProc
>(GetGLProcAddress("glGetFloatv"));
203 fn
.glGetFragDataLocationFn
= 0;
204 fn
.glGetFramebufferAttachmentParameterivEXTFn
= 0;
205 fn
.glGetGraphicsResetStatusARBFn
= 0;
206 fn
.glGetInteger64i_vFn
= 0;
207 fn
.glGetInteger64vFn
= 0;
208 fn
.glGetIntegeri_vFn
= 0;
210 reinterpret_cast<glGetIntegervProc
>(GetGLProcAddress("glGetIntegerv"));
211 fn
.glGetInternalformativFn
= 0;
212 fn
.glGetProgramBinaryFn
= 0;
213 fn
.glGetProgramInfoLogFn
= reinterpret_cast<glGetProgramInfoLogProc
>(
214 GetGLProcAddress("glGetProgramInfoLog"));
215 fn
.glGetProgramivFn
=
216 reinterpret_cast<glGetProgramivProc
>(GetGLProcAddress("glGetProgramiv"));
217 fn
.glGetProgramResourceLocationFn
= 0;
218 fn
.glGetQueryivFn
= 0;
219 fn
.glGetQueryObjecti64vFn
= 0;
220 fn
.glGetQueryObjectivFn
= 0;
221 fn
.glGetQueryObjectui64vFn
= 0;
222 fn
.glGetQueryObjectuivFn
= 0;
223 fn
.glGetRenderbufferParameterivEXTFn
= 0;
224 fn
.glGetSamplerParameterfvFn
= 0;
225 fn
.glGetSamplerParameterivFn
= 0;
226 fn
.glGetShaderInfoLogFn
= reinterpret_cast<glGetShaderInfoLogProc
>(
227 GetGLProcAddress("glGetShaderInfoLog"));
229 reinterpret_cast<glGetShaderivProc
>(GetGLProcAddress("glGetShaderiv"));
230 fn
.glGetShaderPrecisionFormatFn
= 0;
231 fn
.glGetShaderSourceFn
= reinterpret_cast<glGetShaderSourceProc
>(
232 GetGLProcAddress("glGetShaderSource"));
234 reinterpret_cast<glGetStringProc
>(GetGLProcAddress("glGetString"));
236 reinterpret_cast<glGetStringiProc
>(GetGLProcAddress("glGetStringi"));
237 fn
.glGetSyncivFn
= 0;
238 fn
.glGetTexLevelParameterfvFn
= 0;
239 fn
.glGetTexLevelParameterivFn
= 0;
240 fn
.glGetTexParameterfvFn
= reinterpret_cast<glGetTexParameterfvProc
>(
241 GetGLProcAddress("glGetTexParameterfv"));
242 fn
.glGetTexParameterivFn
= reinterpret_cast<glGetTexParameterivProc
>(
243 GetGLProcAddress("glGetTexParameteriv"));
244 fn
.glGetTransformFeedbackVaryingFn
= 0;
245 fn
.glGetTranslatedShaderSourceANGLEFn
= 0;
246 fn
.glGetUniformBlockIndexFn
= 0;
247 fn
.glGetUniformfvFn
=
248 reinterpret_cast<glGetUniformfvProc
>(GetGLProcAddress("glGetUniformfv"));
249 fn
.glGetUniformIndicesFn
= 0;
250 fn
.glGetUniformivFn
=
251 reinterpret_cast<glGetUniformivProc
>(GetGLProcAddress("glGetUniformiv"));
252 fn
.glGetUniformLocationFn
= reinterpret_cast<glGetUniformLocationProc
>(
253 GetGLProcAddress("glGetUniformLocation"));
254 fn
.glGetUniformuivFn
= 0;
255 fn
.glGetVertexAttribfvFn
= reinterpret_cast<glGetVertexAttribfvProc
>(
256 GetGLProcAddress("glGetVertexAttribfv"));
257 fn
.glGetVertexAttribivFn
= reinterpret_cast<glGetVertexAttribivProc
>(
258 GetGLProcAddress("glGetVertexAttribiv"));
259 fn
.glGetVertexAttribPointervFn
=
260 reinterpret_cast<glGetVertexAttribPointervProc
>(
261 GetGLProcAddress("glGetVertexAttribPointerv"));
262 fn
.glHintFn
= reinterpret_cast<glHintProc
>(GetGLProcAddress("glHint"));
263 fn
.glInsertEventMarkerEXTFn
= 0;
264 fn
.glInvalidateFramebufferFn
= 0;
265 fn
.glInvalidateSubFramebufferFn
= 0;
267 reinterpret_cast<glIsBufferProc
>(GetGLProcAddress("glIsBuffer"));
269 reinterpret_cast<glIsEnabledProc
>(GetGLProcAddress("glIsEnabled"));
270 fn
.glIsFenceAPPLEFn
= 0;
271 fn
.glIsFenceNVFn
= 0;
272 fn
.glIsFramebufferEXTFn
= 0;
275 reinterpret_cast<glIsProgramProc
>(GetGLProcAddress("glIsProgram"));
277 fn
.glIsRenderbufferEXTFn
= 0;
278 fn
.glIsSamplerFn
= 0;
280 reinterpret_cast<glIsShaderProc
>(GetGLProcAddress("glIsShader"));
283 reinterpret_cast<glIsTextureProc
>(GetGLProcAddress("glIsTexture"));
284 fn
.glIsTransformFeedbackFn
= 0;
285 fn
.glIsVertexArrayOESFn
= 0;
287 reinterpret_cast<glLineWidthProc
>(GetGLProcAddress("glLineWidth"));
289 reinterpret_cast<glLinkProgramProc
>(GetGLProcAddress("glLinkProgram"));
290 fn
.glMapBufferFn
= 0;
291 fn
.glMapBufferRangeFn
= 0;
292 fn
.glMatrixLoadfEXTFn
= 0;
293 fn
.glMatrixLoadIdentityEXTFn
= 0;
294 fn
.glPathCommandsNVFn
= 0;
295 fn
.glPathParameterfNVFn
= 0;
296 fn
.glPathParameteriNVFn
= 0;
297 fn
.glPathStencilFuncNVFn
= 0;
298 fn
.glPauseTransformFeedbackFn
= 0;
300 reinterpret_cast<glPixelStoreiProc
>(GetGLProcAddress("glPixelStorei"));
301 fn
.glPointParameteriFn
= 0;
302 fn
.glPolygonOffsetFn
= reinterpret_cast<glPolygonOffsetProc
>(
303 GetGLProcAddress("glPolygonOffset"));
304 fn
.glPopGroupMarkerEXTFn
= 0;
305 fn
.glProgramBinaryFn
= 0;
306 fn
.glProgramParameteriFn
= 0;
307 fn
.glPushGroupMarkerEXTFn
= 0;
308 fn
.glQueryCounterFn
= 0;
309 fn
.glReadBufferFn
= 0;
311 reinterpret_cast<glReadPixelsProc
>(GetGLProcAddress("glReadPixels"));
312 fn
.glReleaseShaderCompilerFn
= 0;
313 fn
.glRenderbufferStorageEXTFn
= 0;
314 fn
.glRenderbufferStorageMultisampleFn
= 0;
315 fn
.glRenderbufferStorageMultisampleANGLEFn
= 0;
316 fn
.glRenderbufferStorageMultisampleEXTFn
= 0;
317 fn
.glRenderbufferStorageMultisampleIMGFn
= 0;
318 fn
.glResumeTransformFeedbackFn
= 0;
319 fn
.glSampleCoverageFn
= reinterpret_cast<glSampleCoverageProc
>(
320 GetGLProcAddress("glSampleCoverage"));
321 fn
.glSamplerParameterfFn
= 0;
322 fn
.glSamplerParameterfvFn
= 0;
323 fn
.glSamplerParameteriFn
= 0;
324 fn
.glSamplerParameterivFn
= 0;
326 reinterpret_cast<glScissorProc
>(GetGLProcAddress("glScissor"));
327 fn
.glSetFenceAPPLEFn
= 0;
328 fn
.glSetFenceNVFn
= 0;
329 fn
.glShaderBinaryFn
= 0;
330 fn
.glShaderSourceFn
=
331 reinterpret_cast<glShaderSourceProc
>(GetGLProcAddress("glShaderSource"));
332 fn
.glStencilFillPathNVFn
= 0;
334 reinterpret_cast<glStencilFuncProc
>(GetGLProcAddress("glStencilFunc"));
335 fn
.glStencilFuncSeparateFn
= reinterpret_cast<glStencilFuncSeparateProc
>(
336 GetGLProcAddress("glStencilFuncSeparate"));
338 reinterpret_cast<glStencilMaskProc
>(GetGLProcAddress("glStencilMask"));
339 fn
.glStencilMaskSeparateFn
= reinterpret_cast<glStencilMaskSeparateProc
>(
340 GetGLProcAddress("glStencilMaskSeparate"));
342 reinterpret_cast<glStencilOpProc
>(GetGLProcAddress("glStencilOp"));
343 fn
.glStencilOpSeparateFn
= reinterpret_cast<glStencilOpSeparateProc
>(
344 GetGLProcAddress("glStencilOpSeparate"));
345 fn
.glStencilStrokePathNVFn
= 0;
346 fn
.glStencilThenCoverFillPathNVFn
= 0;
347 fn
.glStencilThenCoverStrokePathNVFn
= 0;
348 fn
.glTestFenceAPPLEFn
= 0;
349 fn
.glTestFenceNVFn
= 0;
351 reinterpret_cast<glTexImage2DProc
>(GetGLProcAddress("glTexImage2D"));
352 fn
.glTexImage3DFn
= 0;
353 fn
.glTexParameterfFn
= reinterpret_cast<glTexParameterfProc
>(
354 GetGLProcAddress("glTexParameterf"));
355 fn
.glTexParameterfvFn
= reinterpret_cast<glTexParameterfvProc
>(
356 GetGLProcAddress("glTexParameterfv"));
357 fn
.glTexParameteriFn
= reinterpret_cast<glTexParameteriProc
>(
358 GetGLProcAddress("glTexParameteri"));
359 fn
.glTexParameterivFn
= reinterpret_cast<glTexParameterivProc
>(
360 GetGLProcAddress("glTexParameteriv"));
361 fn
.glTexStorage2DEXTFn
= 0;
362 fn
.glTexStorage3DFn
= 0;
363 fn
.glTexSubImage2DFn
= reinterpret_cast<glTexSubImage2DProc
>(
364 GetGLProcAddress("glTexSubImage2D"));
365 fn
.glTexSubImage3DFn
= 0;
366 fn
.glTransformFeedbackVaryingsFn
= 0;
368 reinterpret_cast<glUniform1fProc
>(GetGLProcAddress("glUniform1f"));
370 reinterpret_cast<glUniform1fvProc
>(GetGLProcAddress("glUniform1fv"));
372 reinterpret_cast<glUniform1iProc
>(GetGLProcAddress("glUniform1i"));
374 reinterpret_cast<glUniform1ivProc
>(GetGLProcAddress("glUniform1iv"));
375 fn
.glUniform1uiFn
= 0;
376 fn
.glUniform1uivFn
= 0;
378 reinterpret_cast<glUniform2fProc
>(GetGLProcAddress("glUniform2f"));
380 reinterpret_cast<glUniform2fvProc
>(GetGLProcAddress("glUniform2fv"));
382 reinterpret_cast<glUniform2iProc
>(GetGLProcAddress("glUniform2i"));
384 reinterpret_cast<glUniform2ivProc
>(GetGLProcAddress("glUniform2iv"));
385 fn
.glUniform2uiFn
= 0;
386 fn
.glUniform2uivFn
= 0;
388 reinterpret_cast<glUniform3fProc
>(GetGLProcAddress("glUniform3f"));
390 reinterpret_cast<glUniform3fvProc
>(GetGLProcAddress("glUniform3fv"));
392 reinterpret_cast<glUniform3iProc
>(GetGLProcAddress("glUniform3i"));
394 reinterpret_cast<glUniform3ivProc
>(GetGLProcAddress("glUniform3iv"));
395 fn
.glUniform3uiFn
= 0;
396 fn
.glUniform3uivFn
= 0;
398 reinterpret_cast<glUniform4fProc
>(GetGLProcAddress("glUniform4f"));
400 reinterpret_cast<glUniform4fvProc
>(GetGLProcAddress("glUniform4fv"));
402 reinterpret_cast<glUniform4iProc
>(GetGLProcAddress("glUniform4i"));
404 reinterpret_cast<glUniform4ivProc
>(GetGLProcAddress("glUniform4iv"));
405 fn
.glUniform4uiFn
= 0;
406 fn
.glUniform4uivFn
= 0;
407 fn
.glUniformBlockBindingFn
= 0;
408 fn
.glUniformMatrix2fvFn
= reinterpret_cast<glUniformMatrix2fvProc
>(
409 GetGLProcAddress("glUniformMatrix2fv"));
410 fn
.glUniformMatrix2x3fvFn
= 0;
411 fn
.glUniformMatrix2x4fvFn
= 0;
412 fn
.glUniformMatrix3fvFn
= reinterpret_cast<glUniformMatrix3fvProc
>(
413 GetGLProcAddress("glUniformMatrix3fv"));
414 fn
.glUniformMatrix3x2fvFn
= 0;
415 fn
.glUniformMatrix3x4fvFn
= 0;
416 fn
.glUniformMatrix4fvFn
= reinterpret_cast<glUniformMatrix4fvProc
>(
417 GetGLProcAddress("glUniformMatrix4fv"));
418 fn
.glUniformMatrix4x2fvFn
= 0;
419 fn
.glUniformMatrix4x3fvFn
= 0;
420 fn
.glUnmapBufferFn
= 0;
422 reinterpret_cast<glUseProgramProc
>(GetGLProcAddress("glUseProgram"));
423 fn
.glValidateProgramFn
= reinterpret_cast<glValidateProgramProc
>(
424 GetGLProcAddress("glValidateProgram"));
425 fn
.glVertexAttrib1fFn
= reinterpret_cast<glVertexAttrib1fProc
>(
426 GetGLProcAddress("glVertexAttrib1f"));
427 fn
.glVertexAttrib1fvFn
= reinterpret_cast<glVertexAttrib1fvProc
>(
428 GetGLProcAddress("glVertexAttrib1fv"));
429 fn
.glVertexAttrib2fFn
= reinterpret_cast<glVertexAttrib2fProc
>(
430 GetGLProcAddress("glVertexAttrib2f"));
431 fn
.glVertexAttrib2fvFn
= reinterpret_cast<glVertexAttrib2fvProc
>(
432 GetGLProcAddress("glVertexAttrib2fv"));
433 fn
.glVertexAttrib3fFn
= reinterpret_cast<glVertexAttrib3fProc
>(
434 GetGLProcAddress("glVertexAttrib3f"));
435 fn
.glVertexAttrib3fvFn
= reinterpret_cast<glVertexAttrib3fvProc
>(
436 GetGLProcAddress("glVertexAttrib3fv"));
437 fn
.glVertexAttrib4fFn
= reinterpret_cast<glVertexAttrib4fProc
>(
438 GetGLProcAddress("glVertexAttrib4f"));
439 fn
.glVertexAttrib4fvFn
= reinterpret_cast<glVertexAttrib4fvProc
>(
440 GetGLProcAddress("glVertexAttrib4fv"));
441 fn
.glVertexAttribDivisorANGLEFn
= 0;
442 fn
.glVertexAttribI4iFn
= 0;
443 fn
.glVertexAttribI4ivFn
= 0;
444 fn
.glVertexAttribI4uiFn
= 0;
445 fn
.glVertexAttribI4uivFn
= 0;
446 fn
.glVertexAttribIPointerFn
= 0;
447 fn
.glVertexAttribPointerFn
= reinterpret_cast<glVertexAttribPointerProc
>(
448 GetGLProcAddress("glVertexAttribPointer"));
450 reinterpret_cast<glViewportProc
>(GetGLProcAddress("glViewport"));
454 void DriverGL::InitializeDynamicBindings(GLContext
* context
) {
455 DCHECK(context
&& context
->IsCurrent(NULL
));
456 const GLVersionInfo
* ver
= context
->GetVersionInfo();
457 ALLOW_UNUSED_LOCAL(ver
);
458 std::string extensions
= context
->GetExtensions() + " ";
459 ALLOW_UNUSED_LOCAL(extensions
);
461 ext
.b_GL_ANGLE_framebuffer_blit
=
462 extensions
.find("GL_ANGLE_framebuffer_blit ") != std::string::npos
;
463 ext
.b_GL_ANGLE_framebuffer_multisample
=
464 extensions
.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos
;
465 ext
.b_GL_ANGLE_instanced_arrays
=
466 extensions
.find("GL_ANGLE_instanced_arrays ") != std::string::npos
;
467 ext
.b_GL_ANGLE_translated_shader_source
=
468 extensions
.find("GL_ANGLE_translated_shader_source ") !=
470 ext
.b_GL_APPLE_fence
=
471 extensions
.find("GL_APPLE_fence ") != std::string::npos
;
472 ext
.b_GL_APPLE_vertex_array_object
=
473 extensions
.find("GL_APPLE_vertex_array_object ") != std::string::npos
;
474 ext
.b_GL_ARB_draw_buffers
=
475 extensions
.find("GL_ARB_draw_buffers ") != std::string::npos
;
476 ext
.b_GL_ARB_draw_instanced
=
477 extensions
.find("GL_ARB_draw_instanced ") != std::string::npos
;
478 ext
.b_GL_ARB_get_program_binary
=
479 extensions
.find("GL_ARB_get_program_binary ") != std::string::npos
;
480 ext
.b_GL_ARB_instanced_arrays
=
481 extensions
.find("GL_ARB_instanced_arrays ") != std::string::npos
;
482 ext
.b_GL_ARB_map_buffer_range
=
483 extensions
.find("GL_ARB_map_buffer_range ") != std::string::npos
;
484 ext
.b_GL_ARB_occlusion_query
=
485 extensions
.find("GL_ARB_occlusion_query ") != std::string::npos
;
486 ext
.b_GL_ARB_robustness
=
487 extensions
.find("GL_ARB_robustness ") != std::string::npos
;
488 ext
.b_GL_ARB_sync
= extensions
.find("GL_ARB_sync ") != std::string::npos
;
489 ext
.b_GL_ARB_texture_storage
=
490 extensions
.find("GL_ARB_texture_storage ") != std::string::npos
;
491 ext
.b_GL_ARB_timer_query
=
492 extensions
.find("GL_ARB_timer_query ") != std::string::npos
;
493 ext
.b_GL_ARB_vertex_array_object
=
494 extensions
.find("GL_ARB_vertex_array_object ") != std::string::npos
;
495 ext
.b_GL_CHROMIUM_gles_depth_binding_hack
=
496 extensions
.find("GL_CHROMIUM_gles_depth_binding_hack ") !=
498 ext
.b_GL_CHROMIUM_glgetstringi_hack
=
499 extensions
.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos
;
500 ext
.b_GL_EXT_debug_marker
=
501 extensions
.find("GL_EXT_debug_marker ") != std::string::npos
;
502 ext
.b_GL_EXT_direct_state_access
=
503 extensions
.find("GL_EXT_direct_state_access ") != std::string::npos
;
504 ext
.b_GL_EXT_discard_framebuffer
=
505 extensions
.find("GL_EXT_discard_framebuffer ") != std::string::npos
;
506 ext
.b_GL_EXT_disjoint_timer_query
=
507 extensions
.find("GL_EXT_disjoint_timer_query ") != std::string::npos
;
508 ext
.b_GL_EXT_draw_buffers
=
509 extensions
.find("GL_EXT_draw_buffers ") != std::string::npos
;
510 ext
.b_GL_EXT_framebuffer_blit
=
511 extensions
.find("GL_EXT_framebuffer_blit ") != std::string::npos
;
512 ext
.b_GL_EXT_framebuffer_multisample
=
513 extensions
.find("GL_EXT_framebuffer_multisample ") != std::string::npos
;
514 ext
.b_GL_EXT_framebuffer_object
=
515 extensions
.find("GL_EXT_framebuffer_object ") != std::string::npos
;
516 ext
.b_GL_EXT_map_buffer_range
=
517 extensions
.find("GL_EXT_map_buffer_range ") != std::string::npos
;
518 ext
.b_GL_EXT_multisampled_render_to_texture
=
519 extensions
.find("GL_EXT_multisampled_render_to_texture ") !=
521 ext
.b_GL_EXT_occlusion_query_boolean
=
522 extensions
.find("GL_EXT_occlusion_query_boolean ") != std::string::npos
;
523 ext
.b_GL_EXT_robustness
=
524 extensions
.find("GL_EXT_robustness ") != std::string::npos
;
525 ext
.b_GL_EXT_texture_storage
=
526 extensions
.find("GL_EXT_texture_storage ") != std::string::npos
;
527 ext
.b_GL_EXT_timer_query
=
528 extensions
.find("GL_EXT_timer_query ") != std::string::npos
;
529 ext
.b_GL_IMG_multisampled_render_to_texture
=
530 extensions
.find("GL_IMG_multisampled_render_to_texture ") !=
532 ext
.b_GL_INTEL_framebuffer_CMAA
=
533 extensions
.find("GL_INTEL_framebuffer_CMAA ") != std::string::npos
;
534 ext
.b_GL_KHR_blend_equation_advanced
=
535 extensions
.find("GL_KHR_blend_equation_advanced ") != std::string::npos
;
536 ext
.b_GL_KHR_robustness
=
537 extensions
.find("GL_KHR_robustness ") != std::string::npos
;
538 ext
.b_GL_NV_blend_equation_advanced
=
539 extensions
.find("GL_NV_blend_equation_advanced ") != std::string::npos
;
540 ext
.b_GL_NV_fence
= extensions
.find("GL_NV_fence ") != std::string::npos
;
541 ext
.b_GL_NV_path_rendering
=
542 extensions
.find("GL_NV_path_rendering ") != std::string::npos
;
543 ext
.b_GL_OES_EGL_image
=
544 extensions
.find("GL_OES_EGL_image ") != std::string::npos
;
545 ext
.b_GL_OES_get_program_binary
=
546 extensions
.find("GL_OES_get_program_binary ") != std::string::npos
;
547 ext
.b_GL_OES_mapbuffer
=
548 extensions
.find("GL_OES_mapbuffer ") != std::string::npos
;
549 ext
.b_GL_OES_vertex_array_object
=
550 extensions
.find("GL_OES_vertex_array_object ") != std::string::npos
;
552 debug_fn
.glApplyFramebufferAttachmentCMAAINTELFn
= 0;
553 if (ext
.b_GL_INTEL_framebuffer_CMAA
) {
554 fn
.glApplyFramebufferAttachmentCMAAINTELFn
=
555 reinterpret_cast<glApplyFramebufferAttachmentCMAAINTELProc
>(
556 GetGLProcAddress("glApplyFramebufferAttachmentCMAAINTEL"));
557 DCHECK(fn
.glApplyFramebufferAttachmentCMAAINTELFn
);
560 debug_fn
.glBeginQueryFn
= 0;
561 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
563 reinterpret_cast<glBeginQueryProc
>(GetGLProcAddress("glBeginQuery"));
564 DCHECK(fn
.glBeginQueryFn
);
565 } else if (ext
.b_GL_ARB_occlusion_query
) {
567 reinterpret_cast<glBeginQueryProc
>(GetGLProcAddress("glBeginQueryARB"));
568 DCHECK(fn
.glBeginQueryFn
);
569 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
570 ext
.b_GL_EXT_occlusion_query_boolean
) {
572 reinterpret_cast<glBeginQueryProc
>(GetGLProcAddress("glBeginQueryEXT"));
573 DCHECK(fn
.glBeginQueryFn
);
576 debug_fn
.glBeginTransformFeedbackFn
= 0;
577 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
578 fn
.glBeginTransformFeedbackFn
=
579 reinterpret_cast<glBeginTransformFeedbackProc
>(
580 GetGLProcAddress("glBeginTransformFeedback"));
581 DCHECK(fn
.glBeginTransformFeedbackFn
);
584 debug_fn
.glBindBufferBaseFn
= 0;
585 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
586 fn
.glBindBufferBaseFn
= reinterpret_cast<glBindBufferBaseProc
>(
587 GetGLProcAddress("glBindBufferBase"));
588 DCHECK(fn
.glBindBufferBaseFn
);
591 debug_fn
.glBindBufferRangeFn
= 0;
592 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
593 fn
.glBindBufferRangeFn
= reinterpret_cast<glBindBufferRangeProc
>(
594 GetGLProcAddress("glBindBufferRange"));
595 DCHECK(fn
.glBindBufferRangeFn
);
598 debug_fn
.glBindFragDataLocationFn
= 0;
599 if (ver
->IsAtLeastGL(3u, 0u)) {
600 fn
.glBindFragDataLocationFn
= reinterpret_cast<glBindFragDataLocationProc
>(
601 GetGLProcAddress("glBindFragDataLocation"));
602 DCHECK(fn
.glBindFragDataLocationFn
);
605 debug_fn
.glBindFragDataLocationIndexedFn
= 0;
606 if (ver
->IsAtLeastGL(3u, 3u)) {
607 fn
.glBindFragDataLocationIndexedFn
=
608 reinterpret_cast<glBindFragDataLocationIndexedProc
>(
609 GetGLProcAddress("glBindFragDataLocationIndexed"));
610 DCHECK(fn
.glBindFragDataLocationIndexedFn
);
613 debug_fn
.glBindFramebufferEXTFn
= 0;
614 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
615 fn
.glBindFramebufferEXTFn
= reinterpret_cast<glBindFramebufferEXTProc
>(
616 GetGLProcAddress("glBindFramebuffer"));
617 DCHECK(fn
.glBindFramebufferEXTFn
);
618 } else if (ext
.b_GL_EXT_framebuffer_object
) {
619 fn
.glBindFramebufferEXTFn
= reinterpret_cast<glBindFramebufferEXTProc
>(
620 GetGLProcAddress("glBindFramebufferEXT"));
621 DCHECK(fn
.glBindFramebufferEXTFn
);
624 debug_fn
.glBindRenderbufferEXTFn
= 0;
625 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
626 fn
.glBindRenderbufferEXTFn
= reinterpret_cast<glBindRenderbufferEXTProc
>(
627 GetGLProcAddress("glBindRenderbuffer"));
628 DCHECK(fn
.glBindRenderbufferEXTFn
);
629 } else if (ext
.b_GL_EXT_framebuffer_object
) {
630 fn
.glBindRenderbufferEXTFn
= reinterpret_cast<glBindRenderbufferEXTProc
>(
631 GetGLProcAddress("glBindRenderbufferEXT"));
632 DCHECK(fn
.glBindRenderbufferEXTFn
);
635 debug_fn
.glBindSamplerFn
= 0;
636 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
638 reinterpret_cast<glBindSamplerProc
>(GetGLProcAddress("glBindSampler"));
639 DCHECK(fn
.glBindSamplerFn
);
642 debug_fn
.glBindTransformFeedbackFn
= 0;
643 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
644 fn
.glBindTransformFeedbackFn
=
645 reinterpret_cast<glBindTransformFeedbackProc
>(
646 GetGLProcAddress("glBindTransformFeedback"));
647 DCHECK(fn
.glBindTransformFeedbackFn
);
650 debug_fn
.glBindVertexArrayOESFn
= 0;
651 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
652 ext
.b_GL_ARB_vertex_array_object
) {
653 fn
.glBindVertexArrayOESFn
= reinterpret_cast<glBindVertexArrayOESProc
>(
654 GetGLProcAddress("glBindVertexArray"));
655 DCHECK(fn
.glBindVertexArrayOESFn
);
656 } else if (ext
.b_GL_OES_vertex_array_object
) {
657 fn
.glBindVertexArrayOESFn
= reinterpret_cast<glBindVertexArrayOESProc
>(
658 GetGLProcAddress("glBindVertexArrayOES"));
659 DCHECK(fn
.glBindVertexArrayOESFn
);
660 } else if (ext
.b_GL_APPLE_vertex_array_object
) {
661 fn
.glBindVertexArrayOESFn
= reinterpret_cast<glBindVertexArrayOESProc
>(
662 GetGLProcAddress("glBindVertexArrayAPPLE"));
663 DCHECK(fn
.glBindVertexArrayOESFn
);
666 debug_fn
.glBlendBarrierKHRFn
= 0;
667 if (ext
.b_GL_NV_blend_equation_advanced
) {
668 fn
.glBlendBarrierKHRFn
= reinterpret_cast<glBlendBarrierKHRProc
>(
669 GetGLProcAddress("glBlendBarrierNV"));
670 DCHECK(fn
.glBlendBarrierKHRFn
);
671 } else if (ext
.b_GL_KHR_blend_equation_advanced
) {
672 fn
.glBlendBarrierKHRFn
= reinterpret_cast<glBlendBarrierKHRProc
>(
673 GetGLProcAddress("glBlendBarrierKHR"));
674 DCHECK(fn
.glBlendBarrierKHRFn
);
677 debug_fn
.glBlitFramebufferFn
= 0;
678 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
679 fn
.glBlitFramebufferFn
= reinterpret_cast<glBlitFramebufferProc
>(
680 GetGLProcAddress("glBlitFramebuffer"));
681 DCHECK(fn
.glBlitFramebufferFn
);
684 debug_fn
.glBlitFramebufferANGLEFn
= 0;
685 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
686 fn
.glBlitFramebufferANGLEFn
= reinterpret_cast<glBlitFramebufferANGLEProc
>(
687 GetGLProcAddress("glBlitFramebuffer"));
688 DCHECK(fn
.glBlitFramebufferANGLEFn
);
689 } else if (ext
.b_GL_ANGLE_framebuffer_blit
) {
690 fn
.glBlitFramebufferANGLEFn
= reinterpret_cast<glBlitFramebufferANGLEProc
>(
691 GetGLProcAddress("glBlitFramebufferANGLE"));
692 DCHECK(fn
.glBlitFramebufferANGLEFn
);
695 debug_fn
.glBlitFramebufferEXTFn
= 0;
696 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
697 fn
.glBlitFramebufferEXTFn
= reinterpret_cast<glBlitFramebufferEXTProc
>(
698 GetGLProcAddress("glBlitFramebuffer"));
699 DCHECK(fn
.glBlitFramebufferEXTFn
);
700 } else if (ext
.b_GL_EXT_framebuffer_blit
) {
701 fn
.glBlitFramebufferEXTFn
= reinterpret_cast<glBlitFramebufferEXTProc
>(
702 GetGLProcAddress("glBlitFramebufferEXT"));
703 DCHECK(fn
.glBlitFramebufferEXTFn
);
706 debug_fn
.glCheckFramebufferStatusEXTFn
= 0;
707 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
708 fn
.glCheckFramebufferStatusEXTFn
=
709 reinterpret_cast<glCheckFramebufferStatusEXTProc
>(
710 GetGLProcAddress("glCheckFramebufferStatus"));
711 DCHECK(fn
.glCheckFramebufferStatusEXTFn
);
712 } else if (ext
.b_GL_EXT_framebuffer_object
) {
713 fn
.glCheckFramebufferStatusEXTFn
=
714 reinterpret_cast<glCheckFramebufferStatusEXTProc
>(
715 GetGLProcAddress("glCheckFramebufferStatusEXT"));
716 DCHECK(fn
.glCheckFramebufferStatusEXTFn
);
719 debug_fn
.glClearBufferfiFn
= 0;
720 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
721 fn
.glClearBufferfiFn
= reinterpret_cast<glClearBufferfiProc
>(
722 GetGLProcAddress("glClearBufferfi"));
723 DCHECK(fn
.glClearBufferfiFn
);
726 debug_fn
.glClearBufferfvFn
= 0;
727 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
728 fn
.glClearBufferfvFn
= reinterpret_cast<glClearBufferfvProc
>(
729 GetGLProcAddress("glClearBufferfv"));
730 DCHECK(fn
.glClearBufferfvFn
);
733 debug_fn
.glClearBufferivFn
= 0;
734 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
735 fn
.glClearBufferivFn
= reinterpret_cast<glClearBufferivProc
>(
736 GetGLProcAddress("glClearBufferiv"));
737 DCHECK(fn
.glClearBufferivFn
);
740 debug_fn
.glClearBufferuivFn
= 0;
741 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
742 fn
.glClearBufferuivFn
= reinterpret_cast<glClearBufferuivProc
>(
743 GetGLProcAddress("glClearBufferuiv"));
744 DCHECK(fn
.glClearBufferuivFn
);
747 debug_fn
.glClearDepthfFn
= 0;
748 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
750 reinterpret_cast<glClearDepthfProc
>(GetGLProcAddress("glClearDepthf"));
751 DCHECK(fn
.glClearDepthfFn
);
754 debug_fn
.glClientWaitSyncFn
= 0;
755 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
757 fn
.glClientWaitSyncFn
= reinterpret_cast<glClientWaitSyncProc
>(
758 GetGLProcAddress("glClientWaitSync"));
759 DCHECK(fn
.glClientWaitSyncFn
);
762 debug_fn
.glCompressedTexImage3DFn
= 0;
763 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
764 fn
.glCompressedTexImage3DFn
= reinterpret_cast<glCompressedTexImage3DProc
>(
765 GetGLProcAddress("glCompressedTexImage3D"));
766 DCHECK(fn
.glCompressedTexImage3DFn
);
769 debug_fn
.glCompressedTexSubImage3DFn
= 0;
770 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
771 fn
.glCompressedTexSubImage3DFn
=
772 reinterpret_cast<glCompressedTexSubImage3DProc
>(
773 GetGLProcAddress("glCompressedTexSubImage3D"));
774 DCHECK(fn
.glCompressedTexSubImage3DFn
);
777 debug_fn
.glCopyBufferSubDataFn
= 0;
778 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
779 fn
.glCopyBufferSubDataFn
= reinterpret_cast<glCopyBufferSubDataProc
>(
780 GetGLProcAddress("glCopyBufferSubData"));
781 DCHECK(fn
.glCopyBufferSubDataFn
);
784 debug_fn
.glCopyTexSubImage3DFn
= 0;
785 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
786 fn
.glCopyTexSubImage3DFn
= reinterpret_cast<glCopyTexSubImage3DProc
>(
787 GetGLProcAddress("glCopyTexSubImage3D"));
788 DCHECK(fn
.glCopyTexSubImage3DFn
);
791 debug_fn
.glCoverFillPathNVFn
= 0;
792 if (ext
.b_GL_NV_path_rendering
) {
793 fn
.glCoverFillPathNVFn
= reinterpret_cast<glCoverFillPathNVProc
>(
794 GetGLProcAddress("glCoverFillPathNV"));
795 DCHECK(fn
.glCoverFillPathNVFn
);
798 debug_fn
.glCoverStrokePathNVFn
= 0;
799 if (ext
.b_GL_NV_path_rendering
) {
800 fn
.glCoverStrokePathNVFn
= reinterpret_cast<glCoverStrokePathNVProc
>(
801 GetGLProcAddress("glCoverStrokePathNV"));
802 DCHECK(fn
.glCoverStrokePathNVFn
);
805 debug_fn
.glDeleteFencesAPPLEFn
= 0;
806 if (ext
.b_GL_APPLE_fence
) {
807 fn
.glDeleteFencesAPPLEFn
= reinterpret_cast<glDeleteFencesAPPLEProc
>(
808 GetGLProcAddress("glDeleteFencesAPPLE"));
809 DCHECK(fn
.glDeleteFencesAPPLEFn
);
812 debug_fn
.glDeleteFencesNVFn
= 0;
813 if (ext
.b_GL_NV_fence
) {
814 fn
.glDeleteFencesNVFn
= reinterpret_cast<glDeleteFencesNVProc
>(
815 GetGLProcAddress("glDeleteFencesNV"));
816 DCHECK(fn
.glDeleteFencesNVFn
);
819 debug_fn
.glDeleteFramebuffersEXTFn
= 0;
820 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
821 fn
.glDeleteFramebuffersEXTFn
=
822 reinterpret_cast<glDeleteFramebuffersEXTProc
>(
823 GetGLProcAddress("glDeleteFramebuffers"));
824 DCHECK(fn
.glDeleteFramebuffersEXTFn
);
825 } else if (ext
.b_GL_EXT_framebuffer_object
) {
826 fn
.glDeleteFramebuffersEXTFn
=
827 reinterpret_cast<glDeleteFramebuffersEXTProc
>(
828 GetGLProcAddress("glDeleteFramebuffersEXT"));
829 DCHECK(fn
.glDeleteFramebuffersEXTFn
);
832 debug_fn
.glDeletePathsNVFn
= 0;
833 if (ext
.b_GL_NV_path_rendering
) {
834 fn
.glDeletePathsNVFn
= reinterpret_cast<glDeletePathsNVProc
>(
835 GetGLProcAddress("glDeletePathsNV"));
836 DCHECK(fn
.glDeletePathsNVFn
);
839 debug_fn
.glDeleteQueriesFn
= 0;
840 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
841 fn
.glDeleteQueriesFn
= reinterpret_cast<glDeleteQueriesProc
>(
842 GetGLProcAddress("glDeleteQueries"));
843 DCHECK(fn
.glDeleteQueriesFn
);
844 } else if (ext
.b_GL_ARB_occlusion_query
) {
845 fn
.glDeleteQueriesFn
= reinterpret_cast<glDeleteQueriesProc
>(
846 GetGLProcAddress("glDeleteQueriesARB"));
847 DCHECK(fn
.glDeleteQueriesFn
);
848 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
849 ext
.b_GL_EXT_occlusion_query_boolean
) {
850 fn
.glDeleteQueriesFn
= reinterpret_cast<glDeleteQueriesProc
>(
851 GetGLProcAddress("glDeleteQueriesEXT"));
852 DCHECK(fn
.glDeleteQueriesFn
);
855 debug_fn
.glDeleteRenderbuffersEXTFn
= 0;
856 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
857 fn
.glDeleteRenderbuffersEXTFn
=
858 reinterpret_cast<glDeleteRenderbuffersEXTProc
>(
859 GetGLProcAddress("glDeleteRenderbuffers"));
860 DCHECK(fn
.glDeleteRenderbuffersEXTFn
);
861 } else if (ext
.b_GL_EXT_framebuffer_object
) {
862 fn
.glDeleteRenderbuffersEXTFn
=
863 reinterpret_cast<glDeleteRenderbuffersEXTProc
>(
864 GetGLProcAddress("glDeleteRenderbuffersEXT"));
865 DCHECK(fn
.glDeleteRenderbuffersEXTFn
);
868 debug_fn
.glDeleteSamplersFn
= 0;
869 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
870 fn
.glDeleteSamplersFn
= reinterpret_cast<glDeleteSamplersProc
>(
871 GetGLProcAddress("glDeleteSamplers"));
872 DCHECK(fn
.glDeleteSamplersFn
);
875 debug_fn
.glDeleteSyncFn
= 0;
876 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
879 reinterpret_cast<glDeleteSyncProc
>(GetGLProcAddress("glDeleteSync"));
880 DCHECK(fn
.glDeleteSyncFn
);
883 debug_fn
.glDeleteTransformFeedbacksFn
= 0;
884 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
885 fn
.glDeleteTransformFeedbacksFn
=
886 reinterpret_cast<glDeleteTransformFeedbacksProc
>(
887 GetGLProcAddress("glDeleteTransformFeedbacks"));
888 DCHECK(fn
.glDeleteTransformFeedbacksFn
);
891 debug_fn
.glDeleteVertexArraysOESFn
= 0;
892 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
893 ext
.b_GL_ARB_vertex_array_object
) {
894 fn
.glDeleteVertexArraysOESFn
=
895 reinterpret_cast<glDeleteVertexArraysOESProc
>(
896 GetGLProcAddress("glDeleteVertexArrays"));
897 DCHECK(fn
.glDeleteVertexArraysOESFn
);
898 } else if (ext
.b_GL_OES_vertex_array_object
) {
899 fn
.glDeleteVertexArraysOESFn
=
900 reinterpret_cast<glDeleteVertexArraysOESProc
>(
901 GetGLProcAddress("glDeleteVertexArraysOES"));
902 DCHECK(fn
.glDeleteVertexArraysOESFn
);
903 } else if (ext
.b_GL_APPLE_vertex_array_object
) {
904 fn
.glDeleteVertexArraysOESFn
=
905 reinterpret_cast<glDeleteVertexArraysOESProc
>(
906 GetGLProcAddress("glDeleteVertexArraysAPPLE"));
907 DCHECK(fn
.glDeleteVertexArraysOESFn
);
910 debug_fn
.glDepthRangefFn
= 0;
911 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
913 reinterpret_cast<glDepthRangefProc
>(GetGLProcAddress("glDepthRangef"));
914 DCHECK(fn
.glDepthRangefFn
);
917 debug_fn
.glDiscardFramebufferEXTFn
= 0;
918 if (ext
.b_GL_EXT_discard_framebuffer
) {
919 fn
.glDiscardFramebufferEXTFn
=
920 reinterpret_cast<glDiscardFramebufferEXTProc
>(
921 GetGLProcAddress("glDiscardFramebufferEXT"));
922 DCHECK(fn
.glDiscardFramebufferEXTFn
);
925 debug_fn
.glDrawArraysInstancedANGLEFn
= 0;
926 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
927 fn
.glDrawArraysInstancedANGLEFn
=
928 reinterpret_cast<glDrawArraysInstancedANGLEProc
>(
929 GetGLProcAddress("glDrawArraysInstanced"));
930 DCHECK(fn
.glDrawArraysInstancedANGLEFn
);
931 } else if (ext
.b_GL_ARB_draw_instanced
) {
932 fn
.glDrawArraysInstancedANGLEFn
=
933 reinterpret_cast<glDrawArraysInstancedANGLEProc
>(
934 GetGLProcAddress("glDrawArraysInstancedARB"));
935 DCHECK(fn
.glDrawArraysInstancedANGLEFn
);
936 } else if (ext
.b_GL_ANGLE_instanced_arrays
) {
937 fn
.glDrawArraysInstancedANGLEFn
=
938 reinterpret_cast<glDrawArraysInstancedANGLEProc
>(
939 GetGLProcAddress("glDrawArraysInstancedANGLE"));
940 DCHECK(fn
.glDrawArraysInstancedANGLEFn
);
943 debug_fn
.glDrawBufferFn
= 0;
946 reinterpret_cast<glDrawBufferProc
>(GetGLProcAddress("glDrawBuffer"));
947 DCHECK(fn
.glDrawBufferFn
);
950 debug_fn
.glDrawBuffersARBFn
= 0;
951 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
952 fn
.glDrawBuffersARBFn
= reinterpret_cast<glDrawBuffersARBProc
>(
953 GetGLProcAddress("glDrawBuffers"));
954 DCHECK(fn
.glDrawBuffersARBFn
);
955 } else if (ext
.b_GL_ARB_draw_buffers
) {
956 fn
.glDrawBuffersARBFn
= reinterpret_cast<glDrawBuffersARBProc
>(
957 GetGLProcAddress("glDrawBuffersARB"));
958 DCHECK(fn
.glDrawBuffersARBFn
);
959 } else if (ext
.b_GL_EXT_draw_buffers
) {
960 fn
.glDrawBuffersARBFn
= reinterpret_cast<glDrawBuffersARBProc
>(
961 GetGLProcAddress("glDrawBuffersEXT"));
962 DCHECK(fn
.glDrawBuffersARBFn
);
965 debug_fn
.glDrawElementsInstancedANGLEFn
= 0;
966 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
967 fn
.glDrawElementsInstancedANGLEFn
=
968 reinterpret_cast<glDrawElementsInstancedANGLEProc
>(
969 GetGLProcAddress("glDrawElementsInstanced"));
970 DCHECK(fn
.glDrawElementsInstancedANGLEFn
);
971 } else if (ext
.b_GL_ARB_draw_instanced
) {
972 fn
.glDrawElementsInstancedANGLEFn
=
973 reinterpret_cast<glDrawElementsInstancedANGLEProc
>(
974 GetGLProcAddress("glDrawElementsInstancedARB"));
975 DCHECK(fn
.glDrawElementsInstancedANGLEFn
);
976 } else if (ext
.b_GL_ANGLE_instanced_arrays
) {
977 fn
.glDrawElementsInstancedANGLEFn
=
978 reinterpret_cast<glDrawElementsInstancedANGLEProc
>(
979 GetGLProcAddress("glDrawElementsInstancedANGLE"));
980 DCHECK(fn
.glDrawElementsInstancedANGLEFn
);
983 debug_fn
.glDrawRangeElementsFn
= 0;
984 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
985 fn
.glDrawRangeElementsFn
= reinterpret_cast<glDrawRangeElementsProc
>(
986 GetGLProcAddress("glDrawRangeElements"));
987 DCHECK(fn
.glDrawRangeElementsFn
);
990 debug_fn
.glEGLImageTargetRenderbufferStorageOESFn
= 0;
991 if (ext
.b_GL_OES_EGL_image
) {
992 fn
.glEGLImageTargetRenderbufferStorageOESFn
=
993 reinterpret_cast<glEGLImageTargetRenderbufferStorageOESProc
>(
994 GetGLProcAddress("glEGLImageTargetRenderbufferStorageOES"));
995 DCHECK(fn
.glEGLImageTargetRenderbufferStorageOESFn
);
998 debug_fn
.glEGLImageTargetTexture2DOESFn
= 0;
999 if (ext
.b_GL_OES_EGL_image
) {
1000 fn
.glEGLImageTargetTexture2DOESFn
=
1001 reinterpret_cast<glEGLImageTargetTexture2DOESProc
>(
1002 GetGLProcAddress("glEGLImageTargetTexture2DOES"));
1003 DCHECK(fn
.glEGLImageTargetTexture2DOESFn
);
1006 debug_fn
.glEndQueryFn
= 0;
1007 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1009 reinterpret_cast<glEndQueryProc
>(GetGLProcAddress("glEndQuery"));
1010 DCHECK(fn
.glEndQueryFn
);
1011 } else if (ext
.b_GL_ARB_occlusion_query
) {
1013 reinterpret_cast<glEndQueryProc
>(GetGLProcAddress("glEndQueryARB"));
1014 DCHECK(fn
.glEndQueryFn
);
1015 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1016 ext
.b_GL_EXT_occlusion_query_boolean
) {
1018 reinterpret_cast<glEndQueryProc
>(GetGLProcAddress("glEndQueryEXT"));
1019 DCHECK(fn
.glEndQueryFn
);
1022 debug_fn
.glEndTransformFeedbackFn
= 0;
1023 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1024 fn
.glEndTransformFeedbackFn
= reinterpret_cast<glEndTransformFeedbackProc
>(
1025 GetGLProcAddress("glEndTransformFeedback"));
1026 DCHECK(fn
.glEndTransformFeedbackFn
);
1029 debug_fn
.glFenceSyncFn
= 0;
1030 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
1031 ext
.b_GL_ARB_sync
) {
1033 reinterpret_cast<glFenceSyncProc
>(GetGLProcAddress("glFenceSync"));
1034 DCHECK(fn
.glFenceSyncFn
);
1037 debug_fn
.glFinishFenceAPPLEFn
= 0;
1038 if (ext
.b_GL_APPLE_fence
) {
1039 fn
.glFinishFenceAPPLEFn
= reinterpret_cast<glFinishFenceAPPLEProc
>(
1040 GetGLProcAddress("glFinishFenceAPPLE"));
1041 DCHECK(fn
.glFinishFenceAPPLEFn
);
1044 debug_fn
.glFinishFenceNVFn
= 0;
1045 if (ext
.b_GL_NV_fence
) {
1046 fn
.glFinishFenceNVFn
= reinterpret_cast<glFinishFenceNVProc
>(
1047 GetGLProcAddress("glFinishFenceNV"));
1048 DCHECK(fn
.glFinishFenceNVFn
);
1051 debug_fn
.glFlushMappedBufferRangeFn
= 0;
1052 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1053 fn
.glFlushMappedBufferRangeFn
=
1054 reinterpret_cast<glFlushMappedBufferRangeProc
>(
1055 GetGLProcAddress("glFlushMappedBufferRange"));
1056 DCHECK(fn
.glFlushMappedBufferRangeFn
);
1059 debug_fn
.glFramebufferRenderbufferEXTFn
= 0;
1060 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1061 fn
.glFramebufferRenderbufferEXTFn
=
1062 reinterpret_cast<glFramebufferRenderbufferEXTProc
>(
1063 GetGLProcAddress("glFramebufferRenderbuffer"));
1064 DCHECK(fn
.glFramebufferRenderbufferEXTFn
);
1065 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1066 fn
.glFramebufferRenderbufferEXTFn
=
1067 reinterpret_cast<glFramebufferRenderbufferEXTProc
>(
1068 GetGLProcAddress("glFramebufferRenderbufferEXT"));
1069 DCHECK(fn
.glFramebufferRenderbufferEXTFn
);
1072 debug_fn
.glFramebufferTexture2DEXTFn
= 0;
1073 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1074 fn
.glFramebufferTexture2DEXTFn
=
1075 reinterpret_cast<glFramebufferTexture2DEXTProc
>(
1076 GetGLProcAddress("glFramebufferTexture2D"));
1077 DCHECK(fn
.glFramebufferTexture2DEXTFn
);
1078 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1079 fn
.glFramebufferTexture2DEXTFn
=
1080 reinterpret_cast<glFramebufferTexture2DEXTProc
>(
1081 GetGLProcAddress("glFramebufferTexture2DEXT"));
1082 DCHECK(fn
.glFramebufferTexture2DEXTFn
);
1085 debug_fn
.glFramebufferTexture2DMultisampleEXTFn
= 0;
1086 if (ext
.b_GL_EXT_multisampled_render_to_texture
) {
1087 fn
.glFramebufferTexture2DMultisampleEXTFn
=
1088 reinterpret_cast<glFramebufferTexture2DMultisampleEXTProc
>(
1089 GetGLProcAddress("glFramebufferTexture2DMultisampleEXT"));
1090 DCHECK(fn
.glFramebufferTexture2DMultisampleEXTFn
);
1093 debug_fn
.glFramebufferTexture2DMultisampleIMGFn
= 0;
1094 if (ext
.b_GL_IMG_multisampled_render_to_texture
) {
1095 fn
.glFramebufferTexture2DMultisampleIMGFn
=
1096 reinterpret_cast<glFramebufferTexture2DMultisampleIMGProc
>(
1097 GetGLProcAddress("glFramebufferTexture2DMultisampleIMG"));
1098 DCHECK(fn
.glFramebufferTexture2DMultisampleIMGFn
);
1101 debug_fn
.glFramebufferTextureLayerFn
= 0;
1102 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1103 fn
.glFramebufferTextureLayerFn
=
1104 reinterpret_cast<glFramebufferTextureLayerProc
>(
1105 GetGLProcAddress("glFramebufferTextureLayer"));
1106 DCHECK(fn
.glFramebufferTextureLayerFn
);
1109 debug_fn
.glGenerateMipmapEXTFn
= 0;
1110 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1111 fn
.glGenerateMipmapEXTFn
= reinterpret_cast<glGenerateMipmapEXTProc
>(
1112 GetGLProcAddress("glGenerateMipmap"));
1113 DCHECK(fn
.glGenerateMipmapEXTFn
);
1114 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1115 fn
.glGenerateMipmapEXTFn
= reinterpret_cast<glGenerateMipmapEXTProc
>(
1116 GetGLProcAddress("glGenerateMipmapEXT"));
1117 DCHECK(fn
.glGenerateMipmapEXTFn
);
1120 debug_fn
.glGenFencesAPPLEFn
= 0;
1121 if (ext
.b_GL_APPLE_fence
) {
1122 fn
.glGenFencesAPPLEFn
= reinterpret_cast<glGenFencesAPPLEProc
>(
1123 GetGLProcAddress("glGenFencesAPPLE"));
1124 DCHECK(fn
.glGenFencesAPPLEFn
);
1127 debug_fn
.glGenFencesNVFn
= 0;
1128 if (ext
.b_GL_NV_fence
) {
1129 fn
.glGenFencesNVFn
=
1130 reinterpret_cast<glGenFencesNVProc
>(GetGLProcAddress("glGenFencesNV"));
1131 DCHECK(fn
.glGenFencesNVFn
);
1134 debug_fn
.glGenFramebuffersEXTFn
= 0;
1135 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1136 fn
.glGenFramebuffersEXTFn
= reinterpret_cast<glGenFramebuffersEXTProc
>(
1137 GetGLProcAddress("glGenFramebuffers"));
1138 DCHECK(fn
.glGenFramebuffersEXTFn
);
1139 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1140 fn
.glGenFramebuffersEXTFn
= reinterpret_cast<glGenFramebuffersEXTProc
>(
1141 GetGLProcAddress("glGenFramebuffersEXT"));
1142 DCHECK(fn
.glGenFramebuffersEXTFn
);
1145 debug_fn
.glGenPathsNVFn
= 0;
1146 if (ext
.b_GL_NV_path_rendering
) {
1148 reinterpret_cast<glGenPathsNVProc
>(GetGLProcAddress("glGenPathsNV"));
1149 DCHECK(fn
.glGenPathsNVFn
);
1152 debug_fn
.glGenQueriesFn
= 0;
1153 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1155 reinterpret_cast<glGenQueriesProc
>(GetGLProcAddress("glGenQueries"));
1156 DCHECK(fn
.glGenQueriesFn
);
1157 } else if (ext
.b_GL_ARB_occlusion_query
) {
1159 reinterpret_cast<glGenQueriesProc
>(GetGLProcAddress("glGenQueriesARB"));
1160 DCHECK(fn
.glGenQueriesFn
);
1161 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1162 ext
.b_GL_EXT_occlusion_query_boolean
) {
1164 reinterpret_cast<glGenQueriesProc
>(GetGLProcAddress("glGenQueriesEXT"));
1165 DCHECK(fn
.glGenQueriesFn
);
1168 debug_fn
.glGenRenderbuffersEXTFn
= 0;
1169 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1170 fn
.glGenRenderbuffersEXTFn
= reinterpret_cast<glGenRenderbuffersEXTProc
>(
1171 GetGLProcAddress("glGenRenderbuffers"));
1172 DCHECK(fn
.glGenRenderbuffersEXTFn
);
1173 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1174 fn
.glGenRenderbuffersEXTFn
= reinterpret_cast<glGenRenderbuffersEXTProc
>(
1175 GetGLProcAddress("glGenRenderbuffersEXT"));
1176 DCHECK(fn
.glGenRenderbuffersEXTFn
);
1179 debug_fn
.glGenSamplersFn
= 0;
1180 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1181 fn
.glGenSamplersFn
=
1182 reinterpret_cast<glGenSamplersProc
>(GetGLProcAddress("glGenSamplers"));
1183 DCHECK(fn
.glGenSamplersFn
);
1186 debug_fn
.glGenTransformFeedbacksFn
= 0;
1187 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
1188 fn
.glGenTransformFeedbacksFn
=
1189 reinterpret_cast<glGenTransformFeedbacksProc
>(
1190 GetGLProcAddress("glGenTransformFeedbacks"));
1191 DCHECK(fn
.glGenTransformFeedbacksFn
);
1194 debug_fn
.glGenVertexArraysOESFn
= 0;
1195 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
1196 ext
.b_GL_ARB_vertex_array_object
) {
1197 fn
.glGenVertexArraysOESFn
= reinterpret_cast<glGenVertexArraysOESProc
>(
1198 GetGLProcAddress("glGenVertexArrays"));
1199 DCHECK(fn
.glGenVertexArraysOESFn
);
1200 } else if (ext
.b_GL_OES_vertex_array_object
) {
1201 fn
.glGenVertexArraysOESFn
= reinterpret_cast<glGenVertexArraysOESProc
>(
1202 GetGLProcAddress("glGenVertexArraysOES"));
1203 DCHECK(fn
.glGenVertexArraysOESFn
);
1204 } else if (ext
.b_GL_APPLE_vertex_array_object
) {
1205 fn
.glGenVertexArraysOESFn
= reinterpret_cast<glGenVertexArraysOESProc
>(
1206 GetGLProcAddress("glGenVertexArraysAPPLE"));
1207 DCHECK(fn
.glGenVertexArraysOESFn
);
1210 debug_fn
.glGetActiveUniformBlockivFn
= 0;
1211 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1212 fn
.glGetActiveUniformBlockivFn
=
1213 reinterpret_cast<glGetActiveUniformBlockivProc
>(
1214 GetGLProcAddress("glGetActiveUniformBlockiv"));
1215 DCHECK(fn
.glGetActiveUniformBlockivFn
);
1218 debug_fn
.glGetActiveUniformBlockNameFn
= 0;
1219 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1220 fn
.glGetActiveUniformBlockNameFn
=
1221 reinterpret_cast<glGetActiveUniformBlockNameProc
>(
1222 GetGLProcAddress("glGetActiveUniformBlockName"));
1223 DCHECK(fn
.glGetActiveUniformBlockNameFn
);
1226 debug_fn
.glGetActiveUniformsivFn
= 0;
1227 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1228 fn
.glGetActiveUniformsivFn
= reinterpret_cast<glGetActiveUniformsivProc
>(
1229 GetGLProcAddress("glGetActiveUniformsiv"));
1230 DCHECK(fn
.glGetActiveUniformsivFn
);
1233 debug_fn
.glGetFenceivNVFn
= 0;
1234 if (ext
.b_GL_NV_fence
) {
1235 fn
.glGetFenceivNVFn
= reinterpret_cast<glGetFenceivNVProc
>(
1236 GetGLProcAddress("glGetFenceivNV"));
1237 DCHECK(fn
.glGetFenceivNVFn
);
1240 debug_fn
.glGetFragDataLocationFn
= 0;
1241 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1242 fn
.glGetFragDataLocationFn
= reinterpret_cast<glGetFragDataLocationProc
>(
1243 GetGLProcAddress("glGetFragDataLocation"));
1244 DCHECK(fn
.glGetFragDataLocationFn
);
1247 debug_fn
.glGetFramebufferAttachmentParameterivEXTFn
= 0;
1248 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1249 fn
.glGetFramebufferAttachmentParameterivEXTFn
=
1250 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc
>(
1251 GetGLProcAddress("glGetFramebufferAttachmentParameteriv"));
1252 DCHECK(fn
.glGetFramebufferAttachmentParameterivEXTFn
);
1253 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1254 fn
.glGetFramebufferAttachmentParameterivEXTFn
=
1255 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc
>(
1256 GetGLProcAddress("glGetFramebufferAttachmentParameterivEXT"));
1257 DCHECK(fn
.glGetFramebufferAttachmentParameterivEXTFn
);
1260 debug_fn
.glGetGraphicsResetStatusARBFn
= 0;
1261 if (ver
->IsAtLeastGL(4u, 5u)) {
1262 fn
.glGetGraphicsResetStatusARBFn
=
1263 reinterpret_cast<glGetGraphicsResetStatusARBProc
>(
1264 GetGLProcAddress("glGetGraphicsResetStatus"));
1265 DCHECK(fn
.glGetGraphicsResetStatusARBFn
);
1266 } else if (ext
.b_GL_ARB_robustness
) {
1267 fn
.glGetGraphicsResetStatusARBFn
=
1268 reinterpret_cast<glGetGraphicsResetStatusARBProc
>(
1269 GetGLProcAddress("glGetGraphicsResetStatusARB"));
1270 DCHECK(fn
.glGetGraphicsResetStatusARBFn
);
1271 } else if (ext
.b_GL_KHR_robustness
) {
1272 fn
.glGetGraphicsResetStatusARBFn
=
1273 reinterpret_cast<glGetGraphicsResetStatusARBProc
>(
1274 GetGLProcAddress("glGetGraphicsResetStatusKHR"));
1275 DCHECK(fn
.glGetGraphicsResetStatusARBFn
);
1276 } else if (ext
.b_GL_EXT_robustness
) {
1277 fn
.glGetGraphicsResetStatusARBFn
=
1278 reinterpret_cast<glGetGraphicsResetStatusARBProc
>(
1279 GetGLProcAddress("glGetGraphicsResetStatusEXT"));
1280 DCHECK(fn
.glGetGraphicsResetStatusARBFn
);
1283 debug_fn
.glGetInteger64i_vFn
= 0;
1284 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u)) {
1285 fn
.glGetInteger64i_vFn
= reinterpret_cast<glGetInteger64i_vProc
>(
1286 GetGLProcAddress("glGetInteger64i_v"));
1287 DCHECK(fn
.glGetInteger64i_vFn
);
1290 debug_fn
.glGetInteger64vFn
= 0;
1291 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u)) {
1292 fn
.glGetInteger64vFn
= reinterpret_cast<glGetInteger64vProc
>(
1293 GetGLProcAddress("glGetInteger64v"));
1294 DCHECK(fn
.glGetInteger64vFn
);
1297 debug_fn
.glGetIntegeri_vFn
= 0;
1298 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1299 fn
.glGetIntegeri_vFn
= reinterpret_cast<glGetIntegeri_vProc
>(
1300 GetGLProcAddress("glGetIntegeri_v"));
1301 DCHECK(fn
.glGetIntegeri_vFn
);
1304 debug_fn
.glGetInternalformativFn
= 0;
1305 if (ver
->IsAtLeastGL(4u, 2u) || ver
->IsAtLeastGLES(3u, 0u)) {
1306 fn
.glGetInternalformativFn
= reinterpret_cast<glGetInternalformativProc
>(
1307 GetGLProcAddress("glGetInternalformativ"));
1308 DCHECK(fn
.glGetInternalformativFn
);
1311 debug_fn
.glGetProgramBinaryFn
= 0;
1312 if (ver
->IsAtLeastGL(4u, 1u) || ver
->IsAtLeastGLES(3u, 0u) ||
1313 ext
.b_GL_ARB_get_program_binary
) {
1314 fn
.glGetProgramBinaryFn
= reinterpret_cast<glGetProgramBinaryProc
>(
1315 GetGLProcAddress("glGetProgramBinary"));
1316 DCHECK(fn
.glGetProgramBinaryFn
);
1317 } else if (ext
.b_GL_OES_get_program_binary
) {
1318 fn
.glGetProgramBinaryFn
= reinterpret_cast<glGetProgramBinaryProc
>(
1319 GetGLProcAddress("glGetProgramBinaryOES"));
1320 DCHECK(fn
.glGetProgramBinaryFn
);
1323 debug_fn
.glGetProgramResourceLocationFn
= 0;
1324 if (ver
->IsAtLeastGL(4u, 3u) || ver
->IsAtLeastGLES(3u, 1u)) {
1325 fn
.glGetProgramResourceLocationFn
=
1326 reinterpret_cast<glGetProgramResourceLocationProc
>(
1327 GetGLProcAddress("glGetProgramResourceLocation"));
1328 DCHECK(fn
.glGetProgramResourceLocationFn
);
1331 debug_fn
.glGetQueryivFn
= 0;
1332 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1334 reinterpret_cast<glGetQueryivProc
>(GetGLProcAddress("glGetQueryiv"));
1335 DCHECK(fn
.glGetQueryivFn
);
1336 } else if (ext
.b_GL_ARB_occlusion_query
) {
1338 reinterpret_cast<glGetQueryivProc
>(GetGLProcAddress("glGetQueryivARB"));
1339 DCHECK(fn
.glGetQueryivFn
);
1340 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1341 ext
.b_GL_EXT_occlusion_query_boolean
) {
1343 reinterpret_cast<glGetQueryivProc
>(GetGLProcAddress("glGetQueryivEXT"));
1344 DCHECK(fn
.glGetQueryivFn
);
1347 debug_fn
.glGetQueryObjecti64vFn
= 0;
1348 if (ver
->IsAtLeastGL(3u, 3u) || ext
.b_GL_ARB_timer_query
) {
1349 fn
.glGetQueryObjecti64vFn
= reinterpret_cast<glGetQueryObjecti64vProc
>(
1350 GetGLProcAddress("glGetQueryObjecti64v"));
1351 DCHECK(fn
.glGetQueryObjecti64vFn
);
1352 } else if (ext
.b_GL_EXT_timer_query
|| ext
.b_GL_EXT_disjoint_timer_query
) {
1353 fn
.glGetQueryObjecti64vFn
= reinterpret_cast<glGetQueryObjecti64vProc
>(
1354 GetGLProcAddress("glGetQueryObjecti64vEXT"));
1355 DCHECK(fn
.glGetQueryObjecti64vFn
);
1358 debug_fn
.glGetQueryObjectivFn
= 0;
1360 fn
.glGetQueryObjectivFn
= reinterpret_cast<glGetQueryObjectivProc
>(
1361 GetGLProcAddress("glGetQueryObjectiv"));
1362 DCHECK(fn
.glGetQueryObjectivFn
);
1363 } else if (ext
.b_GL_ARB_occlusion_query
) {
1364 fn
.glGetQueryObjectivFn
= reinterpret_cast<glGetQueryObjectivProc
>(
1365 GetGLProcAddress("glGetQueryObjectivARB"));
1366 DCHECK(fn
.glGetQueryObjectivFn
);
1367 } else if (ext
.b_GL_EXT_disjoint_timer_query
) {
1368 fn
.glGetQueryObjectivFn
= reinterpret_cast<glGetQueryObjectivProc
>(
1369 GetGLProcAddress("glGetQueryObjectivEXT"));
1370 DCHECK(fn
.glGetQueryObjectivFn
);
1373 debug_fn
.glGetQueryObjectui64vFn
= 0;
1374 if (ver
->IsAtLeastGL(3u, 3u) || ext
.b_GL_ARB_timer_query
) {
1375 fn
.glGetQueryObjectui64vFn
= reinterpret_cast<glGetQueryObjectui64vProc
>(
1376 GetGLProcAddress("glGetQueryObjectui64v"));
1377 DCHECK(fn
.glGetQueryObjectui64vFn
);
1378 } else if (ext
.b_GL_EXT_timer_query
|| ext
.b_GL_EXT_disjoint_timer_query
) {
1379 fn
.glGetQueryObjectui64vFn
= reinterpret_cast<glGetQueryObjectui64vProc
>(
1380 GetGLProcAddress("glGetQueryObjectui64vEXT"));
1381 DCHECK(fn
.glGetQueryObjectui64vFn
);
1384 debug_fn
.glGetQueryObjectuivFn
= 0;
1385 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1386 fn
.glGetQueryObjectuivFn
= reinterpret_cast<glGetQueryObjectuivProc
>(
1387 GetGLProcAddress("glGetQueryObjectuiv"));
1388 DCHECK(fn
.glGetQueryObjectuivFn
);
1389 } else if (ext
.b_GL_ARB_occlusion_query
) {
1390 fn
.glGetQueryObjectuivFn
= reinterpret_cast<glGetQueryObjectuivProc
>(
1391 GetGLProcAddress("glGetQueryObjectuivARB"));
1392 DCHECK(fn
.glGetQueryObjectuivFn
);
1393 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1394 ext
.b_GL_EXT_occlusion_query_boolean
) {
1395 fn
.glGetQueryObjectuivFn
= reinterpret_cast<glGetQueryObjectuivProc
>(
1396 GetGLProcAddress("glGetQueryObjectuivEXT"));
1397 DCHECK(fn
.glGetQueryObjectuivFn
);
1400 debug_fn
.glGetRenderbufferParameterivEXTFn
= 0;
1401 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1402 fn
.glGetRenderbufferParameterivEXTFn
=
1403 reinterpret_cast<glGetRenderbufferParameterivEXTProc
>(
1404 GetGLProcAddress("glGetRenderbufferParameteriv"));
1405 DCHECK(fn
.glGetRenderbufferParameterivEXTFn
);
1406 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1407 fn
.glGetRenderbufferParameterivEXTFn
=
1408 reinterpret_cast<glGetRenderbufferParameterivEXTProc
>(
1409 GetGLProcAddress("glGetRenderbufferParameterivEXT"));
1410 DCHECK(fn
.glGetRenderbufferParameterivEXTFn
);
1413 debug_fn
.glGetSamplerParameterfvFn
= 0;
1414 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1415 fn
.glGetSamplerParameterfvFn
=
1416 reinterpret_cast<glGetSamplerParameterfvProc
>(
1417 GetGLProcAddress("glGetSamplerParameterfv"));
1418 DCHECK(fn
.glGetSamplerParameterfvFn
);
1421 debug_fn
.glGetSamplerParameterivFn
= 0;
1422 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1423 fn
.glGetSamplerParameterivFn
=
1424 reinterpret_cast<glGetSamplerParameterivProc
>(
1425 GetGLProcAddress("glGetSamplerParameteriv"));
1426 DCHECK(fn
.glGetSamplerParameterivFn
);
1429 debug_fn
.glGetShaderPrecisionFormatFn
= 0;
1430 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
1431 fn
.glGetShaderPrecisionFormatFn
=
1432 reinterpret_cast<glGetShaderPrecisionFormatProc
>(
1433 GetGLProcAddress("glGetShaderPrecisionFormat"));
1434 DCHECK(fn
.glGetShaderPrecisionFormatFn
);
1437 debug_fn
.glGetSyncivFn
= 0;
1438 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
1439 ext
.b_GL_ARB_sync
) {
1441 reinterpret_cast<glGetSyncivProc
>(GetGLProcAddress("glGetSynciv"));
1442 DCHECK(fn
.glGetSyncivFn
);
1445 debug_fn
.glGetTexLevelParameterfvFn
= 0;
1446 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 1u)) {
1447 fn
.glGetTexLevelParameterfvFn
=
1448 reinterpret_cast<glGetTexLevelParameterfvProc
>(
1449 GetGLProcAddress("glGetTexLevelParameterfv"));
1450 DCHECK(fn
.glGetTexLevelParameterfvFn
);
1453 debug_fn
.glGetTexLevelParameterivFn
= 0;
1454 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 1u)) {
1455 fn
.glGetTexLevelParameterivFn
=
1456 reinterpret_cast<glGetTexLevelParameterivProc
>(
1457 GetGLProcAddress("glGetTexLevelParameteriv"));
1458 DCHECK(fn
.glGetTexLevelParameterivFn
);
1461 debug_fn
.glGetTransformFeedbackVaryingFn
= 0;
1462 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1463 fn
.glGetTransformFeedbackVaryingFn
=
1464 reinterpret_cast<glGetTransformFeedbackVaryingProc
>(
1465 GetGLProcAddress("glGetTransformFeedbackVarying"));
1466 DCHECK(fn
.glGetTransformFeedbackVaryingFn
);
1469 debug_fn
.glGetTranslatedShaderSourceANGLEFn
= 0;
1470 if (ext
.b_GL_ANGLE_translated_shader_source
) {
1471 fn
.glGetTranslatedShaderSourceANGLEFn
=
1472 reinterpret_cast<glGetTranslatedShaderSourceANGLEProc
>(
1473 GetGLProcAddress("glGetTranslatedShaderSourceANGLE"));
1474 DCHECK(fn
.glGetTranslatedShaderSourceANGLEFn
);
1477 debug_fn
.glGetUniformBlockIndexFn
= 0;
1478 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1479 fn
.glGetUniformBlockIndexFn
= reinterpret_cast<glGetUniformBlockIndexProc
>(
1480 GetGLProcAddress("glGetUniformBlockIndex"));
1481 DCHECK(fn
.glGetUniformBlockIndexFn
);
1484 debug_fn
.glGetUniformIndicesFn
= 0;
1485 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
1486 fn
.glGetUniformIndicesFn
= reinterpret_cast<glGetUniformIndicesProc
>(
1487 GetGLProcAddress("glGetUniformIndices"));
1488 DCHECK(fn
.glGetUniformIndicesFn
);
1491 debug_fn
.glGetUniformuivFn
= 0;
1492 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1493 fn
.glGetUniformuivFn
= reinterpret_cast<glGetUniformuivProc
>(
1494 GetGLProcAddress("glGetUniformuiv"));
1495 DCHECK(fn
.glGetUniformuivFn
);
1498 debug_fn
.glInsertEventMarkerEXTFn
= 0;
1499 if (ext
.b_GL_EXT_debug_marker
) {
1500 fn
.glInsertEventMarkerEXTFn
= reinterpret_cast<glInsertEventMarkerEXTProc
>(
1501 GetGLProcAddress("glInsertEventMarkerEXT"));
1502 DCHECK(fn
.glInsertEventMarkerEXTFn
);
1505 debug_fn
.glInvalidateFramebufferFn
= 0;
1506 if (ver
->IsAtLeastGL(4u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1507 fn
.glInvalidateFramebufferFn
=
1508 reinterpret_cast<glInvalidateFramebufferProc
>(
1509 GetGLProcAddress("glInvalidateFramebuffer"));
1510 DCHECK(fn
.glInvalidateFramebufferFn
);
1513 debug_fn
.glInvalidateSubFramebufferFn
= 0;
1514 if (ver
->IsAtLeastGL(4u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1515 fn
.glInvalidateSubFramebufferFn
=
1516 reinterpret_cast<glInvalidateSubFramebufferProc
>(
1517 GetGLProcAddress("glInvalidateSubFramebuffer"));
1518 DCHECK(fn
.glInvalidateSubFramebufferFn
);
1521 debug_fn
.glIsFenceAPPLEFn
= 0;
1522 if (ext
.b_GL_APPLE_fence
) {
1523 fn
.glIsFenceAPPLEFn
= reinterpret_cast<glIsFenceAPPLEProc
>(
1524 GetGLProcAddress("glIsFenceAPPLE"));
1525 DCHECK(fn
.glIsFenceAPPLEFn
);
1528 debug_fn
.glIsFenceNVFn
= 0;
1529 if (ext
.b_GL_NV_fence
) {
1531 reinterpret_cast<glIsFenceNVProc
>(GetGLProcAddress("glIsFenceNV"));
1532 DCHECK(fn
.glIsFenceNVFn
);
1535 debug_fn
.glIsFramebufferEXTFn
= 0;
1536 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1537 fn
.glIsFramebufferEXTFn
= reinterpret_cast<glIsFramebufferEXTProc
>(
1538 GetGLProcAddress("glIsFramebuffer"));
1539 DCHECK(fn
.glIsFramebufferEXTFn
);
1540 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1541 fn
.glIsFramebufferEXTFn
= reinterpret_cast<glIsFramebufferEXTProc
>(
1542 GetGLProcAddress("glIsFramebufferEXT"));
1543 DCHECK(fn
.glIsFramebufferEXTFn
);
1546 debug_fn
.glIsPathNVFn
= 0;
1547 if (ext
.b_GL_NV_path_rendering
) {
1549 reinterpret_cast<glIsPathNVProc
>(GetGLProcAddress("glIsPathNV"));
1550 DCHECK(fn
.glIsPathNVFn
);
1553 debug_fn
.glIsQueryFn
= 0;
1554 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1556 reinterpret_cast<glIsQueryProc
>(GetGLProcAddress("glIsQuery"));
1557 DCHECK(fn
.glIsQueryFn
);
1558 } else if (ext
.b_GL_ARB_occlusion_query
) {
1560 reinterpret_cast<glIsQueryProc
>(GetGLProcAddress("glIsQueryARB"));
1561 DCHECK(fn
.glIsQueryFn
);
1562 } else if (ext
.b_GL_EXT_disjoint_timer_query
||
1563 ext
.b_GL_EXT_occlusion_query_boolean
) {
1565 reinterpret_cast<glIsQueryProc
>(GetGLProcAddress("glIsQueryEXT"));
1566 DCHECK(fn
.glIsQueryFn
);
1569 debug_fn
.glIsRenderbufferEXTFn
= 0;
1570 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1571 fn
.glIsRenderbufferEXTFn
= reinterpret_cast<glIsRenderbufferEXTProc
>(
1572 GetGLProcAddress("glIsRenderbuffer"));
1573 DCHECK(fn
.glIsRenderbufferEXTFn
);
1574 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1575 fn
.glIsRenderbufferEXTFn
= reinterpret_cast<glIsRenderbufferEXTProc
>(
1576 GetGLProcAddress("glIsRenderbufferEXT"));
1577 DCHECK(fn
.glIsRenderbufferEXTFn
);
1580 debug_fn
.glIsSamplerFn
= 0;
1581 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1583 reinterpret_cast<glIsSamplerProc
>(GetGLProcAddress("glIsSampler"));
1584 DCHECK(fn
.glIsSamplerFn
);
1587 debug_fn
.glIsSyncFn
= 0;
1588 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
1589 ext
.b_GL_ARB_sync
) {
1591 reinterpret_cast<glIsSyncProc
>(GetGLProcAddress("glIsSync"));
1592 DCHECK(fn
.glIsSyncFn
);
1595 debug_fn
.glIsTransformFeedbackFn
= 0;
1596 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
1597 fn
.glIsTransformFeedbackFn
= reinterpret_cast<glIsTransformFeedbackProc
>(
1598 GetGLProcAddress("glIsTransformFeedback"));
1599 DCHECK(fn
.glIsTransformFeedbackFn
);
1602 debug_fn
.glIsVertexArrayOESFn
= 0;
1603 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
1604 ext
.b_GL_ARB_vertex_array_object
) {
1605 fn
.glIsVertexArrayOESFn
= reinterpret_cast<glIsVertexArrayOESProc
>(
1606 GetGLProcAddress("glIsVertexArray"));
1607 DCHECK(fn
.glIsVertexArrayOESFn
);
1608 } else if (ext
.b_GL_OES_vertex_array_object
) {
1609 fn
.glIsVertexArrayOESFn
= reinterpret_cast<glIsVertexArrayOESProc
>(
1610 GetGLProcAddress("glIsVertexArrayOES"));
1611 DCHECK(fn
.glIsVertexArrayOESFn
);
1612 } else if (ext
.b_GL_APPLE_vertex_array_object
) {
1613 fn
.glIsVertexArrayOESFn
= reinterpret_cast<glIsVertexArrayOESProc
>(
1614 GetGLProcAddress("glIsVertexArrayAPPLE"));
1615 DCHECK(fn
.glIsVertexArrayOESFn
);
1618 debug_fn
.glMapBufferFn
= 0;
1621 reinterpret_cast<glMapBufferProc
>(GetGLProcAddress("glMapBuffer"));
1622 DCHECK(fn
.glMapBufferFn
);
1623 } else if (ext
.b_GL_OES_mapbuffer
) {
1625 reinterpret_cast<glMapBufferProc
>(GetGLProcAddress("glMapBufferOES"));
1626 DCHECK(fn
.glMapBufferFn
);
1629 debug_fn
.glMapBufferRangeFn
= 0;
1630 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u) ||
1631 ext
.b_GL_ARB_map_buffer_range
) {
1632 fn
.glMapBufferRangeFn
= reinterpret_cast<glMapBufferRangeProc
>(
1633 GetGLProcAddress("glMapBufferRange"));
1634 DCHECK(fn
.glMapBufferRangeFn
);
1635 } else if (ext
.b_GL_EXT_map_buffer_range
) {
1636 fn
.glMapBufferRangeFn
= reinterpret_cast<glMapBufferRangeProc
>(
1637 GetGLProcAddress("glMapBufferRangeEXT"));
1638 DCHECK(fn
.glMapBufferRangeFn
);
1641 debug_fn
.glMatrixLoadfEXTFn
= 0;
1642 if (ext
.b_GL_EXT_direct_state_access
|| ext
.b_GL_NV_path_rendering
) {
1643 fn
.glMatrixLoadfEXTFn
= reinterpret_cast<glMatrixLoadfEXTProc
>(
1644 GetGLProcAddress("glMatrixLoadfEXT"));
1645 DCHECK(fn
.glMatrixLoadfEXTFn
);
1648 debug_fn
.glMatrixLoadIdentityEXTFn
= 0;
1649 if (ext
.b_GL_EXT_direct_state_access
|| ext
.b_GL_NV_path_rendering
) {
1650 fn
.glMatrixLoadIdentityEXTFn
=
1651 reinterpret_cast<glMatrixLoadIdentityEXTProc
>(
1652 GetGLProcAddress("glMatrixLoadIdentityEXT"));
1653 DCHECK(fn
.glMatrixLoadIdentityEXTFn
);
1656 debug_fn
.glPathCommandsNVFn
= 0;
1657 if (ext
.b_GL_NV_path_rendering
) {
1658 fn
.glPathCommandsNVFn
= reinterpret_cast<glPathCommandsNVProc
>(
1659 GetGLProcAddress("glPathCommandsNV"));
1660 DCHECK(fn
.glPathCommandsNVFn
);
1663 debug_fn
.glPathParameterfNVFn
= 0;
1664 if (ext
.b_GL_NV_path_rendering
) {
1665 fn
.glPathParameterfNVFn
= reinterpret_cast<glPathParameterfNVProc
>(
1666 GetGLProcAddress("glPathParameterfNV"));
1667 DCHECK(fn
.glPathParameterfNVFn
);
1670 debug_fn
.glPathParameteriNVFn
= 0;
1671 if (ext
.b_GL_NV_path_rendering
) {
1672 fn
.glPathParameteriNVFn
= reinterpret_cast<glPathParameteriNVProc
>(
1673 GetGLProcAddress("glPathParameteriNV"));
1674 DCHECK(fn
.glPathParameteriNVFn
);
1677 debug_fn
.glPathStencilFuncNVFn
= 0;
1678 if (ext
.b_GL_NV_path_rendering
) {
1679 fn
.glPathStencilFuncNVFn
= reinterpret_cast<glPathStencilFuncNVProc
>(
1680 GetGLProcAddress("glPathStencilFuncNV"));
1681 DCHECK(fn
.glPathStencilFuncNVFn
);
1684 debug_fn
.glPauseTransformFeedbackFn
= 0;
1685 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
1686 fn
.glPauseTransformFeedbackFn
=
1687 reinterpret_cast<glPauseTransformFeedbackProc
>(
1688 GetGLProcAddress("glPauseTransformFeedback"));
1689 DCHECK(fn
.glPauseTransformFeedbackFn
);
1692 debug_fn
.glPointParameteriFn
= 0;
1694 fn
.glPointParameteriFn
= reinterpret_cast<glPointParameteriProc
>(
1695 GetGLProcAddress("glPointParameteri"));
1696 DCHECK(fn
.glPointParameteriFn
);
1699 debug_fn
.glPopGroupMarkerEXTFn
= 0;
1700 if (ext
.b_GL_EXT_debug_marker
) {
1701 fn
.glPopGroupMarkerEXTFn
= reinterpret_cast<glPopGroupMarkerEXTProc
>(
1702 GetGLProcAddress("glPopGroupMarkerEXT"));
1703 DCHECK(fn
.glPopGroupMarkerEXTFn
);
1706 debug_fn
.glProgramBinaryFn
= 0;
1707 if (ver
->IsAtLeastGL(4u, 1u) || ver
->IsAtLeastGLES(3u, 0u) ||
1708 ext
.b_GL_ARB_get_program_binary
) {
1709 fn
.glProgramBinaryFn
= reinterpret_cast<glProgramBinaryProc
>(
1710 GetGLProcAddress("glProgramBinary"));
1711 DCHECK(fn
.glProgramBinaryFn
);
1712 } else if (ext
.b_GL_OES_get_program_binary
) {
1713 fn
.glProgramBinaryFn
= reinterpret_cast<glProgramBinaryProc
>(
1714 GetGLProcAddress("glProgramBinaryOES"));
1715 DCHECK(fn
.glProgramBinaryFn
);
1718 debug_fn
.glProgramParameteriFn
= 0;
1719 if (ver
->IsAtLeastGL(4u, 1u) || ver
->IsAtLeastGLES(3u, 0u) ||
1720 ext
.b_GL_ARB_get_program_binary
) {
1721 fn
.glProgramParameteriFn
= reinterpret_cast<glProgramParameteriProc
>(
1722 GetGLProcAddress("glProgramParameteri"));
1723 DCHECK(fn
.glProgramParameteriFn
);
1726 debug_fn
.glPushGroupMarkerEXTFn
= 0;
1727 if (ext
.b_GL_EXT_debug_marker
) {
1728 fn
.glPushGroupMarkerEXTFn
= reinterpret_cast<glPushGroupMarkerEXTProc
>(
1729 GetGLProcAddress("glPushGroupMarkerEXT"));
1730 DCHECK(fn
.glPushGroupMarkerEXTFn
);
1733 debug_fn
.glQueryCounterFn
= 0;
1734 if (ver
->IsAtLeastGL(3u, 3u) || ext
.b_GL_ARB_timer_query
) {
1735 fn
.glQueryCounterFn
= reinterpret_cast<glQueryCounterProc
>(
1736 GetGLProcAddress("glQueryCounter"));
1737 DCHECK(fn
.glQueryCounterFn
);
1738 } else if (ext
.b_GL_EXT_disjoint_timer_query
) {
1739 fn
.glQueryCounterFn
= reinterpret_cast<glQueryCounterProc
>(
1740 GetGLProcAddress("glQueryCounterEXT"));
1741 DCHECK(fn
.glQueryCounterFn
);
1744 debug_fn
.glReadBufferFn
= 0;
1745 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1747 reinterpret_cast<glReadBufferProc
>(GetGLProcAddress("glReadBuffer"));
1748 DCHECK(fn
.glReadBufferFn
);
1751 debug_fn
.glReleaseShaderCompilerFn
= 0;
1752 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
1753 fn
.glReleaseShaderCompilerFn
=
1754 reinterpret_cast<glReleaseShaderCompilerProc
>(
1755 GetGLProcAddress("glReleaseShaderCompiler"));
1756 DCHECK(fn
.glReleaseShaderCompilerFn
);
1759 debug_fn
.glRenderbufferStorageEXTFn
= 0;
1760 if (ver
->IsAtLeastGL(3u, 0u) || ver
->is_es
) {
1761 fn
.glRenderbufferStorageEXTFn
=
1762 reinterpret_cast<glRenderbufferStorageEXTProc
>(
1763 GetGLProcAddress("glRenderbufferStorage"));
1764 DCHECK(fn
.glRenderbufferStorageEXTFn
);
1765 } else if (ext
.b_GL_EXT_framebuffer_object
) {
1766 fn
.glRenderbufferStorageEXTFn
=
1767 reinterpret_cast<glRenderbufferStorageEXTProc
>(
1768 GetGLProcAddress("glRenderbufferStorageEXT"));
1769 DCHECK(fn
.glRenderbufferStorageEXTFn
);
1772 debug_fn
.glRenderbufferStorageMultisampleFn
= 0;
1773 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1774 fn
.glRenderbufferStorageMultisampleFn
=
1775 reinterpret_cast<glRenderbufferStorageMultisampleProc
>(
1776 GetGLProcAddress("glRenderbufferStorageMultisample"));
1777 DCHECK(fn
.glRenderbufferStorageMultisampleFn
);
1780 debug_fn
.glRenderbufferStorageMultisampleANGLEFn
= 0;
1781 if (ext
.b_GL_ANGLE_framebuffer_multisample
) {
1782 fn
.glRenderbufferStorageMultisampleANGLEFn
=
1783 reinterpret_cast<glRenderbufferStorageMultisampleANGLEProc
>(
1784 GetGLProcAddress("glRenderbufferStorageMultisampleANGLE"));
1785 DCHECK(fn
.glRenderbufferStorageMultisampleANGLEFn
);
1788 debug_fn
.glRenderbufferStorageMultisampleEXTFn
= 0;
1789 if (ext
.b_GL_EXT_multisampled_render_to_texture
||
1790 ext
.b_GL_EXT_framebuffer_multisample
) {
1791 fn
.glRenderbufferStorageMultisampleEXTFn
=
1792 reinterpret_cast<glRenderbufferStorageMultisampleEXTProc
>(
1793 GetGLProcAddress("glRenderbufferStorageMultisampleEXT"));
1794 DCHECK(fn
.glRenderbufferStorageMultisampleEXTFn
);
1797 debug_fn
.glRenderbufferStorageMultisampleIMGFn
= 0;
1798 if (ext
.b_GL_IMG_multisampled_render_to_texture
) {
1799 fn
.glRenderbufferStorageMultisampleIMGFn
=
1800 reinterpret_cast<glRenderbufferStorageMultisampleIMGProc
>(
1801 GetGLProcAddress("glRenderbufferStorageMultisampleIMG"));
1802 DCHECK(fn
.glRenderbufferStorageMultisampleIMGFn
);
1805 debug_fn
.glResumeTransformFeedbackFn
= 0;
1806 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(4u, 0u)) {
1807 fn
.glResumeTransformFeedbackFn
=
1808 reinterpret_cast<glResumeTransformFeedbackProc
>(
1809 GetGLProcAddress("glResumeTransformFeedback"));
1810 DCHECK(fn
.glResumeTransformFeedbackFn
);
1813 debug_fn
.glSamplerParameterfFn
= 0;
1814 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1815 fn
.glSamplerParameterfFn
= reinterpret_cast<glSamplerParameterfProc
>(
1816 GetGLProcAddress("glSamplerParameterf"));
1817 DCHECK(fn
.glSamplerParameterfFn
);
1820 debug_fn
.glSamplerParameterfvFn
= 0;
1821 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1822 fn
.glSamplerParameterfvFn
= reinterpret_cast<glSamplerParameterfvProc
>(
1823 GetGLProcAddress("glSamplerParameterfv"));
1824 DCHECK(fn
.glSamplerParameterfvFn
);
1827 debug_fn
.glSamplerParameteriFn
= 0;
1828 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1829 fn
.glSamplerParameteriFn
= reinterpret_cast<glSamplerParameteriProc
>(
1830 GetGLProcAddress("glSamplerParameteri"));
1831 DCHECK(fn
.glSamplerParameteriFn
);
1834 debug_fn
.glSamplerParameterivFn
= 0;
1835 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
1836 fn
.glSamplerParameterivFn
= reinterpret_cast<glSamplerParameterivProc
>(
1837 GetGLProcAddress("glSamplerParameteriv"));
1838 DCHECK(fn
.glSamplerParameterivFn
);
1841 debug_fn
.glSetFenceAPPLEFn
= 0;
1842 if (ext
.b_GL_APPLE_fence
) {
1843 fn
.glSetFenceAPPLEFn
= reinterpret_cast<glSetFenceAPPLEProc
>(
1844 GetGLProcAddress("glSetFenceAPPLE"));
1845 DCHECK(fn
.glSetFenceAPPLEFn
);
1848 debug_fn
.glSetFenceNVFn
= 0;
1849 if (ext
.b_GL_NV_fence
) {
1851 reinterpret_cast<glSetFenceNVProc
>(GetGLProcAddress("glSetFenceNV"));
1852 DCHECK(fn
.glSetFenceNVFn
);
1855 debug_fn
.glShaderBinaryFn
= 0;
1856 if (ver
->IsAtLeastGL(4u, 1u) || ver
->is_es
) {
1857 fn
.glShaderBinaryFn
= reinterpret_cast<glShaderBinaryProc
>(
1858 GetGLProcAddress("glShaderBinary"));
1859 DCHECK(fn
.glShaderBinaryFn
);
1862 debug_fn
.glStencilFillPathNVFn
= 0;
1863 if (ext
.b_GL_NV_path_rendering
) {
1864 fn
.glStencilFillPathNVFn
= reinterpret_cast<glStencilFillPathNVProc
>(
1865 GetGLProcAddress("glStencilFillPathNV"));
1866 DCHECK(fn
.glStencilFillPathNVFn
);
1869 debug_fn
.glStencilStrokePathNVFn
= 0;
1870 if (ext
.b_GL_NV_path_rendering
) {
1871 fn
.glStencilStrokePathNVFn
= reinterpret_cast<glStencilStrokePathNVProc
>(
1872 GetGLProcAddress("glStencilStrokePathNV"));
1873 DCHECK(fn
.glStencilStrokePathNVFn
);
1876 debug_fn
.glStencilThenCoverFillPathNVFn
= 0;
1877 if (ext
.b_GL_NV_path_rendering
) {
1878 fn
.glStencilThenCoverFillPathNVFn
=
1879 reinterpret_cast<glStencilThenCoverFillPathNVProc
>(
1880 GetGLProcAddress("glStencilThenCoverFillPathNV"));
1883 debug_fn
.glStencilThenCoverStrokePathNVFn
= 0;
1884 if (ext
.b_GL_NV_path_rendering
) {
1885 fn
.glStencilThenCoverStrokePathNVFn
=
1886 reinterpret_cast<glStencilThenCoverStrokePathNVProc
>(
1887 GetGLProcAddress("glStencilThenCoverStrokePathNV"));
1890 debug_fn
.glTestFenceAPPLEFn
= 0;
1891 if (ext
.b_GL_APPLE_fence
) {
1892 fn
.glTestFenceAPPLEFn
= reinterpret_cast<glTestFenceAPPLEProc
>(
1893 GetGLProcAddress("glTestFenceAPPLE"));
1894 DCHECK(fn
.glTestFenceAPPLEFn
);
1897 debug_fn
.glTestFenceNVFn
= 0;
1898 if (ext
.b_GL_NV_fence
) {
1899 fn
.glTestFenceNVFn
=
1900 reinterpret_cast<glTestFenceNVProc
>(GetGLProcAddress("glTestFenceNV"));
1901 DCHECK(fn
.glTestFenceNVFn
);
1904 debug_fn
.glTexImage3DFn
= 0;
1905 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1907 reinterpret_cast<glTexImage3DProc
>(GetGLProcAddress("glTexImage3D"));
1908 DCHECK(fn
.glTexImage3DFn
);
1911 debug_fn
.glTexStorage2DEXTFn
= 0;
1912 if (ver
->IsAtLeastGL(4u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
1913 ext
.b_GL_ARB_texture_storage
) {
1914 fn
.glTexStorage2DEXTFn
= reinterpret_cast<glTexStorage2DEXTProc
>(
1915 GetGLProcAddress("glTexStorage2D"));
1916 DCHECK(fn
.glTexStorage2DEXTFn
);
1917 } else if (ext
.b_GL_EXT_texture_storage
) {
1918 fn
.glTexStorage2DEXTFn
= reinterpret_cast<glTexStorage2DEXTProc
>(
1919 GetGLProcAddress("glTexStorage2DEXT"));
1920 DCHECK(fn
.glTexStorage2DEXTFn
);
1923 debug_fn
.glTexStorage3DFn
= 0;
1924 if (ver
->IsAtLeastGL(4u, 2u) || ver
->IsAtLeastGLES(3u, 0u)) {
1925 fn
.glTexStorage3DFn
= reinterpret_cast<glTexStorage3DProc
>(
1926 GetGLProcAddress("glTexStorage3D"));
1927 DCHECK(fn
.glTexStorage3DFn
);
1930 debug_fn
.glTexSubImage3DFn
= 0;
1931 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
1932 fn
.glTexSubImage3DFn
= reinterpret_cast<glTexSubImage3DProc
>(
1933 GetGLProcAddress("glTexSubImage3D"));
1934 DCHECK(fn
.glTexSubImage3DFn
);
1937 debug_fn
.glTransformFeedbackVaryingsFn
= 0;
1938 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1939 fn
.glTransformFeedbackVaryingsFn
=
1940 reinterpret_cast<glTransformFeedbackVaryingsProc
>(
1941 GetGLProcAddress("glTransformFeedbackVaryings"));
1942 DCHECK(fn
.glTransformFeedbackVaryingsFn
);
1945 debug_fn
.glUniform1uiFn
= 0;
1946 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1948 reinterpret_cast<glUniform1uiProc
>(GetGLProcAddress("glUniform1ui"));
1949 DCHECK(fn
.glUniform1uiFn
);
1952 debug_fn
.glUniform1uivFn
= 0;
1953 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1954 fn
.glUniform1uivFn
=
1955 reinterpret_cast<glUniform1uivProc
>(GetGLProcAddress("glUniform1uiv"));
1956 DCHECK(fn
.glUniform1uivFn
);
1959 debug_fn
.glUniform2uiFn
= 0;
1960 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1962 reinterpret_cast<glUniform2uiProc
>(GetGLProcAddress("glUniform2ui"));
1963 DCHECK(fn
.glUniform2uiFn
);
1966 debug_fn
.glUniform2uivFn
= 0;
1967 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1968 fn
.glUniform2uivFn
=
1969 reinterpret_cast<glUniform2uivProc
>(GetGLProcAddress("glUniform2uiv"));
1970 DCHECK(fn
.glUniform2uivFn
);
1973 debug_fn
.glUniform3uiFn
= 0;
1974 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1976 reinterpret_cast<glUniform3uiProc
>(GetGLProcAddress("glUniform3ui"));
1977 DCHECK(fn
.glUniform3uiFn
);
1980 debug_fn
.glUniform3uivFn
= 0;
1981 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1982 fn
.glUniform3uivFn
=
1983 reinterpret_cast<glUniform3uivProc
>(GetGLProcAddress("glUniform3uiv"));
1984 DCHECK(fn
.glUniform3uivFn
);
1987 debug_fn
.glUniform4uiFn
= 0;
1988 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1990 reinterpret_cast<glUniform4uiProc
>(GetGLProcAddress("glUniform4ui"));
1991 DCHECK(fn
.glUniform4uiFn
);
1994 debug_fn
.glUniform4uivFn
= 0;
1995 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
1996 fn
.glUniform4uivFn
=
1997 reinterpret_cast<glUniform4uivProc
>(GetGLProcAddress("glUniform4uiv"));
1998 DCHECK(fn
.glUniform4uivFn
);
2001 debug_fn
.glUniformBlockBindingFn
= 0;
2002 if (ver
->IsAtLeastGLES(3u, 0u) || ver
->IsAtLeastGL(3u, 1u)) {
2003 fn
.glUniformBlockBindingFn
= reinterpret_cast<glUniformBlockBindingProc
>(
2004 GetGLProcAddress("glUniformBlockBinding"));
2005 DCHECK(fn
.glUniformBlockBindingFn
);
2008 debug_fn
.glUniformMatrix2x3fvFn
= 0;
2009 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
2010 fn
.glUniformMatrix2x3fvFn
= reinterpret_cast<glUniformMatrix2x3fvProc
>(
2011 GetGLProcAddress("glUniformMatrix2x3fv"));
2012 DCHECK(fn
.glUniformMatrix2x3fvFn
);
2015 debug_fn
.glUniformMatrix2x4fvFn
= 0;
2016 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
2017 fn
.glUniformMatrix2x4fvFn
= reinterpret_cast<glUniformMatrix2x4fvProc
>(
2018 GetGLProcAddress("glUniformMatrix2x4fv"));
2019 DCHECK(fn
.glUniformMatrix2x4fvFn
);
2022 debug_fn
.glUniformMatrix3x2fvFn
= 0;
2023 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
2024 fn
.glUniformMatrix3x2fvFn
= reinterpret_cast<glUniformMatrix3x2fvProc
>(
2025 GetGLProcAddress("glUniformMatrix3x2fv"));
2026 DCHECK(fn
.glUniformMatrix3x2fvFn
);
2029 debug_fn
.glUniformMatrix3x4fvFn
= 0;
2030 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
2031 fn
.glUniformMatrix3x4fvFn
= reinterpret_cast<glUniformMatrix3x4fvProc
>(
2032 GetGLProcAddress("glUniformMatrix3x4fv"));
2033 DCHECK(fn
.glUniformMatrix3x4fvFn
);
2036 debug_fn
.glUniformMatrix4x2fvFn
= 0;
2037 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
2038 fn
.glUniformMatrix4x2fvFn
= reinterpret_cast<glUniformMatrix4x2fvProc
>(
2039 GetGLProcAddress("glUniformMatrix4x2fv"));
2040 DCHECK(fn
.glUniformMatrix4x2fvFn
);
2043 debug_fn
.glUniformMatrix4x3fvFn
= 0;
2044 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
2045 fn
.glUniformMatrix4x3fvFn
= reinterpret_cast<glUniformMatrix4x3fvProc
>(
2046 GetGLProcAddress("glUniformMatrix4x3fv"));
2047 DCHECK(fn
.glUniformMatrix4x3fvFn
);
2050 debug_fn
.glUnmapBufferFn
= 0;
2051 if (!ver
->is_es
|| ver
->IsAtLeastGLES(3u, 0u)) {
2052 fn
.glUnmapBufferFn
=
2053 reinterpret_cast<glUnmapBufferProc
>(GetGLProcAddress("glUnmapBuffer"));
2054 DCHECK(fn
.glUnmapBufferFn
);
2055 } else if (ext
.b_GL_OES_mapbuffer
) {
2056 fn
.glUnmapBufferFn
= reinterpret_cast<glUnmapBufferProc
>(
2057 GetGLProcAddress("glUnmapBufferOES"));
2058 DCHECK(fn
.glUnmapBufferFn
);
2061 debug_fn
.glVertexAttribDivisorANGLEFn
= 0;
2062 if (ver
->IsAtLeastGL(3u, 3u) || ver
->IsAtLeastGLES(3u, 0u)) {
2063 fn
.glVertexAttribDivisorANGLEFn
=
2064 reinterpret_cast<glVertexAttribDivisorANGLEProc
>(
2065 GetGLProcAddress("glVertexAttribDivisor"));
2066 DCHECK(fn
.glVertexAttribDivisorANGLEFn
);
2067 } else if (ext
.b_GL_ARB_instanced_arrays
) {
2068 fn
.glVertexAttribDivisorANGLEFn
=
2069 reinterpret_cast<glVertexAttribDivisorANGLEProc
>(
2070 GetGLProcAddress("glVertexAttribDivisorARB"));
2071 DCHECK(fn
.glVertexAttribDivisorANGLEFn
);
2072 } else if (ext
.b_GL_ANGLE_instanced_arrays
) {
2073 fn
.glVertexAttribDivisorANGLEFn
=
2074 reinterpret_cast<glVertexAttribDivisorANGLEProc
>(
2075 GetGLProcAddress("glVertexAttribDivisorANGLE"));
2076 DCHECK(fn
.glVertexAttribDivisorANGLEFn
);
2079 debug_fn
.glVertexAttribI4iFn
= 0;
2080 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
2081 fn
.glVertexAttribI4iFn
= reinterpret_cast<glVertexAttribI4iProc
>(
2082 GetGLProcAddress("glVertexAttribI4i"));
2083 DCHECK(fn
.glVertexAttribI4iFn
);
2086 debug_fn
.glVertexAttribI4ivFn
= 0;
2087 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
2088 fn
.glVertexAttribI4ivFn
= reinterpret_cast<glVertexAttribI4ivProc
>(
2089 GetGLProcAddress("glVertexAttribI4iv"));
2090 DCHECK(fn
.glVertexAttribI4ivFn
);
2093 debug_fn
.glVertexAttribI4uiFn
= 0;
2094 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
2095 fn
.glVertexAttribI4uiFn
= reinterpret_cast<glVertexAttribI4uiProc
>(
2096 GetGLProcAddress("glVertexAttribI4ui"));
2097 DCHECK(fn
.glVertexAttribI4uiFn
);
2100 debug_fn
.glVertexAttribI4uivFn
= 0;
2101 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
2102 fn
.glVertexAttribI4uivFn
= reinterpret_cast<glVertexAttribI4uivProc
>(
2103 GetGLProcAddress("glVertexAttribI4uiv"));
2104 DCHECK(fn
.glVertexAttribI4uivFn
);
2107 debug_fn
.glVertexAttribIPointerFn
= 0;
2108 if (ver
->IsAtLeastGL(3u, 0u) || ver
->IsAtLeastGLES(3u, 0u)) {
2109 fn
.glVertexAttribIPointerFn
= reinterpret_cast<glVertexAttribIPointerProc
>(
2110 GetGLProcAddress("glVertexAttribIPointer"));
2111 DCHECK(fn
.glVertexAttribIPointerFn
);
2114 debug_fn
.glWaitSyncFn
= 0;
2115 if (ver
->IsAtLeastGL(3u, 2u) || ver
->IsAtLeastGLES(3u, 0u) ||
2116 ext
.b_GL_ARB_sync
) {
2118 reinterpret_cast<glWaitSyncProc
>(GetGLProcAddress("glWaitSync"));
2119 DCHECK(fn
.glWaitSyncFn
);
2122 if (g_debugBindingsInitialized
)
2123 InitializeDebugBindings();
2128 static void GL_BINDING_CALL
Debug_glActiveTexture(GLenum texture
) {
2129 GL_SERVICE_LOG("glActiveTexture"
2130 << "(" << GLEnums::GetStringEnum(texture
) << ")");
2131 g_driver_gl
.debug_fn
.glActiveTextureFn(texture
);
2134 static void GL_BINDING_CALL
Debug_glApplyFramebufferAttachmentCMAAINTEL(void) {
2135 GL_SERVICE_LOG("glApplyFramebufferAttachmentCMAAINTEL"
2138 g_driver_gl
.debug_fn
.glApplyFramebufferAttachmentCMAAINTELFn();
2141 static void GL_BINDING_CALL
Debug_glAttachShader(GLuint program
,
2143 GL_SERVICE_LOG("glAttachShader"
2144 << "(" << program
<< ", " << shader
<< ")");
2145 g_driver_gl
.debug_fn
.glAttachShaderFn(program
, shader
);
2148 static void GL_BINDING_CALL
Debug_glBeginQuery(GLenum target
, GLuint id
) {
2149 GL_SERVICE_LOG("glBeginQuery"
2150 << "(" << GLEnums::GetStringEnum(target
) << ", " << id
<< ")");
2151 g_driver_gl
.debug_fn
.glBeginQueryFn(target
, id
);
2154 static void GL_BINDING_CALL
2155 Debug_glBeginTransformFeedback(GLenum primitiveMode
) {
2156 GL_SERVICE_LOG("glBeginTransformFeedback"
2157 << "(" << GLEnums::GetStringEnum(primitiveMode
) << ")");
2158 g_driver_gl
.debug_fn
.glBeginTransformFeedbackFn(primitiveMode
);
2161 static void GL_BINDING_CALL
Debug_glBindAttribLocation(GLuint program
,
2164 GL_SERVICE_LOG("glBindAttribLocation"
2165 << "(" << program
<< ", " << index
<< ", " << name
<< ")");
2166 g_driver_gl
.debug_fn
.glBindAttribLocationFn(program
, index
, name
);
2169 static void GL_BINDING_CALL
Debug_glBindBuffer(GLenum target
, GLuint buffer
) {
2170 GL_SERVICE_LOG("glBindBuffer"
2171 << "(" << GLEnums::GetStringEnum(target
) << ", " << buffer
2173 g_driver_gl
.debug_fn
.glBindBufferFn(target
, buffer
);
2176 static void GL_BINDING_CALL
Debug_glBindBufferBase(GLenum target
,
2179 GL_SERVICE_LOG("glBindBufferBase"
2180 << "(" << GLEnums::GetStringEnum(target
) << ", " << index
2181 << ", " << buffer
<< ")");
2182 g_driver_gl
.debug_fn
.glBindBufferBaseFn(target
, index
, buffer
);
2185 static void GL_BINDING_CALL
Debug_glBindBufferRange(GLenum target
,
2190 GL_SERVICE_LOG("glBindBufferRange"
2191 << "(" << GLEnums::GetStringEnum(target
) << ", " << index
2192 << ", " << buffer
<< ", " << offset
<< ", " << size
<< ")");
2193 g_driver_gl
.debug_fn
.glBindBufferRangeFn(target
, index
, buffer
, offset
, size
);
2196 static void GL_BINDING_CALL
Debug_glBindFragDataLocation(GLuint program
,
2199 GL_SERVICE_LOG("glBindFragDataLocation"
2200 << "(" << program
<< ", " << colorNumber
<< ", " << name
2202 g_driver_gl
.debug_fn
.glBindFragDataLocationFn(program
, colorNumber
, name
);
2205 static void GL_BINDING_CALL
2206 Debug_glBindFragDataLocationIndexed(GLuint program
,
2210 GL_SERVICE_LOG("glBindFragDataLocationIndexed"
2211 << "(" << program
<< ", " << colorNumber
<< ", " << index
2212 << ", " << name
<< ")");
2213 g_driver_gl
.debug_fn
.glBindFragDataLocationIndexedFn(program
, colorNumber
,
2217 static void GL_BINDING_CALL
Debug_glBindFramebufferEXT(GLenum target
,
2218 GLuint framebuffer
) {
2219 GL_SERVICE_LOG("glBindFramebufferEXT"
2220 << "(" << GLEnums::GetStringEnum(target
) << ", " << framebuffer
2222 g_driver_gl
.debug_fn
.glBindFramebufferEXTFn(target
, framebuffer
);
2225 static void GL_BINDING_CALL
Debug_glBindRenderbufferEXT(GLenum target
,
2226 GLuint renderbuffer
) {
2227 GL_SERVICE_LOG("glBindRenderbufferEXT"
2228 << "(" << GLEnums::GetStringEnum(target
) << ", "
2229 << renderbuffer
<< ")");
2230 g_driver_gl
.debug_fn
.glBindRenderbufferEXTFn(target
, renderbuffer
);
2233 static void GL_BINDING_CALL
Debug_glBindSampler(GLuint unit
, GLuint sampler
) {
2234 GL_SERVICE_LOG("glBindSampler"
2235 << "(" << unit
<< ", " << sampler
<< ")");
2236 g_driver_gl
.debug_fn
.glBindSamplerFn(unit
, sampler
);
2239 static void GL_BINDING_CALL
Debug_glBindTexture(GLenum target
, GLuint texture
) {
2240 GL_SERVICE_LOG("glBindTexture"
2241 << "(" << GLEnums::GetStringEnum(target
) << ", " << texture
2243 g_driver_gl
.debug_fn
.glBindTextureFn(target
, texture
);
2246 static void GL_BINDING_CALL
Debug_glBindTransformFeedback(GLenum target
,
2248 GL_SERVICE_LOG("glBindTransformFeedback"
2249 << "(" << GLEnums::GetStringEnum(target
) << ", " << id
<< ")");
2250 g_driver_gl
.debug_fn
.glBindTransformFeedbackFn(target
, id
);
2253 static void GL_BINDING_CALL
Debug_glBindVertexArrayOES(GLuint array
) {
2254 GL_SERVICE_LOG("glBindVertexArrayOES"
2255 << "(" << array
<< ")");
2256 g_driver_gl
.debug_fn
.glBindVertexArrayOESFn(array
);
2259 static void GL_BINDING_CALL
Debug_glBlendBarrierKHR(void) {
2260 GL_SERVICE_LOG("glBlendBarrierKHR"
2263 g_driver_gl
.debug_fn
.glBlendBarrierKHRFn();
2266 static void GL_BINDING_CALL
Debug_glBlendColor(GLclampf red
,
2270 GL_SERVICE_LOG("glBlendColor"
2271 << "(" << red
<< ", " << green
<< ", " << blue
<< ", " << alpha
2273 g_driver_gl
.debug_fn
.glBlendColorFn(red
, green
, blue
, alpha
);
2276 static void GL_BINDING_CALL
Debug_glBlendEquation(GLenum mode
) {
2277 GL_SERVICE_LOG("glBlendEquation"
2278 << "(" << GLEnums::GetStringEnum(mode
) << ")");
2279 g_driver_gl
.debug_fn
.glBlendEquationFn(mode
);
2282 static void GL_BINDING_CALL
Debug_glBlendEquationSeparate(GLenum modeRGB
,
2284 GL_SERVICE_LOG("glBlendEquationSeparate"
2285 << "(" << GLEnums::GetStringEnum(modeRGB
) << ", "
2286 << GLEnums::GetStringEnum(modeAlpha
) << ")");
2287 g_driver_gl
.debug_fn
.glBlendEquationSeparateFn(modeRGB
, modeAlpha
);
2290 static void GL_BINDING_CALL
Debug_glBlendFunc(GLenum sfactor
, GLenum dfactor
) {
2291 GL_SERVICE_LOG("glBlendFunc"
2292 << "(" << GLEnums::GetStringEnum(sfactor
) << ", "
2293 << GLEnums::GetStringEnum(dfactor
) << ")");
2294 g_driver_gl
.debug_fn
.glBlendFuncFn(sfactor
, dfactor
);
2297 static void GL_BINDING_CALL
Debug_glBlendFuncSeparate(GLenum srcRGB
,
2301 GL_SERVICE_LOG("glBlendFuncSeparate"
2302 << "(" << GLEnums::GetStringEnum(srcRGB
) << ", "
2303 << GLEnums::GetStringEnum(dstRGB
) << ", "
2304 << GLEnums::GetStringEnum(srcAlpha
) << ", "
2305 << GLEnums::GetStringEnum(dstAlpha
) << ")");
2306 g_driver_gl
.debug_fn
.glBlendFuncSeparateFn(srcRGB
, dstRGB
, srcAlpha
,
2310 static void GL_BINDING_CALL
Debug_glBlitFramebuffer(GLint srcX0
,
2320 GL_SERVICE_LOG("glBlitFramebuffer"
2321 << "(" << srcX0
<< ", " << srcY0
<< ", " << srcX1
<< ", "
2322 << srcY1
<< ", " << dstX0
<< ", " << dstY0
<< ", " << dstX1
2323 << ", " << dstY1
<< ", " << mask
<< ", "
2324 << GLEnums::GetStringEnum(filter
) << ")");
2325 g_driver_gl
.debug_fn
.glBlitFramebufferFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
,
2326 dstY0
, dstX1
, dstY1
, mask
, filter
);
2329 static void GL_BINDING_CALL
Debug_glBlitFramebufferANGLE(GLint srcX0
,
2339 GL_SERVICE_LOG("glBlitFramebufferANGLE"
2340 << "(" << srcX0
<< ", " << srcY0
<< ", " << srcX1
<< ", "
2341 << srcY1
<< ", " << dstX0
<< ", " << dstY0
<< ", " << dstX1
2342 << ", " << dstY1
<< ", " << mask
<< ", "
2343 << GLEnums::GetStringEnum(filter
) << ")");
2344 g_driver_gl
.debug_fn
.glBlitFramebufferANGLEFn(
2345 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
2348 static void GL_BINDING_CALL
Debug_glBlitFramebufferEXT(GLint srcX0
,
2358 GL_SERVICE_LOG("glBlitFramebufferEXT"
2359 << "(" << srcX0
<< ", " << srcY0
<< ", " << srcX1
<< ", "
2360 << srcY1
<< ", " << dstX0
<< ", " << dstY0
<< ", " << dstX1
2361 << ", " << dstY1
<< ", " << mask
<< ", "
2362 << GLEnums::GetStringEnum(filter
) << ")");
2363 g_driver_gl
.debug_fn
.glBlitFramebufferEXTFn(
2364 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
2367 static void GL_BINDING_CALL
Debug_glBufferData(GLenum target
,
2371 GL_SERVICE_LOG("glBufferData"
2372 << "(" << GLEnums::GetStringEnum(target
) << ", " << size
2373 << ", " << static_cast<const void*>(data
) << ", "
2374 << GLEnums::GetStringEnum(usage
) << ")");
2375 g_driver_gl
.debug_fn
.glBufferDataFn(target
, size
, data
, usage
);
2378 static void GL_BINDING_CALL
Debug_glBufferSubData(GLenum target
,
2382 GL_SERVICE_LOG("glBufferSubData"
2383 << "(" << GLEnums::GetStringEnum(target
) << ", " << offset
2384 << ", " << size
<< ", " << static_cast<const void*>(data
)
2386 g_driver_gl
.debug_fn
.glBufferSubDataFn(target
, offset
, size
, data
);
2389 static GLenum GL_BINDING_CALL
Debug_glCheckFramebufferStatusEXT(GLenum target
) {
2390 GL_SERVICE_LOG("glCheckFramebufferStatusEXT"
2391 << "(" << GLEnums::GetStringEnum(target
) << ")");
2392 GLenum result
= g_driver_gl
.debug_fn
.glCheckFramebufferStatusEXTFn(target
);
2394 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringEnum(result
));
2399 static void GL_BINDING_CALL
Debug_glClear(GLbitfield mask
) {
2400 GL_SERVICE_LOG("glClear"
2401 << "(" << mask
<< ")");
2402 g_driver_gl
.debug_fn
.glClearFn(mask
);
2405 static void GL_BINDING_CALL
Debug_glClearBufferfi(GLenum buffer
,
2407 const GLfloat depth
,
2409 GL_SERVICE_LOG("glClearBufferfi"
2410 << "(" << GLEnums::GetStringEnum(buffer
) << ", " << drawbuffer
2411 << ", " << depth
<< ", " << stencil
<< ")");
2412 g_driver_gl
.debug_fn
.glClearBufferfiFn(buffer
, drawbuffer
, depth
, stencil
);
2415 static void GL_BINDING_CALL
Debug_glClearBufferfv(GLenum buffer
,
2417 const GLfloat
* value
) {
2418 GL_SERVICE_LOG("glClearBufferfv"
2419 << "(" << GLEnums::GetStringEnum(buffer
) << ", " << drawbuffer
2420 << ", " << static_cast<const void*>(value
) << ")");
2421 g_driver_gl
.debug_fn
.glClearBufferfvFn(buffer
, drawbuffer
, value
);
2424 static void GL_BINDING_CALL
Debug_glClearBufferiv(GLenum buffer
,
2426 const GLint
* value
) {
2427 GL_SERVICE_LOG("glClearBufferiv"
2428 << "(" << GLEnums::GetStringEnum(buffer
) << ", " << drawbuffer
2429 << ", " << static_cast<const void*>(value
) << ")");
2430 g_driver_gl
.debug_fn
.glClearBufferivFn(buffer
, drawbuffer
, value
);
2433 static void GL_BINDING_CALL
Debug_glClearBufferuiv(GLenum buffer
,
2435 const GLuint
* value
) {
2436 GL_SERVICE_LOG("glClearBufferuiv"
2437 << "(" << GLEnums::GetStringEnum(buffer
) << ", " << drawbuffer
2438 << ", " << static_cast<const void*>(value
) << ")");
2439 g_driver_gl
.debug_fn
.glClearBufferuivFn(buffer
, drawbuffer
, value
);
2442 static void GL_BINDING_CALL
Debug_glClearColor(GLclampf red
,
2446 GL_SERVICE_LOG("glClearColor"
2447 << "(" << red
<< ", " << green
<< ", " << blue
<< ", " << alpha
2449 g_driver_gl
.debug_fn
.glClearColorFn(red
, green
, blue
, alpha
);
2452 static void GL_BINDING_CALL
Debug_glClearDepth(GLclampd depth
) {
2453 GL_SERVICE_LOG("glClearDepth"
2454 << "(" << depth
<< ")");
2455 g_driver_gl
.debug_fn
.glClearDepthFn(depth
);
2458 static void GL_BINDING_CALL
Debug_glClearDepthf(GLclampf depth
) {
2459 GL_SERVICE_LOG("glClearDepthf"
2460 << "(" << depth
<< ")");
2461 g_driver_gl
.debug_fn
.glClearDepthfFn(depth
);
2464 static void GL_BINDING_CALL
Debug_glClearStencil(GLint s
) {
2465 GL_SERVICE_LOG("glClearStencil"
2466 << "(" << s
<< ")");
2467 g_driver_gl
.debug_fn
.glClearStencilFn(s
);
2470 static GLenum GL_BINDING_CALL
Debug_glClientWaitSync(GLsync sync
,
2473 GL_SERVICE_LOG("glClientWaitSync"
2474 << "(" << sync
<< ", " << flags
<< ", " << timeout
<< ")");
2475 GLenum result
= g_driver_gl
.debug_fn
.glClientWaitSyncFn(sync
, flags
, timeout
);
2476 GL_SERVICE_LOG("GL_RESULT: " << result
);
2480 static void GL_BINDING_CALL
Debug_glColorMask(GLboolean red
,
2484 GL_SERVICE_LOG("glColorMask"
2485 << "(" << GLEnums::GetStringBool(red
) << ", "
2486 << GLEnums::GetStringBool(green
) << ", "
2487 << GLEnums::GetStringBool(blue
) << ", "
2488 << GLEnums::GetStringBool(alpha
) << ")");
2489 g_driver_gl
.debug_fn
.glColorMaskFn(red
, green
, blue
, alpha
);
2492 static void GL_BINDING_CALL
Debug_glCompileShader(GLuint shader
) {
2493 GL_SERVICE_LOG("glCompileShader"
2494 << "(" << shader
<< ")");
2495 g_driver_gl
.debug_fn
.glCompileShaderFn(shader
);
2498 static void GL_BINDING_CALL
Debug_glCompressedTexImage2D(GLenum target
,
2500 GLenum internalformat
,
2506 GL_SERVICE_LOG("glCompressedTexImage2D"
2507 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2508 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
2509 << width
<< ", " << height
<< ", " << border
<< ", "
2510 << imageSize
<< ", " << static_cast<const void*>(data
) << ")");
2511 g_driver_gl
.debug_fn
.glCompressedTexImage2DFn(
2512 target
, level
, internalformat
, width
, height
, border
, imageSize
, data
);
2515 static void GL_BINDING_CALL
Debug_glCompressedTexImage3D(GLenum target
,
2517 GLenum internalformat
,
2524 GL_SERVICE_LOG("glCompressedTexImage3D"
2525 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2526 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
2527 << width
<< ", " << height
<< ", " << depth
<< ", " << border
2528 << ", " << imageSize
<< ", " << static_cast<const void*>(data
)
2530 g_driver_gl
.debug_fn
.glCompressedTexImage3DFn(target
, level
, internalformat
,
2531 width
, height
, depth
, border
,
2535 static void GL_BINDING_CALL
Debug_glCompressedTexSubImage2D(GLenum target
,
2544 GL_SERVICE_LOG("glCompressedTexSubImage2D"
2545 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2546 << ", " << xoffset
<< ", " << yoffset
<< ", " << width
<< ", "
2547 << height
<< ", " << GLEnums::GetStringEnum(format
) << ", "
2548 << imageSize
<< ", " << static_cast<const void*>(data
) << ")");
2549 g_driver_gl
.debug_fn
.glCompressedTexSubImage2DFn(
2550 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
2553 static void GL_BINDING_CALL
Debug_glCompressedTexSubImage3D(GLenum target
,
2564 GL_SERVICE_LOG("glCompressedTexSubImage3D"
2565 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2566 << ", " << xoffset
<< ", " << yoffset
<< ", " << zoffset
2567 << ", " << width
<< ", " << height
<< ", " << depth
<< ", "
2568 << GLEnums::GetStringEnum(format
) << ", " << imageSize
<< ", "
2569 << static_cast<const void*>(data
) << ")");
2570 g_driver_gl
.debug_fn
.glCompressedTexSubImage3DFn(
2571 target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
, format
,
2575 static void GL_BINDING_CALL
Debug_glCopyBufferSubData(GLenum readTarget
,
2577 GLintptr readOffset
,
2578 GLintptr writeOffset
,
2580 GL_SERVICE_LOG("glCopyBufferSubData"
2581 << "(" << GLEnums::GetStringEnum(readTarget
) << ", "
2582 << GLEnums::GetStringEnum(writeTarget
) << ", " << readOffset
2583 << ", " << writeOffset
<< ", " << size
<< ")");
2584 g_driver_gl
.debug_fn
.glCopyBufferSubDataFn(readTarget
, writeTarget
,
2585 readOffset
, writeOffset
, size
);
2588 static void GL_BINDING_CALL
Debug_glCopyTexImage2D(GLenum target
,
2590 GLenum internalformat
,
2596 GL_SERVICE_LOG("glCopyTexImage2D"
2597 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2598 << ", " << GLEnums::GetStringEnum(internalformat
) << ", " << x
2599 << ", " << y
<< ", " << width
<< ", " << height
<< ", "
2601 g_driver_gl
.debug_fn
.glCopyTexImage2DFn(target
, level
, internalformat
, x
, y
,
2602 width
, height
, border
);
2605 static void GL_BINDING_CALL
Debug_glCopyTexSubImage2D(GLenum target
,
2613 GL_SERVICE_LOG("glCopyTexSubImage2D"
2614 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2615 << ", " << xoffset
<< ", " << yoffset
<< ", " << x
<< ", " << y
2616 << ", " << width
<< ", " << height
<< ")");
2617 g_driver_gl
.debug_fn
.glCopyTexSubImage2DFn(target
, level
, xoffset
, yoffset
, x
,
2621 static void GL_BINDING_CALL
Debug_glCopyTexSubImage3D(GLenum target
,
2630 GL_SERVICE_LOG("glCopyTexSubImage3D"
2631 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
2632 << ", " << xoffset
<< ", " << yoffset
<< ", " << zoffset
2633 << ", " << x
<< ", " << y
<< ", " << width
<< ", " << height
2635 g_driver_gl
.debug_fn
.glCopyTexSubImage3DFn(target
, level
, xoffset
, yoffset
,
2636 zoffset
, x
, y
, width
, height
);
2639 static void GL_BINDING_CALL
Debug_glCoverFillPathNV(GLuint path
,
2641 GL_SERVICE_LOG("glCoverFillPathNV"
2642 << "(" << path
<< ", " << GLEnums::GetStringEnum(coverMode
)
2644 g_driver_gl
.debug_fn
.glCoverFillPathNVFn(path
, coverMode
);
2647 static void GL_BINDING_CALL
Debug_glCoverStrokePathNV(GLuint name
,
2649 GL_SERVICE_LOG("glCoverStrokePathNV"
2650 << "(" << name
<< ", " << GLEnums::GetStringEnum(coverMode
)
2652 g_driver_gl
.debug_fn
.glCoverStrokePathNVFn(name
, coverMode
);
2655 static GLuint GL_BINDING_CALL
Debug_glCreateProgram(void) {
2656 GL_SERVICE_LOG("glCreateProgram"
2659 GLuint result
= g_driver_gl
.debug_fn
.glCreateProgramFn();
2660 GL_SERVICE_LOG("GL_RESULT: " << result
);
2664 static GLuint GL_BINDING_CALL
Debug_glCreateShader(GLenum type
) {
2665 GL_SERVICE_LOG("glCreateShader"
2666 << "(" << GLEnums::GetStringEnum(type
) << ")");
2667 GLuint result
= g_driver_gl
.debug_fn
.glCreateShaderFn(type
);
2668 GL_SERVICE_LOG("GL_RESULT: " << result
);
2672 static void GL_BINDING_CALL
Debug_glCullFace(GLenum mode
) {
2673 GL_SERVICE_LOG("glCullFace"
2674 << "(" << GLEnums::GetStringEnum(mode
) << ")");
2675 g_driver_gl
.debug_fn
.glCullFaceFn(mode
);
2678 static void GL_BINDING_CALL
Debug_glDeleteBuffersARB(GLsizei n
,
2679 const GLuint
* buffers
) {
2680 GL_SERVICE_LOG("glDeleteBuffersARB"
2681 << "(" << n
<< ", " << static_cast<const void*>(buffers
)
2683 g_driver_gl
.debug_fn
.glDeleteBuffersARBFn(n
, buffers
);
2686 static void GL_BINDING_CALL
Debug_glDeleteFencesAPPLE(GLsizei n
,
2687 const GLuint
* fences
) {
2688 GL_SERVICE_LOG("glDeleteFencesAPPLE"
2689 << "(" << n
<< ", " << static_cast<const void*>(fences
)
2691 g_driver_gl
.debug_fn
.glDeleteFencesAPPLEFn(n
, fences
);
2694 static void GL_BINDING_CALL
Debug_glDeleteFencesNV(GLsizei n
,
2695 const GLuint
* fences
) {
2696 GL_SERVICE_LOG("glDeleteFencesNV"
2697 << "(" << n
<< ", " << static_cast<const void*>(fences
)
2699 g_driver_gl
.debug_fn
.glDeleteFencesNVFn(n
, fences
);
2702 static void GL_BINDING_CALL
2703 Debug_glDeleteFramebuffersEXT(GLsizei n
, const GLuint
* framebuffers
) {
2704 GL_SERVICE_LOG("glDeleteFramebuffersEXT"
2705 << "(" << n
<< ", " << static_cast<const void*>(framebuffers
)
2707 g_driver_gl
.debug_fn
.glDeleteFramebuffersEXTFn(n
, framebuffers
);
2710 static void GL_BINDING_CALL
Debug_glDeletePathsNV(GLuint path
, GLsizei range
) {
2711 GL_SERVICE_LOG("glDeletePathsNV"
2712 << "(" << path
<< ", " << range
<< ")");
2713 g_driver_gl
.debug_fn
.glDeletePathsNVFn(path
, range
);
2716 static void GL_BINDING_CALL
Debug_glDeleteProgram(GLuint program
) {
2717 GL_SERVICE_LOG("glDeleteProgram"
2718 << "(" << program
<< ")");
2719 g_driver_gl
.debug_fn
.glDeleteProgramFn(program
);
2722 static void GL_BINDING_CALL
Debug_glDeleteQueries(GLsizei n
,
2723 const GLuint
* ids
) {
2724 GL_SERVICE_LOG("glDeleteQueries"
2725 << "(" << n
<< ", " << static_cast<const void*>(ids
) << ")");
2726 g_driver_gl
.debug_fn
.glDeleteQueriesFn(n
, ids
);
2729 static void GL_BINDING_CALL
2730 Debug_glDeleteRenderbuffersEXT(GLsizei n
, const GLuint
* renderbuffers
) {
2731 GL_SERVICE_LOG("glDeleteRenderbuffersEXT"
2732 << "(" << n
<< ", " << static_cast<const void*>(renderbuffers
)
2734 g_driver_gl
.debug_fn
.glDeleteRenderbuffersEXTFn(n
, renderbuffers
);
2737 static void GL_BINDING_CALL
Debug_glDeleteSamplers(GLsizei n
,
2738 const GLuint
* samplers
) {
2739 GL_SERVICE_LOG("glDeleteSamplers"
2740 << "(" << n
<< ", " << static_cast<const void*>(samplers
)
2742 g_driver_gl
.debug_fn
.glDeleteSamplersFn(n
, samplers
);
2745 static void GL_BINDING_CALL
Debug_glDeleteShader(GLuint shader
) {
2746 GL_SERVICE_LOG("glDeleteShader"
2747 << "(" << shader
<< ")");
2748 g_driver_gl
.debug_fn
.glDeleteShaderFn(shader
);
2751 static void GL_BINDING_CALL
Debug_glDeleteSync(GLsync sync
) {
2752 GL_SERVICE_LOG("glDeleteSync"
2753 << "(" << sync
<< ")");
2754 g_driver_gl
.debug_fn
.glDeleteSyncFn(sync
);
2757 static void GL_BINDING_CALL
Debug_glDeleteTextures(GLsizei n
,
2758 const GLuint
* textures
) {
2759 GL_SERVICE_LOG("glDeleteTextures"
2760 << "(" << n
<< ", " << static_cast<const void*>(textures
)
2762 g_driver_gl
.debug_fn
.glDeleteTexturesFn(n
, textures
);
2765 static void GL_BINDING_CALL
2766 Debug_glDeleteTransformFeedbacks(GLsizei n
, const GLuint
* ids
) {
2767 GL_SERVICE_LOG("glDeleteTransformFeedbacks"
2768 << "(" << n
<< ", " << static_cast<const void*>(ids
) << ")");
2769 g_driver_gl
.debug_fn
.glDeleteTransformFeedbacksFn(n
, ids
);
2772 static void GL_BINDING_CALL
2773 Debug_glDeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
2774 GL_SERVICE_LOG("glDeleteVertexArraysOES"
2775 << "(" << n
<< ", " << static_cast<const void*>(arrays
)
2777 g_driver_gl
.debug_fn
.glDeleteVertexArraysOESFn(n
, arrays
);
2780 static void GL_BINDING_CALL
Debug_glDepthFunc(GLenum func
) {
2781 GL_SERVICE_LOG("glDepthFunc"
2782 << "(" << GLEnums::GetStringEnum(func
) << ")");
2783 g_driver_gl
.debug_fn
.glDepthFuncFn(func
);
2786 static void GL_BINDING_CALL
Debug_glDepthMask(GLboolean flag
) {
2787 GL_SERVICE_LOG("glDepthMask"
2788 << "(" << GLEnums::GetStringBool(flag
) << ")");
2789 g_driver_gl
.debug_fn
.glDepthMaskFn(flag
);
2792 static void GL_BINDING_CALL
Debug_glDepthRange(GLclampd zNear
, GLclampd zFar
) {
2793 GL_SERVICE_LOG("glDepthRange"
2794 << "(" << zNear
<< ", " << zFar
<< ")");
2795 g_driver_gl
.debug_fn
.glDepthRangeFn(zNear
, zFar
);
2798 static void GL_BINDING_CALL
Debug_glDepthRangef(GLclampf zNear
, GLclampf zFar
) {
2799 GL_SERVICE_LOG("glDepthRangef"
2800 << "(" << zNear
<< ", " << zFar
<< ")");
2801 g_driver_gl
.debug_fn
.glDepthRangefFn(zNear
, zFar
);
2804 static void GL_BINDING_CALL
Debug_glDetachShader(GLuint program
,
2806 GL_SERVICE_LOG("glDetachShader"
2807 << "(" << program
<< ", " << shader
<< ")");
2808 g_driver_gl
.debug_fn
.glDetachShaderFn(program
, shader
);
2811 static void GL_BINDING_CALL
Debug_glDisable(GLenum cap
) {
2812 GL_SERVICE_LOG("glDisable"
2813 << "(" << GLEnums::GetStringEnum(cap
) << ")");
2814 g_driver_gl
.debug_fn
.glDisableFn(cap
);
2817 static void GL_BINDING_CALL
Debug_glDisableVertexAttribArray(GLuint index
) {
2818 GL_SERVICE_LOG("glDisableVertexAttribArray"
2819 << "(" << index
<< ")");
2820 g_driver_gl
.debug_fn
.glDisableVertexAttribArrayFn(index
);
2823 static void GL_BINDING_CALL
2824 Debug_glDiscardFramebufferEXT(GLenum target
,
2825 GLsizei numAttachments
,
2826 const GLenum
* attachments
) {
2827 GL_SERVICE_LOG("glDiscardFramebufferEXT"
2828 << "(" << GLEnums::GetStringEnum(target
) << ", "
2829 << numAttachments
<< ", "
2830 << static_cast<const void*>(attachments
) << ")");
2831 g_driver_gl
.debug_fn
.glDiscardFramebufferEXTFn(target
, numAttachments
,
2835 static void GL_BINDING_CALL
Debug_glDrawArrays(GLenum mode
,
2838 GL_SERVICE_LOG("glDrawArrays"
2839 << "(" << GLEnums::GetStringEnum(mode
) << ", " << first
<< ", "
2841 g_driver_gl
.debug_fn
.glDrawArraysFn(mode
, first
, count
);
2844 static void GL_BINDING_CALL
2845 Debug_glDrawArraysInstancedANGLE(GLenum mode
,
2848 GLsizei primcount
) {
2849 GL_SERVICE_LOG("glDrawArraysInstancedANGLE"
2850 << "(" << GLEnums::GetStringEnum(mode
) << ", " << first
<< ", "
2851 << count
<< ", " << primcount
<< ")");
2852 g_driver_gl
.debug_fn
.glDrawArraysInstancedANGLEFn(mode
, first
, count
,
2856 static void GL_BINDING_CALL
Debug_glDrawBuffer(GLenum mode
) {
2857 GL_SERVICE_LOG("glDrawBuffer"
2858 << "(" << GLEnums::GetStringEnum(mode
) << ")");
2859 g_driver_gl
.debug_fn
.glDrawBufferFn(mode
);
2862 static void GL_BINDING_CALL
Debug_glDrawBuffersARB(GLsizei n
,
2863 const GLenum
* bufs
) {
2864 GL_SERVICE_LOG("glDrawBuffersARB"
2865 << "(" << n
<< ", " << static_cast<const void*>(bufs
) << ")");
2866 g_driver_gl
.debug_fn
.glDrawBuffersARBFn(n
, bufs
);
2869 static void GL_BINDING_CALL
Debug_glDrawElements(GLenum mode
,
2872 const void* indices
) {
2873 GL_SERVICE_LOG("glDrawElements"
2874 << "(" << GLEnums::GetStringEnum(mode
) << ", " << count
<< ", "
2875 << GLEnums::GetStringEnum(type
) << ", "
2876 << static_cast<const void*>(indices
) << ")");
2877 g_driver_gl
.debug_fn
.glDrawElementsFn(mode
, count
, type
, indices
);
2880 static void GL_BINDING_CALL
2881 Debug_glDrawElementsInstancedANGLE(GLenum mode
,
2884 const void* indices
,
2885 GLsizei primcount
) {
2886 GL_SERVICE_LOG("glDrawElementsInstancedANGLE"
2887 << "(" << GLEnums::GetStringEnum(mode
) << ", " << count
<< ", "
2888 << GLEnums::GetStringEnum(type
) << ", "
2889 << static_cast<const void*>(indices
) << ", " << primcount
2891 g_driver_gl
.debug_fn
.glDrawElementsInstancedANGLEFn(mode
, count
, type
,
2892 indices
, primcount
);
2895 static void GL_BINDING_CALL
Debug_glDrawRangeElements(GLenum mode
,
2900 const void* indices
) {
2901 GL_SERVICE_LOG("glDrawRangeElements"
2902 << "(" << GLEnums::GetStringEnum(mode
) << ", " << start
<< ", "
2903 << end
<< ", " << count
<< ", " << GLEnums::GetStringEnum(type
)
2904 << ", " << static_cast<const void*>(indices
) << ")");
2905 g_driver_gl
.debug_fn
.glDrawRangeElementsFn(mode
, start
, end
, count
, type
,
2909 static void GL_BINDING_CALL
2910 Debug_glEGLImageTargetRenderbufferStorageOES(GLenum target
,
2911 GLeglImageOES image
) {
2912 GL_SERVICE_LOG("glEGLImageTargetRenderbufferStorageOES"
2913 << "(" << GLEnums::GetStringEnum(target
) << ", " << image
2915 g_driver_gl
.debug_fn
.glEGLImageTargetRenderbufferStorageOESFn(target
, image
);
2918 static void GL_BINDING_CALL
2919 Debug_glEGLImageTargetTexture2DOES(GLenum target
, GLeglImageOES image
) {
2920 GL_SERVICE_LOG("glEGLImageTargetTexture2DOES"
2921 << "(" << GLEnums::GetStringEnum(target
) << ", " << image
2923 g_driver_gl
.debug_fn
.glEGLImageTargetTexture2DOESFn(target
, image
);
2926 static void GL_BINDING_CALL
Debug_glEnable(GLenum cap
) {
2927 GL_SERVICE_LOG("glEnable"
2928 << "(" << GLEnums::GetStringEnum(cap
) << ")");
2929 g_driver_gl
.debug_fn
.glEnableFn(cap
);
2932 static void GL_BINDING_CALL
Debug_glEnableVertexAttribArray(GLuint index
) {
2933 GL_SERVICE_LOG("glEnableVertexAttribArray"
2934 << "(" << index
<< ")");
2935 g_driver_gl
.debug_fn
.glEnableVertexAttribArrayFn(index
);
2938 static void GL_BINDING_CALL
Debug_glEndQuery(GLenum target
) {
2939 GL_SERVICE_LOG("glEndQuery"
2940 << "(" << GLEnums::GetStringEnum(target
) << ")");
2941 g_driver_gl
.debug_fn
.glEndQueryFn(target
);
2944 static void GL_BINDING_CALL
Debug_glEndTransformFeedback(void) {
2945 GL_SERVICE_LOG("glEndTransformFeedback"
2948 g_driver_gl
.debug_fn
.glEndTransformFeedbackFn();
2951 static GLsync GL_BINDING_CALL
Debug_glFenceSync(GLenum condition
,
2953 GL_SERVICE_LOG("glFenceSync"
2954 << "(" << GLEnums::GetStringEnum(condition
) << ", " << flags
2956 GLsync result
= g_driver_gl
.debug_fn
.glFenceSyncFn(condition
, flags
);
2957 GL_SERVICE_LOG("GL_RESULT: " << result
);
2961 static void GL_BINDING_CALL
Debug_glFinish(void) {
2962 GL_SERVICE_LOG("glFinish"
2965 g_driver_gl
.debug_fn
.glFinishFn();
2968 static void GL_BINDING_CALL
Debug_glFinishFenceAPPLE(GLuint fence
) {
2969 GL_SERVICE_LOG("glFinishFenceAPPLE"
2970 << "(" << fence
<< ")");
2971 g_driver_gl
.debug_fn
.glFinishFenceAPPLEFn(fence
);
2974 static void GL_BINDING_CALL
Debug_glFinishFenceNV(GLuint fence
) {
2975 GL_SERVICE_LOG("glFinishFenceNV"
2976 << "(" << fence
<< ")");
2977 g_driver_gl
.debug_fn
.glFinishFenceNVFn(fence
);
2980 static void GL_BINDING_CALL
Debug_glFlush(void) {
2981 GL_SERVICE_LOG("glFlush"
2984 g_driver_gl
.debug_fn
.glFlushFn();
2987 static void GL_BINDING_CALL
Debug_glFlushMappedBufferRange(GLenum target
,
2989 GLsizeiptr length
) {
2990 GL_SERVICE_LOG("glFlushMappedBufferRange"
2991 << "(" << GLEnums::GetStringEnum(target
) << ", " << offset
2992 << ", " << length
<< ")");
2993 g_driver_gl
.debug_fn
.glFlushMappedBufferRangeFn(target
, offset
, length
);
2996 static void GL_BINDING_CALL
2997 Debug_glFramebufferRenderbufferEXT(GLenum target
,
2999 GLenum renderbuffertarget
,
3000 GLuint renderbuffer
) {
3001 GL_SERVICE_LOG("glFramebufferRenderbufferEXT"
3002 << "(" << GLEnums::GetStringEnum(target
) << ", "
3003 << GLEnums::GetStringEnum(attachment
) << ", "
3004 << GLEnums::GetStringEnum(renderbuffertarget
) << ", "
3005 << renderbuffer
<< ")");
3006 g_driver_gl
.debug_fn
.glFramebufferRenderbufferEXTFn(
3007 target
, attachment
, renderbuffertarget
, renderbuffer
);
3010 static void GL_BINDING_CALL
Debug_glFramebufferTexture2DEXT(GLenum target
,
3015 GL_SERVICE_LOG("glFramebufferTexture2DEXT"
3016 << "(" << GLEnums::GetStringEnum(target
) << ", "
3017 << GLEnums::GetStringEnum(attachment
) << ", "
3018 << GLEnums::GetStringEnum(textarget
) << ", " << texture
<< ", "
3020 g_driver_gl
.debug_fn
.glFramebufferTexture2DEXTFn(target
, attachment
,
3021 textarget
, texture
, level
);
3024 static void GL_BINDING_CALL
3025 Debug_glFramebufferTexture2DMultisampleEXT(GLenum target
,
3031 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleEXT"
3032 << "(" << GLEnums::GetStringEnum(target
) << ", "
3033 << GLEnums::GetStringEnum(attachment
) << ", "
3034 << GLEnums::GetStringEnum(textarget
) << ", " << texture
<< ", "
3035 << level
<< ", " << samples
<< ")");
3036 g_driver_gl
.debug_fn
.glFramebufferTexture2DMultisampleEXTFn(
3037 target
, attachment
, textarget
, texture
, level
, samples
);
3040 static void GL_BINDING_CALL
3041 Debug_glFramebufferTexture2DMultisampleIMG(GLenum target
,
3047 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleIMG"
3048 << "(" << GLEnums::GetStringEnum(target
) << ", "
3049 << GLEnums::GetStringEnum(attachment
) << ", "
3050 << GLEnums::GetStringEnum(textarget
) << ", " << texture
<< ", "
3051 << level
<< ", " << samples
<< ")");
3052 g_driver_gl
.debug_fn
.glFramebufferTexture2DMultisampleIMGFn(
3053 target
, attachment
, textarget
, texture
, level
, samples
);
3056 static void GL_BINDING_CALL
Debug_glFramebufferTextureLayer(GLenum target
,
3061 GL_SERVICE_LOG("glFramebufferTextureLayer"
3062 << "(" << GLEnums::GetStringEnum(target
) << ", "
3063 << GLEnums::GetStringEnum(attachment
) << ", " << texture
3064 << ", " << level
<< ", " << layer
<< ")");
3065 g_driver_gl
.debug_fn
.glFramebufferTextureLayerFn(target
, attachment
, texture
,
3069 static void GL_BINDING_CALL
Debug_glFrontFace(GLenum mode
) {
3070 GL_SERVICE_LOG("glFrontFace"
3071 << "(" << GLEnums::GetStringEnum(mode
) << ")");
3072 g_driver_gl
.debug_fn
.glFrontFaceFn(mode
);
3075 static void GL_BINDING_CALL
Debug_glGenBuffersARB(GLsizei n
, GLuint
* buffers
) {
3076 GL_SERVICE_LOG("glGenBuffersARB"
3077 << "(" << n
<< ", " << static_cast<const void*>(buffers
)
3079 g_driver_gl
.debug_fn
.glGenBuffersARBFn(n
, buffers
);
3082 static void GL_BINDING_CALL
Debug_glGenerateMipmapEXT(GLenum target
) {
3083 GL_SERVICE_LOG("glGenerateMipmapEXT"
3084 << "(" << GLEnums::GetStringEnum(target
) << ")");
3085 g_driver_gl
.debug_fn
.glGenerateMipmapEXTFn(target
);
3088 static void GL_BINDING_CALL
Debug_glGenFencesAPPLE(GLsizei n
, GLuint
* fences
) {
3089 GL_SERVICE_LOG("glGenFencesAPPLE"
3090 << "(" << n
<< ", " << static_cast<const void*>(fences
)
3092 g_driver_gl
.debug_fn
.glGenFencesAPPLEFn(n
, fences
);
3095 static void GL_BINDING_CALL
Debug_glGenFencesNV(GLsizei n
, GLuint
* fences
) {
3096 GL_SERVICE_LOG("glGenFencesNV"
3097 << "(" << n
<< ", " << static_cast<const void*>(fences
)
3099 g_driver_gl
.debug_fn
.glGenFencesNVFn(n
, fences
);
3102 static void GL_BINDING_CALL
Debug_glGenFramebuffersEXT(GLsizei n
,
3103 GLuint
* framebuffers
) {
3104 GL_SERVICE_LOG("glGenFramebuffersEXT"
3105 << "(" << n
<< ", " << static_cast<const void*>(framebuffers
)
3107 g_driver_gl
.debug_fn
.glGenFramebuffersEXTFn(n
, framebuffers
);
3110 static GLuint GL_BINDING_CALL
Debug_glGenPathsNV(GLsizei range
) {
3111 GL_SERVICE_LOG("glGenPathsNV"
3112 << "(" << range
<< ")");
3113 GLuint result
= g_driver_gl
.debug_fn
.glGenPathsNVFn(range
);
3114 GL_SERVICE_LOG("GL_RESULT: " << result
);
3118 static void GL_BINDING_CALL
Debug_glGenQueries(GLsizei n
, GLuint
* ids
) {
3119 GL_SERVICE_LOG("glGenQueries"
3120 << "(" << n
<< ", " << static_cast<const void*>(ids
) << ")");
3121 g_driver_gl
.debug_fn
.glGenQueriesFn(n
, ids
);
3124 static void GL_BINDING_CALL
Debug_glGenRenderbuffersEXT(GLsizei n
,
3125 GLuint
* renderbuffers
) {
3126 GL_SERVICE_LOG("glGenRenderbuffersEXT"
3127 << "(" << n
<< ", " << static_cast<const void*>(renderbuffers
)
3129 g_driver_gl
.debug_fn
.glGenRenderbuffersEXTFn(n
, renderbuffers
);
3132 static void GL_BINDING_CALL
Debug_glGenSamplers(GLsizei n
, GLuint
* samplers
) {
3133 GL_SERVICE_LOG("glGenSamplers"
3134 << "(" << n
<< ", " << static_cast<const void*>(samplers
)
3136 g_driver_gl
.debug_fn
.glGenSamplersFn(n
, samplers
);
3139 static void GL_BINDING_CALL
Debug_glGenTextures(GLsizei n
, GLuint
* textures
) {
3140 GL_SERVICE_LOG("glGenTextures"
3141 << "(" << n
<< ", " << static_cast<const void*>(textures
)
3143 g_driver_gl
.debug_fn
.glGenTexturesFn(n
, textures
);
3146 static void GL_BINDING_CALL
Debug_glGenTransformFeedbacks(GLsizei n
,
3148 GL_SERVICE_LOG("glGenTransformFeedbacks"
3149 << "(" << n
<< ", " << static_cast<const void*>(ids
) << ")");
3150 g_driver_gl
.debug_fn
.glGenTransformFeedbacksFn(n
, ids
);
3153 static void GL_BINDING_CALL
Debug_glGenVertexArraysOES(GLsizei n
,
3155 GL_SERVICE_LOG("glGenVertexArraysOES"
3156 << "(" << n
<< ", " << static_cast<const void*>(arrays
)
3158 g_driver_gl
.debug_fn
.glGenVertexArraysOESFn(n
, arrays
);
3161 static void GL_BINDING_CALL
Debug_glGetActiveAttrib(GLuint program
,
3168 GL_SERVICE_LOG("glGetActiveAttrib"
3169 << "(" << program
<< ", " << index
<< ", " << bufsize
<< ", "
3170 << static_cast<const void*>(length
) << ", "
3171 << static_cast<const void*>(size
) << ", "
3172 << static_cast<const void*>(type
) << ", "
3173 << static_cast<const void*>(name
) << ")");
3174 g_driver_gl
.debug_fn
.glGetActiveAttribFn(program
, index
, bufsize
, length
,
3178 static void GL_BINDING_CALL
Debug_glGetActiveUniform(GLuint program
,
3185 GL_SERVICE_LOG("glGetActiveUniform"
3186 << "(" << program
<< ", " << index
<< ", " << bufsize
<< ", "
3187 << static_cast<const void*>(length
) << ", "
3188 << static_cast<const void*>(size
) << ", "
3189 << static_cast<const void*>(type
) << ", "
3190 << static_cast<const void*>(name
) << ")");
3191 g_driver_gl
.debug_fn
.glGetActiveUniformFn(program
, index
, bufsize
, length
,
3195 static void GL_BINDING_CALL
3196 Debug_glGetActiveUniformBlockiv(GLuint program
,
3197 GLuint uniformBlockIndex
,
3200 GL_SERVICE_LOG("glGetActiveUniformBlockiv"
3201 << "(" << program
<< ", " << uniformBlockIndex
<< ", "
3202 << GLEnums::GetStringEnum(pname
) << ", "
3203 << static_cast<const void*>(params
) << ")");
3204 g_driver_gl
.debug_fn
.glGetActiveUniformBlockivFn(program
, uniformBlockIndex
,
3208 static void GL_BINDING_CALL
3209 Debug_glGetActiveUniformBlockName(GLuint program
,
3210 GLuint uniformBlockIndex
,
3213 char* uniformBlockName
) {
3214 GL_SERVICE_LOG("glGetActiveUniformBlockName"
3215 << "(" << program
<< ", " << uniformBlockIndex
<< ", "
3216 << bufSize
<< ", " << static_cast<const void*>(length
) << ", "
3217 << static_cast<const void*>(uniformBlockName
) << ")");
3218 g_driver_gl
.debug_fn
.glGetActiveUniformBlockNameFn(
3219 program
, uniformBlockIndex
, bufSize
, length
, uniformBlockName
);
3222 static void GL_BINDING_CALL
3223 Debug_glGetActiveUniformsiv(GLuint program
,
3224 GLsizei uniformCount
,
3225 const GLuint
* uniformIndices
,
3228 GL_SERVICE_LOG("glGetActiveUniformsiv"
3229 << "(" << program
<< ", " << uniformCount
<< ", "
3230 << static_cast<const void*>(uniformIndices
) << ", "
3231 << GLEnums::GetStringEnum(pname
) << ", "
3232 << static_cast<const void*>(params
) << ")");
3233 g_driver_gl
.debug_fn
.glGetActiveUniformsivFn(program
, uniformCount
,
3234 uniformIndices
, pname
, params
);
3237 static void GL_BINDING_CALL
Debug_glGetAttachedShaders(GLuint program
,
3241 GL_SERVICE_LOG("glGetAttachedShaders"
3242 << "(" << program
<< ", " << maxcount
<< ", "
3243 << static_cast<const void*>(count
) << ", "
3244 << static_cast<const void*>(shaders
) << ")");
3245 g_driver_gl
.debug_fn
.glGetAttachedShadersFn(program
, maxcount
, count
,
3249 static GLint GL_BINDING_CALL
Debug_glGetAttribLocation(GLuint program
,
3251 GL_SERVICE_LOG("glGetAttribLocation"
3252 << "(" << program
<< ", " << name
<< ")");
3253 GLint result
= g_driver_gl
.debug_fn
.glGetAttribLocationFn(program
, name
);
3254 GL_SERVICE_LOG("GL_RESULT: " << result
);
3258 static void GL_BINDING_CALL
Debug_glGetBooleanv(GLenum pname
,
3259 GLboolean
* params
) {
3260 GL_SERVICE_LOG("glGetBooleanv"
3261 << "(" << GLEnums::GetStringEnum(pname
) << ", "
3262 << static_cast<const void*>(params
) << ")");
3263 g_driver_gl
.debug_fn
.glGetBooleanvFn(pname
, params
);
3266 static void GL_BINDING_CALL
Debug_glGetBufferParameteriv(GLenum target
,
3269 GL_SERVICE_LOG("glGetBufferParameteriv"
3270 << "(" << GLEnums::GetStringEnum(target
) << ", "
3271 << GLEnums::GetStringEnum(pname
) << ", "
3272 << static_cast<const void*>(params
) << ")");
3273 g_driver_gl
.debug_fn
.glGetBufferParameterivFn(target
, pname
, params
);
3276 static GLenum GL_BINDING_CALL
Debug_glGetError(void) {
3277 GL_SERVICE_LOG("glGetError"
3280 GLenum result
= g_driver_gl
.debug_fn
.glGetErrorFn();
3282 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result
));
3287 static void GL_BINDING_CALL
Debug_glGetFenceivNV(GLuint fence
,
3290 GL_SERVICE_LOG("glGetFenceivNV"
3291 << "(" << fence
<< ", " << GLEnums::GetStringEnum(pname
)
3292 << ", " << static_cast<const void*>(params
) << ")");
3293 g_driver_gl
.debug_fn
.glGetFenceivNVFn(fence
, pname
, params
);
3296 static void GL_BINDING_CALL
Debug_glGetFloatv(GLenum pname
, GLfloat
* params
) {
3297 GL_SERVICE_LOG("glGetFloatv"
3298 << "(" << GLEnums::GetStringEnum(pname
) << ", "
3299 << static_cast<const void*>(params
) << ")");
3300 g_driver_gl
.debug_fn
.glGetFloatvFn(pname
, params
);
3303 static GLint GL_BINDING_CALL
Debug_glGetFragDataLocation(GLuint program
,
3305 GL_SERVICE_LOG("glGetFragDataLocation"
3306 << "(" << program
<< ", " << name
<< ")");
3307 GLint result
= g_driver_gl
.debug_fn
.glGetFragDataLocationFn(program
, name
);
3308 GL_SERVICE_LOG("GL_RESULT: " << result
);
3312 static void GL_BINDING_CALL
3313 Debug_glGetFramebufferAttachmentParameterivEXT(GLenum target
,
3317 GL_SERVICE_LOG("glGetFramebufferAttachmentParameterivEXT"
3318 << "(" << GLEnums::GetStringEnum(target
) << ", "
3319 << GLEnums::GetStringEnum(attachment
) << ", "
3320 << GLEnums::GetStringEnum(pname
) << ", "
3321 << static_cast<const void*>(params
) << ")");
3322 g_driver_gl
.debug_fn
.glGetFramebufferAttachmentParameterivEXTFn(
3323 target
, attachment
, pname
, params
);
3326 static GLenum GL_BINDING_CALL
Debug_glGetGraphicsResetStatusARB(void) {
3327 GL_SERVICE_LOG("glGetGraphicsResetStatusARB"
3330 GLenum result
= g_driver_gl
.debug_fn
.glGetGraphicsResetStatusARBFn();
3331 GL_SERVICE_LOG("GL_RESULT: " << result
);
3335 static void GL_BINDING_CALL
Debug_glGetInteger64i_v(GLenum target
,
3338 GL_SERVICE_LOG("glGetInteger64i_v"
3339 << "(" << GLEnums::GetStringEnum(target
) << ", " << index
3340 << ", " << static_cast<const void*>(data
) << ")");
3341 g_driver_gl
.debug_fn
.glGetInteger64i_vFn(target
, index
, data
);
3344 static void GL_BINDING_CALL
Debug_glGetInteger64v(GLenum pname
,
3346 GL_SERVICE_LOG("glGetInteger64v"
3347 << "(" << GLEnums::GetStringEnum(pname
) << ", "
3348 << static_cast<const void*>(params
) << ")");
3349 g_driver_gl
.debug_fn
.glGetInteger64vFn(pname
, params
);
3352 static void GL_BINDING_CALL
Debug_glGetIntegeri_v(GLenum target
,
3355 GL_SERVICE_LOG("glGetIntegeri_v"
3356 << "(" << GLEnums::GetStringEnum(target
) << ", " << index
3357 << ", " << static_cast<const void*>(data
) << ")");
3358 g_driver_gl
.debug_fn
.glGetIntegeri_vFn(target
, index
, data
);
3361 static void GL_BINDING_CALL
Debug_glGetIntegerv(GLenum pname
, GLint
* params
) {
3362 GL_SERVICE_LOG("glGetIntegerv"
3363 << "(" << GLEnums::GetStringEnum(pname
) << ", "
3364 << static_cast<const void*>(params
) << ")");
3365 g_driver_gl
.debug_fn
.glGetIntegervFn(pname
, params
);
3368 static void GL_BINDING_CALL
Debug_glGetInternalformativ(GLenum target
,
3369 GLenum internalformat
,
3373 GL_SERVICE_LOG("glGetInternalformativ"
3374 << "(" << GLEnums::GetStringEnum(target
) << ", "
3375 << GLEnums::GetStringEnum(internalformat
) << ", "
3376 << GLEnums::GetStringEnum(pname
) << ", " << bufSize
<< ", "
3377 << static_cast<const void*>(params
) << ")");
3378 g_driver_gl
.debug_fn
.glGetInternalformativFn(target
, internalformat
, pname
,
3382 static void GL_BINDING_CALL
Debug_glGetProgramBinary(GLuint program
,
3385 GLenum
* binaryFormat
,
3387 GL_SERVICE_LOG("glGetProgramBinary"
3388 << "(" << program
<< ", " << bufSize
<< ", "
3389 << static_cast<const void*>(length
) << ", "
3390 << static_cast<const void*>(binaryFormat
) << ", "
3391 << static_cast<const void*>(binary
) << ")");
3392 g_driver_gl
.debug_fn
.glGetProgramBinaryFn(program
, bufSize
, length
,
3393 binaryFormat
, binary
);
3396 static void GL_BINDING_CALL
Debug_glGetProgramInfoLog(GLuint program
,
3400 GL_SERVICE_LOG("glGetProgramInfoLog"
3401 << "(" << program
<< ", " << bufsize
<< ", "
3402 << static_cast<const void*>(length
) << ", "
3403 << static_cast<const void*>(infolog
) << ")");
3404 g_driver_gl
.debug_fn
.glGetProgramInfoLogFn(program
, bufsize
, length
, infolog
);
3407 static void GL_BINDING_CALL
Debug_glGetProgramiv(GLuint program
,
3410 GL_SERVICE_LOG("glGetProgramiv"
3411 << "(" << program
<< ", " << GLEnums::GetStringEnum(pname
)
3412 << ", " << static_cast<const void*>(params
) << ")");
3413 g_driver_gl
.debug_fn
.glGetProgramivFn(program
, pname
, params
);
3416 static GLint GL_BINDING_CALL
3417 Debug_glGetProgramResourceLocation(GLuint program
,
3418 GLenum programInterface
,
3420 GL_SERVICE_LOG("glGetProgramResourceLocation"
3421 << "(" << program
<< ", "
3422 << GLEnums::GetStringEnum(programInterface
) << ", " << name
3424 GLint result
= g_driver_gl
.debug_fn
.glGetProgramResourceLocationFn(
3425 program
, programInterface
, name
);
3426 GL_SERVICE_LOG("GL_RESULT: " << result
);
3430 static void GL_BINDING_CALL
Debug_glGetQueryiv(GLenum target
,
3433 GL_SERVICE_LOG("glGetQueryiv"
3434 << "(" << GLEnums::GetStringEnum(target
) << ", "
3435 << GLEnums::GetStringEnum(pname
) << ", "
3436 << static_cast<const void*>(params
) << ")");
3437 g_driver_gl
.debug_fn
.glGetQueryivFn(target
, pname
, params
);
3440 static void GL_BINDING_CALL
Debug_glGetQueryObjecti64v(GLuint id
,
3443 GL_SERVICE_LOG("glGetQueryObjecti64v"
3444 << "(" << id
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3445 << static_cast<const void*>(params
) << ")");
3446 g_driver_gl
.debug_fn
.glGetQueryObjecti64vFn(id
, pname
, params
);
3449 static void GL_BINDING_CALL
Debug_glGetQueryObjectiv(GLuint id
,
3452 GL_SERVICE_LOG("glGetQueryObjectiv"
3453 << "(" << id
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3454 << static_cast<const void*>(params
) << ")");
3455 g_driver_gl
.debug_fn
.glGetQueryObjectivFn(id
, pname
, params
);
3458 static void GL_BINDING_CALL
Debug_glGetQueryObjectui64v(GLuint id
,
3461 GL_SERVICE_LOG("glGetQueryObjectui64v"
3462 << "(" << id
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3463 << static_cast<const void*>(params
) << ")");
3464 g_driver_gl
.debug_fn
.glGetQueryObjectui64vFn(id
, pname
, params
);
3467 static void GL_BINDING_CALL
Debug_glGetQueryObjectuiv(GLuint id
,
3470 GL_SERVICE_LOG("glGetQueryObjectuiv"
3471 << "(" << id
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3472 << static_cast<const void*>(params
) << ")");
3473 g_driver_gl
.debug_fn
.glGetQueryObjectuivFn(id
, pname
, params
);
3476 static void GL_BINDING_CALL
3477 Debug_glGetRenderbufferParameterivEXT(GLenum target
,
3480 GL_SERVICE_LOG("glGetRenderbufferParameterivEXT"
3481 << "(" << GLEnums::GetStringEnum(target
) << ", "
3482 << GLEnums::GetStringEnum(pname
) << ", "
3483 << static_cast<const void*>(params
) << ")");
3484 g_driver_gl
.debug_fn
.glGetRenderbufferParameterivEXTFn(target
, pname
, params
);
3487 static void GL_BINDING_CALL
Debug_glGetSamplerParameterfv(GLuint sampler
,
3490 GL_SERVICE_LOG("glGetSamplerParameterfv"
3491 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
3492 << ", " << static_cast<const void*>(params
) << ")");
3493 g_driver_gl
.debug_fn
.glGetSamplerParameterfvFn(sampler
, pname
, params
);
3496 static void GL_BINDING_CALL
Debug_glGetSamplerParameteriv(GLuint sampler
,
3499 GL_SERVICE_LOG("glGetSamplerParameteriv"
3500 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
3501 << ", " << static_cast<const void*>(params
) << ")");
3502 g_driver_gl
.debug_fn
.glGetSamplerParameterivFn(sampler
, pname
, params
);
3505 static void GL_BINDING_CALL
Debug_glGetShaderInfoLog(GLuint shader
,
3509 GL_SERVICE_LOG("glGetShaderInfoLog"
3510 << "(" << shader
<< ", " << bufsize
<< ", "
3511 << static_cast<const void*>(length
) << ", "
3512 << static_cast<const void*>(infolog
) << ")");
3513 g_driver_gl
.debug_fn
.glGetShaderInfoLogFn(shader
, bufsize
, length
, infolog
);
3516 static void GL_BINDING_CALL
Debug_glGetShaderiv(GLuint shader
,
3519 GL_SERVICE_LOG("glGetShaderiv"
3520 << "(" << shader
<< ", " << GLEnums::GetStringEnum(pname
)
3521 << ", " << static_cast<const void*>(params
) << ")");
3522 g_driver_gl
.debug_fn
.glGetShaderivFn(shader
, pname
, params
);
3525 static void GL_BINDING_CALL
3526 Debug_glGetShaderPrecisionFormat(GLenum shadertype
,
3527 GLenum precisiontype
,
3530 GL_SERVICE_LOG("glGetShaderPrecisionFormat"
3531 << "(" << GLEnums::GetStringEnum(shadertype
) << ", "
3532 << GLEnums::GetStringEnum(precisiontype
) << ", "
3533 << static_cast<const void*>(range
) << ", "
3534 << static_cast<const void*>(precision
) << ")");
3535 g_driver_gl
.debug_fn
.glGetShaderPrecisionFormatFn(shadertype
, precisiontype
,
3539 static void GL_BINDING_CALL
Debug_glGetShaderSource(GLuint shader
,
3543 GL_SERVICE_LOG("glGetShaderSource"
3544 << "(" << shader
<< ", " << bufsize
<< ", "
3545 << static_cast<const void*>(length
) << ", "
3546 << static_cast<const void*>(source
) << ")");
3547 g_driver_gl
.debug_fn
.glGetShaderSourceFn(shader
, bufsize
, length
, source
);
3550 static const GLubyte
* GL_BINDING_CALL
Debug_glGetString(GLenum name
) {
3551 GL_SERVICE_LOG("glGetString"
3552 << "(" << GLEnums::GetStringEnum(name
) << ")");
3553 const GLubyte
* result
= g_driver_gl
.debug_fn
.glGetStringFn(name
);
3554 GL_SERVICE_LOG("GL_RESULT: " << result
);
3558 static const GLubyte
* GL_BINDING_CALL
Debug_glGetStringi(GLenum name
,
3560 GL_SERVICE_LOG("glGetStringi"
3561 << "(" << GLEnums::GetStringEnum(name
) << ", " << index
3563 const GLubyte
* result
= g_driver_gl
.debug_fn
.glGetStringiFn(name
, index
);
3564 GL_SERVICE_LOG("GL_RESULT: " << result
);
3568 static void GL_BINDING_CALL
Debug_glGetSynciv(GLsync sync
,
3573 GL_SERVICE_LOG("glGetSynciv"
3574 << "(" << sync
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3575 << bufSize
<< ", " << static_cast<const void*>(length
) << ", "
3576 << static_cast<const void*>(values
) << ")");
3577 g_driver_gl
.debug_fn
.glGetSyncivFn(sync
, pname
, bufSize
, length
, values
);
3580 static void GL_BINDING_CALL
Debug_glGetTexLevelParameterfv(GLenum target
,
3584 GL_SERVICE_LOG("glGetTexLevelParameterfv"
3585 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
3586 << ", " << GLEnums::GetStringEnum(pname
) << ", "
3587 << static_cast<const void*>(params
) << ")");
3588 g_driver_gl
.debug_fn
.glGetTexLevelParameterfvFn(target
, level
, pname
, params
);
3591 static void GL_BINDING_CALL
Debug_glGetTexLevelParameteriv(GLenum target
,
3595 GL_SERVICE_LOG("glGetTexLevelParameteriv"
3596 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
3597 << ", " << GLEnums::GetStringEnum(pname
) << ", "
3598 << static_cast<const void*>(params
) << ")");
3599 g_driver_gl
.debug_fn
.glGetTexLevelParameterivFn(target
, level
, pname
, params
);
3602 static void GL_BINDING_CALL
Debug_glGetTexParameterfv(GLenum target
,
3605 GL_SERVICE_LOG("glGetTexParameterfv"
3606 << "(" << GLEnums::GetStringEnum(target
) << ", "
3607 << GLEnums::GetStringEnum(pname
) << ", "
3608 << static_cast<const void*>(params
) << ")");
3609 g_driver_gl
.debug_fn
.glGetTexParameterfvFn(target
, pname
, params
);
3612 static void GL_BINDING_CALL
Debug_glGetTexParameteriv(GLenum target
,
3615 GL_SERVICE_LOG("glGetTexParameteriv"
3616 << "(" << GLEnums::GetStringEnum(target
) << ", "
3617 << GLEnums::GetStringEnum(pname
) << ", "
3618 << static_cast<const void*>(params
) << ")");
3619 g_driver_gl
.debug_fn
.glGetTexParameterivFn(target
, pname
, params
);
3622 static void GL_BINDING_CALL
Debug_glGetTransformFeedbackVarying(GLuint program
,
3629 GL_SERVICE_LOG("glGetTransformFeedbackVarying"
3630 << "(" << program
<< ", " << index
<< ", " << bufSize
<< ", "
3631 << static_cast<const void*>(length
) << ", "
3632 << static_cast<const void*>(size
) << ", "
3633 << static_cast<const void*>(type
) << ", "
3634 << static_cast<const void*>(name
) << ")");
3635 g_driver_gl
.debug_fn
.glGetTransformFeedbackVaryingFn(
3636 program
, index
, bufSize
, length
, size
, type
, name
);
3639 static void GL_BINDING_CALL
3640 Debug_glGetTranslatedShaderSourceANGLE(GLuint shader
,
3644 GL_SERVICE_LOG("glGetTranslatedShaderSourceANGLE"
3645 << "(" << shader
<< ", " << bufsize
<< ", "
3646 << static_cast<const void*>(length
) << ", "
3647 << static_cast<const void*>(source
) << ")");
3648 g_driver_gl
.debug_fn
.glGetTranslatedShaderSourceANGLEFn(shader
, bufsize
,
3652 static GLuint GL_BINDING_CALL
3653 Debug_glGetUniformBlockIndex(GLuint program
, const char* uniformBlockName
) {
3654 GL_SERVICE_LOG("glGetUniformBlockIndex"
3655 << "(" << program
<< ", " << uniformBlockName
<< ")");
3657 g_driver_gl
.debug_fn
.glGetUniformBlockIndexFn(program
, uniformBlockName
);
3658 GL_SERVICE_LOG("GL_RESULT: " << result
);
3662 static void GL_BINDING_CALL
Debug_glGetUniformfv(GLuint program
,
3665 GL_SERVICE_LOG("glGetUniformfv"
3666 << "(" << program
<< ", " << location
<< ", "
3667 << static_cast<const void*>(params
) << ")");
3668 g_driver_gl
.debug_fn
.glGetUniformfvFn(program
, location
, params
);
3671 static void GL_BINDING_CALL
3672 Debug_glGetUniformIndices(GLuint program
,
3673 GLsizei uniformCount
,
3674 const char* const* uniformNames
,
3675 GLuint
* uniformIndices
) {
3676 GL_SERVICE_LOG("glGetUniformIndices"
3677 << "(" << program
<< ", " << uniformCount
<< ", "
3678 << static_cast<const void*>(uniformNames
) << ", "
3679 << static_cast<const void*>(uniformIndices
) << ")");
3680 g_driver_gl
.debug_fn
.glGetUniformIndicesFn(program
, uniformCount
,
3681 uniformNames
, uniformIndices
);
3684 static void GL_BINDING_CALL
Debug_glGetUniformiv(GLuint program
,
3687 GL_SERVICE_LOG("glGetUniformiv"
3688 << "(" << program
<< ", " << location
<< ", "
3689 << static_cast<const void*>(params
) << ")");
3690 g_driver_gl
.debug_fn
.glGetUniformivFn(program
, location
, params
);
3693 static GLint GL_BINDING_CALL
Debug_glGetUniformLocation(GLuint program
,
3695 GL_SERVICE_LOG("glGetUniformLocation"
3696 << "(" << program
<< ", " << name
<< ")");
3697 GLint result
= g_driver_gl
.debug_fn
.glGetUniformLocationFn(program
, name
);
3698 GL_SERVICE_LOG("GL_RESULT: " << result
);
3702 static void GL_BINDING_CALL
Debug_glGetUniformuiv(GLuint program
,
3705 GL_SERVICE_LOG("glGetUniformuiv"
3706 << "(" << program
<< ", " << location
<< ", "
3707 << static_cast<const void*>(params
) << ")");
3708 g_driver_gl
.debug_fn
.glGetUniformuivFn(program
, location
, params
);
3711 static void GL_BINDING_CALL
Debug_glGetVertexAttribfv(GLuint index
,
3714 GL_SERVICE_LOG("glGetVertexAttribfv"
3715 << "(" << index
<< ", " << GLEnums::GetStringEnum(pname
)
3716 << ", " << static_cast<const void*>(params
) << ")");
3717 g_driver_gl
.debug_fn
.glGetVertexAttribfvFn(index
, pname
, params
);
3720 static void GL_BINDING_CALL
Debug_glGetVertexAttribiv(GLuint index
,
3723 GL_SERVICE_LOG("glGetVertexAttribiv"
3724 << "(" << index
<< ", " << GLEnums::GetStringEnum(pname
)
3725 << ", " << static_cast<const void*>(params
) << ")");
3726 g_driver_gl
.debug_fn
.glGetVertexAttribivFn(index
, pname
, params
);
3729 static void GL_BINDING_CALL
Debug_glGetVertexAttribPointerv(GLuint index
,
3732 GL_SERVICE_LOG("glGetVertexAttribPointerv"
3733 << "(" << index
<< ", " << GLEnums::GetStringEnum(pname
)
3734 << ", " << pointer
<< ")");
3735 g_driver_gl
.debug_fn
.glGetVertexAttribPointervFn(index
, pname
, pointer
);
3738 static void GL_BINDING_CALL
Debug_glHint(GLenum target
, GLenum mode
) {
3739 GL_SERVICE_LOG("glHint"
3740 << "(" << GLEnums::GetStringEnum(target
) << ", "
3741 << GLEnums::GetStringEnum(mode
) << ")");
3742 g_driver_gl
.debug_fn
.glHintFn(target
, mode
);
3745 static void GL_BINDING_CALL
Debug_glInsertEventMarkerEXT(GLsizei length
,
3746 const char* marker
) {
3747 GL_SERVICE_LOG("glInsertEventMarkerEXT"
3748 << "(" << length
<< ", " << marker
<< ")");
3749 g_driver_gl
.debug_fn
.glInsertEventMarkerEXTFn(length
, marker
);
3752 static void GL_BINDING_CALL
3753 Debug_glInvalidateFramebuffer(GLenum target
,
3754 GLsizei numAttachments
,
3755 const GLenum
* attachments
) {
3756 GL_SERVICE_LOG("glInvalidateFramebuffer"
3757 << "(" << GLEnums::GetStringEnum(target
) << ", "
3758 << numAttachments
<< ", "
3759 << static_cast<const void*>(attachments
) << ")");
3760 g_driver_gl
.debug_fn
.glInvalidateFramebufferFn(target
, numAttachments
,
3764 static void GL_BINDING_CALL
3765 Debug_glInvalidateSubFramebuffer(GLenum target
,
3766 GLsizei numAttachments
,
3767 const GLenum
* attachments
,
3772 GL_SERVICE_LOG("glInvalidateSubFramebuffer"
3773 << "(" << GLEnums::GetStringEnum(target
) << ", "
3774 << numAttachments
<< ", "
3775 << static_cast<const void*>(attachments
) << ", " << x
<< ", "
3776 << y
<< ", " << width
<< ", " << height
<< ")");
3777 g_driver_gl
.debug_fn
.glInvalidateSubFramebufferFn(
3778 target
, numAttachments
, attachments
, x
, y
, width
, height
);
3781 static GLboolean GL_BINDING_CALL
Debug_glIsBuffer(GLuint buffer
) {
3782 GL_SERVICE_LOG("glIsBuffer"
3783 << "(" << buffer
<< ")");
3784 GLboolean result
= g_driver_gl
.debug_fn
.glIsBufferFn(buffer
);
3785 GL_SERVICE_LOG("GL_RESULT: " << result
);
3789 static GLboolean GL_BINDING_CALL
Debug_glIsEnabled(GLenum cap
) {
3790 GL_SERVICE_LOG("glIsEnabled"
3791 << "(" << GLEnums::GetStringEnum(cap
) << ")");
3792 GLboolean result
= g_driver_gl
.debug_fn
.glIsEnabledFn(cap
);
3793 GL_SERVICE_LOG("GL_RESULT: " << result
);
3797 static GLboolean GL_BINDING_CALL
Debug_glIsFenceAPPLE(GLuint fence
) {
3798 GL_SERVICE_LOG("glIsFenceAPPLE"
3799 << "(" << fence
<< ")");
3800 GLboolean result
= g_driver_gl
.debug_fn
.glIsFenceAPPLEFn(fence
);
3801 GL_SERVICE_LOG("GL_RESULT: " << result
);
3805 static GLboolean GL_BINDING_CALL
Debug_glIsFenceNV(GLuint fence
) {
3806 GL_SERVICE_LOG("glIsFenceNV"
3807 << "(" << fence
<< ")");
3808 GLboolean result
= g_driver_gl
.debug_fn
.glIsFenceNVFn(fence
);
3809 GL_SERVICE_LOG("GL_RESULT: " << result
);
3813 static GLboolean GL_BINDING_CALL
Debug_glIsFramebufferEXT(GLuint framebuffer
) {
3814 GL_SERVICE_LOG("glIsFramebufferEXT"
3815 << "(" << framebuffer
<< ")");
3816 GLboolean result
= g_driver_gl
.debug_fn
.glIsFramebufferEXTFn(framebuffer
);
3817 GL_SERVICE_LOG("GL_RESULT: " << result
);
3821 static GLboolean GL_BINDING_CALL
Debug_glIsPathNV(GLuint path
) {
3822 GL_SERVICE_LOG("glIsPathNV"
3823 << "(" << path
<< ")");
3824 GLboolean result
= g_driver_gl
.debug_fn
.glIsPathNVFn(path
);
3825 GL_SERVICE_LOG("GL_RESULT: " << result
);
3829 static GLboolean GL_BINDING_CALL
Debug_glIsProgram(GLuint program
) {
3830 GL_SERVICE_LOG("glIsProgram"
3831 << "(" << program
<< ")");
3832 GLboolean result
= g_driver_gl
.debug_fn
.glIsProgramFn(program
);
3833 GL_SERVICE_LOG("GL_RESULT: " << result
);
3837 static GLboolean GL_BINDING_CALL
Debug_glIsQuery(GLuint query
) {
3838 GL_SERVICE_LOG("glIsQuery"
3839 << "(" << query
<< ")");
3840 GLboolean result
= g_driver_gl
.debug_fn
.glIsQueryFn(query
);
3841 GL_SERVICE_LOG("GL_RESULT: " << result
);
3845 static GLboolean GL_BINDING_CALL
3846 Debug_glIsRenderbufferEXT(GLuint renderbuffer
) {
3847 GL_SERVICE_LOG("glIsRenderbufferEXT"
3848 << "(" << renderbuffer
<< ")");
3849 GLboolean result
= g_driver_gl
.debug_fn
.glIsRenderbufferEXTFn(renderbuffer
);
3850 GL_SERVICE_LOG("GL_RESULT: " << result
);
3854 static GLboolean GL_BINDING_CALL
Debug_glIsSampler(GLuint sampler
) {
3855 GL_SERVICE_LOG("glIsSampler"
3856 << "(" << sampler
<< ")");
3857 GLboolean result
= g_driver_gl
.debug_fn
.glIsSamplerFn(sampler
);
3858 GL_SERVICE_LOG("GL_RESULT: " << result
);
3862 static GLboolean GL_BINDING_CALL
Debug_glIsShader(GLuint shader
) {
3863 GL_SERVICE_LOG("glIsShader"
3864 << "(" << shader
<< ")");
3865 GLboolean result
= g_driver_gl
.debug_fn
.glIsShaderFn(shader
);
3866 GL_SERVICE_LOG("GL_RESULT: " << result
);
3870 static GLboolean GL_BINDING_CALL
Debug_glIsSync(GLsync sync
) {
3871 GL_SERVICE_LOG("glIsSync"
3872 << "(" << sync
<< ")");
3873 GLboolean result
= g_driver_gl
.debug_fn
.glIsSyncFn(sync
);
3874 GL_SERVICE_LOG("GL_RESULT: " << result
);
3878 static GLboolean GL_BINDING_CALL
Debug_glIsTexture(GLuint texture
) {
3879 GL_SERVICE_LOG("glIsTexture"
3880 << "(" << texture
<< ")");
3881 GLboolean result
= g_driver_gl
.debug_fn
.glIsTextureFn(texture
);
3882 GL_SERVICE_LOG("GL_RESULT: " << result
);
3886 static GLboolean GL_BINDING_CALL
Debug_glIsTransformFeedback(GLuint id
) {
3887 GL_SERVICE_LOG("glIsTransformFeedback"
3888 << "(" << id
<< ")");
3889 GLboolean result
= g_driver_gl
.debug_fn
.glIsTransformFeedbackFn(id
);
3890 GL_SERVICE_LOG("GL_RESULT: " << result
);
3894 static GLboolean GL_BINDING_CALL
Debug_glIsVertexArrayOES(GLuint array
) {
3895 GL_SERVICE_LOG("glIsVertexArrayOES"
3896 << "(" << array
<< ")");
3897 GLboolean result
= g_driver_gl
.debug_fn
.glIsVertexArrayOESFn(array
);
3898 GL_SERVICE_LOG("GL_RESULT: " << result
);
3902 static void GL_BINDING_CALL
Debug_glLineWidth(GLfloat width
) {
3903 GL_SERVICE_LOG("glLineWidth"
3904 << "(" << width
<< ")");
3905 g_driver_gl
.debug_fn
.glLineWidthFn(width
);
3908 static void GL_BINDING_CALL
Debug_glLinkProgram(GLuint program
) {
3909 GL_SERVICE_LOG("glLinkProgram"
3910 << "(" << program
<< ")");
3911 g_driver_gl
.debug_fn
.glLinkProgramFn(program
);
3914 static void* GL_BINDING_CALL
Debug_glMapBuffer(GLenum target
, GLenum access
) {
3915 GL_SERVICE_LOG("glMapBuffer"
3916 << "(" << GLEnums::GetStringEnum(target
) << ", "
3917 << GLEnums::GetStringEnum(access
) << ")");
3918 void* result
= g_driver_gl
.debug_fn
.glMapBufferFn(target
, access
);
3919 GL_SERVICE_LOG("GL_RESULT: " << result
);
3923 static void* GL_BINDING_CALL
Debug_glMapBufferRange(GLenum target
,
3926 GLbitfield access
) {
3927 GL_SERVICE_LOG("glMapBufferRange"
3928 << "(" << GLEnums::GetStringEnum(target
) << ", " << offset
3929 << ", " << length
<< ", " << access
<< ")");
3931 g_driver_gl
.debug_fn
.glMapBufferRangeFn(target
, offset
, length
, access
);
3932 GL_SERVICE_LOG("GL_RESULT: " << result
);
3936 static void GL_BINDING_CALL
Debug_glMatrixLoadfEXT(GLenum matrixMode
,
3938 GL_SERVICE_LOG("glMatrixLoadfEXT"
3939 << "(" << GLEnums::GetStringEnum(matrixMode
) << ", "
3940 << static_cast<const void*>(m
) << ")");
3941 g_driver_gl
.debug_fn
.glMatrixLoadfEXTFn(matrixMode
, m
);
3944 static void GL_BINDING_CALL
Debug_glMatrixLoadIdentityEXT(GLenum matrixMode
) {
3945 GL_SERVICE_LOG("glMatrixLoadIdentityEXT"
3946 << "(" << GLEnums::GetStringEnum(matrixMode
) << ")");
3947 g_driver_gl
.debug_fn
.glMatrixLoadIdentityEXTFn(matrixMode
);
3950 static void GL_BINDING_CALL
Debug_glPathCommandsNV(GLuint path
,
3951 GLsizei numCommands
,
3952 const GLubyte
* commands
,
3955 const GLvoid
* coords
) {
3956 GL_SERVICE_LOG("glPathCommandsNV"
3957 << "(" << path
<< ", " << numCommands
<< ", "
3958 << static_cast<const void*>(commands
) << ", " << numCoords
3959 << ", " << GLEnums::GetStringEnum(coordType
) << ", "
3960 << static_cast<const void*>(coords
) << ")");
3961 g_driver_gl
.debug_fn
.glPathCommandsNVFn(path
, numCommands
, commands
,
3962 numCoords
, coordType
, coords
);
3965 static void GL_BINDING_CALL
Debug_glPathParameterfNV(GLuint path
,
3968 GL_SERVICE_LOG("glPathParameterfNV"
3969 << "(" << path
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3971 g_driver_gl
.debug_fn
.glPathParameterfNVFn(path
, pname
, value
);
3974 static void GL_BINDING_CALL
Debug_glPathParameteriNV(GLuint path
,
3977 GL_SERVICE_LOG("glPathParameteriNV"
3978 << "(" << path
<< ", " << GLEnums::GetStringEnum(pname
) << ", "
3980 g_driver_gl
.debug_fn
.glPathParameteriNVFn(path
, pname
, value
);
3983 static void GL_BINDING_CALL
Debug_glPathStencilFuncNV(GLenum func
,
3986 GL_SERVICE_LOG("glPathStencilFuncNV"
3987 << "(" << GLEnums::GetStringEnum(func
) << ", " << ref
<< ", "
3989 g_driver_gl
.debug_fn
.glPathStencilFuncNVFn(func
, ref
, mask
);
3992 static void GL_BINDING_CALL
Debug_glPauseTransformFeedback(void) {
3993 GL_SERVICE_LOG("glPauseTransformFeedback"
3996 g_driver_gl
.debug_fn
.glPauseTransformFeedbackFn();
3999 static void GL_BINDING_CALL
Debug_glPixelStorei(GLenum pname
, GLint param
) {
4000 GL_SERVICE_LOG("glPixelStorei"
4001 << "(" << GLEnums::GetStringEnum(pname
) << ", " << param
4003 g_driver_gl
.debug_fn
.glPixelStoreiFn(pname
, param
);
4006 static void GL_BINDING_CALL
Debug_glPointParameteri(GLenum pname
, GLint param
) {
4007 GL_SERVICE_LOG("glPointParameteri"
4008 << "(" << GLEnums::GetStringEnum(pname
) << ", " << param
4010 g_driver_gl
.debug_fn
.glPointParameteriFn(pname
, param
);
4013 static void GL_BINDING_CALL
Debug_glPolygonOffset(GLfloat factor
,
4015 GL_SERVICE_LOG("glPolygonOffset"
4016 << "(" << factor
<< ", " << units
<< ")");
4017 g_driver_gl
.debug_fn
.glPolygonOffsetFn(factor
, units
);
4020 static void GL_BINDING_CALL
Debug_glPopGroupMarkerEXT(void) {
4021 GL_SERVICE_LOG("glPopGroupMarkerEXT"
4024 g_driver_gl
.debug_fn
.glPopGroupMarkerEXTFn();
4027 static void GL_BINDING_CALL
Debug_glProgramBinary(GLuint program
,
4028 GLenum binaryFormat
,
4029 const GLvoid
* binary
,
4031 GL_SERVICE_LOG("glProgramBinary"
4032 << "(" << program
<< ", "
4033 << GLEnums::GetStringEnum(binaryFormat
) << ", "
4034 << static_cast<const void*>(binary
) << ", " << length
<< ")");
4035 g_driver_gl
.debug_fn
.glProgramBinaryFn(program
, binaryFormat
, binary
, length
);
4038 static void GL_BINDING_CALL
Debug_glProgramParameteri(GLuint program
,
4041 GL_SERVICE_LOG("glProgramParameteri"
4042 << "(" << program
<< ", " << GLEnums::GetStringEnum(pname
)
4043 << ", " << value
<< ")");
4044 g_driver_gl
.debug_fn
.glProgramParameteriFn(program
, pname
, value
);
4047 static void GL_BINDING_CALL
Debug_glPushGroupMarkerEXT(GLsizei length
,
4048 const char* marker
) {
4049 GL_SERVICE_LOG("glPushGroupMarkerEXT"
4050 << "(" << length
<< ", " << marker
<< ")");
4051 g_driver_gl
.debug_fn
.glPushGroupMarkerEXTFn(length
, marker
);
4054 static void GL_BINDING_CALL
Debug_glQueryCounter(GLuint id
, GLenum target
) {
4055 GL_SERVICE_LOG("glQueryCounter"
4056 << "(" << id
<< ", " << GLEnums::GetStringEnum(target
) << ")");
4057 g_driver_gl
.debug_fn
.glQueryCounterFn(id
, target
);
4060 static void GL_BINDING_CALL
Debug_glReadBuffer(GLenum src
) {
4061 GL_SERVICE_LOG("glReadBuffer"
4062 << "(" << GLEnums::GetStringEnum(src
) << ")");
4063 g_driver_gl
.debug_fn
.glReadBufferFn(src
);
4066 static void GL_BINDING_CALL
Debug_glReadPixels(GLint x
,
4073 GL_SERVICE_LOG("glReadPixels"
4074 << "(" << x
<< ", " << y
<< ", " << width
<< ", " << height
4075 << ", " << GLEnums::GetStringEnum(format
) << ", "
4076 << GLEnums::GetStringEnum(type
) << ", "
4077 << static_cast<const void*>(pixels
) << ")");
4078 g_driver_gl
.debug_fn
.glReadPixelsFn(x
, y
, width
, height
, format
, type
,
4082 static void GL_BINDING_CALL
Debug_glReleaseShaderCompiler(void) {
4083 GL_SERVICE_LOG("glReleaseShaderCompiler"
4086 g_driver_gl
.debug_fn
.glReleaseShaderCompilerFn();
4089 static void GL_BINDING_CALL
4090 Debug_glRenderbufferStorageEXT(GLenum target
,
4091 GLenum internalformat
,
4094 GL_SERVICE_LOG("glRenderbufferStorageEXT"
4095 << "(" << GLEnums::GetStringEnum(target
) << ", "
4096 << GLEnums::GetStringEnum(internalformat
) << ", " << width
4097 << ", " << height
<< ")");
4098 g_driver_gl
.debug_fn
.glRenderbufferStorageEXTFn(target
, internalformat
, width
,
4102 static void GL_BINDING_CALL
4103 Debug_glRenderbufferStorageMultisample(GLenum target
,
4105 GLenum internalformat
,
4108 GL_SERVICE_LOG("glRenderbufferStorageMultisample"
4109 << "(" << GLEnums::GetStringEnum(target
) << ", " << samples
4110 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
4111 << width
<< ", " << height
<< ")");
4112 g_driver_gl
.debug_fn
.glRenderbufferStorageMultisampleFn(
4113 target
, samples
, internalformat
, width
, height
);
4116 static void GL_BINDING_CALL
4117 Debug_glRenderbufferStorageMultisampleANGLE(GLenum target
,
4119 GLenum internalformat
,
4122 GL_SERVICE_LOG("glRenderbufferStorageMultisampleANGLE"
4123 << "(" << GLEnums::GetStringEnum(target
) << ", " << samples
4124 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
4125 << width
<< ", " << height
<< ")");
4126 g_driver_gl
.debug_fn
.glRenderbufferStorageMultisampleANGLEFn(
4127 target
, samples
, internalformat
, width
, height
);
4130 static void GL_BINDING_CALL
4131 Debug_glRenderbufferStorageMultisampleEXT(GLenum target
,
4133 GLenum internalformat
,
4136 GL_SERVICE_LOG("glRenderbufferStorageMultisampleEXT"
4137 << "(" << GLEnums::GetStringEnum(target
) << ", " << samples
4138 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
4139 << width
<< ", " << height
<< ")");
4140 g_driver_gl
.debug_fn
.glRenderbufferStorageMultisampleEXTFn(
4141 target
, samples
, internalformat
, width
, height
);
4144 static void GL_BINDING_CALL
4145 Debug_glRenderbufferStorageMultisampleIMG(GLenum target
,
4147 GLenum internalformat
,
4150 GL_SERVICE_LOG("glRenderbufferStorageMultisampleIMG"
4151 << "(" << GLEnums::GetStringEnum(target
) << ", " << samples
4152 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
4153 << width
<< ", " << height
<< ")");
4154 g_driver_gl
.debug_fn
.glRenderbufferStorageMultisampleIMGFn(
4155 target
, samples
, internalformat
, width
, height
);
4158 static void GL_BINDING_CALL
Debug_glResumeTransformFeedback(void) {
4159 GL_SERVICE_LOG("glResumeTransformFeedback"
4162 g_driver_gl
.debug_fn
.glResumeTransformFeedbackFn();
4165 static void GL_BINDING_CALL
Debug_glSampleCoverage(GLclampf value
,
4167 GL_SERVICE_LOG("glSampleCoverage"
4168 << "(" << value
<< ", " << GLEnums::GetStringBool(invert
)
4170 g_driver_gl
.debug_fn
.glSampleCoverageFn(value
, invert
);
4173 static void GL_BINDING_CALL
Debug_glSamplerParameterf(GLuint sampler
,
4176 GL_SERVICE_LOG("glSamplerParameterf"
4177 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
4178 << ", " << param
<< ")");
4179 g_driver_gl
.debug_fn
.glSamplerParameterfFn(sampler
, pname
, param
);
4182 static void GL_BINDING_CALL
Debug_glSamplerParameterfv(GLuint sampler
,
4184 const GLfloat
* params
) {
4185 GL_SERVICE_LOG("glSamplerParameterfv"
4186 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
4187 << ", " << static_cast<const void*>(params
) << ")");
4188 g_driver_gl
.debug_fn
.glSamplerParameterfvFn(sampler
, pname
, params
);
4191 static void GL_BINDING_CALL
Debug_glSamplerParameteri(GLuint sampler
,
4194 GL_SERVICE_LOG("glSamplerParameteri"
4195 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
4196 << ", " << param
<< ")");
4197 g_driver_gl
.debug_fn
.glSamplerParameteriFn(sampler
, pname
, param
);
4200 static void GL_BINDING_CALL
Debug_glSamplerParameteriv(GLuint sampler
,
4202 const GLint
* params
) {
4203 GL_SERVICE_LOG("glSamplerParameteriv"
4204 << "(" << sampler
<< ", " << GLEnums::GetStringEnum(pname
)
4205 << ", " << static_cast<const void*>(params
) << ")");
4206 g_driver_gl
.debug_fn
.glSamplerParameterivFn(sampler
, pname
, params
);
4209 static void GL_BINDING_CALL
Debug_glScissor(GLint x
,
4213 GL_SERVICE_LOG("glScissor"
4214 << "(" << x
<< ", " << y
<< ", " << width
<< ", " << height
4216 g_driver_gl
.debug_fn
.glScissorFn(x
, y
, width
, height
);
4219 static void GL_BINDING_CALL
Debug_glSetFenceAPPLE(GLuint fence
) {
4220 GL_SERVICE_LOG("glSetFenceAPPLE"
4221 << "(" << fence
<< ")");
4222 g_driver_gl
.debug_fn
.glSetFenceAPPLEFn(fence
);
4225 static void GL_BINDING_CALL
Debug_glSetFenceNV(GLuint fence
, GLenum condition
) {
4226 GL_SERVICE_LOG("glSetFenceNV"
4227 << "(" << fence
<< ", " << GLEnums::GetStringEnum(condition
)
4229 g_driver_gl
.debug_fn
.glSetFenceNVFn(fence
, condition
);
4232 static void GL_BINDING_CALL
Debug_glShaderBinary(GLsizei n
,
4233 const GLuint
* shaders
,
4234 GLenum binaryformat
,
4237 GL_SERVICE_LOG("glShaderBinary"
4238 << "(" << n
<< ", " << static_cast<const void*>(shaders
)
4239 << ", " << GLEnums::GetStringEnum(binaryformat
) << ", "
4240 << static_cast<const void*>(binary
) << ", " << length
<< ")");
4241 g_driver_gl
.debug_fn
.glShaderBinaryFn(n
, shaders
, binaryformat
, binary
,
4245 static void GL_BINDING_CALL
Debug_glShaderSource(GLuint shader
,
4247 const char* const* str
,
4248 const GLint
* length
) {
4249 GL_SERVICE_LOG("glShaderSource"
4250 << "(" << shader
<< ", " << count
<< ", "
4251 << static_cast<const void*>(str
) << ", "
4252 << static_cast<const void*>(length
) << ")");
4253 g_driver_gl
.debug_fn
.glShaderSourceFn(shader
, count
, str
, length
);
4255 GL_SERVICE_LOG_CODE_BLOCK({
4256 for (GLsizei ii
= 0; ii
< count
; ++ii
) {
4258 if (length
&& length
[ii
] >= 0) {
4259 std::string
source(str
[ii
], length
[ii
]);
4260 GL_SERVICE_LOG(" " << ii
<< ": ---\n" << source
<< "\n---");
4262 GL_SERVICE_LOG(" " << ii
<< ": ---\n" << str
[ii
] << "\n---");
4265 GL_SERVICE_LOG(" " << ii
<< ": NULL");
4271 static void GL_BINDING_CALL
Debug_glStencilFillPathNV(GLuint path
,
4274 GL_SERVICE_LOG("glStencilFillPathNV"
4275 << "(" << path
<< ", " << GLEnums::GetStringEnum(fillMode
)
4276 << ", " << mask
<< ")");
4277 g_driver_gl
.debug_fn
.glStencilFillPathNVFn(path
, fillMode
, mask
);
4280 static void GL_BINDING_CALL
Debug_glStencilFunc(GLenum func
,
4283 GL_SERVICE_LOG("glStencilFunc"
4284 << "(" << GLEnums::GetStringEnum(func
) << ", " << ref
<< ", "
4286 g_driver_gl
.debug_fn
.glStencilFuncFn(func
, ref
, mask
);
4289 static void GL_BINDING_CALL
Debug_glStencilFuncSeparate(GLenum face
,
4293 GL_SERVICE_LOG("glStencilFuncSeparate"
4294 << "(" << GLEnums::GetStringEnum(face
) << ", "
4295 << GLEnums::GetStringEnum(func
) << ", " << ref
<< ", " << mask
4297 g_driver_gl
.debug_fn
.glStencilFuncSeparateFn(face
, func
, ref
, mask
);
4300 static void GL_BINDING_CALL
Debug_glStencilMask(GLuint mask
) {
4301 GL_SERVICE_LOG("glStencilMask"
4302 << "(" << mask
<< ")");
4303 g_driver_gl
.debug_fn
.glStencilMaskFn(mask
);
4306 static void GL_BINDING_CALL
Debug_glStencilMaskSeparate(GLenum face
,
4308 GL_SERVICE_LOG("glStencilMaskSeparate"
4309 << "(" << GLEnums::GetStringEnum(face
) << ", " << mask
<< ")");
4310 g_driver_gl
.debug_fn
.glStencilMaskSeparateFn(face
, mask
);
4313 static void GL_BINDING_CALL
Debug_glStencilOp(GLenum fail
,
4316 GL_SERVICE_LOG("glStencilOp"
4317 << "(" << GLEnums::GetStringEnum(fail
) << ", "
4318 << GLEnums::GetStringEnum(zfail
) << ", "
4319 << GLEnums::GetStringEnum(zpass
) << ")");
4320 g_driver_gl
.debug_fn
.glStencilOpFn(fail
, zfail
, zpass
);
4323 static void GL_BINDING_CALL
Debug_glStencilOpSeparate(GLenum face
,
4327 GL_SERVICE_LOG("glStencilOpSeparate"
4328 << "(" << GLEnums::GetStringEnum(face
) << ", "
4329 << GLEnums::GetStringEnum(fail
) << ", "
4330 << GLEnums::GetStringEnum(zfail
) << ", "
4331 << GLEnums::GetStringEnum(zpass
) << ")");
4332 g_driver_gl
.debug_fn
.glStencilOpSeparateFn(face
, fail
, zfail
, zpass
);
4335 static void GL_BINDING_CALL
Debug_glStencilStrokePathNV(GLuint path
,
4338 GL_SERVICE_LOG("glStencilStrokePathNV"
4339 << "(" << path
<< ", " << reference
<< ", " << mask
<< ")");
4340 g_driver_gl
.debug_fn
.glStencilStrokePathNVFn(path
, reference
, mask
);
4343 static void GL_BINDING_CALL
4344 Debug_glStencilThenCoverFillPathNV(GLuint path
,
4348 GL_SERVICE_LOG("glStencilThenCoverFillPathNV"
4349 << "(" << path
<< ", " << GLEnums::GetStringEnum(fillMode
)
4350 << ", " << mask
<< ", " << GLEnums::GetStringEnum(coverMode
)
4352 g_driver_gl
.debug_fn
.glStencilThenCoverFillPathNVFn(path
, fillMode
, mask
,
4356 static void GL_BINDING_CALL
4357 Debug_glStencilThenCoverStrokePathNV(GLuint path
,
4361 GL_SERVICE_LOG("glStencilThenCoverStrokePathNV"
4362 << "(" << path
<< ", " << reference
<< ", " << mask
<< ", "
4363 << GLEnums::GetStringEnum(coverMode
) << ")");
4364 g_driver_gl
.debug_fn
.glStencilThenCoverStrokePathNVFn(path
, reference
, mask
,
4368 static GLboolean GL_BINDING_CALL
Debug_glTestFenceAPPLE(GLuint fence
) {
4369 GL_SERVICE_LOG("glTestFenceAPPLE"
4370 << "(" << fence
<< ")");
4371 GLboolean result
= g_driver_gl
.debug_fn
.glTestFenceAPPLEFn(fence
);
4372 GL_SERVICE_LOG("GL_RESULT: " << result
);
4376 static GLboolean GL_BINDING_CALL
Debug_glTestFenceNV(GLuint fence
) {
4377 GL_SERVICE_LOG("glTestFenceNV"
4378 << "(" << fence
<< ")");
4379 GLboolean result
= g_driver_gl
.debug_fn
.glTestFenceNVFn(fence
);
4380 GL_SERVICE_LOG("GL_RESULT: " << result
);
4384 static void GL_BINDING_CALL
Debug_glTexImage2D(GLenum target
,
4386 GLint internalformat
,
4392 const void* pixels
) {
4393 GL_SERVICE_LOG("glTexImage2D"
4394 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
4395 << ", " << internalformat
<< ", " << width
<< ", " << height
4396 << ", " << border
<< ", " << GLEnums::GetStringEnum(format
)
4397 << ", " << GLEnums::GetStringEnum(type
) << ", "
4398 << static_cast<const void*>(pixels
) << ")");
4399 g_driver_gl
.debug_fn
.glTexImage2DFn(target
, level
, internalformat
, width
,
4400 height
, border
, format
, type
, pixels
);
4403 static void GL_BINDING_CALL
Debug_glTexImage3D(GLenum target
,
4405 GLint internalformat
,
4412 const void* pixels
) {
4413 GL_SERVICE_LOG("glTexImage3D"
4414 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
4415 << ", " << internalformat
<< ", " << width
<< ", " << height
4416 << ", " << depth
<< ", " << border
<< ", "
4417 << GLEnums::GetStringEnum(format
) << ", "
4418 << GLEnums::GetStringEnum(type
) << ", "
4419 << static_cast<const void*>(pixels
) << ")");
4420 g_driver_gl
.debug_fn
.glTexImage3DFn(target
, level
, internalformat
, width
,
4421 height
, depth
, border
, format
, type
,
4425 static void GL_BINDING_CALL
Debug_glTexParameterf(GLenum target
,
4428 GL_SERVICE_LOG("glTexParameterf"
4429 << "(" << GLEnums::GetStringEnum(target
) << ", "
4430 << GLEnums::GetStringEnum(pname
) << ", " << param
<< ")");
4431 g_driver_gl
.debug_fn
.glTexParameterfFn(target
, pname
, param
);
4434 static void GL_BINDING_CALL
Debug_glTexParameterfv(GLenum target
,
4436 const GLfloat
* params
) {
4437 GL_SERVICE_LOG("glTexParameterfv"
4438 << "(" << GLEnums::GetStringEnum(target
) << ", "
4439 << GLEnums::GetStringEnum(pname
) << ", "
4440 << static_cast<const void*>(params
) << ")");
4441 g_driver_gl
.debug_fn
.glTexParameterfvFn(target
, pname
, params
);
4444 static void GL_BINDING_CALL
Debug_glTexParameteri(GLenum target
,
4447 GL_SERVICE_LOG("glTexParameteri"
4448 << "(" << GLEnums::GetStringEnum(target
) << ", "
4449 << GLEnums::GetStringEnum(pname
) << ", " << param
<< ")");
4450 g_driver_gl
.debug_fn
.glTexParameteriFn(target
, pname
, param
);
4453 static void GL_BINDING_CALL
Debug_glTexParameteriv(GLenum target
,
4455 const GLint
* params
) {
4456 GL_SERVICE_LOG("glTexParameteriv"
4457 << "(" << GLEnums::GetStringEnum(target
) << ", "
4458 << GLEnums::GetStringEnum(pname
) << ", "
4459 << static_cast<const void*>(params
) << ")");
4460 g_driver_gl
.debug_fn
.glTexParameterivFn(target
, pname
, params
);
4463 static void GL_BINDING_CALL
Debug_glTexStorage2DEXT(GLenum target
,
4465 GLenum internalformat
,
4468 GL_SERVICE_LOG("glTexStorage2DEXT"
4469 << "(" << GLEnums::GetStringEnum(target
) << ", " << levels
4470 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
4471 << width
<< ", " << height
<< ")");
4472 g_driver_gl
.debug_fn
.glTexStorage2DEXTFn(target
, levels
, internalformat
,
4476 static void GL_BINDING_CALL
Debug_glTexStorage3D(GLenum target
,
4478 GLenum internalformat
,
4482 GL_SERVICE_LOG("glTexStorage3D"
4483 << "(" << GLEnums::GetStringEnum(target
) << ", " << levels
4484 << ", " << GLEnums::GetStringEnum(internalformat
) << ", "
4485 << width
<< ", " << height
<< ", " << depth
<< ")");
4486 g_driver_gl
.debug_fn
.glTexStorage3DFn(target
, levels
, internalformat
, width
,
4490 static void GL_BINDING_CALL
Debug_glTexSubImage2D(GLenum target
,
4498 const void* pixels
) {
4499 GL_SERVICE_LOG("glTexSubImage2D"
4500 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
4501 << ", " << xoffset
<< ", " << yoffset
<< ", " << width
<< ", "
4502 << height
<< ", " << GLEnums::GetStringEnum(format
) << ", "
4503 << GLEnums::GetStringEnum(type
) << ", "
4504 << static_cast<const void*>(pixels
) << ")");
4505 g_driver_gl
.debug_fn
.glTexSubImage2DFn(target
, level
, xoffset
, yoffset
, width
,
4506 height
, format
, type
, pixels
);
4509 static void GL_BINDING_CALL
Debug_glTexSubImage3D(GLenum target
,
4519 const void* pixels
) {
4520 GL_SERVICE_LOG("glTexSubImage3D"
4521 << "(" << GLEnums::GetStringEnum(target
) << ", " << level
4522 << ", " << xoffset
<< ", " << yoffset
<< ", " << zoffset
4523 << ", " << width
<< ", " << height
<< ", " << depth
<< ", "
4524 << GLEnums::GetStringEnum(format
) << ", "
4525 << GLEnums::GetStringEnum(type
) << ", "
4526 << static_cast<const void*>(pixels
) << ")");
4527 g_driver_gl
.debug_fn
.glTexSubImage3DFn(target
, level
, xoffset
, yoffset
,
4528 zoffset
, width
, height
, depth
, format
,
4532 static void GL_BINDING_CALL
4533 Debug_glTransformFeedbackVaryings(GLuint program
,
4535 const char* const* varyings
,
4536 GLenum bufferMode
) {
4537 GL_SERVICE_LOG("glTransformFeedbackVaryings"
4538 << "(" << program
<< ", " << count
<< ", "
4539 << static_cast<const void*>(varyings
) << ", "
4540 << GLEnums::GetStringEnum(bufferMode
) << ")");
4541 g_driver_gl
.debug_fn
.glTransformFeedbackVaryingsFn(program
, count
, varyings
,
4545 static void GL_BINDING_CALL
Debug_glUniform1f(GLint location
, GLfloat x
) {
4546 GL_SERVICE_LOG("glUniform1f"
4547 << "(" << location
<< ", " << x
<< ")");
4548 g_driver_gl
.debug_fn
.glUniform1fFn(location
, x
);
4551 static void GL_BINDING_CALL
Debug_glUniform1fv(GLint location
,
4554 GL_SERVICE_LOG("glUniform1fv"
4555 << "(" << location
<< ", " << count
<< ", "
4556 << static_cast<const void*>(v
) << ")");
4557 g_driver_gl
.debug_fn
.glUniform1fvFn(location
, count
, v
);
4560 static void GL_BINDING_CALL
Debug_glUniform1i(GLint location
, GLint x
) {
4561 GL_SERVICE_LOG("glUniform1i"
4562 << "(" << location
<< ", " << x
<< ")");
4563 g_driver_gl
.debug_fn
.glUniform1iFn(location
, x
);
4566 static void GL_BINDING_CALL
Debug_glUniform1iv(GLint location
,
4569 GL_SERVICE_LOG("glUniform1iv"
4570 << "(" << location
<< ", " << count
<< ", "
4571 << static_cast<const void*>(v
) << ")");
4572 g_driver_gl
.debug_fn
.glUniform1ivFn(location
, count
, v
);
4575 static void GL_BINDING_CALL
Debug_glUniform1ui(GLint location
, GLuint v0
) {
4576 GL_SERVICE_LOG("glUniform1ui"
4577 << "(" << location
<< ", " << v0
<< ")");
4578 g_driver_gl
.debug_fn
.glUniform1uiFn(location
, v0
);
4581 static void GL_BINDING_CALL
Debug_glUniform1uiv(GLint location
,
4584 GL_SERVICE_LOG("glUniform1uiv"
4585 << "(" << location
<< ", " << count
<< ", "
4586 << static_cast<const void*>(v
) << ")");
4587 g_driver_gl
.debug_fn
.glUniform1uivFn(location
, count
, v
);
4590 static void GL_BINDING_CALL
Debug_glUniform2f(GLint location
,
4593 GL_SERVICE_LOG("glUniform2f"
4594 << "(" << location
<< ", " << x
<< ", " << y
<< ")");
4595 g_driver_gl
.debug_fn
.glUniform2fFn(location
, x
, y
);
4598 static void GL_BINDING_CALL
Debug_glUniform2fv(GLint location
,
4601 GL_SERVICE_LOG("glUniform2fv"
4602 << "(" << location
<< ", " << count
<< ", "
4603 << static_cast<const void*>(v
) << ")");
4604 g_driver_gl
.debug_fn
.glUniform2fvFn(location
, count
, v
);
4607 static void GL_BINDING_CALL
Debug_glUniform2i(GLint location
,
4610 GL_SERVICE_LOG("glUniform2i"
4611 << "(" << location
<< ", " << x
<< ", " << y
<< ")");
4612 g_driver_gl
.debug_fn
.glUniform2iFn(location
, x
, y
);
4615 static void GL_BINDING_CALL
Debug_glUniform2iv(GLint location
,
4618 GL_SERVICE_LOG("glUniform2iv"
4619 << "(" << location
<< ", " << count
<< ", "
4620 << static_cast<const void*>(v
) << ")");
4621 g_driver_gl
.debug_fn
.glUniform2ivFn(location
, count
, v
);
4624 static void GL_BINDING_CALL
Debug_glUniform2ui(GLint location
,
4627 GL_SERVICE_LOG("glUniform2ui"
4628 << "(" << location
<< ", " << v0
<< ", " << v1
<< ")");
4629 g_driver_gl
.debug_fn
.glUniform2uiFn(location
, v0
, v1
);
4632 static void GL_BINDING_CALL
Debug_glUniform2uiv(GLint location
,
4635 GL_SERVICE_LOG("glUniform2uiv"
4636 << "(" << location
<< ", " << count
<< ", "
4637 << static_cast<const void*>(v
) << ")");
4638 g_driver_gl
.debug_fn
.glUniform2uivFn(location
, count
, v
);
4641 static void GL_BINDING_CALL
Debug_glUniform3f(GLint location
,
4645 GL_SERVICE_LOG("glUniform3f"
4646 << "(" << location
<< ", " << x
<< ", " << y
<< ", " << z
4648 g_driver_gl
.debug_fn
.glUniform3fFn(location
, x
, y
, z
);
4651 static void GL_BINDING_CALL
Debug_glUniform3fv(GLint location
,
4654 GL_SERVICE_LOG("glUniform3fv"
4655 << "(" << location
<< ", " << count
<< ", "
4656 << static_cast<const void*>(v
) << ")");
4657 g_driver_gl
.debug_fn
.glUniform3fvFn(location
, count
, v
);
4660 static void GL_BINDING_CALL
Debug_glUniform3i(GLint location
,
4664 GL_SERVICE_LOG("glUniform3i"
4665 << "(" << location
<< ", " << x
<< ", " << y
<< ", " << z
4667 g_driver_gl
.debug_fn
.glUniform3iFn(location
, x
, y
, z
);
4670 static void GL_BINDING_CALL
Debug_glUniform3iv(GLint location
,
4673 GL_SERVICE_LOG("glUniform3iv"
4674 << "(" << location
<< ", " << count
<< ", "
4675 << static_cast<const void*>(v
) << ")");
4676 g_driver_gl
.debug_fn
.glUniform3ivFn(location
, count
, v
);
4679 static void GL_BINDING_CALL
Debug_glUniform3ui(GLint location
,
4683 GL_SERVICE_LOG("glUniform3ui"
4684 << "(" << location
<< ", " << v0
<< ", " << v1
<< ", " << v2
4686 g_driver_gl
.debug_fn
.glUniform3uiFn(location
, v0
, v1
, v2
);
4689 static void GL_BINDING_CALL
Debug_glUniform3uiv(GLint location
,
4692 GL_SERVICE_LOG("glUniform3uiv"
4693 << "(" << location
<< ", " << count
<< ", "
4694 << static_cast<const void*>(v
) << ")");
4695 g_driver_gl
.debug_fn
.glUniform3uivFn(location
, count
, v
);
4698 static void GL_BINDING_CALL
4699 Debug_glUniform4f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
4700 GL_SERVICE_LOG("glUniform4f"
4701 << "(" << location
<< ", " << x
<< ", " << y
<< ", " << z
4702 << ", " << w
<< ")");
4703 g_driver_gl
.debug_fn
.glUniform4fFn(location
, x
, y
, z
, w
);
4706 static void GL_BINDING_CALL
Debug_glUniform4fv(GLint location
,
4709 GL_SERVICE_LOG("glUniform4fv"
4710 << "(" << location
<< ", " << count
<< ", "
4711 << static_cast<const void*>(v
) << ")");
4712 g_driver_gl
.debug_fn
.glUniform4fvFn(location
, count
, v
);
4715 static void GL_BINDING_CALL
4716 Debug_glUniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
4717 GL_SERVICE_LOG("glUniform4i"
4718 << "(" << location
<< ", " << x
<< ", " << y
<< ", " << z
4719 << ", " << w
<< ")");
4720 g_driver_gl
.debug_fn
.glUniform4iFn(location
, x
, y
, z
, w
);
4723 static void GL_BINDING_CALL
Debug_glUniform4iv(GLint location
,
4726 GL_SERVICE_LOG("glUniform4iv"
4727 << "(" << location
<< ", " << count
<< ", "
4728 << static_cast<const void*>(v
) << ")");
4729 g_driver_gl
.debug_fn
.glUniform4ivFn(location
, count
, v
);
4732 static void GL_BINDING_CALL
4733 Debug_glUniform4ui(GLint location
, GLuint v0
, GLuint v1
, GLuint v2
, GLuint v3
) {
4734 GL_SERVICE_LOG("glUniform4ui"
4735 << "(" << location
<< ", " << v0
<< ", " << v1
<< ", " << v2
4736 << ", " << v3
<< ")");
4737 g_driver_gl
.debug_fn
.glUniform4uiFn(location
, v0
, v1
, v2
, v3
);
4740 static void GL_BINDING_CALL
Debug_glUniform4uiv(GLint location
,
4743 GL_SERVICE_LOG("glUniform4uiv"
4744 << "(" << location
<< ", " << count
<< ", "
4745 << static_cast<const void*>(v
) << ")");
4746 g_driver_gl
.debug_fn
.glUniform4uivFn(location
, count
, v
);
4749 static void GL_BINDING_CALL
4750 Debug_glUniformBlockBinding(GLuint program
,
4751 GLuint uniformBlockIndex
,
4752 GLuint uniformBlockBinding
) {
4753 GL_SERVICE_LOG("glUniformBlockBinding"
4754 << "(" << program
<< ", " << uniformBlockIndex
<< ", "
4755 << uniformBlockBinding
<< ")");
4756 g_driver_gl
.debug_fn
.glUniformBlockBindingFn(program
, uniformBlockIndex
,
4757 uniformBlockBinding
);
4760 static void GL_BINDING_CALL
Debug_glUniformMatrix2fv(GLint location
,
4762 GLboolean transpose
,
4763 const GLfloat
* value
) {
4764 GL_SERVICE_LOG("glUniformMatrix2fv"
4765 << "(" << location
<< ", " << count
<< ", "
4766 << GLEnums::GetStringBool(transpose
) << ", "
4767 << static_cast<const void*>(value
) << ")");
4768 g_driver_gl
.debug_fn
.glUniformMatrix2fvFn(location
, count
, transpose
, value
);
4771 static void GL_BINDING_CALL
Debug_glUniformMatrix2x3fv(GLint location
,
4773 GLboolean transpose
,
4774 const GLfloat
* value
) {
4775 GL_SERVICE_LOG("glUniformMatrix2x3fv"
4776 << "(" << location
<< ", " << count
<< ", "
4777 << GLEnums::GetStringBool(transpose
) << ", "
4778 << static_cast<const void*>(value
) << ")");
4779 g_driver_gl
.debug_fn
.glUniformMatrix2x3fvFn(location
, count
, transpose
,
4783 static void GL_BINDING_CALL
Debug_glUniformMatrix2x4fv(GLint location
,
4785 GLboolean transpose
,
4786 const GLfloat
* value
) {
4787 GL_SERVICE_LOG("glUniformMatrix2x4fv"
4788 << "(" << location
<< ", " << count
<< ", "
4789 << GLEnums::GetStringBool(transpose
) << ", "
4790 << static_cast<const void*>(value
) << ")");
4791 g_driver_gl
.debug_fn
.glUniformMatrix2x4fvFn(location
, count
, transpose
,
4795 static void GL_BINDING_CALL
Debug_glUniformMatrix3fv(GLint location
,
4797 GLboolean transpose
,
4798 const GLfloat
* value
) {
4799 GL_SERVICE_LOG("glUniformMatrix3fv"
4800 << "(" << location
<< ", " << count
<< ", "
4801 << GLEnums::GetStringBool(transpose
) << ", "
4802 << static_cast<const void*>(value
) << ")");
4803 g_driver_gl
.debug_fn
.glUniformMatrix3fvFn(location
, count
, transpose
, value
);
4806 static void GL_BINDING_CALL
Debug_glUniformMatrix3x2fv(GLint location
,
4808 GLboolean transpose
,
4809 const GLfloat
* value
) {
4810 GL_SERVICE_LOG("glUniformMatrix3x2fv"
4811 << "(" << location
<< ", " << count
<< ", "
4812 << GLEnums::GetStringBool(transpose
) << ", "
4813 << static_cast<const void*>(value
) << ")");
4814 g_driver_gl
.debug_fn
.glUniformMatrix3x2fvFn(location
, count
, transpose
,
4818 static void GL_BINDING_CALL
Debug_glUniformMatrix3x4fv(GLint location
,
4820 GLboolean transpose
,
4821 const GLfloat
* value
) {
4822 GL_SERVICE_LOG("glUniformMatrix3x4fv"
4823 << "(" << location
<< ", " << count
<< ", "
4824 << GLEnums::GetStringBool(transpose
) << ", "
4825 << static_cast<const void*>(value
) << ")");
4826 g_driver_gl
.debug_fn
.glUniformMatrix3x4fvFn(location
, count
, transpose
,
4830 static void GL_BINDING_CALL
Debug_glUniformMatrix4fv(GLint location
,
4832 GLboolean transpose
,
4833 const GLfloat
* value
) {
4834 GL_SERVICE_LOG("glUniformMatrix4fv"
4835 << "(" << location
<< ", " << count
<< ", "
4836 << GLEnums::GetStringBool(transpose
) << ", "
4837 << static_cast<const void*>(value
) << ")");
4838 g_driver_gl
.debug_fn
.glUniformMatrix4fvFn(location
, count
, transpose
, value
);
4841 static void GL_BINDING_CALL
Debug_glUniformMatrix4x2fv(GLint location
,
4843 GLboolean transpose
,
4844 const GLfloat
* value
) {
4845 GL_SERVICE_LOG("glUniformMatrix4x2fv"
4846 << "(" << location
<< ", " << count
<< ", "
4847 << GLEnums::GetStringBool(transpose
) << ", "
4848 << static_cast<const void*>(value
) << ")");
4849 g_driver_gl
.debug_fn
.glUniformMatrix4x2fvFn(location
, count
, transpose
,
4853 static void GL_BINDING_CALL
Debug_glUniformMatrix4x3fv(GLint location
,
4855 GLboolean transpose
,
4856 const GLfloat
* value
) {
4857 GL_SERVICE_LOG("glUniformMatrix4x3fv"
4858 << "(" << location
<< ", " << count
<< ", "
4859 << GLEnums::GetStringBool(transpose
) << ", "
4860 << static_cast<const void*>(value
) << ")");
4861 g_driver_gl
.debug_fn
.glUniformMatrix4x3fvFn(location
, count
, transpose
,
4865 static GLboolean GL_BINDING_CALL
Debug_glUnmapBuffer(GLenum target
) {
4866 GL_SERVICE_LOG("glUnmapBuffer"
4867 << "(" << GLEnums::GetStringEnum(target
) << ")");
4868 GLboolean result
= g_driver_gl
.debug_fn
.glUnmapBufferFn(target
);
4869 GL_SERVICE_LOG("GL_RESULT: " << result
);
4873 static void GL_BINDING_CALL
Debug_glUseProgram(GLuint program
) {
4874 GL_SERVICE_LOG("glUseProgram"
4875 << "(" << program
<< ")");
4876 g_driver_gl
.debug_fn
.glUseProgramFn(program
);
4879 static void GL_BINDING_CALL
Debug_glValidateProgram(GLuint program
) {
4880 GL_SERVICE_LOG("glValidateProgram"
4881 << "(" << program
<< ")");
4882 g_driver_gl
.debug_fn
.glValidateProgramFn(program
);
4885 static void GL_BINDING_CALL
Debug_glVertexAttrib1f(GLuint indx
, GLfloat x
) {
4886 GL_SERVICE_LOG("glVertexAttrib1f"
4887 << "(" << indx
<< ", " << x
<< ")");
4888 g_driver_gl
.debug_fn
.glVertexAttrib1fFn(indx
, x
);
4891 static void GL_BINDING_CALL
Debug_glVertexAttrib1fv(GLuint indx
,
4892 const GLfloat
* values
) {
4893 GL_SERVICE_LOG("glVertexAttrib1fv"
4894 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4896 g_driver_gl
.debug_fn
.glVertexAttrib1fvFn(indx
, values
);
4899 static void GL_BINDING_CALL
Debug_glVertexAttrib2f(GLuint indx
,
4902 GL_SERVICE_LOG("glVertexAttrib2f"
4903 << "(" << indx
<< ", " << x
<< ", " << y
<< ")");
4904 g_driver_gl
.debug_fn
.glVertexAttrib2fFn(indx
, x
, y
);
4907 static void GL_BINDING_CALL
Debug_glVertexAttrib2fv(GLuint indx
,
4908 const GLfloat
* values
) {
4909 GL_SERVICE_LOG("glVertexAttrib2fv"
4910 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4912 g_driver_gl
.debug_fn
.glVertexAttrib2fvFn(indx
, values
);
4915 static void GL_BINDING_CALL
Debug_glVertexAttrib3f(GLuint indx
,
4919 GL_SERVICE_LOG("glVertexAttrib3f"
4920 << "(" << indx
<< ", " << x
<< ", " << y
<< ", " << z
<< ")");
4921 g_driver_gl
.debug_fn
.glVertexAttrib3fFn(indx
, x
, y
, z
);
4924 static void GL_BINDING_CALL
Debug_glVertexAttrib3fv(GLuint indx
,
4925 const GLfloat
* values
) {
4926 GL_SERVICE_LOG("glVertexAttrib3fv"
4927 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4929 g_driver_gl
.debug_fn
.glVertexAttrib3fvFn(indx
, values
);
4932 static void GL_BINDING_CALL
Debug_glVertexAttrib4f(GLuint indx
,
4937 GL_SERVICE_LOG("glVertexAttrib4f"
4938 << "(" << indx
<< ", " << x
<< ", " << y
<< ", " << z
<< ", "
4940 g_driver_gl
.debug_fn
.glVertexAttrib4fFn(indx
, x
, y
, z
, w
);
4943 static void GL_BINDING_CALL
Debug_glVertexAttrib4fv(GLuint indx
,
4944 const GLfloat
* values
) {
4945 GL_SERVICE_LOG("glVertexAttrib4fv"
4946 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4948 g_driver_gl
.debug_fn
.glVertexAttrib4fvFn(indx
, values
);
4951 static void GL_BINDING_CALL
Debug_glVertexAttribDivisorANGLE(GLuint index
,
4953 GL_SERVICE_LOG("glVertexAttribDivisorANGLE"
4954 << "(" << index
<< ", " << divisor
<< ")");
4955 g_driver_gl
.debug_fn
.glVertexAttribDivisorANGLEFn(index
, divisor
);
4958 static void GL_BINDING_CALL
4959 Debug_glVertexAttribI4i(GLuint indx
, GLint x
, GLint y
, GLint z
, GLint w
) {
4960 GL_SERVICE_LOG("glVertexAttribI4i"
4961 << "(" << indx
<< ", " << x
<< ", " << y
<< ", " << z
<< ", "
4963 g_driver_gl
.debug_fn
.glVertexAttribI4iFn(indx
, x
, y
, z
, w
);
4966 static void GL_BINDING_CALL
Debug_glVertexAttribI4iv(GLuint indx
,
4967 const GLint
* values
) {
4968 GL_SERVICE_LOG("glVertexAttribI4iv"
4969 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4971 g_driver_gl
.debug_fn
.glVertexAttribI4ivFn(indx
, values
);
4974 static void GL_BINDING_CALL
4975 Debug_glVertexAttribI4ui(GLuint indx
, GLuint x
, GLuint y
, GLuint z
, GLuint w
) {
4976 GL_SERVICE_LOG("glVertexAttribI4ui"
4977 << "(" << indx
<< ", " << x
<< ", " << y
<< ", " << z
<< ", "
4979 g_driver_gl
.debug_fn
.glVertexAttribI4uiFn(indx
, x
, y
, z
, w
);
4982 static void GL_BINDING_CALL
Debug_glVertexAttribI4uiv(GLuint indx
,
4983 const GLuint
* values
) {
4984 GL_SERVICE_LOG("glVertexAttribI4uiv"
4985 << "(" << indx
<< ", " << static_cast<const void*>(values
)
4987 g_driver_gl
.debug_fn
.glVertexAttribI4uivFn(indx
, values
);
4990 static void GL_BINDING_CALL
Debug_glVertexAttribIPointer(GLuint indx
,
4995 GL_SERVICE_LOG("glVertexAttribIPointer"
4996 << "(" << indx
<< ", " << size
<< ", "
4997 << GLEnums::GetStringEnum(type
) << ", " << stride
<< ", "
4998 << static_cast<const void*>(ptr
) << ")");
4999 g_driver_gl
.debug_fn
.glVertexAttribIPointerFn(indx
, size
, type
, stride
, ptr
);
5002 static void GL_BINDING_CALL
Debug_glVertexAttribPointer(GLuint indx
,
5005 GLboolean normalized
,
5008 GL_SERVICE_LOG("glVertexAttribPointer"
5009 << "(" << indx
<< ", " << size
<< ", "
5010 << GLEnums::GetStringEnum(type
) << ", "
5011 << GLEnums::GetStringBool(normalized
) << ", " << stride
<< ", "
5012 << static_cast<const void*>(ptr
) << ")");
5013 g_driver_gl
.debug_fn
.glVertexAttribPointerFn(indx
, size
, type
, normalized
,
5017 static void GL_BINDING_CALL
Debug_glViewport(GLint x
,
5021 GL_SERVICE_LOG("glViewport"
5022 << "(" << x
<< ", " << y
<< ", " << width
<< ", " << height
5024 g_driver_gl
.debug_fn
.glViewportFn(x
, y
, width
, height
);
5027 static GLenum GL_BINDING_CALL
Debug_glWaitSync(GLsync sync
,
5030 GL_SERVICE_LOG("glWaitSync"
5031 << "(" << sync
<< ", " << flags
<< ", " << timeout
<< ")");
5032 GLenum result
= g_driver_gl
.debug_fn
.glWaitSyncFn(sync
, flags
, timeout
);
5033 GL_SERVICE_LOG("GL_RESULT: " << result
);
5038 void DriverGL::InitializeDebugBindings() {
5039 if (!debug_fn
.glActiveTextureFn
) {
5040 debug_fn
.glActiveTextureFn
= fn
.glActiveTextureFn
;
5041 fn
.glActiveTextureFn
= Debug_glActiveTexture
;
5043 if (!debug_fn
.glApplyFramebufferAttachmentCMAAINTELFn
) {
5044 debug_fn
.glApplyFramebufferAttachmentCMAAINTELFn
=
5045 fn
.glApplyFramebufferAttachmentCMAAINTELFn
;
5046 fn
.glApplyFramebufferAttachmentCMAAINTELFn
=
5047 Debug_glApplyFramebufferAttachmentCMAAINTEL
;
5049 if (!debug_fn
.glAttachShaderFn
) {
5050 debug_fn
.glAttachShaderFn
= fn
.glAttachShaderFn
;
5051 fn
.glAttachShaderFn
= Debug_glAttachShader
;
5053 if (!debug_fn
.glBeginQueryFn
) {
5054 debug_fn
.glBeginQueryFn
= fn
.glBeginQueryFn
;
5055 fn
.glBeginQueryFn
= Debug_glBeginQuery
;
5057 if (!debug_fn
.glBeginTransformFeedbackFn
) {
5058 debug_fn
.glBeginTransformFeedbackFn
= fn
.glBeginTransformFeedbackFn
;
5059 fn
.glBeginTransformFeedbackFn
= Debug_glBeginTransformFeedback
;
5061 if (!debug_fn
.glBindAttribLocationFn
) {
5062 debug_fn
.glBindAttribLocationFn
= fn
.glBindAttribLocationFn
;
5063 fn
.glBindAttribLocationFn
= Debug_glBindAttribLocation
;
5065 if (!debug_fn
.glBindBufferFn
) {
5066 debug_fn
.glBindBufferFn
= fn
.glBindBufferFn
;
5067 fn
.glBindBufferFn
= Debug_glBindBuffer
;
5069 if (!debug_fn
.glBindBufferBaseFn
) {
5070 debug_fn
.glBindBufferBaseFn
= fn
.glBindBufferBaseFn
;
5071 fn
.glBindBufferBaseFn
= Debug_glBindBufferBase
;
5073 if (!debug_fn
.glBindBufferRangeFn
) {
5074 debug_fn
.glBindBufferRangeFn
= fn
.glBindBufferRangeFn
;
5075 fn
.glBindBufferRangeFn
= Debug_glBindBufferRange
;
5077 if (!debug_fn
.glBindFragDataLocationFn
) {
5078 debug_fn
.glBindFragDataLocationFn
= fn
.glBindFragDataLocationFn
;
5079 fn
.glBindFragDataLocationFn
= Debug_glBindFragDataLocation
;
5081 if (!debug_fn
.glBindFragDataLocationIndexedFn
) {
5082 debug_fn
.glBindFragDataLocationIndexedFn
=
5083 fn
.glBindFragDataLocationIndexedFn
;
5084 fn
.glBindFragDataLocationIndexedFn
= Debug_glBindFragDataLocationIndexed
;
5086 if (!debug_fn
.glBindFramebufferEXTFn
) {
5087 debug_fn
.glBindFramebufferEXTFn
= fn
.glBindFramebufferEXTFn
;
5088 fn
.glBindFramebufferEXTFn
= Debug_glBindFramebufferEXT
;
5090 if (!debug_fn
.glBindRenderbufferEXTFn
) {
5091 debug_fn
.glBindRenderbufferEXTFn
= fn
.glBindRenderbufferEXTFn
;
5092 fn
.glBindRenderbufferEXTFn
= Debug_glBindRenderbufferEXT
;
5094 if (!debug_fn
.glBindSamplerFn
) {
5095 debug_fn
.glBindSamplerFn
= fn
.glBindSamplerFn
;
5096 fn
.glBindSamplerFn
= Debug_glBindSampler
;
5098 if (!debug_fn
.glBindTextureFn
) {
5099 debug_fn
.glBindTextureFn
= fn
.glBindTextureFn
;
5100 fn
.glBindTextureFn
= Debug_glBindTexture
;
5102 if (!debug_fn
.glBindTransformFeedbackFn
) {
5103 debug_fn
.glBindTransformFeedbackFn
= fn
.glBindTransformFeedbackFn
;
5104 fn
.glBindTransformFeedbackFn
= Debug_glBindTransformFeedback
;
5106 if (!debug_fn
.glBindVertexArrayOESFn
) {
5107 debug_fn
.glBindVertexArrayOESFn
= fn
.glBindVertexArrayOESFn
;
5108 fn
.glBindVertexArrayOESFn
= Debug_glBindVertexArrayOES
;
5110 if (!debug_fn
.glBlendBarrierKHRFn
) {
5111 debug_fn
.glBlendBarrierKHRFn
= fn
.glBlendBarrierKHRFn
;
5112 fn
.glBlendBarrierKHRFn
= Debug_glBlendBarrierKHR
;
5114 if (!debug_fn
.glBlendColorFn
) {
5115 debug_fn
.glBlendColorFn
= fn
.glBlendColorFn
;
5116 fn
.glBlendColorFn
= Debug_glBlendColor
;
5118 if (!debug_fn
.glBlendEquationFn
) {
5119 debug_fn
.glBlendEquationFn
= fn
.glBlendEquationFn
;
5120 fn
.glBlendEquationFn
= Debug_glBlendEquation
;
5122 if (!debug_fn
.glBlendEquationSeparateFn
) {
5123 debug_fn
.glBlendEquationSeparateFn
= fn
.glBlendEquationSeparateFn
;
5124 fn
.glBlendEquationSeparateFn
= Debug_glBlendEquationSeparate
;
5126 if (!debug_fn
.glBlendFuncFn
) {
5127 debug_fn
.glBlendFuncFn
= fn
.glBlendFuncFn
;
5128 fn
.glBlendFuncFn
= Debug_glBlendFunc
;
5130 if (!debug_fn
.glBlendFuncSeparateFn
) {
5131 debug_fn
.glBlendFuncSeparateFn
= fn
.glBlendFuncSeparateFn
;
5132 fn
.glBlendFuncSeparateFn
= Debug_glBlendFuncSeparate
;
5134 if (!debug_fn
.glBlitFramebufferFn
) {
5135 debug_fn
.glBlitFramebufferFn
= fn
.glBlitFramebufferFn
;
5136 fn
.glBlitFramebufferFn
= Debug_glBlitFramebuffer
;
5138 if (!debug_fn
.glBlitFramebufferANGLEFn
) {
5139 debug_fn
.glBlitFramebufferANGLEFn
= fn
.glBlitFramebufferANGLEFn
;
5140 fn
.glBlitFramebufferANGLEFn
= Debug_glBlitFramebufferANGLE
;
5142 if (!debug_fn
.glBlitFramebufferEXTFn
) {
5143 debug_fn
.glBlitFramebufferEXTFn
= fn
.glBlitFramebufferEXTFn
;
5144 fn
.glBlitFramebufferEXTFn
= Debug_glBlitFramebufferEXT
;
5146 if (!debug_fn
.glBufferDataFn
) {
5147 debug_fn
.glBufferDataFn
= fn
.glBufferDataFn
;
5148 fn
.glBufferDataFn
= Debug_glBufferData
;
5150 if (!debug_fn
.glBufferSubDataFn
) {
5151 debug_fn
.glBufferSubDataFn
= fn
.glBufferSubDataFn
;
5152 fn
.glBufferSubDataFn
= Debug_glBufferSubData
;
5154 if (!debug_fn
.glCheckFramebufferStatusEXTFn
) {
5155 debug_fn
.glCheckFramebufferStatusEXTFn
= fn
.glCheckFramebufferStatusEXTFn
;
5156 fn
.glCheckFramebufferStatusEXTFn
= Debug_glCheckFramebufferStatusEXT
;
5158 if (!debug_fn
.glClearFn
) {
5159 debug_fn
.glClearFn
= fn
.glClearFn
;
5160 fn
.glClearFn
= Debug_glClear
;
5162 if (!debug_fn
.glClearBufferfiFn
) {
5163 debug_fn
.glClearBufferfiFn
= fn
.glClearBufferfiFn
;
5164 fn
.glClearBufferfiFn
= Debug_glClearBufferfi
;
5166 if (!debug_fn
.glClearBufferfvFn
) {
5167 debug_fn
.glClearBufferfvFn
= fn
.glClearBufferfvFn
;
5168 fn
.glClearBufferfvFn
= Debug_glClearBufferfv
;
5170 if (!debug_fn
.glClearBufferivFn
) {
5171 debug_fn
.glClearBufferivFn
= fn
.glClearBufferivFn
;
5172 fn
.glClearBufferivFn
= Debug_glClearBufferiv
;
5174 if (!debug_fn
.glClearBufferuivFn
) {
5175 debug_fn
.glClearBufferuivFn
= fn
.glClearBufferuivFn
;
5176 fn
.glClearBufferuivFn
= Debug_glClearBufferuiv
;
5178 if (!debug_fn
.glClearColorFn
) {
5179 debug_fn
.glClearColorFn
= fn
.glClearColorFn
;
5180 fn
.glClearColorFn
= Debug_glClearColor
;
5182 if (!debug_fn
.glClearDepthFn
) {
5183 debug_fn
.glClearDepthFn
= fn
.glClearDepthFn
;
5184 fn
.glClearDepthFn
= Debug_glClearDepth
;
5186 if (!debug_fn
.glClearDepthfFn
) {
5187 debug_fn
.glClearDepthfFn
= fn
.glClearDepthfFn
;
5188 fn
.glClearDepthfFn
= Debug_glClearDepthf
;
5190 if (!debug_fn
.glClearStencilFn
) {
5191 debug_fn
.glClearStencilFn
= fn
.glClearStencilFn
;
5192 fn
.glClearStencilFn
= Debug_glClearStencil
;
5194 if (!debug_fn
.glClientWaitSyncFn
) {
5195 debug_fn
.glClientWaitSyncFn
= fn
.glClientWaitSyncFn
;
5196 fn
.glClientWaitSyncFn
= Debug_glClientWaitSync
;
5198 if (!debug_fn
.glColorMaskFn
) {
5199 debug_fn
.glColorMaskFn
= fn
.glColorMaskFn
;
5200 fn
.glColorMaskFn
= Debug_glColorMask
;
5202 if (!debug_fn
.glCompileShaderFn
) {
5203 debug_fn
.glCompileShaderFn
= fn
.glCompileShaderFn
;
5204 fn
.glCompileShaderFn
= Debug_glCompileShader
;
5206 if (!debug_fn
.glCompressedTexImage2DFn
) {
5207 debug_fn
.glCompressedTexImage2DFn
= fn
.glCompressedTexImage2DFn
;
5208 fn
.glCompressedTexImage2DFn
= Debug_glCompressedTexImage2D
;
5210 if (!debug_fn
.glCompressedTexImage3DFn
) {
5211 debug_fn
.glCompressedTexImage3DFn
= fn
.glCompressedTexImage3DFn
;
5212 fn
.glCompressedTexImage3DFn
= Debug_glCompressedTexImage3D
;
5214 if (!debug_fn
.glCompressedTexSubImage2DFn
) {
5215 debug_fn
.glCompressedTexSubImage2DFn
= fn
.glCompressedTexSubImage2DFn
;
5216 fn
.glCompressedTexSubImage2DFn
= Debug_glCompressedTexSubImage2D
;
5218 if (!debug_fn
.glCompressedTexSubImage3DFn
) {
5219 debug_fn
.glCompressedTexSubImage3DFn
= fn
.glCompressedTexSubImage3DFn
;
5220 fn
.glCompressedTexSubImage3DFn
= Debug_glCompressedTexSubImage3D
;
5222 if (!debug_fn
.glCopyBufferSubDataFn
) {
5223 debug_fn
.glCopyBufferSubDataFn
= fn
.glCopyBufferSubDataFn
;
5224 fn
.glCopyBufferSubDataFn
= Debug_glCopyBufferSubData
;
5226 if (!debug_fn
.glCopyTexImage2DFn
) {
5227 debug_fn
.glCopyTexImage2DFn
= fn
.glCopyTexImage2DFn
;
5228 fn
.glCopyTexImage2DFn
= Debug_glCopyTexImage2D
;
5230 if (!debug_fn
.glCopyTexSubImage2DFn
) {
5231 debug_fn
.glCopyTexSubImage2DFn
= fn
.glCopyTexSubImage2DFn
;
5232 fn
.glCopyTexSubImage2DFn
= Debug_glCopyTexSubImage2D
;
5234 if (!debug_fn
.glCopyTexSubImage3DFn
) {
5235 debug_fn
.glCopyTexSubImage3DFn
= fn
.glCopyTexSubImage3DFn
;
5236 fn
.glCopyTexSubImage3DFn
= Debug_glCopyTexSubImage3D
;
5238 if (!debug_fn
.glCoverFillPathNVFn
) {
5239 debug_fn
.glCoverFillPathNVFn
= fn
.glCoverFillPathNVFn
;
5240 fn
.glCoverFillPathNVFn
= Debug_glCoverFillPathNV
;
5242 if (!debug_fn
.glCoverStrokePathNVFn
) {
5243 debug_fn
.glCoverStrokePathNVFn
= fn
.glCoverStrokePathNVFn
;
5244 fn
.glCoverStrokePathNVFn
= Debug_glCoverStrokePathNV
;
5246 if (!debug_fn
.glCreateProgramFn
) {
5247 debug_fn
.glCreateProgramFn
= fn
.glCreateProgramFn
;
5248 fn
.glCreateProgramFn
= Debug_glCreateProgram
;
5250 if (!debug_fn
.glCreateShaderFn
) {
5251 debug_fn
.glCreateShaderFn
= fn
.glCreateShaderFn
;
5252 fn
.glCreateShaderFn
= Debug_glCreateShader
;
5254 if (!debug_fn
.glCullFaceFn
) {
5255 debug_fn
.glCullFaceFn
= fn
.glCullFaceFn
;
5256 fn
.glCullFaceFn
= Debug_glCullFace
;
5258 if (!debug_fn
.glDeleteBuffersARBFn
) {
5259 debug_fn
.glDeleteBuffersARBFn
= fn
.glDeleteBuffersARBFn
;
5260 fn
.glDeleteBuffersARBFn
= Debug_glDeleteBuffersARB
;
5262 if (!debug_fn
.glDeleteFencesAPPLEFn
) {
5263 debug_fn
.glDeleteFencesAPPLEFn
= fn
.glDeleteFencesAPPLEFn
;
5264 fn
.glDeleteFencesAPPLEFn
= Debug_glDeleteFencesAPPLE
;
5266 if (!debug_fn
.glDeleteFencesNVFn
) {
5267 debug_fn
.glDeleteFencesNVFn
= fn
.glDeleteFencesNVFn
;
5268 fn
.glDeleteFencesNVFn
= Debug_glDeleteFencesNV
;
5270 if (!debug_fn
.glDeleteFramebuffersEXTFn
) {
5271 debug_fn
.glDeleteFramebuffersEXTFn
= fn
.glDeleteFramebuffersEXTFn
;
5272 fn
.glDeleteFramebuffersEXTFn
= Debug_glDeleteFramebuffersEXT
;
5274 if (!debug_fn
.glDeletePathsNVFn
) {
5275 debug_fn
.glDeletePathsNVFn
= fn
.glDeletePathsNVFn
;
5276 fn
.glDeletePathsNVFn
= Debug_glDeletePathsNV
;
5278 if (!debug_fn
.glDeleteProgramFn
) {
5279 debug_fn
.glDeleteProgramFn
= fn
.glDeleteProgramFn
;
5280 fn
.glDeleteProgramFn
= Debug_glDeleteProgram
;
5282 if (!debug_fn
.glDeleteQueriesFn
) {
5283 debug_fn
.glDeleteQueriesFn
= fn
.glDeleteQueriesFn
;
5284 fn
.glDeleteQueriesFn
= Debug_glDeleteQueries
;
5286 if (!debug_fn
.glDeleteRenderbuffersEXTFn
) {
5287 debug_fn
.glDeleteRenderbuffersEXTFn
= fn
.glDeleteRenderbuffersEXTFn
;
5288 fn
.glDeleteRenderbuffersEXTFn
= Debug_glDeleteRenderbuffersEXT
;
5290 if (!debug_fn
.glDeleteSamplersFn
) {
5291 debug_fn
.glDeleteSamplersFn
= fn
.glDeleteSamplersFn
;
5292 fn
.glDeleteSamplersFn
= Debug_glDeleteSamplers
;
5294 if (!debug_fn
.glDeleteShaderFn
) {
5295 debug_fn
.glDeleteShaderFn
= fn
.glDeleteShaderFn
;
5296 fn
.glDeleteShaderFn
= Debug_glDeleteShader
;
5298 if (!debug_fn
.glDeleteSyncFn
) {
5299 debug_fn
.glDeleteSyncFn
= fn
.glDeleteSyncFn
;
5300 fn
.glDeleteSyncFn
= Debug_glDeleteSync
;
5302 if (!debug_fn
.glDeleteTexturesFn
) {
5303 debug_fn
.glDeleteTexturesFn
= fn
.glDeleteTexturesFn
;
5304 fn
.glDeleteTexturesFn
= Debug_glDeleteTextures
;
5306 if (!debug_fn
.glDeleteTransformFeedbacksFn
) {
5307 debug_fn
.glDeleteTransformFeedbacksFn
= fn
.glDeleteTransformFeedbacksFn
;
5308 fn
.glDeleteTransformFeedbacksFn
= Debug_glDeleteTransformFeedbacks
;
5310 if (!debug_fn
.glDeleteVertexArraysOESFn
) {
5311 debug_fn
.glDeleteVertexArraysOESFn
= fn
.glDeleteVertexArraysOESFn
;
5312 fn
.glDeleteVertexArraysOESFn
= Debug_glDeleteVertexArraysOES
;
5314 if (!debug_fn
.glDepthFuncFn
) {
5315 debug_fn
.glDepthFuncFn
= fn
.glDepthFuncFn
;
5316 fn
.glDepthFuncFn
= Debug_glDepthFunc
;
5318 if (!debug_fn
.glDepthMaskFn
) {
5319 debug_fn
.glDepthMaskFn
= fn
.glDepthMaskFn
;
5320 fn
.glDepthMaskFn
= Debug_glDepthMask
;
5322 if (!debug_fn
.glDepthRangeFn
) {
5323 debug_fn
.glDepthRangeFn
= fn
.glDepthRangeFn
;
5324 fn
.glDepthRangeFn
= Debug_glDepthRange
;
5326 if (!debug_fn
.glDepthRangefFn
) {
5327 debug_fn
.glDepthRangefFn
= fn
.glDepthRangefFn
;
5328 fn
.glDepthRangefFn
= Debug_glDepthRangef
;
5330 if (!debug_fn
.glDetachShaderFn
) {
5331 debug_fn
.glDetachShaderFn
= fn
.glDetachShaderFn
;
5332 fn
.glDetachShaderFn
= Debug_glDetachShader
;
5334 if (!debug_fn
.glDisableFn
) {
5335 debug_fn
.glDisableFn
= fn
.glDisableFn
;
5336 fn
.glDisableFn
= Debug_glDisable
;
5338 if (!debug_fn
.glDisableVertexAttribArrayFn
) {
5339 debug_fn
.glDisableVertexAttribArrayFn
= fn
.glDisableVertexAttribArrayFn
;
5340 fn
.glDisableVertexAttribArrayFn
= Debug_glDisableVertexAttribArray
;
5342 if (!debug_fn
.glDiscardFramebufferEXTFn
) {
5343 debug_fn
.glDiscardFramebufferEXTFn
= fn
.glDiscardFramebufferEXTFn
;
5344 fn
.glDiscardFramebufferEXTFn
= Debug_glDiscardFramebufferEXT
;
5346 if (!debug_fn
.glDrawArraysFn
) {
5347 debug_fn
.glDrawArraysFn
= fn
.glDrawArraysFn
;
5348 fn
.glDrawArraysFn
= Debug_glDrawArrays
;
5350 if (!debug_fn
.glDrawArraysInstancedANGLEFn
) {
5351 debug_fn
.glDrawArraysInstancedANGLEFn
= fn
.glDrawArraysInstancedANGLEFn
;
5352 fn
.glDrawArraysInstancedANGLEFn
= Debug_glDrawArraysInstancedANGLE
;
5354 if (!debug_fn
.glDrawBufferFn
) {
5355 debug_fn
.glDrawBufferFn
= fn
.glDrawBufferFn
;
5356 fn
.glDrawBufferFn
= Debug_glDrawBuffer
;
5358 if (!debug_fn
.glDrawBuffersARBFn
) {
5359 debug_fn
.glDrawBuffersARBFn
= fn
.glDrawBuffersARBFn
;
5360 fn
.glDrawBuffersARBFn
= Debug_glDrawBuffersARB
;
5362 if (!debug_fn
.glDrawElementsFn
) {
5363 debug_fn
.glDrawElementsFn
= fn
.glDrawElementsFn
;
5364 fn
.glDrawElementsFn
= Debug_glDrawElements
;
5366 if (!debug_fn
.glDrawElementsInstancedANGLEFn
) {
5367 debug_fn
.glDrawElementsInstancedANGLEFn
= fn
.glDrawElementsInstancedANGLEFn
;
5368 fn
.glDrawElementsInstancedANGLEFn
= Debug_glDrawElementsInstancedANGLE
;
5370 if (!debug_fn
.glDrawRangeElementsFn
) {
5371 debug_fn
.glDrawRangeElementsFn
= fn
.glDrawRangeElementsFn
;
5372 fn
.glDrawRangeElementsFn
= Debug_glDrawRangeElements
;
5374 if (!debug_fn
.glEGLImageTargetRenderbufferStorageOESFn
) {
5375 debug_fn
.glEGLImageTargetRenderbufferStorageOESFn
=
5376 fn
.glEGLImageTargetRenderbufferStorageOESFn
;
5377 fn
.glEGLImageTargetRenderbufferStorageOESFn
=
5378 Debug_glEGLImageTargetRenderbufferStorageOES
;
5380 if (!debug_fn
.glEGLImageTargetTexture2DOESFn
) {
5381 debug_fn
.glEGLImageTargetTexture2DOESFn
= fn
.glEGLImageTargetTexture2DOESFn
;
5382 fn
.glEGLImageTargetTexture2DOESFn
= Debug_glEGLImageTargetTexture2DOES
;
5384 if (!debug_fn
.glEnableFn
) {
5385 debug_fn
.glEnableFn
= fn
.glEnableFn
;
5386 fn
.glEnableFn
= Debug_glEnable
;
5388 if (!debug_fn
.glEnableVertexAttribArrayFn
) {
5389 debug_fn
.glEnableVertexAttribArrayFn
= fn
.glEnableVertexAttribArrayFn
;
5390 fn
.glEnableVertexAttribArrayFn
= Debug_glEnableVertexAttribArray
;
5392 if (!debug_fn
.glEndQueryFn
) {
5393 debug_fn
.glEndQueryFn
= fn
.glEndQueryFn
;
5394 fn
.glEndQueryFn
= Debug_glEndQuery
;
5396 if (!debug_fn
.glEndTransformFeedbackFn
) {
5397 debug_fn
.glEndTransformFeedbackFn
= fn
.glEndTransformFeedbackFn
;
5398 fn
.glEndTransformFeedbackFn
= Debug_glEndTransformFeedback
;
5400 if (!debug_fn
.glFenceSyncFn
) {
5401 debug_fn
.glFenceSyncFn
= fn
.glFenceSyncFn
;
5402 fn
.glFenceSyncFn
= Debug_glFenceSync
;
5404 if (!debug_fn
.glFinishFn
) {
5405 debug_fn
.glFinishFn
= fn
.glFinishFn
;
5406 fn
.glFinishFn
= Debug_glFinish
;
5408 if (!debug_fn
.glFinishFenceAPPLEFn
) {
5409 debug_fn
.glFinishFenceAPPLEFn
= fn
.glFinishFenceAPPLEFn
;
5410 fn
.glFinishFenceAPPLEFn
= Debug_glFinishFenceAPPLE
;
5412 if (!debug_fn
.glFinishFenceNVFn
) {
5413 debug_fn
.glFinishFenceNVFn
= fn
.glFinishFenceNVFn
;
5414 fn
.glFinishFenceNVFn
= Debug_glFinishFenceNV
;
5416 if (!debug_fn
.glFlushFn
) {
5417 debug_fn
.glFlushFn
= fn
.glFlushFn
;
5418 fn
.glFlushFn
= Debug_glFlush
;
5420 if (!debug_fn
.glFlushMappedBufferRangeFn
) {
5421 debug_fn
.glFlushMappedBufferRangeFn
= fn
.glFlushMappedBufferRangeFn
;
5422 fn
.glFlushMappedBufferRangeFn
= Debug_glFlushMappedBufferRange
;
5424 if (!debug_fn
.glFramebufferRenderbufferEXTFn
) {
5425 debug_fn
.glFramebufferRenderbufferEXTFn
= fn
.glFramebufferRenderbufferEXTFn
;
5426 fn
.glFramebufferRenderbufferEXTFn
= Debug_glFramebufferRenderbufferEXT
;
5428 if (!debug_fn
.glFramebufferTexture2DEXTFn
) {
5429 debug_fn
.glFramebufferTexture2DEXTFn
= fn
.glFramebufferTexture2DEXTFn
;
5430 fn
.glFramebufferTexture2DEXTFn
= Debug_glFramebufferTexture2DEXT
;
5432 if (!debug_fn
.glFramebufferTexture2DMultisampleEXTFn
) {
5433 debug_fn
.glFramebufferTexture2DMultisampleEXTFn
=
5434 fn
.glFramebufferTexture2DMultisampleEXTFn
;
5435 fn
.glFramebufferTexture2DMultisampleEXTFn
=
5436 Debug_glFramebufferTexture2DMultisampleEXT
;
5438 if (!debug_fn
.glFramebufferTexture2DMultisampleIMGFn
) {
5439 debug_fn
.glFramebufferTexture2DMultisampleIMGFn
=
5440 fn
.glFramebufferTexture2DMultisampleIMGFn
;
5441 fn
.glFramebufferTexture2DMultisampleIMGFn
=
5442 Debug_glFramebufferTexture2DMultisampleIMG
;
5444 if (!debug_fn
.glFramebufferTextureLayerFn
) {
5445 debug_fn
.glFramebufferTextureLayerFn
= fn
.glFramebufferTextureLayerFn
;
5446 fn
.glFramebufferTextureLayerFn
= Debug_glFramebufferTextureLayer
;
5448 if (!debug_fn
.glFrontFaceFn
) {
5449 debug_fn
.glFrontFaceFn
= fn
.glFrontFaceFn
;
5450 fn
.glFrontFaceFn
= Debug_glFrontFace
;
5452 if (!debug_fn
.glGenBuffersARBFn
) {
5453 debug_fn
.glGenBuffersARBFn
= fn
.glGenBuffersARBFn
;
5454 fn
.glGenBuffersARBFn
= Debug_glGenBuffersARB
;
5456 if (!debug_fn
.glGenerateMipmapEXTFn
) {
5457 debug_fn
.glGenerateMipmapEXTFn
= fn
.glGenerateMipmapEXTFn
;
5458 fn
.glGenerateMipmapEXTFn
= Debug_glGenerateMipmapEXT
;
5460 if (!debug_fn
.glGenFencesAPPLEFn
) {
5461 debug_fn
.glGenFencesAPPLEFn
= fn
.glGenFencesAPPLEFn
;
5462 fn
.glGenFencesAPPLEFn
= Debug_glGenFencesAPPLE
;
5464 if (!debug_fn
.glGenFencesNVFn
) {
5465 debug_fn
.glGenFencesNVFn
= fn
.glGenFencesNVFn
;
5466 fn
.glGenFencesNVFn
= Debug_glGenFencesNV
;
5468 if (!debug_fn
.glGenFramebuffersEXTFn
) {
5469 debug_fn
.glGenFramebuffersEXTFn
= fn
.glGenFramebuffersEXTFn
;
5470 fn
.glGenFramebuffersEXTFn
= Debug_glGenFramebuffersEXT
;
5472 if (!debug_fn
.glGenPathsNVFn
) {
5473 debug_fn
.glGenPathsNVFn
= fn
.glGenPathsNVFn
;
5474 fn
.glGenPathsNVFn
= Debug_glGenPathsNV
;
5476 if (!debug_fn
.glGenQueriesFn
) {
5477 debug_fn
.glGenQueriesFn
= fn
.glGenQueriesFn
;
5478 fn
.glGenQueriesFn
= Debug_glGenQueries
;
5480 if (!debug_fn
.glGenRenderbuffersEXTFn
) {
5481 debug_fn
.glGenRenderbuffersEXTFn
= fn
.glGenRenderbuffersEXTFn
;
5482 fn
.glGenRenderbuffersEXTFn
= Debug_glGenRenderbuffersEXT
;
5484 if (!debug_fn
.glGenSamplersFn
) {
5485 debug_fn
.glGenSamplersFn
= fn
.glGenSamplersFn
;
5486 fn
.glGenSamplersFn
= Debug_glGenSamplers
;
5488 if (!debug_fn
.glGenTexturesFn
) {
5489 debug_fn
.glGenTexturesFn
= fn
.glGenTexturesFn
;
5490 fn
.glGenTexturesFn
= Debug_glGenTextures
;
5492 if (!debug_fn
.glGenTransformFeedbacksFn
) {
5493 debug_fn
.glGenTransformFeedbacksFn
= fn
.glGenTransformFeedbacksFn
;
5494 fn
.glGenTransformFeedbacksFn
= Debug_glGenTransformFeedbacks
;
5496 if (!debug_fn
.glGenVertexArraysOESFn
) {
5497 debug_fn
.glGenVertexArraysOESFn
= fn
.glGenVertexArraysOESFn
;
5498 fn
.glGenVertexArraysOESFn
= Debug_glGenVertexArraysOES
;
5500 if (!debug_fn
.glGetActiveAttribFn
) {
5501 debug_fn
.glGetActiveAttribFn
= fn
.glGetActiveAttribFn
;
5502 fn
.glGetActiveAttribFn
= Debug_glGetActiveAttrib
;
5504 if (!debug_fn
.glGetActiveUniformFn
) {
5505 debug_fn
.glGetActiveUniformFn
= fn
.glGetActiveUniformFn
;
5506 fn
.glGetActiveUniformFn
= Debug_glGetActiveUniform
;
5508 if (!debug_fn
.glGetActiveUniformBlockivFn
) {
5509 debug_fn
.glGetActiveUniformBlockivFn
= fn
.glGetActiveUniformBlockivFn
;
5510 fn
.glGetActiveUniformBlockivFn
= Debug_glGetActiveUniformBlockiv
;
5512 if (!debug_fn
.glGetActiveUniformBlockNameFn
) {
5513 debug_fn
.glGetActiveUniformBlockNameFn
= fn
.glGetActiveUniformBlockNameFn
;
5514 fn
.glGetActiveUniformBlockNameFn
= Debug_glGetActiveUniformBlockName
;
5516 if (!debug_fn
.glGetActiveUniformsivFn
) {
5517 debug_fn
.glGetActiveUniformsivFn
= fn
.glGetActiveUniformsivFn
;
5518 fn
.glGetActiveUniformsivFn
= Debug_glGetActiveUniformsiv
;
5520 if (!debug_fn
.glGetAttachedShadersFn
) {
5521 debug_fn
.glGetAttachedShadersFn
= fn
.glGetAttachedShadersFn
;
5522 fn
.glGetAttachedShadersFn
= Debug_glGetAttachedShaders
;
5524 if (!debug_fn
.glGetAttribLocationFn
) {
5525 debug_fn
.glGetAttribLocationFn
= fn
.glGetAttribLocationFn
;
5526 fn
.glGetAttribLocationFn
= Debug_glGetAttribLocation
;
5528 if (!debug_fn
.glGetBooleanvFn
) {
5529 debug_fn
.glGetBooleanvFn
= fn
.glGetBooleanvFn
;
5530 fn
.glGetBooleanvFn
= Debug_glGetBooleanv
;
5532 if (!debug_fn
.glGetBufferParameterivFn
) {
5533 debug_fn
.glGetBufferParameterivFn
= fn
.glGetBufferParameterivFn
;
5534 fn
.glGetBufferParameterivFn
= Debug_glGetBufferParameteriv
;
5536 if (!debug_fn
.glGetErrorFn
) {
5537 debug_fn
.glGetErrorFn
= fn
.glGetErrorFn
;
5538 fn
.glGetErrorFn
= Debug_glGetError
;
5540 if (!debug_fn
.glGetFenceivNVFn
) {
5541 debug_fn
.glGetFenceivNVFn
= fn
.glGetFenceivNVFn
;
5542 fn
.glGetFenceivNVFn
= Debug_glGetFenceivNV
;
5544 if (!debug_fn
.glGetFloatvFn
) {
5545 debug_fn
.glGetFloatvFn
= fn
.glGetFloatvFn
;
5546 fn
.glGetFloatvFn
= Debug_glGetFloatv
;
5548 if (!debug_fn
.glGetFragDataLocationFn
) {
5549 debug_fn
.glGetFragDataLocationFn
= fn
.glGetFragDataLocationFn
;
5550 fn
.glGetFragDataLocationFn
= Debug_glGetFragDataLocation
;
5552 if (!debug_fn
.glGetFramebufferAttachmentParameterivEXTFn
) {
5553 debug_fn
.glGetFramebufferAttachmentParameterivEXTFn
=
5554 fn
.glGetFramebufferAttachmentParameterivEXTFn
;
5555 fn
.glGetFramebufferAttachmentParameterivEXTFn
=
5556 Debug_glGetFramebufferAttachmentParameterivEXT
;
5558 if (!debug_fn
.glGetGraphicsResetStatusARBFn
) {
5559 debug_fn
.glGetGraphicsResetStatusARBFn
= fn
.glGetGraphicsResetStatusARBFn
;
5560 fn
.glGetGraphicsResetStatusARBFn
= Debug_glGetGraphicsResetStatusARB
;
5562 if (!debug_fn
.glGetInteger64i_vFn
) {
5563 debug_fn
.glGetInteger64i_vFn
= fn
.glGetInteger64i_vFn
;
5564 fn
.glGetInteger64i_vFn
= Debug_glGetInteger64i_v
;
5566 if (!debug_fn
.glGetInteger64vFn
) {
5567 debug_fn
.glGetInteger64vFn
= fn
.glGetInteger64vFn
;
5568 fn
.glGetInteger64vFn
= Debug_glGetInteger64v
;
5570 if (!debug_fn
.glGetIntegeri_vFn
) {
5571 debug_fn
.glGetIntegeri_vFn
= fn
.glGetIntegeri_vFn
;
5572 fn
.glGetIntegeri_vFn
= Debug_glGetIntegeri_v
;
5574 if (!debug_fn
.glGetIntegervFn
) {
5575 debug_fn
.glGetIntegervFn
= fn
.glGetIntegervFn
;
5576 fn
.glGetIntegervFn
= Debug_glGetIntegerv
;
5578 if (!debug_fn
.glGetInternalformativFn
) {
5579 debug_fn
.glGetInternalformativFn
= fn
.glGetInternalformativFn
;
5580 fn
.glGetInternalformativFn
= Debug_glGetInternalformativ
;
5582 if (!debug_fn
.glGetProgramBinaryFn
) {
5583 debug_fn
.glGetProgramBinaryFn
= fn
.glGetProgramBinaryFn
;
5584 fn
.glGetProgramBinaryFn
= Debug_glGetProgramBinary
;
5586 if (!debug_fn
.glGetProgramInfoLogFn
) {
5587 debug_fn
.glGetProgramInfoLogFn
= fn
.glGetProgramInfoLogFn
;
5588 fn
.glGetProgramInfoLogFn
= Debug_glGetProgramInfoLog
;
5590 if (!debug_fn
.glGetProgramivFn
) {
5591 debug_fn
.glGetProgramivFn
= fn
.glGetProgramivFn
;
5592 fn
.glGetProgramivFn
= Debug_glGetProgramiv
;
5594 if (!debug_fn
.glGetProgramResourceLocationFn
) {
5595 debug_fn
.glGetProgramResourceLocationFn
= fn
.glGetProgramResourceLocationFn
;
5596 fn
.glGetProgramResourceLocationFn
= Debug_glGetProgramResourceLocation
;
5598 if (!debug_fn
.glGetQueryivFn
) {
5599 debug_fn
.glGetQueryivFn
= fn
.glGetQueryivFn
;
5600 fn
.glGetQueryivFn
= Debug_glGetQueryiv
;
5602 if (!debug_fn
.glGetQueryObjecti64vFn
) {
5603 debug_fn
.glGetQueryObjecti64vFn
= fn
.glGetQueryObjecti64vFn
;
5604 fn
.glGetQueryObjecti64vFn
= Debug_glGetQueryObjecti64v
;
5606 if (!debug_fn
.glGetQueryObjectivFn
) {
5607 debug_fn
.glGetQueryObjectivFn
= fn
.glGetQueryObjectivFn
;
5608 fn
.glGetQueryObjectivFn
= Debug_glGetQueryObjectiv
;
5610 if (!debug_fn
.glGetQueryObjectui64vFn
) {
5611 debug_fn
.glGetQueryObjectui64vFn
= fn
.glGetQueryObjectui64vFn
;
5612 fn
.glGetQueryObjectui64vFn
= Debug_glGetQueryObjectui64v
;
5614 if (!debug_fn
.glGetQueryObjectuivFn
) {
5615 debug_fn
.glGetQueryObjectuivFn
= fn
.glGetQueryObjectuivFn
;
5616 fn
.glGetQueryObjectuivFn
= Debug_glGetQueryObjectuiv
;
5618 if (!debug_fn
.glGetRenderbufferParameterivEXTFn
) {
5619 debug_fn
.glGetRenderbufferParameterivEXTFn
=
5620 fn
.glGetRenderbufferParameterivEXTFn
;
5621 fn
.glGetRenderbufferParameterivEXTFn
=
5622 Debug_glGetRenderbufferParameterivEXT
;
5624 if (!debug_fn
.glGetSamplerParameterfvFn
) {
5625 debug_fn
.glGetSamplerParameterfvFn
= fn
.glGetSamplerParameterfvFn
;
5626 fn
.glGetSamplerParameterfvFn
= Debug_glGetSamplerParameterfv
;
5628 if (!debug_fn
.glGetSamplerParameterivFn
) {
5629 debug_fn
.glGetSamplerParameterivFn
= fn
.glGetSamplerParameterivFn
;
5630 fn
.glGetSamplerParameterivFn
= Debug_glGetSamplerParameteriv
;
5632 if (!debug_fn
.glGetShaderInfoLogFn
) {
5633 debug_fn
.glGetShaderInfoLogFn
= fn
.glGetShaderInfoLogFn
;
5634 fn
.glGetShaderInfoLogFn
= Debug_glGetShaderInfoLog
;
5636 if (!debug_fn
.glGetShaderivFn
) {
5637 debug_fn
.glGetShaderivFn
= fn
.glGetShaderivFn
;
5638 fn
.glGetShaderivFn
= Debug_glGetShaderiv
;
5640 if (!debug_fn
.glGetShaderPrecisionFormatFn
) {
5641 debug_fn
.glGetShaderPrecisionFormatFn
= fn
.glGetShaderPrecisionFormatFn
;
5642 fn
.glGetShaderPrecisionFormatFn
= Debug_glGetShaderPrecisionFormat
;
5644 if (!debug_fn
.glGetShaderSourceFn
) {
5645 debug_fn
.glGetShaderSourceFn
= fn
.glGetShaderSourceFn
;
5646 fn
.glGetShaderSourceFn
= Debug_glGetShaderSource
;
5648 if (!debug_fn
.glGetStringFn
) {
5649 debug_fn
.glGetStringFn
= fn
.glGetStringFn
;
5650 fn
.glGetStringFn
= Debug_glGetString
;
5652 if (!debug_fn
.glGetStringiFn
) {
5653 debug_fn
.glGetStringiFn
= fn
.glGetStringiFn
;
5654 fn
.glGetStringiFn
= Debug_glGetStringi
;
5656 if (!debug_fn
.glGetSyncivFn
) {
5657 debug_fn
.glGetSyncivFn
= fn
.glGetSyncivFn
;
5658 fn
.glGetSyncivFn
= Debug_glGetSynciv
;
5660 if (!debug_fn
.glGetTexLevelParameterfvFn
) {
5661 debug_fn
.glGetTexLevelParameterfvFn
= fn
.glGetTexLevelParameterfvFn
;
5662 fn
.glGetTexLevelParameterfvFn
= Debug_glGetTexLevelParameterfv
;
5664 if (!debug_fn
.glGetTexLevelParameterivFn
) {
5665 debug_fn
.glGetTexLevelParameterivFn
= fn
.glGetTexLevelParameterivFn
;
5666 fn
.glGetTexLevelParameterivFn
= Debug_glGetTexLevelParameteriv
;
5668 if (!debug_fn
.glGetTexParameterfvFn
) {
5669 debug_fn
.glGetTexParameterfvFn
= fn
.glGetTexParameterfvFn
;
5670 fn
.glGetTexParameterfvFn
= Debug_glGetTexParameterfv
;
5672 if (!debug_fn
.glGetTexParameterivFn
) {
5673 debug_fn
.glGetTexParameterivFn
= fn
.glGetTexParameterivFn
;
5674 fn
.glGetTexParameterivFn
= Debug_glGetTexParameteriv
;
5676 if (!debug_fn
.glGetTransformFeedbackVaryingFn
) {
5677 debug_fn
.glGetTransformFeedbackVaryingFn
=
5678 fn
.glGetTransformFeedbackVaryingFn
;
5679 fn
.glGetTransformFeedbackVaryingFn
= Debug_glGetTransformFeedbackVarying
;
5681 if (!debug_fn
.glGetTranslatedShaderSourceANGLEFn
) {
5682 debug_fn
.glGetTranslatedShaderSourceANGLEFn
=
5683 fn
.glGetTranslatedShaderSourceANGLEFn
;
5684 fn
.glGetTranslatedShaderSourceANGLEFn
=
5685 Debug_glGetTranslatedShaderSourceANGLE
;
5687 if (!debug_fn
.glGetUniformBlockIndexFn
) {
5688 debug_fn
.glGetUniformBlockIndexFn
= fn
.glGetUniformBlockIndexFn
;
5689 fn
.glGetUniformBlockIndexFn
= Debug_glGetUniformBlockIndex
;
5691 if (!debug_fn
.glGetUniformfvFn
) {
5692 debug_fn
.glGetUniformfvFn
= fn
.glGetUniformfvFn
;
5693 fn
.glGetUniformfvFn
= Debug_glGetUniformfv
;
5695 if (!debug_fn
.glGetUniformIndicesFn
) {
5696 debug_fn
.glGetUniformIndicesFn
= fn
.glGetUniformIndicesFn
;
5697 fn
.glGetUniformIndicesFn
= Debug_glGetUniformIndices
;
5699 if (!debug_fn
.glGetUniformivFn
) {
5700 debug_fn
.glGetUniformivFn
= fn
.glGetUniformivFn
;
5701 fn
.glGetUniformivFn
= Debug_glGetUniformiv
;
5703 if (!debug_fn
.glGetUniformLocationFn
) {
5704 debug_fn
.glGetUniformLocationFn
= fn
.glGetUniformLocationFn
;
5705 fn
.glGetUniformLocationFn
= Debug_glGetUniformLocation
;
5707 if (!debug_fn
.glGetUniformuivFn
) {
5708 debug_fn
.glGetUniformuivFn
= fn
.glGetUniformuivFn
;
5709 fn
.glGetUniformuivFn
= Debug_glGetUniformuiv
;
5711 if (!debug_fn
.glGetVertexAttribfvFn
) {
5712 debug_fn
.glGetVertexAttribfvFn
= fn
.glGetVertexAttribfvFn
;
5713 fn
.glGetVertexAttribfvFn
= Debug_glGetVertexAttribfv
;
5715 if (!debug_fn
.glGetVertexAttribivFn
) {
5716 debug_fn
.glGetVertexAttribivFn
= fn
.glGetVertexAttribivFn
;
5717 fn
.glGetVertexAttribivFn
= Debug_glGetVertexAttribiv
;
5719 if (!debug_fn
.glGetVertexAttribPointervFn
) {
5720 debug_fn
.glGetVertexAttribPointervFn
= fn
.glGetVertexAttribPointervFn
;
5721 fn
.glGetVertexAttribPointervFn
= Debug_glGetVertexAttribPointerv
;
5723 if (!debug_fn
.glHintFn
) {
5724 debug_fn
.glHintFn
= fn
.glHintFn
;
5725 fn
.glHintFn
= Debug_glHint
;
5727 if (!debug_fn
.glInsertEventMarkerEXTFn
) {
5728 debug_fn
.glInsertEventMarkerEXTFn
= fn
.glInsertEventMarkerEXTFn
;
5729 fn
.glInsertEventMarkerEXTFn
= Debug_glInsertEventMarkerEXT
;
5731 if (!debug_fn
.glInvalidateFramebufferFn
) {
5732 debug_fn
.glInvalidateFramebufferFn
= fn
.glInvalidateFramebufferFn
;
5733 fn
.glInvalidateFramebufferFn
= Debug_glInvalidateFramebuffer
;
5735 if (!debug_fn
.glInvalidateSubFramebufferFn
) {
5736 debug_fn
.glInvalidateSubFramebufferFn
= fn
.glInvalidateSubFramebufferFn
;
5737 fn
.glInvalidateSubFramebufferFn
= Debug_glInvalidateSubFramebuffer
;
5739 if (!debug_fn
.glIsBufferFn
) {
5740 debug_fn
.glIsBufferFn
= fn
.glIsBufferFn
;
5741 fn
.glIsBufferFn
= Debug_glIsBuffer
;
5743 if (!debug_fn
.glIsEnabledFn
) {
5744 debug_fn
.glIsEnabledFn
= fn
.glIsEnabledFn
;
5745 fn
.glIsEnabledFn
= Debug_glIsEnabled
;
5747 if (!debug_fn
.glIsFenceAPPLEFn
) {
5748 debug_fn
.glIsFenceAPPLEFn
= fn
.glIsFenceAPPLEFn
;
5749 fn
.glIsFenceAPPLEFn
= Debug_glIsFenceAPPLE
;
5751 if (!debug_fn
.glIsFenceNVFn
) {
5752 debug_fn
.glIsFenceNVFn
= fn
.glIsFenceNVFn
;
5753 fn
.glIsFenceNVFn
= Debug_glIsFenceNV
;
5755 if (!debug_fn
.glIsFramebufferEXTFn
) {
5756 debug_fn
.glIsFramebufferEXTFn
= fn
.glIsFramebufferEXTFn
;
5757 fn
.glIsFramebufferEXTFn
= Debug_glIsFramebufferEXT
;
5759 if (!debug_fn
.glIsPathNVFn
) {
5760 debug_fn
.glIsPathNVFn
= fn
.glIsPathNVFn
;
5761 fn
.glIsPathNVFn
= Debug_glIsPathNV
;
5763 if (!debug_fn
.glIsProgramFn
) {
5764 debug_fn
.glIsProgramFn
= fn
.glIsProgramFn
;
5765 fn
.glIsProgramFn
= Debug_glIsProgram
;
5767 if (!debug_fn
.glIsQueryFn
) {
5768 debug_fn
.glIsQueryFn
= fn
.glIsQueryFn
;
5769 fn
.glIsQueryFn
= Debug_glIsQuery
;
5771 if (!debug_fn
.glIsRenderbufferEXTFn
) {
5772 debug_fn
.glIsRenderbufferEXTFn
= fn
.glIsRenderbufferEXTFn
;
5773 fn
.glIsRenderbufferEXTFn
= Debug_glIsRenderbufferEXT
;
5775 if (!debug_fn
.glIsSamplerFn
) {
5776 debug_fn
.glIsSamplerFn
= fn
.glIsSamplerFn
;
5777 fn
.glIsSamplerFn
= Debug_glIsSampler
;
5779 if (!debug_fn
.glIsShaderFn
) {
5780 debug_fn
.glIsShaderFn
= fn
.glIsShaderFn
;
5781 fn
.glIsShaderFn
= Debug_glIsShader
;
5783 if (!debug_fn
.glIsSyncFn
) {
5784 debug_fn
.glIsSyncFn
= fn
.glIsSyncFn
;
5785 fn
.glIsSyncFn
= Debug_glIsSync
;
5787 if (!debug_fn
.glIsTextureFn
) {
5788 debug_fn
.glIsTextureFn
= fn
.glIsTextureFn
;
5789 fn
.glIsTextureFn
= Debug_glIsTexture
;
5791 if (!debug_fn
.glIsTransformFeedbackFn
) {
5792 debug_fn
.glIsTransformFeedbackFn
= fn
.glIsTransformFeedbackFn
;
5793 fn
.glIsTransformFeedbackFn
= Debug_glIsTransformFeedback
;
5795 if (!debug_fn
.glIsVertexArrayOESFn
) {
5796 debug_fn
.glIsVertexArrayOESFn
= fn
.glIsVertexArrayOESFn
;
5797 fn
.glIsVertexArrayOESFn
= Debug_glIsVertexArrayOES
;
5799 if (!debug_fn
.glLineWidthFn
) {
5800 debug_fn
.glLineWidthFn
= fn
.glLineWidthFn
;
5801 fn
.glLineWidthFn
= Debug_glLineWidth
;
5803 if (!debug_fn
.glLinkProgramFn
) {
5804 debug_fn
.glLinkProgramFn
= fn
.glLinkProgramFn
;
5805 fn
.glLinkProgramFn
= Debug_glLinkProgram
;
5807 if (!debug_fn
.glMapBufferFn
) {
5808 debug_fn
.glMapBufferFn
= fn
.glMapBufferFn
;
5809 fn
.glMapBufferFn
= Debug_glMapBuffer
;
5811 if (!debug_fn
.glMapBufferRangeFn
) {
5812 debug_fn
.glMapBufferRangeFn
= fn
.glMapBufferRangeFn
;
5813 fn
.glMapBufferRangeFn
= Debug_glMapBufferRange
;
5815 if (!debug_fn
.glMatrixLoadfEXTFn
) {
5816 debug_fn
.glMatrixLoadfEXTFn
= fn
.glMatrixLoadfEXTFn
;
5817 fn
.glMatrixLoadfEXTFn
= Debug_glMatrixLoadfEXT
;
5819 if (!debug_fn
.glMatrixLoadIdentityEXTFn
) {
5820 debug_fn
.glMatrixLoadIdentityEXTFn
= fn
.glMatrixLoadIdentityEXTFn
;
5821 fn
.glMatrixLoadIdentityEXTFn
= Debug_glMatrixLoadIdentityEXT
;
5823 if (!debug_fn
.glPathCommandsNVFn
) {
5824 debug_fn
.glPathCommandsNVFn
= fn
.glPathCommandsNVFn
;
5825 fn
.glPathCommandsNVFn
= Debug_glPathCommandsNV
;
5827 if (!debug_fn
.glPathParameterfNVFn
) {
5828 debug_fn
.glPathParameterfNVFn
= fn
.glPathParameterfNVFn
;
5829 fn
.glPathParameterfNVFn
= Debug_glPathParameterfNV
;
5831 if (!debug_fn
.glPathParameteriNVFn
) {
5832 debug_fn
.glPathParameteriNVFn
= fn
.glPathParameteriNVFn
;
5833 fn
.glPathParameteriNVFn
= Debug_glPathParameteriNV
;
5835 if (!debug_fn
.glPathStencilFuncNVFn
) {
5836 debug_fn
.glPathStencilFuncNVFn
= fn
.glPathStencilFuncNVFn
;
5837 fn
.glPathStencilFuncNVFn
= Debug_glPathStencilFuncNV
;
5839 if (!debug_fn
.glPauseTransformFeedbackFn
) {
5840 debug_fn
.glPauseTransformFeedbackFn
= fn
.glPauseTransformFeedbackFn
;
5841 fn
.glPauseTransformFeedbackFn
= Debug_glPauseTransformFeedback
;
5843 if (!debug_fn
.glPixelStoreiFn
) {
5844 debug_fn
.glPixelStoreiFn
= fn
.glPixelStoreiFn
;
5845 fn
.glPixelStoreiFn
= Debug_glPixelStorei
;
5847 if (!debug_fn
.glPointParameteriFn
) {
5848 debug_fn
.glPointParameteriFn
= fn
.glPointParameteriFn
;
5849 fn
.glPointParameteriFn
= Debug_glPointParameteri
;
5851 if (!debug_fn
.glPolygonOffsetFn
) {
5852 debug_fn
.glPolygonOffsetFn
= fn
.glPolygonOffsetFn
;
5853 fn
.glPolygonOffsetFn
= Debug_glPolygonOffset
;
5855 if (!debug_fn
.glPopGroupMarkerEXTFn
) {
5856 debug_fn
.glPopGroupMarkerEXTFn
= fn
.glPopGroupMarkerEXTFn
;
5857 fn
.glPopGroupMarkerEXTFn
= Debug_glPopGroupMarkerEXT
;
5859 if (!debug_fn
.glProgramBinaryFn
) {
5860 debug_fn
.glProgramBinaryFn
= fn
.glProgramBinaryFn
;
5861 fn
.glProgramBinaryFn
= Debug_glProgramBinary
;
5863 if (!debug_fn
.glProgramParameteriFn
) {
5864 debug_fn
.glProgramParameteriFn
= fn
.glProgramParameteriFn
;
5865 fn
.glProgramParameteriFn
= Debug_glProgramParameteri
;
5867 if (!debug_fn
.glPushGroupMarkerEXTFn
) {
5868 debug_fn
.glPushGroupMarkerEXTFn
= fn
.glPushGroupMarkerEXTFn
;
5869 fn
.glPushGroupMarkerEXTFn
= Debug_glPushGroupMarkerEXT
;
5871 if (!debug_fn
.glQueryCounterFn
) {
5872 debug_fn
.glQueryCounterFn
= fn
.glQueryCounterFn
;
5873 fn
.glQueryCounterFn
= Debug_glQueryCounter
;
5875 if (!debug_fn
.glReadBufferFn
) {
5876 debug_fn
.glReadBufferFn
= fn
.glReadBufferFn
;
5877 fn
.glReadBufferFn
= Debug_glReadBuffer
;
5879 if (!debug_fn
.glReadPixelsFn
) {
5880 debug_fn
.glReadPixelsFn
= fn
.glReadPixelsFn
;
5881 fn
.glReadPixelsFn
= Debug_glReadPixels
;
5883 if (!debug_fn
.glReleaseShaderCompilerFn
) {
5884 debug_fn
.glReleaseShaderCompilerFn
= fn
.glReleaseShaderCompilerFn
;
5885 fn
.glReleaseShaderCompilerFn
= Debug_glReleaseShaderCompiler
;
5887 if (!debug_fn
.glRenderbufferStorageEXTFn
) {
5888 debug_fn
.glRenderbufferStorageEXTFn
= fn
.glRenderbufferStorageEXTFn
;
5889 fn
.glRenderbufferStorageEXTFn
= Debug_glRenderbufferStorageEXT
;
5891 if (!debug_fn
.glRenderbufferStorageMultisampleFn
) {
5892 debug_fn
.glRenderbufferStorageMultisampleFn
=
5893 fn
.glRenderbufferStorageMultisampleFn
;
5894 fn
.glRenderbufferStorageMultisampleFn
=
5895 Debug_glRenderbufferStorageMultisample
;
5897 if (!debug_fn
.glRenderbufferStorageMultisampleANGLEFn
) {
5898 debug_fn
.glRenderbufferStorageMultisampleANGLEFn
=
5899 fn
.glRenderbufferStorageMultisampleANGLEFn
;
5900 fn
.glRenderbufferStorageMultisampleANGLEFn
=
5901 Debug_glRenderbufferStorageMultisampleANGLE
;
5903 if (!debug_fn
.glRenderbufferStorageMultisampleEXTFn
) {
5904 debug_fn
.glRenderbufferStorageMultisampleEXTFn
=
5905 fn
.glRenderbufferStorageMultisampleEXTFn
;
5906 fn
.glRenderbufferStorageMultisampleEXTFn
=
5907 Debug_glRenderbufferStorageMultisampleEXT
;
5909 if (!debug_fn
.glRenderbufferStorageMultisampleIMGFn
) {
5910 debug_fn
.glRenderbufferStorageMultisampleIMGFn
=
5911 fn
.glRenderbufferStorageMultisampleIMGFn
;
5912 fn
.glRenderbufferStorageMultisampleIMGFn
=
5913 Debug_glRenderbufferStorageMultisampleIMG
;
5915 if (!debug_fn
.glResumeTransformFeedbackFn
) {
5916 debug_fn
.glResumeTransformFeedbackFn
= fn
.glResumeTransformFeedbackFn
;
5917 fn
.glResumeTransformFeedbackFn
= Debug_glResumeTransformFeedback
;
5919 if (!debug_fn
.glSampleCoverageFn
) {
5920 debug_fn
.glSampleCoverageFn
= fn
.glSampleCoverageFn
;
5921 fn
.glSampleCoverageFn
= Debug_glSampleCoverage
;
5923 if (!debug_fn
.glSamplerParameterfFn
) {
5924 debug_fn
.glSamplerParameterfFn
= fn
.glSamplerParameterfFn
;
5925 fn
.glSamplerParameterfFn
= Debug_glSamplerParameterf
;
5927 if (!debug_fn
.glSamplerParameterfvFn
) {
5928 debug_fn
.glSamplerParameterfvFn
= fn
.glSamplerParameterfvFn
;
5929 fn
.glSamplerParameterfvFn
= Debug_glSamplerParameterfv
;
5931 if (!debug_fn
.glSamplerParameteriFn
) {
5932 debug_fn
.glSamplerParameteriFn
= fn
.glSamplerParameteriFn
;
5933 fn
.glSamplerParameteriFn
= Debug_glSamplerParameteri
;
5935 if (!debug_fn
.glSamplerParameterivFn
) {
5936 debug_fn
.glSamplerParameterivFn
= fn
.glSamplerParameterivFn
;
5937 fn
.glSamplerParameterivFn
= Debug_glSamplerParameteriv
;
5939 if (!debug_fn
.glScissorFn
) {
5940 debug_fn
.glScissorFn
= fn
.glScissorFn
;
5941 fn
.glScissorFn
= Debug_glScissor
;
5943 if (!debug_fn
.glSetFenceAPPLEFn
) {
5944 debug_fn
.glSetFenceAPPLEFn
= fn
.glSetFenceAPPLEFn
;
5945 fn
.glSetFenceAPPLEFn
= Debug_glSetFenceAPPLE
;
5947 if (!debug_fn
.glSetFenceNVFn
) {
5948 debug_fn
.glSetFenceNVFn
= fn
.glSetFenceNVFn
;
5949 fn
.glSetFenceNVFn
= Debug_glSetFenceNV
;
5951 if (!debug_fn
.glShaderBinaryFn
) {
5952 debug_fn
.glShaderBinaryFn
= fn
.glShaderBinaryFn
;
5953 fn
.glShaderBinaryFn
= Debug_glShaderBinary
;
5955 if (!debug_fn
.glShaderSourceFn
) {
5956 debug_fn
.glShaderSourceFn
= fn
.glShaderSourceFn
;
5957 fn
.glShaderSourceFn
= Debug_glShaderSource
;
5959 if (!debug_fn
.glStencilFillPathNVFn
) {
5960 debug_fn
.glStencilFillPathNVFn
= fn
.glStencilFillPathNVFn
;
5961 fn
.glStencilFillPathNVFn
= Debug_glStencilFillPathNV
;
5963 if (!debug_fn
.glStencilFuncFn
) {
5964 debug_fn
.glStencilFuncFn
= fn
.glStencilFuncFn
;
5965 fn
.glStencilFuncFn
= Debug_glStencilFunc
;
5967 if (!debug_fn
.glStencilFuncSeparateFn
) {
5968 debug_fn
.glStencilFuncSeparateFn
= fn
.glStencilFuncSeparateFn
;
5969 fn
.glStencilFuncSeparateFn
= Debug_glStencilFuncSeparate
;
5971 if (!debug_fn
.glStencilMaskFn
) {
5972 debug_fn
.glStencilMaskFn
= fn
.glStencilMaskFn
;
5973 fn
.glStencilMaskFn
= Debug_glStencilMask
;
5975 if (!debug_fn
.glStencilMaskSeparateFn
) {
5976 debug_fn
.glStencilMaskSeparateFn
= fn
.glStencilMaskSeparateFn
;
5977 fn
.glStencilMaskSeparateFn
= Debug_glStencilMaskSeparate
;
5979 if (!debug_fn
.glStencilOpFn
) {
5980 debug_fn
.glStencilOpFn
= fn
.glStencilOpFn
;
5981 fn
.glStencilOpFn
= Debug_glStencilOp
;
5983 if (!debug_fn
.glStencilOpSeparateFn
) {
5984 debug_fn
.glStencilOpSeparateFn
= fn
.glStencilOpSeparateFn
;
5985 fn
.glStencilOpSeparateFn
= Debug_glStencilOpSeparate
;
5987 if (!debug_fn
.glStencilStrokePathNVFn
) {
5988 debug_fn
.glStencilStrokePathNVFn
= fn
.glStencilStrokePathNVFn
;
5989 fn
.glStencilStrokePathNVFn
= Debug_glStencilStrokePathNV
;
5991 if (!debug_fn
.glStencilThenCoverFillPathNVFn
) {
5992 debug_fn
.glStencilThenCoverFillPathNVFn
= fn
.glStencilThenCoverFillPathNVFn
;
5993 fn
.glStencilThenCoverFillPathNVFn
= Debug_glStencilThenCoverFillPathNV
;
5995 if (!debug_fn
.glStencilThenCoverStrokePathNVFn
) {
5996 debug_fn
.glStencilThenCoverStrokePathNVFn
=
5997 fn
.glStencilThenCoverStrokePathNVFn
;
5998 fn
.glStencilThenCoverStrokePathNVFn
= Debug_glStencilThenCoverStrokePathNV
;
6000 if (!debug_fn
.glTestFenceAPPLEFn
) {
6001 debug_fn
.glTestFenceAPPLEFn
= fn
.glTestFenceAPPLEFn
;
6002 fn
.glTestFenceAPPLEFn
= Debug_glTestFenceAPPLE
;
6004 if (!debug_fn
.glTestFenceNVFn
) {
6005 debug_fn
.glTestFenceNVFn
= fn
.glTestFenceNVFn
;
6006 fn
.glTestFenceNVFn
= Debug_glTestFenceNV
;
6008 if (!debug_fn
.glTexImage2DFn
) {
6009 debug_fn
.glTexImage2DFn
= fn
.glTexImage2DFn
;
6010 fn
.glTexImage2DFn
= Debug_glTexImage2D
;
6012 if (!debug_fn
.glTexImage3DFn
) {
6013 debug_fn
.glTexImage3DFn
= fn
.glTexImage3DFn
;
6014 fn
.glTexImage3DFn
= Debug_glTexImage3D
;
6016 if (!debug_fn
.glTexParameterfFn
) {
6017 debug_fn
.glTexParameterfFn
= fn
.glTexParameterfFn
;
6018 fn
.glTexParameterfFn
= Debug_glTexParameterf
;
6020 if (!debug_fn
.glTexParameterfvFn
) {
6021 debug_fn
.glTexParameterfvFn
= fn
.glTexParameterfvFn
;
6022 fn
.glTexParameterfvFn
= Debug_glTexParameterfv
;
6024 if (!debug_fn
.glTexParameteriFn
) {
6025 debug_fn
.glTexParameteriFn
= fn
.glTexParameteriFn
;
6026 fn
.glTexParameteriFn
= Debug_glTexParameteri
;
6028 if (!debug_fn
.glTexParameterivFn
) {
6029 debug_fn
.glTexParameterivFn
= fn
.glTexParameterivFn
;
6030 fn
.glTexParameterivFn
= Debug_glTexParameteriv
;
6032 if (!debug_fn
.glTexStorage2DEXTFn
) {
6033 debug_fn
.glTexStorage2DEXTFn
= fn
.glTexStorage2DEXTFn
;
6034 fn
.glTexStorage2DEXTFn
= Debug_glTexStorage2DEXT
;
6036 if (!debug_fn
.glTexStorage3DFn
) {
6037 debug_fn
.glTexStorage3DFn
= fn
.glTexStorage3DFn
;
6038 fn
.glTexStorage3DFn
= Debug_glTexStorage3D
;
6040 if (!debug_fn
.glTexSubImage2DFn
) {
6041 debug_fn
.glTexSubImage2DFn
= fn
.glTexSubImage2DFn
;
6042 fn
.glTexSubImage2DFn
= Debug_glTexSubImage2D
;
6044 if (!debug_fn
.glTexSubImage3DFn
) {
6045 debug_fn
.glTexSubImage3DFn
= fn
.glTexSubImage3DFn
;
6046 fn
.glTexSubImage3DFn
= Debug_glTexSubImage3D
;
6048 if (!debug_fn
.glTransformFeedbackVaryingsFn
) {
6049 debug_fn
.glTransformFeedbackVaryingsFn
= fn
.glTransformFeedbackVaryingsFn
;
6050 fn
.glTransformFeedbackVaryingsFn
= Debug_glTransformFeedbackVaryings
;
6052 if (!debug_fn
.glUniform1fFn
) {
6053 debug_fn
.glUniform1fFn
= fn
.glUniform1fFn
;
6054 fn
.glUniform1fFn
= Debug_glUniform1f
;
6056 if (!debug_fn
.glUniform1fvFn
) {
6057 debug_fn
.glUniform1fvFn
= fn
.glUniform1fvFn
;
6058 fn
.glUniform1fvFn
= Debug_glUniform1fv
;
6060 if (!debug_fn
.glUniform1iFn
) {
6061 debug_fn
.glUniform1iFn
= fn
.glUniform1iFn
;
6062 fn
.glUniform1iFn
= Debug_glUniform1i
;
6064 if (!debug_fn
.glUniform1ivFn
) {
6065 debug_fn
.glUniform1ivFn
= fn
.glUniform1ivFn
;
6066 fn
.glUniform1ivFn
= Debug_glUniform1iv
;
6068 if (!debug_fn
.glUniform1uiFn
) {
6069 debug_fn
.glUniform1uiFn
= fn
.glUniform1uiFn
;
6070 fn
.glUniform1uiFn
= Debug_glUniform1ui
;
6072 if (!debug_fn
.glUniform1uivFn
) {
6073 debug_fn
.glUniform1uivFn
= fn
.glUniform1uivFn
;
6074 fn
.glUniform1uivFn
= Debug_glUniform1uiv
;
6076 if (!debug_fn
.glUniform2fFn
) {
6077 debug_fn
.glUniform2fFn
= fn
.glUniform2fFn
;
6078 fn
.glUniform2fFn
= Debug_glUniform2f
;
6080 if (!debug_fn
.glUniform2fvFn
) {
6081 debug_fn
.glUniform2fvFn
= fn
.glUniform2fvFn
;
6082 fn
.glUniform2fvFn
= Debug_glUniform2fv
;
6084 if (!debug_fn
.glUniform2iFn
) {
6085 debug_fn
.glUniform2iFn
= fn
.glUniform2iFn
;
6086 fn
.glUniform2iFn
= Debug_glUniform2i
;
6088 if (!debug_fn
.glUniform2ivFn
) {
6089 debug_fn
.glUniform2ivFn
= fn
.glUniform2ivFn
;
6090 fn
.glUniform2ivFn
= Debug_glUniform2iv
;
6092 if (!debug_fn
.glUniform2uiFn
) {
6093 debug_fn
.glUniform2uiFn
= fn
.glUniform2uiFn
;
6094 fn
.glUniform2uiFn
= Debug_glUniform2ui
;
6096 if (!debug_fn
.glUniform2uivFn
) {
6097 debug_fn
.glUniform2uivFn
= fn
.glUniform2uivFn
;
6098 fn
.glUniform2uivFn
= Debug_glUniform2uiv
;
6100 if (!debug_fn
.glUniform3fFn
) {
6101 debug_fn
.glUniform3fFn
= fn
.glUniform3fFn
;
6102 fn
.glUniform3fFn
= Debug_glUniform3f
;
6104 if (!debug_fn
.glUniform3fvFn
) {
6105 debug_fn
.glUniform3fvFn
= fn
.glUniform3fvFn
;
6106 fn
.glUniform3fvFn
= Debug_glUniform3fv
;
6108 if (!debug_fn
.glUniform3iFn
) {
6109 debug_fn
.glUniform3iFn
= fn
.glUniform3iFn
;
6110 fn
.glUniform3iFn
= Debug_glUniform3i
;
6112 if (!debug_fn
.glUniform3ivFn
) {
6113 debug_fn
.glUniform3ivFn
= fn
.glUniform3ivFn
;
6114 fn
.glUniform3ivFn
= Debug_glUniform3iv
;
6116 if (!debug_fn
.glUniform3uiFn
) {
6117 debug_fn
.glUniform3uiFn
= fn
.glUniform3uiFn
;
6118 fn
.glUniform3uiFn
= Debug_glUniform3ui
;
6120 if (!debug_fn
.glUniform3uivFn
) {
6121 debug_fn
.glUniform3uivFn
= fn
.glUniform3uivFn
;
6122 fn
.glUniform3uivFn
= Debug_glUniform3uiv
;
6124 if (!debug_fn
.glUniform4fFn
) {
6125 debug_fn
.glUniform4fFn
= fn
.glUniform4fFn
;
6126 fn
.glUniform4fFn
= Debug_glUniform4f
;
6128 if (!debug_fn
.glUniform4fvFn
) {
6129 debug_fn
.glUniform4fvFn
= fn
.glUniform4fvFn
;
6130 fn
.glUniform4fvFn
= Debug_glUniform4fv
;
6132 if (!debug_fn
.glUniform4iFn
) {
6133 debug_fn
.glUniform4iFn
= fn
.glUniform4iFn
;
6134 fn
.glUniform4iFn
= Debug_glUniform4i
;
6136 if (!debug_fn
.glUniform4ivFn
) {
6137 debug_fn
.glUniform4ivFn
= fn
.glUniform4ivFn
;
6138 fn
.glUniform4ivFn
= Debug_glUniform4iv
;
6140 if (!debug_fn
.glUniform4uiFn
) {
6141 debug_fn
.glUniform4uiFn
= fn
.glUniform4uiFn
;
6142 fn
.glUniform4uiFn
= Debug_glUniform4ui
;
6144 if (!debug_fn
.glUniform4uivFn
) {
6145 debug_fn
.glUniform4uivFn
= fn
.glUniform4uivFn
;
6146 fn
.glUniform4uivFn
= Debug_glUniform4uiv
;
6148 if (!debug_fn
.glUniformBlockBindingFn
) {
6149 debug_fn
.glUniformBlockBindingFn
= fn
.glUniformBlockBindingFn
;
6150 fn
.glUniformBlockBindingFn
= Debug_glUniformBlockBinding
;
6152 if (!debug_fn
.glUniformMatrix2fvFn
) {
6153 debug_fn
.glUniformMatrix2fvFn
= fn
.glUniformMatrix2fvFn
;
6154 fn
.glUniformMatrix2fvFn
= Debug_glUniformMatrix2fv
;
6156 if (!debug_fn
.glUniformMatrix2x3fvFn
) {
6157 debug_fn
.glUniformMatrix2x3fvFn
= fn
.glUniformMatrix2x3fvFn
;
6158 fn
.glUniformMatrix2x3fvFn
= Debug_glUniformMatrix2x3fv
;
6160 if (!debug_fn
.glUniformMatrix2x4fvFn
) {
6161 debug_fn
.glUniformMatrix2x4fvFn
= fn
.glUniformMatrix2x4fvFn
;
6162 fn
.glUniformMatrix2x4fvFn
= Debug_glUniformMatrix2x4fv
;
6164 if (!debug_fn
.glUniformMatrix3fvFn
) {
6165 debug_fn
.glUniformMatrix3fvFn
= fn
.glUniformMatrix3fvFn
;
6166 fn
.glUniformMatrix3fvFn
= Debug_glUniformMatrix3fv
;
6168 if (!debug_fn
.glUniformMatrix3x2fvFn
) {
6169 debug_fn
.glUniformMatrix3x2fvFn
= fn
.glUniformMatrix3x2fvFn
;
6170 fn
.glUniformMatrix3x2fvFn
= Debug_glUniformMatrix3x2fv
;
6172 if (!debug_fn
.glUniformMatrix3x4fvFn
) {
6173 debug_fn
.glUniformMatrix3x4fvFn
= fn
.glUniformMatrix3x4fvFn
;
6174 fn
.glUniformMatrix3x4fvFn
= Debug_glUniformMatrix3x4fv
;
6176 if (!debug_fn
.glUniformMatrix4fvFn
) {
6177 debug_fn
.glUniformMatrix4fvFn
= fn
.glUniformMatrix4fvFn
;
6178 fn
.glUniformMatrix4fvFn
= Debug_glUniformMatrix4fv
;
6180 if (!debug_fn
.glUniformMatrix4x2fvFn
) {
6181 debug_fn
.glUniformMatrix4x2fvFn
= fn
.glUniformMatrix4x2fvFn
;
6182 fn
.glUniformMatrix4x2fvFn
= Debug_glUniformMatrix4x2fv
;
6184 if (!debug_fn
.glUniformMatrix4x3fvFn
) {
6185 debug_fn
.glUniformMatrix4x3fvFn
= fn
.glUniformMatrix4x3fvFn
;
6186 fn
.glUniformMatrix4x3fvFn
= Debug_glUniformMatrix4x3fv
;
6188 if (!debug_fn
.glUnmapBufferFn
) {
6189 debug_fn
.glUnmapBufferFn
= fn
.glUnmapBufferFn
;
6190 fn
.glUnmapBufferFn
= Debug_glUnmapBuffer
;
6192 if (!debug_fn
.glUseProgramFn
) {
6193 debug_fn
.glUseProgramFn
= fn
.glUseProgramFn
;
6194 fn
.glUseProgramFn
= Debug_glUseProgram
;
6196 if (!debug_fn
.glValidateProgramFn
) {
6197 debug_fn
.glValidateProgramFn
= fn
.glValidateProgramFn
;
6198 fn
.glValidateProgramFn
= Debug_glValidateProgram
;
6200 if (!debug_fn
.glVertexAttrib1fFn
) {
6201 debug_fn
.glVertexAttrib1fFn
= fn
.glVertexAttrib1fFn
;
6202 fn
.glVertexAttrib1fFn
= Debug_glVertexAttrib1f
;
6204 if (!debug_fn
.glVertexAttrib1fvFn
) {
6205 debug_fn
.glVertexAttrib1fvFn
= fn
.glVertexAttrib1fvFn
;
6206 fn
.glVertexAttrib1fvFn
= Debug_glVertexAttrib1fv
;
6208 if (!debug_fn
.glVertexAttrib2fFn
) {
6209 debug_fn
.glVertexAttrib2fFn
= fn
.glVertexAttrib2fFn
;
6210 fn
.glVertexAttrib2fFn
= Debug_glVertexAttrib2f
;
6212 if (!debug_fn
.glVertexAttrib2fvFn
) {
6213 debug_fn
.glVertexAttrib2fvFn
= fn
.glVertexAttrib2fvFn
;
6214 fn
.glVertexAttrib2fvFn
= Debug_glVertexAttrib2fv
;
6216 if (!debug_fn
.glVertexAttrib3fFn
) {
6217 debug_fn
.glVertexAttrib3fFn
= fn
.glVertexAttrib3fFn
;
6218 fn
.glVertexAttrib3fFn
= Debug_glVertexAttrib3f
;
6220 if (!debug_fn
.glVertexAttrib3fvFn
) {
6221 debug_fn
.glVertexAttrib3fvFn
= fn
.glVertexAttrib3fvFn
;
6222 fn
.glVertexAttrib3fvFn
= Debug_glVertexAttrib3fv
;
6224 if (!debug_fn
.glVertexAttrib4fFn
) {
6225 debug_fn
.glVertexAttrib4fFn
= fn
.glVertexAttrib4fFn
;
6226 fn
.glVertexAttrib4fFn
= Debug_glVertexAttrib4f
;
6228 if (!debug_fn
.glVertexAttrib4fvFn
) {
6229 debug_fn
.glVertexAttrib4fvFn
= fn
.glVertexAttrib4fvFn
;
6230 fn
.glVertexAttrib4fvFn
= Debug_glVertexAttrib4fv
;
6232 if (!debug_fn
.glVertexAttribDivisorANGLEFn
) {
6233 debug_fn
.glVertexAttribDivisorANGLEFn
= fn
.glVertexAttribDivisorANGLEFn
;
6234 fn
.glVertexAttribDivisorANGLEFn
= Debug_glVertexAttribDivisorANGLE
;
6236 if (!debug_fn
.glVertexAttribI4iFn
) {
6237 debug_fn
.glVertexAttribI4iFn
= fn
.glVertexAttribI4iFn
;
6238 fn
.glVertexAttribI4iFn
= Debug_glVertexAttribI4i
;
6240 if (!debug_fn
.glVertexAttribI4ivFn
) {
6241 debug_fn
.glVertexAttribI4ivFn
= fn
.glVertexAttribI4ivFn
;
6242 fn
.glVertexAttribI4ivFn
= Debug_glVertexAttribI4iv
;
6244 if (!debug_fn
.glVertexAttribI4uiFn
) {
6245 debug_fn
.glVertexAttribI4uiFn
= fn
.glVertexAttribI4uiFn
;
6246 fn
.glVertexAttribI4uiFn
= Debug_glVertexAttribI4ui
;
6248 if (!debug_fn
.glVertexAttribI4uivFn
) {
6249 debug_fn
.glVertexAttribI4uivFn
= fn
.glVertexAttribI4uivFn
;
6250 fn
.glVertexAttribI4uivFn
= Debug_glVertexAttribI4uiv
;
6252 if (!debug_fn
.glVertexAttribIPointerFn
) {
6253 debug_fn
.glVertexAttribIPointerFn
= fn
.glVertexAttribIPointerFn
;
6254 fn
.glVertexAttribIPointerFn
= Debug_glVertexAttribIPointer
;
6256 if (!debug_fn
.glVertexAttribPointerFn
) {
6257 debug_fn
.glVertexAttribPointerFn
= fn
.glVertexAttribPointerFn
;
6258 fn
.glVertexAttribPointerFn
= Debug_glVertexAttribPointer
;
6260 if (!debug_fn
.glViewportFn
) {
6261 debug_fn
.glViewportFn
= fn
.glViewportFn
;
6262 fn
.glViewportFn
= Debug_glViewport
;
6264 if (!debug_fn
.glWaitSyncFn
) {
6265 debug_fn
.glWaitSyncFn
= fn
.glWaitSyncFn
;
6266 fn
.glWaitSyncFn
= Debug_glWaitSync
;
6268 g_debugBindingsInitialized
= true;
6271 void DriverGL::ClearBindings() {
6272 memset(this, 0, sizeof(*this));
6275 void GLApiBase::glActiveTextureFn(GLenum texture
) {
6276 driver_
->fn
.glActiveTextureFn(texture
);
6279 void GLApiBase::glApplyFramebufferAttachmentCMAAINTELFn(void) {
6280 driver_
->fn
.glApplyFramebufferAttachmentCMAAINTELFn();
6283 void GLApiBase::glAttachShaderFn(GLuint program
, GLuint shader
) {
6284 driver_
->fn
.glAttachShaderFn(program
, shader
);
6287 void GLApiBase::glBeginQueryFn(GLenum target
, GLuint id
) {
6288 driver_
->fn
.glBeginQueryFn(target
, id
);
6291 void GLApiBase::glBeginTransformFeedbackFn(GLenum primitiveMode
) {
6292 driver_
->fn
.glBeginTransformFeedbackFn(primitiveMode
);
6295 void GLApiBase::glBindAttribLocationFn(GLuint program
,
6298 driver_
->fn
.glBindAttribLocationFn(program
, index
, name
);
6301 void GLApiBase::glBindBufferFn(GLenum target
, GLuint buffer
) {
6302 driver_
->fn
.glBindBufferFn(target
, buffer
);
6305 void GLApiBase::glBindBufferBaseFn(GLenum target
, GLuint index
, GLuint buffer
) {
6306 driver_
->fn
.glBindBufferBaseFn(target
, index
, buffer
);
6309 void GLApiBase::glBindBufferRangeFn(GLenum target
,
6314 driver_
->fn
.glBindBufferRangeFn(target
, index
, buffer
, offset
, size
);
6317 void GLApiBase::glBindFragDataLocationFn(GLuint program
,
6320 driver_
->fn
.glBindFragDataLocationFn(program
, colorNumber
, name
);
6323 void GLApiBase::glBindFragDataLocationIndexedFn(GLuint program
,
6327 driver_
->fn
.glBindFragDataLocationIndexedFn(program
, colorNumber
, index
,
6331 void GLApiBase::glBindFramebufferEXTFn(GLenum target
, GLuint framebuffer
) {
6332 driver_
->fn
.glBindFramebufferEXTFn(target
, framebuffer
);
6335 void GLApiBase::glBindRenderbufferEXTFn(GLenum target
, GLuint renderbuffer
) {
6336 driver_
->fn
.glBindRenderbufferEXTFn(target
, renderbuffer
);
6339 void GLApiBase::glBindSamplerFn(GLuint unit
, GLuint sampler
) {
6340 driver_
->fn
.glBindSamplerFn(unit
, sampler
);
6343 void GLApiBase::glBindTextureFn(GLenum target
, GLuint texture
) {
6344 driver_
->fn
.glBindTextureFn(target
, texture
);
6347 void GLApiBase::glBindTransformFeedbackFn(GLenum target
, GLuint id
) {
6348 driver_
->fn
.glBindTransformFeedbackFn(target
, id
);
6351 void GLApiBase::glBindVertexArrayOESFn(GLuint array
) {
6352 driver_
->fn
.glBindVertexArrayOESFn(array
);
6355 void GLApiBase::glBlendBarrierKHRFn(void) {
6356 driver_
->fn
.glBlendBarrierKHRFn();
6359 void GLApiBase::glBlendColorFn(GLclampf red
,
6363 driver_
->fn
.glBlendColorFn(red
, green
, blue
, alpha
);
6366 void GLApiBase::glBlendEquationFn(GLenum mode
) {
6367 driver_
->fn
.glBlendEquationFn(mode
);
6370 void GLApiBase::glBlendEquationSeparateFn(GLenum modeRGB
, GLenum modeAlpha
) {
6371 driver_
->fn
.glBlendEquationSeparateFn(modeRGB
, modeAlpha
);
6374 void GLApiBase::glBlendFuncFn(GLenum sfactor
, GLenum dfactor
) {
6375 driver_
->fn
.glBlendFuncFn(sfactor
, dfactor
);
6378 void GLApiBase::glBlendFuncSeparateFn(GLenum srcRGB
,
6382 driver_
->fn
.glBlendFuncSeparateFn(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
6385 void GLApiBase::glBlitFramebufferFn(GLint srcX0
,
6395 driver_
->fn
.glBlitFramebufferFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
6396 dstX1
, dstY1
, mask
, filter
);
6399 void GLApiBase::glBlitFramebufferANGLEFn(GLint srcX0
,
6409 driver_
->fn
.glBlitFramebufferANGLEFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
6410 dstX1
, dstY1
, mask
, filter
);
6413 void GLApiBase::glBlitFramebufferEXTFn(GLint srcX0
,
6423 driver_
->fn
.glBlitFramebufferEXTFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
6424 dstX1
, dstY1
, mask
, filter
);
6427 void GLApiBase::glBufferDataFn(GLenum target
,
6431 driver_
->fn
.glBufferDataFn(target
, size
, data
, usage
);
6434 void GLApiBase::glBufferSubDataFn(GLenum target
,
6438 driver_
->fn
.glBufferSubDataFn(target
, offset
, size
, data
);
6441 GLenum
GLApiBase::glCheckFramebufferStatusEXTFn(GLenum target
) {
6442 return driver_
->fn
.glCheckFramebufferStatusEXTFn(target
);
6445 void GLApiBase::glClearFn(GLbitfield mask
) {
6446 driver_
->fn
.glClearFn(mask
);
6449 void GLApiBase::glClearBufferfiFn(GLenum buffer
,
6451 const GLfloat depth
,
6453 driver_
->fn
.glClearBufferfiFn(buffer
, drawbuffer
, depth
, stencil
);
6456 void GLApiBase::glClearBufferfvFn(GLenum buffer
,
6458 const GLfloat
* value
) {
6459 driver_
->fn
.glClearBufferfvFn(buffer
, drawbuffer
, value
);
6462 void GLApiBase::glClearBufferivFn(GLenum buffer
,
6464 const GLint
* value
) {
6465 driver_
->fn
.glClearBufferivFn(buffer
, drawbuffer
, value
);
6468 void GLApiBase::glClearBufferuivFn(GLenum buffer
,
6470 const GLuint
* value
) {
6471 driver_
->fn
.glClearBufferuivFn(buffer
, drawbuffer
, value
);
6474 void GLApiBase::glClearColorFn(GLclampf red
,
6478 driver_
->fn
.glClearColorFn(red
, green
, blue
, alpha
);
6481 void GLApiBase::glClearDepthFn(GLclampd depth
) {
6482 driver_
->fn
.glClearDepthFn(depth
);
6485 void GLApiBase::glClearDepthfFn(GLclampf depth
) {
6486 driver_
->fn
.glClearDepthfFn(depth
);
6489 void GLApiBase::glClearStencilFn(GLint s
) {
6490 driver_
->fn
.glClearStencilFn(s
);
6493 GLenum
GLApiBase::glClientWaitSyncFn(GLsync sync
,
6496 return driver_
->fn
.glClientWaitSyncFn(sync
, flags
, timeout
);
6499 void GLApiBase::glColorMaskFn(GLboolean red
,
6503 driver_
->fn
.glColorMaskFn(red
, green
, blue
, alpha
);
6506 void GLApiBase::glCompileShaderFn(GLuint shader
) {
6507 driver_
->fn
.glCompileShaderFn(shader
);
6510 void GLApiBase::glCompressedTexImage2DFn(GLenum target
,
6512 GLenum internalformat
,
6518 driver_
->fn
.glCompressedTexImage2DFn(target
, level
, internalformat
, width
,
6519 height
, border
, imageSize
, data
);
6522 void GLApiBase::glCompressedTexImage3DFn(GLenum target
,
6524 GLenum internalformat
,
6531 driver_
->fn
.glCompressedTexImage3DFn(target
, level
, internalformat
, width
,
6532 height
, depth
, border
, imageSize
, data
);
6535 void GLApiBase::glCompressedTexSubImage2DFn(GLenum target
,
6544 driver_
->fn
.glCompressedTexSubImage2DFn(
6545 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
6548 void GLApiBase::glCompressedTexSubImage3DFn(GLenum target
,
6559 driver_
->fn
.glCompressedTexSubImage3DFn(target
, level
, xoffset
, yoffset
,
6560 zoffset
, width
, height
, depth
, format
,
6564 void GLApiBase::glCopyBufferSubDataFn(GLenum readTarget
,
6566 GLintptr readOffset
,
6567 GLintptr writeOffset
,
6569 driver_
->fn
.glCopyBufferSubDataFn(readTarget
, writeTarget
, readOffset
,
6573 void GLApiBase::glCopyTexImage2DFn(GLenum target
,
6575 GLenum internalformat
,
6581 driver_
->fn
.glCopyTexImage2DFn(target
, level
, internalformat
, x
, y
, width
,
6585 void GLApiBase::glCopyTexSubImage2DFn(GLenum target
,
6593 driver_
->fn
.glCopyTexSubImage2DFn(target
, level
, xoffset
, yoffset
, x
, y
,
6597 void GLApiBase::glCopyTexSubImage3DFn(GLenum target
,
6606 driver_
->fn
.glCopyTexSubImage3DFn(target
, level
, xoffset
, yoffset
, zoffset
, x
,
6610 void GLApiBase::glCoverFillPathNVFn(GLuint path
, GLenum coverMode
) {
6611 driver_
->fn
.glCoverFillPathNVFn(path
, coverMode
);
6614 void GLApiBase::glCoverStrokePathNVFn(GLuint name
, GLenum coverMode
) {
6615 driver_
->fn
.glCoverStrokePathNVFn(name
, coverMode
);
6618 GLuint
GLApiBase::glCreateProgramFn(void) {
6619 return driver_
->fn
.glCreateProgramFn();
6622 GLuint
GLApiBase::glCreateShaderFn(GLenum type
) {
6623 return driver_
->fn
.glCreateShaderFn(type
);
6626 void GLApiBase::glCullFaceFn(GLenum mode
) {
6627 driver_
->fn
.glCullFaceFn(mode
);
6630 void GLApiBase::glDeleteBuffersARBFn(GLsizei n
, const GLuint
* buffers
) {
6631 driver_
->fn
.glDeleteBuffersARBFn(n
, buffers
);
6634 void GLApiBase::glDeleteFencesAPPLEFn(GLsizei n
, const GLuint
* fences
) {
6635 driver_
->fn
.glDeleteFencesAPPLEFn(n
, fences
);
6638 void GLApiBase::glDeleteFencesNVFn(GLsizei n
, const GLuint
* fences
) {
6639 driver_
->fn
.glDeleteFencesNVFn(n
, fences
);
6642 void GLApiBase::glDeleteFramebuffersEXTFn(GLsizei n
,
6643 const GLuint
* framebuffers
) {
6644 driver_
->fn
.glDeleteFramebuffersEXTFn(n
, framebuffers
);
6647 void GLApiBase::glDeletePathsNVFn(GLuint path
, GLsizei range
) {
6648 driver_
->fn
.glDeletePathsNVFn(path
, range
);
6651 void GLApiBase::glDeleteProgramFn(GLuint program
) {
6652 driver_
->fn
.glDeleteProgramFn(program
);
6655 void GLApiBase::glDeleteQueriesFn(GLsizei n
, const GLuint
* ids
) {
6656 driver_
->fn
.glDeleteQueriesFn(n
, ids
);
6659 void GLApiBase::glDeleteRenderbuffersEXTFn(GLsizei n
,
6660 const GLuint
* renderbuffers
) {
6661 driver_
->fn
.glDeleteRenderbuffersEXTFn(n
, renderbuffers
);
6664 void GLApiBase::glDeleteSamplersFn(GLsizei n
, const GLuint
* samplers
) {
6665 driver_
->fn
.glDeleteSamplersFn(n
, samplers
);
6668 void GLApiBase::glDeleteShaderFn(GLuint shader
) {
6669 driver_
->fn
.glDeleteShaderFn(shader
);
6672 void GLApiBase::glDeleteSyncFn(GLsync sync
) {
6673 driver_
->fn
.glDeleteSyncFn(sync
);
6676 void GLApiBase::glDeleteTexturesFn(GLsizei n
, const GLuint
* textures
) {
6677 driver_
->fn
.glDeleteTexturesFn(n
, textures
);
6680 void GLApiBase::glDeleteTransformFeedbacksFn(GLsizei n
, const GLuint
* ids
) {
6681 driver_
->fn
.glDeleteTransformFeedbacksFn(n
, ids
);
6684 void GLApiBase::glDeleteVertexArraysOESFn(GLsizei n
, const GLuint
* arrays
) {
6685 driver_
->fn
.glDeleteVertexArraysOESFn(n
, arrays
);
6688 void GLApiBase::glDepthFuncFn(GLenum func
) {
6689 driver_
->fn
.glDepthFuncFn(func
);
6692 void GLApiBase::glDepthMaskFn(GLboolean flag
) {
6693 driver_
->fn
.glDepthMaskFn(flag
);
6696 void GLApiBase::glDepthRangeFn(GLclampd zNear
, GLclampd zFar
) {
6697 driver_
->fn
.glDepthRangeFn(zNear
, zFar
);
6700 void GLApiBase::glDepthRangefFn(GLclampf zNear
, GLclampf zFar
) {
6701 driver_
->fn
.glDepthRangefFn(zNear
, zFar
);
6704 void GLApiBase::glDetachShaderFn(GLuint program
, GLuint shader
) {
6705 driver_
->fn
.glDetachShaderFn(program
, shader
);
6708 void GLApiBase::glDisableFn(GLenum cap
) {
6709 driver_
->fn
.glDisableFn(cap
);
6712 void GLApiBase::glDisableVertexAttribArrayFn(GLuint index
) {
6713 driver_
->fn
.glDisableVertexAttribArrayFn(index
);
6716 void GLApiBase::glDiscardFramebufferEXTFn(GLenum target
,
6717 GLsizei numAttachments
,
6718 const GLenum
* attachments
) {
6719 driver_
->fn
.glDiscardFramebufferEXTFn(target
, numAttachments
, attachments
);
6722 void GLApiBase::glDrawArraysFn(GLenum mode
, GLint first
, GLsizei count
) {
6723 driver_
->fn
.glDrawArraysFn(mode
, first
, count
);
6726 void GLApiBase::glDrawArraysInstancedANGLEFn(GLenum mode
,
6729 GLsizei primcount
) {
6730 driver_
->fn
.glDrawArraysInstancedANGLEFn(mode
, first
, count
, primcount
);
6733 void GLApiBase::glDrawBufferFn(GLenum mode
) {
6734 driver_
->fn
.glDrawBufferFn(mode
);
6737 void GLApiBase::glDrawBuffersARBFn(GLsizei n
, const GLenum
* bufs
) {
6738 driver_
->fn
.glDrawBuffersARBFn(n
, bufs
);
6741 void GLApiBase::glDrawElementsFn(GLenum mode
,
6744 const void* indices
) {
6745 driver_
->fn
.glDrawElementsFn(mode
, count
, type
, indices
);
6748 void GLApiBase::glDrawElementsInstancedANGLEFn(GLenum mode
,
6751 const void* indices
,
6752 GLsizei primcount
) {
6753 driver_
->fn
.glDrawElementsInstancedANGLEFn(mode
, count
, type
, indices
,
6757 void GLApiBase::glDrawRangeElementsFn(GLenum mode
,
6762 const void* indices
) {
6763 driver_
->fn
.glDrawRangeElementsFn(mode
, start
, end
, count
, type
, indices
);
6766 void GLApiBase::glEGLImageTargetRenderbufferStorageOESFn(GLenum target
,
6767 GLeglImageOES image
) {
6768 driver_
->fn
.glEGLImageTargetRenderbufferStorageOESFn(target
, image
);
6771 void GLApiBase::glEGLImageTargetTexture2DOESFn(GLenum target
,
6772 GLeglImageOES image
) {
6773 driver_
->fn
.glEGLImageTargetTexture2DOESFn(target
, image
);
6776 void GLApiBase::glEnableFn(GLenum cap
) {
6777 driver_
->fn
.glEnableFn(cap
);
6780 void GLApiBase::glEnableVertexAttribArrayFn(GLuint index
) {
6781 driver_
->fn
.glEnableVertexAttribArrayFn(index
);
6784 void GLApiBase::glEndQueryFn(GLenum target
) {
6785 driver_
->fn
.glEndQueryFn(target
);
6788 void GLApiBase::glEndTransformFeedbackFn(void) {
6789 driver_
->fn
.glEndTransformFeedbackFn();
6792 GLsync
GLApiBase::glFenceSyncFn(GLenum condition
, GLbitfield flags
) {
6793 return driver_
->fn
.glFenceSyncFn(condition
, flags
);
6796 void GLApiBase::glFinishFn(void) {
6797 driver_
->fn
.glFinishFn();
6800 void GLApiBase::glFinishFenceAPPLEFn(GLuint fence
) {
6801 driver_
->fn
.glFinishFenceAPPLEFn(fence
);
6804 void GLApiBase::glFinishFenceNVFn(GLuint fence
) {
6805 driver_
->fn
.glFinishFenceNVFn(fence
);
6808 void GLApiBase::glFlushFn(void) {
6809 driver_
->fn
.glFlushFn();
6812 void GLApiBase::glFlushMappedBufferRangeFn(GLenum target
,
6814 GLsizeiptr length
) {
6815 driver_
->fn
.glFlushMappedBufferRangeFn(target
, offset
, length
);
6818 void GLApiBase::glFramebufferRenderbufferEXTFn(GLenum target
,
6820 GLenum renderbuffertarget
,
6821 GLuint renderbuffer
) {
6822 driver_
->fn
.glFramebufferRenderbufferEXTFn(target
, attachment
,
6823 renderbuffertarget
, renderbuffer
);
6826 void GLApiBase::glFramebufferTexture2DEXTFn(GLenum target
,
6831 driver_
->fn
.glFramebufferTexture2DEXTFn(target
, attachment
, textarget
,
6835 void GLApiBase::glFramebufferTexture2DMultisampleEXTFn(GLenum target
,
6841 driver_
->fn
.glFramebufferTexture2DMultisampleEXTFn(
6842 target
, attachment
, textarget
, texture
, level
, samples
);
6845 void GLApiBase::glFramebufferTexture2DMultisampleIMGFn(GLenum target
,
6851 driver_
->fn
.glFramebufferTexture2DMultisampleIMGFn(
6852 target
, attachment
, textarget
, texture
, level
, samples
);
6855 void GLApiBase::glFramebufferTextureLayerFn(GLenum target
,
6860 driver_
->fn
.glFramebufferTextureLayerFn(target
, attachment
, texture
, level
,
6864 void GLApiBase::glFrontFaceFn(GLenum mode
) {
6865 driver_
->fn
.glFrontFaceFn(mode
);
6868 void GLApiBase::glGenBuffersARBFn(GLsizei n
, GLuint
* buffers
) {
6869 driver_
->fn
.glGenBuffersARBFn(n
, buffers
);
6872 void GLApiBase::glGenerateMipmapEXTFn(GLenum target
) {
6873 driver_
->fn
.glGenerateMipmapEXTFn(target
);
6876 void GLApiBase::glGenFencesAPPLEFn(GLsizei n
, GLuint
* fences
) {
6877 driver_
->fn
.glGenFencesAPPLEFn(n
, fences
);
6880 void GLApiBase::glGenFencesNVFn(GLsizei n
, GLuint
* fences
) {
6881 driver_
->fn
.glGenFencesNVFn(n
, fences
);
6884 void GLApiBase::glGenFramebuffersEXTFn(GLsizei n
, GLuint
* framebuffers
) {
6885 driver_
->fn
.glGenFramebuffersEXTFn(n
, framebuffers
);
6888 GLuint
GLApiBase::glGenPathsNVFn(GLsizei range
) {
6889 return driver_
->fn
.glGenPathsNVFn(range
);
6892 void GLApiBase::glGenQueriesFn(GLsizei n
, GLuint
* ids
) {
6893 driver_
->fn
.glGenQueriesFn(n
, ids
);
6896 void GLApiBase::glGenRenderbuffersEXTFn(GLsizei n
, GLuint
* renderbuffers
) {
6897 driver_
->fn
.glGenRenderbuffersEXTFn(n
, renderbuffers
);
6900 void GLApiBase::glGenSamplersFn(GLsizei n
, GLuint
* samplers
) {
6901 driver_
->fn
.glGenSamplersFn(n
, samplers
);
6904 void GLApiBase::glGenTexturesFn(GLsizei n
, GLuint
* textures
) {
6905 driver_
->fn
.glGenTexturesFn(n
, textures
);
6908 void GLApiBase::glGenTransformFeedbacksFn(GLsizei n
, GLuint
* ids
) {
6909 driver_
->fn
.glGenTransformFeedbacksFn(n
, ids
);
6912 void GLApiBase::glGenVertexArraysOESFn(GLsizei n
, GLuint
* arrays
) {
6913 driver_
->fn
.glGenVertexArraysOESFn(n
, arrays
);
6916 void GLApiBase::glGetActiveAttribFn(GLuint program
,
6923 driver_
->fn
.glGetActiveAttribFn(program
, index
, bufsize
, length
, size
, type
,
6927 void GLApiBase::glGetActiveUniformFn(GLuint program
,
6934 driver_
->fn
.glGetActiveUniformFn(program
, index
, bufsize
, length
, size
, type
,
6938 void GLApiBase::glGetActiveUniformBlockivFn(GLuint program
,
6939 GLuint uniformBlockIndex
,
6942 driver_
->fn
.glGetActiveUniformBlockivFn(program
, uniformBlockIndex
, pname
,
6946 void GLApiBase::glGetActiveUniformBlockNameFn(GLuint program
,
6947 GLuint uniformBlockIndex
,
6950 char* uniformBlockName
) {
6951 driver_
->fn
.glGetActiveUniformBlockNameFn(program
, uniformBlockIndex
, bufSize
,
6952 length
, uniformBlockName
);
6955 void GLApiBase::glGetActiveUniformsivFn(GLuint program
,
6956 GLsizei uniformCount
,
6957 const GLuint
* uniformIndices
,
6960 driver_
->fn
.glGetActiveUniformsivFn(program
, uniformCount
, uniformIndices
,
6964 void GLApiBase::glGetAttachedShadersFn(GLuint program
,
6968 driver_
->fn
.glGetAttachedShadersFn(program
, maxcount
, count
, shaders
);
6971 GLint
GLApiBase::glGetAttribLocationFn(GLuint program
, const char* name
) {
6972 return driver_
->fn
.glGetAttribLocationFn(program
, name
);
6975 void GLApiBase::glGetBooleanvFn(GLenum pname
, GLboolean
* params
) {
6976 driver_
->fn
.glGetBooleanvFn(pname
, params
);
6979 void GLApiBase::glGetBufferParameterivFn(GLenum target
,
6982 driver_
->fn
.glGetBufferParameterivFn(target
, pname
, params
);
6985 GLenum
GLApiBase::glGetErrorFn(void) {
6986 return driver_
->fn
.glGetErrorFn();
6989 void GLApiBase::glGetFenceivNVFn(GLuint fence
, GLenum pname
, GLint
* params
) {
6990 driver_
->fn
.glGetFenceivNVFn(fence
, pname
, params
);
6993 void GLApiBase::glGetFloatvFn(GLenum pname
, GLfloat
* params
) {
6994 driver_
->fn
.glGetFloatvFn(pname
, params
);
6997 GLint
GLApiBase::glGetFragDataLocationFn(GLuint program
, const char* name
) {
6998 return driver_
->fn
.glGetFragDataLocationFn(program
, name
);
7001 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target
,
7005 driver_
->fn
.glGetFramebufferAttachmentParameterivEXTFn(target
, attachment
,
7009 GLenum
GLApiBase::glGetGraphicsResetStatusARBFn(void) {
7010 return driver_
->fn
.glGetGraphicsResetStatusARBFn();
7013 void GLApiBase::glGetInteger64i_vFn(GLenum target
,
7016 driver_
->fn
.glGetInteger64i_vFn(target
, index
, data
);
7019 void GLApiBase::glGetInteger64vFn(GLenum pname
, GLint64
* params
) {
7020 driver_
->fn
.glGetInteger64vFn(pname
, params
);
7023 void GLApiBase::glGetIntegeri_vFn(GLenum target
, GLuint index
, GLint
* data
) {
7024 driver_
->fn
.glGetIntegeri_vFn(target
, index
, data
);
7027 void GLApiBase::glGetIntegervFn(GLenum pname
, GLint
* params
) {
7028 driver_
->fn
.glGetIntegervFn(pname
, params
);
7031 void GLApiBase::glGetInternalformativFn(GLenum target
,
7032 GLenum internalformat
,
7036 driver_
->fn
.glGetInternalformativFn(target
, internalformat
, pname
, bufSize
,
7040 void GLApiBase::glGetProgramBinaryFn(GLuint program
,
7043 GLenum
* binaryFormat
,
7045 driver_
->fn
.glGetProgramBinaryFn(program
, bufSize
, length
, binaryFormat
,
7049 void GLApiBase::glGetProgramInfoLogFn(GLuint program
,
7053 driver_
->fn
.glGetProgramInfoLogFn(program
, bufsize
, length
, infolog
);
7056 void GLApiBase::glGetProgramivFn(GLuint program
, GLenum pname
, GLint
* params
) {
7057 driver_
->fn
.glGetProgramivFn(program
, pname
, params
);
7060 GLint
GLApiBase::glGetProgramResourceLocationFn(GLuint program
,
7061 GLenum programInterface
,
7063 return driver_
->fn
.glGetProgramResourceLocationFn(program
, programInterface
,
7067 void GLApiBase::glGetQueryivFn(GLenum target
, GLenum pname
, GLint
* params
) {
7068 driver_
->fn
.glGetQueryivFn(target
, pname
, params
);
7071 void GLApiBase::glGetQueryObjecti64vFn(GLuint id
,
7074 driver_
->fn
.glGetQueryObjecti64vFn(id
, pname
, params
);
7077 void GLApiBase::glGetQueryObjectivFn(GLuint id
, GLenum pname
, GLint
* params
) {
7078 driver_
->fn
.glGetQueryObjectivFn(id
, pname
, params
);
7081 void GLApiBase::glGetQueryObjectui64vFn(GLuint id
,
7084 driver_
->fn
.glGetQueryObjectui64vFn(id
, pname
, params
);
7087 void GLApiBase::glGetQueryObjectuivFn(GLuint id
, GLenum pname
, GLuint
* params
) {
7088 driver_
->fn
.glGetQueryObjectuivFn(id
, pname
, params
);
7091 void GLApiBase::glGetRenderbufferParameterivEXTFn(GLenum target
,
7094 driver_
->fn
.glGetRenderbufferParameterivEXTFn(target
, pname
, params
);
7097 void GLApiBase::glGetSamplerParameterfvFn(GLuint sampler
,
7100 driver_
->fn
.glGetSamplerParameterfvFn(sampler
, pname
, params
);
7103 void GLApiBase::glGetSamplerParameterivFn(GLuint sampler
,
7106 driver_
->fn
.glGetSamplerParameterivFn(sampler
, pname
, params
);
7109 void GLApiBase::glGetShaderInfoLogFn(GLuint shader
,
7113 driver_
->fn
.glGetShaderInfoLogFn(shader
, bufsize
, length
, infolog
);
7116 void GLApiBase::glGetShaderivFn(GLuint shader
, GLenum pname
, GLint
* params
) {
7117 driver_
->fn
.glGetShaderivFn(shader
, pname
, params
);
7120 void GLApiBase::glGetShaderPrecisionFormatFn(GLenum shadertype
,
7121 GLenum precisiontype
,
7124 driver_
->fn
.glGetShaderPrecisionFormatFn(shadertype
, precisiontype
, range
,
7128 void GLApiBase::glGetShaderSourceFn(GLuint shader
,
7132 driver_
->fn
.glGetShaderSourceFn(shader
, bufsize
, length
, source
);
7135 const GLubyte
* GLApiBase::glGetStringFn(GLenum name
) {
7136 return driver_
->fn
.glGetStringFn(name
);
7139 const GLubyte
* GLApiBase::glGetStringiFn(GLenum name
, GLuint index
) {
7140 return driver_
->fn
.glGetStringiFn(name
, index
);
7143 void GLApiBase::glGetSyncivFn(GLsync sync
,
7148 driver_
->fn
.glGetSyncivFn(sync
, pname
, bufSize
, length
, values
);
7151 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target
,
7155 driver_
->fn
.glGetTexLevelParameterfvFn(target
, level
, pname
, params
);
7158 void GLApiBase::glGetTexLevelParameterivFn(GLenum target
,
7162 driver_
->fn
.glGetTexLevelParameterivFn(target
, level
, pname
, params
);
7165 void GLApiBase::glGetTexParameterfvFn(GLenum target
,
7168 driver_
->fn
.glGetTexParameterfvFn(target
, pname
, params
);
7171 void GLApiBase::glGetTexParameterivFn(GLenum target
,
7174 driver_
->fn
.glGetTexParameterivFn(target
, pname
, params
);
7177 void GLApiBase::glGetTransformFeedbackVaryingFn(GLuint program
,
7184 driver_
->fn
.glGetTransformFeedbackVaryingFn(program
, index
, bufSize
, length
,
7188 void GLApiBase::glGetTranslatedShaderSourceANGLEFn(GLuint shader
,
7192 driver_
->fn
.glGetTranslatedShaderSourceANGLEFn(shader
, bufsize
, length
,
7196 GLuint
GLApiBase::glGetUniformBlockIndexFn(GLuint program
,
7197 const char* uniformBlockName
) {
7198 return driver_
->fn
.glGetUniformBlockIndexFn(program
, uniformBlockName
);
7201 void GLApiBase::glGetUniformfvFn(GLuint program
,
7204 driver_
->fn
.glGetUniformfvFn(program
, location
, params
);
7207 void GLApiBase::glGetUniformIndicesFn(GLuint program
,
7208 GLsizei uniformCount
,
7209 const char* const* uniformNames
,
7210 GLuint
* uniformIndices
) {
7211 driver_
->fn
.glGetUniformIndicesFn(program
, uniformCount
, uniformNames
,
7215 void GLApiBase::glGetUniformivFn(GLuint program
,
7218 driver_
->fn
.glGetUniformivFn(program
, location
, params
);
7221 GLint
GLApiBase::glGetUniformLocationFn(GLuint program
, const char* name
) {
7222 return driver_
->fn
.glGetUniformLocationFn(program
, name
);
7225 void GLApiBase::glGetUniformuivFn(GLuint program
,
7228 driver_
->fn
.glGetUniformuivFn(program
, location
, params
);
7231 void GLApiBase::glGetVertexAttribfvFn(GLuint index
,
7234 driver_
->fn
.glGetVertexAttribfvFn(index
, pname
, params
);
7237 void GLApiBase::glGetVertexAttribivFn(GLuint index
,
7240 driver_
->fn
.glGetVertexAttribivFn(index
, pname
, params
);
7243 void GLApiBase::glGetVertexAttribPointervFn(GLuint index
,
7246 driver_
->fn
.glGetVertexAttribPointervFn(index
, pname
, pointer
);
7249 void GLApiBase::glHintFn(GLenum target
, GLenum mode
) {
7250 driver_
->fn
.glHintFn(target
, mode
);
7253 void GLApiBase::glInsertEventMarkerEXTFn(GLsizei length
, const char* marker
) {
7254 driver_
->fn
.glInsertEventMarkerEXTFn(length
, marker
);
7257 void GLApiBase::glInvalidateFramebufferFn(GLenum target
,
7258 GLsizei numAttachments
,
7259 const GLenum
* attachments
) {
7260 driver_
->fn
.glInvalidateFramebufferFn(target
, numAttachments
, attachments
);
7263 void GLApiBase::glInvalidateSubFramebufferFn(GLenum target
,
7264 GLsizei numAttachments
,
7265 const GLenum
* attachments
,
7270 driver_
->fn
.glInvalidateSubFramebufferFn(target
, numAttachments
, attachments
,
7271 x
, y
, width
, height
);
7274 GLboolean
GLApiBase::glIsBufferFn(GLuint buffer
) {
7275 return driver_
->fn
.glIsBufferFn(buffer
);
7278 GLboolean
GLApiBase::glIsEnabledFn(GLenum cap
) {
7279 return driver_
->fn
.glIsEnabledFn(cap
);
7282 GLboolean
GLApiBase::glIsFenceAPPLEFn(GLuint fence
) {
7283 return driver_
->fn
.glIsFenceAPPLEFn(fence
);
7286 GLboolean
GLApiBase::glIsFenceNVFn(GLuint fence
) {
7287 return driver_
->fn
.glIsFenceNVFn(fence
);
7290 GLboolean
GLApiBase::glIsFramebufferEXTFn(GLuint framebuffer
) {
7291 return driver_
->fn
.glIsFramebufferEXTFn(framebuffer
);
7294 GLboolean
GLApiBase::glIsPathNVFn(GLuint path
) {
7295 return driver_
->fn
.glIsPathNVFn(path
);
7298 GLboolean
GLApiBase::glIsProgramFn(GLuint program
) {
7299 return driver_
->fn
.glIsProgramFn(program
);
7302 GLboolean
GLApiBase::glIsQueryFn(GLuint query
) {
7303 return driver_
->fn
.glIsQueryFn(query
);
7306 GLboolean
GLApiBase::glIsRenderbufferEXTFn(GLuint renderbuffer
) {
7307 return driver_
->fn
.glIsRenderbufferEXTFn(renderbuffer
);
7310 GLboolean
GLApiBase::glIsSamplerFn(GLuint sampler
) {
7311 return driver_
->fn
.glIsSamplerFn(sampler
);
7314 GLboolean
GLApiBase::glIsShaderFn(GLuint shader
) {
7315 return driver_
->fn
.glIsShaderFn(shader
);
7318 GLboolean
GLApiBase::glIsSyncFn(GLsync sync
) {
7319 return driver_
->fn
.glIsSyncFn(sync
);
7322 GLboolean
GLApiBase::glIsTextureFn(GLuint texture
) {
7323 return driver_
->fn
.glIsTextureFn(texture
);
7326 GLboolean
GLApiBase::glIsTransformFeedbackFn(GLuint id
) {
7327 return driver_
->fn
.glIsTransformFeedbackFn(id
);
7330 GLboolean
GLApiBase::glIsVertexArrayOESFn(GLuint array
) {
7331 return driver_
->fn
.glIsVertexArrayOESFn(array
);
7334 void GLApiBase::glLineWidthFn(GLfloat width
) {
7335 driver_
->fn
.glLineWidthFn(width
);
7338 void GLApiBase::glLinkProgramFn(GLuint program
) {
7339 driver_
->fn
.glLinkProgramFn(program
);
7342 void* GLApiBase::glMapBufferFn(GLenum target
, GLenum access
) {
7343 return driver_
->fn
.glMapBufferFn(target
, access
);
7346 void* GLApiBase::glMapBufferRangeFn(GLenum target
,
7349 GLbitfield access
) {
7350 return driver_
->fn
.glMapBufferRangeFn(target
, offset
, length
, access
);
7353 void GLApiBase::glMatrixLoadfEXTFn(GLenum matrixMode
, const GLfloat
* m
) {
7354 driver_
->fn
.glMatrixLoadfEXTFn(matrixMode
, m
);
7357 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode
) {
7358 driver_
->fn
.glMatrixLoadIdentityEXTFn(matrixMode
);
7361 void GLApiBase::glPathCommandsNVFn(GLuint path
,
7362 GLsizei numCommands
,
7363 const GLubyte
* commands
,
7366 const GLvoid
* coords
) {
7367 driver_
->fn
.glPathCommandsNVFn(path
, numCommands
, commands
, numCoords
,
7371 void GLApiBase::glPathParameterfNVFn(GLuint path
, GLenum pname
, GLfloat value
) {
7372 driver_
->fn
.glPathParameterfNVFn(path
, pname
, value
);
7375 void GLApiBase::glPathParameteriNVFn(GLuint path
, GLenum pname
, GLint value
) {
7376 driver_
->fn
.glPathParameteriNVFn(path
, pname
, value
);
7379 void GLApiBase::glPathStencilFuncNVFn(GLenum func
, GLint ref
, GLuint mask
) {
7380 driver_
->fn
.glPathStencilFuncNVFn(func
, ref
, mask
);
7383 void GLApiBase::glPauseTransformFeedbackFn(void) {
7384 driver_
->fn
.glPauseTransformFeedbackFn();
7387 void GLApiBase::glPixelStoreiFn(GLenum pname
, GLint param
) {
7388 driver_
->fn
.glPixelStoreiFn(pname
, param
);
7391 void GLApiBase::glPointParameteriFn(GLenum pname
, GLint param
) {
7392 driver_
->fn
.glPointParameteriFn(pname
, param
);
7395 void GLApiBase::glPolygonOffsetFn(GLfloat factor
, GLfloat units
) {
7396 driver_
->fn
.glPolygonOffsetFn(factor
, units
);
7399 void GLApiBase::glPopGroupMarkerEXTFn(void) {
7400 driver_
->fn
.glPopGroupMarkerEXTFn();
7403 void GLApiBase::glProgramBinaryFn(GLuint program
,
7404 GLenum binaryFormat
,
7405 const GLvoid
* binary
,
7407 driver_
->fn
.glProgramBinaryFn(program
, binaryFormat
, binary
, length
);
7410 void GLApiBase::glProgramParameteriFn(GLuint program
,
7413 driver_
->fn
.glProgramParameteriFn(program
, pname
, value
);
7416 void GLApiBase::glPushGroupMarkerEXTFn(GLsizei length
, const char* marker
) {
7417 driver_
->fn
.glPushGroupMarkerEXTFn(length
, marker
);
7420 void GLApiBase::glQueryCounterFn(GLuint id
, GLenum target
) {
7421 driver_
->fn
.glQueryCounterFn(id
, target
);
7424 void GLApiBase::glReadBufferFn(GLenum src
) {
7425 driver_
->fn
.glReadBufferFn(src
);
7428 void GLApiBase::glReadPixelsFn(GLint x
,
7435 driver_
->fn
.glReadPixelsFn(x
, y
, width
, height
, format
, type
, pixels
);
7438 void GLApiBase::glReleaseShaderCompilerFn(void) {
7439 driver_
->fn
.glReleaseShaderCompilerFn();
7442 void GLApiBase::glRenderbufferStorageEXTFn(GLenum target
,
7443 GLenum internalformat
,
7446 driver_
->fn
.glRenderbufferStorageEXTFn(target
, internalformat
, width
, height
);
7449 void GLApiBase::glRenderbufferStorageMultisampleFn(GLenum target
,
7451 GLenum internalformat
,
7454 driver_
->fn
.glRenderbufferStorageMultisampleFn(target
, samples
,
7455 internalformat
, width
, height
);
7458 void GLApiBase::glRenderbufferStorageMultisampleANGLEFn(GLenum target
,
7460 GLenum internalformat
,
7463 driver_
->fn
.glRenderbufferStorageMultisampleANGLEFn(
7464 target
, samples
, internalformat
, width
, height
);
7467 void GLApiBase::glRenderbufferStorageMultisampleEXTFn(GLenum target
,
7469 GLenum internalformat
,
7472 driver_
->fn
.glRenderbufferStorageMultisampleEXTFn(
7473 target
, samples
, internalformat
, width
, height
);
7476 void GLApiBase::glRenderbufferStorageMultisampleIMGFn(GLenum target
,
7478 GLenum internalformat
,
7481 driver_
->fn
.glRenderbufferStorageMultisampleIMGFn(
7482 target
, samples
, internalformat
, width
, height
);
7485 void GLApiBase::glResumeTransformFeedbackFn(void) {
7486 driver_
->fn
.glResumeTransformFeedbackFn();
7489 void GLApiBase::glSampleCoverageFn(GLclampf value
, GLboolean invert
) {
7490 driver_
->fn
.glSampleCoverageFn(value
, invert
);
7493 void GLApiBase::glSamplerParameterfFn(GLuint sampler
,
7496 driver_
->fn
.glSamplerParameterfFn(sampler
, pname
, param
);
7499 void GLApiBase::glSamplerParameterfvFn(GLuint sampler
,
7501 const GLfloat
* params
) {
7502 driver_
->fn
.glSamplerParameterfvFn(sampler
, pname
, params
);
7505 void GLApiBase::glSamplerParameteriFn(GLuint sampler
,
7508 driver_
->fn
.glSamplerParameteriFn(sampler
, pname
, param
);
7511 void GLApiBase::glSamplerParameterivFn(GLuint sampler
,
7513 const GLint
* params
) {
7514 driver_
->fn
.glSamplerParameterivFn(sampler
, pname
, params
);
7517 void GLApiBase::glScissorFn(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
7518 driver_
->fn
.glScissorFn(x
, y
, width
, height
);
7521 void GLApiBase::glSetFenceAPPLEFn(GLuint fence
) {
7522 driver_
->fn
.glSetFenceAPPLEFn(fence
);
7525 void GLApiBase::glSetFenceNVFn(GLuint fence
, GLenum condition
) {
7526 driver_
->fn
.glSetFenceNVFn(fence
, condition
);
7529 void GLApiBase::glShaderBinaryFn(GLsizei n
,
7530 const GLuint
* shaders
,
7531 GLenum binaryformat
,
7534 driver_
->fn
.glShaderBinaryFn(n
, shaders
, binaryformat
, binary
, length
);
7537 void GLApiBase::glShaderSourceFn(GLuint shader
,
7539 const char* const* str
,
7540 const GLint
* length
) {
7541 driver_
->fn
.glShaderSourceFn(shader
, count
, str
, length
);
7544 void GLApiBase::glStencilFillPathNVFn(GLuint path
,
7547 driver_
->fn
.glStencilFillPathNVFn(path
, fillMode
, mask
);
7550 void GLApiBase::glStencilFuncFn(GLenum func
, GLint ref
, GLuint mask
) {
7551 driver_
->fn
.glStencilFuncFn(func
, ref
, mask
);
7554 void GLApiBase::glStencilFuncSeparateFn(GLenum face
,
7558 driver_
->fn
.glStencilFuncSeparateFn(face
, func
, ref
, mask
);
7561 void GLApiBase::glStencilMaskFn(GLuint mask
) {
7562 driver_
->fn
.glStencilMaskFn(mask
);
7565 void GLApiBase::glStencilMaskSeparateFn(GLenum face
, GLuint mask
) {
7566 driver_
->fn
.glStencilMaskSeparateFn(face
, mask
);
7569 void GLApiBase::glStencilOpFn(GLenum fail
, GLenum zfail
, GLenum zpass
) {
7570 driver_
->fn
.glStencilOpFn(fail
, zfail
, zpass
);
7573 void GLApiBase::glStencilOpSeparateFn(GLenum face
,
7577 driver_
->fn
.glStencilOpSeparateFn(face
, fail
, zfail
, zpass
);
7580 void GLApiBase::glStencilStrokePathNVFn(GLuint path
,
7583 driver_
->fn
.glStencilStrokePathNVFn(path
, reference
, mask
);
7586 void GLApiBase::glStencilThenCoverFillPathNVFn(GLuint path
,
7590 driver_
->fn
.glStencilThenCoverFillPathNVFn(path
, fillMode
, mask
, coverMode
);
7593 void GLApiBase::glStencilThenCoverStrokePathNVFn(GLuint path
,
7597 driver_
->fn
.glStencilThenCoverStrokePathNVFn(path
, reference
, mask
,
7601 GLboolean
GLApiBase::glTestFenceAPPLEFn(GLuint fence
) {
7602 return driver_
->fn
.glTestFenceAPPLEFn(fence
);
7605 GLboolean
GLApiBase::glTestFenceNVFn(GLuint fence
) {
7606 return driver_
->fn
.glTestFenceNVFn(fence
);
7609 void GLApiBase::glTexImage2DFn(GLenum target
,
7611 GLint internalformat
,
7617 const void* pixels
) {
7618 driver_
->fn
.glTexImage2DFn(target
, level
, internalformat
, width
, height
,
7619 border
, format
, type
, pixels
);
7622 void GLApiBase::glTexImage3DFn(GLenum target
,
7624 GLint internalformat
,
7631 const void* pixels
) {
7632 driver_
->fn
.glTexImage3DFn(target
, level
, internalformat
, width
, height
,
7633 depth
, border
, format
, type
, pixels
);
7636 void GLApiBase::glTexParameterfFn(GLenum target
, GLenum pname
, GLfloat param
) {
7637 driver_
->fn
.glTexParameterfFn(target
, pname
, param
);
7640 void GLApiBase::glTexParameterfvFn(GLenum target
,
7642 const GLfloat
* params
) {
7643 driver_
->fn
.glTexParameterfvFn(target
, pname
, params
);
7646 void GLApiBase::glTexParameteriFn(GLenum target
, GLenum pname
, GLint param
) {
7647 driver_
->fn
.glTexParameteriFn(target
, pname
, param
);
7650 void GLApiBase::glTexParameterivFn(GLenum target
,
7652 const GLint
* params
) {
7653 driver_
->fn
.glTexParameterivFn(target
, pname
, params
);
7656 void GLApiBase::glTexStorage2DEXTFn(GLenum target
,
7658 GLenum internalformat
,
7661 driver_
->fn
.glTexStorage2DEXTFn(target
, levels
, internalformat
, width
,
7665 void GLApiBase::glTexStorage3DFn(GLenum target
,
7667 GLenum internalformat
,
7671 driver_
->fn
.glTexStorage3DFn(target
, levels
, internalformat
, width
, height
,
7675 void GLApiBase::glTexSubImage2DFn(GLenum target
,
7683 const void* pixels
) {
7684 driver_
->fn
.glTexSubImage2DFn(target
, level
, xoffset
, yoffset
, width
, height
,
7685 format
, type
, pixels
);
7688 void GLApiBase::glTexSubImage3DFn(GLenum target
,
7698 const void* pixels
) {
7699 driver_
->fn
.glTexSubImage3DFn(target
, level
, xoffset
, yoffset
, zoffset
, width
,
7700 height
, depth
, format
, type
, pixels
);
7703 void GLApiBase::glTransformFeedbackVaryingsFn(GLuint program
,
7705 const char* const* varyings
,
7706 GLenum bufferMode
) {
7707 driver_
->fn
.glTransformFeedbackVaryingsFn(program
, count
, varyings
,
7711 void GLApiBase::glUniform1fFn(GLint location
, GLfloat x
) {
7712 driver_
->fn
.glUniform1fFn(location
, x
);
7715 void GLApiBase::glUniform1fvFn(GLint location
,
7718 driver_
->fn
.glUniform1fvFn(location
, count
, v
);
7721 void GLApiBase::glUniform1iFn(GLint location
, GLint x
) {
7722 driver_
->fn
.glUniform1iFn(location
, x
);
7725 void GLApiBase::glUniform1ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
7726 driver_
->fn
.glUniform1ivFn(location
, count
, v
);
7729 void GLApiBase::glUniform1uiFn(GLint location
, GLuint v0
) {
7730 driver_
->fn
.glUniform1uiFn(location
, v0
);
7733 void GLApiBase::glUniform1uivFn(GLint location
,
7736 driver_
->fn
.glUniform1uivFn(location
, count
, v
);
7739 void GLApiBase::glUniform2fFn(GLint location
, GLfloat x
, GLfloat y
) {
7740 driver_
->fn
.glUniform2fFn(location
, x
, y
);
7743 void GLApiBase::glUniform2fvFn(GLint location
,
7746 driver_
->fn
.glUniform2fvFn(location
, count
, v
);
7749 void GLApiBase::glUniform2iFn(GLint location
, GLint x
, GLint y
) {
7750 driver_
->fn
.glUniform2iFn(location
, x
, y
);
7753 void GLApiBase::glUniform2ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
7754 driver_
->fn
.glUniform2ivFn(location
, count
, v
);
7757 void GLApiBase::glUniform2uiFn(GLint location
, GLuint v0
, GLuint v1
) {
7758 driver_
->fn
.glUniform2uiFn(location
, v0
, v1
);
7761 void GLApiBase::glUniform2uivFn(GLint location
,
7764 driver_
->fn
.glUniform2uivFn(location
, count
, v
);
7767 void GLApiBase::glUniform3fFn(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
7768 driver_
->fn
.glUniform3fFn(location
, x
, y
, z
);
7771 void GLApiBase::glUniform3fvFn(GLint location
,
7774 driver_
->fn
.glUniform3fvFn(location
, count
, v
);
7777 void GLApiBase::glUniform3iFn(GLint location
, GLint x
, GLint y
, GLint z
) {
7778 driver_
->fn
.glUniform3iFn(location
, x
, y
, z
);
7781 void GLApiBase::glUniform3ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
7782 driver_
->fn
.glUniform3ivFn(location
, count
, v
);
7785 void GLApiBase::glUniform3uiFn(GLint location
,
7789 driver_
->fn
.glUniform3uiFn(location
, v0
, v1
, v2
);
7792 void GLApiBase::glUniform3uivFn(GLint location
,
7795 driver_
->fn
.glUniform3uivFn(location
, count
, v
);
7798 void GLApiBase::glUniform4fFn(GLint location
,
7803 driver_
->fn
.glUniform4fFn(location
, x
, y
, z
, w
);
7806 void GLApiBase::glUniform4fvFn(GLint location
,
7809 driver_
->fn
.glUniform4fvFn(location
, count
, v
);
7812 void GLApiBase::glUniform4iFn(GLint location
,
7817 driver_
->fn
.glUniform4iFn(location
, x
, y
, z
, w
);
7820 void GLApiBase::glUniform4ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
7821 driver_
->fn
.glUniform4ivFn(location
, count
, v
);
7824 void GLApiBase::glUniform4uiFn(GLint location
,
7829 driver_
->fn
.glUniform4uiFn(location
, v0
, v1
, v2
, v3
);
7832 void GLApiBase::glUniform4uivFn(GLint location
,
7835 driver_
->fn
.glUniform4uivFn(location
, count
, v
);
7838 void GLApiBase::glUniformBlockBindingFn(GLuint program
,
7839 GLuint uniformBlockIndex
,
7840 GLuint uniformBlockBinding
) {
7841 driver_
->fn
.glUniformBlockBindingFn(program
, uniformBlockIndex
,
7842 uniformBlockBinding
);
7845 void GLApiBase::glUniformMatrix2fvFn(GLint location
,
7847 GLboolean transpose
,
7848 const GLfloat
* value
) {
7849 driver_
->fn
.glUniformMatrix2fvFn(location
, count
, transpose
, value
);
7852 void GLApiBase::glUniformMatrix2x3fvFn(GLint location
,
7854 GLboolean transpose
,
7855 const GLfloat
* value
) {
7856 driver_
->fn
.glUniformMatrix2x3fvFn(location
, count
, transpose
, value
);
7859 void GLApiBase::glUniformMatrix2x4fvFn(GLint location
,
7861 GLboolean transpose
,
7862 const GLfloat
* value
) {
7863 driver_
->fn
.glUniformMatrix2x4fvFn(location
, count
, transpose
, value
);
7866 void GLApiBase::glUniformMatrix3fvFn(GLint location
,
7868 GLboolean transpose
,
7869 const GLfloat
* value
) {
7870 driver_
->fn
.glUniformMatrix3fvFn(location
, count
, transpose
, value
);
7873 void GLApiBase::glUniformMatrix3x2fvFn(GLint location
,
7875 GLboolean transpose
,
7876 const GLfloat
* value
) {
7877 driver_
->fn
.glUniformMatrix3x2fvFn(location
, count
, transpose
, value
);
7880 void GLApiBase::glUniformMatrix3x4fvFn(GLint location
,
7882 GLboolean transpose
,
7883 const GLfloat
* value
) {
7884 driver_
->fn
.glUniformMatrix3x4fvFn(location
, count
, transpose
, value
);
7887 void GLApiBase::glUniformMatrix4fvFn(GLint location
,
7889 GLboolean transpose
,
7890 const GLfloat
* value
) {
7891 driver_
->fn
.glUniformMatrix4fvFn(location
, count
, transpose
, value
);
7894 void GLApiBase::glUniformMatrix4x2fvFn(GLint location
,
7896 GLboolean transpose
,
7897 const GLfloat
* value
) {
7898 driver_
->fn
.glUniformMatrix4x2fvFn(location
, count
, transpose
, value
);
7901 void GLApiBase::glUniformMatrix4x3fvFn(GLint location
,
7903 GLboolean transpose
,
7904 const GLfloat
* value
) {
7905 driver_
->fn
.glUniformMatrix4x3fvFn(location
, count
, transpose
, value
);
7908 GLboolean
GLApiBase::glUnmapBufferFn(GLenum target
) {
7909 return driver_
->fn
.glUnmapBufferFn(target
);
7912 void GLApiBase::glUseProgramFn(GLuint program
) {
7913 driver_
->fn
.glUseProgramFn(program
);
7916 void GLApiBase::glValidateProgramFn(GLuint program
) {
7917 driver_
->fn
.glValidateProgramFn(program
);
7920 void GLApiBase::glVertexAttrib1fFn(GLuint indx
, GLfloat x
) {
7921 driver_
->fn
.glVertexAttrib1fFn(indx
, x
);
7924 void GLApiBase::glVertexAttrib1fvFn(GLuint indx
, const GLfloat
* values
) {
7925 driver_
->fn
.glVertexAttrib1fvFn(indx
, values
);
7928 void GLApiBase::glVertexAttrib2fFn(GLuint indx
, GLfloat x
, GLfloat y
) {
7929 driver_
->fn
.glVertexAttrib2fFn(indx
, x
, y
);
7932 void GLApiBase::glVertexAttrib2fvFn(GLuint indx
, const GLfloat
* values
) {
7933 driver_
->fn
.glVertexAttrib2fvFn(indx
, values
);
7936 void GLApiBase::glVertexAttrib3fFn(GLuint indx
,
7940 driver_
->fn
.glVertexAttrib3fFn(indx
, x
, y
, z
);
7943 void GLApiBase::glVertexAttrib3fvFn(GLuint indx
, const GLfloat
* values
) {
7944 driver_
->fn
.glVertexAttrib3fvFn(indx
, values
);
7947 void GLApiBase::glVertexAttrib4fFn(GLuint indx
,
7952 driver_
->fn
.glVertexAttrib4fFn(indx
, x
, y
, z
, w
);
7955 void GLApiBase::glVertexAttrib4fvFn(GLuint indx
, const GLfloat
* values
) {
7956 driver_
->fn
.glVertexAttrib4fvFn(indx
, values
);
7959 void GLApiBase::glVertexAttribDivisorANGLEFn(GLuint index
, GLuint divisor
) {
7960 driver_
->fn
.glVertexAttribDivisorANGLEFn(index
, divisor
);
7963 void GLApiBase::glVertexAttribI4iFn(GLuint indx
,
7968 driver_
->fn
.glVertexAttribI4iFn(indx
, x
, y
, z
, w
);
7971 void GLApiBase::glVertexAttribI4ivFn(GLuint indx
, const GLint
* values
) {
7972 driver_
->fn
.glVertexAttribI4ivFn(indx
, values
);
7975 void GLApiBase::glVertexAttribI4uiFn(GLuint indx
,
7980 driver_
->fn
.glVertexAttribI4uiFn(indx
, x
, y
, z
, w
);
7983 void GLApiBase::glVertexAttribI4uivFn(GLuint indx
, const GLuint
* values
) {
7984 driver_
->fn
.glVertexAttribI4uivFn(indx
, values
);
7987 void GLApiBase::glVertexAttribIPointerFn(GLuint indx
,
7992 driver_
->fn
.glVertexAttribIPointerFn(indx
, size
, type
, stride
, ptr
);
7995 void GLApiBase::glVertexAttribPointerFn(GLuint indx
,
7998 GLboolean normalized
,
8001 driver_
->fn
.glVertexAttribPointerFn(indx
, size
, type
, normalized
, stride
,
8005 void GLApiBase::glViewportFn(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
8006 driver_
->fn
.glViewportFn(x
, y
, width
, height
);
8009 GLenum
GLApiBase::glWaitSyncFn(GLsync sync
,
8012 return driver_
->fn
.glWaitSyncFn(sync
, flags
, timeout
);
8015 void TraceGLApi::glActiveTextureFn(GLenum texture
) {
8016 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glActiveTexture")
8017 gl_api_
->glActiveTextureFn(texture
);
8020 void TraceGLApi::glApplyFramebufferAttachmentCMAAINTELFn(void) {
8021 TRACE_EVENT_BINARY_EFFICIENT0(
8022 "gpu", "TraceGLAPI::glApplyFramebufferAttachmentCMAAINTEL")
8023 gl_api_
->glApplyFramebufferAttachmentCMAAINTELFn();
8026 void TraceGLApi::glAttachShaderFn(GLuint program
, GLuint shader
) {
8027 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glAttachShader")
8028 gl_api_
->glAttachShaderFn(program
, shader
);
8031 void TraceGLApi::glBeginQueryFn(GLenum target
, GLuint id
) {
8032 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginQuery")
8033 gl_api_
->glBeginQueryFn(target
, id
);
8036 void TraceGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode
) {
8037 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginTransformFeedback")
8038 gl_api_
->glBeginTransformFeedbackFn(primitiveMode
);
8041 void TraceGLApi::glBindAttribLocationFn(GLuint program
,
8044 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindAttribLocation")
8045 gl_api_
->glBindAttribLocationFn(program
, index
, name
);
8048 void TraceGLApi::glBindBufferFn(GLenum target
, GLuint buffer
) {
8049 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBuffer")
8050 gl_api_
->glBindBufferFn(target
, buffer
);
8053 void TraceGLApi::glBindBufferBaseFn(GLenum target
,
8056 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferBase")
8057 gl_api_
->glBindBufferBaseFn(target
, index
, buffer
);
8060 void TraceGLApi::glBindBufferRangeFn(GLenum target
,
8065 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferRange")
8066 gl_api_
->glBindBufferRangeFn(target
, index
, buffer
, offset
, size
);
8069 void TraceGLApi::glBindFragDataLocationFn(GLuint program
,
8072 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFragDataLocation")
8073 gl_api_
->glBindFragDataLocationFn(program
, colorNumber
, name
);
8076 void TraceGLApi::glBindFragDataLocationIndexedFn(GLuint program
,
8080 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8081 "TraceGLAPI::glBindFragDataLocationIndexed")
8082 gl_api_
->glBindFragDataLocationIndexedFn(program
, colorNumber
, index
, name
);
8085 void TraceGLApi::glBindFramebufferEXTFn(GLenum target
, GLuint framebuffer
) {
8086 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFramebufferEXT")
8087 gl_api_
->glBindFramebufferEXTFn(target
, framebuffer
);
8090 void TraceGLApi::glBindRenderbufferEXTFn(GLenum target
, GLuint renderbuffer
) {
8091 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindRenderbufferEXT")
8092 gl_api_
->glBindRenderbufferEXTFn(target
, renderbuffer
);
8095 void TraceGLApi::glBindSamplerFn(GLuint unit
, GLuint sampler
) {
8096 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindSampler")
8097 gl_api_
->glBindSamplerFn(unit
, sampler
);
8100 void TraceGLApi::glBindTextureFn(GLenum target
, GLuint texture
) {
8101 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTexture")
8102 gl_api_
->glBindTextureFn(target
, texture
);
8105 void TraceGLApi::glBindTransformFeedbackFn(GLenum target
, GLuint id
) {
8106 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTransformFeedback")
8107 gl_api_
->glBindTransformFeedbackFn(target
, id
);
8110 void TraceGLApi::glBindVertexArrayOESFn(GLuint array
) {
8111 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindVertexArrayOES")
8112 gl_api_
->glBindVertexArrayOESFn(array
);
8115 void TraceGLApi::glBlendBarrierKHRFn(void) {
8116 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendBarrierKHR")
8117 gl_api_
->glBlendBarrierKHRFn();
8120 void TraceGLApi::glBlendColorFn(GLclampf red
,
8124 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendColor")
8125 gl_api_
->glBlendColorFn(red
, green
, blue
, alpha
);
8128 void TraceGLApi::glBlendEquationFn(GLenum mode
) {
8129 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquation")
8130 gl_api_
->glBlendEquationFn(mode
);
8133 void TraceGLApi::glBlendEquationSeparateFn(GLenum modeRGB
, GLenum modeAlpha
) {
8134 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquationSeparate")
8135 gl_api_
->glBlendEquationSeparateFn(modeRGB
, modeAlpha
);
8138 void TraceGLApi::glBlendFuncFn(GLenum sfactor
, GLenum dfactor
) {
8139 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFunc")
8140 gl_api_
->glBlendFuncFn(sfactor
, dfactor
);
8143 void TraceGLApi::glBlendFuncSeparateFn(GLenum srcRGB
,
8147 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFuncSeparate")
8148 gl_api_
->glBlendFuncSeparateFn(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
8151 void TraceGLApi::glBlitFramebufferFn(GLint srcX0
,
8161 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebuffer")
8162 gl_api_
->glBlitFramebufferFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
,
8163 dstY1
, mask
, filter
);
8166 void TraceGLApi::glBlitFramebufferANGLEFn(GLint srcX0
,
8176 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferANGLE")
8177 gl_api_
->glBlitFramebufferANGLEFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
8178 dstX1
, dstY1
, mask
, filter
);
8181 void TraceGLApi::glBlitFramebufferEXTFn(GLint srcX0
,
8191 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferEXT")
8192 gl_api_
->glBlitFramebufferEXTFn(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
,
8193 dstX1
, dstY1
, mask
, filter
);
8196 void TraceGLApi::glBufferDataFn(GLenum target
,
8200 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferData")
8201 gl_api_
->glBufferDataFn(target
, size
, data
, usage
);
8204 void TraceGLApi::glBufferSubDataFn(GLenum target
,
8208 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferSubData")
8209 gl_api_
->glBufferSubDataFn(target
, offset
, size
, data
);
8212 GLenum
TraceGLApi::glCheckFramebufferStatusEXTFn(GLenum target
) {
8213 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8214 "TraceGLAPI::glCheckFramebufferStatusEXT")
8215 return gl_api_
->glCheckFramebufferStatusEXTFn(target
);
8218 void TraceGLApi::glClearFn(GLbitfield mask
) {
8219 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClear")
8220 gl_api_
->glClearFn(mask
);
8223 void TraceGLApi::glClearBufferfiFn(GLenum buffer
,
8225 const GLfloat depth
,
8227 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfi")
8228 gl_api_
->glClearBufferfiFn(buffer
, drawbuffer
, depth
, stencil
);
8231 void TraceGLApi::glClearBufferfvFn(GLenum buffer
,
8233 const GLfloat
* value
) {
8234 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfv")
8235 gl_api_
->glClearBufferfvFn(buffer
, drawbuffer
, value
);
8238 void TraceGLApi::glClearBufferivFn(GLenum buffer
,
8240 const GLint
* value
) {
8241 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferiv")
8242 gl_api_
->glClearBufferivFn(buffer
, drawbuffer
, value
);
8245 void TraceGLApi::glClearBufferuivFn(GLenum buffer
,
8247 const GLuint
* value
) {
8248 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferuiv")
8249 gl_api_
->glClearBufferuivFn(buffer
, drawbuffer
, value
);
8252 void TraceGLApi::glClearColorFn(GLclampf red
,
8256 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearColor")
8257 gl_api_
->glClearColorFn(red
, green
, blue
, alpha
);
8260 void TraceGLApi::glClearDepthFn(GLclampd depth
) {
8261 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepth")
8262 gl_api_
->glClearDepthFn(depth
);
8265 void TraceGLApi::glClearDepthfFn(GLclampf depth
) {
8266 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepthf")
8267 gl_api_
->glClearDepthfFn(depth
);
8270 void TraceGLApi::glClearStencilFn(GLint s
) {
8271 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearStencil")
8272 gl_api_
->glClearStencilFn(s
);
8275 GLenum
TraceGLApi::glClientWaitSyncFn(GLsync sync
,
8278 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClientWaitSync")
8279 return gl_api_
->glClientWaitSyncFn(sync
, flags
, timeout
);
8282 void TraceGLApi::glColorMaskFn(GLboolean red
,
8286 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glColorMask")
8287 gl_api_
->glColorMaskFn(red
, green
, blue
, alpha
);
8290 void TraceGLApi::glCompileShaderFn(GLuint shader
) {
8291 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompileShader")
8292 gl_api_
->glCompileShaderFn(shader
);
8295 void TraceGLApi::glCompressedTexImage2DFn(GLenum target
,
8297 GLenum internalformat
,
8303 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage2D")
8304 gl_api_
->glCompressedTexImage2DFn(target
, level
, internalformat
, width
,
8305 height
, border
, imageSize
, data
);
8308 void TraceGLApi::glCompressedTexImage3DFn(GLenum target
,
8310 GLenum internalformat
,
8317 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage3D")
8318 gl_api_
->glCompressedTexImage3DFn(target
, level
, internalformat
, width
,
8319 height
, depth
, border
, imageSize
, data
);
8322 void TraceGLApi::glCompressedTexSubImage2DFn(GLenum target
,
8331 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage2D")
8332 gl_api_
->glCompressedTexSubImage2DFn(target
, level
, xoffset
, yoffset
, width
,
8333 height
, format
, imageSize
, data
);
8336 void TraceGLApi::glCompressedTexSubImage3DFn(GLenum target
,
8347 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage3D")
8348 gl_api_
->glCompressedTexSubImage3DFn(target
, level
, xoffset
, yoffset
, zoffset
,
8349 width
, height
, depth
, format
, imageSize
,
8353 void TraceGLApi::glCopyBufferSubDataFn(GLenum readTarget
,
8355 GLintptr readOffset
,
8356 GLintptr writeOffset
,
8358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyBufferSubData")
8359 gl_api_
->glCopyBufferSubDataFn(readTarget
, writeTarget
, readOffset
,
8363 void TraceGLApi::glCopyTexImage2DFn(GLenum target
,
8365 GLenum internalformat
,
8371 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexImage2D")
8372 gl_api_
->glCopyTexImage2DFn(target
, level
, internalformat
, x
, y
, width
,
8376 void TraceGLApi::glCopyTexSubImage2DFn(GLenum target
,
8384 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage2D")
8385 gl_api_
->glCopyTexSubImage2DFn(target
, level
, xoffset
, yoffset
, x
, y
, width
,
8389 void TraceGLApi::glCopyTexSubImage3DFn(GLenum target
,
8398 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D")
8399 gl_api_
->glCopyTexSubImage3DFn(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
,
8403 void TraceGLApi::glCoverFillPathNVFn(GLuint path
, GLenum coverMode
) {
8404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverFillPathNV")
8405 gl_api_
->glCoverFillPathNVFn(path
, coverMode
);
8408 void TraceGLApi::glCoverStrokePathNVFn(GLuint name
, GLenum coverMode
) {
8409 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverStrokePathNV")
8410 gl_api_
->glCoverStrokePathNVFn(name
, coverMode
);
8413 GLuint
TraceGLApi::glCreateProgramFn(void) {
8414 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateProgram")
8415 return gl_api_
->glCreateProgramFn();
8418 GLuint
TraceGLApi::glCreateShaderFn(GLenum type
) {
8419 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateShader")
8420 return gl_api_
->glCreateShaderFn(type
);
8423 void TraceGLApi::glCullFaceFn(GLenum mode
) {
8424 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCullFace")
8425 gl_api_
->glCullFaceFn(mode
);
8428 void TraceGLApi::glDeleteBuffersARBFn(GLsizei n
, const GLuint
* buffers
) {
8429 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteBuffersARB")
8430 gl_api_
->glDeleteBuffersARBFn(n
, buffers
);
8433 void TraceGLApi::glDeleteFencesAPPLEFn(GLsizei n
, const GLuint
* fences
) {
8434 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesAPPLE")
8435 gl_api_
->glDeleteFencesAPPLEFn(n
, fences
);
8438 void TraceGLApi::glDeleteFencesNVFn(GLsizei n
, const GLuint
* fences
) {
8439 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesNV")
8440 gl_api_
->glDeleteFencesNVFn(n
, fences
);
8443 void TraceGLApi::glDeleteFramebuffersEXTFn(GLsizei n
,
8444 const GLuint
* framebuffers
) {
8445 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFramebuffersEXT")
8446 gl_api_
->glDeleteFramebuffersEXTFn(n
, framebuffers
);
8449 void TraceGLApi::glDeletePathsNVFn(GLuint path
, GLsizei range
) {
8450 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeletePathsNV")
8451 gl_api_
->glDeletePathsNVFn(path
, range
);
8454 void TraceGLApi::glDeleteProgramFn(GLuint program
) {
8455 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteProgram")
8456 gl_api_
->glDeleteProgramFn(program
);
8459 void TraceGLApi::glDeleteQueriesFn(GLsizei n
, const GLuint
* ids
) {
8460 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteQueries")
8461 gl_api_
->glDeleteQueriesFn(n
, ids
);
8464 void TraceGLApi::glDeleteRenderbuffersEXTFn(GLsizei n
,
8465 const GLuint
* renderbuffers
) {
8466 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteRenderbuffersEXT")
8467 gl_api_
->glDeleteRenderbuffersEXTFn(n
, renderbuffers
);
8470 void TraceGLApi::glDeleteSamplersFn(GLsizei n
, const GLuint
* samplers
) {
8471 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSamplers")
8472 gl_api_
->glDeleteSamplersFn(n
, samplers
);
8475 void TraceGLApi::glDeleteShaderFn(GLuint shader
) {
8476 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteShader")
8477 gl_api_
->glDeleteShaderFn(shader
);
8480 void TraceGLApi::glDeleteSyncFn(GLsync sync
) {
8481 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSync")
8482 gl_api_
->glDeleteSyncFn(sync
);
8485 void TraceGLApi::glDeleteTexturesFn(GLsizei n
, const GLuint
* textures
) {
8486 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTextures")
8487 gl_api_
->glDeleteTexturesFn(n
, textures
);
8490 void TraceGLApi::glDeleteTransformFeedbacksFn(GLsizei n
, const GLuint
* ids
) {
8491 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTransformFeedbacks")
8492 gl_api_
->glDeleteTransformFeedbacksFn(n
, ids
);
8495 void TraceGLApi::glDeleteVertexArraysOESFn(GLsizei n
, const GLuint
* arrays
) {
8496 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteVertexArraysOES")
8497 gl_api_
->glDeleteVertexArraysOESFn(n
, arrays
);
8500 void TraceGLApi::glDepthFuncFn(GLenum func
) {
8501 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthFunc")
8502 gl_api_
->glDepthFuncFn(func
);
8505 void TraceGLApi::glDepthMaskFn(GLboolean flag
) {
8506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthMask")
8507 gl_api_
->glDepthMaskFn(flag
);
8510 void TraceGLApi::glDepthRangeFn(GLclampd zNear
, GLclampd zFar
) {
8511 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRange")
8512 gl_api_
->glDepthRangeFn(zNear
, zFar
);
8515 void TraceGLApi::glDepthRangefFn(GLclampf zNear
, GLclampf zFar
) {
8516 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRangef")
8517 gl_api_
->glDepthRangefFn(zNear
, zFar
);
8520 void TraceGLApi::glDetachShaderFn(GLuint program
, GLuint shader
) {
8521 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDetachShader")
8522 gl_api_
->glDetachShaderFn(program
, shader
);
8525 void TraceGLApi::glDisableFn(GLenum cap
) {
8526 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisable")
8527 gl_api_
->glDisableFn(cap
);
8530 void TraceGLApi::glDisableVertexAttribArrayFn(GLuint index
) {
8531 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisableVertexAttribArray")
8532 gl_api_
->glDisableVertexAttribArrayFn(index
);
8535 void TraceGLApi::glDiscardFramebufferEXTFn(GLenum target
,
8536 GLsizei numAttachments
,
8537 const GLenum
* attachments
) {
8538 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDiscardFramebufferEXT")
8539 gl_api_
->glDiscardFramebufferEXTFn(target
, numAttachments
, attachments
);
8542 void TraceGLApi::glDrawArraysFn(GLenum mode
, GLint first
, GLsizei count
) {
8543 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArrays")
8544 gl_api_
->glDrawArraysFn(mode
, first
, count
);
8547 void TraceGLApi::glDrawArraysInstancedANGLEFn(GLenum mode
,
8550 GLsizei primcount
) {
8551 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArraysInstancedANGLE")
8552 gl_api_
->glDrawArraysInstancedANGLEFn(mode
, first
, count
, primcount
);
8555 void TraceGLApi::glDrawBufferFn(GLenum mode
) {
8556 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffer")
8557 gl_api_
->glDrawBufferFn(mode
);
8560 void TraceGLApi::glDrawBuffersARBFn(GLsizei n
, const GLenum
* bufs
) {
8561 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffersARB")
8562 gl_api_
->glDrawBuffersARBFn(n
, bufs
);
8565 void TraceGLApi::glDrawElementsFn(GLenum mode
,
8568 const void* indices
) {
8569 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawElements")
8570 gl_api_
->glDrawElementsFn(mode
, count
, type
, indices
);
8573 void TraceGLApi::glDrawElementsInstancedANGLEFn(GLenum mode
,
8576 const void* indices
,
8577 GLsizei primcount
) {
8578 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8579 "TraceGLAPI::glDrawElementsInstancedANGLE")
8580 gl_api_
->glDrawElementsInstancedANGLEFn(mode
, count
, type
, indices
,
8584 void TraceGLApi::glDrawRangeElementsFn(GLenum mode
,
8589 const void* indices
) {
8590 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawRangeElements")
8591 gl_api_
->glDrawRangeElementsFn(mode
, start
, end
, count
, type
, indices
);
8594 void TraceGLApi::glEGLImageTargetRenderbufferStorageOESFn(GLenum target
,
8595 GLeglImageOES image
) {
8596 TRACE_EVENT_BINARY_EFFICIENT0(
8597 "gpu", "TraceGLAPI::glEGLImageTargetRenderbufferStorageOES")
8598 gl_api_
->glEGLImageTargetRenderbufferStorageOESFn(target
, image
);
8601 void TraceGLApi::glEGLImageTargetTexture2DOESFn(GLenum target
,
8602 GLeglImageOES image
) {
8603 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8604 "TraceGLAPI::glEGLImageTargetTexture2DOES")
8605 gl_api_
->glEGLImageTargetTexture2DOESFn(target
, image
);
8608 void TraceGLApi::glEnableFn(GLenum cap
) {
8609 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnable")
8610 gl_api_
->glEnableFn(cap
);
8613 void TraceGLApi::glEnableVertexAttribArrayFn(GLuint index
) {
8614 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnableVertexAttribArray")
8615 gl_api_
->glEnableVertexAttribArrayFn(index
);
8618 void TraceGLApi::glEndQueryFn(GLenum target
) {
8619 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndQuery")
8620 gl_api_
->glEndQueryFn(target
);
8623 void TraceGLApi::glEndTransformFeedbackFn(void) {
8624 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndTransformFeedback")
8625 gl_api_
->glEndTransformFeedbackFn();
8628 GLsync
TraceGLApi::glFenceSyncFn(GLenum condition
, GLbitfield flags
) {
8629 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFenceSync")
8630 return gl_api_
->glFenceSyncFn(condition
, flags
);
8633 void TraceGLApi::glFinishFn(void) {
8634 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinish")
8635 gl_api_
->glFinishFn();
8638 void TraceGLApi::glFinishFenceAPPLEFn(GLuint fence
) {
8639 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceAPPLE")
8640 gl_api_
->glFinishFenceAPPLEFn(fence
);
8643 void TraceGLApi::glFinishFenceNVFn(GLuint fence
) {
8644 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceNV")
8645 gl_api_
->glFinishFenceNVFn(fence
);
8648 void TraceGLApi::glFlushFn(void) {
8649 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlush")
8650 gl_api_
->glFlushFn();
8653 void TraceGLApi::glFlushMappedBufferRangeFn(GLenum target
,
8655 GLsizeiptr length
) {
8656 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlushMappedBufferRange")
8657 gl_api_
->glFlushMappedBufferRangeFn(target
, offset
, length
);
8660 void TraceGLApi::glFramebufferRenderbufferEXTFn(GLenum target
,
8662 GLenum renderbuffertarget
,
8663 GLuint renderbuffer
) {
8664 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8665 "TraceGLAPI::glFramebufferRenderbufferEXT")
8666 gl_api_
->glFramebufferRenderbufferEXTFn(target
, attachment
,
8667 renderbuffertarget
, renderbuffer
);
8670 void TraceGLApi::glFramebufferTexture2DEXTFn(GLenum target
,
8675 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTexture2DEXT")
8676 gl_api_
->glFramebufferTexture2DEXTFn(target
, attachment
, textarget
, texture
,
8680 void TraceGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target
,
8686 TRACE_EVENT_BINARY_EFFICIENT0(
8687 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleEXT")
8688 gl_api_
->glFramebufferTexture2DMultisampleEXTFn(target
, attachment
, textarget
,
8689 texture
, level
, samples
);
8692 void TraceGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target
,
8698 TRACE_EVENT_BINARY_EFFICIENT0(
8699 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleIMG")
8700 gl_api_
->glFramebufferTexture2DMultisampleIMGFn(target
, attachment
, textarget
,
8701 texture
, level
, samples
);
8704 void TraceGLApi::glFramebufferTextureLayerFn(GLenum target
,
8709 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTextureLayer")
8710 gl_api_
->glFramebufferTextureLayerFn(target
, attachment
, texture
, level
,
8714 void TraceGLApi::glFrontFaceFn(GLenum mode
) {
8715 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFrontFace")
8716 gl_api_
->glFrontFaceFn(mode
);
8719 void TraceGLApi::glGenBuffersARBFn(GLsizei n
, GLuint
* buffers
) {
8720 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenBuffersARB")
8721 gl_api_
->glGenBuffersARBFn(n
, buffers
);
8724 void TraceGLApi::glGenerateMipmapEXTFn(GLenum target
) {
8725 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenerateMipmapEXT")
8726 gl_api_
->glGenerateMipmapEXTFn(target
);
8729 void TraceGLApi::glGenFencesAPPLEFn(GLsizei n
, GLuint
* fences
) {
8730 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesAPPLE")
8731 gl_api_
->glGenFencesAPPLEFn(n
, fences
);
8734 void TraceGLApi::glGenFencesNVFn(GLsizei n
, GLuint
* fences
) {
8735 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesNV")
8736 gl_api_
->glGenFencesNVFn(n
, fences
);
8739 void TraceGLApi::glGenFramebuffersEXTFn(GLsizei n
, GLuint
* framebuffers
) {
8740 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFramebuffersEXT")
8741 gl_api_
->glGenFramebuffersEXTFn(n
, framebuffers
);
8744 GLuint
TraceGLApi::glGenPathsNVFn(GLsizei range
) {
8745 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenPathsNV")
8746 return gl_api_
->glGenPathsNVFn(range
);
8749 void TraceGLApi::glGenQueriesFn(GLsizei n
, GLuint
* ids
) {
8750 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenQueries")
8751 gl_api_
->glGenQueriesFn(n
, ids
);
8754 void TraceGLApi::glGenRenderbuffersEXTFn(GLsizei n
, GLuint
* renderbuffers
) {
8755 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenRenderbuffersEXT")
8756 gl_api_
->glGenRenderbuffersEXTFn(n
, renderbuffers
);
8759 void TraceGLApi::glGenSamplersFn(GLsizei n
, GLuint
* samplers
) {
8760 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenSamplers")
8761 gl_api_
->glGenSamplersFn(n
, samplers
);
8764 void TraceGLApi::glGenTexturesFn(GLsizei n
, GLuint
* textures
) {
8765 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTextures")
8766 gl_api_
->glGenTexturesFn(n
, textures
);
8769 void TraceGLApi::glGenTransformFeedbacksFn(GLsizei n
, GLuint
* ids
) {
8770 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTransformFeedbacks")
8771 gl_api_
->glGenTransformFeedbacksFn(n
, ids
);
8774 void TraceGLApi::glGenVertexArraysOESFn(GLsizei n
, GLuint
* arrays
) {
8775 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenVertexArraysOES")
8776 gl_api_
->glGenVertexArraysOESFn(n
, arrays
);
8779 void TraceGLApi::glGetActiveAttribFn(GLuint program
,
8786 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveAttrib")
8787 gl_api_
->glGetActiveAttribFn(program
, index
, bufsize
, length
, size
, type
,
8791 void TraceGLApi::glGetActiveUniformFn(GLuint program
,
8798 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniform")
8799 gl_api_
->glGetActiveUniformFn(program
, index
, bufsize
, length
, size
, type
,
8803 void TraceGLApi::glGetActiveUniformBlockivFn(GLuint program
,
8804 GLuint uniformBlockIndex
,
8807 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformBlockiv")
8808 gl_api_
->glGetActiveUniformBlockivFn(program
, uniformBlockIndex
, pname
,
8812 void TraceGLApi::glGetActiveUniformBlockNameFn(GLuint program
,
8813 GLuint uniformBlockIndex
,
8816 char* uniformBlockName
) {
8817 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8818 "TraceGLAPI::glGetActiveUniformBlockName")
8819 gl_api_
->glGetActiveUniformBlockNameFn(program
, uniformBlockIndex
, bufSize
,
8820 length
, uniformBlockName
);
8823 void TraceGLApi::glGetActiveUniformsivFn(GLuint program
,
8824 GLsizei uniformCount
,
8825 const GLuint
* uniformIndices
,
8828 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformsiv")
8829 gl_api_
->glGetActiveUniformsivFn(program
, uniformCount
, uniformIndices
, pname
,
8833 void TraceGLApi::glGetAttachedShadersFn(GLuint program
,
8837 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttachedShaders")
8838 gl_api_
->glGetAttachedShadersFn(program
, maxcount
, count
, shaders
);
8841 GLint
TraceGLApi::glGetAttribLocationFn(GLuint program
, const char* name
) {
8842 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttribLocation")
8843 return gl_api_
->glGetAttribLocationFn(program
, name
);
8846 void TraceGLApi::glGetBooleanvFn(GLenum pname
, GLboolean
* params
) {
8847 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBooleanv")
8848 gl_api_
->glGetBooleanvFn(pname
, params
);
8851 void TraceGLApi::glGetBufferParameterivFn(GLenum target
,
8854 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBufferParameteriv")
8855 gl_api_
->glGetBufferParameterivFn(target
, pname
, params
);
8858 GLenum
TraceGLApi::glGetErrorFn(void) {
8859 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetError")
8860 return gl_api_
->glGetErrorFn();
8863 void TraceGLApi::glGetFenceivNVFn(GLuint fence
, GLenum pname
, GLint
* params
) {
8864 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV")
8865 gl_api_
->glGetFenceivNVFn(fence
, pname
, params
);
8868 void TraceGLApi::glGetFloatvFn(GLenum pname
, GLfloat
* params
) {
8869 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv")
8870 gl_api_
->glGetFloatvFn(pname
, params
);
8873 GLint
TraceGLApi::glGetFragDataLocationFn(GLuint program
, const char* name
) {
8874 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation")
8875 return gl_api_
->glGetFragDataLocationFn(program
, name
);
8878 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target
,
8882 TRACE_EVENT_BINARY_EFFICIENT0(
8883 "gpu", "TraceGLAPI::glGetFramebufferAttachmentParameterivEXT")
8884 gl_api_
->glGetFramebufferAttachmentParameterivEXTFn(target
, attachment
, pname
,
8888 GLenum
TraceGLApi::glGetGraphicsResetStatusARBFn(void) {
8889 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8890 "TraceGLAPI::glGetGraphicsResetStatusARB")
8891 return gl_api_
->glGetGraphicsResetStatusARBFn();
8894 void TraceGLApi::glGetInteger64i_vFn(GLenum target
,
8897 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64i_v")
8898 gl_api_
->glGetInteger64i_vFn(target
, index
, data
);
8901 void TraceGLApi::glGetInteger64vFn(GLenum pname
, GLint64
* params
) {
8902 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64v")
8903 gl_api_
->glGetInteger64vFn(pname
, params
);
8906 void TraceGLApi::glGetIntegeri_vFn(GLenum target
, GLuint index
, GLint
* data
) {
8907 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegeri_v")
8908 gl_api_
->glGetIntegeri_vFn(target
, index
, data
);
8911 void TraceGLApi::glGetIntegervFn(GLenum pname
, GLint
* params
) {
8912 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegerv")
8913 gl_api_
->glGetIntegervFn(pname
, params
);
8916 void TraceGLApi::glGetInternalformativFn(GLenum target
,
8917 GLenum internalformat
,
8921 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInternalformativ")
8922 gl_api_
->glGetInternalformativFn(target
, internalformat
, pname
, bufSize
,
8926 void TraceGLApi::glGetProgramBinaryFn(GLuint program
,
8929 GLenum
* binaryFormat
,
8931 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramBinary")
8932 gl_api_
->glGetProgramBinaryFn(program
, bufSize
, length
, binaryFormat
, binary
);
8935 void TraceGLApi::glGetProgramInfoLogFn(GLuint program
,
8939 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramInfoLog")
8940 gl_api_
->glGetProgramInfoLogFn(program
, bufsize
, length
, infolog
);
8943 void TraceGLApi::glGetProgramivFn(GLuint program
, GLenum pname
, GLint
* params
) {
8944 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramiv")
8945 gl_api_
->glGetProgramivFn(program
, pname
, params
);
8948 GLint
TraceGLApi::glGetProgramResourceLocationFn(GLuint program
,
8949 GLenum programInterface
,
8951 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8952 "TraceGLAPI::glGetProgramResourceLocation")
8953 return gl_api_
->glGetProgramResourceLocationFn(program
, programInterface
,
8957 void TraceGLApi::glGetQueryivFn(GLenum target
, GLenum pname
, GLint
* params
) {
8958 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryiv")
8959 gl_api_
->glGetQueryivFn(target
, pname
, params
);
8962 void TraceGLApi::glGetQueryObjecti64vFn(GLuint id
,
8965 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjecti64v")
8966 gl_api_
->glGetQueryObjecti64vFn(id
, pname
, params
);
8969 void TraceGLApi::glGetQueryObjectivFn(GLuint id
, GLenum pname
, GLint
* params
) {
8970 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectiv")
8971 gl_api_
->glGetQueryObjectivFn(id
, pname
, params
);
8974 void TraceGLApi::glGetQueryObjectui64vFn(GLuint id
,
8977 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectui64v")
8978 gl_api_
->glGetQueryObjectui64vFn(id
, pname
, params
);
8981 void TraceGLApi::glGetQueryObjectuivFn(GLuint id
,
8984 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectuiv")
8985 gl_api_
->glGetQueryObjectuivFn(id
, pname
, params
);
8988 void TraceGLApi::glGetRenderbufferParameterivEXTFn(GLenum target
,
8991 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8992 "TraceGLAPI::glGetRenderbufferParameterivEXT")
8993 gl_api_
->glGetRenderbufferParameterivEXTFn(target
, pname
, params
);
8996 void TraceGLApi::glGetSamplerParameterfvFn(GLuint sampler
,
8999 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameterfv")
9000 gl_api_
->glGetSamplerParameterfvFn(sampler
, pname
, params
);
9003 void TraceGLApi::glGetSamplerParameterivFn(GLuint sampler
,
9006 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameteriv")
9007 gl_api_
->glGetSamplerParameterivFn(sampler
, pname
, params
);
9010 void TraceGLApi::glGetShaderInfoLogFn(GLuint shader
,
9014 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderInfoLog")
9015 gl_api_
->glGetShaderInfoLogFn(shader
, bufsize
, length
, infolog
);
9018 void TraceGLApi::glGetShaderivFn(GLuint shader
, GLenum pname
, GLint
* params
) {
9019 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderiv")
9020 gl_api_
->glGetShaderivFn(shader
, pname
, params
);
9023 void TraceGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype
,
9024 GLenum precisiontype
,
9027 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderPrecisionFormat")
9028 gl_api_
->glGetShaderPrecisionFormatFn(shadertype
, precisiontype
, range
,
9032 void TraceGLApi::glGetShaderSourceFn(GLuint shader
,
9036 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource")
9037 gl_api_
->glGetShaderSourceFn(shader
, bufsize
, length
, source
);
9040 const GLubyte
* TraceGLApi::glGetStringFn(GLenum name
) {
9041 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString")
9042 return gl_api_
->glGetStringFn(name
);
9045 const GLubyte
* TraceGLApi::glGetStringiFn(GLenum name
, GLuint index
) {
9046 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetStringi")
9047 return gl_api_
->glGetStringiFn(name
, index
);
9050 void TraceGLApi::glGetSyncivFn(GLsync sync
,
9055 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv")
9056 gl_api_
->glGetSyncivFn(sync
, pname
, bufSize
, length
, values
);
9059 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target
,
9063 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameterfv")
9064 gl_api_
->glGetTexLevelParameterfvFn(target
, level
, pname
, params
);
9067 void TraceGLApi::glGetTexLevelParameterivFn(GLenum target
,
9071 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameteriv")
9072 gl_api_
->glGetTexLevelParameterivFn(target
, level
, pname
, params
);
9075 void TraceGLApi::glGetTexParameterfvFn(GLenum target
,
9078 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameterfv")
9079 gl_api_
->glGetTexParameterfvFn(target
, pname
, params
);
9082 void TraceGLApi::glGetTexParameterivFn(GLenum target
,
9085 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameteriv")
9086 gl_api_
->glGetTexParameterivFn(target
, pname
, params
);
9089 void TraceGLApi::glGetTransformFeedbackVaryingFn(GLuint program
,
9096 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9097 "TraceGLAPI::glGetTransformFeedbackVarying")
9098 gl_api_
->glGetTransformFeedbackVaryingFn(program
, index
, bufSize
, length
,
9102 void TraceGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader
,
9106 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9107 "TraceGLAPI::glGetTranslatedShaderSourceANGLE")
9108 gl_api_
->glGetTranslatedShaderSourceANGLEFn(shader
, bufsize
, length
, source
);
9111 GLuint
TraceGLApi::glGetUniformBlockIndexFn(GLuint program
,
9112 const char* uniformBlockName
) {
9113 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformBlockIndex")
9114 return gl_api_
->glGetUniformBlockIndexFn(program
, uniformBlockName
);
9117 void TraceGLApi::glGetUniformfvFn(GLuint program
,
9120 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformfv")
9121 gl_api_
->glGetUniformfvFn(program
, location
, params
);
9124 void TraceGLApi::glGetUniformIndicesFn(GLuint program
,
9125 GLsizei uniformCount
,
9126 const char* const* uniformNames
,
9127 GLuint
* uniformIndices
) {
9128 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformIndices")
9129 gl_api_
->glGetUniformIndicesFn(program
, uniformCount
, uniformNames
,
9133 void TraceGLApi::glGetUniformivFn(GLuint program
,
9136 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformiv")
9137 gl_api_
->glGetUniformivFn(program
, location
, params
);
9140 GLint
TraceGLApi::glGetUniformLocationFn(GLuint program
, const char* name
) {
9141 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformLocation")
9142 return gl_api_
->glGetUniformLocationFn(program
, name
);
9145 void TraceGLApi::glGetUniformuivFn(GLuint program
,
9148 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformuiv")
9149 gl_api_
->glGetUniformuivFn(program
, location
, params
);
9152 void TraceGLApi::glGetVertexAttribfvFn(GLuint index
,
9155 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribfv")
9156 gl_api_
->glGetVertexAttribfvFn(index
, pname
, params
);
9159 void TraceGLApi::glGetVertexAttribivFn(GLuint index
,
9162 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribiv")
9163 gl_api_
->glGetVertexAttribivFn(index
, pname
, params
);
9166 void TraceGLApi::glGetVertexAttribPointervFn(GLuint index
,
9169 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribPointerv")
9170 gl_api_
->glGetVertexAttribPointervFn(index
, pname
, pointer
);
9173 void TraceGLApi::glHintFn(GLenum target
, GLenum mode
) {
9174 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glHint")
9175 gl_api_
->glHintFn(target
, mode
);
9178 void TraceGLApi::glInsertEventMarkerEXTFn(GLsizei length
, const char* marker
) {
9179 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInsertEventMarkerEXT")
9180 gl_api_
->glInsertEventMarkerEXTFn(length
, marker
);
9183 void TraceGLApi::glInvalidateFramebufferFn(GLenum target
,
9184 GLsizei numAttachments
,
9185 const GLenum
* attachments
) {
9186 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateFramebuffer")
9187 gl_api_
->glInvalidateFramebufferFn(target
, numAttachments
, attachments
);
9190 void TraceGLApi::glInvalidateSubFramebufferFn(GLenum target
,
9191 GLsizei numAttachments
,
9192 const GLenum
* attachments
,
9197 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateSubFramebuffer")
9198 gl_api_
->glInvalidateSubFramebufferFn(target
, numAttachments
, attachments
, x
,
9202 GLboolean
TraceGLApi::glIsBufferFn(GLuint buffer
) {
9203 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsBuffer")
9204 return gl_api_
->glIsBufferFn(buffer
);
9207 GLboolean
TraceGLApi::glIsEnabledFn(GLenum cap
) {
9208 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsEnabled")
9209 return gl_api_
->glIsEnabledFn(cap
);
9212 GLboolean
TraceGLApi::glIsFenceAPPLEFn(GLuint fence
) {
9213 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceAPPLE")
9214 return gl_api_
->glIsFenceAPPLEFn(fence
);
9217 GLboolean
TraceGLApi::glIsFenceNVFn(GLuint fence
) {
9218 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceNV")
9219 return gl_api_
->glIsFenceNVFn(fence
);
9222 GLboolean
TraceGLApi::glIsFramebufferEXTFn(GLuint framebuffer
) {
9223 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFramebufferEXT")
9224 return gl_api_
->glIsFramebufferEXTFn(framebuffer
);
9227 GLboolean
TraceGLApi::glIsPathNVFn(GLuint path
) {
9228 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsPathNV")
9229 return gl_api_
->glIsPathNVFn(path
);
9232 GLboolean
TraceGLApi::glIsProgramFn(GLuint program
) {
9233 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsProgram")
9234 return gl_api_
->glIsProgramFn(program
);
9237 GLboolean
TraceGLApi::glIsQueryFn(GLuint query
) {
9238 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsQuery")
9239 return gl_api_
->glIsQueryFn(query
);
9242 GLboolean
TraceGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer
) {
9243 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsRenderbufferEXT")
9244 return gl_api_
->glIsRenderbufferEXTFn(renderbuffer
);
9247 GLboolean
TraceGLApi::glIsSamplerFn(GLuint sampler
) {
9248 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSampler")
9249 return gl_api_
->glIsSamplerFn(sampler
);
9252 GLboolean
TraceGLApi::glIsShaderFn(GLuint shader
) {
9253 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsShader")
9254 return gl_api_
->glIsShaderFn(shader
);
9257 GLboolean
TraceGLApi::glIsSyncFn(GLsync sync
) {
9258 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSync")
9259 return gl_api_
->glIsSyncFn(sync
);
9262 GLboolean
TraceGLApi::glIsTextureFn(GLuint texture
) {
9263 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTexture")
9264 return gl_api_
->glIsTextureFn(texture
);
9267 GLboolean
TraceGLApi::glIsTransformFeedbackFn(GLuint id
) {
9268 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTransformFeedback")
9269 return gl_api_
->glIsTransformFeedbackFn(id
);
9272 GLboolean
TraceGLApi::glIsVertexArrayOESFn(GLuint array
) {
9273 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsVertexArrayOES")
9274 return gl_api_
->glIsVertexArrayOESFn(array
);
9277 void TraceGLApi::glLineWidthFn(GLfloat width
) {
9278 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLineWidth")
9279 gl_api_
->glLineWidthFn(width
);
9282 void TraceGLApi::glLinkProgramFn(GLuint program
) {
9283 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLinkProgram")
9284 gl_api_
->glLinkProgramFn(program
);
9287 void* TraceGLApi::glMapBufferFn(GLenum target
, GLenum access
) {
9288 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBuffer")
9289 return gl_api_
->glMapBufferFn(target
, access
);
9292 void* TraceGLApi::glMapBufferRangeFn(GLenum target
,
9295 GLbitfield access
) {
9296 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBufferRange")
9297 return gl_api_
->glMapBufferRangeFn(target
, offset
, length
, access
);
9300 void TraceGLApi::glMatrixLoadfEXTFn(GLenum matrixMode
, const GLfloat
* m
) {
9301 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadfEXT")
9302 gl_api_
->glMatrixLoadfEXTFn(matrixMode
, m
);
9305 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode
) {
9306 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT")
9307 gl_api_
->glMatrixLoadIdentityEXTFn(matrixMode
);
9310 void TraceGLApi::glPathCommandsNVFn(GLuint path
,
9311 GLsizei numCommands
,
9312 const GLubyte
* commands
,
9315 const GLvoid
* coords
) {
9316 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathCommandsNV")
9317 gl_api_
->glPathCommandsNVFn(path
, numCommands
, commands
, numCoords
, coordType
,
9321 void TraceGLApi::glPathParameterfNVFn(GLuint path
,
9324 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathParameterfNV")
9325 gl_api_
->glPathParameterfNVFn(path
, pname
, value
);
9328 void TraceGLApi::glPathParameteriNVFn(GLuint path
, GLenum pname
, GLint value
) {
9329 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathParameteriNV")
9330 gl_api_
->glPathParameteriNVFn(path
, pname
, value
);
9333 void TraceGLApi::glPathStencilFuncNVFn(GLenum func
, GLint ref
, GLuint mask
) {
9334 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathStencilFuncNV")
9335 gl_api_
->glPathStencilFuncNVFn(func
, ref
, mask
);
9338 void TraceGLApi::glPauseTransformFeedbackFn(void) {
9339 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPauseTransformFeedback")
9340 gl_api_
->glPauseTransformFeedbackFn();
9343 void TraceGLApi::glPixelStoreiFn(GLenum pname
, GLint param
) {
9344 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPixelStorei")
9345 gl_api_
->glPixelStoreiFn(pname
, param
);
9348 void TraceGLApi::glPointParameteriFn(GLenum pname
, GLint param
) {
9349 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPointParameteri")
9350 gl_api_
->glPointParameteriFn(pname
, param
);
9353 void TraceGLApi::glPolygonOffsetFn(GLfloat factor
, GLfloat units
) {
9354 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffset")
9355 gl_api_
->glPolygonOffsetFn(factor
, units
);
9358 void TraceGLApi::glPopGroupMarkerEXTFn(void) {
9359 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopGroupMarkerEXT")
9360 gl_api_
->glPopGroupMarkerEXTFn();
9363 void TraceGLApi::glProgramBinaryFn(GLuint program
,
9364 GLenum binaryFormat
,
9365 const GLvoid
* binary
,
9367 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramBinary")
9368 gl_api_
->glProgramBinaryFn(program
, binaryFormat
, binary
, length
);
9371 void TraceGLApi::glProgramParameteriFn(GLuint program
,
9374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramParameteri")
9375 gl_api_
->glProgramParameteriFn(program
, pname
, value
);
9378 void TraceGLApi::glPushGroupMarkerEXTFn(GLsizei length
, const char* marker
) {
9379 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushGroupMarkerEXT")
9380 gl_api_
->glPushGroupMarkerEXTFn(length
, marker
);
9383 void TraceGLApi::glQueryCounterFn(GLuint id
, GLenum target
) {
9384 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glQueryCounter")
9385 gl_api_
->glQueryCounterFn(id
, target
);
9388 void TraceGLApi::glReadBufferFn(GLenum src
) {
9389 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadBuffer")
9390 gl_api_
->glReadBufferFn(src
);
9393 void TraceGLApi::glReadPixelsFn(GLint x
,
9400 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixels")
9401 gl_api_
->glReadPixelsFn(x
, y
, width
, height
, format
, type
, pixels
);
9404 void TraceGLApi::glReleaseShaderCompilerFn(void) {
9405 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseShaderCompiler")
9406 gl_api_
->glReleaseShaderCompilerFn();
9409 void TraceGLApi::glRenderbufferStorageEXTFn(GLenum target
,
9410 GLenum internalformat
,
9413 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glRenderbufferStorageEXT")
9414 gl_api_
->glRenderbufferStorageEXTFn(target
, internalformat
, width
, height
);
9417 void TraceGLApi::glRenderbufferStorageMultisampleFn(GLenum target
,
9419 GLenum internalformat
,
9422 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9423 "TraceGLAPI::glRenderbufferStorageMultisample")
9424 gl_api_
->glRenderbufferStorageMultisampleFn(target
, samples
, internalformat
,
9428 void TraceGLApi::glRenderbufferStorageMultisampleANGLEFn(GLenum target
,
9430 GLenum internalformat
,
9433 TRACE_EVENT_BINARY_EFFICIENT0(
9434 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleANGLE")
9435 gl_api_
->glRenderbufferStorageMultisampleANGLEFn(
9436 target
, samples
, internalformat
, width
, height
);
9439 void TraceGLApi::glRenderbufferStorageMultisampleEXTFn(GLenum target
,
9441 GLenum internalformat
,
9444 TRACE_EVENT_BINARY_EFFICIENT0(
9445 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleEXT")
9446 gl_api_
->glRenderbufferStorageMultisampleEXTFn(target
, samples
,
9447 internalformat
, width
, height
);
9450 void TraceGLApi::glRenderbufferStorageMultisampleIMGFn(GLenum target
,
9452 GLenum internalformat
,
9455 TRACE_EVENT_BINARY_EFFICIENT0(
9456 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleIMG")
9457 gl_api_
->glRenderbufferStorageMultisampleIMGFn(target
, samples
,
9458 internalformat
, width
, height
);
9461 void TraceGLApi::glResumeTransformFeedbackFn(void) {
9462 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glResumeTransformFeedback")
9463 gl_api_
->glResumeTransformFeedbackFn();
9466 void TraceGLApi::glSampleCoverageFn(GLclampf value
, GLboolean invert
) {
9467 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSampleCoverage")
9468 gl_api_
->glSampleCoverageFn(value
, invert
);
9471 void TraceGLApi::glSamplerParameterfFn(GLuint sampler
,
9474 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterf")
9475 gl_api_
->glSamplerParameterfFn(sampler
, pname
, param
);
9478 void TraceGLApi::glSamplerParameterfvFn(GLuint sampler
,
9480 const GLfloat
* params
) {
9481 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterfv")
9482 gl_api_
->glSamplerParameterfvFn(sampler
, pname
, params
);
9485 void TraceGLApi::glSamplerParameteriFn(GLuint sampler
,
9488 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteri")
9489 gl_api_
->glSamplerParameteriFn(sampler
, pname
, param
);
9492 void TraceGLApi::glSamplerParameterivFn(GLuint sampler
,
9494 const GLint
* params
) {
9495 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteriv")
9496 gl_api_
->glSamplerParameterivFn(sampler
, pname
, params
);
9499 void TraceGLApi::glScissorFn(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
9500 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glScissor")
9501 gl_api_
->glScissorFn(x
, y
, width
, height
);
9504 void TraceGLApi::glSetFenceAPPLEFn(GLuint fence
) {
9505 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceAPPLE")
9506 gl_api_
->glSetFenceAPPLEFn(fence
);
9509 void TraceGLApi::glSetFenceNVFn(GLuint fence
, GLenum condition
) {
9510 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceNV")
9511 gl_api_
->glSetFenceNVFn(fence
, condition
);
9514 void TraceGLApi::glShaderBinaryFn(GLsizei n
,
9515 const GLuint
* shaders
,
9516 GLenum binaryformat
,
9519 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderBinary")
9520 gl_api_
->glShaderBinaryFn(n
, shaders
, binaryformat
, binary
, length
);
9523 void TraceGLApi::glShaderSourceFn(GLuint shader
,
9525 const char* const* str
,
9526 const GLint
* length
) {
9527 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderSource")
9528 gl_api_
->glShaderSourceFn(shader
, count
, str
, length
);
9531 void TraceGLApi::glStencilFillPathNVFn(GLuint path
,
9534 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFillPathNV")
9535 gl_api_
->glStencilFillPathNVFn(path
, fillMode
, mask
);
9538 void TraceGLApi::glStencilFuncFn(GLenum func
, GLint ref
, GLuint mask
) {
9539 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFunc")
9540 gl_api_
->glStencilFuncFn(func
, ref
, mask
);
9543 void TraceGLApi::glStencilFuncSeparateFn(GLenum face
,
9547 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFuncSeparate")
9548 gl_api_
->glStencilFuncSeparateFn(face
, func
, ref
, mask
);
9551 void TraceGLApi::glStencilMaskFn(GLuint mask
) {
9552 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMask")
9553 gl_api_
->glStencilMaskFn(mask
);
9556 void TraceGLApi::glStencilMaskSeparateFn(GLenum face
, GLuint mask
) {
9557 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMaskSeparate")
9558 gl_api_
->glStencilMaskSeparateFn(face
, mask
);
9561 void TraceGLApi::glStencilOpFn(GLenum fail
, GLenum zfail
, GLenum zpass
) {
9562 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOp")
9563 gl_api_
->glStencilOpFn(fail
, zfail
, zpass
);
9566 void TraceGLApi::glStencilOpSeparateFn(GLenum face
,
9570 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOpSeparate")
9571 gl_api_
->glStencilOpSeparateFn(face
, fail
, zfail
, zpass
);
9574 void TraceGLApi::glStencilStrokePathNVFn(GLuint path
,
9577 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilStrokePathNV")
9578 gl_api_
->glStencilStrokePathNVFn(path
, reference
, mask
);
9581 void TraceGLApi::glStencilThenCoverFillPathNVFn(GLuint path
,
9585 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9586 "TraceGLAPI::glStencilThenCoverFillPathNV")
9587 gl_api_
->glStencilThenCoverFillPathNVFn(path
, fillMode
, mask
, coverMode
);
9590 void TraceGLApi::glStencilThenCoverStrokePathNVFn(GLuint path
,
9594 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9595 "TraceGLAPI::glStencilThenCoverStrokePathNV")
9596 gl_api_
->glStencilThenCoverStrokePathNVFn(path
, reference
, mask
, coverMode
);
9599 GLboolean
TraceGLApi::glTestFenceAPPLEFn(GLuint fence
) {
9600 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceAPPLE")
9601 return gl_api_
->glTestFenceAPPLEFn(fence
);
9604 GLboolean
TraceGLApi::glTestFenceNVFn(GLuint fence
) {
9605 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceNV")
9606 return gl_api_
->glTestFenceNVFn(fence
);
9609 void TraceGLApi::glTexImage2DFn(GLenum target
,
9611 GLint internalformat
,
9617 const void* pixels
) {
9618 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage2D")
9619 gl_api_
->glTexImage2DFn(target
, level
, internalformat
, width
, height
, border
,
9620 format
, type
, pixels
);
9623 void TraceGLApi::glTexImage3DFn(GLenum target
,
9625 GLint internalformat
,
9632 const void* pixels
) {
9633 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage3D")
9634 gl_api_
->glTexImage3DFn(target
, level
, internalformat
, width
, height
, depth
,
9635 border
, format
, type
, pixels
);
9638 void TraceGLApi::glTexParameterfFn(GLenum target
, GLenum pname
, GLfloat param
) {
9639 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterf")
9640 gl_api_
->glTexParameterfFn(target
, pname
, param
);
9643 void TraceGLApi::glTexParameterfvFn(GLenum target
,
9645 const GLfloat
* params
) {
9646 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterfv")
9647 gl_api_
->glTexParameterfvFn(target
, pname
, params
);
9650 void TraceGLApi::glTexParameteriFn(GLenum target
, GLenum pname
, GLint param
) {
9651 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteri")
9652 gl_api_
->glTexParameteriFn(target
, pname
, param
);
9655 void TraceGLApi::glTexParameterivFn(GLenum target
,
9657 const GLint
* params
) {
9658 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteriv")
9659 gl_api_
->glTexParameterivFn(target
, pname
, params
);
9662 void TraceGLApi::glTexStorage2DEXTFn(GLenum target
,
9664 GLenum internalformat
,
9667 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage2DEXT")
9668 gl_api_
->glTexStorage2DEXTFn(target
, levels
, internalformat
, width
, height
);
9671 void TraceGLApi::glTexStorage3DFn(GLenum target
,
9673 GLenum internalformat
,
9677 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage3D")
9678 gl_api_
->glTexStorage3DFn(target
, levels
, internalformat
, width
, height
,
9682 void TraceGLApi::glTexSubImage2DFn(GLenum target
,
9690 const void* pixels
) {
9691 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage2D")
9692 gl_api_
->glTexSubImage2DFn(target
, level
, xoffset
, yoffset
, width
, height
,
9693 format
, type
, pixels
);
9696 void TraceGLApi::glTexSubImage3DFn(GLenum target
,
9706 const void* pixels
) {
9707 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage3D")
9708 gl_api_
->glTexSubImage3DFn(target
, level
, xoffset
, yoffset
, zoffset
, width
,
9709 height
, depth
, format
, type
, pixels
);
9712 void TraceGLApi::glTransformFeedbackVaryingsFn(GLuint program
,
9714 const char* const* varyings
,
9715 GLenum bufferMode
) {
9716 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9717 "TraceGLAPI::glTransformFeedbackVaryings")
9718 gl_api_
->glTransformFeedbackVaryingsFn(program
, count
, varyings
, bufferMode
);
9721 void TraceGLApi::glUniform1fFn(GLint location
, GLfloat x
) {
9722 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1f")
9723 gl_api_
->glUniform1fFn(location
, x
);
9726 void TraceGLApi::glUniform1fvFn(GLint location
,
9729 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1fv")
9730 gl_api_
->glUniform1fvFn(location
, count
, v
);
9733 void TraceGLApi::glUniform1iFn(GLint location
, GLint x
) {
9734 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1i")
9735 gl_api_
->glUniform1iFn(location
, x
);
9738 void TraceGLApi::glUniform1ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
9739 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1iv")
9740 gl_api_
->glUniform1ivFn(location
, count
, v
);
9743 void TraceGLApi::glUniform1uiFn(GLint location
, GLuint v0
) {
9744 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1ui")
9745 gl_api_
->glUniform1uiFn(location
, v0
);
9748 void TraceGLApi::glUniform1uivFn(GLint location
,
9751 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1uiv")
9752 gl_api_
->glUniform1uivFn(location
, count
, v
);
9755 void TraceGLApi::glUniform2fFn(GLint location
, GLfloat x
, GLfloat y
) {
9756 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2f")
9757 gl_api_
->glUniform2fFn(location
, x
, y
);
9760 void TraceGLApi::glUniform2fvFn(GLint location
,
9763 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2fv")
9764 gl_api_
->glUniform2fvFn(location
, count
, v
);
9767 void TraceGLApi::glUniform2iFn(GLint location
, GLint x
, GLint y
) {
9768 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2i")
9769 gl_api_
->glUniform2iFn(location
, x
, y
);
9772 void TraceGLApi::glUniform2ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
9773 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2iv")
9774 gl_api_
->glUniform2ivFn(location
, count
, v
);
9777 void TraceGLApi::glUniform2uiFn(GLint location
, GLuint v0
, GLuint v1
) {
9778 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2ui")
9779 gl_api_
->glUniform2uiFn(location
, v0
, v1
);
9782 void TraceGLApi::glUniform2uivFn(GLint location
,
9785 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2uiv")
9786 gl_api_
->glUniform2uivFn(location
, count
, v
);
9789 void TraceGLApi::glUniform3fFn(GLint location
,
9793 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3f")
9794 gl_api_
->glUniform3fFn(location
, x
, y
, z
);
9797 void TraceGLApi::glUniform3fvFn(GLint location
,
9800 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3fv")
9801 gl_api_
->glUniform3fvFn(location
, count
, v
);
9804 void TraceGLApi::glUniform3iFn(GLint location
, GLint x
, GLint y
, GLint z
) {
9805 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3i")
9806 gl_api_
->glUniform3iFn(location
, x
, y
, z
);
9809 void TraceGLApi::glUniform3ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
9810 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3iv")
9811 gl_api_
->glUniform3ivFn(location
, count
, v
);
9814 void TraceGLApi::glUniform3uiFn(GLint location
,
9818 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3ui")
9819 gl_api_
->glUniform3uiFn(location
, v0
, v1
, v2
);
9822 void TraceGLApi::glUniform3uivFn(GLint location
,
9825 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3uiv")
9826 gl_api_
->glUniform3uivFn(location
, count
, v
);
9829 void TraceGLApi::glUniform4fFn(GLint location
,
9834 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4f")
9835 gl_api_
->glUniform4fFn(location
, x
, y
, z
, w
);
9838 void TraceGLApi::glUniform4fvFn(GLint location
,
9841 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4fv")
9842 gl_api_
->glUniform4fvFn(location
, count
, v
);
9845 void TraceGLApi::glUniform4iFn(GLint location
,
9850 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4i")
9851 gl_api_
->glUniform4iFn(location
, x
, y
, z
, w
);
9854 void TraceGLApi::glUniform4ivFn(GLint location
, GLsizei count
, const GLint
* v
) {
9855 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4iv")
9856 gl_api_
->glUniform4ivFn(location
, count
, v
);
9859 void TraceGLApi::glUniform4uiFn(GLint location
,
9864 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4ui")
9865 gl_api_
->glUniform4uiFn(location
, v0
, v1
, v2
, v3
);
9868 void TraceGLApi::glUniform4uivFn(GLint location
,
9871 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4uiv")
9872 gl_api_
->glUniform4uivFn(location
, count
, v
);
9875 void TraceGLApi::glUniformBlockBindingFn(GLuint program
,
9876 GLuint uniformBlockIndex
,
9877 GLuint uniformBlockBinding
) {
9878 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformBlockBinding")
9879 gl_api_
->glUniformBlockBindingFn(program
, uniformBlockIndex
,
9880 uniformBlockBinding
);
9883 void TraceGLApi::glUniformMatrix2fvFn(GLint location
,
9885 GLboolean transpose
,
9886 const GLfloat
* value
) {
9887 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2fv")
9888 gl_api_
->glUniformMatrix2fvFn(location
, count
, transpose
, value
);
9891 void TraceGLApi::glUniformMatrix2x3fvFn(GLint location
,
9893 GLboolean transpose
,
9894 const GLfloat
* value
) {
9895 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x3fv")
9896 gl_api_
->glUniformMatrix2x3fvFn(location
, count
, transpose
, value
);
9899 void TraceGLApi::glUniformMatrix2x4fvFn(GLint location
,
9901 GLboolean transpose
,
9902 const GLfloat
* value
) {
9903 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x4fv")
9904 gl_api_
->glUniformMatrix2x4fvFn(location
, count
, transpose
, value
);
9907 void TraceGLApi::glUniformMatrix3fvFn(GLint location
,
9909 GLboolean transpose
,
9910 const GLfloat
* value
) {
9911 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3fv")
9912 gl_api_
->glUniformMatrix3fvFn(location
, count
, transpose
, value
);
9915 void TraceGLApi::glUniformMatrix3x2fvFn(GLint location
,
9917 GLboolean transpose
,
9918 const GLfloat
* value
) {
9919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x2fv")
9920 gl_api_
->glUniformMatrix3x2fvFn(location
, count
, transpose
, value
);
9923 void TraceGLApi::glUniformMatrix3x4fvFn(GLint location
,
9925 GLboolean transpose
,
9926 const GLfloat
* value
) {
9927 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x4fv")
9928 gl_api_
->glUniformMatrix3x4fvFn(location
, count
, transpose
, value
);
9931 void TraceGLApi::glUniformMatrix4fvFn(GLint location
,
9933 GLboolean transpose
,
9934 const GLfloat
* value
) {
9935 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4fv")
9936 gl_api_
->glUniformMatrix4fvFn(location
, count
, transpose
, value
);
9939 void TraceGLApi::glUniformMatrix4x2fvFn(GLint location
,
9941 GLboolean transpose
,
9942 const GLfloat
* value
) {
9943 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x2fv")
9944 gl_api_
->glUniformMatrix4x2fvFn(location
, count
, transpose
, value
);
9947 void TraceGLApi::glUniformMatrix4x3fvFn(GLint location
,
9949 GLboolean transpose
,
9950 const GLfloat
* value
) {
9951 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x3fv")
9952 gl_api_
->glUniformMatrix4x3fvFn(location
, count
, transpose
, value
);
9955 GLboolean
TraceGLApi::glUnmapBufferFn(GLenum target
) {
9956 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUnmapBuffer")
9957 return gl_api_
->glUnmapBufferFn(target
);
9960 void TraceGLApi::glUseProgramFn(GLuint program
) {
9961 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUseProgram")
9962 gl_api_
->glUseProgramFn(program
);
9965 void TraceGLApi::glValidateProgramFn(GLuint program
) {
9966 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glValidateProgram")
9967 gl_api_
->glValidateProgramFn(program
);
9970 void TraceGLApi::glVertexAttrib1fFn(GLuint indx
, GLfloat x
) {
9971 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1f")
9972 gl_api_
->glVertexAttrib1fFn(indx
, x
);
9975 void TraceGLApi::glVertexAttrib1fvFn(GLuint indx
, const GLfloat
* values
) {
9976 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1fv")
9977 gl_api_
->glVertexAttrib1fvFn(indx
, values
);
9980 void TraceGLApi::glVertexAttrib2fFn(GLuint indx
, GLfloat x
, GLfloat y
) {
9981 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2f")
9982 gl_api_
->glVertexAttrib2fFn(indx
, x
, y
);
9985 void TraceGLApi::glVertexAttrib2fvFn(GLuint indx
, const GLfloat
* values
) {
9986 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2fv")
9987 gl_api_
->glVertexAttrib2fvFn(indx
, values
);
9990 void TraceGLApi::glVertexAttrib3fFn(GLuint indx
,
9994 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3f")
9995 gl_api_
->glVertexAttrib3fFn(indx
, x
, y
, z
);
9998 void TraceGLApi::glVertexAttrib3fvFn(GLuint indx
, const GLfloat
* values
) {
9999 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3fv")
10000 gl_api_
->glVertexAttrib3fvFn(indx
, values
);
10003 void TraceGLApi::glVertexAttrib4fFn(GLuint indx
,
10008 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4f")
10009 gl_api_
->glVertexAttrib4fFn(indx
, x
, y
, z
, w
);
10012 void TraceGLApi::glVertexAttrib4fvFn(GLuint indx
, const GLfloat
* values
) {
10013 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4fv")
10014 gl_api_
->glVertexAttrib4fvFn(indx
, values
);
10017 void TraceGLApi::glVertexAttribDivisorANGLEFn(GLuint index
, GLuint divisor
) {
10018 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribDivisorANGLE")
10019 gl_api_
->glVertexAttribDivisorANGLEFn(index
, divisor
);
10022 void TraceGLApi::glVertexAttribI4iFn(GLuint indx
,
10027 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4i")
10028 gl_api_
->glVertexAttribI4iFn(indx
, x
, y
, z
, w
);
10031 void TraceGLApi::glVertexAttribI4ivFn(GLuint indx
, const GLint
* values
) {
10032 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4iv")
10033 gl_api_
->glVertexAttribI4ivFn(indx
, values
);
10036 void TraceGLApi::glVertexAttribI4uiFn(GLuint indx
,
10041 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4ui")
10042 gl_api_
->glVertexAttribI4uiFn(indx
, x
, y
, z
, w
);
10045 void TraceGLApi::glVertexAttribI4uivFn(GLuint indx
, const GLuint
* values
) {
10046 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4uiv")
10047 gl_api_
->glVertexAttribI4uivFn(indx
, values
);
10050 void TraceGLApi::glVertexAttribIPointerFn(GLuint indx
,
10055 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribIPointer")
10056 gl_api_
->glVertexAttribIPointerFn(indx
, size
, type
, stride
, ptr
);
10059 void TraceGLApi::glVertexAttribPointerFn(GLuint indx
,
10062 GLboolean normalized
,
10065 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribPointer")
10066 gl_api_
->glVertexAttribPointerFn(indx
, size
, type
, normalized
, stride
, ptr
);
10069 void TraceGLApi::glViewportFn(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
10070 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glViewport")
10071 gl_api_
->glViewportFn(x
, y
, width
, height
);
10074 GLenum
TraceGLApi::glWaitSyncFn(GLsync sync
,
10076 GLuint64 timeout
) {
10077 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glWaitSync")
10078 return gl_api_
->glWaitSyncFn(sync
, flags
, timeout
);
10081 void NoContextGLApi::glActiveTextureFn(GLenum texture
) {
10082 NOTREACHED() << "Trying to call glActiveTexture() without current GL context";
10083 LOG(ERROR
) << "Trying to call glActiveTexture() without current GL context";
10086 void NoContextGLApi::glApplyFramebufferAttachmentCMAAINTELFn(void) {
10087 NOTREACHED() << "Trying to call glApplyFramebufferAttachmentCMAAINTEL() "
10088 "without current GL context";
10089 LOG(ERROR
) << "Trying to call glApplyFramebufferAttachmentCMAAINTEL() "
10090 "without current GL context";
10093 void NoContextGLApi::glAttachShaderFn(GLuint program
, GLuint shader
) {
10094 NOTREACHED() << "Trying to call glAttachShader() without current GL context";
10095 LOG(ERROR
) << "Trying to call glAttachShader() without current GL context";
10098 void NoContextGLApi::glBeginQueryFn(GLenum target
, GLuint id
) {
10099 NOTREACHED() << "Trying to call glBeginQuery() without current GL context";
10100 LOG(ERROR
) << "Trying to call glBeginQuery() without current GL context";
10103 void NoContextGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode
) {
10105 << "Trying to call glBeginTransformFeedback() without current GL context";
10107 << "Trying to call glBeginTransformFeedback() without current GL context";
10110 void NoContextGLApi::glBindAttribLocationFn(GLuint program
,
10112 const char* name
) {
10114 << "Trying to call glBindAttribLocation() without current GL context";
10116 << "Trying to call glBindAttribLocation() without current GL context";
10119 void NoContextGLApi::glBindBufferFn(GLenum target
, GLuint buffer
) {
10120 NOTREACHED() << "Trying to call glBindBuffer() without current GL context";
10121 LOG(ERROR
) << "Trying to call glBindBuffer() without current GL context";
10124 void NoContextGLApi::glBindBufferBaseFn(GLenum target
,
10128 << "Trying to call glBindBufferBase() without current GL context";
10129 LOG(ERROR
) << "Trying to call glBindBufferBase() without current GL context";
10132 void NoContextGLApi::glBindBufferRangeFn(GLenum target
,
10138 << "Trying to call glBindBufferRange() without current GL context";
10139 LOG(ERROR
) << "Trying to call glBindBufferRange() without current GL context";
10142 void NoContextGLApi::glBindFragDataLocationFn(GLuint program
,
10143 GLuint colorNumber
,
10144 const char* name
) {
10146 << "Trying to call glBindFragDataLocation() without current GL context";
10148 << "Trying to call glBindFragDataLocation() without current GL context";
10151 void NoContextGLApi::glBindFragDataLocationIndexedFn(GLuint program
,
10152 GLuint colorNumber
,
10154 const char* name
) {
10155 NOTREACHED() << "Trying to call glBindFragDataLocationIndexed() without "
10156 "current GL context";
10157 LOG(ERROR
) << "Trying to call glBindFragDataLocationIndexed() without "
10158 "current GL context";
10161 void NoContextGLApi::glBindFramebufferEXTFn(GLenum target
, GLuint framebuffer
) {
10163 << "Trying to call glBindFramebufferEXT() without current GL context";
10165 << "Trying to call glBindFramebufferEXT() without current GL context";
10168 void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target
,
10169 GLuint renderbuffer
) {
10171 << "Trying to call glBindRenderbufferEXT() without current GL context";
10173 << "Trying to call glBindRenderbufferEXT() without current GL context";
10176 void NoContextGLApi::glBindSamplerFn(GLuint unit
, GLuint sampler
) {
10177 NOTREACHED() << "Trying to call glBindSampler() without current GL context";
10178 LOG(ERROR
) << "Trying to call glBindSampler() without current GL context";
10181 void NoContextGLApi::glBindTextureFn(GLenum target
, GLuint texture
) {
10182 NOTREACHED() << "Trying to call glBindTexture() without current GL context";
10183 LOG(ERROR
) << "Trying to call glBindTexture() without current GL context";
10186 void NoContextGLApi::glBindTransformFeedbackFn(GLenum target
, GLuint id
) {
10188 << "Trying to call glBindTransformFeedback() without current GL context";
10190 << "Trying to call glBindTransformFeedback() without current GL context";
10193 void NoContextGLApi::glBindVertexArrayOESFn(GLuint array
) {
10195 << "Trying to call glBindVertexArrayOES() without current GL context";
10197 << "Trying to call glBindVertexArrayOES() without current GL context";
10200 void NoContextGLApi::glBlendBarrierKHRFn(void) {
10202 << "Trying to call glBlendBarrierKHR() without current GL context";
10203 LOG(ERROR
) << "Trying to call glBlendBarrierKHR() without current GL context";
10206 void NoContextGLApi::glBlendColorFn(GLclampf red
,
10210 NOTREACHED() << "Trying to call glBlendColor() without current GL context";
10211 LOG(ERROR
) << "Trying to call glBlendColor() without current GL context";
10214 void NoContextGLApi::glBlendEquationFn(GLenum mode
) {
10215 NOTREACHED() << "Trying to call glBlendEquation() without current GL context";
10216 LOG(ERROR
) << "Trying to call glBlendEquation() without current GL context";
10219 void NoContextGLApi::glBlendEquationSeparateFn(GLenum modeRGB
,
10220 GLenum modeAlpha
) {
10222 << "Trying to call glBlendEquationSeparate() without current GL context";
10224 << "Trying to call glBlendEquationSeparate() without current GL context";
10227 void NoContextGLApi::glBlendFuncFn(GLenum sfactor
, GLenum dfactor
) {
10228 NOTREACHED() << "Trying to call glBlendFunc() without current GL context";
10229 LOG(ERROR
) << "Trying to call glBlendFunc() without current GL context";
10232 void NoContextGLApi::glBlendFuncSeparateFn(GLenum srcRGB
,
10237 << "Trying to call glBlendFuncSeparate() without current GL context";
10239 << "Trying to call glBlendFuncSeparate() without current GL context";
10242 void NoContextGLApi::glBlitFramebufferFn(GLint srcX0
,
10253 << "Trying to call glBlitFramebuffer() without current GL context";
10254 LOG(ERROR
) << "Trying to call glBlitFramebuffer() without current GL context";
10257 void NoContextGLApi::glBlitFramebufferANGLEFn(GLint srcX0
,
10268 << "Trying to call glBlitFramebufferANGLE() without current GL context";
10270 << "Trying to call glBlitFramebufferANGLE() without current GL context";
10273 void NoContextGLApi::glBlitFramebufferEXTFn(GLint srcX0
,
10284 << "Trying to call glBlitFramebufferEXT() without current GL context";
10286 << "Trying to call glBlitFramebufferEXT() without current GL context";
10289 void NoContextGLApi::glBufferDataFn(GLenum target
,
10293 NOTREACHED() << "Trying to call glBufferData() without current GL context";
10294 LOG(ERROR
) << "Trying to call glBufferData() without current GL context";
10297 void NoContextGLApi::glBufferSubDataFn(GLenum target
,
10300 const void* data
) {
10301 NOTREACHED() << "Trying to call glBufferSubData() without current GL context";
10302 LOG(ERROR
) << "Trying to call glBufferSubData() without current GL context";
10305 GLenum
NoContextGLApi::glCheckFramebufferStatusEXTFn(GLenum target
) {
10306 NOTREACHED() << "Trying to call glCheckFramebufferStatusEXT() without "
10307 "current GL context";
10308 LOG(ERROR
) << "Trying to call glCheckFramebufferStatusEXT() without current "
10310 return static_cast<GLenum
>(0);
10313 void NoContextGLApi::glClearFn(GLbitfield mask
) {
10314 NOTREACHED() << "Trying to call glClear() without current GL context";
10315 LOG(ERROR
) << "Trying to call glClear() without current GL context";
10318 void NoContextGLApi::glClearBufferfiFn(GLenum buffer
,
10320 const GLfloat depth
,
10322 NOTREACHED() << "Trying to call glClearBufferfi() without current GL context";
10323 LOG(ERROR
) << "Trying to call glClearBufferfi() without current GL context";
10326 void NoContextGLApi::glClearBufferfvFn(GLenum buffer
,
10328 const GLfloat
* value
) {
10329 NOTREACHED() << "Trying to call glClearBufferfv() without current GL context";
10330 LOG(ERROR
) << "Trying to call glClearBufferfv() without current GL context";
10333 void NoContextGLApi::glClearBufferivFn(GLenum buffer
,
10335 const GLint
* value
) {
10336 NOTREACHED() << "Trying to call glClearBufferiv() without current GL context";
10337 LOG(ERROR
) << "Trying to call glClearBufferiv() without current GL context";
10340 void NoContextGLApi::glClearBufferuivFn(GLenum buffer
,
10342 const GLuint
* value
) {
10344 << "Trying to call glClearBufferuiv() without current GL context";
10345 LOG(ERROR
) << "Trying to call glClearBufferuiv() without current GL context";
10348 void NoContextGLApi::glClearColorFn(GLclampf red
,
10352 NOTREACHED() << "Trying to call glClearColor() without current GL context";
10353 LOG(ERROR
) << "Trying to call glClearColor() without current GL context";
10356 void NoContextGLApi::glClearDepthFn(GLclampd depth
) {
10357 NOTREACHED() << "Trying to call glClearDepth() without current GL context";
10358 LOG(ERROR
) << "Trying to call glClearDepth() without current GL context";
10361 void NoContextGLApi::glClearDepthfFn(GLclampf depth
) {
10362 NOTREACHED() << "Trying to call glClearDepthf() without current GL context";
10363 LOG(ERROR
) << "Trying to call glClearDepthf() without current GL context";
10366 void NoContextGLApi::glClearStencilFn(GLint s
) {
10367 NOTREACHED() << "Trying to call glClearStencil() without current GL context";
10368 LOG(ERROR
) << "Trying to call glClearStencil() without current GL context";
10371 GLenum
NoContextGLApi::glClientWaitSyncFn(GLsync sync
,
10373 GLuint64 timeout
) {
10375 << "Trying to call glClientWaitSync() without current GL context";
10376 LOG(ERROR
) << "Trying to call glClientWaitSync() without current GL context";
10377 return static_cast<GLenum
>(0);
10380 void NoContextGLApi::glColorMaskFn(GLboolean red
,
10384 NOTREACHED() << "Trying to call glColorMask() without current GL context";
10385 LOG(ERROR
) << "Trying to call glColorMask() without current GL context";
10388 void NoContextGLApi::glCompileShaderFn(GLuint shader
) {
10389 NOTREACHED() << "Trying to call glCompileShader() without current GL context";
10390 LOG(ERROR
) << "Trying to call glCompileShader() without current GL context";
10393 void NoContextGLApi::glCompressedTexImage2DFn(GLenum target
,
10395 GLenum internalformat
,
10400 const void* data
) {
10402 << "Trying to call glCompressedTexImage2D() without current GL context";
10404 << "Trying to call glCompressedTexImage2D() without current GL context";
10407 void NoContextGLApi::glCompressedTexImage3DFn(GLenum target
,
10409 GLenum internalformat
,
10415 const void* data
) {
10417 << "Trying to call glCompressedTexImage3D() without current GL context";
10419 << "Trying to call glCompressedTexImage3D() without current GL context";
10422 void NoContextGLApi::glCompressedTexSubImage2DFn(GLenum target
,
10430 const void* data
) {
10431 NOTREACHED() << "Trying to call glCompressedTexSubImage2D() without current "
10433 LOG(ERROR
) << "Trying to call glCompressedTexSubImage2D() without current GL "
10437 void NoContextGLApi::glCompressedTexSubImage3DFn(GLenum target
,
10447 const void* data
) {
10448 NOTREACHED() << "Trying to call glCompressedTexSubImage3D() without current "
10450 LOG(ERROR
) << "Trying to call glCompressedTexSubImage3D() without current GL "
10454 void NoContextGLApi::glCopyBufferSubDataFn(GLenum readTarget
,
10455 GLenum writeTarget
,
10456 GLintptr readOffset
,
10457 GLintptr writeOffset
,
10460 << "Trying to call glCopyBufferSubData() without current GL context";
10462 << "Trying to call glCopyBufferSubData() without current GL context";
10465 void NoContextGLApi::glCopyTexImage2DFn(GLenum target
,
10467 GLenum internalformat
,
10474 << "Trying to call glCopyTexImage2D() without current GL context";
10475 LOG(ERROR
) << "Trying to call glCopyTexImage2D() without current GL context";
10478 void NoContextGLApi::glCopyTexSubImage2DFn(GLenum target
,
10487 << "Trying to call glCopyTexSubImage2D() without current GL context";
10489 << "Trying to call glCopyTexSubImage2D() without current GL context";
10492 void NoContextGLApi::glCopyTexSubImage3DFn(GLenum target
,
10502 << "Trying to call glCopyTexSubImage3D() without current GL context";
10504 << "Trying to call glCopyTexSubImage3D() without current GL context";
10507 void NoContextGLApi::glCoverFillPathNVFn(GLuint path
, GLenum coverMode
) {
10509 << "Trying to call glCoverFillPathNV() without current GL context";
10510 LOG(ERROR
) << "Trying to call glCoverFillPathNV() without current GL context";
10513 void NoContextGLApi::glCoverStrokePathNVFn(GLuint name
, GLenum coverMode
) {
10515 << "Trying to call glCoverStrokePathNV() without current GL context";
10517 << "Trying to call glCoverStrokePathNV() without current GL context";
10520 GLuint
NoContextGLApi::glCreateProgramFn(void) {
10521 NOTREACHED() << "Trying to call glCreateProgram() without current GL context";
10522 LOG(ERROR
) << "Trying to call glCreateProgram() without current GL context";
10526 GLuint
NoContextGLApi::glCreateShaderFn(GLenum type
) {
10527 NOTREACHED() << "Trying to call glCreateShader() without current GL context";
10528 LOG(ERROR
) << "Trying to call glCreateShader() without current GL context";
10532 void NoContextGLApi::glCullFaceFn(GLenum mode
) {
10533 NOTREACHED() << "Trying to call glCullFace() without current GL context";
10534 LOG(ERROR
) << "Trying to call glCullFace() without current GL context";
10537 void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n
, const GLuint
* buffers
) {
10539 << "Trying to call glDeleteBuffersARB() without current GL context";
10541 << "Trying to call glDeleteBuffersARB() without current GL context";
10544 void NoContextGLApi::glDeleteFencesAPPLEFn(GLsizei n
, const GLuint
* fences
) {
10546 << "Trying to call glDeleteFencesAPPLE() without current GL context";
10548 << "Trying to call glDeleteFencesAPPLE() without current GL context";
10551 void NoContextGLApi::glDeleteFencesNVFn(GLsizei n
, const GLuint
* fences
) {
10553 << "Trying to call glDeleteFencesNV() without current GL context";
10554 LOG(ERROR
) << "Trying to call glDeleteFencesNV() without current GL context";
10557 void NoContextGLApi::glDeleteFramebuffersEXTFn(GLsizei n
,
10558 const GLuint
* framebuffers
) {
10560 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
10562 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
10565 void NoContextGLApi::glDeletePathsNVFn(GLuint path
, GLsizei range
) {
10566 NOTREACHED() << "Trying to call glDeletePathsNV() without current GL context";
10567 LOG(ERROR
) << "Trying to call glDeletePathsNV() without current GL context";
10570 void NoContextGLApi::glDeleteProgramFn(GLuint program
) {
10571 NOTREACHED() << "Trying to call glDeleteProgram() without current GL context";
10572 LOG(ERROR
) << "Trying to call glDeleteProgram() without current GL context";
10575 void NoContextGLApi::glDeleteQueriesFn(GLsizei n
, const GLuint
* ids
) {
10576 NOTREACHED() << "Trying to call glDeleteQueries() without current GL context";
10577 LOG(ERROR
) << "Trying to call glDeleteQueries() without current GL context";
10580 void NoContextGLApi::glDeleteRenderbuffersEXTFn(GLsizei n
,
10581 const GLuint
* renderbuffers
) {
10583 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
10585 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
10588 void NoContextGLApi::glDeleteSamplersFn(GLsizei n
, const GLuint
* samplers
) {
10590 << "Trying to call glDeleteSamplers() without current GL context";
10591 LOG(ERROR
) << "Trying to call glDeleteSamplers() without current GL context";
10594 void NoContextGLApi::glDeleteShaderFn(GLuint shader
) {
10595 NOTREACHED() << "Trying to call glDeleteShader() without current GL context";
10596 LOG(ERROR
) << "Trying to call glDeleteShader() without current GL context";
10599 void NoContextGLApi::glDeleteSyncFn(GLsync sync
) {
10600 NOTREACHED() << "Trying to call glDeleteSync() without current GL context";
10601 LOG(ERROR
) << "Trying to call glDeleteSync() without current GL context";
10604 void NoContextGLApi::glDeleteTexturesFn(GLsizei n
, const GLuint
* textures
) {
10606 << "Trying to call glDeleteTextures() without current GL context";
10607 LOG(ERROR
) << "Trying to call glDeleteTextures() without current GL context";
10610 void NoContextGLApi::glDeleteTransformFeedbacksFn(GLsizei n
,
10611 const GLuint
* ids
) {
10612 NOTREACHED() << "Trying to call glDeleteTransformFeedbacks() without current "
10614 LOG(ERROR
) << "Trying to call glDeleteTransformFeedbacks() without current "
10618 void NoContextGLApi::glDeleteVertexArraysOESFn(GLsizei n
,
10619 const GLuint
* arrays
) {
10621 << "Trying to call glDeleteVertexArraysOES() without current GL context";
10623 << "Trying to call glDeleteVertexArraysOES() without current GL context";
10626 void NoContextGLApi::glDepthFuncFn(GLenum func
) {
10627 NOTREACHED() << "Trying to call glDepthFunc() without current GL context";
10628 LOG(ERROR
) << "Trying to call glDepthFunc() without current GL context";
10631 void NoContextGLApi::glDepthMaskFn(GLboolean flag
) {
10632 NOTREACHED() << "Trying to call glDepthMask() without current GL context";
10633 LOG(ERROR
) << "Trying to call glDepthMask() without current GL context";
10636 void NoContextGLApi::glDepthRangeFn(GLclampd zNear
, GLclampd zFar
) {
10637 NOTREACHED() << "Trying to call glDepthRange() without current GL context";
10638 LOG(ERROR
) << "Trying to call glDepthRange() without current GL context";
10641 void NoContextGLApi::glDepthRangefFn(GLclampf zNear
, GLclampf zFar
) {
10642 NOTREACHED() << "Trying to call glDepthRangef() without current GL context";
10643 LOG(ERROR
) << "Trying to call glDepthRangef() without current GL context";
10646 void NoContextGLApi::glDetachShaderFn(GLuint program
, GLuint shader
) {
10647 NOTREACHED() << "Trying to call glDetachShader() without current GL context";
10648 LOG(ERROR
) << "Trying to call glDetachShader() without current GL context";
10651 void NoContextGLApi::glDisableFn(GLenum cap
) {
10652 NOTREACHED() << "Trying to call glDisable() without current GL context";
10653 LOG(ERROR
) << "Trying to call glDisable() without current GL context";
10656 void NoContextGLApi::glDisableVertexAttribArrayFn(GLuint index
) {
10657 NOTREACHED() << "Trying to call glDisableVertexAttribArray() without current "
10659 LOG(ERROR
) << "Trying to call glDisableVertexAttribArray() without current "
10663 void NoContextGLApi::glDiscardFramebufferEXTFn(GLenum target
,
10664 GLsizei numAttachments
,
10665 const GLenum
* attachments
) {
10667 << "Trying to call glDiscardFramebufferEXT() without current GL context";
10669 << "Trying to call glDiscardFramebufferEXT() without current GL context";
10672 void NoContextGLApi::glDrawArraysFn(GLenum mode
, GLint first
, GLsizei count
) {
10673 NOTREACHED() << "Trying to call glDrawArrays() without current GL context";
10674 LOG(ERROR
) << "Trying to call glDrawArrays() without current GL context";
10677 void NoContextGLApi::glDrawArraysInstancedANGLEFn(GLenum mode
,
10680 GLsizei primcount
) {
10681 NOTREACHED() << "Trying to call glDrawArraysInstancedANGLE() without current "
10683 LOG(ERROR
) << "Trying to call glDrawArraysInstancedANGLE() without current "
10687 void NoContextGLApi::glDrawBufferFn(GLenum mode
) {
10688 NOTREACHED() << "Trying to call glDrawBuffer() without current GL context";
10689 LOG(ERROR
) << "Trying to call glDrawBuffer() without current GL context";
10692 void NoContextGLApi::glDrawBuffersARBFn(GLsizei n
, const GLenum
* bufs
) {
10694 << "Trying to call glDrawBuffersARB() without current GL context";
10695 LOG(ERROR
) << "Trying to call glDrawBuffersARB() without current GL context";
10698 void NoContextGLApi::glDrawElementsFn(GLenum mode
,
10701 const void* indices
) {
10702 NOTREACHED() << "Trying to call glDrawElements() without current GL context";
10703 LOG(ERROR
) << "Trying to call glDrawElements() without current GL context";
10706 void NoContextGLApi::glDrawElementsInstancedANGLEFn(GLenum mode
,
10709 const void* indices
,
10710 GLsizei primcount
) {
10711 NOTREACHED() << "Trying to call glDrawElementsInstancedANGLE() without "
10712 "current GL context";
10713 LOG(ERROR
) << "Trying to call glDrawElementsInstancedANGLE() without current "
10717 void NoContextGLApi::glDrawRangeElementsFn(GLenum mode
,
10722 const void* indices
) {
10724 << "Trying to call glDrawRangeElements() without current GL context";
10726 << "Trying to call glDrawRangeElements() without current GL context";
10729 void NoContextGLApi::glEGLImageTargetRenderbufferStorageOESFn(
10731 GLeglImageOES image
) {
10732 NOTREACHED() << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
10733 "without current GL context";
10734 LOG(ERROR
) << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
10735 "without current GL context";
10738 void NoContextGLApi::glEGLImageTargetTexture2DOESFn(GLenum target
,
10739 GLeglImageOES image
) {
10740 NOTREACHED() << "Trying to call glEGLImageTargetTexture2DOES() without "
10741 "current GL context";
10742 LOG(ERROR
) << "Trying to call glEGLImageTargetTexture2DOES() without current "
10746 void NoContextGLApi::glEnableFn(GLenum cap
) {
10747 NOTREACHED() << "Trying to call glEnable() without current GL context";
10748 LOG(ERROR
) << "Trying to call glEnable() without current GL context";
10751 void NoContextGLApi::glEnableVertexAttribArrayFn(GLuint index
) {
10752 NOTREACHED() << "Trying to call glEnableVertexAttribArray() without current "
10754 LOG(ERROR
) << "Trying to call glEnableVertexAttribArray() without current GL "
10758 void NoContextGLApi::glEndQueryFn(GLenum target
) {
10759 NOTREACHED() << "Trying to call glEndQuery() without current GL context";
10760 LOG(ERROR
) << "Trying to call glEndQuery() without current GL context";
10763 void NoContextGLApi::glEndTransformFeedbackFn(void) {
10765 << "Trying to call glEndTransformFeedback() without current GL context";
10767 << "Trying to call glEndTransformFeedback() without current GL context";
10770 GLsync
NoContextGLApi::glFenceSyncFn(GLenum condition
, GLbitfield flags
) {
10771 NOTREACHED() << "Trying to call glFenceSync() without current GL context";
10772 LOG(ERROR
) << "Trying to call glFenceSync() without current GL context";
10776 void NoContextGLApi::glFinishFn(void) {
10777 NOTREACHED() << "Trying to call glFinish() without current GL context";
10778 LOG(ERROR
) << "Trying to call glFinish() without current GL context";
10781 void NoContextGLApi::glFinishFenceAPPLEFn(GLuint fence
) {
10783 << "Trying to call glFinishFenceAPPLE() without current GL context";
10785 << "Trying to call glFinishFenceAPPLE() without current GL context";
10788 void NoContextGLApi::glFinishFenceNVFn(GLuint fence
) {
10789 NOTREACHED() << "Trying to call glFinishFenceNV() without current GL context";
10790 LOG(ERROR
) << "Trying to call glFinishFenceNV() without current GL context";
10793 void NoContextGLApi::glFlushFn(void) {
10794 NOTREACHED() << "Trying to call glFlush() without current GL context";
10795 LOG(ERROR
) << "Trying to call glFlush() without current GL context";
10798 void NoContextGLApi::glFlushMappedBufferRangeFn(GLenum target
,
10800 GLsizeiptr length
) {
10802 << "Trying to call glFlushMappedBufferRange() without current GL context";
10804 << "Trying to call glFlushMappedBufferRange() without current GL context";
10807 void NoContextGLApi::glFramebufferRenderbufferEXTFn(GLenum target
,
10809 GLenum renderbuffertarget
,
10810 GLuint renderbuffer
) {
10811 NOTREACHED() << "Trying to call glFramebufferRenderbufferEXT() without "
10812 "current GL context";
10813 LOG(ERROR
) << "Trying to call glFramebufferRenderbufferEXT() without current "
10817 void NoContextGLApi::glFramebufferTexture2DEXTFn(GLenum target
,
10822 NOTREACHED() << "Trying to call glFramebufferTexture2DEXT() without current "
10824 LOG(ERROR
) << "Trying to call glFramebufferTexture2DEXT() without current GL "
10828 void NoContextGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target
,
10834 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleEXT() "
10835 "without current GL context";
10836 LOG(ERROR
) << "Trying to call glFramebufferTexture2DMultisampleEXT() without "
10837 "current GL context";
10840 void NoContextGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target
,
10846 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleIMG() "
10847 "without current GL context";
10848 LOG(ERROR
) << "Trying to call glFramebufferTexture2DMultisampleIMG() without "
10849 "current GL context";
10852 void NoContextGLApi::glFramebufferTextureLayerFn(GLenum target
,
10857 NOTREACHED() << "Trying to call glFramebufferTextureLayer() without current "
10859 LOG(ERROR
) << "Trying to call glFramebufferTextureLayer() without current GL "
10863 void NoContextGLApi::glFrontFaceFn(GLenum mode
) {
10864 NOTREACHED() << "Trying to call glFrontFace() without current GL context";
10865 LOG(ERROR
) << "Trying to call glFrontFace() without current GL context";
10868 void NoContextGLApi::glGenBuffersARBFn(GLsizei n
, GLuint
* buffers
) {
10869 NOTREACHED() << "Trying to call glGenBuffersARB() without current GL context";
10870 LOG(ERROR
) << "Trying to call glGenBuffersARB() without current GL context";
10873 void NoContextGLApi::glGenerateMipmapEXTFn(GLenum target
) {
10875 << "Trying to call glGenerateMipmapEXT() without current GL context";
10877 << "Trying to call glGenerateMipmapEXT() without current GL context";
10880 void NoContextGLApi::glGenFencesAPPLEFn(GLsizei n
, GLuint
* fences
) {
10882 << "Trying to call glGenFencesAPPLE() without current GL context";
10883 LOG(ERROR
) << "Trying to call glGenFencesAPPLE() without current GL context";
10886 void NoContextGLApi::glGenFencesNVFn(GLsizei n
, GLuint
* fences
) {
10887 NOTREACHED() << "Trying to call glGenFencesNV() without current GL context";
10888 LOG(ERROR
) << "Trying to call glGenFencesNV() without current GL context";
10891 void NoContextGLApi::glGenFramebuffersEXTFn(GLsizei n
, GLuint
* framebuffers
) {
10893 << "Trying to call glGenFramebuffersEXT() without current GL context";
10895 << "Trying to call glGenFramebuffersEXT() without current GL context";
10898 GLuint
NoContextGLApi::glGenPathsNVFn(GLsizei range
) {
10899 NOTREACHED() << "Trying to call glGenPathsNV() without current GL context";
10900 LOG(ERROR
) << "Trying to call glGenPathsNV() without current GL context";
10904 void NoContextGLApi::glGenQueriesFn(GLsizei n
, GLuint
* ids
) {
10905 NOTREACHED() << "Trying to call glGenQueries() without current GL context";
10906 LOG(ERROR
) << "Trying to call glGenQueries() without current GL context";
10909 void NoContextGLApi::glGenRenderbuffersEXTFn(GLsizei n
, GLuint
* renderbuffers
) {
10911 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10913 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10916 void NoContextGLApi::glGenSamplersFn(GLsizei n
, GLuint
* samplers
) {
10917 NOTREACHED() << "Trying to call glGenSamplers() without current GL context";
10918 LOG(ERROR
) << "Trying to call glGenSamplers() without current GL context";
10921 void NoContextGLApi::glGenTexturesFn(GLsizei n
, GLuint
* textures
) {
10922 NOTREACHED() << "Trying to call glGenTextures() without current GL context";
10923 LOG(ERROR
) << "Trying to call glGenTextures() without current GL context";
10926 void NoContextGLApi::glGenTransformFeedbacksFn(GLsizei n
, GLuint
* ids
) {
10928 << "Trying to call glGenTransformFeedbacks() without current GL context";
10930 << "Trying to call glGenTransformFeedbacks() without current GL context";
10933 void NoContextGLApi::glGenVertexArraysOESFn(GLsizei n
, GLuint
* arrays
) {
10935 << "Trying to call glGenVertexArraysOES() without current GL context";
10937 << "Trying to call glGenVertexArraysOES() without current GL context";
10940 void NoContextGLApi::glGetActiveAttribFn(GLuint program
,
10948 << "Trying to call glGetActiveAttrib() without current GL context";
10949 LOG(ERROR
) << "Trying to call glGetActiveAttrib() without current GL context";
10952 void NoContextGLApi::glGetActiveUniformFn(GLuint program
,
10960 << "Trying to call glGetActiveUniform() without current GL context";
10962 << "Trying to call glGetActiveUniform() without current GL context";
10965 void NoContextGLApi::glGetActiveUniformBlockivFn(GLuint program
,
10966 GLuint uniformBlockIndex
,
10969 NOTREACHED() << "Trying to call glGetActiveUniformBlockiv() without current "
10971 LOG(ERROR
) << "Trying to call glGetActiveUniformBlockiv() without current GL "
10975 void NoContextGLApi::glGetActiveUniformBlockNameFn(GLuint program
,
10976 GLuint uniformBlockIndex
,
10979 char* uniformBlockName
) {
10980 NOTREACHED() << "Trying to call glGetActiveUniformBlockName() without "
10981 "current GL context";
10982 LOG(ERROR
) << "Trying to call glGetActiveUniformBlockName() without current "
10986 void NoContextGLApi::glGetActiveUniformsivFn(GLuint program
,
10987 GLsizei uniformCount
,
10988 const GLuint
* uniformIndices
,
10992 << "Trying to call glGetActiveUniformsiv() without current GL context";
10994 << "Trying to call glGetActiveUniformsiv() without current GL context";
10997 void NoContextGLApi::glGetAttachedShadersFn(GLuint program
,
11002 << "Trying to call glGetAttachedShaders() without current GL context";
11004 << "Trying to call glGetAttachedShaders() without current GL context";
11007 GLint
NoContextGLApi::glGetAttribLocationFn(GLuint program
, const char* name
) {
11009 << "Trying to call glGetAttribLocation() without current GL context";
11011 << "Trying to call glGetAttribLocation() without current GL context";
11015 void NoContextGLApi::glGetBooleanvFn(GLenum pname
, GLboolean
* params
) {
11016 NOTREACHED() << "Trying to call glGetBooleanv() without current GL context";
11017 LOG(ERROR
) << "Trying to call glGetBooleanv() without current GL context";
11020 void NoContextGLApi::glGetBufferParameterivFn(GLenum target
,
11024 << "Trying to call glGetBufferParameteriv() without current GL context";
11026 << "Trying to call glGetBufferParameteriv() without current GL context";
11029 GLenum
NoContextGLApi::glGetErrorFn(void) {
11030 NOTREACHED() << "Trying to call glGetError() without current GL context";
11031 LOG(ERROR
) << "Trying to call glGetError() without current GL context";
11032 return static_cast<GLenum
>(0);
11035 void NoContextGLApi::glGetFenceivNVFn(GLuint fence
,
11038 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context";
11039 LOG(ERROR
) << "Trying to call glGetFenceivNV() without current GL context";
11042 void NoContextGLApi::glGetFloatvFn(GLenum pname
, GLfloat
* params
) {
11043 NOTREACHED() << "Trying to call glGetFloatv() without current GL context";
11044 LOG(ERROR
) << "Trying to call glGetFloatv() without current GL context";
11047 GLint
NoContextGLApi::glGetFragDataLocationFn(GLuint program
,
11048 const char* name
) {
11050 << "Trying to call glGetFragDataLocation() without current GL context";
11052 << "Trying to call glGetFragDataLocation() without current GL context";
11056 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn(
11061 NOTREACHED() << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
11062 "without current GL context";
11063 LOG(ERROR
) << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
11064 "without current GL context";
11067 GLenum
NoContextGLApi::glGetGraphicsResetStatusARBFn(void) {
11068 NOTREACHED() << "Trying to call glGetGraphicsResetStatusARB() without "
11069 "current GL context";
11070 LOG(ERROR
) << "Trying to call glGetGraphicsResetStatusARB() without current "
11072 return static_cast<GLenum
>(0);
11075 void NoContextGLApi::glGetInteger64i_vFn(GLenum target
,
11079 << "Trying to call glGetInteger64i_v() without current GL context";
11080 LOG(ERROR
) << "Trying to call glGetInteger64i_v() without current GL context";
11083 void NoContextGLApi::glGetInteger64vFn(GLenum pname
, GLint64
* params
) {
11084 NOTREACHED() << "Trying to call glGetInteger64v() without current GL context";
11085 LOG(ERROR
) << "Trying to call glGetInteger64v() without current GL context";
11088 void NoContextGLApi::glGetIntegeri_vFn(GLenum target
,
11091 NOTREACHED() << "Trying to call glGetIntegeri_v() without current GL context";
11092 LOG(ERROR
) << "Trying to call glGetIntegeri_v() without current GL context";
11095 void NoContextGLApi::glGetIntegervFn(GLenum pname
, GLint
* params
) {
11096 NOTREACHED() << "Trying to call glGetIntegerv() without current GL context";
11097 LOG(ERROR
) << "Trying to call glGetIntegerv() without current GL context";
11100 void NoContextGLApi::glGetInternalformativFn(GLenum target
,
11101 GLenum internalformat
,
11106 << "Trying to call glGetInternalformativ() without current GL context";
11108 << "Trying to call glGetInternalformativ() without current GL context";
11111 void NoContextGLApi::glGetProgramBinaryFn(GLuint program
,
11114 GLenum
* binaryFormat
,
11117 << "Trying to call glGetProgramBinary() without current GL context";
11119 << "Trying to call glGetProgramBinary() without current GL context";
11122 void NoContextGLApi::glGetProgramInfoLogFn(GLuint program
,
11127 << "Trying to call glGetProgramInfoLog() without current GL context";
11129 << "Trying to call glGetProgramInfoLog() without current GL context";
11132 void NoContextGLApi::glGetProgramivFn(GLuint program
,
11135 NOTREACHED() << "Trying to call glGetProgramiv() without current GL context";
11136 LOG(ERROR
) << "Trying to call glGetProgramiv() without current GL context";
11139 GLint
NoContextGLApi::glGetProgramResourceLocationFn(GLuint program
,
11140 GLenum programInterface
,
11141 const char* name
) {
11142 NOTREACHED() << "Trying to call glGetProgramResourceLocation() without "
11143 "current GL context";
11144 LOG(ERROR
) << "Trying to call glGetProgramResourceLocation() without current "
11149 void NoContextGLApi::glGetQueryivFn(GLenum target
,
11152 NOTREACHED() << "Trying to call glGetQueryiv() without current GL context";
11153 LOG(ERROR
) << "Trying to call glGetQueryiv() without current GL context";
11156 void NoContextGLApi::glGetQueryObjecti64vFn(GLuint id
,
11160 << "Trying to call glGetQueryObjecti64v() without current GL context";
11162 << "Trying to call glGetQueryObjecti64v() without current GL context";
11165 void NoContextGLApi::glGetQueryObjectivFn(GLuint id
,
11169 << "Trying to call glGetQueryObjectiv() without current GL context";
11171 << "Trying to call glGetQueryObjectiv() without current GL context";
11174 void NoContextGLApi::glGetQueryObjectui64vFn(GLuint id
,
11176 GLuint64
* params
) {
11178 << "Trying to call glGetQueryObjectui64v() without current GL context";
11180 << "Trying to call glGetQueryObjectui64v() without current GL context";
11183 void NoContextGLApi::glGetQueryObjectuivFn(GLuint id
,
11187 << "Trying to call glGetQueryObjectuiv() without current GL context";
11189 << "Trying to call glGetQueryObjectuiv() without current GL context";
11192 void NoContextGLApi::glGetRenderbufferParameterivEXTFn(GLenum target
,
11195 NOTREACHED() << "Trying to call glGetRenderbufferParameterivEXT() without "
11196 "current GL context";
11197 LOG(ERROR
) << "Trying to call glGetRenderbufferParameterivEXT() without "
11198 "current GL context";
11201 void NoContextGLApi::glGetSamplerParameterfvFn(GLuint sampler
,
11205 << "Trying to call glGetSamplerParameterfv() without current GL context";
11207 << "Trying to call glGetSamplerParameterfv() without current GL context";
11210 void NoContextGLApi::glGetSamplerParameterivFn(GLuint sampler
,
11214 << "Trying to call glGetSamplerParameteriv() without current GL context";
11216 << "Trying to call glGetSamplerParameteriv() without current GL context";
11219 void NoContextGLApi::glGetShaderInfoLogFn(GLuint shader
,
11224 << "Trying to call glGetShaderInfoLog() without current GL context";
11226 << "Trying to call glGetShaderInfoLog() without current GL context";
11229 void NoContextGLApi::glGetShaderivFn(GLuint shader
,
11232 NOTREACHED() << "Trying to call glGetShaderiv() without current GL context";
11233 LOG(ERROR
) << "Trying to call glGetShaderiv() without current GL context";
11236 void NoContextGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype
,
11237 GLenum precisiontype
,
11239 GLint
* precision
) {
11240 NOTREACHED() << "Trying to call glGetShaderPrecisionFormat() without current "
11242 LOG(ERROR
) << "Trying to call glGetShaderPrecisionFormat() without current "
11246 void NoContextGLApi::glGetShaderSourceFn(GLuint shader
,
11251 << "Trying to call glGetShaderSource() without current GL context";
11252 LOG(ERROR
) << "Trying to call glGetShaderSource() without current GL context";
11255 const GLubyte
* NoContextGLApi::glGetStringFn(GLenum name
) {
11256 NOTREACHED() << "Trying to call glGetString() without current GL context";
11257 LOG(ERROR
) << "Trying to call glGetString() without current GL context";
11261 const GLubyte
* NoContextGLApi::glGetStringiFn(GLenum name
, GLuint index
) {
11262 NOTREACHED() << "Trying to call glGetStringi() without current GL context";
11263 LOG(ERROR
) << "Trying to call glGetStringi() without current GL context";
11267 void NoContextGLApi::glGetSyncivFn(GLsync sync
,
11272 NOTREACHED() << "Trying to call glGetSynciv() without current GL context";
11273 LOG(ERROR
) << "Trying to call glGetSynciv() without current GL context";
11276 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target
,
11281 << "Trying to call glGetTexLevelParameterfv() without current GL context";
11283 << "Trying to call glGetTexLevelParameterfv() without current GL context";
11286 void NoContextGLApi::glGetTexLevelParameterivFn(GLenum target
,
11291 << "Trying to call glGetTexLevelParameteriv() without current GL context";
11293 << "Trying to call glGetTexLevelParameteriv() without current GL context";
11296 void NoContextGLApi::glGetTexParameterfvFn(GLenum target
,
11300 << "Trying to call glGetTexParameterfv() without current GL context";
11302 << "Trying to call glGetTexParameterfv() without current GL context";
11305 void NoContextGLApi::glGetTexParameterivFn(GLenum target
,
11309 << "Trying to call glGetTexParameteriv() without current GL context";
11311 << "Trying to call glGetTexParameteriv() without current GL context";
11314 void NoContextGLApi::glGetTransformFeedbackVaryingFn(GLuint program
,
11321 NOTREACHED() << "Trying to call glGetTransformFeedbackVarying() without "
11322 "current GL context";
11323 LOG(ERROR
) << "Trying to call glGetTransformFeedbackVarying() without "
11324 "current GL context";
11327 void NoContextGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader
,
11331 NOTREACHED() << "Trying to call glGetTranslatedShaderSourceANGLE() without "
11332 "current GL context";
11333 LOG(ERROR
) << "Trying to call glGetTranslatedShaderSourceANGLE() without "
11334 "current GL context";
11337 GLuint
NoContextGLApi::glGetUniformBlockIndexFn(GLuint program
,
11338 const char* uniformBlockName
) {
11340 << "Trying to call glGetUniformBlockIndex() without current GL context";
11342 << "Trying to call glGetUniformBlockIndex() without current GL context";
11346 void NoContextGLApi::glGetUniformfvFn(GLuint program
,
11349 NOTREACHED() << "Trying to call glGetUniformfv() without current GL context";
11350 LOG(ERROR
) << "Trying to call glGetUniformfv() without current GL context";
11353 void NoContextGLApi::glGetUniformIndicesFn(GLuint program
,
11354 GLsizei uniformCount
,
11355 const char* const* uniformNames
,
11356 GLuint
* uniformIndices
) {
11358 << "Trying to call glGetUniformIndices() without current GL context";
11360 << "Trying to call glGetUniformIndices() without current GL context";
11363 void NoContextGLApi::glGetUniformivFn(GLuint program
,
11366 NOTREACHED() << "Trying to call glGetUniformiv() without current GL context";
11367 LOG(ERROR
) << "Trying to call glGetUniformiv() without current GL context";
11370 GLint
NoContextGLApi::glGetUniformLocationFn(GLuint program
, const char* name
) {
11372 << "Trying to call glGetUniformLocation() without current GL context";
11374 << "Trying to call glGetUniformLocation() without current GL context";
11378 void NoContextGLApi::glGetUniformuivFn(GLuint program
,
11381 NOTREACHED() << "Trying to call glGetUniformuiv() without current GL context";
11382 LOG(ERROR
) << "Trying to call glGetUniformuiv() without current GL context";
11385 void NoContextGLApi::glGetVertexAttribfvFn(GLuint index
,
11389 << "Trying to call glGetVertexAttribfv() without current GL context";
11391 << "Trying to call glGetVertexAttribfv() without current GL context";
11394 void NoContextGLApi::glGetVertexAttribivFn(GLuint index
,
11398 << "Trying to call glGetVertexAttribiv() without current GL context";
11400 << "Trying to call glGetVertexAttribiv() without current GL context";
11403 void NoContextGLApi::glGetVertexAttribPointervFn(GLuint index
,
11406 NOTREACHED() << "Trying to call glGetVertexAttribPointerv() without current "
11408 LOG(ERROR
) << "Trying to call glGetVertexAttribPointerv() without current GL "
11412 void NoContextGLApi::glHintFn(GLenum target
, GLenum mode
) {
11413 NOTREACHED() << "Trying to call glHint() without current GL context";
11414 LOG(ERROR
) << "Trying to call glHint() without current GL context";
11417 void NoContextGLApi::glInsertEventMarkerEXTFn(GLsizei length
,
11418 const char* marker
) {
11420 << "Trying to call glInsertEventMarkerEXT() without current GL context";
11422 << "Trying to call glInsertEventMarkerEXT() without current GL context";
11425 void NoContextGLApi::glInvalidateFramebufferFn(GLenum target
,
11426 GLsizei numAttachments
,
11427 const GLenum
* attachments
) {
11429 << "Trying to call glInvalidateFramebuffer() without current GL context";
11431 << "Trying to call glInvalidateFramebuffer() without current GL context";
11434 void NoContextGLApi::glInvalidateSubFramebufferFn(GLenum target
,
11435 GLsizei numAttachments
,
11436 const GLenum
* attachments
,
11441 NOTREACHED() << "Trying to call glInvalidateSubFramebuffer() without current "
11443 LOG(ERROR
) << "Trying to call glInvalidateSubFramebuffer() without current "
11447 GLboolean
NoContextGLApi::glIsBufferFn(GLuint buffer
) {
11448 NOTREACHED() << "Trying to call glIsBuffer() without current GL context";
11449 LOG(ERROR
) << "Trying to call glIsBuffer() without current GL context";
11453 GLboolean
NoContextGLApi::glIsEnabledFn(GLenum cap
) {
11454 NOTREACHED() << "Trying to call glIsEnabled() without current GL context";
11455 LOG(ERROR
) << "Trying to call glIsEnabled() without current GL context";
11459 GLboolean
NoContextGLApi::glIsFenceAPPLEFn(GLuint fence
) {
11460 NOTREACHED() << "Trying to call glIsFenceAPPLE() without current GL context";
11461 LOG(ERROR
) << "Trying to call glIsFenceAPPLE() without current GL context";
11465 GLboolean
NoContextGLApi::glIsFenceNVFn(GLuint fence
) {
11466 NOTREACHED() << "Trying to call glIsFenceNV() without current GL context";
11467 LOG(ERROR
) << "Trying to call glIsFenceNV() without current GL context";
11471 GLboolean
NoContextGLApi::glIsFramebufferEXTFn(GLuint framebuffer
) {
11473 << "Trying to call glIsFramebufferEXT() without current GL context";
11475 << "Trying to call glIsFramebufferEXT() without current GL context";
11479 GLboolean
NoContextGLApi::glIsPathNVFn(GLuint path
) {
11480 NOTREACHED() << "Trying to call glIsPathNV() without current GL context";
11481 LOG(ERROR
) << "Trying to call glIsPathNV() without current GL context";
11485 GLboolean
NoContextGLApi::glIsProgramFn(GLuint program
) {
11486 NOTREACHED() << "Trying to call glIsProgram() without current GL context";
11487 LOG(ERROR
) << "Trying to call glIsProgram() without current GL context";
11491 GLboolean
NoContextGLApi::glIsQueryFn(GLuint query
) {
11492 NOTREACHED() << "Trying to call glIsQuery() without current GL context";
11493 LOG(ERROR
) << "Trying to call glIsQuery() without current GL context";
11497 GLboolean
NoContextGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer
) {
11499 << "Trying to call glIsRenderbufferEXT() without current GL context";
11501 << "Trying to call glIsRenderbufferEXT() without current GL context";
11505 GLboolean
NoContextGLApi::glIsSamplerFn(GLuint sampler
) {
11506 NOTREACHED() << "Trying to call glIsSampler() without current GL context";
11507 LOG(ERROR
) << "Trying to call glIsSampler() without current GL context";
11511 GLboolean
NoContextGLApi::glIsShaderFn(GLuint shader
) {
11512 NOTREACHED() << "Trying to call glIsShader() without current GL context";
11513 LOG(ERROR
) << "Trying to call glIsShader() without current GL context";
11517 GLboolean
NoContextGLApi::glIsSyncFn(GLsync sync
) {
11518 NOTREACHED() << "Trying to call glIsSync() without current GL context";
11519 LOG(ERROR
) << "Trying to call glIsSync() without current GL context";
11523 GLboolean
NoContextGLApi::glIsTextureFn(GLuint texture
) {
11524 NOTREACHED() << "Trying to call glIsTexture() without current GL context";
11525 LOG(ERROR
) << "Trying to call glIsTexture() without current GL context";
11529 GLboolean
NoContextGLApi::glIsTransformFeedbackFn(GLuint id
) {
11531 << "Trying to call glIsTransformFeedback() without current GL context";
11533 << "Trying to call glIsTransformFeedback() without current GL context";
11537 GLboolean
NoContextGLApi::glIsVertexArrayOESFn(GLuint array
) {
11539 << "Trying to call glIsVertexArrayOES() without current GL context";
11541 << "Trying to call glIsVertexArrayOES() without current GL context";
11545 void NoContextGLApi::glLineWidthFn(GLfloat width
) {
11546 NOTREACHED() << "Trying to call glLineWidth() without current GL context";
11547 LOG(ERROR
) << "Trying to call glLineWidth() without current GL context";
11550 void NoContextGLApi::glLinkProgramFn(GLuint program
) {
11551 NOTREACHED() << "Trying to call glLinkProgram() without current GL context";
11552 LOG(ERROR
) << "Trying to call glLinkProgram() without current GL context";
11555 void* NoContextGLApi::glMapBufferFn(GLenum target
, GLenum access
) {
11556 NOTREACHED() << "Trying to call glMapBuffer() without current GL context";
11557 LOG(ERROR
) << "Trying to call glMapBuffer() without current GL context";
11561 void* NoContextGLApi::glMapBufferRangeFn(GLenum target
,
11564 GLbitfield access
) {
11566 << "Trying to call glMapBufferRange() without current GL context";
11567 LOG(ERROR
) << "Trying to call glMapBufferRange() without current GL context";
11571 void NoContextGLApi::glMatrixLoadfEXTFn(GLenum matrixMode
, const GLfloat
* m
) {
11573 << "Trying to call glMatrixLoadfEXT() without current GL context";
11574 LOG(ERROR
) << "Trying to call glMatrixLoadfEXT() without current GL context";
11577 void NoContextGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode
) {
11579 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
11581 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
11584 void NoContextGLApi::glPathCommandsNVFn(GLuint path
,
11585 GLsizei numCommands
,
11586 const GLubyte
* commands
,
11589 const GLvoid
* coords
) {
11591 << "Trying to call glPathCommandsNV() without current GL context";
11592 LOG(ERROR
) << "Trying to call glPathCommandsNV() without current GL context";
11595 void NoContextGLApi::glPathParameterfNVFn(GLuint path
,
11599 << "Trying to call glPathParameterfNV() without current GL context";
11601 << "Trying to call glPathParameterfNV() without current GL context";
11604 void NoContextGLApi::glPathParameteriNVFn(GLuint path
,
11608 << "Trying to call glPathParameteriNV() without current GL context";
11610 << "Trying to call glPathParameteriNV() without current GL context";
11613 void NoContextGLApi::glPathStencilFuncNVFn(GLenum func
,
11617 << "Trying to call glPathStencilFuncNV() without current GL context";
11619 << "Trying to call glPathStencilFuncNV() without current GL context";
11622 void NoContextGLApi::glPauseTransformFeedbackFn(void) {
11624 << "Trying to call glPauseTransformFeedback() without current GL context";
11626 << "Trying to call glPauseTransformFeedback() without current GL context";
11629 void NoContextGLApi::glPixelStoreiFn(GLenum pname
, GLint param
) {
11630 NOTREACHED() << "Trying to call glPixelStorei() without current GL context";
11631 LOG(ERROR
) << "Trying to call glPixelStorei() without current GL context";
11634 void NoContextGLApi::glPointParameteriFn(GLenum pname
, GLint param
) {
11636 << "Trying to call glPointParameteri() without current GL context";
11637 LOG(ERROR
) << "Trying to call glPointParameteri() without current GL context";
11640 void NoContextGLApi::glPolygonOffsetFn(GLfloat factor
, GLfloat units
) {
11641 NOTREACHED() << "Trying to call glPolygonOffset() without current GL context";
11642 LOG(ERROR
) << "Trying to call glPolygonOffset() without current GL context";
11645 void NoContextGLApi::glPopGroupMarkerEXTFn(void) {
11647 << "Trying to call glPopGroupMarkerEXT() without current GL context";
11649 << "Trying to call glPopGroupMarkerEXT() without current GL context";
11652 void NoContextGLApi::glProgramBinaryFn(GLuint program
,
11653 GLenum binaryFormat
,
11654 const GLvoid
* binary
,
11656 NOTREACHED() << "Trying to call glProgramBinary() without current GL context";
11657 LOG(ERROR
) << "Trying to call glProgramBinary() without current GL context";
11660 void NoContextGLApi::glProgramParameteriFn(GLuint program
,
11664 << "Trying to call glProgramParameteri() without current GL context";
11666 << "Trying to call glProgramParameteri() without current GL context";
11669 void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length
,
11670 const char* marker
) {
11672 << "Trying to call glPushGroupMarkerEXT() without current GL context";
11674 << "Trying to call glPushGroupMarkerEXT() without current GL context";
11677 void NoContextGLApi::glQueryCounterFn(GLuint id
, GLenum target
) {
11678 NOTREACHED() << "Trying to call glQueryCounter() without current GL context";
11679 LOG(ERROR
) << "Trying to call glQueryCounter() without current GL context";
11682 void NoContextGLApi::glReadBufferFn(GLenum src
) {
11683 NOTREACHED() << "Trying to call glReadBuffer() without current GL context";
11684 LOG(ERROR
) << "Trying to call glReadBuffer() without current GL context";
11687 void NoContextGLApi::glReadPixelsFn(GLint x
,
11694 NOTREACHED() << "Trying to call glReadPixels() without current GL context";
11695 LOG(ERROR
) << "Trying to call glReadPixels() without current GL context";
11698 void NoContextGLApi::glReleaseShaderCompilerFn(void) {
11700 << "Trying to call glReleaseShaderCompiler() without current GL context";
11702 << "Trying to call glReleaseShaderCompiler() without current GL context";
11705 void NoContextGLApi::glRenderbufferStorageEXTFn(GLenum target
,
11706 GLenum internalformat
,
11710 << "Trying to call glRenderbufferStorageEXT() without current GL context";
11712 << "Trying to call glRenderbufferStorageEXT() without current GL context";
11715 void NoContextGLApi::glRenderbufferStorageMultisampleFn(GLenum target
,
11717 GLenum internalformat
,
11720 NOTREACHED() << "Trying to call glRenderbufferStorageMultisample() without "
11721 "current GL context";
11722 LOG(ERROR
) << "Trying to call glRenderbufferStorageMultisample() without "
11723 "current GL context";
11726 void NoContextGLApi::glRenderbufferStorageMultisampleANGLEFn(
11729 GLenum internalformat
,
11732 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleANGLE() "
11733 "without current GL context";
11734 LOG(ERROR
) << "Trying to call glRenderbufferStorageMultisampleANGLE() "
11735 "without current GL context";
11738 void NoContextGLApi::glRenderbufferStorageMultisampleEXTFn(
11741 GLenum internalformat
,
11744 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleEXT() "
11745 "without current GL context";
11746 LOG(ERROR
) << "Trying to call glRenderbufferStorageMultisampleEXT() without "
11747 "current GL context";
11750 void NoContextGLApi::glRenderbufferStorageMultisampleIMGFn(
11753 GLenum internalformat
,
11756 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleIMG() "
11757 "without current GL context";
11758 LOG(ERROR
) << "Trying to call glRenderbufferStorageMultisampleIMG() without "
11759 "current GL context";
11762 void NoContextGLApi::glResumeTransformFeedbackFn(void) {
11763 NOTREACHED() << "Trying to call glResumeTransformFeedback() without current "
11765 LOG(ERROR
) << "Trying to call glResumeTransformFeedback() without current GL "
11769 void NoContextGLApi::glSampleCoverageFn(GLclampf value
, GLboolean invert
) {
11771 << "Trying to call glSampleCoverage() without current GL context";
11772 LOG(ERROR
) << "Trying to call glSampleCoverage() without current GL context";
11775 void NoContextGLApi::glSamplerParameterfFn(GLuint sampler
,
11779 << "Trying to call glSamplerParameterf() without current GL context";
11781 << "Trying to call glSamplerParameterf() without current GL context";
11784 void NoContextGLApi::glSamplerParameterfvFn(GLuint sampler
,
11786 const GLfloat
* params
) {
11788 << "Trying to call glSamplerParameterfv() without current GL context";
11790 << "Trying to call glSamplerParameterfv() without current GL context";
11793 void NoContextGLApi::glSamplerParameteriFn(GLuint sampler
,
11797 << "Trying to call glSamplerParameteri() without current GL context";
11799 << "Trying to call glSamplerParameteri() without current GL context";
11802 void NoContextGLApi::glSamplerParameterivFn(GLuint sampler
,
11804 const GLint
* params
) {
11806 << "Trying to call glSamplerParameteriv() without current GL context";
11808 << "Trying to call glSamplerParameteriv() without current GL context";
11811 void NoContextGLApi::glScissorFn(GLint x
,
11815 NOTREACHED() << "Trying to call glScissor() without current GL context";
11816 LOG(ERROR
) << "Trying to call glScissor() without current GL context";
11819 void NoContextGLApi::glSetFenceAPPLEFn(GLuint fence
) {
11820 NOTREACHED() << "Trying to call glSetFenceAPPLE() without current GL context";
11821 LOG(ERROR
) << "Trying to call glSetFenceAPPLE() without current GL context";
11824 void NoContextGLApi::glSetFenceNVFn(GLuint fence
, GLenum condition
) {
11825 NOTREACHED() << "Trying to call glSetFenceNV() without current GL context";
11826 LOG(ERROR
) << "Trying to call glSetFenceNV() without current GL context";
11829 void NoContextGLApi::glShaderBinaryFn(GLsizei n
,
11830 const GLuint
* shaders
,
11831 GLenum binaryformat
,
11832 const void* binary
,
11834 NOTREACHED() << "Trying to call glShaderBinary() without current GL context";
11835 LOG(ERROR
) << "Trying to call glShaderBinary() without current GL context";
11838 void NoContextGLApi::glShaderSourceFn(GLuint shader
,
11840 const char* const* str
,
11841 const GLint
* length
) {
11842 NOTREACHED() << "Trying to call glShaderSource() without current GL context";
11843 LOG(ERROR
) << "Trying to call glShaderSource() without current GL context";
11846 void NoContextGLApi::glStencilFillPathNVFn(GLuint path
,
11850 << "Trying to call glStencilFillPathNV() without current GL context";
11852 << "Trying to call glStencilFillPathNV() without current GL context";
11855 void NoContextGLApi::glStencilFuncFn(GLenum func
, GLint ref
, GLuint mask
) {
11856 NOTREACHED() << "Trying to call glStencilFunc() without current GL context";
11857 LOG(ERROR
) << "Trying to call glStencilFunc() without current GL context";
11860 void NoContextGLApi::glStencilFuncSeparateFn(GLenum face
,
11865 << "Trying to call glStencilFuncSeparate() without current GL context";
11867 << "Trying to call glStencilFuncSeparate() without current GL context";
11870 void NoContextGLApi::glStencilMaskFn(GLuint mask
) {
11871 NOTREACHED() << "Trying to call glStencilMask() without current GL context";
11872 LOG(ERROR
) << "Trying to call glStencilMask() without current GL context";
11875 void NoContextGLApi::glStencilMaskSeparateFn(GLenum face
, GLuint mask
) {
11877 << "Trying to call glStencilMaskSeparate() without current GL context";
11879 << "Trying to call glStencilMaskSeparate() without current GL context";
11882 void NoContextGLApi::glStencilOpFn(GLenum fail
, GLenum zfail
, GLenum zpass
) {
11883 NOTREACHED() << "Trying to call glStencilOp() without current GL context";
11884 LOG(ERROR
) << "Trying to call glStencilOp() without current GL context";
11887 void NoContextGLApi::glStencilOpSeparateFn(GLenum face
,
11892 << "Trying to call glStencilOpSeparate() without current GL context";
11894 << "Trying to call glStencilOpSeparate() without current GL context";
11897 void NoContextGLApi::glStencilStrokePathNVFn(GLuint path
,
11901 << "Trying to call glStencilStrokePathNV() without current GL context";
11903 << "Trying to call glStencilStrokePathNV() without current GL context";
11906 void NoContextGLApi::glStencilThenCoverFillPathNVFn(GLuint path
,
11909 GLenum coverMode
) {
11910 NOTREACHED() << "Trying to call glStencilThenCoverFillPathNV() without "
11911 "current GL context";
11912 LOG(ERROR
) << "Trying to call glStencilThenCoverFillPathNV() without current "
11916 void NoContextGLApi::glStencilThenCoverStrokePathNVFn(GLuint path
,
11919 GLenum coverMode
) {
11920 NOTREACHED() << "Trying to call glStencilThenCoverStrokePathNV() without "
11921 "current GL context";
11922 LOG(ERROR
) << "Trying to call glStencilThenCoverStrokePathNV() without "
11923 "current GL context";
11926 GLboolean
NoContextGLApi::glTestFenceAPPLEFn(GLuint fence
) {
11928 << "Trying to call glTestFenceAPPLE() without current GL context";
11929 LOG(ERROR
) << "Trying to call glTestFenceAPPLE() without current GL context";
11933 GLboolean
NoContextGLApi::glTestFenceNVFn(GLuint fence
) {
11934 NOTREACHED() << "Trying to call glTestFenceNV() without current GL context";
11935 LOG(ERROR
) << "Trying to call glTestFenceNV() without current GL context";
11939 void NoContextGLApi::glTexImage2DFn(GLenum target
,
11941 GLint internalformat
,
11947 const void* pixels
) {
11948 NOTREACHED() << "Trying to call glTexImage2D() without current GL context";
11949 LOG(ERROR
) << "Trying to call glTexImage2D() without current GL context";
11952 void NoContextGLApi::glTexImage3DFn(GLenum target
,
11954 GLint internalformat
,
11961 const void* pixels
) {
11962 NOTREACHED() << "Trying to call glTexImage3D() without current GL context";
11963 LOG(ERROR
) << "Trying to call glTexImage3D() without current GL context";
11966 void NoContextGLApi::glTexParameterfFn(GLenum target
,
11969 NOTREACHED() << "Trying to call glTexParameterf() without current GL context";
11970 LOG(ERROR
) << "Trying to call glTexParameterf() without current GL context";
11973 void NoContextGLApi::glTexParameterfvFn(GLenum target
,
11975 const GLfloat
* params
) {
11977 << "Trying to call glTexParameterfv() without current GL context";
11978 LOG(ERROR
) << "Trying to call glTexParameterfv() without current GL context";
11981 void NoContextGLApi::glTexParameteriFn(GLenum target
,
11984 NOTREACHED() << "Trying to call glTexParameteri() without current GL context";
11985 LOG(ERROR
) << "Trying to call glTexParameteri() without current GL context";
11988 void NoContextGLApi::glTexParameterivFn(GLenum target
,
11990 const GLint
* params
) {
11992 << "Trying to call glTexParameteriv() without current GL context";
11993 LOG(ERROR
) << "Trying to call glTexParameteriv() without current GL context";
11996 void NoContextGLApi::glTexStorage2DEXTFn(GLenum target
,
11998 GLenum internalformat
,
12002 << "Trying to call glTexStorage2DEXT() without current GL context";
12003 LOG(ERROR
) << "Trying to call glTexStorage2DEXT() without current GL context";
12006 void NoContextGLApi::glTexStorage3DFn(GLenum target
,
12008 GLenum internalformat
,
12012 NOTREACHED() << "Trying to call glTexStorage3D() without current GL context";
12013 LOG(ERROR
) << "Trying to call glTexStorage3D() without current GL context";
12016 void NoContextGLApi::glTexSubImage2DFn(GLenum target
,
12024 const void* pixels
) {
12025 NOTREACHED() << "Trying to call glTexSubImage2D() without current GL context";
12026 LOG(ERROR
) << "Trying to call glTexSubImage2D() without current GL context";
12029 void NoContextGLApi::glTexSubImage3DFn(GLenum target
,
12039 const void* pixels
) {
12040 NOTREACHED() << "Trying to call glTexSubImage3D() without current GL context";
12041 LOG(ERROR
) << "Trying to call glTexSubImage3D() without current GL context";
12044 void NoContextGLApi::glTransformFeedbackVaryingsFn(GLuint program
,
12046 const char* const* varyings
,
12047 GLenum bufferMode
) {
12048 NOTREACHED() << "Trying to call glTransformFeedbackVaryings() without "
12049 "current GL context";
12050 LOG(ERROR
) << "Trying to call glTransformFeedbackVaryings() without current "
12054 void NoContextGLApi::glUniform1fFn(GLint location
, GLfloat x
) {
12055 NOTREACHED() << "Trying to call glUniform1f() without current GL context";
12056 LOG(ERROR
) << "Trying to call glUniform1f() without current GL context";
12059 void NoContextGLApi::glUniform1fvFn(GLint location
,
12061 const GLfloat
* v
) {
12062 NOTREACHED() << "Trying to call glUniform1fv() without current GL context";
12063 LOG(ERROR
) << "Trying to call glUniform1fv() without current GL context";
12066 void NoContextGLApi::glUniform1iFn(GLint location
, GLint x
) {
12067 NOTREACHED() << "Trying to call glUniform1i() without current GL context";
12068 LOG(ERROR
) << "Trying to call glUniform1i() without current GL context";
12071 void NoContextGLApi::glUniform1ivFn(GLint location
,
12074 NOTREACHED() << "Trying to call glUniform1iv() without current GL context";
12075 LOG(ERROR
) << "Trying to call glUniform1iv() without current GL context";
12078 void NoContextGLApi::glUniform1uiFn(GLint location
, GLuint v0
) {
12079 NOTREACHED() << "Trying to call glUniform1ui() without current GL context";
12080 LOG(ERROR
) << "Trying to call glUniform1ui() without current GL context";
12083 void NoContextGLApi::glUniform1uivFn(GLint location
,
12086 NOTREACHED() << "Trying to call glUniform1uiv() without current GL context";
12087 LOG(ERROR
) << "Trying to call glUniform1uiv() without current GL context";
12090 void NoContextGLApi::glUniform2fFn(GLint location
, GLfloat x
, GLfloat y
) {
12091 NOTREACHED() << "Trying to call glUniform2f() without current GL context";
12092 LOG(ERROR
) << "Trying to call glUniform2f() without current GL context";
12095 void NoContextGLApi::glUniform2fvFn(GLint location
,
12097 const GLfloat
* v
) {
12098 NOTREACHED() << "Trying to call glUniform2fv() without current GL context";
12099 LOG(ERROR
) << "Trying to call glUniform2fv() without current GL context";
12102 void NoContextGLApi::glUniform2iFn(GLint location
, GLint x
, GLint y
) {
12103 NOTREACHED() << "Trying to call glUniform2i() without current GL context";
12104 LOG(ERROR
) << "Trying to call glUniform2i() without current GL context";
12107 void NoContextGLApi::glUniform2ivFn(GLint location
,
12110 NOTREACHED() << "Trying to call glUniform2iv() without current GL context";
12111 LOG(ERROR
) << "Trying to call glUniform2iv() without current GL context";
12114 void NoContextGLApi::glUniform2uiFn(GLint location
, GLuint v0
, GLuint v1
) {
12115 NOTREACHED() << "Trying to call glUniform2ui() without current GL context";
12116 LOG(ERROR
) << "Trying to call glUniform2ui() without current GL context";
12119 void NoContextGLApi::glUniform2uivFn(GLint location
,
12122 NOTREACHED() << "Trying to call glUniform2uiv() without current GL context";
12123 LOG(ERROR
) << "Trying to call glUniform2uiv() without current GL context";
12126 void NoContextGLApi::glUniform3fFn(GLint location
,
12130 NOTREACHED() << "Trying to call glUniform3f() without current GL context";
12131 LOG(ERROR
) << "Trying to call glUniform3f() without current GL context";
12134 void NoContextGLApi::glUniform3fvFn(GLint location
,
12136 const GLfloat
* v
) {
12137 NOTREACHED() << "Trying to call glUniform3fv() without current GL context";
12138 LOG(ERROR
) << "Trying to call glUniform3fv() without current GL context";
12141 void NoContextGLApi::glUniform3iFn(GLint location
, GLint x
, GLint y
, GLint z
) {
12142 NOTREACHED() << "Trying to call glUniform3i() without current GL context";
12143 LOG(ERROR
) << "Trying to call glUniform3i() without current GL context";
12146 void NoContextGLApi::glUniform3ivFn(GLint location
,
12149 NOTREACHED() << "Trying to call glUniform3iv() without current GL context";
12150 LOG(ERROR
) << "Trying to call glUniform3iv() without current GL context";
12153 void NoContextGLApi::glUniform3uiFn(GLint location
,
12157 NOTREACHED() << "Trying to call glUniform3ui() without current GL context";
12158 LOG(ERROR
) << "Trying to call glUniform3ui() without current GL context";
12161 void NoContextGLApi::glUniform3uivFn(GLint location
,
12164 NOTREACHED() << "Trying to call glUniform3uiv() without current GL context";
12165 LOG(ERROR
) << "Trying to call glUniform3uiv() without current GL context";
12168 void NoContextGLApi::glUniform4fFn(GLint location
,
12173 NOTREACHED() << "Trying to call glUniform4f() without current GL context";
12174 LOG(ERROR
) << "Trying to call glUniform4f() without current GL context";
12177 void NoContextGLApi::glUniform4fvFn(GLint location
,
12179 const GLfloat
* v
) {
12180 NOTREACHED() << "Trying to call glUniform4fv() without current GL context";
12181 LOG(ERROR
) << "Trying to call glUniform4fv() without current GL context";
12184 void NoContextGLApi::glUniform4iFn(GLint location
,
12189 NOTREACHED() << "Trying to call glUniform4i() without current GL context";
12190 LOG(ERROR
) << "Trying to call glUniform4i() without current GL context";
12193 void NoContextGLApi::glUniform4ivFn(GLint location
,
12196 NOTREACHED() << "Trying to call glUniform4iv() without current GL context";
12197 LOG(ERROR
) << "Trying to call glUniform4iv() without current GL context";
12200 void NoContextGLApi::glUniform4uiFn(GLint location
,
12205 NOTREACHED() << "Trying to call glUniform4ui() without current GL context";
12206 LOG(ERROR
) << "Trying to call glUniform4ui() without current GL context";
12209 void NoContextGLApi::glUniform4uivFn(GLint location
,
12212 NOTREACHED() << "Trying to call glUniform4uiv() without current GL context";
12213 LOG(ERROR
) << "Trying to call glUniform4uiv() without current GL context";
12216 void NoContextGLApi::glUniformBlockBindingFn(GLuint program
,
12217 GLuint uniformBlockIndex
,
12218 GLuint uniformBlockBinding
) {
12220 << "Trying to call glUniformBlockBinding() without current GL context";
12222 << "Trying to call glUniformBlockBinding() without current GL context";
12225 void NoContextGLApi::glUniformMatrix2fvFn(GLint location
,
12227 GLboolean transpose
,
12228 const GLfloat
* value
) {
12230 << "Trying to call glUniformMatrix2fv() without current GL context";
12232 << "Trying to call glUniformMatrix2fv() without current GL context";
12235 void NoContextGLApi::glUniformMatrix2x3fvFn(GLint location
,
12237 GLboolean transpose
,
12238 const GLfloat
* value
) {
12240 << "Trying to call glUniformMatrix2x3fv() without current GL context";
12242 << "Trying to call glUniformMatrix2x3fv() without current GL context";
12245 void NoContextGLApi::glUniformMatrix2x4fvFn(GLint location
,
12247 GLboolean transpose
,
12248 const GLfloat
* value
) {
12250 << "Trying to call glUniformMatrix2x4fv() without current GL context";
12252 << "Trying to call glUniformMatrix2x4fv() without current GL context";
12255 void NoContextGLApi::glUniformMatrix3fvFn(GLint location
,
12257 GLboolean transpose
,
12258 const GLfloat
* value
) {
12260 << "Trying to call glUniformMatrix3fv() without current GL context";
12262 << "Trying to call glUniformMatrix3fv() without current GL context";
12265 void NoContextGLApi::glUniformMatrix3x2fvFn(GLint location
,
12267 GLboolean transpose
,
12268 const GLfloat
* value
) {
12270 << "Trying to call glUniformMatrix3x2fv() without current GL context";
12272 << "Trying to call glUniformMatrix3x2fv() without current GL context";
12275 void NoContextGLApi::glUniformMatrix3x4fvFn(GLint location
,
12277 GLboolean transpose
,
12278 const GLfloat
* value
) {
12280 << "Trying to call glUniformMatrix3x4fv() without current GL context";
12282 << "Trying to call glUniformMatrix3x4fv() without current GL context";
12285 void NoContextGLApi::glUniformMatrix4fvFn(GLint location
,
12287 GLboolean transpose
,
12288 const GLfloat
* value
) {
12290 << "Trying to call glUniformMatrix4fv() without current GL context";
12292 << "Trying to call glUniformMatrix4fv() without current GL context";
12295 void NoContextGLApi::glUniformMatrix4x2fvFn(GLint location
,
12297 GLboolean transpose
,
12298 const GLfloat
* value
) {
12300 << "Trying to call glUniformMatrix4x2fv() without current GL context";
12302 << "Trying to call glUniformMatrix4x2fv() without current GL context";
12305 void NoContextGLApi::glUniformMatrix4x3fvFn(GLint location
,
12307 GLboolean transpose
,
12308 const GLfloat
* value
) {
12310 << "Trying to call glUniformMatrix4x3fv() without current GL context";
12312 << "Trying to call glUniformMatrix4x3fv() without current GL context";
12315 GLboolean
NoContextGLApi::glUnmapBufferFn(GLenum target
) {
12316 NOTREACHED() << "Trying to call glUnmapBuffer() without current GL context";
12317 LOG(ERROR
) << "Trying to call glUnmapBuffer() without current GL context";
12321 void NoContextGLApi::glUseProgramFn(GLuint program
) {
12322 NOTREACHED() << "Trying to call glUseProgram() without current GL context";
12323 LOG(ERROR
) << "Trying to call glUseProgram() without current GL context";
12326 void NoContextGLApi::glValidateProgramFn(GLuint program
) {
12328 << "Trying to call glValidateProgram() without current GL context";
12329 LOG(ERROR
) << "Trying to call glValidateProgram() without current GL context";
12332 void NoContextGLApi::glVertexAttrib1fFn(GLuint indx
, GLfloat x
) {
12334 << "Trying to call glVertexAttrib1f() without current GL context";
12335 LOG(ERROR
) << "Trying to call glVertexAttrib1f() without current GL context";
12338 void NoContextGLApi::glVertexAttrib1fvFn(GLuint indx
, const GLfloat
* values
) {
12340 << "Trying to call glVertexAttrib1fv() without current GL context";
12341 LOG(ERROR
) << "Trying to call glVertexAttrib1fv() without current GL context";
12344 void NoContextGLApi::glVertexAttrib2fFn(GLuint indx
, GLfloat x
, GLfloat y
) {
12346 << "Trying to call glVertexAttrib2f() without current GL context";
12347 LOG(ERROR
) << "Trying to call glVertexAttrib2f() without current GL context";
12350 void NoContextGLApi::glVertexAttrib2fvFn(GLuint indx
, const GLfloat
* values
) {
12352 << "Trying to call glVertexAttrib2fv() without current GL context";
12353 LOG(ERROR
) << "Trying to call glVertexAttrib2fv() without current GL context";
12356 void NoContextGLApi::glVertexAttrib3fFn(GLuint indx
,
12361 << "Trying to call glVertexAttrib3f() without current GL context";
12362 LOG(ERROR
) << "Trying to call glVertexAttrib3f() without current GL context";
12365 void NoContextGLApi::glVertexAttrib3fvFn(GLuint indx
, const GLfloat
* values
) {
12367 << "Trying to call glVertexAttrib3fv() without current GL context";
12368 LOG(ERROR
) << "Trying to call glVertexAttrib3fv() without current GL context";
12371 void NoContextGLApi::glVertexAttrib4fFn(GLuint indx
,
12377 << "Trying to call glVertexAttrib4f() without current GL context";
12378 LOG(ERROR
) << "Trying to call glVertexAttrib4f() without current GL context";
12381 void NoContextGLApi::glVertexAttrib4fvFn(GLuint indx
, const GLfloat
* values
) {
12383 << "Trying to call glVertexAttrib4fv() without current GL context";
12384 LOG(ERROR
) << "Trying to call glVertexAttrib4fv() without current GL context";
12387 void NoContextGLApi::glVertexAttribDivisorANGLEFn(GLuint index
,
12389 NOTREACHED() << "Trying to call glVertexAttribDivisorANGLE() without current "
12391 LOG(ERROR
) << "Trying to call glVertexAttribDivisorANGLE() without current "
12395 void NoContextGLApi::glVertexAttribI4iFn(GLuint indx
,
12401 << "Trying to call glVertexAttribI4i() without current GL context";
12402 LOG(ERROR
) << "Trying to call glVertexAttribI4i() without current GL context";
12405 void NoContextGLApi::glVertexAttribI4ivFn(GLuint indx
, const GLint
* values
) {
12407 << "Trying to call glVertexAttribI4iv() without current GL context";
12409 << "Trying to call glVertexAttribI4iv() without current GL context";
12412 void NoContextGLApi::glVertexAttribI4uiFn(GLuint indx
,
12418 << "Trying to call glVertexAttribI4ui() without current GL context";
12420 << "Trying to call glVertexAttribI4ui() without current GL context";
12423 void NoContextGLApi::glVertexAttribI4uivFn(GLuint indx
, const GLuint
* values
) {
12425 << "Trying to call glVertexAttribI4uiv() without current GL context";
12427 << "Trying to call glVertexAttribI4uiv() without current GL context";
12430 void NoContextGLApi::glVertexAttribIPointerFn(GLuint indx
,
12436 << "Trying to call glVertexAttribIPointer() without current GL context";
12438 << "Trying to call glVertexAttribIPointer() without current GL context";
12441 void NoContextGLApi::glVertexAttribPointerFn(GLuint indx
,
12444 GLboolean normalized
,
12448 << "Trying to call glVertexAttribPointer() without current GL context";
12450 << "Trying to call glVertexAttribPointer() without current GL context";
12453 void NoContextGLApi::glViewportFn(GLint x
,
12457 NOTREACHED() << "Trying to call glViewport() without current GL context";
12458 LOG(ERROR
) << "Trying to call glViewport() without current GL context";
12461 GLenum
NoContextGLApi::glWaitSyncFn(GLsync sync
,
12463 GLuint64 timeout
) {
12464 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
12465 LOG(ERROR
) << "Trying to call glWaitSync() without current GL context";
12466 return static_cast<GLenum
>(0);