Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / gl / gl_bindings_autogen_gl.cc
blobc80729b08838ca118fd5cf140ee183d1e475b53d
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.
4 //
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
9 // DO NOT EDIT!
11 #include <string>
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"
21 namespace gfx {
23 static bool g_debugBindingsInitialized;
24 DriverGL g_driver_gl;
26 void DriverGL::InitializeStaticBindings() {
27 fn.glActiveTextureFn = reinterpret_cast<glActiveTextureProc>(
28 GetGLProcAddress("glActiveTexture"));
29 fn.glAttachShaderFn =
30 reinterpret_cast<glAttachShaderProc>(GetGLProcAddress("glAttachShader"));
31 fn.glBeginQueryFn = 0;
32 fn.glBeginTransformFeedbackFn = 0;
33 fn.glBindAttribLocationFn = reinterpret_cast<glBindAttribLocationProc>(
34 GetGLProcAddress("glBindAttribLocation"));
35 fn.glBindBufferFn =
36 reinterpret_cast<glBindBufferProc>(GetGLProcAddress("glBindBuffer"));
37 fn.glBindBufferBaseFn = 0;
38 fn.glBindBufferRangeFn = 0;
39 fn.glBindFragDataLocationFn = 0;
40 fn.glBindFragDataLocationIndexedFn = 0;
41 fn.glBindFramebufferEXTFn = 0;
42 fn.glBindRenderbufferEXTFn = 0;
43 fn.glBindSamplerFn = 0;
44 fn.glBindTextureFn =
45 reinterpret_cast<glBindTextureProc>(GetGLProcAddress("glBindTexture"));
46 fn.glBindTransformFeedbackFn = 0;
47 fn.glBindVertexArrayOESFn = 0;
48 fn.glBlendBarrierKHRFn = 0;
49 fn.glBlendColorFn =
50 reinterpret_cast<glBlendColorProc>(GetGLProcAddress("glBlendColor"));
51 fn.glBlendEquationFn = reinterpret_cast<glBlendEquationProc>(
52 GetGLProcAddress("glBlendEquation"));
53 fn.glBlendEquationSeparateFn = reinterpret_cast<glBlendEquationSeparateProc>(
54 GetGLProcAddress("glBlendEquationSeparate"));
55 fn.glBlendFuncFn =
56 reinterpret_cast<glBlendFuncProc>(GetGLProcAddress("glBlendFunc"));
57 fn.glBlendFuncSeparateFn = reinterpret_cast<glBlendFuncSeparateProc>(
58 GetGLProcAddress("glBlendFuncSeparate"));
59 fn.glBlitFramebufferFn = 0;
60 fn.glBlitFramebufferANGLEFn = 0;
61 fn.glBlitFramebufferEXTFn = 0;
62 fn.glBufferDataFn =
63 reinterpret_cast<glBufferDataProc>(GetGLProcAddress("glBufferData"));
64 fn.glBufferSubDataFn = reinterpret_cast<glBufferSubDataProc>(
65 GetGLProcAddress("glBufferSubData"));
66 fn.glCheckFramebufferStatusEXTFn = 0;
67 fn.glClearFn = reinterpret_cast<glClearProc>(GetGLProcAddress("glClear"));
68 fn.glClearBufferfiFn = 0;
69 fn.glClearBufferfvFn = 0;
70 fn.glClearBufferivFn = 0;
71 fn.glClearBufferuivFn = 0;
72 fn.glClearColorFn =
73 reinterpret_cast<glClearColorProc>(GetGLProcAddress("glClearColor"));
74 fn.glClearDepthFn =
75 reinterpret_cast<glClearDepthProc>(GetGLProcAddress("glClearDepth"));
76 fn.glClearDepthfFn = 0;
77 fn.glClearStencilFn =
78 reinterpret_cast<glClearStencilProc>(GetGLProcAddress("glClearStencil"));
79 fn.glClientWaitSyncFn = 0;
80 fn.glColorMaskFn =
81 reinterpret_cast<glColorMaskProc>(GetGLProcAddress("glColorMask"));
82 fn.glCompileShaderFn = reinterpret_cast<glCompileShaderProc>(
83 GetGLProcAddress("glCompileShader"));
84 fn.glCompressedTexImage2DFn = reinterpret_cast<glCompressedTexImage2DProc>(
85 GetGLProcAddress("glCompressedTexImage2D"));
86 fn.glCompressedTexImage3DFn = 0;
87 fn.glCompressedTexSubImage2DFn =
88 reinterpret_cast<glCompressedTexSubImage2DProc>(
89 GetGLProcAddress("glCompressedTexSubImage2D"));
90 fn.glCompressedTexSubImage3DFn = 0;
91 fn.glCopyBufferSubDataFn = 0;
92 fn.glCopyTexImage2DFn = reinterpret_cast<glCopyTexImage2DProc>(
93 GetGLProcAddress("glCopyTexImage2D"));
94 fn.glCopyTexSubImage2DFn = reinterpret_cast<glCopyTexSubImage2DProc>(
95 GetGLProcAddress("glCopyTexSubImage2D"));
96 fn.glCopyTexSubImage3DFn = 0;
97 fn.glCoverFillPathNVFn = 0;
98 fn.glCoverStrokePathNVFn = 0;
99 fn.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>(
100 GetGLProcAddress("glCreateProgram"));
101 fn.glCreateShaderFn =
102 reinterpret_cast<glCreateShaderProc>(GetGLProcAddress("glCreateShader"));
103 fn.glCullFaceFn =
104 reinterpret_cast<glCullFaceProc>(GetGLProcAddress("glCullFace"));
105 fn.glDeleteBuffersARBFn = reinterpret_cast<glDeleteBuffersARBProc>(
106 GetGLProcAddress("glDeleteBuffers"));
107 fn.glDeleteFencesAPPLEFn = 0;
108 fn.glDeleteFencesNVFn = 0;
109 fn.glDeleteFramebuffersEXTFn = 0;
110 fn.glDeletePathsNVFn = 0;
111 fn.glDeleteProgramFn = reinterpret_cast<glDeleteProgramProc>(
112 GetGLProcAddress("glDeleteProgram"));
113 fn.glDeleteQueriesFn = 0;
114 fn.glDeleteRenderbuffersEXTFn = 0;
115 fn.glDeleteSamplersFn = 0;
116 fn.glDeleteShaderFn =
117 reinterpret_cast<glDeleteShaderProc>(GetGLProcAddress("glDeleteShader"));
118 fn.glDeleteSyncFn = 0;
119 fn.glDeleteTexturesFn = reinterpret_cast<glDeleteTexturesProc>(
120 GetGLProcAddress("glDeleteTextures"));
121 fn.glDeleteTransformFeedbacksFn = 0;
122 fn.glDeleteVertexArraysOESFn = 0;
123 fn.glDepthFuncFn =
124 reinterpret_cast<glDepthFuncProc>(GetGLProcAddress("glDepthFunc"));
125 fn.glDepthMaskFn =
126 reinterpret_cast<glDepthMaskProc>(GetGLProcAddress("glDepthMask"));
127 fn.glDepthRangeFn =
128 reinterpret_cast<glDepthRangeProc>(GetGLProcAddress("glDepthRange"));
129 fn.glDepthRangefFn = 0;
130 fn.glDetachShaderFn =
131 reinterpret_cast<glDetachShaderProc>(GetGLProcAddress("glDetachShader"));
132 fn.glDisableFn =
133 reinterpret_cast<glDisableProc>(GetGLProcAddress("glDisable"));
134 fn.glDisableVertexAttribArrayFn =
135 reinterpret_cast<glDisableVertexAttribArrayProc>(
136 GetGLProcAddress("glDisableVertexAttribArray"));
137 fn.glDiscardFramebufferEXTFn = 0;
138 fn.glDrawArraysFn =
139 reinterpret_cast<glDrawArraysProc>(GetGLProcAddress("glDrawArrays"));
140 fn.glDrawArraysInstancedANGLEFn = 0;
141 fn.glDrawBufferFn = 0;
142 fn.glDrawBuffersARBFn = 0;
143 fn.glDrawElementsFn =
144 reinterpret_cast<glDrawElementsProc>(GetGLProcAddress("glDrawElements"));
145 fn.glDrawElementsInstancedANGLEFn = 0;
146 fn.glDrawRangeElementsFn = 0;
147 fn.glEGLImageTargetRenderbufferStorageOESFn = 0;
148 fn.glEGLImageTargetTexture2DOESFn = 0;
149 fn.glEnableFn = reinterpret_cast<glEnableProc>(GetGLProcAddress("glEnable"));
150 fn.glEnableVertexAttribArrayFn =
151 reinterpret_cast<glEnableVertexAttribArrayProc>(
152 GetGLProcAddress("glEnableVertexAttribArray"));
153 fn.glEndQueryFn = 0;
154 fn.glEndTransformFeedbackFn = 0;
155 fn.glFenceSyncFn = 0;
156 fn.glFinishFn = reinterpret_cast<glFinishProc>(GetGLProcAddress("glFinish"));
157 fn.glFinishFenceAPPLEFn = 0;
158 fn.glFinishFenceNVFn = 0;
159 fn.glFlushFn = reinterpret_cast<glFlushProc>(GetGLProcAddress("glFlush"));
160 fn.glFlushMappedBufferRangeFn = 0;
161 fn.glFramebufferRenderbufferEXTFn = 0;
162 fn.glFramebufferTexture2DEXTFn = 0;
163 fn.glFramebufferTexture2DMultisampleEXTFn = 0;
164 fn.glFramebufferTexture2DMultisampleIMGFn = 0;
165 fn.glFramebufferTextureLayerFn = 0;
166 fn.glFrontFaceFn =
167 reinterpret_cast<glFrontFaceProc>(GetGLProcAddress("glFrontFace"));
168 fn.glGenBuffersARBFn =
169 reinterpret_cast<glGenBuffersARBProc>(GetGLProcAddress("glGenBuffers"));
170 fn.glGenerateMipmapEXTFn = 0;
171 fn.glGenFencesAPPLEFn = 0;
172 fn.glGenFencesNVFn = 0;
173 fn.glGenFramebuffersEXTFn = 0;
174 fn.glGenPathsNVFn = 0;
175 fn.glGenQueriesFn = 0;
176 fn.glGenRenderbuffersEXTFn = 0;
177 fn.glGenSamplersFn = 0;
178 fn.glGenTexturesFn =
179 reinterpret_cast<glGenTexturesProc>(GetGLProcAddress("glGenTextures"));
180 fn.glGenTransformFeedbacksFn = 0;
181 fn.glGenVertexArraysOESFn = 0;
182 fn.glGetActiveAttribFn = reinterpret_cast<glGetActiveAttribProc>(
183 GetGLProcAddress("glGetActiveAttrib"));
184 fn.glGetActiveUniformFn = reinterpret_cast<glGetActiveUniformProc>(
185 GetGLProcAddress("glGetActiveUniform"));
186 fn.glGetActiveUniformBlockivFn = 0;
187 fn.glGetActiveUniformBlockNameFn = 0;
188 fn.glGetActiveUniformsivFn = 0;
189 fn.glGetAttachedShadersFn = reinterpret_cast<glGetAttachedShadersProc>(
190 GetGLProcAddress("glGetAttachedShaders"));
191 fn.glGetAttribLocationFn = reinterpret_cast<glGetAttribLocationProc>(
192 GetGLProcAddress("glGetAttribLocation"));
193 fn.glGetBooleanvFn =
194 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv"));
195 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>(
196 GetGLProcAddress("glGetBufferParameteriv"));
197 fn.glGetErrorFn =
198 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError"));
199 fn.glGetFenceivNVFn = 0;
200 fn.glGetFloatvFn =
201 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv"));
202 fn.glGetFragDataLocationFn = 0;
203 fn.glGetFramebufferAttachmentParameterivEXTFn = 0;
204 fn.glGetGraphicsResetStatusARBFn = 0;
205 fn.glGetInteger64i_vFn = 0;
206 fn.glGetInteger64vFn = 0;
207 fn.glGetIntegeri_vFn = 0;
208 fn.glGetIntegervFn =
209 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv"));
210 fn.glGetInternalformativFn = 0;
211 fn.glGetProgramBinaryFn = 0;
212 fn.glGetProgramInfoLogFn = reinterpret_cast<glGetProgramInfoLogProc>(
213 GetGLProcAddress("glGetProgramInfoLog"));
214 fn.glGetProgramivFn =
215 reinterpret_cast<glGetProgramivProc>(GetGLProcAddress("glGetProgramiv"));
216 fn.glGetProgramResourceLocationFn = 0;
217 fn.glGetQueryivFn = 0;
218 fn.glGetQueryObjecti64vFn = 0;
219 fn.glGetQueryObjectivFn = 0;
220 fn.glGetQueryObjectui64vFn = 0;
221 fn.glGetQueryObjectuivFn = 0;
222 fn.glGetRenderbufferParameterivEXTFn = 0;
223 fn.glGetSamplerParameterfvFn = 0;
224 fn.glGetSamplerParameterivFn = 0;
225 fn.glGetShaderInfoLogFn = reinterpret_cast<glGetShaderInfoLogProc>(
226 GetGLProcAddress("glGetShaderInfoLog"));
227 fn.glGetShaderivFn =
228 reinterpret_cast<glGetShaderivProc>(GetGLProcAddress("glGetShaderiv"));
229 fn.glGetShaderPrecisionFormatFn = 0;
230 fn.glGetShaderSourceFn = reinterpret_cast<glGetShaderSourceProc>(
231 GetGLProcAddress("glGetShaderSource"));
232 fn.glGetStringFn =
233 reinterpret_cast<glGetStringProc>(GetGLProcAddress("glGetString"));
234 fn.glGetStringiFn =
235 reinterpret_cast<glGetStringiProc>(GetGLProcAddress("glGetStringi"));
236 fn.glGetSyncivFn = 0;
237 fn.glGetTexLevelParameterfvFn = 0;
238 fn.glGetTexLevelParameterivFn = 0;
239 fn.glGetTexParameterfvFn = reinterpret_cast<glGetTexParameterfvProc>(
240 GetGLProcAddress("glGetTexParameterfv"));
241 fn.glGetTexParameterivFn = reinterpret_cast<glGetTexParameterivProc>(
242 GetGLProcAddress("glGetTexParameteriv"));
243 fn.glGetTransformFeedbackVaryingFn = 0;
244 fn.glGetTranslatedShaderSourceANGLEFn = 0;
245 fn.glGetUniformBlockIndexFn = 0;
246 fn.glGetUniformfvFn =
247 reinterpret_cast<glGetUniformfvProc>(GetGLProcAddress("glGetUniformfv"));
248 fn.glGetUniformIndicesFn = 0;
249 fn.glGetUniformivFn =
250 reinterpret_cast<glGetUniformivProc>(GetGLProcAddress("glGetUniformiv"));
251 fn.glGetUniformLocationFn = reinterpret_cast<glGetUniformLocationProc>(
252 GetGLProcAddress("glGetUniformLocation"));
253 fn.glGetUniformuivFn = 0;
254 fn.glGetVertexAttribfvFn = reinterpret_cast<glGetVertexAttribfvProc>(
255 GetGLProcAddress("glGetVertexAttribfv"));
256 fn.glGetVertexAttribivFn = reinterpret_cast<glGetVertexAttribivProc>(
257 GetGLProcAddress("glGetVertexAttribiv"));
258 fn.glGetVertexAttribPointervFn =
259 reinterpret_cast<glGetVertexAttribPointervProc>(
260 GetGLProcAddress("glGetVertexAttribPointerv"));
261 fn.glHintFn = reinterpret_cast<glHintProc>(GetGLProcAddress("glHint"));
262 fn.glInsertEventMarkerEXTFn = 0;
263 fn.glInvalidateFramebufferFn = 0;
264 fn.glInvalidateSubFramebufferFn = 0;
265 fn.glIsBufferFn =
266 reinterpret_cast<glIsBufferProc>(GetGLProcAddress("glIsBuffer"));
267 fn.glIsEnabledFn =
268 reinterpret_cast<glIsEnabledProc>(GetGLProcAddress("glIsEnabled"));
269 fn.glIsFenceAPPLEFn = 0;
270 fn.glIsFenceNVFn = 0;
271 fn.glIsFramebufferEXTFn = 0;
272 fn.glIsPathNVFn = 0;
273 fn.glIsProgramFn =
274 reinterpret_cast<glIsProgramProc>(GetGLProcAddress("glIsProgram"));
275 fn.glIsQueryFn = 0;
276 fn.glIsRenderbufferEXTFn = 0;
277 fn.glIsSamplerFn = 0;
278 fn.glIsShaderFn =
279 reinterpret_cast<glIsShaderProc>(GetGLProcAddress("glIsShader"));
280 fn.glIsSyncFn = 0;
281 fn.glIsTextureFn =
282 reinterpret_cast<glIsTextureProc>(GetGLProcAddress("glIsTexture"));
283 fn.glIsTransformFeedbackFn = 0;
284 fn.glIsVertexArrayOESFn = 0;
285 fn.glLineWidthFn =
286 reinterpret_cast<glLineWidthProc>(GetGLProcAddress("glLineWidth"));
287 fn.glLinkProgramFn =
288 reinterpret_cast<glLinkProgramProc>(GetGLProcAddress("glLinkProgram"));
289 fn.glMapBufferFn = 0;
290 fn.glMapBufferRangeFn = 0;
291 fn.glMatrixLoadfEXTFn = 0;
292 fn.glMatrixLoadIdentityEXTFn = 0;
293 fn.glPathCommandsNVFn = 0;
294 fn.glPathParameterfNVFn = 0;
295 fn.glPathParameteriNVFn = 0;
296 fn.glPathStencilFuncNVFn = 0;
297 fn.glPauseTransformFeedbackFn = 0;
298 fn.glPixelStoreiFn =
299 reinterpret_cast<glPixelStoreiProc>(GetGLProcAddress("glPixelStorei"));
300 fn.glPointParameteriFn = 0;
301 fn.glPolygonOffsetFn = reinterpret_cast<glPolygonOffsetProc>(
302 GetGLProcAddress("glPolygonOffset"));
303 fn.glPopGroupMarkerEXTFn = 0;
304 fn.glProgramBinaryFn = 0;
305 fn.glProgramParameteriFn = 0;
306 fn.glPushGroupMarkerEXTFn = 0;
307 fn.glQueryCounterFn = 0;
308 fn.glReadBufferFn = 0;
309 fn.glReadPixelsFn =
310 reinterpret_cast<glReadPixelsProc>(GetGLProcAddress("glReadPixels"));
311 fn.glReleaseShaderCompilerFn = 0;
312 fn.glRenderbufferStorageEXTFn = 0;
313 fn.glRenderbufferStorageMultisampleFn = 0;
314 fn.glRenderbufferStorageMultisampleANGLEFn = 0;
315 fn.glRenderbufferStorageMultisampleEXTFn = 0;
316 fn.glRenderbufferStorageMultisampleIMGFn = 0;
317 fn.glResumeTransformFeedbackFn = 0;
318 fn.glSampleCoverageFn = reinterpret_cast<glSampleCoverageProc>(
319 GetGLProcAddress("glSampleCoverage"));
320 fn.glSamplerParameterfFn = 0;
321 fn.glSamplerParameterfvFn = 0;
322 fn.glSamplerParameteriFn = 0;
323 fn.glSamplerParameterivFn = 0;
324 fn.glScissorFn =
325 reinterpret_cast<glScissorProc>(GetGLProcAddress("glScissor"));
326 fn.glSetFenceAPPLEFn = 0;
327 fn.glSetFenceNVFn = 0;
328 fn.glShaderBinaryFn = 0;
329 fn.glShaderSourceFn =
330 reinterpret_cast<glShaderSourceProc>(GetGLProcAddress("glShaderSource"));
331 fn.glStencilFillPathNVFn = 0;
332 fn.glStencilFuncFn =
333 reinterpret_cast<glStencilFuncProc>(GetGLProcAddress("glStencilFunc"));
334 fn.glStencilFuncSeparateFn = reinterpret_cast<glStencilFuncSeparateProc>(
335 GetGLProcAddress("glStencilFuncSeparate"));
336 fn.glStencilMaskFn =
337 reinterpret_cast<glStencilMaskProc>(GetGLProcAddress("glStencilMask"));
338 fn.glStencilMaskSeparateFn = reinterpret_cast<glStencilMaskSeparateProc>(
339 GetGLProcAddress("glStencilMaskSeparate"));
340 fn.glStencilOpFn =
341 reinterpret_cast<glStencilOpProc>(GetGLProcAddress("glStencilOp"));
342 fn.glStencilOpSeparateFn = reinterpret_cast<glStencilOpSeparateProc>(
343 GetGLProcAddress("glStencilOpSeparate"));
344 fn.glStencilStrokePathNVFn = 0;
345 fn.glStencilThenCoverFillPathNVFn = 0;
346 fn.glStencilThenCoverStrokePathNVFn = 0;
347 fn.glTestFenceAPPLEFn = 0;
348 fn.glTestFenceNVFn = 0;
349 fn.glTexImage2DFn =
350 reinterpret_cast<glTexImage2DProc>(GetGLProcAddress("glTexImage2D"));
351 fn.glTexImage3DFn = 0;
352 fn.glTexParameterfFn = reinterpret_cast<glTexParameterfProc>(
353 GetGLProcAddress("glTexParameterf"));
354 fn.glTexParameterfvFn = reinterpret_cast<glTexParameterfvProc>(
355 GetGLProcAddress("glTexParameterfv"));
356 fn.glTexParameteriFn = reinterpret_cast<glTexParameteriProc>(
357 GetGLProcAddress("glTexParameteri"));
358 fn.glTexParameterivFn = reinterpret_cast<glTexParameterivProc>(
359 GetGLProcAddress("glTexParameteriv"));
360 fn.glTexStorage2DEXTFn = 0;
361 fn.glTexStorage3DFn = 0;
362 fn.glTexSubImage2DFn = reinterpret_cast<glTexSubImage2DProc>(
363 GetGLProcAddress("glTexSubImage2D"));
364 fn.glTexSubImage3DFn = 0;
365 fn.glTransformFeedbackVaryingsFn = 0;
366 fn.glUniform1fFn =
367 reinterpret_cast<glUniform1fProc>(GetGLProcAddress("glUniform1f"));
368 fn.glUniform1fvFn =
369 reinterpret_cast<glUniform1fvProc>(GetGLProcAddress("glUniform1fv"));
370 fn.glUniform1iFn =
371 reinterpret_cast<glUniform1iProc>(GetGLProcAddress("glUniform1i"));
372 fn.glUniform1ivFn =
373 reinterpret_cast<glUniform1ivProc>(GetGLProcAddress("glUniform1iv"));
374 fn.glUniform1uiFn = 0;
375 fn.glUniform1uivFn = 0;
376 fn.glUniform2fFn =
377 reinterpret_cast<glUniform2fProc>(GetGLProcAddress("glUniform2f"));
378 fn.glUniform2fvFn =
379 reinterpret_cast<glUniform2fvProc>(GetGLProcAddress("glUniform2fv"));
380 fn.glUniform2iFn =
381 reinterpret_cast<glUniform2iProc>(GetGLProcAddress("glUniform2i"));
382 fn.glUniform2ivFn =
383 reinterpret_cast<glUniform2ivProc>(GetGLProcAddress("glUniform2iv"));
384 fn.glUniform2uiFn = 0;
385 fn.glUniform2uivFn = 0;
386 fn.glUniform3fFn =
387 reinterpret_cast<glUniform3fProc>(GetGLProcAddress("glUniform3f"));
388 fn.glUniform3fvFn =
389 reinterpret_cast<glUniform3fvProc>(GetGLProcAddress("glUniform3fv"));
390 fn.glUniform3iFn =
391 reinterpret_cast<glUniform3iProc>(GetGLProcAddress("glUniform3i"));
392 fn.glUniform3ivFn =
393 reinterpret_cast<glUniform3ivProc>(GetGLProcAddress("glUniform3iv"));
394 fn.glUniform3uiFn = 0;
395 fn.glUniform3uivFn = 0;
396 fn.glUniform4fFn =
397 reinterpret_cast<glUniform4fProc>(GetGLProcAddress("glUniform4f"));
398 fn.glUniform4fvFn =
399 reinterpret_cast<glUniform4fvProc>(GetGLProcAddress("glUniform4fv"));
400 fn.glUniform4iFn =
401 reinterpret_cast<glUniform4iProc>(GetGLProcAddress("glUniform4i"));
402 fn.glUniform4ivFn =
403 reinterpret_cast<glUniform4ivProc>(GetGLProcAddress("glUniform4iv"));
404 fn.glUniform4uiFn = 0;
405 fn.glUniform4uivFn = 0;
406 fn.glUniformBlockBindingFn = 0;
407 fn.glUniformMatrix2fvFn = reinterpret_cast<glUniformMatrix2fvProc>(
408 GetGLProcAddress("glUniformMatrix2fv"));
409 fn.glUniformMatrix2x3fvFn = 0;
410 fn.glUniformMatrix2x4fvFn = 0;
411 fn.glUniformMatrix3fvFn = reinterpret_cast<glUniformMatrix3fvProc>(
412 GetGLProcAddress("glUniformMatrix3fv"));
413 fn.glUniformMatrix3x2fvFn = 0;
414 fn.glUniformMatrix3x4fvFn = 0;
415 fn.glUniformMatrix4fvFn = reinterpret_cast<glUniformMatrix4fvProc>(
416 GetGLProcAddress("glUniformMatrix4fv"));
417 fn.glUniformMatrix4x2fvFn = 0;
418 fn.glUniformMatrix4x3fvFn = 0;
419 fn.glUnmapBufferFn = 0;
420 fn.glUseProgramFn =
421 reinterpret_cast<glUseProgramProc>(GetGLProcAddress("glUseProgram"));
422 fn.glValidateProgramFn = reinterpret_cast<glValidateProgramProc>(
423 GetGLProcAddress("glValidateProgram"));
424 fn.glVertexAttrib1fFn = reinterpret_cast<glVertexAttrib1fProc>(
425 GetGLProcAddress("glVertexAttrib1f"));
426 fn.glVertexAttrib1fvFn = reinterpret_cast<glVertexAttrib1fvProc>(
427 GetGLProcAddress("glVertexAttrib1fv"));
428 fn.glVertexAttrib2fFn = reinterpret_cast<glVertexAttrib2fProc>(
429 GetGLProcAddress("glVertexAttrib2f"));
430 fn.glVertexAttrib2fvFn = reinterpret_cast<glVertexAttrib2fvProc>(
431 GetGLProcAddress("glVertexAttrib2fv"));
432 fn.glVertexAttrib3fFn = reinterpret_cast<glVertexAttrib3fProc>(
433 GetGLProcAddress("glVertexAttrib3f"));
434 fn.glVertexAttrib3fvFn = reinterpret_cast<glVertexAttrib3fvProc>(
435 GetGLProcAddress("glVertexAttrib3fv"));
436 fn.glVertexAttrib4fFn = reinterpret_cast<glVertexAttrib4fProc>(
437 GetGLProcAddress("glVertexAttrib4f"));
438 fn.glVertexAttrib4fvFn = reinterpret_cast<glVertexAttrib4fvProc>(
439 GetGLProcAddress("glVertexAttrib4fv"));
440 fn.glVertexAttribDivisorANGLEFn = 0;
441 fn.glVertexAttribI4iFn = 0;
442 fn.glVertexAttribI4ivFn = 0;
443 fn.glVertexAttribI4uiFn = 0;
444 fn.glVertexAttribI4uivFn = 0;
445 fn.glVertexAttribIPointerFn = 0;
446 fn.glVertexAttribPointerFn = reinterpret_cast<glVertexAttribPointerProc>(
447 GetGLProcAddress("glVertexAttribPointer"));
448 fn.glViewportFn =
449 reinterpret_cast<glViewportProc>(GetGLProcAddress("glViewport"));
450 fn.glWaitSyncFn = 0;
453 void DriverGL::InitializeDynamicBindings(GLContext* context) {
454 DCHECK(context && context->IsCurrent(NULL));
455 const GLVersionInfo* ver = context->GetVersionInfo();
456 ALLOW_UNUSED_LOCAL(ver);
457 std::string extensions = context->GetExtensions() + " ";
458 ALLOW_UNUSED_LOCAL(extensions);
460 ext.b_GL_ANGLE_framebuffer_blit =
461 extensions.find("GL_ANGLE_framebuffer_blit ") != std::string::npos;
462 ext.b_GL_ANGLE_framebuffer_multisample =
463 extensions.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos;
464 ext.b_GL_ANGLE_instanced_arrays =
465 extensions.find("GL_ANGLE_instanced_arrays ") != std::string::npos;
466 ext.b_GL_ANGLE_translated_shader_source =
467 extensions.find("GL_ANGLE_translated_shader_source ") !=
468 std::string::npos;
469 ext.b_GL_APPLE_fence =
470 extensions.find("GL_APPLE_fence ") != std::string::npos;
471 ext.b_GL_APPLE_vertex_array_object =
472 extensions.find("GL_APPLE_vertex_array_object ") != std::string::npos;
473 ext.b_GL_ARB_draw_buffers =
474 extensions.find("GL_ARB_draw_buffers ") != std::string::npos;
475 ext.b_GL_ARB_draw_instanced =
476 extensions.find("GL_ARB_draw_instanced ") != std::string::npos;
477 ext.b_GL_ARB_get_program_binary =
478 extensions.find("GL_ARB_get_program_binary ") != std::string::npos;
479 ext.b_GL_ARB_instanced_arrays =
480 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos;
481 ext.b_GL_ARB_map_buffer_range =
482 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos;
483 ext.b_GL_ARB_occlusion_query =
484 extensions.find("GL_ARB_occlusion_query ") != std::string::npos;
485 ext.b_GL_ARB_robustness =
486 extensions.find("GL_ARB_robustness ") != std::string::npos;
487 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos;
488 ext.b_GL_ARB_texture_storage =
489 extensions.find("GL_ARB_texture_storage ") != std::string::npos;
490 ext.b_GL_ARB_timer_query =
491 extensions.find("GL_ARB_timer_query ") != std::string::npos;
492 ext.b_GL_ARB_vertex_array_object =
493 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos;
494 ext.b_GL_CHROMIUM_gles_depth_binding_hack =
495 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") !=
496 std::string::npos;
497 ext.b_GL_CHROMIUM_glgetstringi_hack =
498 extensions.find("GL_CHROMIUM_glgetstringi_hack ") != std::string::npos;
499 ext.b_GL_EXT_debug_marker =
500 extensions.find("GL_EXT_debug_marker ") != std::string::npos;
501 ext.b_GL_EXT_direct_state_access =
502 extensions.find("GL_EXT_direct_state_access ") != std::string::npos;
503 ext.b_GL_EXT_discard_framebuffer =
504 extensions.find("GL_EXT_discard_framebuffer ") != std::string::npos;
505 ext.b_GL_EXT_disjoint_timer_query =
506 extensions.find("GL_EXT_disjoint_timer_query ") != std::string::npos;
507 ext.b_GL_EXT_draw_buffers =
508 extensions.find("GL_EXT_draw_buffers ") != std::string::npos;
509 ext.b_GL_EXT_framebuffer_blit =
510 extensions.find("GL_EXT_framebuffer_blit ") != std::string::npos;
511 ext.b_GL_EXT_framebuffer_multisample =
512 extensions.find("GL_EXT_framebuffer_multisample ") != std::string::npos;
513 ext.b_GL_EXT_framebuffer_object =
514 extensions.find("GL_EXT_framebuffer_object ") != std::string::npos;
515 ext.b_GL_EXT_map_buffer_range =
516 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos;
517 ext.b_GL_EXT_multisampled_render_to_texture =
518 extensions.find("GL_EXT_multisampled_render_to_texture ") !=
519 std::string::npos;
520 ext.b_GL_EXT_occlusion_query_boolean =
521 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos;
522 ext.b_GL_EXT_robustness =
523 extensions.find("GL_EXT_robustness ") != std::string::npos;
524 ext.b_GL_EXT_texture_storage =
525 extensions.find("GL_EXT_texture_storage ") != std::string::npos;
526 ext.b_GL_EXT_timer_query =
527 extensions.find("GL_EXT_timer_query ") != std::string::npos;
528 ext.b_GL_IMG_multisampled_render_to_texture =
529 extensions.find("GL_IMG_multisampled_render_to_texture ") !=
530 std::string::npos;
531 ext.b_GL_KHR_blend_equation_advanced =
532 extensions.find("GL_KHR_blend_equation_advanced ") != std::string::npos;
533 ext.b_GL_KHR_robustness =
534 extensions.find("GL_KHR_robustness ") != std::string::npos;
535 ext.b_GL_NV_blend_equation_advanced =
536 extensions.find("GL_NV_blend_equation_advanced ") != std::string::npos;
537 ext.b_GL_NV_fence = extensions.find("GL_NV_fence ") != std::string::npos;
538 ext.b_GL_NV_path_rendering =
539 extensions.find("GL_NV_path_rendering ") != std::string::npos;
540 ext.b_GL_OES_EGL_image =
541 extensions.find("GL_OES_EGL_image ") != std::string::npos;
542 ext.b_GL_OES_get_program_binary =
543 extensions.find("GL_OES_get_program_binary ") != std::string::npos;
544 ext.b_GL_OES_mapbuffer =
545 extensions.find("GL_OES_mapbuffer ") != std::string::npos;
546 ext.b_GL_OES_vertex_array_object =
547 extensions.find("GL_OES_vertex_array_object ") != std::string::npos;
549 debug_fn.glBeginQueryFn = 0;
550 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
551 fn.glBeginQueryFn =
552 reinterpret_cast<glBeginQueryProc>(GetGLProcAddress("glBeginQuery"));
553 DCHECK(fn.glBeginQueryFn);
554 } else if (ext.b_GL_ARB_occlusion_query) {
555 fn.glBeginQueryFn =
556 reinterpret_cast<glBeginQueryProc>(GetGLProcAddress("glBeginQueryARB"));
557 DCHECK(fn.glBeginQueryFn);
558 } else if (ext.b_GL_EXT_disjoint_timer_query ||
559 ext.b_GL_EXT_occlusion_query_boolean) {
560 fn.glBeginQueryFn =
561 reinterpret_cast<glBeginQueryProc>(GetGLProcAddress("glBeginQueryEXT"));
562 DCHECK(fn.glBeginQueryFn);
565 debug_fn.glBeginTransformFeedbackFn = 0;
566 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
567 fn.glBeginTransformFeedbackFn =
568 reinterpret_cast<glBeginTransformFeedbackProc>(
569 GetGLProcAddress("glBeginTransformFeedback"));
570 DCHECK(fn.glBeginTransformFeedbackFn);
573 debug_fn.glBindBufferBaseFn = 0;
574 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
575 fn.glBindBufferBaseFn = reinterpret_cast<glBindBufferBaseProc>(
576 GetGLProcAddress("glBindBufferBase"));
577 DCHECK(fn.glBindBufferBaseFn);
580 debug_fn.glBindBufferRangeFn = 0;
581 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
582 fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>(
583 GetGLProcAddress("glBindBufferRange"));
584 DCHECK(fn.glBindBufferRangeFn);
587 debug_fn.glBindFragDataLocationFn = 0;
588 if (ver->IsAtLeastGL(3u, 0u)) {
589 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>(
590 GetGLProcAddress("glBindFragDataLocation"));
591 DCHECK(fn.glBindFragDataLocationFn);
594 debug_fn.glBindFragDataLocationIndexedFn = 0;
595 if (ver->IsAtLeastGL(3u, 3u)) {
596 fn.glBindFragDataLocationIndexedFn =
597 reinterpret_cast<glBindFragDataLocationIndexedProc>(
598 GetGLProcAddress("glBindFragDataLocationIndexed"));
599 DCHECK(fn.glBindFragDataLocationIndexedFn);
602 debug_fn.glBindFramebufferEXTFn = 0;
603 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
604 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>(
605 GetGLProcAddress("glBindFramebuffer"));
606 DCHECK(fn.glBindFramebufferEXTFn);
607 } else if (ext.b_GL_EXT_framebuffer_object) {
608 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>(
609 GetGLProcAddress("glBindFramebufferEXT"));
610 DCHECK(fn.glBindFramebufferEXTFn);
613 debug_fn.glBindRenderbufferEXTFn = 0;
614 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
615 fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>(
616 GetGLProcAddress("glBindRenderbuffer"));
617 DCHECK(fn.glBindRenderbufferEXTFn);
618 } else if (ext.b_GL_EXT_framebuffer_object) {
619 fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>(
620 GetGLProcAddress("glBindRenderbufferEXT"));
621 DCHECK(fn.glBindRenderbufferEXTFn);
624 debug_fn.glBindSamplerFn = 0;
625 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
626 fn.glBindSamplerFn =
627 reinterpret_cast<glBindSamplerProc>(GetGLProcAddress("glBindSampler"));
628 DCHECK(fn.glBindSamplerFn);
631 debug_fn.glBindTransformFeedbackFn = 0;
632 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
633 fn.glBindTransformFeedbackFn =
634 reinterpret_cast<glBindTransformFeedbackProc>(
635 GetGLProcAddress("glBindTransformFeedback"));
636 DCHECK(fn.glBindTransformFeedbackFn);
639 debug_fn.glBindVertexArrayOESFn = 0;
640 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
641 ext.b_GL_ARB_vertex_array_object) {
642 fn.glBindVertexArrayOESFn = reinterpret_cast<glBindVertexArrayOESProc>(
643 GetGLProcAddress("glBindVertexArray"));
644 DCHECK(fn.glBindVertexArrayOESFn);
645 } else if (ext.b_GL_OES_vertex_array_object) {
646 fn.glBindVertexArrayOESFn = reinterpret_cast<glBindVertexArrayOESProc>(
647 GetGLProcAddress("glBindVertexArrayOES"));
648 DCHECK(fn.glBindVertexArrayOESFn);
649 } else if (ext.b_GL_APPLE_vertex_array_object) {
650 fn.glBindVertexArrayOESFn = reinterpret_cast<glBindVertexArrayOESProc>(
651 GetGLProcAddress("glBindVertexArrayAPPLE"));
652 DCHECK(fn.glBindVertexArrayOESFn);
655 debug_fn.glBlendBarrierKHRFn = 0;
656 if (ext.b_GL_NV_blend_equation_advanced) {
657 fn.glBlendBarrierKHRFn = reinterpret_cast<glBlendBarrierKHRProc>(
658 GetGLProcAddress("glBlendBarrierNV"));
659 DCHECK(fn.glBlendBarrierKHRFn);
660 } else if (ext.b_GL_KHR_blend_equation_advanced) {
661 fn.glBlendBarrierKHRFn = reinterpret_cast<glBlendBarrierKHRProc>(
662 GetGLProcAddress("glBlendBarrierKHR"));
663 DCHECK(fn.glBlendBarrierKHRFn);
666 debug_fn.glBlitFramebufferFn = 0;
667 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
668 fn.glBlitFramebufferFn = reinterpret_cast<glBlitFramebufferProc>(
669 GetGLProcAddress("glBlitFramebuffer"));
670 DCHECK(fn.glBlitFramebufferFn);
673 debug_fn.glBlitFramebufferANGLEFn = 0;
674 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
675 fn.glBlitFramebufferANGLEFn = reinterpret_cast<glBlitFramebufferANGLEProc>(
676 GetGLProcAddress("glBlitFramebuffer"));
677 DCHECK(fn.glBlitFramebufferANGLEFn);
678 } else if (ext.b_GL_ANGLE_framebuffer_blit) {
679 fn.glBlitFramebufferANGLEFn = reinterpret_cast<glBlitFramebufferANGLEProc>(
680 GetGLProcAddress("glBlitFramebufferANGLE"));
681 DCHECK(fn.glBlitFramebufferANGLEFn);
684 debug_fn.glBlitFramebufferEXTFn = 0;
685 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
686 fn.glBlitFramebufferEXTFn = reinterpret_cast<glBlitFramebufferEXTProc>(
687 GetGLProcAddress("glBlitFramebuffer"));
688 DCHECK(fn.glBlitFramebufferEXTFn);
689 } else if (ext.b_GL_EXT_framebuffer_blit) {
690 fn.glBlitFramebufferEXTFn = reinterpret_cast<glBlitFramebufferEXTProc>(
691 GetGLProcAddress("glBlitFramebufferEXT"));
692 DCHECK(fn.glBlitFramebufferEXTFn);
695 debug_fn.glCheckFramebufferStatusEXTFn = 0;
696 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
697 fn.glCheckFramebufferStatusEXTFn =
698 reinterpret_cast<glCheckFramebufferStatusEXTProc>(
699 GetGLProcAddress("glCheckFramebufferStatus"));
700 DCHECK(fn.glCheckFramebufferStatusEXTFn);
701 } else if (ext.b_GL_EXT_framebuffer_object) {
702 fn.glCheckFramebufferStatusEXTFn =
703 reinterpret_cast<glCheckFramebufferStatusEXTProc>(
704 GetGLProcAddress("glCheckFramebufferStatusEXT"));
705 DCHECK(fn.glCheckFramebufferStatusEXTFn);
708 debug_fn.glClearBufferfiFn = 0;
709 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
710 fn.glClearBufferfiFn = reinterpret_cast<glClearBufferfiProc>(
711 GetGLProcAddress("glClearBufferfi"));
712 DCHECK(fn.glClearBufferfiFn);
715 debug_fn.glClearBufferfvFn = 0;
716 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
717 fn.glClearBufferfvFn = reinterpret_cast<glClearBufferfvProc>(
718 GetGLProcAddress("glClearBufferfv"));
719 DCHECK(fn.glClearBufferfvFn);
722 debug_fn.glClearBufferivFn = 0;
723 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
724 fn.glClearBufferivFn = reinterpret_cast<glClearBufferivProc>(
725 GetGLProcAddress("glClearBufferiv"));
726 DCHECK(fn.glClearBufferivFn);
729 debug_fn.glClearBufferuivFn = 0;
730 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
731 fn.glClearBufferuivFn = reinterpret_cast<glClearBufferuivProc>(
732 GetGLProcAddress("glClearBufferuiv"));
733 DCHECK(fn.glClearBufferuivFn);
736 debug_fn.glClearDepthfFn = 0;
737 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
738 fn.glClearDepthfFn =
739 reinterpret_cast<glClearDepthfProc>(GetGLProcAddress("glClearDepthf"));
740 DCHECK(fn.glClearDepthfFn);
743 debug_fn.glClientWaitSyncFn = 0;
744 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
745 ext.b_GL_ARB_sync) {
746 fn.glClientWaitSyncFn = reinterpret_cast<glClientWaitSyncProc>(
747 GetGLProcAddress("glClientWaitSync"));
748 DCHECK(fn.glClientWaitSyncFn);
751 debug_fn.glCompressedTexImage3DFn = 0;
752 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
753 fn.glCompressedTexImage3DFn = reinterpret_cast<glCompressedTexImage3DProc>(
754 GetGLProcAddress("glCompressedTexImage3D"));
755 DCHECK(fn.glCompressedTexImage3DFn);
758 debug_fn.glCompressedTexSubImage3DFn = 0;
759 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
760 fn.glCompressedTexSubImage3DFn =
761 reinterpret_cast<glCompressedTexSubImage3DProc>(
762 GetGLProcAddress("glCompressedTexSubImage3D"));
763 DCHECK(fn.glCompressedTexSubImage3DFn);
766 debug_fn.glCopyBufferSubDataFn = 0;
767 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
768 fn.glCopyBufferSubDataFn = reinterpret_cast<glCopyBufferSubDataProc>(
769 GetGLProcAddress("glCopyBufferSubData"));
770 DCHECK(fn.glCopyBufferSubDataFn);
773 debug_fn.glCopyTexSubImage3DFn = 0;
774 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
775 fn.glCopyTexSubImage3DFn = reinterpret_cast<glCopyTexSubImage3DProc>(
776 GetGLProcAddress("glCopyTexSubImage3D"));
777 DCHECK(fn.glCopyTexSubImage3DFn);
780 debug_fn.glCoverFillPathNVFn = 0;
781 if (ext.b_GL_NV_path_rendering) {
782 fn.glCoverFillPathNVFn = reinterpret_cast<glCoverFillPathNVProc>(
783 GetGLProcAddress("glCoverFillPathNV"));
784 DCHECK(fn.glCoverFillPathNVFn);
787 debug_fn.glCoverStrokePathNVFn = 0;
788 if (ext.b_GL_NV_path_rendering) {
789 fn.glCoverStrokePathNVFn = reinterpret_cast<glCoverStrokePathNVProc>(
790 GetGLProcAddress("glCoverStrokePathNV"));
791 DCHECK(fn.glCoverStrokePathNVFn);
794 debug_fn.glDeleteFencesAPPLEFn = 0;
795 if (ext.b_GL_APPLE_fence) {
796 fn.glDeleteFencesAPPLEFn = reinterpret_cast<glDeleteFencesAPPLEProc>(
797 GetGLProcAddress("glDeleteFencesAPPLE"));
798 DCHECK(fn.glDeleteFencesAPPLEFn);
801 debug_fn.glDeleteFencesNVFn = 0;
802 if (ext.b_GL_NV_fence) {
803 fn.glDeleteFencesNVFn = reinterpret_cast<glDeleteFencesNVProc>(
804 GetGLProcAddress("glDeleteFencesNV"));
805 DCHECK(fn.glDeleteFencesNVFn);
808 debug_fn.glDeleteFramebuffersEXTFn = 0;
809 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
810 fn.glDeleteFramebuffersEXTFn =
811 reinterpret_cast<glDeleteFramebuffersEXTProc>(
812 GetGLProcAddress("glDeleteFramebuffers"));
813 DCHECK(fn.glDeleteFramebuffersEXTFn);
814 } else if (ext.b_GL_EXT_framebuffer_object) {
815 fn.glDeleteFramebuffersEXTFn =
816 reinterpret_cast<glDeleteFramebuffersEXTProc>(
817 GetGLProcAddress("glDeleteFramebuffersEXT"));
818 DCHECK(fn.glDeleteFramebuffersEXTFn);
821 debug_fn.glDeletePathsNVFn = 0;
822 if (ext.b_GL_NV_path_rendering) {
823 fn.glDeletePathsNVFn = reinterpret_cast<glDeletePathsNVProc>(
824 GetGLProcAddress("glDeletePathsNV"));
825 DCHECK(fn.glDeletePathsNVFn);
828 debug_fn.glDeleteQueriesFn = 0;
829 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
830 fn.glDeleteQueriesFn = reinterpret_cast<glDeleteQueriesProc>(
831 GetGLProcAddress("glDeleteQueries"));
832 DCHECK(fn.glDeleteQueriesFn);
833 } else if (ext.b_GL_ARB_occlusion_query) {
834 fn.glDeleteQueriesFn = reinterpret_cast<glDeleteQueriesProc>(
835 GetGLProcAddress("glDeleteQueriesARB"));
836 DCHECK(fn.glDeleteQueriesFn);
837 } else if (ext.b_GL_EXT_disjoint_timer_query ||
838 ext.b_GL_EXT_occlusion_query_boolean) {
839 fn.glDeleteQueriesFn = reinterpret_cast<glDeleteQueriesProc>(
840 GetGLProcAddress("glDeleteQueriesEXT"));
841 DCHECK(fn.glDeleteQueriesFn);
844 debug_fn.glDeleteRenderbuffersEXTFn = 0;
845 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
846 fn.glDeleteRenderbuffersEXTFn =
847 reinterpret_cast<glDeleteRenderbuffersEXTProc>(
848 GetGLProcAddress("glDeleteRenderbuffers"));
849 DCHECK(fn.glDeleteRenderbuffersEXTFn);
850 } else if (ext.b_GL_EXT_framebuffer_object) {
851 fn.glDeleteRenderbuffersEXTFn =
852 reinterpret_cast<glDeleteRenderbuffersEXTProc>(
853 GetGLProcAddress("glDeleteRenderbuffersEXT"));
854 DCHECK(fn.glDeleteRenderbuffersEXTFn);
857 debug_fn.glDeleteSamplersFn = 0;
858 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
859 fn.glDeleteSamplersFn = reinterpret_cast<glDeleteSamplersProc>(
860 GetGLProcAddress("glDeleteSamplers"));
861 DCHECK(fn.glDeleteSamplersFn);
864 debug_fn.glDeleteSyncFn = 0;
865 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
866 ext.b_GL_ARB_sync) {
867 fn.glDeleteSyncFn =
868 reinterpret_cast<glDeleteSyncProc>(GetGLProcAddress("glDeleteSync"));
869 DCHECK(fn.glDeleteSyncFn);
872 debug_fn.glDeleteTransformFeedbacksFn = 0;
873 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
874 fn.glDeleteTransformFeedbacksFn =
875 reinterpret_cast<glDeleteTransformFeedbacksProc>(
876 GetGLProcAddress("glDeleteTransformFeedbacks"));
877 DCHECK(fn.glDeleteTransformFeedbacksFn);
880 debug_fn.glDeleteVertexArraysOESFn = 0;
881 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
882 ext.b_GL_ARB_vertex_array_object) {
883 fn.glDeleteVertexArraysOESFn =
884 reinterpret_cast<glDeleteVertexArraysOESProc>(
885 GetGLProcAddress("glDeleteVertexArrays"));
886 DCHECK(fn.glDeleteVertexArraysOESFn);
887 } else if (ext.b_GL_OES_vertex_array_object) {
888 fn.glDeleteVertexArraysOESFn =
889 reinterpret_cast<glDeleteVertexArraysOESProc>(
890 GetGLProcAddress("glDeleteVertexArraysOES"));
891 DCHECK(fn.glDeleteVertexArraysOESFn);
892 } else if (ext.b_GL_APPLE_vertex_array_object) {
893 fn.glDeleteVertexArraysOESFn =
894 reinterpret_cast<glDeleteVertexArraysOESProc>(
895 GetGLProcAddress("glDeleteVertexArraysAPPLE"));
896 DCHECK(fn.glDeleteVertexArraysOESFn);
899 debug_fn.glDepthRangefFn = 0;
900 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
901 fn.glDepthRangefFn =
902 reinterpret_cast<glDepthRangefProc>(GetGLProcAddress("glDepthRangef"));
903 DCHECK(fn.glDepthRangefFn);
906 debug_fn.glDiscardFramebufferEXTFn = 0;
907 if (ext.b_GL_EXT_discard_framebuffer) {
908 fn.glDiscardFramebufferEXTFn =
909 reinterpret_cast<glDiscardFramebufferEXTProc>(
910 GetGLProcAddress("glDiscardFramebufferEXT"));
911 DCHECK(fn.glDiscardFramebufferEXTFn);
914 debug_fn.glDrawArraysInstancedANGLEFn = 0;
915 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
916 fn.glDrawArraysInstancedANGLEFn =
917 reinterpret_cast<glDrawArraysInstancedANGLEProc>(
918 GetGLProcAddress("glDrawArraysInstanced"));
919 DCHECK(fn.glDrawArraysInstancedANGLEFn);
920 } else if (ext.b_GL_ARB_draw_instanced) {
921 fn.glDrawArraysInstancedANGLEFn =
922 reinterpret_cast<glDrawArraysInstancedANGLEProc>(
923 GetGLProcAddress("glDrawArraysInstancedARB"));
924 DCHECK(fn.glDrawArraysInstancedANGLEFn);
925 } else if (ext.b_GL_ANGLE_instanced_arrays) {
926 fn.glDrawArraysInstancedANGLEFn =
927 reinterpret_cast<glDrawArraysInstancedANGLEProc>(
928 GetGLProcAddress("glDrawArraysInstancedANGLE"));
929 DCHECK(fn.glDrawArraysInstancedANGLEFn);
932 debug_fn.glDrawBufferFn = 0;
933 if (!ver->is_es) {
934 fn.glDrawBufferFn =
935 reinterpret_cast<glDrawBufferProc>(GetGLProcAddress("glDrawBuffer"));
936 DCHECK(fn.glDrawBufferFn);
939 debug_fn.glDrawBuffersARBFn = 0;
940 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
941 fn.glDrawBuffersARBFn = reinterpret_cast<glDrawBuffersARBProc>(
942 GetGLProcAddress("glDrawBuffers"));
943 DCHECK(fn.glDrawBuffersARBFn);
944 } else if (ext.b_GL_ARB_draw_buffers) {
945 fn.glDrawBuffersARBFn = reinterpret_cast<glDrawBuffersARBProc>(
946 GetGLProcAddress("glDrawBuffersARB"));
947 DCHECK(fn.glDrawBuffersARBFn);
948 } else if (ext.b_GL_EXT_draw_buffers) {
949 fn.glDrawBuffersARBFn = reinterpret_cast<glDrawBuffersARBProc>(
950 GetGLProcAddress("glDrawBuffersEXT"));
951 DCHECK(fn.glDrawBuffersARBFn);
954 debug_fn.glDrawElementsInstancedANGLEFn = 0;
955 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
956 fn.glDrawElementsInstancedANGLEFn =
957 reinterpret_cast<glDrawElementsInstancedANGLEProc>(
958 GetGLProcAddress("glDrawElementsInstanced"));
959 DCHECK(fn.glDrawElementsInstancedANGLEFn);
960 } else if (ext.b_GL_ARB_draw_instanced) {
961 fn.glDrawElementsInstancedANGLEFn =
962 reinterpret_cast<glDrawElementsInstancedANGLEProc>(
963 GetGLProcAddress("glDrawElementsInstancedARB"));
964 DCHECK(fn.glDrawElementsInstancedANGLEFn);
965 } else if (ext.b_GL_ANGLE_instanced_arrays) {
966 fn.glDrawElementsInstancedANGLEFn =
967 reinterpret_cast<glDrawElementsInstancedANGLEProc>(
968 GetGLProcAddress("glDrawElementsInstancedANGLE"));
969 DCHECK(fn.glDrawElementsInstancedANGLEFn);
972 debug_fn.glDrawRangeElementsFn = 0;
973 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
974 fn.glDrawRangeElementsFn = reinterpret_cast<glDrawRangeElementsProc>(
975 GetGLProcAddress("glDrawRangeElements"));
976 DCHECK(fn.glDrawRangeElementsFn);
979 debug_fn.glEGLImageTargetRenderbufferStorageOESFn = 0;
980 if (ext.b_GL_OES_EGL_image) {
981 fn.glEGLImageTargetRenderbufferStorageOESFn =
982 reinterpret_cast<glEGLImageTargetRenderbufferStorageOESProc>(
983 GetGLProcAddress("glEGLImageTargetRenderbufferStorageOES"));
984 DCHECK(fn.glEGLImageTargetRenderbufferStorageOESFn);
987 debug_fn.glEGLImageTargetTexture2DOESFn = 0;
988 if (ext.b_GL_OES_EGL_image) {
989 fn.glEGLImageTargetTexture2DOESFn =
990 reinterpret_cast<glEGLImageTargetTexture2DOESProc>(
991 GetGLProcAddress("glEGLImageTargetTexture2DOES"));
992 DCHECK(fn.glEGLImageTargetTexture2DOESFn);
995 debug_fn.glEndQueryFn = 0;
996 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
997 fn.glEndQueryFn =
998 reinterpret_cast<glEndQueryProc>(GetGLProcAddress("glEndQuery"));
999 DCHECK(fn.glEndQueryFn);
1000 } else if (ext.b_GL_ARB_occlusion_query) {
1001 fn.glEndQueryFn =
1002 reinterpret_cast<glEndQueryProc>(GetGLProcAddress("glEndQueryARB"));
1003 DCHECK(fn.glEndQueryFn);
1004 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1005 ext.b_GL_EXT_occlusion_query_boolean) {
1006 fn.glEndQueryFn =
1007 reinterpret_cast<glEndQueryProc>(GetGLProcAddress("glEndQueryEXT"));
1008 DCHECK(fn.glEndQueryFn);
1011 debug_fn.glEndTransformFeedbackFn = 0;
1012 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1013 fn.glEndTransformFeedbackFn = reinterpret_cast<glEndTransformFeedbackProc>(
1014 GetGLProcAddress("glEndTransformFeedback"));
1015 DCHECK(fn.glEndTransformFeedbackFn);
1018 debug_fn.glFenceSyncFn = 0;
1019 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
1020 ext.b_GL_ARB_sync) {
1021 fn.glFenceSyncFn =
1022 reinterpret_cast<glFenceSyncProc>(GetGLProcAddress("glFenceSync"));
1023 DCHECK(fn.glFenceSyncFn);
1026 debug_fn.glFinishFenceAPPLEFn = 0;
1027 if (ext.b_GL_APPLE_fence) {
1028 fn.glFinishFenceAPPLEFn = reinterpret_cast<glFinishFenceAPPLEProc>(
1029 GetGLProcAddress("glFinishFenceAPPLE"));
1030 DCHECK(fn.glFinishFenceAPPLEFn);
1033 debug_fn.glFinishFenceNVFn = 0;
1034 if (ext.b_GL_NV_fence) {
1035 fn.glFinishFenceNVFn = reinterpret_cast<glFinishFenceNVProc>(
1036 GetGLProcAddress("glFinishFenceNV"));
1037 DCHECK(fn.glFinishFenceNVFn);
1040 debug_fn.glFlushMappedBufferRangeFn = 0;
1041 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1042 fn.glFlushMappedBufferRangeFn =
1043 reinterpret_cast<glFlushMappedBufferRangeProc>(
1044 GetGLProcAddress("glFlushMappedBufferRange"));
1045 DCHECK(fn.glFlushMappedBufferRangeFn);
1048 debug_fn.glFramebufferRenderbufferEXTFn = 0;
1049 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1050 fn.glFramebufferRenderbufferEXTFn =
1051 reinterpret_cast<glFramebufferRenderbufferEXTProc>(
1052 GetGLProcAddress("glFramebufferRenderbuffer"));
1053 DCHECK(fn.glFramebufferRenderbufferEXTFn);
1054 } else if (ext.b_GL_EXT_framebuffer_object) {
1055 fn.glFramebufferRenderbufferEXTFn =
1056 reinterpret_cast<glFramebufferRenderbufferEXTProc>(
1057 GetGLProcAddress("glFramebufferRenderbufferEXT"));
1058 DCHECK(fn.glFramebufferRenderbufferEXTFn);
1061 debug_fn.glFramebufferTexture2DEXTFn = 0;
1062 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1063 fn.glFramebufferTexture2DEXTFn =
1064 reinterpret_cast<glFramebufferTexture2DEXTProc>(
1065 GetGLProcAddress("glFramebufferTexture2D"));
1066 DCHECK(fn.glFramebufferTexture2DEXTFn);
1067 } else if (ext.b_GL_EXT_framebuffer_object) {
1068 fn.glFramebufferTexture2DEXTFn =
1069 reinterpret_cast<glFramebufferTexture2DEXTProc>(
1070 GetGLProcAddress("glFramebufferTexture2DEXT"));
1071 DCHECK(fn.glFramebufferTexture2DEXTFn);
1074 debug_fn.glFramebufferTexture2DMultisampleEXTFn = 0;
1075 if (ext.b_GL_EXT_multisampled_render_to_texture) {
1076 fn.glFramebufferTexture2DMultisampleEXTFn =
1077 reinterpret_cast<glFramebufferTexture2DMultisampleEXTProc>(
1078 GetGLProcAddress("glFramebufferTexture2DMultisampleEXT"));
1079 DCHECK(fn.glFramebufferTexture2DMultisampleEXTFn);
1082 debug_fn.glFramebufferTexture2DMultisampleIMGFn = 0;
1083 if (ext.b_GL_IMG_multisampled_render_to_texture) {
1084 fn.glFramebufferTexture2DMultisampleIMGFn =
1085 reinterpret_cast<glFramebufferTexture2DMultisampleIMGProc>(
1086 GetGLProcAddress("glFramebufferTexture2DMultisampleIMG"));
1087 DCHECK(fn.glFramebufferTexture2DMultisampleIMGFn);
1090 debug_fn.glFramebufferTextureLayerFn = 0;
1091 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1092 fn.glFramebufferTextureLayerFn =
1093 reinterpret_cast<glFramebufferTextureLayerProc>(
1094 GetGLProcAddress("glFramebufferTextureLayer"));
1095 DCHECK(fn.glFramebufferTextureLayerFn);
1098 debug_fn.glGenerateMipmapEXTFn = 0;
1099 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1100 fn.glGenerateMipmapEXTFn = reinterpret_cast<glGenerateMipmapEXTProc>(
1101 GetGLProcAddress("glGenerateMipmap"));
1102 DCHECK(fn.glGenerateMipmapEXTFn);
1103 } else if (ext.b_GL_EXT_framebuffer_object) {
1104 fn.glGenerateMipmapEXTFn = reinterpret_cast<glGenerateMipmapEXTProc>(
1105 GetGLProcAddress("glGenerateMipmapEXT"));
1106 DCHECK(fn.glGenerateMipmapEXTFn);
1109 debug_fn.glGenFencesAPPLEFn = 0;
1110 if (ext.b_GL_APPLE_fence) {
1111 fn.glGenFencesAPPLEFn = reinterpret_cast<glGenFencesAPPLEProc>(
1112 GetGLProcAddress("glGenFencesAPPLE"));
1113 DCHECK(fn.glGenFencesAPPLEFn);
1116 debug_fn.glGenFencesNVFn = 0;
1117 if (ext.b_GL_NV_fence) {
1118 fn.glGenFencesNVFn =
1119 reinterpret_cast<glGenFencesNVProc>(GetGLProcAddress("glGenFencesNV"));
1120 DCHECK(fn.glGenFencesNVFn);
1123 debug_fn.glGenFramebuffersEXTFn = 0;
1124 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1125 fn.glGenFramebuffersEXTFn = reinterpret_cast<glGenFramebuffersEXTProc>(
1126 GetGLProcAddress("glGenFramebuffers"));
1127 DCHECK(fn.glGenFramebuffersEXTFn);
1128 } else if (ext.b_GL_EXT_framebuffer_object) {
1129 fn.glGenFramebuffersEXTFn = reinterpret_cast<glGenFramebuffersEXTProc>(
1130 GetGLProcAddress("glGenFramebuffersEXT"));
1131 DCHECK(fn.glGenFramebuffersEXTFn);
1134 debug_fn.glGenPathsNVFn = 0;
1135 if (ext.b_GL_NV_path_rendering) {
1136 fn.glGenPathsNVFn =
1137 reinterpret_cast<glGenPathsNVProc>(GetGLProcAddress("glGenPathsNV"));
1138 DCHECK(fn.glGenPathsNVFn);
1141 debug_fn.glGenQueriesFn = 0;
1142 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1143 fn.glGenQueriesFn =
1144 reinterpret_cast<glGenQueriesProc>(GetGLProcAddress("glGenQueries"));
1145 DCHECK(fn.glGenQueriesFn);
1146 } else if (ext.b_GL_ARB_occlusion_query) {
1147 fn.glGenQueriesFn =
1148 reinterpret_cast<glGenQueriesProc>(GetGLProcAddress("glGenQueriesARB"));
1149 DCHECK(fn.glGenQueriesFn);
1150 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1151 ext.b_GL_EXT_occlusion_query_boolean) {
1152 fn.glGenQueriesFn =
1153 reinterpret_cast<glGenQueriesProc>(GetGLProcAddress("glGenQueriesEXT"));
1154 DCHECK(fn.glGenQueriesFn);
1157 debug_fn.glGenRenderbuffersEXTFn = 0;
1158 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1159 fn.glGenRenderbuffersEXTFn = reinterpret_cast<glGenRenderbuffersEXTProc>(
1160 GetGLProcAddress("glGenRenderbuffers"));
1161 DCHECK(fn.glGenRenderbuffersEXTFn);
1162 } else if (ext.b_GL_EXT_framebuffer_object) {
1163 fn.glGenRenderbuffersEXTFn = reinterpret_cast<glGenRenderbuffersEXTProc>(
1164 GetGLProcAddress("glGenRenderbuffersEXT"));
1165 DCHECK(fn.glGenRenderbuffersEXTFn);
1168 debug_fn.glGenSamplersFn = 0;
1169 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1170 fn.glGenSamplersFn =
1171 reinterpret_cast<glGenSamplersProc>(GetGLProcAddress("glGenSamplers"));
1172 DCHECK(fn.glGenSamplersFn);
1175 debug_fn.glGenTransformFeedbacksFn = 0;
1176 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
1177 fn.glGenTransformFeedbacksFn =
1178 reinterpret_cast<glGenTransformFeedbacksProc>(
1179 GetGLProcAddress("glGenTransformFeedbacks"));
1180 DCHECK(fn.glGenTransformFeedbacksFn);
1183 debug_fn.glGenVertexArraysOESFn = 0;
1184 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
1185 ext.b_GL_ARB_vertex_array_object) {
1186 fn.glGenVertexArraysOESFn = reinterpret_cast<glGenVertexArraysOESProc>(
1187 GetGLProcAddress("glGenVertexArrays"));
1188 DCHECK(fn.glGenVertexArraysOESFn);
1189 } else if (ext.b_GL_OES_vertex_array_object) {
1190 fn.glGenVertexArraysOESFn = reinterpret_cast<glGenVertexArraysOESProc>(
1191 GetGLProcAddress("glGenVertexArraysOES"));
1192 DCHECK(fn.glGenVertexArraysOESFn);
1193 } else if (ext.b_GL_APPLE_vertex_array_object) {
1194 fn.glGenVertexArraysOESFn = reinterpret_cast<glGenVertexArraysOESProc>(
1195 GetGLProcAddress("glGenVertexArraysAPPLE"));
1196 DCHECK(fn.glGenVertexArraysOESFn);
1199 debug_fn.glGetActiveUniformBlockivFn = 0;
1200 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1201 fn.glGetActiveUniformBlockivFn =
1202 reinterpret_cast<glGetActiveUniformBlockivProc>(
1203 GetGLProcAddress("glGetActiveUniformBlockiv"));
1204 DCHECK(fn.glGetActiveUniformBlockivFn);
1207 debug_fn.glGetActiveUniformBlockNameFn = 0;
1208 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1209 fn.glGetActiveUniformBlockNameFn =
1210 reinterpret_cast<glGetActiveUniformBlockNameProc>(
1211 GetGLProcAddress("glGetActiveUniformBlockName"));
1212 DCHECK(fn.glGetActiveUniformBlockNameFn);
1215 debug_fn.glGetActiveUniformsivFn = 0;
1216 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1217 fn.glGetActiveUniformsivFn = reinterpret_cast<glGetActiveUniformsivProc>(
1218 GetGLProcAddress("glGetActiveUniformsiv"));
1219 DCHECK(fn.glGetActiveUniformsivFn);
1222 debug_fn.glGetFenceivNVFn = 0;
1223 if (ext.b_GL_NV_fence) {
1224 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>(
1225 GetGLProcAddress("glGetFenceivNV"));
1226 DCHECK(fn.glGetFenceivNVFn);
1229 debug_fn.glGetFragDataLocationFn = 0;
1230 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1231 fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>(
1232 GetGLProcAddress("glGetFragDataLocation"));
1233 DCHECK(fn.glGetFragDataLocationFn);
1236 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 0;
1237 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1238 fn.glGetFramebufferAttachmentParameterivEXTFn =
1239 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc>(
1240 GetGLProcAddress("glGetFramebufferAttachmentParameteriv"));
1241 DCHECK(fn.glGetFramebufferAttachmentParameterivEXTFn);
1242 } else if (ext.b_GL_EXT_framebuffer_object) {
1243 fn.glGetFramebufferAttachmentParameterivEXTFn =
1244 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc>(
1245 GetGLProcAddress("glGetFramebufferAttachmentParameterivEXT"));
1246 DCHECK(fn.glGetFramebufferAttachmentParameterivEXTFn);
1249 debug_fn.glGetGraphicsResetStatusARBFn = 0;
1250 if (ver->IsAtLeastGL(4u, 5u)) {
1251 fn.glGetGraphicsResetStatusARBFn =
1252 reinterpret_cast<glGetGraphicsResetStatusARBProc>(
1253 GetGLProcAddress("glGetGraphicsResetStatus"));
1254 DCHECK(fn.glGetGraphicsResetStatusARBFn);
1255 } else if (ext.b_GL_ARB_robustness) {
1256 fn.glGetGraphicsResetStatusARBFn =
1257 reinterpret_cast<glGetGraphicsResetStatusARBProc>(
1258 GetGLProcAddress("glGetGraphicsResetStatusARB"));
1259 DCHECK(fn.glGetGraphicsResetStatusARBFn);
1260 } else if (ext.b_GL_KHR_robustness) {
1261 fn.glGetGraphicsResetStatusARBFn =
1262 reinterpret_cast<glGetGraphicsResetStatusARBProc>(
1263 GetGLProcAddress("glGetGraphicsResetStatusKHR"));
1264 DCHECK(fn.glGetGraphicsResetStatusARBFn);
1265 } else if (ext.b_GL_EXT_robustness) {
1266 fn.glGetGraphicsResetStatusARBFn =
1267 reinterpret_cast<glGetGraphicsResetStatusARBProc>(
1268 GetGLProcAddress("glGetGraphicsResetStatusEXT"));
1269 DCHECK(fn.glGetGraphicsResetStatusARBFn);
1272 debug_fn.glGetInteger64i_vFn = 0;
1273 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u)) {
1274 fn.glGetInteger64i_vFn = reinterpret_cast<glGetInteger64i_vProc>(
1275 GetGLProcAddress("glGetInteger64i_v"));
1276 DCHECK(fn.glGetInteger64i_vFn);
1279 debug_fn.glGetInteger64vFn = 0;
1280 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u)) {
1281 fn.glGetInteger64vFn = reinterpret_cast<glGetInteger64vProc>(
1282 GetGLProcAddress("glGetInteger64v"));
1283 DCHECK(fn.glGetInteger64vFn);
1286 debug_fn.glGetIntegeri_vFn = 0;
1287 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1288 fn.glGetIntegeri_vFn = reinterpret_cast<glGetIntegeri_vProc>(
1289 GetGLProcAddress("glGetIntegeri_v"));
1290 DCHECK(fn.glGetIntegeri_vFn);
1293 debug_fn.glGetInternalformativFn = 0;
1294 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u)) {
1295 fn.glGetInternalformativFn = reinterpret_cast<glGetInternalformativProc>(
1296 GetGLProcAddress("glGetInternalformativ"));
1297 DCHECK(fn.glGetInternalformativFn);
1300 debug_fn.glGetProgramBinaryFn = 0;
1301 if (ver->IsAtLeastGL(4u, 1u) || ver->IsAtLeastGLES(3u, 0u) ||
1302 ext.b_GL_ARB_get_program_binary) {
1303 fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>(
1304 GetGLProcAddress("glGetProgramBinary"));
1305 DCHECK(fn.glGetProgramBinaryFn);
1306 } else if (ext.b_GL_OES_get_program_binary) {
1307 fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>(
1308 GetGLProcAddress("glGetProgramBinaryOES"));
1309 DCHECK(fn.glGetProgramBinaryFn);
1312 debug_fn.glGetProgramResourceLocationFn = 0;
1313 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 1u)) {
1314 fn.glGetProgramResourceLocationFn =
1315 reinterpret_cast<glGetProgramResourceLocationProc>(
1316 GetGLProcAddress("glGetProgramResourceLocation"));
1317 DCHECK(fn.glGetProgramResourceLocationFn);
1320 debug_fn.glGetQueryivFn = 0;
1321 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1322 fn.glGetQueryivFn =
1323 reinterpret_cast<glGetQueryivProc>(GetGLProcAddress("glGetQueryiv"));
1324 DCHECK(fn.glGetQueryivFn);
1325 } else if (ext.b_GL_ARB_occlusion_query) {
1326 fn.glGetQueryivFn =
1327 reinterpret_cast<glGetQueryivProc>(GetGLProcAddress("glGetQueryivARB"));
1328 DCHECK(fn.glGetQueryivFn);
1329 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1330 ext.b_GL_EXT_occlusion_query_boolean) {
1331 fn.glGetQueryivFn =
1332 reinterpret_cast<glGetQueryivProc>(GetGLProcAddress("glGetQueryivEXT"));
1333 DCHECK(fn.glGetQueryivFn);
1336 debug_fn.glGetQueryObjecti64vFn = 0;
1337 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_timer_query) {
1338 fn.glGetQueryObjecti64vFn = reinterpret_cast<glGetQueryObjecti64vProc>(
1339 GetGLProcAddress("glGetQueryObjecti64v"));
1340 DCHECK(fn.glGetQueryObjecti64vFn);
1341 } else if (ext.b_GL_EXT_timer_query || ext.b_GL_EXT_disjoint_timer_query) {
1342 fn.glGetQueryObjecti64vFn = reinterpret_cast<glGetQueryObjecti64vProc>(
1343 GetGLProcAddress("glGetQueryObjecti64vEXT"));
1344 DCHECK(fn.glGetQueryObjecti64vFn);
1347 debug_fn.glGetQueryObjectivFn = 0;
1348 if (!ver->is_es) {
1349 fn.glGetQueryObjectivFn = reinterpret_cast<glGetQueryObjectivProc>(
1350 GetGLProcAddress("glGetQueryObjectiv"));
1351 DCHECK(fn.glGetQueryObjectivFn);
1352 } else if (ext.b_GL_ARB_occlusion_query) {
1353 fn.glGetQueryObjectivFn = reinterpret_cast<glGetQueryObjectivProc>(
1354 GetGLProcAddress("glGetQueryObjectivARB"));
1355 DCHECK(fn.glGetQueryObjectivFn);
1356 } else if (ext.b_GL_EXT_disjoint_timer_query) {
1357 fn.glGetQueryObjectivFn = reinterpret_cast<glGetQueryObjectivProc>(
1358 GetGLProcAddress("glGetQueryObjectivEXT"));
1359 DCHECK(fn.glGetQueryObjectivFn);
1362 debug_fn.glGetQueryObjectui64vFn = 0;
1363 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_timer_query) {
1364 fn.glGetQueryObjectui64vFn = reinterpret_cast<glGetQueryObjectui64vProc>(
1365 GetGLProcAddress("glGetQueryObjectui64v"));
1366 DCHECK(fn.glGetQueryObjectui64vFn);
1367 } else if (ext.b_GL_EXT_timer_query || ext.b_GL_EXT_disjoint_timer_query) {
1368 fn.glGetQueryObjectui64vFn = reinterpret_cast<glGetQueryObjectui64vProc>(
1369 GetGLProcAddress("glGetQueryObjectui64vEXT"));
1370 DCHECK(fn.glGetQueryObjectui64vFn);
1373 debug_fn.glGetQueryObjectuivFn = 0;
1374 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1375 fn.glGetQueryObjectuivFn = reinterpret_cast<glGetQueryObjectuivProc>(
1376 GetGLProcAddress("glGetQueryObjectuiv"));
1377 DCHECK(fn.glGetQueryObjectuivFn);
1378 } else if (ext.b_GL_ARB_occlusion_query) {
1379 fn.glGetQueryObjectuivFn = reinterpret_cast<glGetQueryObjectuivProc>(
1380 GetGLProcAddress("glGetQueryObjectuivARB"));
1381 DCHECK(fn.glGetQueryObjectuivFn);
1382 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1383 ext.b_GL_EXT_occlusion_query_boolean) {
1384 fn.glGetQueryObjectuivFn = reinterpret_cast<glGetQueryObjectuivProc>(
1385 GetGLProcAddress("glGetQueryObjectuivEXT"));
1386 DCHECK(fn.glGetQueryObjectuivFn);
1389 debug_fn.glGetRenderbufferParameterivEXTFn = 0;
1390 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1391 fn.glGetRenderbufferParameterivEXTFn =
1392 reinterpret_cast<glGetRenderbufferParameterivEXTProc>(
1393 GetGLProcAddress("glGetRenderbufferParameteriv"));
1394 DCHECK(fn.glGetRenderbufferParameterivEXTFn);
1395 } else if (ext.b_GL_EXT_framebuffer_object) {
1396 fn.glGetRenderbufferParameterivEXTFn =
1397 reinterpret_cast<glGetRenderbufferParameterivEXTProc>(
1398 GetGLProcAddress("glGetRenderbufferParameterivEXT"));
1399 DCHECK(fn.glGetRenderbufferParameterivEXTFn);
1402 debug_fn.glGetSamplerParameterfvFn = 0;
1403 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1404 fn.glGetSamplerParameterfvFn =
1405 reinterpret_cast<glGetSamplerParameterfvProc>(
1406 GetGLProcAddress("glGetSamplerParameterfv"));
1407 DCHECK(fn.glGetSamplerParameterfvFn);
1410 debug_fn.glGetSamplerParameterivFn = 0;
1411 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1412 fn.glGetSamplerParameterivFn =
1413 reinterpret_cast<glGetSamplerParameterivProc>(
1414 GetGLProcAddress("glGetSamplerParameteriv"));
1415 DCHECK(fn.glGetSamplerParameterivFn);
1418 debug_fn.glGetShaderPrecisionFormatFn = 0;
1419 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
1420 fn.glGetShaderPrecisionFormatFn =
1421 reinterpret_cast<glGetShaderPrecisionFormatProc>(
1422 GetGLProcAddress("glGetShaderPrecisionFormat"));
1423 DCHECK(fn.glGetShaderPrecisionFormatFn);
1426 debug_fn.glGetSyncivFn = 0;
1427 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
1428 ext.b_GL_ARB_sync) {
1429 fn.glGetSyncivFn =
1430 reinterpret_cast<glGetSyncivProc>(GetGLProcAddress("glGetSynciv"));
1431 DCHECK(fn.glGetSyncivFn);
1434 debug_fn.glGetTexLevelParameterfvFn = 0;
1435 if (!ver->is_es || ver->IsAtLeastGLES(3u, 1u)) {
1436 fn.glGetTexLevelParameterfvFn =
1437 reinterpret_cast<glGetTexLevelParameterfvProc>(
1438 GetGLProcAddress("glGetTexLevelParameterfv"));
1439 DCHECK(fn.glGetTexLevelParameterfvFn);
1442 debug_fn.glGetTexLevelParameterivFn = 0;
1443 if (!ver->is_es || ver->IsAtLeastGLES(3u, 1u)) {
1444 fn.glGetTexLevelParameterivFn =
1445 reinterpret_cast<glGetTexLevelParameterivProc>(
1446 GetGLProcAddress("glGetTexLevelParameteriv"));
1447 DCHECK(fn.glGetTexLevelParameterivFn);
1450 debug_fn.glGetTransformFeedbackVaryingFn = 0;
1451 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1452 fn.glGetTransformFeedbackVaryingFn =
1453 reinterpret_cast<glGetTransformFeedbackVaryingProc>(
1454 GetGLProcAddress("glGetTransformFeedbackVarying"));
1455 DCHECK(fn.glGetTransformFeedbackVaryingFn);
1458 debug_fn.glGetTranslatedShaderSourceANGLEFn = 0;
1459 if (ext.b_GL_ANGLE_translated_shader_source) {
1460 fn.glGetTranslatedShaderSourceANGLEFn =
1461 reinterpret_cast<glGetTranslatedShaderSourceANGLEProc>(
1462 GetGLProcAddress("glGetTranslatedShaderSourceANGLE"));
1463 DCHECK(fn.glGetTranslatedShaderSourceANGLEFn);
1466 debug_fn.glGetUniformBlockIndexFn = 0;
1467 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1468 fn.glGetUniformBlockIndexFn = reinterpret_cast<glGetUniformBlockIndexProc>(
1469 GetGLProcAddress("glGetUniformBlockIndex"));
1470 DCHECK(fn.glGetUniformBlockIndexFn);
1473 debug_fn.glGetUniformIndicesFn = 0;
1474 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1475 fn.glGetUniformIndicesFn = reinterpret_cast<glGetUniformIndicesProc>(
1476 GetGLProcAddress("glGetUniformIndices"));
1477 DCHECK(fn.glGetUniformIndicesFn);
1480 debug_fn.glGetUniformuivFn = 0;
1481 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1482 fn.glGetUniformuivFn = reinterpret_cast<glGetUniformuivProc>(
1483 GetGLProcAddress("glGetUniformuiv"));
1484 DCHECK(fn.glGetUniformuivFn);
1487 debug_fn.glInsertEventMarkerEXTFn = 0;
1488 if (ext.b_GL_EXT_debug_marker) {
1489 fn.glInsertEventMarkerEXTFn = reinterpret_cast<glInsertEventMarkerEXTProc>(
1490 GetGLProcAddress("glInsertEventMarkerEXT"));
1491 DCHECK(fn.glInsertEventMarkerEXTFn);
1494 debug_fn.glInvalidateFramebufferFn = 0;
1495 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1496 fn.glInvalidateFramebufferFn =
1497 reinterpret_cast<glInvalidateFramebufferProc>(
1498 GetGLProcAddress("glInvalidateFramebuffer"));
1499 DCHECK(fn.glInvalidateFramebufferFn);
1502 debug_fn.glInvalidateSubFramebufferFn = 0;
1503 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1504 fn.glInvalidateSubFramebufferFn =
1505 reinterpret_cast<glInvalidateSubFramebufferProc>(
1506 GetGLProcAddress("glInvalidateSubFramebuffer"));
1507 DCHECK(fn.glInvalidateSubFramebufferFn);
1510 debug_fn.glIsFenceAPPLEFn = 0;
1511 if (ext.b_GL_APPLE_fence) {
1512 fn.glIsFenceAPPLEFn = reinterpret_cast<glIsFenceAPPLEProc>(
1513 GetGLProcAddress("glIsFenceAPPLE"));
1514 DCHECK(fn.glIsFenceAPPLEFn);
1517 debug_fn.glIsFenceNVFn = 0;
1518 if (ext.b_GL_NV_fence) {
1519 fn.glIsFenceNVFn =
1520 reinterpret_cast<glIsFenceNVProc>(GetGLProcAddress("glIsFenceNV"));
1521 DCHECK(fn.glIsFenceNVFn);
1524 debug_fn.glIsFramebufferEXTFn = 0;
1525 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1526 fn.glIsFramebufferEXTFn = reinterpret_cast<glIsFramebufferEXTProc>(
1527 GetGLProcAddress("glIsFramebuffer"));
1528 DCHECK(fn.glIsFramebufferEXTFn);
1529 } else if (ext.b_GL_EXT_framebuffer_object) {
1530 fn.glIsFramebufferEXTFn = reinterpret_cast<glIsFramebufferEXTProc>(
1531 GetGLProcAddress("glIsFramebufferEXT"));
1532 DCHECK(fn.glIsFramebufferEXTFn);
1535 debug_fn.glIsPathNVFn = 0;
1536 if (ext.b_GL_NV_path_rendering) {
1537 fn.glIsPathNVFn =
1538 reinterpret_cast<glIsPathNVProc>(GetGLProcAddress("glIsPathNV"));
1539 DCHECK(fn.glIsPathNVFn);
1542 debug_fn.glIsQueryFn = 0;
1543 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1544 fn.glIsQueryFn =
1545 reinterpret_cast<glIsQueryProc>(GetGLProcAddress("glIsQuery"));
1546 DCHECK(fn.glIsQueryFn);
1547 } else if (ext.b_GL_ARB_occlusion_query) {
1548 fn.glIsQueryFn =
1549 reinterpret_cast<glIsQueryProc>(GetGLProcAddress("glIsQueryARB"));
1550 DCHECK(fn.glIsQueryFn);
1551 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1552 ext.b_GL_EXT_occlusion_query_boolean) {
1553 fn.glIsQueryFn =
1554 reinterpret_cast<glIsQueryProc>(GetGLProcAddress("glIsQueryEXT"));
1555 DCHECK(fn.glIsQueryFn);
1558 debug_fn.glIsRenderbufferEXTFn = 0;
1559 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1560 fn.glIsRenderbufferEXTFn = reinterpret_cast<glIsRenderbufferEXTProc>(
1561 GetGLProcAddress("glIsRenderbuffer"));
1562 DCHECK(fn.glIsRenderbufferEXTFn);
1563 } else if (ext.b_GL_EXT_framebuffer_object) {
1564 fn.glIsRenderbufferEXTFn = reinterpret_cast<glIsRenderbufferEXTProc>(
1565 GetGLProcAddress("glIsRenderbufferEXT"));
1566 DCHECK(fn.glIsRenderbufferEXTFn);
1569 debug_fn.glIsSamplerFn = 0;
1570 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1571 fn.glIsSamplerFn =
1572 reinterpret_cast<glIsSamplerProc>(GetGLProcAddress("glIsSampler"));
1573 DCHECK(fn.glIsSamplerFn);
1576 debug_fn.glIsSyncFn = 0;
1577 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
1578 ext.b_GL_ARB_sync) {
1579 fn.glIsSyncFn =
1580 reinterpret_cast<glIsSyncProc>(GetGLProcAddress("glIsSync"));
1581 DCHECK(fn.glIsSyncFn);
1584 debug_fn.glIsTransformFeedbackFn = 0;
1585 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
1586 fn.glIsTransformFeedbackFn = reinterpret_cast<glIsTransformFeedbackProc>(
1587 GetGLProcAddress("glIsTransformFeedback"));
1588 DCHECK(fn.glIsTransformFeedbackFn);
1591 debug_fn.glIsVertexArrayOESFn = 0;
1592 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
1593 ext.b_GL_ARB_vertex_array_object) {
1594 fn.glIsVertexArrayOESFn = reinterpret_cast<glIsVertexArrayOESProc>(
1595 GetGLProcAddress("glIsVertexArray"));
1596 DCHECK(fn.glIsVertexArrayOESFn);
1597 } else if (ext.b_GL_OES_vertex_array_object) {
1598 fn.glIsVertexArrayOESFn = reinterpret_cast<glIsVertexArrayOESProc>(
1599 GetGLProcAddress("glIsVertexArrayOES"));
1600 DCHECK(fn.glIsVertexArrayOESFn);
1601 } else if (ext.b_GL_APPLE_vertex_array_object) {
1602 fn.glIsVertexArrayOESFn = reinterpret_cast<glIsVertexArrayOESProc>(
1603 GetGLProcAddress("glIsVertexArrayAPPLE"));
1604 DCHECK(fn.glIsVertexArrayOESFn);
1607 debug_fn.glMapBufferFn = 0;
1608 if (!ver->is_es) {
1609 fn.glMapBufferFn =
1610 reinterpret_cast<glMapBufferProc>(GetGLProcAddress("glMapBuffer"));
1611 DCHECK(fn.glMapBufferFn);
1612 } else if (ext.b_GL_OES_mapbuffer) {
1613 fn.glMapBufferFn =
1614 reinterpret_cast<glMapBufferProc>(GetGLProcAddress("glMapBufferOES"));
1615 DCHECK(fn.glMapBufferFn);
1618 debug_fn.glMapBufferRangeFn = 0;
1619 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
1620 ext.b_GL_ARB_map_buffer_range) {
1621 fn.glMapBufferRangeFn = reinterpret_cast<glMapBufferRangeProc>(
1622 GetGLProcAddress("glMapBufferRange"));
1623 DCHECK(fn.glMapBufferRangeFn);
1624 } else if (ext.b_GL_EXT_map_buffer_range) {
1625 fn.glMapBufferRangeFn = reinterpret_cast<glMapBufferRangeProc>(
1626 GetGLProcAddress("glMapBufferRangeEXT"));
1627 DCHECK(fn.glMapBufferRangeFn);
1630 debug_fn.glMatrixLoadfEXTFn = 0;
1631 if (ext.b_GL_EXT_direct_state_access || ext.b_GL_NV_path_rendering) {
1632 fn.glMatrixLoadfEXTFn = reinterpret_cast<glMatrixLoadfEXTProc>(
1633 GetGLProcAddress("glMatrixLoadfEXT"));
1634 DCHECK(fn.glMatrixLoadfEXTFn);
1637 debug_fn.glMatrixLoadIdentityEXTFn = 0;
1638 if (ext.b_GL_EXT_direct_state_access || ext.b_GL_NV_path_rendering) {
1639 fn.glMatrixLoadIdentityEXTFn =
1640 reinterpret_cast<glMatrixLoadIdentityEXTProc>(
1641 GetGLProcAddress("glMatrixLoadIdentityEXT"));
1642 DCHECK(fn.glMatrixLoadIdentityEXTFn);
1645 debug_fn.glPathCommandsNVFn = 0;
1646 if (ext.b_GL_NV_path_rendering) {
1647 fn.glPathCommandsNVFn = reinterpret_cast<glPathCommandsNVProc>(
1648 GetGLProcAddress("glPathCommandsNV"));
1649 DCHECK(fn.glPathCommandsNVFn);
1652 debug_fn.glPathParameterfNVFn = 0;
1653 if (ext.b_GL_NV_path_rendering) {
1654 fn.glPathParameterfNVFn = reinterpret_cast<glPathParameterfNVProc>(
1655 GetGLProcAddress("glPathParameterfNV"));
1656 DCHECK(fn.glPathParameterfNVFn);
1659 debug_fn.glPathParameteriNVFn = 0;
1660 if (ext.b_GL_NV_path_rendering) {
1661 fn.glPathParameteriNVFn = reinterpret_cast<glPathParameteriNVProc>(
1662 GetGLProcAddress("glPathParameteriNV"));
1663 DCHECK(fn.glPathParameteriNVFn);
1666 debug_fn.glPathStencilFuncNVFn = 0;
1667 if (ext.b_GL_NV_path_rendering) {
1668 fn.glPathStencilFuncNVFn = reinterpret_cast<glPathStencilFuncNVProc>(
1669 GetGLProcAddress("glPathStencilFuncNV"));
1670 DCHECK(fn.glPathStencilFuncNVFn);
1673 debug_fn.glPauseTransformFeedbackFn = 0;
1674 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
1675 fn.glPauseTransformFeedbackFn =
1676 reinterpret_cast<glPauseTransformFeedbackProc>(
1677 GetGLProcAddress("glPauseTransformFeedback"));
1678 DCHECK(fn.glPauseTransformFeedbackFn);
1681 debug_fn.glPointParameteriFn = 0;
1682 if (!ver->is_es) {
1683 fn.glPointParameteriFn = reinterpret_cast<glPointParameteriProc>(
1684 GetGLProcAddress("glPointParameteri"));
1685 DCHECK(fn.glPointParameteriFn);
1688 debug_fn.glPopGroupMarkerEXTFn = 0;
1689 if (ext.b_GL_EXT_debug_marker) {
1690 fn.glPopGroupMarkerEXTFn = reinterpret_cast<glPopGroupMarkerEXTProc>(
1691 GetGLProcAddress("glPopGroupMarkerEXT"));
1692 DCHECK(fn.glPopGroupMarkerEXTFn);
1695 debug_fn.glProgramBinaryFn = 0;
1696 if (ver->IsAtLeastGL(4u, 1u) || ver->IsAtLeastGLES(3u, 0u) ||
1697 ext.b_GL_ARB_get_program_binary) {
1698 fn.glProgramBinaryFn = reinterpret_cast<glProgramBinaryProc>(
1699 GetGLProcAddress("glProgramBinary"));
1700 DCHECK(fn.glProgramBinaryFn);
1701 } else if (ext.b_GL_OES_get_program_binary) {
1702 fn.glProgramBinaryFn = reinterpret_cast<glProgramBinaryProc>(
1703 GetGLProcAddress("glProgramBinaryOES"));
1704 DCHECK(fn.glProgramBinaryFn);
1707 debug_fn.glProgramParameteriFn = 0;
1708 if (ver->IsAtLeastGL(4u, 1u) || ver->IsAtLeastGLES(3u, 0u) ||
1709 ext.b_GL_ARB_get_program_binary) {
1710 fn.glProgramParameteriFn = reinterpret_cast<glProgramParameteriProc>(
1711 GetGLProcAddress("glProgramParameteri"));
1712 DCHECK(fn.glProgramParameteriFn);
1715 debug_fn.glPushGroupMarkerEXTFn = 0;
1716 if (ext.b_GL_EXT_debug_marker) {
1717 fn.glPushGroupMarkerEXTFn = reinterpret_cast<glPushGroupMarkerEXTProc>(
1718 GetGLProcAddress("glPushGroupMarkerEXT"));
1719 DCHECK(fn.glPushGroupMarkerEXTFn);
1722 debug_fn.glQueryCounterFn = 0;
1723 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_timer_query) {
1724 fn.glQueryCounterFn = reinterpret_cast<glQueryCounterProc>(
1725 GetGLProcAddress("glQueryCounter"));
1726 DCHECK(fn.glQueryCounterFn);
1727 } else if (ext.b_GL_EXT_disjoint_timer_query) {
1728 fn.glQueryCounterFn = reinterpret_cast<glQueryCounterProc>(
1729 GetGLProcAddress("glQueryCounterEXT"));
1730 DCHECK(fn.glQueryCounterFn);
1733 debug_fn.glReadBufferFn = 0;
1734 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1735 fn.glReadBufferFn =
1736 reinterpret_cast<glReadBufferProc>(GetGLProcAddress("glReadBuffer"));
1737 DCHECK(fn.glReadBufferFn);
1740 debug_fn.glReleaseShaderCompilerFn = 0;
1741 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
1742 fn.glReleaseShaderCompilerFn =
1743 reinterpret_cast<glReleaseShaderCompilerProc>(
1744 GetGLProcAddress("glReleaseShaderCompiler"));
1745 DCHECK(fn.glReleaseShaderCompilerFn);
1748 debug_fn.glRenderbufferStorageEXTFn = 0;
1749 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1750 fn.glRenderbufferStorageEXTFn =
1751 reinterpret_cast<glRenderbufferStorageEXTProc>(
1752 GetGLProcAddress("glRenderbufferStorage"));
1753 DCHECK(fn.glRenderbufferStorageEXTFn);
1754 } else if (ext.b_GL_EXT_framebuffer_object) {
1755 fn.glRenderbufferStorageEXTFn =
1756 reinterpret_cast<glRenderbufferStorageEXTProc>(
1757 GetGLProcAddress("glRenderbufferStorageEXT"));
1758 DCHECK(fn.glRenderbufferStorageEXTFn);
1761 debug_fn.glRenderbufferStorageMultisampleFn = 0;
1762 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1763 fn.glRenderbufferStorageMultisampleFn =
1764 reinterpret_cast<glRenderbufferStorageMultisampleProc>(
1765 GetGLProcAddress("glRenderbufferStorageMultisample"));
1766 DCHECK(fn.glRenderbufferStorageMultisampleFn);
1769 debug_fn.glRenderbufferStorageMultisampleANGLEFn = 0;
1770 if (ext.b_GL_ANGLE_framebuffer_multisample) {
1771 fn.glRenderbufferStorageMultisampleANGLEFn =
1772 reinterpret_cast<glRenderbufferStorageMultisampleANGLEProc>(
1773 GetGLProcAddress("glRenderbufferStorageMultisampleANGLE"));
1774 DCHECK(fn.glRenderbufferStorageMultisampleANGLEFn);
1777 debug_fn.glRenderbufferStorageMultisampleEXTFn = 0;
1778 if (ext.b_GL_EXT_multisampled_render_to_texture ||
1779 ext.b_GL_EXT_framebuffer_multisample) {
1780 fn.glRenderbufferStorageMultisampleEXTFn =
1781 reinterpret_cast<glRenderbufferStorageMultisampleEXTProc>(
1782 GetGLProcAddress("glRenderbufferStorageMultisampleEXT"));
1783 DCHECK(fn.glRenderbufferStorageMultisampleEXTFn);
1786 debug_fn.glRenderbufferStorageMultisampleIMGFn = 0;
1787 if (ext.b_GL_IMG_multisampled_render_to_texture) {
1788 fn.glRenderbufferStorageMultisampleIMGFn =
1789 reinterpret_cast<glRenderbufferStorageMultisampleIMGProc>(
1790 GetGLProcAddress("glRenderbufferStorageMultisampleIMG"));
1791 DCHECK(fn.glRenderbufferStorageMultisampleIMGFn);
1794 debug_fn.glResumeTransformFeedbackFn = 0;
1795 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
1796 fn.glResumeTransformFeedbackFn =
1797 reinterpret_cast<glResumeTransformFeedbackProc>(
1798 GetGLProcAddress("glResumeTransformFeedback"));
1799 DCHECK(fn.glResumeTransformFeedbackFn);
1802 debug_fn.glSamplerParameterfFn = 0;
1803 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1804 fn.glSamplerParameterfFn = reinterpret_cast<glSamplerParameterfProc>(
1805 GetGLProcAddress("glSamplerParameterf"));
1806 DCHECK(fn.glSamplerParameterfFn);
1809 debug_fn.glSamplerParameterfvFn = 0;
1810 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1811 fn.glSamplerParameterfvFn = reinterpret_cast<glSamplerParameterfvProc>(
1812 GetGLProcAddress("glSamplerParameterfv"));
1813 DCHECK(fn.glSamplerParameterfvFn);
1816 debug_fn.glSamplerParameteriFn = 0;
1817 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1818 fn.glSamplerParameteriFn = reinterpret_cast<glSamplerParameteriProc>(
1819 GetGLProcAddress("glSamplerParameteri"));
1820 DCHECK(fn.glSamplerParameteriFn);
1823 debug_fn.glSamplerParameterivFn = 0;
1824 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1825 fn.glSamplerParameterivFn = reinterpret_cast<glSamplerParameterivProc>(
1826 GetGLProcAddress("glSamplerParameteriv"));
1827 DCHECK(fn.glSamplerParameterivFn);
1830 debug_fn.glSetFenceAPPLEFn = 0;
1831 if (ext.b_GL_APPLE_fence) {
1832 fn.glSetFenceAPPLEFn = reinterpret_cast<glSetFenceAPPLEProc>(
1833 GetGLProcAddress("glSetFenceAPPLE"));
1834 DCHECK(fn.glSetFenceAPPLEFn);
1837 debug_fn.glSetFenceNVFn = 0;
1838 if (ext.b_GL_NV_fence) {
1839 fn.glSetFenceNVFn =
1840 reinterpret_cast<glSetFenceNVProc>(GetGLProcAddress("glSetFenceNV"));
1841 DCHECK(fn.glSetFenceNVFn);
1844 debug_fn.glShaderBinaryFn = 0;
1845 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
1846 fn.glShaderBinaryFn = reinterpret_cast<glShaderBinaryProc>(
1847 GetGLProcAddress("glShaderBinary"));
1848 DCHECK(fn.glShaderBinaryFn);
1851 debug_fn.glStencilFillPathNVFn = 0;
1852 if (ext.b_GL_NV_path_rendering) {
1853 fn.glStencilFillPathNVFn = reinterpret_cast<glStencilFillPathNVProc>(
1854 GetGLProcAddress("glStencilFillPathNV"));
1855 DCHECK(fn.glStencilFillPathNVFn);
1858 debug_fn.glStencilStrokePathNVFn = 0;
1859 if (ext.b_GL_NV_path_rendering) {
1860 fn.glStencilStrokePathNVFn = reinterpret_cast<glStencilStrokePathNVProc>(
1861 GetGLProcAddress("glStencilStrokePathNV"));
1862 DCHECK(fn.glStencilStrokePathNVFn);
1865 debug_fn.glStencilThenCoverFillPathNVFn = 0;
1866 if (ext.b_GL_NV_path_rendering) {
1867 fn.glStencilThenCoverFillPathNVFn =
1868 reinterpret_cast<glStencilThenCoverFillPathNVProc>(
1869 GetGLProcAddress("glStencilThenCoverFillPathNV"));
1872 debug_fn.glStencilThenCoverStrokePathNVFn = 0;
1873 if (ext.b_GL_NV_path_rendering) {
1874 fn.glStencilThenCoverStrokePathNVFn =
1875 reinterpret_cast<glStencilThenCoverStrokePathNVProc>(
1876 GetGLProcAddress("glStencilThenCoverStrokePathNV"));
1879 debug_fn.glTestFenceAPPLEFn = 0;
1880 if (ext.b_GL_APPLE_fence) {
1881 fn.glTestFenceAPPLEFn = reinterpret_cast<glTestFenceAPPLEProc>(
1882 GetGLProcAddress("glTestFenceAPPLE"));
1883 DCHECK(fn.glTestFenceAPPLEFn);
1886 debug_fn.glTestFenceNVFn = 0;
1887 if (ext.b_GL_NV_fence) {
1888 fn.glTestFenceNVFn =
1889 reinterpret_cast<glTestFenceNVProc>(GetGLProcAddress("glTestFenceNV"));
1890 DCHECK(fn.glTestFenceNVFn);
1893 debug_fn.glTexImage3DFn = 0;
1894 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1895 fn.glTexImage3DFn =
1896 reinterpret_cast<glTexImage3DProc>(GetGLProcAddress("glTexImage3D"));
1897 DCHECK(fn.glTexImage3DFn);
1900 debug_fn.glTexStorage2DEXTFn = 0;
1901 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
1902 ext.b_GL_ARB_texture_storage) {
1903 fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>(
1904 GetGLProcAddress("glTexStorage2D"));
1905 DCHECK(fn.glTexStorage2DEXTFn);
1906 } else if (ext.b_GL_EXT_texture_storage) {
1907 fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>(
1908 GetGLProcAddress("glTexStorage2DEXT"));
1909 DCHECK(fn.glTexStorage2DEXTFn);
1912 debug_fn.glTexStorage3DFn = 0;
1913 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u)) {
1914 fn.glTexStorage3DFn = reinterpret_cast<glTexStorage3DProc>(
1915 GetGLProcAddress("glTexStorage3D"));
1916 DCHECK(fn.glTexStorage3DFn);
1919 debug_fn.glTexSubImage3DFn = 0;
1920 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1921 fn.glTexSubImage3DFn = reinterpret_cast<glTexSubImage3DProc>(
1922 GetGLProcAddress("glTexSubImage3D"));
1923 DCHECK(fn.glTexSubImage3DFn);
1926 debug_fn.glTransformFeedbackVaryingsFn = 0;
1927 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1928 fn.glTransformFeedbackVaryingsFn =
1929 reinterpret_cast<glTransformFeedbackVaryingsProc>(
1930 GetGLProcAddress("glTransformFeedbackVaryings"));
1931 DCHECK(fn.glTransformFeedbackVaryingsFn);
1934 debug_fn.glUniform1uiFn = 0;
1935 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1936 fn.glUniform1uiFn =
1937 reinterpret_cast<glUniform1uiProc>(GetGLProcAddress("glUniform1ui"));
1938 DCHECK(fn.glUniform1uiFn);
1941 debug_fn.glUniform1uivFn = 0;
1942 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1943 fn.glUniform1uivFn =
1944 reinterpret_cast<glUniform1uivProc>(GetGLProcAddress("glUniform1uiv"));
1945 DCHECK(fn.glUniform1uivFn);
1948 debug_fn.glUniform2uiFn = 0;
1949 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1950 fn.glUniform2uiFn =
1951 reinterpret_cast<glUniform2uiProc>(GetGLProcAddress("glUniform2ui"));
1952 DCHECK(fn.glUniform2uiFn);
1955 debug_fn.glUniform2uivFn = 0;
1956 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1957 fn.glUniform2uivFn =
1958 reinterpret_cast<glUniform2uivProc>(GetGLProcAddress("glUniform2uiv"));
1959 DCHECK(fn.glUniform2uivFn);
1962 debug_fn.glUniform3uiFn = 0;
1963 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1964 fn.glUniform3uiFn =
1965 reinterpret_cast<glUniform3uiProc>(GetGLProcAddress("glUniform3ui"));
1966 DCHECK(fn.glUniform3uiFn);
1969 debug_fn.glUniform3uivFn = 0;
1970 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1971 fn.glUniform3uivFn =
1972 reinterpret_cast<glUniform3uivProc>(GetGLProcAddress("glUniform3uiv"));
1973 DCHECK(fn.glUniform3uivFn);
1976 debug_fn.glUniform4uiFn = 0;
1977 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1978 fn.glUniform4uiFn =
1979 reinterpret_cast<glUniform4uiProc>(GetGLProcAddress("glUniform4ui"));
1980 DCHECK(fn.glUniform4uiFn);
1983 debug_fn.glUniform4uivFn = 0;
1984 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1985 fn.glUniform4uivFn =
1986 reinterpret_cast<glUniform4uivProc>(GetGLProcAddress("glUniform4uiv"));
1987 DCHECK(fn.glUniform4uivFn);
1990 debug_fn.glUniformBlockBindingFn = 0;
1991 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1992 fn.glUniformBlockBindingFn = reinterpret_cast<glUniformBlockBindingProc>(
1993 GetGLProcAddress("glUniformBlockBinding"));
1994 DCHECK(fn.glUniformBlockBindingFn);
1997 debug_fn.glUniformMatrix2x3fvFn = 0;
1998 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1999 fn.glUniformMatrix2x3fvFn = reinterpret_cast<glUniformMatrix2x3fvProc>(
2000 GetGLProcAddress("glUniformMatrix2x3fv"));
2001 DCHECK(fn.glUniformMatrix2x3fvFn);
2004 debug_fn.glUniformMatrix2x4fvFn = 0;
2005 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
2006 fn.glUniformMatrix2x4fvFn = reinterpret_cast<glUniformMatrix2x4fvProc>(
2007 GetGLProcAddress("glUniformMatrix2x4fv"));
2008 DCHECK(fn.glUniformMatrix2x4fvFn);
2011 debug_fn.glUniformMatrix3x2fvFn = 0;
2012 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
2013 fn.glUniformMatrix3x2fvFn = reinterpret_cast<glUniformMatrix3x2fvProc>(
2014 GetGLProcAddress("glUniformMatrix3x2fv"));
2015 DCHECK(fn.glUniformMatrix3x2fvFn);
2018 debug_fn.glUniformMatrix3x4fvFn = 0;
2019 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
2020 fn.glUniformMatrix3x4fvFn = reinterpret_cast<glUniformMatrix3x4fvProc>(
2021 GetGLProcAddress("glUniformMatrix3x4fv"));
2022 DCHECK(fn.glUniformMatrix3x4fvFn);
2025 debug_fn.glUniformMatrix4x2fvFn = 0;
2026 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
2027 fn.glUniformMatrix4x2fvFn = reinterpret_cast<glUniformMatrix4x2fvProc>(
2028 GetGLProcAddress("glUniformMatrix4x2fv"));
2029 DCHECK(fn.glUniformMatrix4x2fvFn);
2032 debug_fn.glUniformMatrix4x3fvFn = 0;
2033 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
2034 fn.glUniformMatrix4x3fvFn = reinterpret_cast<glUniformMatrix4x3fvProc>(
2035 GetGLProcAddress("glUniformMatrix4x3fv"));
2036 DCHECK(fn.glUniformMatrix4x3fvFn);
2039 debug_fn.glUnmapBufferFn = 0;
2040 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
2041 fn.glUnmapBufferFn =
2042 reinterpret_cast<glUnmapBufferProc>(GetGLProcAddress("glUnmapBuffer"));
2043 DCHECK(fn.glUnmapBufferFn);
2044 } else if (ext.b_GL_OES_mapbuffer) {
2045 fn.glUnmapBufferFn = reinterpret_cast<glUnmapBufferProc>(
2046 GetGLProcAddress("glUnmapBufferOES"));
2047 DCHECK(fn.glUnmapBufferFn);
2050 debug_fn.glVertexAttribDivisorANGLEFn = 0;
2051 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
2052 fn.glVertexAttribDivisorANGLEFn =
2053 reinterpret_cast<glVertexAttribDivisorANGLEProc>(
2054 GetGLProcAddress("glVertexAttribDivisor"));
2055 DCHECK(fn.glVertexAttribDivisorANGLEFn);
2056 } else if (ext.b_GL_ARB_instanced_arrays) {
2057 fn.glVertexAttribDivisorANGLEFn =
2058 reinterpret_cast<glVertexAttribDivisorANGLEProc>(
2059 GetGLProcAddress("glVertexAttribDivisorARB"));
2060 DCHECK(fn.glVertexAttribDivisorANGLEFn);
2061 } else if (ext.b_GL_ANGLE_instanced_arrays) {
2062 fn.glVertexAttribDivisorANGLEFn =
2063 reinterpret_cast<glVertexAttribDivisorANGLEProc>(
2064 GetGLProcAddress("glVertexAttribDivisorANGLE"));
2065 DCHECK(fn.glVertexAttribDivisorANGLEFn);
2068 debug_fn.glVertexAttribI4iFn = 0;
2069 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
2070 fn.glVertexAttribI4iFn = reinterpret_cast<glVertexAttribI4iProc>(
2071 GetGLProcAddress("glVertexAttribI4i"));
2072 DCHECK(fn.glVertexAttribI4iFn);
2075 debug_fn.glVertexAttribI4ivFn = 0;
2076 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
2077 fn.glVertexAttribI4ivFn = reinterpret_cast<glVertexAttribI4ivProc>(
2078 GetGLProcAddress("glVertexAttribI4iv"));
2079 DCHECK(fn.glVertexAttribI4ivFn);
2082 debug_fn.glVertexAttribI4uiFn = 0;
2083 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
2084 fn.glVertexAttribI4uiFn = reinterpret_cast<glVertexAttribI4uiProc>(
2085 GetGLProcAddress("glVertexAttribI4ui"));
2086 DCHECK(fn.glVertexAttribI4uiFn);
2089 debug_fn.glVertexAttribI4uivFn = 0;
2090 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
2091 fn.glVertexAttribI4uivFn = reinterpret_cast<glVertexAttribI4uivProc>(
2092 GetGLProcAddress("glVertexAttribI4uiv"));
2093 DCHECK(fn.glVertexAttribI4uivFn);
2096 debug_fn.glVertexAttribIPointerFn = 0;
2097 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
2098 fn.glVertexAttribIPointerFn = reinterpret_cast<glVertexAttribIPointerProc>(
2099 GetGLProcAddress("glVertexAttribIPointer"));
2100 DCHECK(fn.glVertexAttribIPointerFn);
2103 debug_fn.glWaitSyncFn = 0;
2104 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
2105 ext.b_GL_ARB_sync) {
2106 fn.glWaitSyncFn =
2107 reinterpret_cast<glWaitSyncProc>(GetGLProcAddress("glWaitSync"));
2108 DCHECK(fn.glWaitSyncFn);
2111 if (g_debugBindingsInitialized)
2112 InitializeDebugBindings();
2115 extern "C" {
2117 static void GL_BINDING_CALL Debug_glActiveTexture(GLenum texture) {
2118 GL_SERVICE_LOG("glActiveTexture"
2119 << "(" << GLEnums::GetStringEnum(texture) << ")");
2120 g_driver_gl.debug_fn.glActiveTextureFn(texture);
2123 static void GL_BINDING_CALL
2124 Debug_glAttachShader(GLuint program, GLuint shader) {
2125 GL_SERVICE_LOG("glAttachShader"
2126 << "(" << program << ", " << shader << ")");
2127 g_driver_gl.debug_fn.glAttachShaderFn(program, shader);
2130 static void GL_BINDING_CALL Debug_glBeginQuery(GLenum target, GLuint id) {
2131 GL_SERVICE_LOG("glBeginQuery"
2132 << "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
2133 g_driver_gl.debug_fn.glBeginQueryFn(target, id);
2136 static void GL_BINDING_CALL
2137 Debug_glBeginTransformFeedback(GLenum primitiveMode) {
2138 GL_SERVICE_LOG("glBeginTransformFeedback"
2139 << "(" << GLEnums::GetStringEnum(primitiveMode) << ")");
2140 g_driver_gl.debug_fn.glBeginTransformFeedbackFn(primitiveMode);
2143 static void GL_BINDING_CALL
2144 Debug_glBindAttribLocation(GLuint program, GLuint index, const char* name) {
2145 GL_SERVICE_LOG("glBindAttribLocation"
2146 << "(" << program << ", " << index << ", " << name << ")");
2147 g_driver_gl.debug_fn.glBindAttribLocationFn(program, index, name);
2150 static void GL_BINDING_CALL Debug_glBindBuffer(GLenum target, GLuint buffer) {
2151 GL_SERVICE_LOG("glBindBuffer"
2152 << "(" << GLEnums::GetStringEnum(target) << ", " << buffer
2153 << ")");
2154 g_driver_gl.debug_fn.glBindBufferFn(target, buffer);
2157 static void GL_BINDING_CALL
2158 Debug_glBindBufferBase(GLenum target, GLuint index, GLuint buffer) {
2159 GL_SERVICE_LOG("glBindBufferBase"
2160 << "(" << GLEnums::GetStringEnum(target) << ", " << index
2161 << ", " << buffer << ")");
2162 g_driver_gl.debug_fn.glBindBufferBaseFn(target, index, buffer);
2165 static void GL_BINDING_CALL Debug_glBindBufferRange(GLenum target,
2166 GLuint index,
2167 GLuint buffer,
2168 GLintptr offset,
2169 GLsizeiptr size) {
2170 GL_SERVICE_LOG("glBindBufferRange"
2171 << "(" << GLEnums::GetStringEnum(target) << ", " << index
2172 << ", " << buffer << ", " << offset << ", " << size << ")");
2173 g_driver_gl.debug_fn.glBindBufferRangeFn(target, index, buffer, offset, size);
2176 static void GL_BINDING_CALL Debug_glBindFragDataLocation(GLuint program,
2177 GLuint colorNumber,
2178 const char* name) {
2179 GL_SERVICE_LOG("glBindFragDataLocation"
2180 << "(" << program << ", " << colorNumber << ", " << name
2181 << ")");
2182 g_driver_gl.debug_fn.glBindFragDataLocationFn(program, colorNumber, name);
2185 static void GL_BINDING_CALL
2186 Debug_glBindFragDataLocationIndexed(GLuint program,
2187 GLuint colorNumber,
2188 GLuint index,
2189 const char* name) {
2190 GL_SERVICE_LOG("glBindFragDataLocationIndexed"
2191 << "(" << program << ", " << colorNumber << ", " << index
2192 << ", " << name << ")");
2193 g_driver_gl.debug_fn.glBindFragDataLocationIndexedFn(program, colorNumber,
2194 index, name);
2197 static void GL_BINDING_CALL
2198 Debug_glBindFramebufferEXT(GLenum target, GLuint framebuffer) {
2199 GL_SERVICE_LOG("glBindFramebufferEXT"
2200 << "(" << GLEnums::GetStringEnum(target) << ", " << framebuffer
2201 << ")");
2202 g_driver_gl.debug_fn.glBindFramebufferEXTFn(target, framebuffer);
2205 static void GL_BINDING_CALL
2206 Debug_glBindRenderbufferEXT(GLenum target, GLuint renderbuffer) {
2207 GL_SERVICE_LOG("glBindRenderbufferEXT"
2208 << "(" << GLEnums::GetStringEnum(target) << ", "
2209 << renderbuffer << ")");
2210 g_driver_gl.debug_fn.glBindRenderbufferEXTFn(target, renderbuffer);
2213 static void GL_BINDING_CALL Debug_glBindSampler(GLuint unit, GLuint sampler) {
2214 GL_SERVICE_LOG("glBindSampler"
2215 << "(" << unit << ", " << sampler << ")");
2216 g_driver_gl.debug_fn.glBindSamplerFn(unit, sampler);
2219 static void GL_BINDING_CALL Debug_glBindTexture(GLenum target, GLuint texture) {
2220 GL_SERVICE_LOG("glBindTexture"
2221 << "(" << GLEnums::GetStringEnum(target) << ", " << texture
2222 << ")");
2223 g_driver_gl.debug_fn.glBindTextureFn(target, texture);
2226 static void GL_BINDING_CALL
2227 Debug_glBindTransformFeedback(GLenum target, GLuint id) {
2228 GL_SERVICE_LOG("glBindTransformFeedback"
2229 << "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
2230 g_driver_gl.debug_fn.glBindTransformFeedbackFn(target, id);
2233 static void GL_BINDING_CALL Debug_glBindVertexArrayOES(GLuint array) {
2234 GL_SERVICE_LOG("glBindVertexArrayOES"
2235 << "(" << array << ")");
2236 g_driver_gl.debug_fn.glBindVertexArrayOESFn(array);
2239 static void GL_BINDING_CALL Debug_glBlendBarrierKHR(void) {
2240 GL_SERVICE_LOG("glBlendBarrierKHR"
2241 << "("
2242 << ")");
2243 g_driver_gl.debug_fn.glBlendBarrierKHRFn();
2246 static void GL_BINDING_CALL Debug_glBlendColor(GLclampf red,
2247 GLclampf green,
2248 GLclampf blue,
2249 GLclampf alpha) {
2250 GL_SERVICE_LOG("glBlendColor"
2251 << "(" << red << ", " << green << ", " << blue << ", " << alpha
2252 << ")");
2253 g_driver_gl.debug_fn.glBlendColorFn(red, green, blue, alpha);
2256 static void GL_BINDING_CALL Debug_glBlendEquation(GLenum mode) {
2257 GL_SERVICE_LOG("glBlendEquation"
2258 << "(" << GLEnums::GetStringEnum(mode) << ")");
2259 g_driver_gl.debug_fn.glBlendEquationFn(mode);
2262 static void GL_BINDING_CALL
2263 Debug_glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
2264 GL_SERVICE_LOG("glBlendEquationSeparate"
2265 << "(" << GLEnums::GetStringEnum(modeRGB) << ", "
2266 << GLEnums::GetStringEnum(modeAlpha) << ")");
2267 g_driver_gl.debug_fn.glBlendEquationSeparateFn(modeRGB, modeAlpha);
2270 static void GL_BINDING_CALL Debug_glBlendFunc(GLenum sfactor, GLenum dfactor) {
2271 GL_SERVICE_LOG("glBlendFunc"
2272 << "(" << GLEnums::GetStringEnum(sfactor) << ", "
2273 << GLEnums::GetStringEnum(dfactor) << ")");
2274 g_driver_gl.debug_fn.glBlendFuncFn(sfactor, dfactor);
2277 static void GL_BINDING_CALL Debug_glBlendFuncSeparate(GLenum srcRGB,
2278 GLenum dstRGB,
2279 GLenum srcAlpha,
2280 GLenum dstAlpha) {
2281 GL_SERVICE_LOG("glBlendFuncSeparate"
2282 << "(" << GLEnums::GetStringEnum(srcRGB) << ", "
2283 << GLEnums::GetStringEnum(dstRGB) << ", "
2284 << GLEnums::GetStringEnum(srcAlpha) << ", "
2285 << GLEnums::GetStringEnum(dstAlpha) << ")");
2286 g_driver_gl.debug_fn.glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha,
2287 dstAlpha);
2290 static void GL_BINDING_CALL Debug_glBlitFramebuffer(GLint srcX0,
2291 GLint srcY0,
2292 GLint srcX1,
2293 GLint srcY1,
2294 GLint dstX0,
2295 GLint dstY0,
2296 GLint dstX1,
2297 GLint dstY1,
2298 GLbitfield mask,
2299 GLenum filter) {
2300 GL_SERVICE_LOG("glBlitFramebuffer"
2301 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2302 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2303 << ", " << dstY1 << ", " << mask << ", "
2304 << GLEnums::GetStringEnum(filter) << ")");
2305 g_driver_gl.debug_fn.glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0,
2306 dstY0, dstX1, dstY1, mask, filter);
2309 static void GL_BINDING_CALL Debug_glBlitFramebufferANGLE(GLint srcX0,
2310 GLint srcY0,
2311 GLint srcX1,
2312 GLint srcY1,
2313 GLint dstX0,
2314 GLint dstY0,
2315 GLint dstX1,
2316 GLint dstY1,
2317 GLbitfield mask,
2318 GLenum filter) {
2319 GL_SERVICE_LOG("glBlitFramebufferANGLE"
2320 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2321 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2322 << ", " << dstY1 << ", " << mask << ", "
2323 << GLEnums::GetStringEnum(filter) << ")");
2324 g_driver_gl.debug_fn.glBlitFramebufferANGLEFn(
2325 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
2328 static void GL_BINDING_CALL Debug_glBlitFramebufferEXT(GLint srcX0,
2329 GLint srcY0,
2330 GLint srcX1,
2331 GLint srcY1,
2332 GLint dstX0,
2333 GLint dstY0,
2334 GLint dstX1,
2335 GLint dstY1,
2336 GLbitfield mask,
2337 GLenum filter) {
2338 GL_SERVICE_LOG("glBlitFramebufferEXT"
2339 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2340 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2341 << ", " << dstY1 << ", " << mask << ", "
2342 << GLEnums::GetStringEnum(filter) << ")");
2343 g_driver_gl.debug_fn.glBlitFramebufferEXTFn(
2344 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
2347 static void GL_BINDING_CALL Debug_glBufferData(GLenum target,
2348 GLsizeiptr size,
2349 const void* data,
2350 GLenum usage) {
2351 GL_SERVICE_LOG("glBufferData"
2352 << "(" << GLEnums::GetStringEnum(target) << ", " << size
2353 << ", " << static_cast<const void*>(data) << ", "
2354 << GLEnums::GetStringEnum(usage) << ")");
2355 g_driver_gl.debug_fn.glBufferDataFn(target, size, data, usage);
2358 static void GL_BINDING_CALL Debug_glBufferSubData(GLenum target,
2359 GLintptr offset,
2360 GLsizeiptr size,
2361 const void* data) {
2362 GL_SERVICE_LOG("glBufferSubData"
2363 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
2364 << ", " << size << ", " << static_cast<const void*>(data)
2365 << ")");
2366 g_driver_gl.debug_fn.glBufferSubDataFn(target, offset, size, data);
2369 static GLenum GL_BINDING_CALL Debug_glCheckFramebufferStatusEXT(GLenum target) {
2370 GL_SERVICE_LOG("glCheckFramebufferStatusEXT"
2371 << "(" << GLEnums::GetStringEnum(target) << ")");
2372 GLenum result = g_driver_gl.debug_fn.glCheckFramebufferStatusEXTFn(target);
2374 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringEnum(result));
2376 return result;
2379 static void GL_BINDING_CALL Debug_glClear(GLbitfield mask) {
2380 GL_SERVICE_LOG("glClear"
2381 << "(" << mask << ")");
2382 g_driver_gl.debug_fn.glClearFn(mask);
2385 static void GL_BINDING_CALL Debug_glClearBufferfi(GLenum buffer,
2386 GLint drawbuffer,
2387 const GLfloat depth,
2388 GLint stencil) {
2389 GL_SERVICE_LOG("glClearBufferfi"
2390 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2391 << ", " << depth << ", " << stencil << ")");
2392 g_driver_gl.debug_fn.glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
2395 static void GL_BINDING_CALL
2396 Debug_glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat* value) {
2397 GL_SERVICE_LOG("glClearBufferfv"
2398 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2399 << ", " << static_cast<const void*>(value) << ")");
2400 g_driver_gl.debug_fn.glClearBufferfvFn(buffer, drawbuffer, value);
2403 static void GL_BINDING_CALL
2404 Debug_glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint* value) {
2405 GL_SERVICE_LOG("glClearBufferiv"
2406 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2407 << ", " << static_cast<const void*>(value) << ")");
2408 g_driver_gl.debug_fn.glClearBufferivFn(buffer, drawbuffer, value);
2411 static void GL_BINDING_CALL
2412 Debug_glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint* value) {
2413 GL_SERVICE_LOG("glClearBufferuiv"
2414 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2415 << ", " << static_cast<const void*>(value) << ")");
2416 g_driver_gl.debug_fn.glClearBufferuivFn(buffer, drawbuffer, value);
2419 static void GL_BINDING_CALL Debug_glClearColor(GLclampf red,
2420 GLclampf green,
2421 GLclampf blue,
2422 GLclampf alpha) {
2423 GL_SERVICE_LOG("glClearColor"
2424 << "(" << red << ", " << green << ", " << blue << ", " << alpha
2425 << ")");
2426 g_driver_gl.debug_fn.glClearColorFn(red, green, blue, alpha);
2429 static void GL_BINDING_CALL Debug_glClearDepth(GLclampd depth) {
2430 GL_SERVICE_LOG("glClearDepth"
2431 << "(" << depth << ")");
2432 g_driver_gl.debug_fn.glClearDepthFn(depth);
2435 static void GL_BINDING_CALL Debug_glClearDepthf(GLclampf depth) {
2436 GL_SERVICE_LOG("glClearDepthf"
2437 << "(" << depth << ")");
2438 g_driver_gl.debug_fn.glClearDepthfFn(depth);
2441 static void GL_BINDING_CALL Debug_glClearStencil(GLint s) {
2442 GL_SERVICE_LOG("glClearStencil"
2443 << "(" << s << ")");
2444 g_driver_gl.debug_fn.glClearStencilFn(s);
2447 static GLenum GL_BINDING_CALL
2448 Debug_glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
2449 GL_SERVICE_LOG("glClientWaitSync"
2450 << "(" << sync << ", " << flags << ", " << timeout << ")");
2451 GLenum result = g_driver_gl.debug_fn.glClientWaitSyncFn(sync, flags, timeout);
2452 GL_SERVICE_LOG("GL_RESULT: " << result);
2453 return result;
2456 static void GL_BINDING_CALL Debug_glColorMask(GLboolean red,
2457 GLboolean green,
2458 GLboolean blue,
2459 GLboolean alpha) {
2460 GL_SERVICE_LOG("glColorMask"
2461 << "(" << GLEnums::GetStringBool(red) << ", "
2462 << GLEnums::GetStringBool(green) << ", "
2463 << GLEnums::GetStringBool(blue) << ", "
2464 << GLEnums::GetStringBool(alpha) << ")");
2465 g_driver_gl.debug_fn.glColorMaskFn(red, green, blue, alpha);
2468 static void GL_BINDING_CALL Debug_glCompileShader(GLuint shader) {
2469 GL_SERVICE_LOG("glCompileShader"
2470 << "(" << shader << ")");
2471 g_driver_gl.debug_fn.glCompileShaderFn(shader);
2474 static void GL_BINDING_CALL Debug_glCompressedTexImage2D(GLenum target,
2475 GLint level,
2476 GLenum internalformat,
2477 GLsizei width,
2478 GLsizei height,
2479 GLint border,
2480 GLsizei imageSize,
2481 const void* data) {
2482 GL_SERVICE_LOG("glCompressedTexImage2D"
2483 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2484 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
2485 << width << ", " << height << ", " << border << ", "
2486 << imageSize << ", " << static_cast<const void*>(data) << ")");
2487 g_driver_gl.debug_fn.glCompressedTexImage2DFn(
2488 target, level, internalformat, width, height, border, imageSize, data);
2491 static void GL_BINDING_CALL Debug_glCompressedTexImage3D(GLenum target,
2492 GLint level,
2493 GLenum internalformat,
2494 GLsizei width,
2495 GLsizei height,
2496 GLsizei depth,
2497 GLint border,
2498 GLsizei imageSize,
2499 const void* data) {
2500 GL_SERVICE_LOG("glCompressedTexImage3D"
2501 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2502 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
2503 << width << ", " << height << ", " << depth << ", " << border
2504 << ", " << imageSize << ", " << static_cast<const void*>(data)
2505 << ")");
2506 g_driver_gl.debug_fn.glCompressedTexImage3DFn(target, level, internalformat,
2507 width, height, depth, border,
2508 imageSize, data);
2511 static void GL_BINDING_CALL Debug_glCompressedTexSubImage2D(GLenum target,
2512 GLint level,
2513 GLint xoffset,
2514 GLint yoffset,
2515 GLsizei width,
2516 GLsizei height,
2517 GLenum format,
2518 GLsizei imageSize,
2519 const void* data) {
2520 GL_SERVICE_LOG("glCompressedTexSubImage2D"
2521 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2522 << ", " << xoffset << ", " << yoffset << ", " << width << ", "
2523 << height << ", " << GLEnums::GetStringEnum(format) << ", "
2524 << imageSize << ", " << static_cast<const void*>(data) << ")");
2525 g_driver_gl.debug_fn.glCompressedTexSubImage2DFn(
2526 target, level, xoffset, yoffset, width, height, format, imageSize, data);
2529 static void GL_BINDING_CALL Debug_glCompressedTexSubImage3D(GLenum target,
2530 GLint level,
2531 GLint xoffset,
2532 GLint yoffset,
2533 GLint zoffset,
2534 GLsizei width,
2535 GLsizei height,
2536 GLsizei depth,
2537 GLenum format,
2538 GLsizei imageSize,
2539 const void* data) {
2540 GL_SERVICE_LOG("glCompressedTexSubImage3D"
2541 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2542 << ", " << xoffset << ", " << yoffset << ", " << zoffset
2543 << ", " << width << ", " << height << ", " << depth << ", "
2544 << GLEnums::GetStringEnum(format) << ", " << imageSize << ", "
2545 << static_cast<const void*>(data) << ")");
2546 g_driver_gl.debug_fn.glCompressedTexSubImage3DFn(
2547 target, level, xoffset, yoffset, zoffset, width, height, depth, format,
2548 imageSize, data);
2551 static void GL_BINDING_CALL Debug_glCopyBufferSubData(GLenum readTarget,
2552 GLenum writeTarget,
2553 GLintptr readOffset,
2554 GLintptr writeOffset,
2555 GLsizeiptr size) {
2556 GL_SERVICE_LOG("glCopyBufferSubData"
2557 << "(" << GLEnums::GetStringEnum(readTarget) << ", "
2558 << GLEnums::GetStringEnum(writeTarget) << ", " << readOffset
2559 << ", " << writeOffset << ", " << size << ")");
2560 g_driver_gl.debug_fn.glCopyBufferSubDataFn(readTarget, writeTarget,
2561 readOffset, writeOffset, size);
2564 static void GL_BINDING_CALL Debug_glCopyTexImage2D(GLenum target,
2565 GLint level,
2566 GLenum internalformat,
2567 GLint x,
2568 GLint y,
2569 GLsizei width,
2570 GLsizei height,
2571 GLint border) {
2572 GL_SERVICE_LOG("glCopyTexImage2D"
2573 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2574 << ", " << GLEnums::GetStringEnum(internalformat) << ", " << x
2575 << ", " << y << ", " << width << ", " << height << ", "
2576 << border << ")");
2577 g_driver_gl.debug_fn.glCopyTexImage2DFn(target, level, internalformat, x, y,
2578 width, height, border);
2581 static void GL_BINDING_CALL Debug_glCopyTexSubImage2D(GLenum target,
2582 GLint level,
2583 GLint xoffset,
2584 GLint yoffset,
2585 GLint x,
2586 GLint y,
2587 GLsizei width,
2588 GLsizei height) {
2589 GL_SERVICE_LOG("glCopyTexSubImage2D"
2590 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2591 << ", " << xoffset << ", " << yoffset << ", " << x << ", " << y
2592 << ", " << width << ", " << height << ")");
2593 g_driver_gl.debug_fn.glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x,
2594 y, width, height);
2597 static void GL_BINDING_CALL Debug_glCopyTexSubImage3D(GLenum target,
2598 GLint level,
2599 GLint xoffset,
2600 GLint yoffset,
2601 GLint zoffset,
2602 GLint x,
2603 GLint y,
2604 GLsizei width,
2605 GLsizei height) {
2606 GL_SERVICE_LOG("glCopyTexSubImage3D"
2607 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2608 << ", " << xoffset << ", " << yoffset << ", " << zoffset
2609 << ", " << x << ", " << y << ", " << width << ", " << height
2610 << ")");
2611 g_driver_gl.debug_fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset,
2612 zoffset, x, y, width, height);
2615 static void GL_BINDING_CALL
2616 Debug_glCoverFillPathNV(GLuint path, GLenum coverMode) {
2617 GL_SERVICE_LOG("glCoverFillPathNV"
2618 << "(" << path << ", " << GLEnums::GetStringEnum(coverMode)
2619 << ")");
2620 g_driver_gl.debug_fn.glCoverFillPathNVFn(path, coverMode);
2623 static void GL_BINDING_CALL
2624 Debug_glCoverStrokePathNV(GLuint name, GLenum coverMode) {
2625 GL_SERVICE_LOG("glCoverStrokePathNV"
2626 << "(" << name << ", " << GLEnums::GetStringEnum(coverMode)
2627 << ")");
2628 g_driver_gl.debug_fn.glCoverStrokePathNVFn(name, coverMode);
2631 static GLuint GL_BINDING_CALL Debug_glCreateProgram(void) {
2632 GL_SERVICE_LOG("glCreateProgram"
2633 << "("
2634 << ")");
2635 GLuint result = g_driver_gl.debug_fn.glCreateProgramFn();
2636 GL_SERVICE_LOG("GL_RESULT: " << result);
2637 return result;
2640 static GLuint GL_BINDING_CALL Debug_glCreateShader(GLenum type) {
2641 GL_SERVICE_LOG("glCreateShader"
2642 << "(" << GLEnums::GetStringEnum(type) << ")");
2643 GLuint result = g_driver_gl.debug_fn.glCreateShaderFn(type);
2644 GL_SERVICE_LOG("GL_RESULT: " << result);
2645 return result;
2648 static void GL_BINDING_CALL Debug_glCullFace(GLenum mode) {
2649 GL_SERVICE_LOG("glCullFace"
2650 << "(" << GLEnums::GetStringEnum(mode) << ")");
2651 g_driver_gl.debug_fn.glCullFaceFn(mode);
2654 static void GL_BINDING_CALL
2655 Debug_glDeleteBuffersARB(GLsizei n, const GLuint* buffers) {
2656 GL_SERVICE_LOG("glDeleteBuffersARB"
2657 << "(" << n << ", " << static_cast<const void*>(buffers)
2658 << ")");
2659 g_driver_gl.debug_fn.glDeleteBuffersARBFn(n, buffers);
2662 static void GL_BINDING_CALL
2663 Debug_glDeleteFencesAPPLE(GLsizei n, const GLuint* fences) {
2664 GL_SERVICE_LOG("glDeleteFencesAPPLE"
2665 << "(" << n << ", " << static_cast<const void*>(fences)
2666 << ")");
2667 g_driver_gl.debug_fn.glDeleteFencesAPPLEFn(n, fences);
2670 static void GL_BINDING_CALL
2671 Debug_glDeleteFencesNV(GLsizei n, const GLuint* fences) {
2672 GL_SERVICE_LOG("glDeleteFencesNV"
2673 << "(" << n << ", " << static_cast<const void*>(fences)
2674 << ")");
2675 g_driver_gl.debug_fn.glDeleteFencesNVFn(n, fences);
2678 static void GL_BINDING_CALL
2679 Debug_glDeleteFramebuffersEXT(GLsizei n, const GLuint* framebuffers) {
2680 GL_SERVICE_LOG("glDeleteFramebuffersEXT"
2681 << "(" << n << ", " << static_cast<const void*>(framebuffers)
2682 << ")");
2683 g_driver_gl.debug_fn.glDeleteFramebuffersEXTFn(n, framebuffers);
2686 static void GL_BINDING_CALL Debug_glDeletePathsNV(GLuint path, GLsizei range) {
2687 GL_SERVICE_LOG("glDeletePathsNV"
2688 << "(" << path << ", " << range << ")");
2689 g_driver_gl.debug_fn.glDeletePathsNVFn(path, range);
2692 static void GL_BINDING_CALL Debug_glDeleteProgram(GLuint program) {
2693 GL_SERVICE_LOG("glDeleteProgram"
2694 << "(" << program << ")");
2695 g_driver_gl.debug_fn.glDeleteProgramFn(program);
2698 static void GL_BINDING_CALL
2699 Debug_glDeleteQueries(GLsizei n, const GLuint* ids) {
2700 GL_SERVICE_LOG("glDeleteQueries"
2701 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2702 g_driver_gl.debug_fn.glDeleteQueriesFn(n, ids);
2705 static void GL_BINDING_CALL
2706 Debug_glDeleteRenderbuffersEXT(GLsizei n, const GLuint* renderbuffers) {
2707 GL_SERVICE_LOG("glDeleteRenderbuffersEXT"
2708 << "(" << n << ", " << static_cast<const void*>(renderbuffers)
2709 << ")");
2710 g_driver_gl.debug_fn.glDeleteRenderbuffersEXTFn(n, renderbuffers);
2713 static void GL_BINDING_CALL
2714 Debug_glDeleteSamplers(GLsizei n, const GLuint* samplers) {
2715 GL_SERVICE_LOG("glDeleteSamplers"
2716 << "(" << n << ", " << static_cast<const void*>(samplers)
2717 << ")");
2718 g_driver_gl.debug_fn.glDeleteSamplersFn(n, samplers);
2721 static void GL_BINDING_CALL Debug_glDeleteShader(GLuint shader) {
2722 GL_SERVICE_LOG("glDeleteShader"
2723 << "(" << shader << ")");
2724 g_driver_gl.debug_fn.glDeleteShaderFn(shader);
2727 static void GL_BINDING_CALL Debug_glDeleteSync(GLsync sync) {
2728 GL_SERVICE_LOG("glDeleteSync"
2729 << "(" << sync << ")");
2730 g_driver_gl.debug_fn.glDeleteSyncFn(sync);
2733 static void GL_BINDING_CALL
2734 Debug_glDeleteTextures(GLsizei n, const GLuint* textures) {
2735 GL_SERVICE_LOG("glDeleteTextures"
2736 << "(" << n << ", " << static_cast<const void*>(textures)
2737 << ")");
2738 g_driver_gl.debug_fn.glDeleteTexturesFn(n, textures);
2741 static void GL_BINDING_CALL
2742 Debug_glDeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
2743 GL_SERVICE_LOG("glDeleteTransformFeedbacks"
2744 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2745 g_driver_gl.debug_fn.glDeleteTransformFeedbacksFn(n, ids);
2748 static void GL_BINDING_CALL
2749 Debug_glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
2750 GL_SERVICE_LOG("glDeleteVertexArraysOES"
2751 << "(" << n << ", " << static_cast<const void*>(arrays)
2752 << ")");
2753 g_driver_gl.debug_fn.glDeleteVertexArraysOESFn(n, arrays);
2756 static void GL_BINDING_CALL Debug_glDepthFunc(GLenum func) {
2757 GL_SERVICE_LOG("glDepthFunc"
2758 << "(" << GLEnums::GetStringEnum(func) << ")");
2759 g_driver_gl.debug_fn.glDepthFuncFn(func);
2762 static void GL_BINDING_CALL Debug_glDepthMask(GLboolean flag) {
2763 GL_SERVICE_LOG("glDepthMask"
2764 << "(" << GLEnums::GetStringBool(flag) << ")");
2765 g_driver_gl.debug_fn.glDepthMaskFn(flag);
2768 static void GL_BINDING_CALL Debug_glDepthRange(GLclampd zNear, GLclampd zFar) {
2769 GL_SERVICE_LOG("glDepthRange"
2770 << "(" << zNear << ", " << zFar << ")");
2771 g_driver_gl.debug_fn.glDepthRangeFn(zNear, zFar);
2774 static void GL_BINDING_CALL Debug_glDepthRangef(GLclampf zNear, GLclampf zFar) {
2775 GL_SERVICE_LOG("glDepthRangef"
2776 << "(" << zNear << ", " << zFar << ")");
2777 g_driver_gl.debug_fn.glDepthRangefFn(zNear, zFar);
2780 static void GL_BINDING_CALL
2781 Debug_glDetachShader(GLuint program, GLuint shader) {
2782 GL_SERVICE_LOG("glDetachShader"
2783 << "(" << program << ", " << shader << ")");
2784 g_driver_gl.debug_fn.glDetachShaderFn(program, shader);
2787 static void GL_BINDING_CALL Debug_glDisable(GLenum cap) {
2788 GL_SERVICE_LOG("glDisable"
2789 << "(" << GLEnums::GetStringEnum(cap) << ")");
2790 g_driver_gl.debug_fn.glDisableFn(cap);
2793 static void GL_BINDING_CALL Debug_glDisableVertexAttribArray(GLuint index) {
2794 GL_SERVICE_LOG("glDisableVertexAttribArray"
2795 << "(" << index << ")");
2796 g_driver_gl.debug_fn.glDisableVertexAttribArrayFn(index);
2799 static void GL_BINDING_CALL
2800 Debug_glDiscardFramebufferEXT(GLenum target,
2801 GLsizei numAttachments,
2802 const GLenum* attachments) {
2803 GL_SERVICE_LOG("glDiscardFramebufferEXT"
2804 << "(" << GLEnums::GetStringEnum(target) << ", "
2805 << numAttachments << ", "
2806 << static_cast<const void*>(attachments) << ")");
2807 g_driver_gl.debug_fn.glDiscardFramebufferEXTFn(target, numAttachments,
2808 attachments);
2811 static void GL_BINDING_CALL
2812 Debug_glDrawArrays(GLenum mode, GLint first, GLsizei count) {
2813 GL_SERVICE_LOG("glDrawArrays"
2814 << "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
2815 << count << ")");
2816 g_driver_gl.debug_fn.glDrawArraysFn(mode, first, count);
2819 static void GL_BINDING_CALL
2820 Debug_glDrawArraysInstancedANGLE(GLenum mode,
2821 GLint first,
2822 GLsizei count,
2823 GLsizei primcount) {
2824 GL_SERVICE_LOG("glDrawArraysInstancedANGLE"
2825 << "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
2826 << count << ", " << primcount << ")");
2827 g_driver_gl.debug_fn.glDrawArraysInstancedANGLEFn(mode, first, count,
2828 primcount);
2831 static void GL_BINDING_CALL Debug_glDrawBuffer(GLenum mode) {
2832 GL_SERVICE_LOG("glDrawBuffer"
2833 << "(" << GLEnums::GetStringEnum(mode) << ")");
2834 g_driver_gl.debug_fn.glDrawBufferFn(mode);
2837 static void GL_BINDING_CALL
2838 Debug_glDrawBuffersARB(GLsizei n, const GLenum* bufs) {
2839 GL_SERVICE_LOG("glDrawBuffersARB"
2840 << "(" << n << ", " << static_cast<const void*>(bufs) << ")");
2841 g_driver_gl.debug_fn.glDrawBuffersARBFn(n, bufs);
2844 static void GL_BINDING_CALL Debug_glDrawElements(GLenum mode,
2845 GLsizei count,
2846 GLenum type,
2847 const void* indices) {
2848 GL_SERVICE_LOG("glDrawElements"
2849 << "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
2850 << GLEnums::GetStringEnum(type) << ", "
2851 << static_cast<const void*>(indices) << ")");
2852 g_driver_gl.debug_fn.glDrawElementsFn(mode, count, type, indices);
2855 static void GL_BINDING_CALL
2856 Debug_glDrawElementsInstancedANGLE(GLenum mode,
2857 GLsizei count,
2858 GLenum type,
2859 const void* indices,
2860 GLsizei primcount) {
2861 GL_SERVICE_LOG("glDrawElementsInstancedANGLE"
2862 << "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
2863 << GLEnums::GetStringEnum(type) << ", "
2864 << static_cast<const void*>(indices) << ", " << primcount
2865 << ")");
2866 g_driver_gl.debug_fn.glDrawElementsInstancedANGLEFn(mode, count, type,
2867 indices, primcount);
2870 static void GL_BINDING_CALL Debug_glDrawRangeElements(GLenum mode,
2871 GLuint start,
2872 GLuint end,
2873 GLsizei count,
2874 GLenum type,
2875 const void* indices) {
2876 GL_SERVICE_LOG("glDrawRangeElements"
2877 << "(" << GLEnums::GetStringEnum(mode) << ", " << start << ", "
2878 << end << ", " << count << ", " << GLEnums::GetStringEnum(type)
2879 << ", " << static_cast<const void*>(indices) << ")");
2880 g_driver_gl.debug_fn.glDrawRangeElementsFn(mode, start, end, count, type,
2881 indices);
2884 static void GL_BINDING_CALL
2885 Debug_glEGLImageTargetRenderbufferStorageOES(GLenum target,
2886 GLeglImageOES image) {
2887 GL_SERVICE_LOG("glEGLImageTargetRenderbufferStorageOES"
2888 << "(" << GLEnums::GetStringEnum(target) << ", " << image
2889 << ")");
2890 g_driver_gl.debug_fn.glEGLImageTargetRenderbufferStorageOESFn(target, image);
2893 static void GL_BINDING_CALL
2894 Debug_glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image) {
2895 GL_SERVICE_LOG("glEGLImageTargetTexture2DOES"
2896 << "(" << GLEnums::GetStringEnum(target) << ", " << image
2897 << ")");
2898 g_driver_gl.debug_fn.glEGLImageTargetTexture2DOESFn(target, image);
2901 static void GL_BINDING_CALL Debug_glEnable(GLenum cap) {
2902 GL_SERVICE_LOG("glEnable"
2903 << "(" << GLEnums::GetStringEnum(cap) << ")");
2904 g_driver_gl.debug_fn.glEnableFn(cap);
2907 static void GL_BINDING_CALL Debug_glEnableVertexAttribArray(GLuint index) {
2908 GL_SERVICE_LOG("glEnableVertexAttribArray"
2909 << "(" << index << ")");
2910 g_driver_gl.debug_fn.glEnableVertexAttribArrayFn(index);
2913 static void GL_BINDING_CALL Debug_glEndQuery(GLenum target) {
2914 GL_SERVICE_LOG("glEndQuery"
2915 << "(" << GLEnums::GetStringEnum(target) << ")");
2916 g_driver_gl.debug_fn.glEndQueryFn(target);
2919 static void GL_BINDING_CALL Debug_glEndTransformFeedback(void) {
2920 GL_SERVICE_LOG("glEndTransformFeedback"
2921 << "("
2922 << ")");
2923 g_driver_gl.debug_fn.glEndTransformFeedbackFn();
2926 static GLsync GL_BINDING_CALL
2927 Debug_glFenceSync(GLenum condition, GLbitfield flags) {
2928 GL_SERVICE_LOG("glFenceSync"
2929 << "(" << GLEnums::GetStringEnum(condition) << ", " << flags
2930 << ")");
2931 GLsync result = g_driver_gl.debug_fn.glFenceSyncFn(condition, flags);
2932 GL_SERVICE_LOG("GL_RESULT: " << result);
2933 return result;
2936 static void GL_BINDING_CALL Debug_glFinish(void) {
2937 GL_SERVICE_LOG("glFinish"
2938 << "("
2939 << ")");
2940 g_driver_gl.debug_fn.glFinishFn();
2943 static void GL_BINDING_CALL Debug_glFinishFenceAPPLE(GLuint fence) {
2944 GL_SERVICE_LOG("glFinishFenceAPPLE"
2945 << "(" << fence << ")");
2946 g_driver_gl.debug_fn.glFinishFenceAPPLEFn(fence);
2949 static void GL_BINDING_CALL Debug_glFinishFenceNV(GLuint fence) {
2950 GL_SERVICE_LOG("glFinishFenceNV"
2951 << "(" << fence << ")");
2952 g_driver_gl.debug_fn.glFinishFenceNVFn(fence);
2955 static void GL_BINDING_CALL Debug_glFlush(void) {
2956 GL_SERVICE_LOG("glFlush"
2957 << "("
2958 << ")");
2959 g_driver_gl.debug_fn.glFlushFn();
2962 static void GL_BINDING_CALL Debug_glFlushMappedBufferRange(GLenum target,
2963 GLintptr offset,
2964 GLsizeiptr length) {
2965 GL_SERVICE_LOG("glFlushMappedBufferRange"
2966 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
2967 << ", " << length << ")");
2968 g_driver_gl.debug_fn.glFlushMappedBufferRangeFn(target, offset, length);
2971 static void GL_BINDING_CALL
2972 Debug_glFramebufferRenderbufferEXT(GLenum target,
2973 GLenum attachment,
2974 GLenum renderbuffertarget,
2975 GLuint renderbuffer) {
2976 GL_SERVICE_LOG("glFramebufferRenderbufferEXT"
2977 << "(" << GLEnums::GetStringEnum(target) << ", "
2978 << GLEnums::GetStringEnum(attachment) << ", "
2979 << GLEnums::GetStringEnum(renderbuffertarget) << ", "
2980 << renderbuffer << ")");
2981 g_driver_gl.debug_fn.glFramebufferRenderbufferEXTFn(
2982 target, attachment, renderbuffertarget, renderbuffer);
2985 static void GL_BINDING_CALL Debug_glFramebufferTexture2DEXT(GLenum target,
2986 GLenum attachment,
2987 GLenum textarget,
2988 GLuint texture,
2989 GLint level) {
2990 GL_SERVICE_LOG("glFramebufferTexture2DEXT"
2991 << "(" << GLEnums::GetStringEnum(target) << ", "
2992 << GLEnums::GetStringEnum(attachment) << ", "
2993 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
2994 << level << ")");
2995 g_driver_gl.debug_fn.glFramebufferTexture2DEXTFn(target, attachment,
2996 textarget, texture, level);
2999 static void GL_BINDING_CALL
3000 Debug_glFramebufferTexture2DMultisampleEXT(GLenum target,
3001 GLenum attachment,
3002 GLenum textarget,
3003 GLuint texture,
3004 GLint level,
3005 GLsizei samples) {
3006 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleEXT"
3007 << "(" << GLEnums::GetStringEnum(target) << ", "
3008 << GLEnums::GetStringEnum(attachment) << ", "
3009 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
3010 << level << ", " << samples << ")");
3011 g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleEXTFn(
3012 target, attachment, textarget, texture, level, samples);
3015 static void GL_BINDING_CALL
3016 Debug_glFramebufferTexture2DMultisampleIMG(GLenum target,
3017 GLenum attachment,
3018 GLenum textarget,
3019 GLuint texture,
3020 GLint level,
3021 GLsizei samples) {
3022 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleIMG"
3023 << "(" << GLEnums::GetStringEnum(target) << ", "
3024 << GLEnums::GetStringEnum(attachment) << ", "
3025 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
3026 << level << ", " << samples << ")");
3027 g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleIMGFn(
3028 target, attachment, textarget, texture, level, samples);
3031 static void GL_BINDING_CALL Debug_glFramebufferTextureLayer(GLenum target,
3032 GLenum attachment,
3033 GLuint texture,
3034 GLint level,
3035 GLint layer) {
3036 GL_SERVICE_LOG("glFramebufferTextureLayer"
3037 << "(" << GLEnums::GetStringEnum(target) << ", "
3038 << GLEnums::GetStringEnum(attachment) << ", " << texture
3039 << ", " << level << ", " << layer << ")");
3040 g_driver_gl.debug_fn.glFramebufferTextureLayerFn(target, attachment, texture,
3041 level, layer);
3044 static void GL_BINDING_CALL Debug_glFrontFace(GLenum mode) {
3045 GL_SERVICE_LOG("glFrontFace"
3046 << "(" << GLEnums::GetStringEnum(mode) << ")");
3047 g_driver_gl.debug_fn.glFrontFaceFn(mode);
3050 static void GL_BINDING_CALL Debug_glGenBuffersARB(GLsizei n, GLuint* buffers) {
3051 GL_SERVICE_LOG("glGenBuffersARB"
3052 << "(" << n << ", " << static_cast<const void*>(buffers)
3053 << ")");
3054 g_driver_gl.debug_fn.glGenBuffersARBFn(n, buffers);
3057 static void GL_BINDING_CALL Debug_glGenerateMipmapEXT(GLenum target) {
3058 GL_SERVICE_LOG("glGenerateMipmapEXT"
3059 << "(" << GLEnums::GetStringEnum(target) << ")");
3060 g_driver_gl.debug_fn.glGenerateMipmapEXTFn(target);
3063 static void GL_BINDING_CALL Debug_glGenFencesAPPLE(GLsizei n, GLuint* fences) {
3064 GL_SERVICE_LOG("glGenFencesAPPLE"
3065 << "(" << n << ", " << static_cast<const void*>(fences)
3066 << ")");
3067 g_driver_gl.debug_fn.glGenFencesAPPLEFn(n, fences);
3070 static void GL_BINDING_CALL Debug_glGenFencesNV(GLsizei n, GLuint* fences) {
3071 GL_SERVICE_LOG("glGenFencesNV"
3072 << "(" << n << ", " << static_cast<const void*>(fences)
3073 << ")");
3074 g_driver_gl.debug_fn.glGenFencesNVFn(n, fences);
3077 static void GL_BINDING_CALL
3078 Debug_glGenFramebuffersEXT(GLsizei n, GLuint* framebuffers) {
3079 GL_SERVICE_LOG("glGenFramebuffersEXT"
3080 << "(" << n << ", " << static_cast<const void*>(framebuffers)
3081 << ")");
3082 g_driver_gl.debug_fn.glGenFramebuffersEXTFn(n, framebuffers);
3085 static GLuint GL_BINDING_CALL Debug_glGenPathsNV(GLsizei range) {
3086 GL_SERVICE_LOG("glGenPathsNV"
3087 << "(" << range << ")");
3088 GLuint result = g_driver_gl.debug_fn.glGenPathsNVFn(range);
3089 GL_SERVICE_LOG("GL_RESULT: " << result);
3090 return result;
3093 static void GL_BINDING_CALL Debug_glGenQueries(GLsizei n, GLuint* ids) {
3094 GL_SERVICE_LOG("glGenQueries"
3095 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
3096 g_driver_gl.debug_fn.glGenQueriesFn(n, ids);
3099 static void GL_BINDING_CALL
3100 Debug_glGenRenderbuffersEXT(GLsizei n, GLuint* renderbuffers) {
3101 GL_SERVICE_LOG("glGenRenderbuffersEXT"
3102 << "(" << n << ", " << static_cast<const void*>(renderbuffers)
3103 << ")");
3104 g_driver_gl.debug_fn.glGenRenderbuffersEXTFn(n, renderbuffers);
3107 static void GL_BINDING_CALL Debug_glGenSamplers(GLsizei n, GLuint* samplers) {
3108 GL_SERVICE_LOG("glGenSamplers"
3109 << "(" << n << ", " << static_cast<const void*>(samplers)
3110 << ")");
3111 g_driver_gl.debug_fn.glGenSamplersFn(n, samplers);
3114 static void GL_BINDING_CALL Debug_glGenTextures(GLsizei n, GLuint* textures) {
3115 GL_SERVICE_LOG("glGenTextures"
3116 << "(" << n << ", " << static_cast<const void*>(textures)
3117 << ")");
3118 g_driver_gl.debug_fn.glGenTexturesFn(n, textures);
3121 static void GL_BINDING_CALL
3122 Debug_glGenTransformFeedbacks(GLsizei n, GLuint* ids) {
3123 GL_SERVICE_LOG("glGenTransformFeedbacks"
3124 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
3125 g_driver_gl.debug_fn.glGenTransformFeedbacksFn(n, ids);
3128 static void GL_BINDING_CALL
3129 Debug_glGenVertexArraysOES(GLsizei n, GLuint* arrays) {
3130 GL_SERVICE_LOG("glGenVertexArraysOES"
3131 << "(" << n << ", " << static_cast<const void*>(arrays)
3132 << ")");
3133 g_driver_gl.debug_fn.glGenVertexArraysOESFn(n, arrays);
3136 static void GL_BINDING_CALL Debug_glGetActiveAttrib(GLuint program,
3137 GLuint index,
3138 GLsizei bufsize,
3139 GLsizei* length,
3140 GLint* size,
3141 GLenum* type,
3142 char* name) {
3143 GL_SERVICE_LOG("glGetActiveAttrib"
3144 << "(" << program << ", " << index << ", " << bufsize << ", "
3145 << static_cast<const void*>(length) << ", "
3146 << static_cast<const void*>(size) << ", "
3147 << static_cast<const void*>(type) << ", "
3148 << static_cast<const void*>(name) << ")");
3149 g_driver_gl.debug_fn.glGetActiveAttribFn(program, index, bufsize, length,
3150 size, type, name);
3153 static void GL_BINDING_CALL Debug_glGetActiveUniform(GLuint program,
3154 GLuint index,
3155 GLsizei bufsize,
3156 GLsizei* length,
3157 GLint* size,
3158 GLenum* type,
3159 char* name) {
3160 GL_SERVICE_LOG("glGetActiveUniform"
3161 << "(" << program << ", " << index << ", " << bufsize << ", "
3162 << static_cast<const void*>(length) << ", "
3163 << static_cast<const void*>(size) << ", "
3164 << static_cast<const void*>(type) << ", "
3165 << static_cast<const void*>(name) << ")");
3166 g_driver_gl.debug_fn.glGetActiveUniformFn(program, index, bufsize, length,
3167 size, type, name);
3170 static void GL_BINDING_CALL
3171 Debug_glGetActiveUniformBlockiv(GLuint program,
3172 GLuint uniformBlockIndex,
3173 GLenum pname,
3174 GLint* params) {
3175 GL_SERVICE_LOG("glGetActiveUniformBlockiv"
3176 << "(" << program << ", " << uniformBlockIndex << ", "
3177 << GLEnums::GetStringEnum(pname) << ", "
3178 << static_cast<const void*>(params) << ")");
3179 g_driver_gl.debug_fn.glGetActiveUniformBlockivFn(program, uniformBlockIndex,
3180 pname, params);
3183 static void GL_BINDING_CALL
3184 Debug_glGetActiveUniformBlockName(GLuint program,
3185 GLuint uniformBlockIndex,
3186 GLsizei bufSize,
3187 GLsizei* length,
3188 char* uniformBlockName) {
3189 GL_SERVICE_LOG("glGetActiveUniformBlockName"
3190 << "(" << program << ", " << uniformBlockIndex << ", "
3191 << bufSize << ", " << static_cast<const void*>(length) << ", "
3192 << static_cast<const void*>(uniformBlockName) << ")");
3193 g_driver_gl.debug_fn.glGetActiveUniformBlockNameFn(
3194 program, uniformBlockIndex, bufSize, length, uniformBlockName);
3197 static void GL_BINDING_CALL
3198 Debug_glGetActiveUniformsiv(GLuint program,
3199 GLsizei uniformCount,
3200 const GLuint* uniformIndices,
3201 GLenum pname,
3202 GLint* params) {
3203 GL_SERVICE_LOG("glGetActiveUniformsiv"
3204 << "(" << program << ", " << uniformCount << ", "
3205 << static_cast<const void*>(uniformIndices) << ", "
3206 << GLEnums::GetStringEnum(pname) << ", "
3207 << static_cast<const void*>(params) << ")");
3208 g_driver_gl.debug_fn.glGetActiveUniformsivFn(program, uniformCount,
3209 uniformIndices, pname, params);
3212 static void GL_BINDING_CALL Debug_glGetAttachedShaders(GLuint program,
3213 GLsizei maxcount,
3214 GLsizei* count,
3215 GLuint* shaders) {
3216 GL_SERVICE_LOG("glGetAttachedShaders"
3217 << "(" << program << ", " << maxcount << ", "
3218 << static_cast<const void*>(count) << ", "
3219 << static_cast<const void*>(shaders) << ")");
3220 g_driver_gl.debug_fn.glGetAttachedShadersFn(program, maxcount, count,
3221 shaders);
3224 static GLint GL_BINDING_CALL
3225 Debug_glGetAttribLocation(GLuint program, const char* name) {
3226 GL_SERVICE_LOG("glGetAttribLocation"
3227 << "(" << program << ", " << name << ")");
3228 GLint result = g_driver_gl.debug_fn.glGetAttribLocationFn(program, name);
3229 GL_SERVICE_LOG("GL_RESULT: " << result);
3230 return result;
3233 static void GL_BINDING_CALL
3234 Debug_glGetBooleanv(GLenum pname, GLboolean* params) {
3235 GL_SERVICE_LOG("glGetBooleanv"
3236 << "(" << GLEnums::GetStringEnum(pname) << ", "
3237 << static_cast<const void*>(params) << ")");
3238 g_driver_gl.debug_fn.glGetBooleanvFn(pname, params);
3241 static void GL_BINDING_CALL
3242 Debug_glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params) {
3243 GL_SERVICE_LOG("glGetBufferParameteriv"
3244 << "(" << GLEnums::GetStringEnum(target) << ", "
3245 << GLEnums::GetStringEnum(pname) << ", "
3246 << static_cast<const void*>(params) << ")");
3247 g_driver_gl.debug_fn.glGetBufferParameterivFn(target, pname, params);
3250 static GLenum GL_BINDING_CALL Debug_glGetError(void) {
3251 GL_SERVICE_LOG("glGetError"
3252 << "("
3253 << ")");
3254 GLenum result = g_driver_gl.debug_fn.glGetErrorFn();
3256 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result));
3258 return result;
3261 static void GL_BINDING_CALL
3262 Debug_glGetFenceivNV(GLuint fence, GLenum pname, GLint* params) {
3263 GL_SERVICE_LOG("glGetFenceivNV"
3264 << "(" << fence << ", " << GLEnums::GetStringEnum(pname)
3265 << ", " << static_cast<const void*>(params) << ")");
3266 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params);
3269 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) {
3270 GL_SERVICE_LOG("glGetFloatv"
3271 << "(" << GLEnums::GetStringEnum(pname) << ", "
3272 << static_cast<const void*>(params) << ")");
3273 g_driver_gl.debug_fn.glGetFloatvFn(pname, params);
3276 static GLint GL_BINDING_CALL
3277 Debug_glGetFragDataLocation(GLuint program, const char* name) {
3278 GL_SERVICE_LOG("glGetFragDataLocation"
3279 << "(" << program << ", " << name << ")");
3280 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name);
3281 GL_SERVICE_LOG("GL_RESULT: " << result);
3282 return result;
3285 static void GL_BINDING_CALL
3286 Debug_glGetFramebufferAttachmentParameterivEXT(GLenum target,
3287 GLenum attachment,
3288 GLenum pname,
3289 GLint* params) {
3290 GL_SERVICE_LOG("glGetFramebufferAttachmentParameterivEXT"
3291 << "(" << GLEnums::GetStringEnum(target) << ", "
3292 << GLEnums::GetStringEnum(attachment) << ", "
3293 << GLEnums::GetStringEnum(pname) << ", "
3294 << static_cast<const void*>(params) << ")");
3295 g_driver_gl.debug_fn.glGetFramebufferAttachmentParameterivEXTFn(
3296 target, attachment, pname, params);
3299 static GLenum GL_BINDING_CALL Debug_glGetGraphicsResetStatusARB(void) {
3300 GL_SERVICE_LOG("glGetGraphicsResetStatusARB"
3301 << "("
3302 << ")");
3303 GLenum result = g_driver_gl.debug_fn.glGetGraphicsResetStatusARBFn();
3304 GL_SERVICE_LOG("GL_RESULT: " << result);
3305 return result;
3308 static void GL_BINDING_CALL
3309 Debug_glGetInteger64i_v(GLenum target, GLuint index, GLint64* data) {
3310 GL_SERVICE_LOG("glGetInteger64i_v"
3311 << "(" << GLEnums::GetStringEnum(target) << ", " << index
3312 << ", " << static_cast<const void*>(data) << ")");
3313 g_driver_gl.debug_fn.glGetInteger64i_vFn(target, index, data);
3316 static void GL_BINDING_CALL
3317 Debug_glGetInteger64v(GLenum pname, GLint64* params) {
3318 GL_SERVICE_LOG("glGetInteger64v"
3319 << "(" << GLEnums::GetStringEnum(pname) << ", "
3320 << static_cast<const void*>(params) << ")");
3321 g_driver_gl.debug_fn.glGetInteger64vFn(pname, params);
3324 static void GL_BINDING_CALL
3325 Debug_glGetIntegeri_v(GLenum target, GLuint index, GLint* data) {
3326 GL_SERVICE_LOG("glGetIntegeri_v"
3327 << "(" << GLEnums::GetStringEnum(target) << ", " << index
3328 << ", " << static_cast<const void*>(data) << ")");
3329 g_driver_gl.debug_fn.glGetIntegeri_vFn(target, index, data);
3332 static void GL_BINDING_CALL Debug_glGetIntegerv(GLenum pname, GLint* params) {
3333 GL_SERVICE_LOG("glGetIntegerv"
3334 << "(" << GLEnums::GetStringEnum(pname) << ", "
3335 << static_cast<const void*>(params) << ")");
3336 g_driver_gl.debug_fn.glGetIntegervFn(pname, params);
3339 static void GL_BINDING_CALL Debug_glGetInternalformativ(GLenum target,
3340 GLenum internalformat,
3341 GLenum pname,
3342 GLsizei bufSize,
3343 GLint* params) {
3344 GL_SERVICE_LOG("glGetInternalformativ"
3345 << "(" << GLEnums::GetStringEnum(target) << ", "
3346 << GLEnums::GetStringEnum(internalformat) << ", "
3347 << GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
3348 << static_cast<const void*>(params) << ")");
3349 g_driver_gl.debug_fn.glGetInternalformativFn(target, internalformat, pname,
3350 bufSize, params);
3353 static void GL_BINDING_CALL Debug_glGetProgramBinary(GLuint program,
3354 GLsizei bufSize,
3355 GLsizei* length,
3356 GLenum* binaryFormat,
3357 GLvoid* binary) {
3358 GL_SERVICE_LOG("glGetProgramBinary"
3359 << "(" << program << ", " << bufSize << ", "
3360 << static_cast<const void*>(length) << ", "
3361 << static_cast<const void*>(binaryFormat) << ", "
3362 << static_cast<const void*>(binary) << ")");
3363 g_driver_gl.debug_fn.glGetProgramBinaryFn(program, bufSize, length,
3364 binaryFormat, binary);
3367 static void GL_BINDING_CALL Debug_glGetProgramInfoLog(GLuint program,
3368 GLsizei bufsize,
3369 GLsizei* length,
3370 char* infolog) {
3371 GL_SERVICE_LOG("glGetProgramInfoLog"
3372 << "(" << program << ", " << bufsize << ", "
3373 << static_cast<const void*>(length) << ", "
3374 << static_cast<const void*>(infolog) << ")");
3375 g_driver_gl.debug_fn.glGetProgramInfoLogFn(program, bufsize, length, infolog);
3378 static void GL_BINDING_CALL
3379 Debug_glGetProgramiv(GLuint program, GLenum pname, GLint* params) {
3380 GL_SERVICE_LOG("glGetProgramiv"
3381 << "(" << program << ", " << GLEnums::GetStringEnum(pname)
3382 << ", " << static_cast<const void*>(params) << ")");
3383 g_driver_gl.debug_fn.glGetProgramivFn(program, pname, params);
3386 static GLint GL_BINDING_CALL
3387 Debug_glGetProgramResourceLocation(GLuint program,
3388 GLenum programInterface,
3389 const char* name) {
3390 GL_SERVICE_LOG("glGetProgramResourceLocation"
3391 << "(" << program << ", "
3392 << GLEnums::GetStringEnum(programInterface) << ", " << name
3393 << ")");
3394 GLint result = g_driver_gl.debug_fn.glGetProgramResourceLocationFn(
3395 program, programInterface, name);
3396 GL_SERVICE_LOG("GL_RESULT: " << result);
3397 return result;
3400 static void GL_BINDING_CALL
3401 Debug_glGetQueryiv(GLenum target, GLenum pname, GLint* params) {
3402 GL_SERVICE_LOG("glGetQueryiv"
3403 << "(" << GLEnums::GetStringEnum(target) << ", "
3404 << GLEnums::GetStringEnum(pname) << ", "
3405 << static_cast<const void*>(params) << ")");
3406 g_driver_gl.debug_fn.glGetQueryivFn(target, pname, params);
3409 static void GL_BINDING_CALL
3410 Debug_glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64* params) {
3411 GL_SERVICE_LOG("glGetQueryObjecti64v"
3412 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3413 << static_cast<const void*>(params) << ")");
3414 g_driver_gl.debug_fn.glGetQueryObjecti64vFn(id, pname, params);
3417 static void GL_BINDING_CALL
3418 Debug_glGetQueryObjectiv(GLuint id, GLenum pname, GLint* params) {
3419 GL_SERVICE_LOG("glGetQueryObjectiv"
3420 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3421 << static_cast<const void*>(params) << ")");
3422 g_driver_gl.debug_fn.glGetQueryObjectivFn(id, pname, params);
3425 static void GL_BINDING_CALL
3426 Debug_glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64* params) {
3427 GL_SERVICE_LOG("glGetQueryObjectui64v"
3428 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3429 << static_cast<const void*>(params) << ")");
3430 g_driver_gl.debug_fn.glGetQueryObjectui64vFn(id, pname, params);
3433 static void GL_BINDING_CALL
3434 Debug_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint* params) {
3435 GL_SERVICE_LOG("glGetQueryObjectuiv"
3436 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3437 << static_cast<const void*>(params) << ")");
3438 g_driver_gl.debug_fn.glGetQueryObjectuivFn(id, pname, params);
3441 static void GL_BINDING_CALL
3442 Debug_glGetRenderbufferParameterivEXT(GLenum target,
3443 GLenum pname,
3444 GLint* params) {
3445 GL_SERVICE_LOG("glGetRenderbufferParameterivEXT"
3446 << "(" << GLEnums::GetStringEnum(target) << ", "
3447 << GLEnums::GetStringEnum(pname) << ", "
3448 << static_cast<const void*>(params) << ")");
3449 g_driver_gl.debug_fn.glGetRenderbufferParameterivEXTFn(target, pname, params);
3452 static void GL_BINDING_CALL
3453 Debug_glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params) {
3454 GL_SERVICE_LOG("glGetSamplerParameterfv"
3455 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
3456 << ", " << static_cast<const void*>(params) << ")");
3457 g_driver_gl.debug_fn.glGetSamplerParameterfvFn(sampler, pname, params);
3460 static void GL_BINDING_CALL
3461 Debug_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params) {
3462 GL_SERVICE_LOG("glGetSamplerParameteriv"
3463 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
3464 << ", " << static_cast<const void*>(params) << ")");
3465 g_driver_gl.debug_fn.glGetSamplerParameterivFn(sampler, pname, params);
3468 static void GL_BINDING_CALL Debug_glGetShaderInfoLog(GLuint shader,
3469 GLsizei bufsize,
3470 GLsizei* length,
3471 char* infolog) {
3472 GL_SERVICE_LOG("glGetShaderInfoLog"
3473 << "(" << shader << ", " << bufsize << ", "
3474 << static_cast<const void*>(length) << ", "
3475 << static_cast<const void*>(infolog) << ")");
3476 g_driver_gl.debug_fn.glGetShaderInfoLogFn(shader, bufsize, length, infolog);
3479 static void GL_BINDING_CALL
3480 Debug_glGetShaderiv(GLuint shader, GLenum pname, GLint* params) {
3481 GL_SERVICE_LOG("glGetShaderiv"
3482 << "(" << shader << ", " << GLEnums::GetStringEnum(pname)
3483 << ", " << static_cast<const void*>(params) << ")");
3484 g_driver_gl.debug_fn.glGetShaderivFn(shader, pname, params);
3487 static void GL_BINDING_CALL
3488 Debug_glGetShaderPrecisionFormat(GLenum shadertype,
3489 GLenum precisiontype,
3490 GLint* range,
3491 GLint* precision) {
3492 GL_SERVICE_LOG("glGetShaderPrecisionFormat"
3493 << "(" << GLEnums::GetStringEnum(shadertype) << ", "
3494 << GLEnums::GetStringEnum(precisiontype) << ", "
3495 << static_cast<const void*>(range) << ", "
3496 << static_cast<const void*>(precision) << ")");
3497 g_driver_gl.debug_fn.glGetShaderPrecisionFormatFn(shadertype, precisiontype,
3498 range, precision);
3501 static void GL_BINDING_CALL Debug_glGetShaderSource(GLuint shader,
3502 GLsizei bufsize,
3503 GLsizei* length,
3504 char* source) {
3505 GL_SERVICE_LOG("glGetShaderSource"
3506 << "(" << shader << ", " << bufsize << ", "
3507 << static_cast<const void*>(length) << ", "
3508 << static_cast<const void*>(source) << ")");
3509 g_driver_gl.debug_fn.glGetShaderSourceFn(shader, bufsize, length, source);
3512 static const GLubyte* GL_BINDING_CALL Debug_glGetString(GLenum name) {
3513 GL_SERVICE_LOG("glGetString"
3514 << "(" << GLEnums::GetStringEnum(name) << ")");
3515 const GLubyte* result = g_driver_gl.debug_fn.glGetStringFn(name);
3516 GL_SERVICE_LOG("GL_RESULT: " << result);
3517 return result;
3520 static const GLubyte* GL_BINDING_CALL
3521 Debug_glGetStringi(GLenum name, GLuint index) {
3522 GL_SERVICE_LOG("glGetStringi"
3523 << "(" << GLEnums::GetStringEnum(name) << ", " << index
3524 << ")");
3525 const GLubyte* result = g_driver_gl.debug_fn.glGetStringiFn(name, index);
3526 GL_SERVICE_LOG("GL_RESULT: " << result);
3527 return result;
3530 static void GL_BINDING_CALL Debug_glGetSynciv(GLsync sync,
3531 GLenum pname,
3532 GLsizei bufSize,
3533 GLsizei* length,
3534 GLint* values) {
3535 GL_SERVICE_LOG("glGetSynciv"
3536 << "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", "
3537 << bufSize << ", " << static_cast<const void*>(length) << ", "
3538 << static_cast<const void*>(values) << ")");
3539 g_driver_gl.debug_fn.glGetSyncivFn(sync, pname, bufSize, length, values);
3542 static void GL_BINDING_CALL Debug_glGetTexLevelParameterfv(GLenum target,
3543 GLint level,
3544 GLenum pname,
3545 GLfloat* params) {
3546 GL_SERVICE_LOG("glGetTexLevelParameterfv"
3547 << "(" << GLEnums::GetStringEnum(target) << ", " << level
3548 << ", " << GLEnums::GetStringEnum(pname) << ", "
3549 << static_cast<const void*>(params) << ")");
3550 g_driver_gl.debug_fn.glGetTexLevelParameterfvFn(target, level, pname, params);
3553 static void GL_BINDING_CALL Debug_glGetTexLevelParameteriv(GLenum target,
3554 GLint level,
3555 GLenum pname,
3556 GLint* params) {
3557 GL_SERVICE_LOG("glGetTexLevelParameteriv"
3558 << "(" << GLEnums::GetStringEnum(target) << ", " << level
3559 << ", " << GLEnums::GetStringEnum(pname) << ", "
3560 << static_cast<const void*>(params) << ")");
3561 g_driver_gl.debug_fn.glGetTexLevelParameterivFn(target, level, pname, params);
3564 static void GL_BINDING_CALL
3565 Debug_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) {
3566 GL_SERVICE_LOG("glGetTexParameterfv"
3567 << "(" << GLEnums::GetStringEnum(target) << ", "
3568 << GLEnums::GetStringEnum(pname) << ", "
3569 << static_cast<const void*>(params) << ")");
3570 g_driver_gl.debug_fn.glGetTexParameterfvFn(target, pname, params);
3573 static void GL_BINDING_CALL
3574 Debug_glGetTexParameteriv(GLenum target, GLenum pname, GLint* params) {
3575 GL_SERVICE_LOG("glGetTexParameteriv"
3576 << "(" << GLEnums::GetStringEnum(target) << ", "
3577 << GLEnums::GetStringEnum(pname) << ", "
3578 << static_cast<const void*>(params) << ")");
3579 g_driver_gl.debug_fn.glGetTexParameterivFn(target, pname, params);
3582 static void GL_BINDING_CALL Debug_glGetTransformFeedbackVarying(GLuint program,
3583 GLuint index,
3584 GLsizei bufSize,
3585 GLsizei* length,
3586 GLsizei* size,
3587 GLenum* type,
3588 char* name) {
3589 GL_SERVICE_LOG("glGetTransformFeedbackVarying"
3590 << "(" << program << ", " << index << ", " << bufSize << ", "
3591 << static_cast<const void*>(length) << ", "
3592 << static_cast<const void*>(size) << ", "
3593 << static_cast<const void*>(type) << ", "
3594 << static_cast<const void*>(name) << ")");
3595 g_driver_gl.debug_fn.glGetTransformFeedbackVaryingFn(
3596 program, index, bufSize, length, size, type, name);
3599 static void GL_BINDING_CALL
3600 Debug_glGetTranslatedShaderSourceANGLE(GLuint shader,
3601 GLsizei bufsize,
3602 GLsizei* length,
3603 char* source) {
3604 GL_SERVICE_LOG("glGetTranslatedShaderSourceANGLE"
3605 << "(" << shader << ", " << bufsize << ", "
3606 << static_cast<const void*>(length) << ", "
3607 << static_cast<const void*>(source) << ")");
3608 g_driver_gl.debug_fn.glGetTranslatedShaderSourceANGLEFn(shader, bufsize,
3609 length, source);
3612 static GLuint GL_BINDING_CALL
3613 Debug_glGetUniformBlockIndex(GLuint program, const char* uniformBlockName) {
3614 GL_SERVICE_LOG("glGetUniformBlockIndex"
3615 << "(" << program << ", " << uniformBlockName << ")");
3616 GLuint result =
3617 g_driver_gl.debug_fn.glGetUniformBlockIndexFn(program, uniformBlockName);
3618 GL_SERVICE_LOG("GL_RESULT: " << result);
3619 return result;
3622 static void GL_BINDING_CALL
3623 Debug_glGetUniformfv(GLuint program, GLint location, GLfloat* params) {
3624 GL_SERVICE_LOG("glGetUniformfv"
3625 << "(" << program << ", " << location << ", "
3626 << static_cast<const void*>(params) << ")");
3627 g_driver_gl.debug_fn.glGetUniformfvFn(program, location, params);
3630 static void GL_BINDING_CALL
3631 Debug_glGetUniformIndices(GLuint program,
3632 GLsizei uniformCount,
3633 const char* const* uniformNames,
3634 GLuint* uniformIndices) {
3635 GL_SERVICE_LOG("glGetUniformIndices"
3636 << "(" << program << ", " << uniformCount << ", "
3637 << static_cast<const void*>(uniformNames) << ", "
3638 << static_cast<const void*>(uniformIndices) << ")");
3639 g_driver_gl.debug_fn.glGetUniformIndicesFn(program, uniformCount,
3640 uniformNames, uniformIndices);
3643 static void GL_BINDING_CALL
3644 Debug_glGetUniformiv(GLuint program, GLint location, GLint* params) {
3645 GL_SERVICE_LOG("glGetUniformiv"
3646 << "(" << program << ", " << location << ", "
3647 << static_cast<const void*>(params) << ")");
3648 g_driver_gl.debug_fn.glGetUniformivFn(program, location, params);
3651 static GLint GL_BINDING_CALL
3652 Debug_glGetUniformLocation(GLuint program, const char* name) {
3653 GL_SERVICE_LOG("glGetUniformLocation"
3654 << "(" << program << ", " << name << ")");
3655 GLint result = g_driver_gl.debug_fn.glGetUniformLocationFn(program, name);
3656 GL_SERVICE_LOG("GL_RESULT: " << result);
3657 return result;
3660 static void GL_BINDING_CALL
3661 Debug_glGetUniformuiv(GLuint program, GLint location, GLuint* params) {
3662 GL_SERVICE_LOG("glGetUniformuiv"
3663 << "(" << program << ", " << location << ", "
3664 << static_cast<const void*>(params) << ")");
3665 g_driver_gl.debug_fn.glGetUniformuivFn(program, location, params);
3668 static void GL_BINDING_CALL
3669 Debug_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) {
3670 GL_SERVICE_LOG("glGetVertexAttribfv"
3671 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3672 << ", " << static_cast<const void*>(params) << ")");
3673 g_driver_gl.debug_fn.glGetVertexAttribfvFn(index, pname, params);
3676 static void GL_BINDING_CALL
3677 Debug_glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params) {
3678 GL_SERVICE_LOG("glGetVertexAttribiv"
3679 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3680 << ", " << static_cast<const void*>(params) << ")");
3681 g_driver_gl.debug_fn.glGetVertexAttribivFn(index, pname, params);
3684 static void GL_BINDING_CALL
3685 Debug_glGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) {
3686 GL_SERVICE_LOG("glGetVertexAttribPointerv"
3687 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3688 << ", " << pointer << ")");
3689 g_driver_gl.debug_fn.glGetVertexAttribPointervFn(index, pname, pointer);
3692 static void GL_BINDING_CALL Debug_glHint(GLenum target, GLenum mode) {
3693 GL_SERVICE_LOG("glHint"
3694 << "(" << GLEnums::GetStringEnum(target) << ", "
3695 << GLEnums::GetStringEnum(mode) << ")");
3696 g_driver_gl.debug_fn.glHintFn(target, mode);
3699 static void GL_BINDING_CALL
3700 Debug_glInsertEventMarkerEXT(GLsizei length, const char* marker) {
3701 GL_SERVICE_LOG("glInsertEventMarkerEXT"
3702 << "(" << length << ", " << marker << ")");
3703 g_driver_gl.debug_fn.glInsertEventMarkerEXTFn(length, marker);
3706 static void GL_BINDING_CALL
3707 Debug_glInvalidateFramebuffer(GLenum target,
3708 GLsizei numAttachments,
3709 const GLenum* attachments) {
3710 GL_SERVICE_LOG("glInvalidateFramebuffer"
3711 << "(" << GLEnums::GetStringEnum(target) << ", "
3712 << numAttachments << ", "
3713 << static_cast<const void*>(attachments) << ")");
3714 g_driver_gl.debug_fn.glInvalidateFramebufferFn(target, numAttachments,
3715 attachments);
3718 static void GL_BINDING_CALL
3719 Debug_glInvalidateSubFramebuffer(GLenum target,
3720 GLsizei numAttachments,
3721 const GLenum* attachments,
3722 GLint x,
3723 GLint y,
3724 GLint width,
3725 GLint height) {
3726 GL_SERVICE_LOG("glInvalidateSubFramebuffer"
3727 << "(" << GLEnums::GetStringEnum(target) << ", "
3728 << numAttachments << ", "
3729 << static_cast<const void*>(attachments) << ", " << x << ", "
3730 << y << ", " << width << ", " << height << ")");
3731 g_driver_gl.debug_fn.glInvalidateSubFramebufferFn(
3732 target, numAttachments, attachments, x, y, width, height);
3735 static GLboolean GL_BINDING_CALL Debug_glIsBuffer(GLuint buffer) {
3736 GL_SERVICE_LOG("glIsBuffer"
3737 << "(" << buffer << ")");
3738 GLboolean result = g_driver_gl.debug_fn.glIsBufferFn(buffer);
3739 GL_SERVICE_LOG("GL_RESULT: " << result);
3740 return result;
3743 static GLboolean GL_BINDING_CALL Debug_glIsEnabled(GLenum cap) {
3744 GL_SERVICE_LOG("glIsEnabled"
3745 << "(" << GLEnums::GetStringEnum(cap) << ")");
3746 GLboolean result = g_driver_gl.debug_fn.glIsEnabledFn(cap);
3747 GL_SERVICE_LOG("GL_RESULT: " << result);
3748 return result;
3751 static GLboolean GL_BINDING_CALL Debug_glIsFenceAPPLE(GLuint fence) {
3752 GL_SERVICE_LOG("glIsFenceAPPLE"
3753 << "(" << fence << ")");
3754 GLboolean result = g_driver_gl.debug_fn.glIsFenceAPPLEFn(fence);
3755 GL_SERVICE_LOG("GL_RESULT: " << result);
3756 return result;
3759 static GLboolean GL_BINDING_CALL Debug_glIsFenceNV(GLuint fence) {
3760 GL_SERVICE_LOG("glIsFenceNV"
3761 << "(" << fence << ")");
3762 GLboolean result = g_driver_gl.debug_fn.glIsFenceNVFn(fence);
3763 GL_SERVICE_LOG("GL_RESULT: " << result);
3764 return result;
3767 static GLboolean GL_BINDING_CALL Debug_glIsFramebufferEXT(GLuint framebuffer) {
3768 GL_SERVICE_LOG("glIsFramebufferEXT"
3769 << "(" << framebuffer << ")");
3770 GLboolean result = g_driver_gl.debug_fn.glIsFramebufferEXTFn(framebuffer);
3771 GL_SERVICE_LOG("GL_RESULT: " << result);
3772 return result;
3775 static GLboolean GL_BINDING_CALL Debug_glIsPathNV(GLuint path) {
3776 GL_SERVICE_LOG("glIsPathNV"
3777 << "(" << path << ")");
3778 GLboolean result = g_driver_gl.debug_fn.glIsPathNVFn(path);
3779 GL_SERVICE_LOG("GL_RESULT: " << result);
3780 return result;
3783 static GLboolean GL_BINDING_CALL Debug_glIsProgram(GLuint program) {
3784 GL_SERVICE_LOG("glIsProgram"
3785 << "(" << program << ")");
3786 GLboolean result = g_driver_gl.debug_fn.glIsProgramFn(program);
3787 GL_SERVICE_LOG("GL_RESULT: " << result);
3788 return result;
3791 static GLboolean GL_BINDING_CALL Debug_glIsQuery(GLuint query) {
3792 GL_SERVICE_LOG("glIsQuery"
3793 << "(" << query << ")");
3794 GLboolean result = g_driver_gl.debug_fn.glIsQueryFn(query);
3795 GL_SERVICE_LOG("GL_RESULT: " << result);
3796 return result;
3799 static GLboolean GL_BINDING_CALL
3800 Debug_glIsRenderbufferEXT(GLuint renderbuffer) {
3801 GL_SERVICE_LOG("glIsRenderbufferEXT"
3802 << "(" << renderbuffer << ")");
3803 GLboolean result = g_driver_gl.debug_fn.glIsRenderbufferEXTFn(renderbuffer);
3804 GL_SERVICE_LOG("GL_RESULT: " << result);
3805 return result;
3808 static GLboolean GL_BINDING_CALL Debug_glIsSampler(GLuint sampler) {
3809 GL_SERVICE_LOG("glIsSampler"
3810 << "(" << sampler << ")");
3811 GLboolean result = g_driver_gl.debug_fn.glIsSamplerFn(sampler);
3812 GL_SERVICE_LOG("GL_RESULT: " << result);
3813 return result;
3816 static GLboolean GL_BINDING_CALL Debug_glIsShader(GLuint shader) {
3817 GL_SERVICE_LOG("glIsShader"
3818 << "(" << shader << ")");
3819 GLboolean result = g_driver_gl.debug_fn.glIsShaderFn(shader);
3820 GL_SERVICE_LOG("GL_RESULT: " << result);
3821 return result;
3824 static GLboolean GL_BINDING_CALL Debug_glIsSync(GLsync sync) {
3825 GL_SERVICE_LOG("glIsSync"
3826 << "(" << sync << ")");
3827 GLboolean result = g_driver_gl.debug_fn.glIsSyncFn(sync);
3828 GL_SERVICE_LOG("GL_RESULT: " << result);
3829 return result;
3832 static GLboolean GL_BINDING_CALL Debug_glIsTexture(GLuint texture) {
3833 GL_SERVICE_LOG("glIsTexture"
3834 << "(" << texture << ")");
3835 GLboolean result = g_driver_gl.debug_fn.glIsTextureFn(texture);
3836 GL_SERVICE_LOG("GL_RESULT: " << result);
3837 return result;
3840 static GLboolean GL_BINDING_CALL Debug_glIsTransformFeedback(GLuint id) {
3841 GL_SERVICE_LOG("glIsTransformFeedback"
3842 << "(" << id << ")");
3843 GLboolean result = g_driver_gl.debug_fn.glIsTransformFeedbackFn(id);
3844 GL_SERVICE_LOG("GL_RESULT: " << result);
3845 return result;
3848 static GLboolean GL_BINDING_CALL Debug_glIsVertexArrayOES(GLuint array) {
3849 GL_SERVICE_LOG("glIsVertexArrayOES"
3850 << "(" << array << ")");
3851 GLboolean result = g_driver_gl.debug_fn.glIsVertexArrayOESFn(array);
3852 GL_SERVICE_LOG("GL_RESULT: " << result);
3853 return result;
3856 static void GL_BINDING_CALL Debug_glLineWidth(GLfloat width) {
3857 GL_SERVICE_LOG("glLineWidth"
3858 << "(" << width << ")");
3859 g_driver_gl.debug_fn.glLineWidthFn(width);
3862 static void GL_BINDING_CALL Debug_glLinkProgram(GLuint program) {
3863 GL_SERVICE_LOG("glLinkProgram"
3864 << "(" << program << ")");
3865 g_driver_gl.debug_fn.glLinkProgramFn(program);
3868 static void* GL_BINDING_CALL Debug_glMapBuffer(GLenum target, GLenum access) {
3869 GL_SERVICE_LOG("glMapBuffer"
3870 << "(" << GLEnums::GetStringEnum(target) << ", "
3871 << GLEnums::GetStringEnum(access) << ")");
3872 void* result = g_driver_gl.debug_fn.glMapBufferFn(target, access);
3873 GL_SERVICE_LOG("GL_RESULT: " << result);
3874 return result;
3877 static void* GL_BINDING_CALL Debug_glMapBufferRange(GLenum target,
3878 GLintptr offset,
3879 GLsizeiptr length,
3880 GLbitfield access) {
3881 GL_SERVICE_LOG("glMapBufferRange"
3882 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
3883 << ", " << length << ", " << access << ")");
3884 void* result =
3885 g_driver_gl.debug_fn.glMapBufferRangeFn(target, offset, length, access);
3886 GL_SERVICE_LOG("GL_RESULT: " << result);
3887 return result;
3890 static void GL_BINDING_CALL
3891 Debug_glMatrixLoadfEXT(GLenum matrixMode, const GLfloat* m) {
3892 GL_SERVICE_LOG("glMatrixLoadfEXT"
3893 << "(" << GLEnums::GetStringEnum(matrixMode) << ", "
3894 << static_cast<const void*>(m) << ")");
3895 g_driver_gl.debug_fn.glMatrixLoadfEXTFn(matrixMode, m);
3898 static void GL_BINDING_CALL Debug_glMatrixLoadIdentityEXT(GLenum matrixMode) {
3899 GL_SERVICE_LOG("glMatrixLoadIdentityEXT"
3900 << "(" << GLEnums::GetStringEnum(matrixMode) << ")");
3901 g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn(matrixMode);
3904 static void GL_BINDING_CALL Debug_glPathCommandsNV(GLuint path,
3905 GLsizei numCommands,
3906 const GLubyte* commands,
3907 GLsizei numCoords,
3908 GLenum coordType,
3909 const GLvoid* coords) {
3910 GL_SERVICE_LOG("glPathCommandsNV"
3911 << "(" << path << ", " << numCommands << ", "
3912 << static_cast<const void*>(commands) << ", " << numCoords
3913 << ", " << GLEnums::GetStringEnum(coordType) << ", "
3914 << static_cast<const void*>(coords) << ")");
3915 g_driver_gl.debug_fn.glPathCommandsNVFn(path, numCommands, commands,
3916 numCoords, coordType, coords);
3919 static void GL_BINDING_CALL
3920 Debug_glPathParameterfNV(GLuint path, GLenum pname, GLfloat value) {
3921 GL_SERVICE_LOG("glPathParameterfNV"
3922 << "(" << path << ", " << GLEnums::GetStringEnum(pname) << ", "
3923 << value << ")");
3924 g_driver_gl.debug_fn.glPathParameterfNVFn(path, pname, value);
3927 static void GL_BINDING_CALL
3928 Debug_glPathParameteriNV(GLuint path, GLenum pname, GLint value) {
3929 GL_SERVICE_LOG("glPathParameteriNV"
3930 << "(" << path << ", " << GLEnums::GetStringEnum(pname) << ", "
3931 << value << ")");
3932 g_driver_gl.debug_fn.glPathParameteriNVFn(path, pname, value);
3935 static void GL_BINDING_CALL
3936 Debug_glPathStencilFuncNV(GLenum func, GLint ref, GLuint mask) {
3937 GL_SERVICE_LOG("glPathStencilFuncNV"
3938 << "(" << GLEnums::GetStringEnum(func) << ", " << ref << ", "
3939 << mask << ")");
3940 g_driver_gl.debug_fn.glPathStencilFuncNVFn(func, ref, mask);
3943 static void GL_BINDING_CALL Debug_glPauseTransformFeedback(void) {
3944 GL_SERVICE_LOG("glPauseTransformFeedback"
3945 << "("
3946 << ")");
3947 g_driver_gl.debug_fn.glPauseTransformFeedbackFn();
3950 static void GL_BINDING_CALL Debug_glPixelStorei(GLenum pname, GLint param) {
3951 GL_SERVICE_LOG("glPixelStorei"
3952 << "(" << GLEnums::GetStringEnum(pname) << ", " << param
3953 << ")");
3954 g_driver_gl.debug_fn.glPixelStoreiFn(pname, param);
3957 static void GL_BINDING_CALL Debug_glPointParameteri(GLenum pname, GLint param) {
3958 GL_SERVICE_LOG("glPointParameteri"
3959 << "(" << GLEnums::GetStringEnum(pname) << ", " << param
3960 << ")");
3961 g_driver_gl.debug_fn.glPointParameteriFn(pname, param);
3964 static void GL_BINDING_CALL
3965 Debug_glPolygonOffset(GLfloat factor, GLfloat units) {
3966 GL_SERVICE_LOG("glPolygonOffset"
3967 << "(" << factor << ", " << units << ")");
3968 g_driver_gl.debug_fn.glPolygonOffsetFn(factor, units);
3971 static void GL_BINDING_CALL Debug_glPopGroupMarkerEXT(void) {
3972 GL_SERVICE_LOG("glPopGroupMarkerEXT"
3973 << "("
3974 << ")");
3975 g_driver_gl.debug_fn.glPopGroupMarkerEXTFn();
3978 static void GL_BINDING_CALL Debug_glProgramBinary(GLuint program,
3979 GLenum binaryFormat,
3980 const GLvoid* binary,
3981 GLsizei length) {
3982 GL_SERVICE_LOG("glProgramBinary"
3983 << "(" << program << ", "
3984 << GLEnums::GetStringEnum(binaryFormat) << ", "
3985 << static_cast<const void*>(binary) << ", " << length << ")");
3986 g_driver_gl.debug_fn.glProgramBinaryFn(program, binaryFormat, binary, length);
3989 static void GL_BINDING_CALL
3990 Debug_glProgramParameteri(GLuint program, GLenum pname, GLint value) {
3991 GL_SERVICE_LOG("glProgramParameteri"
3992 << "(" << program << ", " << GLEnums::GetStringEnum(pname)
3993 << ", " << value << ")");
3994 g_driver_gl.debug_fn.glProgramParameteriFn(program, pname, value);
3997 static void GL_BINDING_CALL
3998 Debug_glPushGroupMarkerEXT(GLsizei length, const char* marker) {
3999 GL_SERVICE_LOG("glPushGroupMarkerEXT"
4000 << "(" << length << ", " << marker << ")");
4001 g_driver_gl.debug_fn.glPushGroupMarkerEXTFn(length, marker);
4004 static void GL_BINDING_CALL Debug_glQueryCounter(GLuint id, GLenum target) {
4005 GL_SERVICE_LOG("glQueryCounter"
4006 << "(" << id << ", " << GLEnums::GetStringEnum(target) << ")");
4007 g_driver_gl.debug_fn.glQueryCounterFn(id, target);
4010 static void GL_BINDING_CALL Debug_glReadBuffer(GLenum src) {
4011 GL_SERVICE_LOG("glReadBuffer"
4012 << "(" << GLEnums::GetStringEnum(src) << ")");
4013 g_driver_gl.debug_fn.glReadBufferFn(src);
4016 static void GL_BINDING_CALL Debug_glReadPixels(GLint x,
4017 GLint y,
4018 GLsizei width,
4019 GLsizei height,
4020 GLenum format,
4021 GLenum type,
4022 void* pixels) {
4023 GL_SERVICE_LOG("glReadPixels"
4024 << "(" << x << ", " << y << ", " << width << ", " << height
4025 << ", " << GLEnums::GetStringEnum(format) << ", "
4026 << GLEnums::GetStringEnum(type) << ", "
4027 << static_cast<const void*>(pixels) << ")");
4028 g_driver_gl.debug_fn.glReadPixelsFn(x, y, width, height, format, type,
4029 pixels);
4032 static void GL_BINDING_CALL Debug_glReleaseShaderCompiler(void) {
4033 GL_SERVICE_LOG("glReleaseShaderCompiler"
4034 << "("
4035 << ")");
4036 g_driver_gl.debug_fn.glReleaseShaderCompilerFn();
4039 static void GL_BINDING_CALL
4040 Debug_glRenderbufferStorageEXT(GLenum target,
4041 GLenum internalformat,
4042 GLsizei width,
4043 GLsizei height) {
4044 GL_SERVICE_LOG("glRenderbufferStorageEXT"
4045 << "(" << GLEnums::GetStringEnum(target) << ", "
4046 << GLEnums::GetStringEnum(internalformat) << ", " << width
4047 << ", " << height << ")");
4048 g_driver_gl.debug_fn.glRenderbufferStorageEXTFn(target, internalformat, width,
4049 height);
4052 static void GL_BINDING_CALL
4053 Debug_glRenderbufferStorageMultisample(GLenum target,
4054 GLsizei samples,
4055 GLenum internalformat,
4056 GLsizei width,
4057 GLsizei height) {
4058 GL_SERVICE_LOG("glRenderbufferStorageMultisample"
4059 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
4060 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4061 << width << ", " << height << ")");
4062 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleFn(
4063 target, samples, internalformat, width, height);
4066 static void GL_BINDING_CALL
4067 Debug_glRenderbufferStorageMultisampleANGLE(GLenum target,
4068 GLsizei samples,
4069 GLenum internalformat,
4070 GLsizei width,
4071 GLsizei height) {
4072 GL_SERVICE_LOG("glRenderbufferStorageMultisampleANGLE"
4073 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
4074 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4075 << width << ", " << height << ")");
4076 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleANGLEFn(
4077 target, samples, internalformat, width, height);
4080 static void GL_BINDING_CALL
4081 Debug_glRenderbufferStorageMultisampleEXT(GLenum target,
4082 GLsizei samples,
4083 GLenum internalformat,
4084 GLsizei width,
4085 GLsizei height) {
4086 GL_SERVICE_LOG("glRenderbufferStorageMultisampleEXT"
4087 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
4088 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4089 << width << ", " << height << ")");
4090 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleEXTFn(
4091 target, samples, internalformat, width, height);
4094 static void GL_BINDING_CALL
4095 Debug_glRenderbufferStorageMultisampleIMG(GLenum target,
4096 GLsizei samples,
4097 GLenum internalformat,
4098 GLsizei width,
4099 GLsizei height) {
4100 GL_SERVICE_LOG("glRenderbufferStorageMultisampleIMG"
4101 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
4102 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4103 << width << ", " << height << ")");
4104 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleIMGFn(
4105 target, samples, internalformat, width, height);
4108 static void GL_BINDING_CALL Debug_glResumeTransformFeedback(void) {
4109 GL_SERVICE_LOG("glResumeTransformFeedback"
4110 << "("
4111 << ")");
4112 g_driver_gl.debug_fn.glResumeTransformFeedbackFn();
4115 static void GL_BINDING_CALL
4116 Debug_glSampleCoverage(GLclampf value, GLboolean invert) {
4117 GL_SERVICE_LOG("glSampleCoverage"
4118 << "(" << value << ", " << GLEnums::GetStringBool(invert)
4119 << ")");
4120 g_driver_gl.debug_fn.glSampleCoverageFn(value, invert);
4123 static void GL_BINDING_CALL
4124 Debug_glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) {
4125 GL_SERVICE_LOG("glSamplerParameterf"
4126 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4127 << ", " << param << ")");
4128 g_driver_gl.debug_fn.glSamplerParameterfFn(sampler, pname, param);
4131 static void GL_BINDING_CALL Debug_glSamplerParameterfv(GLuint sampler,
4132 GLenum pname,
4133 const GLfloat* params) {
4134 GL_SERVICE_LOG("glSamplerParameterfv"
4135 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4136 << ", " << static_cast<const void*>(params) << ")");
4137 g_driver_gl.debug_fn.glSamplerParameterfvFn(sampler, pname, params);
4140 static void GL_BINDING_CALL
4141 Debug_glSamplerParameteri(GLuint sampler, GLenum pname, GLint param) {
4142 GL_SERVICE_LOG("glSamplerParameteri"
4143 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4144 << ", " << param << ")");
4145 g_driver_gl.debug_fn.glSamplerParameteriFn(sampler, pname, param);
4148 static void GL_BINDING_CALL
4149 Debug_glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint* params) {
4150 GL_SERVICE_LOG("glSamplerParameteriv"
4151 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4152 << ", " << static_cast<const void*>(params) << ")");
4153 g_driver_gl.debug_fn.glSamplerParameterivFn(sampler, pname, params);
4156 static void GL_BINDING_CALL
4157 Debug_glScissor(GLint x, GLint y, GLsizei width, GLsizei height) {
4158 GL_SERVICE_LOG("glScissor"
4159 << "(" << x << ", " << y << ", " << width << ", " << height
4160 << ")");
4161 g_driver_gl.debug_fn.glScissorFn(x, y, width, height);
4164 static void GL_BINDING_CALL Debug_glSetFenceAPPLE(GLuint fence) {
4165 GL_SERVICE_LOG("glSetFenceAPPLE"
4166 << "(" << fence << ")");
4167 g_driver_gl.debug_fn.glSetFenceAPPLEFn(fence);
4170 static void GL_BINDING_CALL Debug_glSetFenceNV(GLuint fence, GLenum condition) {
4171 GL_SERVICE_LOG("glSetFenceNV"
4172 << "(" << fence << ", " << GLEnums::GetStringEnum(condition)
4173 << ")");
4174 g_driver_gl.debug_fn.glSetFenceNVFn(fence, condition);
4177 static void GL_BINDING_CALL Debug_glShaderBinary(GLsizei n,
4178 const GLuint* shaders,
4179 GLenum binaryformat,
4180 const void* binary,
4181 GLsizei length) {
4182 GL_SERVICE_LOG("glShaderBinary"
4183 << "(" << n << ", " << static_cast<const void*>(shaders)
4184 << ", " << GLEnums::GetStringEnum(binaryformat) << ", "
4185 << static_cast<const void*>(binary) << ", " << length << ")");
4186 g_driver_gl.debug_fn.glShaderBinaryFn(n, shaders, binaryformat, binary,
4187 length);
4190 static void GL_BINDING_CALL Debug_glShaderSource(GLuint shader,
4191 GLsizei count,
4192 const char* const* str,
4193 const GLint* length) {
4194 GL_SERVICE_LOG("glShaderSource"
4195 << "(" << shader << ", " << count << ", "
4196 << static_cast<const void*>(str) << ", "
4197 << static_cast<const void*>(length) << ")");
4198 g_driver_gl.debug_fn.glShaderSourceFn(shader, count, str, length);
4200 GL_SERVICE_LOG_CODE_BLOCK({
4201 for (GLsizei ii = 0; ii < count; ++ii) {
4202 if (str[ii]) {
4203 if (length && length[ii] >= 0) {
4204 std::string source(str[ii], length[ii]);
4205 GL_SERVICE_LOG(" " << ii << ": ---\n" << source << "\n---");
4206 } else {
4207 GL_SERVICE_LOG(" " << ii << ": ---\n" << str[ii] << "\n---");
4209 } else {
4210 GL_SERVICE_LOG(" " << ii << ": NULL");
4216 static void GL_BINDING_CALL
4217 Debug_glStencilFillPathNV(GLuint path, GLenum fillMode, GLuint mask) {
4218 GL_SERVICE_LOG("glStencilFillPathNV"
4219 << "(" << path << ", " << GLEnums::GetStringEnum(fillMode)
4220 << ", " << mask << ")");
4221 g_driver_gl.debug_fn.glStencilFillPathNVFn(path, fillMode, mask);
4224 static void GL_BINDING_CALL
4225 Debug_glStencilFunc(GLenum func, GLint ref, GLuint mask) {
4226 GL_SERVICE_LOG("glStencilFunc"
4227 << "(" << GLEnums::GetStringEnum(func) << ", " << ref << ", "
4228 << mask << ")");
4229 g_driver_gl.debug_fn.glStencilFuncFn(func, ref, mask);
4232 static void GL_BINDING_CALL
4233 Debug_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) {
4234 GL_SERVICE_LOG("glStencilFuncSeparate"
4235 << "(" << GLEnums::GetStringEnum(face) << ", "
4236 << GLEnums::GetStringEnum(func) << ", " << ref << ", " << mask
4237 << ")");
4238 g_driver_gl.debug_fn.glStencilFuncSeparateFn(face, func, ref, mask);
4241 static void GL_BINDING_CALL Debug_glStencilMask(GLuint mask) {
4242 GL_SERVICE_LOG("glStencilMask"
4243 << "(" << mask << ")");
4244 g_driver_gl.debug_fn.glStencilMaskFn(mask);
4247 static void GL_BINDING_CALL
4248 Debug_glStencilMaskSeparate(GLenum face, GLuint mask) {
4249 GL_SERVICE_LOG("glStencilMaskSeparate"
4250 << "(" << GLEnums::GetStringEnum(face) << ", " << mask << ")");
4251 g_driver_gl.debug_fn.glStencilMaskSeparateFn(face, mask);
4254 static void GL_BINDING_CALL
4255 Debug_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
4256 GL_SERVICE_LOG("glStencilOp"
4257 << "(" << GLEnums::GetStringEnum(fail) << ", "
4258 << GLEnums::GetStringEnum(zfail) << ", "
4259 << GLEnums::GetStringEnum(zpass) << ")");
4260 g_driver_gl.debug_fn.glStencilOpFn(fail, zfail, zpass);
4263 static void GL_BINDING_CALL Debug_glStencilOpSeparate(GLenum face,
4264 GLenum fail,
4265 GLenum zfail,
4266 GLenum zpass) {
4267 GL_SERVICE_LOG("glStencilOpSeparate"
4268 << "(" << GLEnums::GetStringEnum(face) << ", "
4269 << GLEnums::GetStringEnum(fail) << ", "
4270 << GLEnums::GetStringEnum(zfail) << ", "
4271 << GLEnums::GetStringEnum(zpass) << ")");
4272 g_driver_gl.debug_fn.glStencilOpSeparateFn(face, fail, zfail, zpass);
4275 static void GL_BINDING_CALL
4276 Debug_glStencilStrokePathNV(GLuint path, GLint reference, GLuint mask) {
4277 GL_SERVICE_LOG("glStencilStrokePathNV"
4278 << "(" << path << ", " << reference << ", " << mask << ")");
4279 g_driver_gl.debug_fn.glStencilStrokePathNVFn(path, reference, mask);
4282 static void GL_BINDING_CALL
4283 Debug_glStencilThenCoverFillPathNV(GLuint path,
4284 GLenum fillMode,
4285 GLuint mask,
4286 GLenum coverMode) {
4287 GL_SERVICE_LOG("glStencilThenCoverFillPathNV"
4288 << "(" << path << ", " << GLEnums::GetStringEnum(fillMode)
4289 << ", " << mask << ", " << GLEnums::GetStringEnum(coverMode)
4290 << ")");
4291 g_driver_gl.debug_fn.glStencilThenCoverFillPathNVFn(path, fillMode, mask,
4292 coverMode);
4295 static void GL_BINDING_CALL
4296 Debug_glStencilThenCoverStrokePathNV(GLuint path,
4297 GLint reference,
4298 GLuint mask,
4299 GLenum coverMode) {
4300 GL_SERVICE_LOG("glStencilThenCoverStrokePathNV"
4301 << "(" << path << ", " << reference << ", " << mask << ", "
4302 << GLEnums::GetStringEnum(coverMode) << ")");
4303 g_driver_gl.debug_fn.glStencilThenCoverStrokePathNVFn(path, reference, mask,
4304 coverMode);
4307 static GLboolean GL_BINDING_CALL Debug_glTestFenceAPPLE(GLuint fence) {
4308 GL_SERVICE_LOG("glTestFenceAPPLE"
4309 << "(" << fence << ")");
4310 GLboolean result = g_driver_gl.debug_fn.glTestFenceAPPLEFn(fence);
4311 GL_SERVICE_LOG("GL_RESULT: " << result);
4312 return result;
4315 static GLboolean GL_BINDING_CALL Debug_glTestFenceNV(GLuint fence) {
4316 GL_SERVICE_LOG("glTestFenceNV"
4317 << "(" << fence << ")");
4318 GLboolean result = g_driver_gl.debug_fn.glTestFenceNVFn(fence);
4319 GL_SERVICE_LOG("GL_RESULT: " << result);
4320 return result;
4323 static void GL_BINDING_CALL Debug_glTexImage2D(GLenum target,
4324 GLint level,
4325 GLint internalformat,
4326 GLsizei width,
4327 GLsizei height,
4328 GLint border,
4329 GLenum format,
4330 GLenum type,
4331 const void* pixels) {
4332 GL_SERVICE_LOG("glTexImage2D"
4333 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4334 << ", " << internalformat << ", " << width << ", " << height
4335 << ", " << border << ", " << GLEnums::GetStringEnum(format)
4336 << ", " << GLEnums::GetStringEnum(type) << ", "
4337 << static_cast<const void*>(pixels) << ")");
4338 g_driver_gl.debug_fn.glTexImage2DFn(target, level, internalformat, width,
4339 height, border, format, type, pixels);
4342 static void GL_BINDING_CALL Debug_glTexImage3D(GLenum target,
4343 GLint level,
4344 GLint internalformat,
4345 GLsizei width,
4346 GLsizei height,
4347 GLsizei depth,
4348 GLint border,
4349 GLenum format,
4350 GLenum type,
4351 const void* pixels) {
4352 GL_SERVICE_LOG("glTexImage3D"
4353 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4354 << ", " << internalformat << ", " << width << ", " << height
4355 << ", " << depth << ", " << border << ", "
4356 << GLEnums::GetStringEnum(format) << ", "
4357 << GLEnums::GetStringEnum(type) << ", "
4358 << static_cast<const void*>(pixels) << ")");
4359 g_driver_gl.debug_fn.glTexImage3DFn(target, level, internalformat, width,
4360 height, depth, border, format, type,
4361 pixels);
4364 static void GL_BINDING_CALL
4365 Debug_glTexParameterf(GLenum target, GLenum pname, GLfloat param) {
4366 GL_SERVICE_LOG("glTexParameterf"
4367 << "(" << GLEnums::GetStringEnum(target) << ", "
4368 << GLEnums::GetStringEnum(pname) << ", " << param << ")");
4369 g_driver_gl.debug_fn.glTexParameterfFn(target, pname, param);
4372 static void GL_BINDING_CALL
4373 Debug_glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params) {
4374 GL_SERVICE_LOG("glTexParameterfv"
4375 << "(" << GLEnums::GetStringEnum(target) << ", "
4376 << GLEnums::GetStringEnum(pname) << ", "
4377 << static_cast<const void*>(params) << ")");
4378 g_driver_gl.debug_fn.glTexParameterfvFn(target, pname, params);
4381 static void GL_BINDING_CALL
4382 Debug_glTexParameteri(GLenum target, GLenum pname, GLint param) {
4383 GL_SERVICE_LOG("glTexParameteri"
4384 << "(" << GLEnums::GetStringEnum(target) << ", "
4385 << GLEnums::GetStringEnum(pname) << ", " << param << ")");
4386 g_driver_gl.debug_fn.glTexParameteriFn(target, pname, param);
4389 static void GL_BINDING_CALL
4390 Debug_glTexParameteriv(GLenum target, GLenum pname, const GLint* params) {
4391 GL_SERVICE_LOG("glTexParameteriv"
4392 << "(" << GLEnums::GetStringEnum(target) << ", "
4393 << GLEnums::GetStringEnum(pname) << ", "
4394 << static_cast<const void*>(params) << ")");
4395 g_driver_gl.debug_fn.glTexParameterivFn(target, pname, params);
4398 static void GL_BINDING_CALL Debug_glTexStorage2DEXT(GLenum target,
4399 GLsizei levels,
4400 GLenum internalformat,
4401 GLsizei width,
4402 GLsizei height) {
4403 GL_SERVICE_LOG("glTexStorage2DEXT"
4404 << "(" << GLEnums::GetStringEnum(target) << ", " << levels
4405 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4406 << width << ", " << height << ")");
4407 g_driver_gl.debug_fn.glTexStorage2DEXTFn(target, levels, internalformat,
4408 width, height);
4411 static void GL_BINDING_CALL Debug_glTexStorage3D(GLenum target,
4412 GLsizei levels,
4413 GLenum internalformat,
4414 GLsizei width,
4415 GLsizei height,
4416 GLsizei depth) {
4417 GL_SERVICE_LOG("glTexStorage3D"
4418 << "(" << GLEnums::GetStringEnum(target) << ", " << levels
4419 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4420 << width << ", " << height << ", " << depth << ")");
4421 g_driver_gl.debug_fn.glTexStorage3DFn(target, levels, internalformat, width,
4422 height, depth);
4425 static void GL_BINDING_CALL Debug_glTexSubImage2D(GLenum target,
4426 GLint level,
4427 GLint xoffset,
4428 GLint yoffset,
4429 GLsizei width,
4430 GLsizei height,
4431 GLenum format,
4432 GLenum type,
4433 const void* pixels) {
4434 GL_SERVICE_LOG("glTexSubImage2D"
4435 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4436 << ", " << xoffset << ", " << yoffset << ", " << width << ", "
4437 << height << ", " << GLEnums::GetStringEnum(format) << ", "
4438 << GLEnums::GetStringEnum(type) << ", "
4439 << static_cast<const void*>(pixels) << ")");
4440 g_driver_gl.debug_fn.glTexSubImage2DFn(target, level, xoffset, yoffset, width,
4441 height, format, type, pixels);
4444 static void GL_BINDING_CALL Debug_glTexSubImage3D(GLenum target,
4445 GLint level,
4446 GLint xoffset,
4447 GLint yoffset,
4448 GLint zoffset,
4449 GLsizei width,
4450 GLsizei height,
4451 GLsizei depth,
4452 GLenum format,
4453 GLenum type,
4454 const void* pixels) {
4455 GL_SERVICE_LOG("glTexSubImage3D"
4456 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4457 << ", " << xoffset << ", " << yoffset << ", " << zoffset
4458 << ", " << width << ", " << height << ", " << depth << ", "
4459 << GLEnums::GetStringEnum(format) << ", "
4460 << GLEnums::GetStringEnum(type) << ", "
4461 << static_cast<const void*>(pixels) << ")");
4462 g_driver_gl.debug_fn.glTexSubImage3DFn(target, level, xoffset, yoffset,
4463 zoffset, width, height, depth, format,
4464 type, pixels);
4467 static void GL_BINDING_CALL
4468 Debug_glTransformFeedbackVaryings(GLuint program,
4469 GLsizei count,
4470 const char* const* varyings,
4471 GLenum bufferMode) {
4472 GL_SERVICE_LOG("glTransformFeedbackVaryings"
4473 << "(" << program << ", " << count << ", "
4474 << static_cast<const void*>(varyings) << ", "
4475 << GLEnums::GetStringEnum(bufferMode) << ")");
4476 g_driver_gl.debug_fn.glTransformFeedbackVaryingsFn(program, count, varyings,
4477 bufferMode);
4480 static void GL_BINDING_CALL Debug_glUniform1f(GLint location, GLfloat x) {
4481 GL_SERVICE_LOG("glUniform1f"
4482 << "(" << location << ", " << x << ")");
4483 g_driver_gl.debug_fn.glUniform1fFn(location, x);
4486 static void GL_BINDING_CALL
4487 Debug_glUniform1fv(GLint location, GLsizei count, const GLfloat* v) {
4488 GL_SERVICE_LOG("glUniform1fv"
4489 << "(" << location << ", " << count << ", "
4490 << static_cast<const void*>(v) << ")");
4491 g_driver_gl.debug_fn.glUniform1fvFn(location, count, v);
4494 static void GL_BINDING_CALL Debug_glUniform1i(GLint location, GLint x) {
4495 GL_SERVICE_LOG("glUniform1i"
4496 << "(" << location << ", " << x << ")");
4497 g_driver_gl.debug_fn.glUniform1iFn(location, x);
4500 static void GL_BINDING_CALL
4501 Debug_glUniform1iv(GLint location, GLsizei count, const GLint* v) {
4502 GL_SERVICE_LOG("glUniform1iv"
4503 << "(" << location << ", " << count << ", "
4504 << static_cast<const void*>(v) << ")");
4505 g_driver_gl.debug_fn.glUniform1ivFn(location, count, v);
4508 static void GL_BINDING_CALL Debug_glUniform1ui(GLint location, GLuint v0) {
4509 GL_SERVICE_LOG("glUniform1ui"
4510 << "(" << location << ", " << v0 << ")");
4511 g_driver_gl.debug_fn.glUniform1uiFn(location, v0);
4514 static void GL_BINDING_CALL
4515 Debug_glUniform1uiv(GLint location, GLsizei count, const GLuint* v) {
4516 GL_SERVICE_LOG("glUniform1uiv"
4517 << "(" << location << ", " << count << ", "
4518 << static_cast<const void*>(v) << ")");
4519 g_driver_gl.debug_fn.glUniform1uivFn(location, count, v);
4522 static void GL_BINDING_CALL
4523 Debug_glUniform2f(GLint location, GLfloat x, GLfloat y) {
4524 GL_SERVICE_LOG("glUniform2f"
4525 << "(" << location << ", " << x << ", " << y << ")");
4526 g_driver_gl.debug_fn.glUniform2fFn(location, x, y);
4529 static void GL_BINDING_CALL
4530 Debug_glUniform2fv(GLint location, GLsizei count, const GLfloat* v) {
4531 GL_SERVICE_LOG("glUniform2fv"
4532 << "(" << location << ", " << count << ", "
4533 << static_cast<const void*>(v) << ")");
4534 g_driver_gl.debug_fn.glUniform2fvFn(location, count, v);
4537 static void GL_BINDING_CALL
4538 Debug_glUniform2i(GLint location, GLint x, GLint y) {
4539 GL_SERVICE_LOG("glUniform2i"
4540 << "(" << location << ", " << x << ", " << y << ")");
4541 g_driver_gl.debug_fn.glUniform2iFn(location, x, y);
4544 static void GL_BINDING_CALL
4545 Debug_glUniform2iv(GLint location, GLsizei count, const GLint* v) {
4546 GL_SERVICE_LOG("glUniform2iv"
4547 << "(" << location << ", " << count << ", "
4548 << static_cast<const void*>(v) << ")");
4549 g_driver_gl.debug_fn.glUniform2ivFn(location, count, v);
4552 static void GL_BINDING_CALL
4553 Debug_glUniform2ui(GLint location, GLuint v0, GLuint v1) {
4554 GL_SERVICE_LOG("glUniform2ui"
4555 << "(" << location << ", " << v0 << ", " << v1 << ")");
4556 g_driver_gl.debug_fn.glUniform2uiFn(location, v0, v1);
4559 static void GL_BINDING_CALL
4560 Debug_glUniform2uiv(GLint location, GLsizei count, const GLuint* v) {
4561 GL_SERVICE_LOG("glUniform2uiv"
4562 << "(" << location << ", " << count << ", "
4563 << static_cast<const void*>(v) << ")");
4564 g_driver_gl.debug_fn.glUniform2uivFn(location, count, v);
4567 static void GL_BINDING_CALL
4568 Debug_glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
4569 GL_SERVICE_LOG("glUniform3f"
4570 << "(" << location << ", " << x << ", " << y << ", " << z
4571 << ")");
4572 g_driver_gl.debug_fn.glUniform3fFn(location, x, y, z);
4575 static void GL_BINDING_CALL
4576 Debug_glUniform3fv(GLint location, GLsizei count, const GLfloat* v) {
4577 GL_SERVICE_LOG("glUniform3fv"
4578 << "(" << location << ", " << count << ", "
4579 << static_cast<const void*>(v) << ")");
4580 g_driver_gl.debug_fn.glUniform3fvFn(location, count, v);
4583 static void GL_BINDING_CALL
4584 Debug_glUniform3i(GLint location, GLint x, GLint y, GLint z) {
4585 GL_SERVICE_LOG("glUniform3i"
4586 << "(" << location << ", " << x << ", " << y << ", " << z
4587 << ")");
4588 g_driver_gl.debug_fn.glUniform3iFn(location, x, y, z);
4591 static void GL_BINDING_CALL
4592 Debug_glUniform3iv(GLint location, GLsizei count, const GLint* v) {
4593 GL_SERVICE_LOG("glUniform3iv"
4594 << "(" << location << ", " << count << ", "
4595 << static_cast<const void*>(v) << ")");
4596 g_driver_gl.debug_fn.glUniform3ivFn(location, count, v);
4599 static void GL_BINDING_CALL
4600 Debug_glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) {
4601 GL_SERVICE_LOG("glUniform3ui"
4602 << "(" << location << ", " << v0 << ", " << v1 << ", " << v2
4603 << ")");
4604 g_driver_gl.debug_fn.glUniform3uiFn(location, v0, v1, v2);
4607 static void GL_BINDING_CALL
4608 Debug_glUniform3uiv(GLint location, GLsizei count, const GLuint* v) {
4609 GL_SERVICE_LOG("glUniform3uiv"
4610 << "(" << location << ", " << count << ", "
4611 << static_cast<const void*>(v) << ")");
4612 g_driver_gl.debug_fn.glUniform3uivFn(location, count, v);
4615 static void GL_BINDING_CALL
4616 Debug_glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
4617 GL_SERVICE_LOG("glUniform4f"
4618 << "(" << location << ", " << x << ", " << y << ", " << z
4619 << ", " << w << ")");
4620 g_driver_gl.debug_fn.glUniform4fFn(location, x, y, z, w);
4623 static void GL_BINDING_CALL
4624 Debug_glUniform4fv(GLint location, GLsizei count, const GLfloat* v) {
4625 GL_SERVICE_LOG("glUniform4fv"
4626 << "(" << location << ", " << count << ", "
4627 << static_cast<const void*>(v) << ")");
4628 g_driver_gl.debug_fn.glUniform4fvFn(location, count, v);
4631 static void GL_BINDING_CALL
4632 Debug_glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
4633 GL_SERVICE_LOG("glUniform4i"
4634 << "(" << location << ", " << x << ", " << y << ", " << z
4635 << ", " << w << ")");
4636 g_driver_gl.debug_fn.glUniform4iFn(location, x, y, z, w);
4639 static void GL_BINDING_CALL
4640 Debug_glUniform4iv(GLint location, GLsizei count, const GLint* v) {
4641 GL_SERVICE_LOG("glUniform4iv"
4642 << "(" << location << ", " << count << ", "
4643 << static_cast<const void*>(v) << ")");
4644 g_driver_gl.debug_fn.glUniform4ivFn(location, count, v);
4647 static void GL_BINDING_CALL
4648 Debug_glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) {
4649 GL_SERVICE_LOG("glUniform4ui"
4650 << "(" << location << ", " << v0 << ", " << v1 << ", " << v2
4651 << ", " << v3 << ")");
4652 g_driver_gl.debug_fn.glUniform4uiFn(location, v0, v1, v2, v3);
4655 static void GL_BINDING_CALL
4656 Debug_glUniform4uiv(GLint location, GLsizei count, const GLuint* v) {
4657 GL_SERVICE_LOG("glUniform4uiv"
4658 << "(" << location << ", " << count << ", "
4659 << static_cast<const void*>(v) << ")");
4660 g_driver_gl.debug_fn.glUniform4uivFn(location, count, v);
4663 static void GL_BINDING_CALL
4664 Debug_glUniformBlockBinding(GLuint program,
4665 GLuint uniformBlockIndex,
4666 GLuint uniformBlockBinding) {
4667 GL_SERVICE_LOG("glUniformBlockBinding"
4668 << "(" << program << ", " << uniformBlockIndex << ", "
4669 << uniformBlockBinding << ")");
4670 g_driver_gl.debug_fn.glUniformBlockBindingFn(program, uniformBlockIndex,
4671 uniformBlockBinding);
4674 static void GL_BINDING_CALL Debug_glUniformMatrix2fv(GLint location,
4675 GLsizei count,
4676 GLboolean transpose,
4677 const GLfloat* value) {
4678 GL_SERVICE_LOG("glUniformMatrix2fv"
4679 << "(" << location << ", " << count << ", "
4680 << GLEnums::GetStringBool(transpose) << ", "
4681 << static_cast<const void*>(value) << ")");
4682 g_driver_gl.debug_fn.glUniformMatrix2fvFn(location, count, transpose, value);
4685 static void GL_BINDING_CALL Debug_glUniformMatrix2x3fv(GLint location,
4686 GLsizei count,
4687 GLboolean transpose,
4688 const GLfloat* value) {
4689 GL_SERVICE_LOG("glUniformMatrix2x3fv"
4690 << "(" << location << ", " << count << ", "
4691 << GLEnums::GetStringBool(transpose) << ", "
4692 << static_cast<const void*>(value) << ")");
4693 g_driver_gl.debug_fn.glUniformMatrix2x3fvFn(location, count, transpose,
4694 value);
4697 static void GL_BINDING_CALL Debug_glUniformMatrix2x4fv(GLint location,
4698 GLsizei count,
4699 GLboolean transpose,
4700 const GLfloat* value) {
4701 GL_SERVICE_LOG("glUniformMatrix2x4fv"
4702 << "(" << location << ", " << count << ", "
4703 << GLEnums::GetStringBool(transpose) << ", "
4704 << static_cast<const void*>(value) << ")");
4705 g_driver_gl.debug_fn.glUniformMatrix2x4fvFn(location, count, transpose,
4706 value);
4709 static void GL_BINDING_CALL Debug_glUniformMatrix3fv(GLint location,
4710 GLsizei count,
4711 GLboolean transpose,
4712 const GLfloat* value) {
4713 GL_SERVICE_LOG("glUniformMatrix3fv"
4714 << "(" << location << ", " << count << ", "
4715 << GLEnums::GetStringBool(transpose) << ", "
4716 << static_cast<const void*>(value) << ")");
4717 g_driver_gl.debug_fn.glUniformMatrix3fvFn(location, count, transpose, value);
4720 static void GL_BINDING_CALL Debug_glUniformMatrix3x2fv(GLint location,
4721 GLsizei count,
4722 GLboolean transpose,
4723 const GLfloat* value) {
4724 GL_SERVICE_LOG("glUniformMatrix3x2fv"
4725 << "(" << location << ", " << count << ", "
4726 << GLEnums::GetStringBool(transpose) << ", "
4727 << static_cast<const void*>(value) << ")");
4728 g_driver_gl.debug_fn.glUniformMatrix3x2fvFn(location, count, transpose,
4729 value);
4732 static void GL_BINDING_CALL Debug_glUniformMatrix3x4fv(GLint location,
4733 GLsizei count,
4734 GLboolean transpose,
4735 const GLfloat* value) {
4736 GL_SERVICE_LOG("glUniformMatrix3x4fv"
4737 << "(" << location << ", " << count << ", "
4738 << GLEnums::GetStringBool(transpose) << ", "
4739 << static_cast<const void*>(value) << ")");
4740 g_driver_gl.debug_fn.glUniformMatrix3x4fvFn(location, count, transpose,
4741 value);
4744 static void GL_BINDING_CALL Debug_glUniformMatrix4fv(GLint location,
4745 GLsizei count,
4746 GLboolean transpose,
4747 const GLfloat* value) {
4748 GL_SERVICE_LOG("glUniformMatrix4fv"
4749 << "(" << location << ", " << count << ", "
4750 << GLEnums::GetStringBool(transpose) << ", "
4751 << static_cast<const void*>(value) << ")");
4752 g_driver_gl.debug_fn.glUniformMatrix4fvFn(location, count, transpose, value);
4755 static void GL_BINDING_CALL Debug_glUniformMatrix4x2fv(GLint location,
4756 GLsizei count,
4757 GLboolean transpose,
4758 const GLfloat* value) {
4759 GL_SERVICE_LOG("glUniformMatrix4x2fv"
4760 << "(" << location << ", " << count << ", "
4761 << GLEnums::GetStringBool(transpose) << ", "
4762 << static_cast<const void*>(value) << ")");
4763 g_driver_gl.debug_fn.glUniformMatrix4x2fvFn(location, count, transpose,
4764 value);
4767 static void GL_BINDING_CALL Debug_glUniformMatrix4x3fv(GLint location,
4768 GLsizei count,
4769 GLboolean transpose,
4770 const GLfloat* value) {
4771 GL_SERVICE_LOG("glUniformMatrix4x3fv"
4772 << "(" << location << ", " << count << ", "
4773 << GLEnums::GetStringBool(transpose) << ", "
4774 << static_cast<const void*>(value) << ")");
4775 g_driver_gl.debug_fn.glUniformMatrix4x3fvFn(location, count, transpose,
4776 value);
4779 static GLboolean GL_BINDING_CALL Debug_glUnmapBuffer(GLenum target) {
4780 GL_SERVICE_LOG("glUnmapBuffer"
4781 << "(" << GLEnums::GetStringEnum(target) << ")");
4782 GLboolean result = g_driver_gl.debug_fn.glUnmapBufferFn(target);
4783 GL_SERVICE_LOG("GL_RESULT: " << result);
4784 return result;
4787 static void GL_BINDING_CALL Debug_glUseProgram(GLuint program) {
4788 GL_SERVICE_LOG("glUseProgram"
4789 << "(" << program << ")");
4790 g_driver_gl.debug_fn.glUseProgramFn(program);
4793 static void GL_BINDING_CALL Debug_glValidateProgram(GLuint program) {
4794 GL_SERVICE_LOG("glValidateProgram"
4795 << "(" << program << ")");
4796 g_driver_gl.debug_fn.glValidateProgramFn(program);
4799 static void GL_BINDING_CALL Debug_glVertexAttrib1f(GLuint indx, GLfloat x) {
4800 GL_SERVICE_LOG("glVertexAttrib1f"
4801 << "(" << indx << ", " << x << ")");
4802 g_driver_gl.debug_fn.glVertexAttrib1fFn(indx, x);
4805 static void GL_BINDING_CALL
4806 Debug_glVertexAttrib1fv(GLuint indx, const GLfloat* values) {
4807 GL_SERVICE_LOG("glVertexAttrib1fv"
4808 << "(" << indx << ", " << static_cast<const void*>(values)
4809 << ")");
4810 g_driver_gl.debug_fn.glVertexAttrib1fvFn(indx, values);
4813 static void GL_BINDING_CALL
4814 Debug_glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
4815 GL_SERVICE_LOG("glVertexAttrib2f"
4816 << "(" << indx << ", " << x << ", " << y << ")");
4817 g_driver_gl.debug_fn.glVertexAttrib2fFn(indx, x, y);
4820 static void GL_BINDING_CALL
4821 Debug_glVertexAttrib2fv(GLuint indx, const GLfloat* values) {
4822 GL_SERVICE_LOG("glVertexAttrib2fv"
4823 << "(" << indx << ", " << static_cast<const void*>(values)
4824 << ")");
4825 g_driver_gl.debug_fn.glVertexAttrib2fvFn(indx, values);
4828 static void GL_BINDING_CALL
4829 Debug_glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
4830 GL_SERVICE_LOG("glVertexAttrib3f"
4831 << "(" << indx << ", " << x << ", " << y << ", " << z << ")");
4832 g_driver_gl.debug_fn.glVertexAttrib3fFn(indx, x, y, z);
4835 static void GL_BINDING_CALL
4836 Debug_glVertexAttrib3fv(GLuint indx, const GLfloat* values) {
4837 GL_SERVICE_LOG("glVertexAttrib3fv"
4838 << "(" << indx << ", " << static_cast<const void*>(values)
4839 << ")");
4840 g_driver_gl.debug_fn.glVertexAttrib3fvFn(indx, values);
4843 static void GL_BINDING_CALL Debug_glVertexAttrib4f(GLuint indx,
4844 GLfloat x,
4845 GLfloat y,
4846 GLfloat z,
4847 GLfloat w) {
4848 GL_SERVICE_LOG("glVertexAttrib4f"
4849 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4850 << w << ")");
4851 g_driver_gl.debug_fn.glVertexAttrib4fFn(indx, x, y, z, w);
4854 static void GL_BINDING_CALL
4855 Debug_glVertexAttrib4fv(GLuint indx, const GLfloat* values) {
4856 GL_SERVICE_LOG("glVertexAttrib4fv"
4857 << "(" << indx << ", " << static_cast<const void*>(values)
4858 << ")");
4859 g_driver_gl.debug_fn.glVertexAttrib4fvFn(indx, values);
4862 static void GL_BINDING_CALL
4863 Debug_glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
4864 GL_SERVICE_LOG("glVertexAttribDivisorANGLE"
4865 << "(" << index << ", " << divisor << ")");
4866 g_driver_gl.debug_fn.glVertexAttribDivisorANGLEFn(index, divisor);
4869 static void GL_BINDING_CALL
4870 Debug_glVertexAttribI4i(GLuint indx, GLint x, GLint y, GLint z, GLint w) {
4871 GL_SERVICE_LOG("glVertexAttribI4i"
4872 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4873 << w << ")");
4874 g_driver_gl.debug_fn.glVertexAttribI4iFn(indx, x, y, z, w);
4877 static void GL_BINDING_CALL
4878 Debug_glVertexAttribI4iv(GLuint indx, const GLint* values) {
4879 GL_SERVICE_LOG("glVertexAttribI4iv"
4880 << "(" << indx << ", " << static_cast<const void*>(values)
4881 << ")");
4882 g_driver_gl.debug_fn.glVertexAttribI4ivFn(indx, values);
4885 static void GL_BINDING_CALL
4886 Debug_glVertexAttribI4ui(GLuint indx, GLuint x, GLuint y, GLuint z, GLuint w) {
4887 GL_SERVICE_LOG("glVertexAttribI4ui"
4888 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4889 << w << ")");
4890 g_driver_gl.debug_fn.glVertexAttribI4uiFn(indx, x, y, z, w);
4893 static void GL_BINDING_CALL
4894 Debug_glVertexAttribI4uiv(GLuint indx, const GLuint* values) {
4895 GL_SERVICE_LOG("glVertexAttribI4uiv"
4896 << "(" << indx << ", " << static_cast<const void*>(values)
4897 << ")");
4898 g_driver_gl.debug_fn.glVertexAttribI4uivFn(indx, values);
4901 static void GL_BINDING_CALL Debug_glVertexAttribIPointer(GLuint indx,
4902 GLint size,
4903 GLenum type,
4904 GLsizei stride,
4905 const void* ptr) {
4906 GL_SERVICE_LOG("glVertexAttribIPointer"
4907 << "(" << indx << ", " << size << ", "
4908 << GLEnums::GetStringEnum(type) << ", " << stride << ", "
4909 << static_cast<const void*>(ptr) << ")");
4910 g_driver_gl.debug_fn.glVertexAttribIPointerFn(indx, size, type, stride, ptr);
4913 static void GL_BINDING_CALL Debug_glVertexAttribPointer(GLuint indx,
4914 GLint size,
4915 GLenum type,
4916 GLboolean normalized,
4917 GLsizei stride,
4918 const void* ptr) {
4919 GL_SERVICE_LOG("glVertexAttribPointer"
4920 << "(" << indx << ", " << size << ", "
4921 << GLEnums::GetStringEnum(type) << ", "
4922 << GLEnums::GetStringBool(normalized) << ", " << stride << ", "
4923 << static_cast<const void*>(ptr) << ")");
4924 g_driver_gl.debug_fn.glVertexAttribPointerFn(indx, size, type, normalized,
4925 stride, ptr);
4928 static void GL_BINDING_CALL
4929 Debug_glViewport(GLint x, GLint y, GLsizei width, GLsizei height) {
4930 GL_SERVICE_LOG("glViewport"
4931 << "(" << x << ", " << y << ", " << width << ", " << height
4932 << ")");
4933 g_driver_gl.debug_fn.glViewportFn(x, y, width, height);
4936 static GLenum GL_BINDING_CALL
4937 Debug_glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
4938 GL_SERVICE_LOG("glWaitSync"
4939 << "(" << sync << ", " << flags << ", " << timeout << ")");
4940 GLenum result = g_driver_gl.debug_fn.glWaitSyncFn(sync, flags, timeout);
4941 GL_SERVICE_LOG("GL_RESULT: " << result);
4942 return result;
4944 } // extern "C"
4946 void DriverGL::InitializeDebugBindings() {
4947 if (!debug_fn.glActiveTextureFn) {
4948 debug_fn.glActiveTextureFn = fn.glActiveTextureFn;
4949 fn.glActiveTextureFn = Debug_glActiveTexture;
4951 if (!debug_fn.glAttachShaderFn) {
4952 debug_fn.glAttachShaderFn = fn.glAttachShaderFn;
4953 fn.glAttachShaderFn = Debug_glAttachShader;
4955 if (!debug_fn.glBeginQueryFn) {
4956 debug_fn.glBeginQueryFn = fn.glBeginQueryFn;
4957 fn.glBeginQueryFn = Debug_glBeginQuery;
4959 if (!debug_fn.glBeginTransformFeedbackFn) {
4960 debug_fn.glBeginTransformFeedbackFn = fn.glBeginTransformFeedbackFn;
4961 fn.glBeginTransformFeedbackFn = Debug_glBeginTransformFeedback;
4963 if (!debug_fn.glBindAttribLocationFn) {
4964 debug_fn.glBindAttribLocationFn = fn.glBindAttribLocationFn;
4965 fn.glBindAttribLocationFn = Debug_glBindAttribLocation;
4967 if (!debug_fn.glBindBufferFn) {
4968 debug_fn.glBindBufferFn = fn.glBindBufferFn;
4969 fn.glBindBufferFn = Debug_glBindBuffer;
4971 if (!debug_fn.glBindBufferBaseFn) {
4972 debug_fn.glBindBufferBaseFn = fn.glBindBufferBaseFn;
4973 fn.glBindBufferBaseFn = Debug_glBindBufferBase;
4975 if (!debug_fn.glBindBufferRangeFn) {
4976 debug_fn.glBindBufferRangeFn = fn.glBindBufferRangeFn;
4977 fn.glBindBufferRangeFn = Debug_glBindBufferRange;
4979 if (!debug_fn.glBindFragDataLocationFn) {
4980 debug_fn.glBindFragDataLocationFn = fn.glBindFragDataLocationFn;
4981 fn.glBindFragDataLocationFn = Debug_glBindFragDataLocation;
4983 if (!debug_fn.glBindFragDataLocationIndexedFn) {
4984 debug_fn.glBindFragDataLocationIndexedFn =
4985 fn.glBindFragDataLocationIndexedFn;
4986 fn.glBindFragDataLocationIndexedFn = Debug_glBindFragDataLocationIndexed;
4988 if (!debug_fn.glBindFramebufferEXTFn) {
4989 debug_fn.glBindFramebufferEXTFn = fn.glBindFramebufferEXTFn;
4990 fn.glBindFramebufferEXTFn = Debug_glBindFramebufferEXT;
4992 if (!debug_fn.glBindRenderbufferEXTFn) {
4993 debug_fn.glBindRenderbufferEXTFn = fn.glBindRenderbufferEXTFn;
4994 fn.glBindRenderbufferEXTFn = Debug_glBindRenderbufferEXT;
4996 if (!debug_fn.glBindSamplerFn) {
4997 debug_fn.glBindSamplerFn = fn.glBindSamplerFn;
4998 fn.glBindSamplerFn = Debug_glBindSampler;
5000 if (!debug_fn.glBindTextureFn) {
5001 debug_fn.glBindTextureFn = fn.glBindTextureFn;
5002 fn.glBindTextureFn = Debug_glBindTexture;
5004 if (!debug_fn.glBindTransformFeedbackFn) {
5005 debug_fn.glBindTransformFeedbackFn = fn.glBindTransformFeedbackFn;
5006 fn.glBindTransformFeedbackFn = Debug_glBindTransformFeedback;
5008 if (!debug_fn.glBindVertexArrayOESFn) {
5009 debug_fn.glBindVertexArrayOESFn = fn.glBindVertexArrayOESFn;
5010 fn.glBindVertexArrayOESFn = Debug_glBindVertexArrayOES;
5012 if (!debug_fn.glBlendBarrierKHRFn) {
5013 debug_fn.glBlendBarrierKHRFn = fn.glBlendBarrierKHRFn;
5014 fn.glBlendBarrierKHRFn = Debug_glBlendBarrierKHR;
5016 if (!debug_fn.glBlendColorFn) {
5017 debug_fn.glBlendColorFn = fn.glBlendColorFn;
5018 fn.glBlendColorFn = Debug_glBlendColor;
5020 if (!debug_fn.glBlendEquationFn) {
5021 debug_fn.glBlendEquationFn = fn.glBlendEquationFn;
5022 fn.glBlendEquationFn = Debug_glBlendEquation;
5024 if (!debug_fn.glBlendEquationSeparateFn) {
5025 debug_fn.glBlendEquationSeparateFn = fn.glBlendEquationSeparateFn;
5026 fn.glBlendEquationSeparateFn = Debug_glBlendEquationSeparate;
5028 if (!debug_fn.glBlendFuncFn) {
5029 debug_fn.glBlendFuncFn = fn.glBlendFuncFn;
5030 fn.glBlendFuncFn = Debug_glBlendFunc;
5032 if (!debug_fn.glBlendFuncSeparateFn) {
5033 debug_fn.glBlendFuncSeparateFn = fn.glBlendFuncSeparateFn;
5034 fn.glBlendFuncSeparateFn = Debug_glBlendFuncSeparate;
5036 if (!debug_fn.glBlitFramebufferFn) {
5037 debug_fn.glBlitFramebufferFn = fn.glBlitFramebufferFn;
5038 fn.glBlitFramebufferFn = Debug_glBlitFramebuffer;
5040 if (!debug_fn.glBlitFramebufferANGLEFn) {
5041 debug_fn.glBlitFramebufferANGLEFn = fn.glBlitFramebufferANGLEFn;
5042 fn.glBlitFramebufferANGLEFn = Debug_glBlitFramebufferANGLE;
5044 if (!debug_fn.glBlitFramebufferEXTFn) {
5045 debug_fn.glBlitFramebufferEXTFn = fn.glBlitFramebufferEXTFn;
5046 fn.glBlitFramebufferEXTFn = Debug_glBlitFramebufferEXT;
5048 if (!debug_fn.glBufferDataFn) {
5049 debug_fn.glBufferDataFn = fn.glBufferDataFn;
5050 fn.glBufferDataFn = Debug_glBufferData;
5052 if (!debug_fn.glBufferSubDataFn) {
5053 debug_fn.glBufferSubDataFn = fn.glBufferSubDataFn;
5054 fn.glBufferSubDataFn = Debug_glBufferSubData;
5056 if (!debug_fn.glCheckFramebufferStatusEXTFn) {
5057 debug_fn.glCheckFramebufferStatusEXTFn = fn.glCheckFramebufferStatusEXTFn;
5058 fn.glCheckFramebufferStatusEXTFn = Debug_glCheckFramebufferStatusEXT;
5060 if (!debug_fn.glClearFn) {
5061 debug_fn.glClearFn = fn.glClearFn;
5062 fn.glClearFn = Debug_glClear;
5064 if (!debug_fn.glClearBufferfiFn) {
5065 debug_fn.glClearBufferfiFn = fn.glClearBufferfiFn;
5066 fn.glClearBufferfiFn = Debug_glClearBufferfi;
5068 if (!debug_fn.glClearBufferfvFn) {
5069 debug_fn.glClearBufferfvFn = fn.glClearBufferfvFn;
5070 fn.glClearBufferfvFn = Debug_glClearBufferfv;
5072 if (!debug_fn.glClearBufferivFn) {
5073 debug_fn.glClearBufferivFn = fn.glClearBufferivFn;
5074 fn.glClearBufferivFn = Debug_glClearBufferiv;
5076 if (!debug_fn.glClearBufferuivFn) {
5077 debug_fn.glClearBufferuivFn = fn.glClearBufferuivFn;
5078 fn.glClearBufferuivFn = Debug_glClearBufferuiv;
5080 if (!debug_fn.glClearColorFn) {
5081 debug_fn.glClearColorFn = fn.glClearColorFn;
5082 fn.glClearColorFn = Debug_glClearColor;
5084 if (!debug_fn.glClearDepthFn) {
5085 debug_fn.glClearDepthFn = fn.glClearDepthFn;
5086 fn.glClearDepthFn = Debug_glClearDepth;
5088 if (!debug_fn.glClearDepthfFn) {
5089 debug_fn.glClearDepthfFn = fn.glClearDepthfFn;
5090 fn.glClearDepthfFn = Debug_glClearDepthf;
5092 if (!debug_fn.glClearStencilFn) {
5093 debug_fn.glClearStencilFn = fn.glClearStencilFn;
5094 fn.glClearStencilFn = Debug_glClearStencil;
5096 if (!debug_fn.glClientWaitSyncFn) {
5097 debug_fn.glClientWaitSyncFn = fn.glClientWaitSyncFn;
5098 fn.glClientWaitSyncFn = Debug_glClientWaitSync;
5100 if (!debug_fn.glColorMaskFn) {
5101 debug_fn.glColorMaskFn = fn.glColorMaskFn;
5102 fn.glColorMaskFn = Debug_glColorMask;
5104 if (!debug_fn.glCompileShaderFn) {
5105 debug_fn.glCompileShaderFn = fn.glCompileShaderFn;
5106 fn.glCompileShaderFn = Debug_glCompileShader;
5108 if (!debug_fn.glCompressedTexImage2DFn) {
5109 debug_fn.glCompressedTexImage2DFn = fn.glCompressedTexImage2DFn;
5110 fn.glCompressedTexImage2DFn = Debug_glCompressedTexImage2D;
5112 if (!debug_fn.glCompressedTexImage3DFn) {
5113 debug_fn.glCompressedTexImage3DFn = fn.glCompressedTexImage3DFn;
5114 fn.glCompressedTexImage3DFn = Debug_glCompressedTexImage3D;
5116 if (!debug_fn.glCompressedTexSubImage2DFn) {
5117 debug_fn.glCompressedTexSubImage2DFn = fn.glCompressedTexSubImage2DFn;
5118 fn.glCompressedTexSubImage2DFn = Debug_glCompressedTexSubImage2D;
5120 if (!debug_fn.glCompressedTexSubImage3DFn) {
5121 debug_fn.glCompressedTexSubImage3DFn = fn.glCompressedTexSubImage3DFn;
5122 fn.glCompressedTexSubImage3DFn = Debug_glCompressedTexSubImage3D;
5124 if (!debug_fn.glCopyBufferSubDataFn) {
5125 debug_fn.glCopyBufferSubDataFn = fn.glCopyBufferSubDataFn;
5126 fn.glCopyBufferSubDataFn = Debug_glCopyBufferSubData;
5128 if (!debug_fn.glCopyTexImage2DFn) {
5129 debug_fn.glCopyTexImage2DFn = fn.glCopyTexImage2DFn;
5130 fn.glCopyTexImage2DFn = Debug_glCopyTexImage2D;
5132 if (!debug_fn.glCopyTexSubImage2DFn) {
5133 debug_fn.glCopyTexSubImage2DFn = fn.glCopyTexSubImage2DFn;
5134 fn.glCopyTexSubImage2DFn = Debug_glCopyTexSubImage2D;
5136 if (!debug_fn.glCopyTexSubImage3DFn) {
5137 debug_fn.glCopyTexSubImage3DFn = fn.glCopyTexSubImage3DFn;
5138 fn.glCopyTexSubImage3DFn = Debug_glCopyTexSubImage3D;
5140 if (!debug_fn.glCoverFillPathNVFn) {
5141 debug_fn.glCoverFillPathNVFn = fn.glCoverFillPathNVFn;
5142 fn.glCoverFillPathNVFn = Debug_glCoverFillPathNV;
5144 if (!debug_fn.glCoverStrokePathNVFn) {
5145 debug_fn.glCoverStrokePathNVFn = fn.glCoverStrokePathNVFn;
5146 fn.glCoverStrokePathNVFn = Debug_glCoverStrokePathNV;
5148 if (!debug_fn.glCreateProgramFn) {
5149 debug_fn.glCreateProgramFn = fn.glCreateProgramFn;
5150 fn.glCreateProgramFn = Debug_glCreateProgram;
5152 if (!debug_fn.glCreateShaderFn) {
5153 debug_fn.glCreateShaderFn = fn.glCreateShaderFn;
5154 fn.glCreateShaderFn = Debug_glCreateShader;
5156 if (!debug_fn.glCullFaceFn) {
5157 debug_fn.glCullFaceFn = fn.glCullFaceFn;
5158 fn.glCullFaceFn = Debug_glCullFace;
5160 if (!debug_fn.glDeleteBuffersARBFn) {
5161 debug_fn.glDeleteBuffersARBFn = fn.glDeleteBuffersARBFn;
5162 fn.glDeleteBuffersARBFn = Debug_glDeleteBuffersARB;
5164 if (!debug_fn.glDeleteFencesAPPLEFn) {
5165 debug_fn.glDeleteFencesAPPLEFn = fn.glDeleteFencesAPPLEFn;
5166 fn.glDeleteFencesAPPLEFn = Debug_glDeleteFencesAPPLE;
5168 if (!debug_fn.glDeleteFencesNVFn) {
5169 debug_fn.glDeleteFencesNVFn = fn.glDeleteFencesNVFn;
5170 fn.glDeleteFencesNVFn = Debug_glDeleteFencesNV;
5172 if (!debug_fn.glDeleteFramebuffersEXTFn) {
5173 debug_fn.glDeleteFramebuffersEXTFn = fn.glDeleteFramebuffersEXTFn;
5174 fn.glDeleteFramebuffersEXTFn = Debug_glDeleteFramebuffersEXT;
5176 if (!debug_fn.glDeletePathsNVFn) {
5177 debug_fn.glDeletePathsNVFn = fn.glDeletePathsNVFn;
5178 fn.glDeletePathsNVFn = Debug_glDeletePathsNV;
5180 if (!debug_fn.glDeleteProgramFn) {
5181 debug_fn.glDeleteProgramFn = fn.glDeleteProgramFn;
5182 fn.glDeleteProgramFn = Debug_glDeleteProgram;
5184 if (!debug_fn.glDeleteQueriesFn) {
5185 debug_fn.glDeleteQueriesFn = fn.glDeleteQueriesFn;
5186 fn.glDeleteQueriesFn = Debug_glDeleteQueries;
5188 if (!debug_fn.glDeleteRenderbuffersEXTFn) {
5189 debug_fn.glDeleteRenderbuffersEXTFn = fn.glDeleteRenderbuffersEXTFn;
5190 fn.glDeleteRenderbuffersEXTFn = Debug_glDeleteRenderbuffersEXT;
5192 if (!debug_fn.glDeleteSamplersFn) {
5193 debug_fn.glDeleteSamplersFn = fn.glDeleteSamplersFn;
5194 fn.glDeleteSamplersFn = Debug_glDeleteSamplers;
5196 if (!debug_fn.glDeleteShaderFn) {
5197 debug_fn.glDeleteShaderFn = fn.glDeleteShaderFn;
5198 fn.glDeleteShaderFn = Debug_glDeleteShader;
5200 if (!debug_fn.glDeleteSyncFn) {
5201 debug_fn.glDeleteSyncFn = fn.glDeleteSyncFn;
5202 fn.glDeleteSyncFn = Debug_glDeleteSync;
5204 if (!debug_fn.glDeleteTexturesFn) {
5205 debug_fn.glDeleteTexturesFn = fn.glDeleteTexturesFn;
5206 fn.glDeleteTexturesFn = Debug_glDeleteTextures;
5208 if (!debug_fn.glDeleteTransformFeedbacksFn) {
5209 debug_fn.glDeleteTransformFeedbacksFn = fn.glDeleteTransformFeedbacksFn;
5210 fn.glDeleteTransformFeedbacksFn = Debug_glDeleteTransformFeedbacks;
5212 if (!debug_fn.glDeleteVertexArraysOESFn) {
5213 debug_fn.glDeleteVertexArraysOESFn = fn.glDeleteVertexArraysOESFn;
5214 fn.glDeleteVertexArraysOESFn = Debug_glDeleteVertexArraysOES;
5216 if (!debug_fn.glDepthFuncFn) {
5217 debug_fn.glDepthFuncFn = fn.glDepthFuncFn;
5218 fn.glDepthFuncFn = Debug_glDepthFunc;
5220 if (!debug_fn.glDepthMaskFn) {
5221 debug_fn.glDepthMaskFn = fn.glDepthMaskFn;
5222 fn.glDepthMaskFn = Debug_glDepthMask;
5224 if (!debug_fn.glDepthRangeFn) {
5225 debug_fn.glDepthRangeFn = fn.glDepthRangeFn;
5226 fn.glDepthRangeFn = Debug_glDepthRange;
5228 if (!debug_fn.glDepthRangefFn) {
5229 debug_fn.glDepthRangefFn = fn.glDepthRangefFn;
5230 fn.glDepthRangefFn = Debug_glDepthRangef;
5232 if (!debug_fn.glDetachShaderFn) {
5233 debug_fn.glDetachShaderFn = fn.glDetachShaderFn;
5234 fn.glDetachShaderFn = Debug_glDetachShader;
5236 if (!debug_fn.glDisableFn) {
5237 debug_fn.glDisableFn = fn.glDisableFn;
5238 fn.glDisableFn = Debug_glDisable;
5240 if (!debug_fn.glDisableVertexAttribArrayFn) {
5241 debug_fn.glDisableVertexAttribArrayFn = fn.glDisableVertexAttribArrayFn;
5242 fn.glDisableVertexAttribArrayFn = Debug_glDisableVertexAttribArray;
5244 if (!debug_fn.glDiscardFramebufferEXTFn) {
5245 debug_fn.glDiscardFramebufferEXTFn = fn.glDiscardFramebufferEXTFn;
5246 fn.glDiscardFramebufferEXTFn = Debug_glDiscardFramebufferEXT;
5248 if (!debug_fn.glDrawArraysFn) {
5249 debug_fn.glDrawArraysFn = fn.glDrawArraysFn;
5250 fn.glDrawArraysFn = Debug_glDrawArrays;
5252 if (!debug_fn.glDrawArraysInstancedANGLEFn) {
5253 debug_fn.glDrawArraysInstancedANGLEFn = fn.glDrawArraysInstancedANGLEFn;
5254 fn.glDrawArraysInstancedANGLEFn = Debug_glDrawArraysInstancedANGLE;
5256 if (!debug_fn.glDrawBufferFn) {
5257 debug_fn.glDrawBufferFn = fn.glDrawBufferFn;
5258 fn.glDrawBufferFn = Debug_glDrawBuffer;
5260 if (!debug_fn.glDrawBuffersARBFn) {
5261 debug_fn.glDrawBuffersARBFn = fn.glDrawBuffersARBFn;
5262 fn.glDrawBuffersARBFn = Debug_glDrawBuffersARB;
5264 if (!debug_fn.glDrawElementsFn) {
5265 debug_fn.glDrawElementsFn = fn.glDrawElementsFn;
5266 fn.glDrawElementsFn = Debug_glDrawElements;
5268 if (!debug_fn.glDrawElementsInstancedANGLEFn) {
5269 debug_fn.glDrawElementsInstancedANGLEFn = fn.glDrawElementsInstancedANGLEFn;
5270 fn.glDrawElementsInstancedANGLEFn = Debug_glDrawElementsInstancedANGLE;
5272 if (!debug_fn.glDrawRangeElementsFn) {
5273 debug_fn.glDrawRangeElementsFn = fn.glDrawRangeElementsFn;
5274 fn.glDrawRangeElementsFn = Debug_glDrawRangeElements;
5276 if (!debug_fn.glEGLImageTargetRenderbufferStorageOESFn) {
5277 debug_fn.glEGLImageTargetRenderbufferStorageOESFn =
5278 fn.glEGLImageTargetRenderbufferStorageOESFn;
5279 fn.glEGLImageTargetRenderbufferStorageOESFn =
5280 Debug_glEGLImageTargetRenderbufferStorageOES;
5282 if (!debug_fn.glEGLImageTargetTexture2DOESFn) {
5283 debug_fn.glEGLImageTargetTexture2DOESFn = fn.glEGLImageTargetTexture2DOESFn;
5284 fn.glEGLImageTargetTexture2DOESFn = Debug_glEGLImageTargetTexture2DOES;
5286 if (!debug_fn.glEnableFn) {
5287 debug_fn.glEnableFn = fn.glEnableFn;
5288 fn.glEnableFn = Debug_glEnable;
5290 if (!debug_fn.glEnableVertexAttribArrayFn) {
5291 debug_fn.glEnableVertexAttribArrayFn = fn.glEnableVertexAttribArrayFn;
5292 fn.glEnableVertexAttribArrayFn = Debug_glEnableVertexAttribArray;
5294 if (!debug_fn.glEndQueryFn) {
5295 debug_fn.glEndQueryFn = fn.glEndQueryFn;
5296 fn.glEndQueryFn = Debug_glEndQuery;
5298 if (!debug_fn.glEndTransformFeedbackFn) {
5299 debug_fn.glEndTransformFeedbackFn = fn.glEndTransformFeedbackFn;
5300 fn.glEndTransformFeedbackFn = Debug_glEndTransformFeedback;
5302 if (!debug_fn.glFenceSyncFn) {
5303 debug_fn.glFenceSyncFn = fn.glFenceSyncFn;
5304 fn.glFenceSyncFn = Debug_glFenceSync;
5306 if (!debug_fn.glFinishFn) {
5307 debug_fn.glFinishFn = fn.glFinishFn;
5308 fn.glFinishFn = Debug_glFinish;
5310 if (!debug_fn.glFinishFenceAPPLEFn) {
5311 debug_fn.glFinishFenceAPPLEFn = fn.glFinishFenceAPPLEFn;
5312 fn.glFinishFenceAPPLEFn = Debug_glFinishFenceAPPLE;
5314 if (!debug_fn.glFinishFenceNVFn) {
5315 debug_fn.glFinishFenceNVFn = fn.glFinishFenceNVFn;
5316 fn.glFinishFenceNVFn = Debug_glFinishFenceNV;
5318 if (!debug_fn.glFlushFn) {
5319 debug_fn.glFlushFn = fn.glFlushFn;
5320 fn.glFlushFn = Debug_glFlush;
5322 if (!debug_fn.glFlushMappedBufferRangeFn) {
5323 debug_fn.glFlushMappedBufferRangeFn = fn.glFlushMappedBufferRangeFn;
5324 fn.glFlushMappedBufferRangeFn = Debug_glFlushMappedBufferRange;
5326 if (!debug_fn.glFramebufferRenderbufferEXTFn) {
5327 debug_fn.glFramebufferRenderbufferEXTFn = fn.glFramebufferRenderbufferEXTFn;
5328 fn.glFramebufferRenderbufferEXTFn = Debug_glFramebufferRenderbufferEXT;
5330 if (!debug_fn.glFramebufferTexture2DEXTFn) {
5331 debug_fn.glFramebufferTexture2DEXTFn = fn.glFramebufferTexture2DEXTFn;
5332 fn.glFramebufferTexture2DEXTFn = Debug_glFramebufferTexture2DEXT;
5334 if (!debug_fn.glFramebufferTexture2DMultisampleEXTFn) {
5335 debug_fn.glFramebufferTexture2DMultisampleEXTFn =
5336 fn.glFramebufferTexture2DMultisampleEXTFn;
5337 fn.glFramebufferTexture2DMultisampleEXTFn =
5338 Debug_glFramebufferTexture2DMultisampleEXT;
5340 if (!debug_fn.glFramebufferTexture2DMultisampleIMGFn) {
5341 debug_fn.glFramebufferTexture2DMultisampleIMGFn =
5342 fn.glFramebufferTexture2DMultisampleIMGFn;
5343 fn.glFramebufferTexture2DMultisampleIMGFn =
5344 Debug_glFramebufferTexture2DMultisampleIMG;
5346 if (!debug_fn.glFramebufferTextureLayerFn) {
5347 debug_fn.glFramebufferTextureLayerFn = fn.glFramebufferTextureLayerFn;
5348 fn.glFramebufferTextureLayerFn = Debug_glFramebufferTextureLayer;
5350 if (!debug_fn.glFrontFaceFn) {
5351 debug_fn.glFrontFaceFn = fn.glFrontFaceFn;
5352 fn.glFrontFaceFn = Debug_glFrontFace;
5354 if (!debug_fn.glGenBuffersARBFn) {
5355 debug_fn.glGenBuffersARBFn = fn.glGenBuffersARBFn;
5356 fn.glGenBuffersARBFn = Debug_glGenBuffersARB;
5358 if (!debug_fn.glGenerateMipmapEXTFn) {
5359 debug_fn.glGenerateMipmapEXTFn = fn.glGenerateMipmapEXTFn;
5360 fn.glGenerateMipmapEXTFn = Debug_glGenerateMipmapEXT;
5362 if (!debug_fn.glGenFencesAPPLEFn) {
5363 debug_fn.glGenFencesAPPLEFn = fn.glGenFencesAPPLEFn;
5364 fn.glGenFencesAPPLEFn = Debug_glGenFencesAPPLE;
5366 if (!debug_fn.glGenFencesNVFn) {
5367 debug_fn.glGenFencesNVFn = fn.glGenFencesNVFn;
5368 fn.glGenFencesNVFn = Debug_glGenFencesNV;
5370 if (!debug_fn.glGenFramebuffersEXTFn) {
5371 debug_fn.glGenFramebuffersEXTFn = fn.glGenFramebuffersEXTFn;
5372 fn.glGenFramebuffersEXTFn = Debug_glGenFramebuffersEXT;
5374 if (!debug_fn.glGenPathsNVFn) {
5375 debug_fn.glGenPathsNVFn = fn.glGenPathsNVFn;
5376 fn.glGenPathsNVFn = Debug_glGenPathsNV;
5378 if (!debug_fn.glGenQueriesFn) {
5379 debug_fn.glGenQueriesFn = fn.glGenQueriesFn;
5380 fn.glGenQueriesFn = Debug_glGenQueries;
5382 if (!debug_fn.glGenRenderbuffersEXTFn) {
5383 debug_fn.glGenRenderbuffersEXTFn = fn.glGenRenderbuffersEXTFn;
5384 fn.glGenRenderbuffersEXTFn = Debug_glGenRenderbuffersEXT;
5386 if (!debug_fn.glGenSamplersFn) {
5387 debug_fn.glGenSamplersFn = fn.glGenSamplersFn;
5388 fn.glGenSamplersFn = Debug_glGenSamplers;
5390 if (!debug_fn.glGenTexturesFn) {
5391 debug_fn.glGenTexturesFn = fn.glGenTexturesFn;
5392 fn.glGenTexturesFn = Debug_glGenTextures;
5394 if (!debug_fn.glGenTransformFeedbacksFn) {
5395 debug_fn.glGenTransformFeedbacksFn = fn.glGenTransformFeedbacksFn;
5396 fn.glGenTransformFeedbacksFn = Debug_glGenTransformFeedbacks;
5398 if (!debug_fn.glGenVertexArraysOESFn) {
5399 debug_fn.glGenVertexArraysOESFn = fn.glGenVertexArraysOESFn;
5400 fn.glGenVertexArraysOESFn = Debug_glGenVertexArraysOES;
5402 if (!debug_fn.glGetActiveAttribFn) {
5403 debug_fn.glGetActiveAttribFn = fn.glGetActiveAttribFn;
5404 fn.glGetActiveAttribFn = Debug_glGetActiveAttrib;
5406 if (!debug_fn.glGetActiveUniformFn) {
5407 debug_fn.glGetActiveUniformFn = fn.glGetActiveUniformFn;
5408 fn.glGetActiveUniformFn = Debug_glGetActiveUniform;
5410 if (!debug_fn.glGetActiveUniformBlockivFn) {
5411 debug_fn.glGetActiveUniformBlockivFn = fn.glGetActiveUniformBlockivFn;
5412 fn.glGetActiveUniformBlockivFn = Debug_glGetActiveUniformBlockiv;
5414 if (!debug_fn.glGetActiveUniformBlockNameFn) {
5415 debug_fn.glGetActiveUniformBlockNameFn = fn.glGetActiveUniformBlockNameFn;
5416 fn.glGetActiveUniformBlockNameFn = Debug_glGetActiveUniformBlockName;
5418 if (!debug_fn.glGetActiveUniformsivFn) {
5419 debug_fn.glGetActiveUniformsivFn = fn.glGetActiveUniformsivFn;
5420 fn.glGetActiveUniformsivFn = Debug_glGetActiveUniformsiv;
5422 if (!debug_fn.glGetAttachedShadersFn) {
5423 debug_fn.glGetAttachedShadersFn = fn.glGetAttachedShadersFn;
5424 fn.glGetAttachedShadersFn = Debug_glGetAttachedShaders;
5426 if (!debug_fn.glGetAttribLocationFn) {
5427 debug_fn.glGetAttribLocationFn = fn.glGetAttribLocationFn;
5428 fn.glGetAttribLocationFn = Debug_glGetAttribLocation;
5430 if (!debug_fn.glGetBooleanvFn) {
5431 debug_fn.glGetBooleanvFn = fn.glGetBooleanvFn;
5432 fn.glGetBooleanvFn = Debug_glGetBooleanv;
5434 if (!debug_fn.glGetBufferParameterivFn) {
5435 debug_fn.glGetBufferParameterivFn = fn.glGetBufferParameterivFn;
5436 fn.glGetBufferParameterivFn = Debug_glGetBufferParameteriv;
5438 if (!debug_fn.glGetErrorFn) {
5439 debug_fn.glGetErrorFn = fn.glGetErrorFn;
5440 fn.glGetErrorFn = Debug_glGetError;
5442 if (!debug_fn.glGetFenceivNVFn) {
5443 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn;
5444 fn.glGetFenceivNVFn = Debug_glGetFenceivNV;
5446 if (!debug_fn.glGetFloatvFn) {
5447 debug_fn.glGetFloatvFn = fn.glGetFloatvFn;
5448 fn.glGetFloatvFn = Debug_glGetFloatv;
5450 if (!debug_fn.glGetFragDataLocationFn) {
5451 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn;
5452 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation;
5454 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) {
5455 debug_fn.glGetFramebufferAttachmentParameterivEXTFn =
5456 fn.glGetFramebufferAttachmentParameterivEXTFn;
5457 fn.glGetFramebufferAttachmentParameterivEXTFn =
5458 Debug_glGetFramebufferAttachmentParameterivEXT;
5460 if (!debug_fn.glGetGraphicsResetStatusARBFn) {
5461 debug_fn.glGetGraphicsResetStatusARBFn = fn.glGetGraphicsResetStatusARBFn;
5462 fn.glGetGraphicsResetStatusARBFn = Debug_glGetGraphicsResetStatusARB;
5464 if (!debug_fn.glGetInteger64i_vFn) {
5465 debug_fn.glGetInteger64i_vFn = fn.glGetInteger64i_vFn;
5466 fn.glGetInteger64i_vFn = Debug_glGetInteger64i_v;
5468 if (!debug_fn.glGetInteger64vFn) {
5469 debug_fn.glGetInteger64vFn = fn.glGetInteger64vFn;
5470 fn.glGetInteger64vFn = Debug_glGetInteger64v;
5472 if (!debug_fn.glGetIntegeri_vFn) {
5473 debug_fn.glGetIntegeri_vFn = fn.glGetIntegeri_vFn;
5474 fn.glGetIntegeri_vFn = Debug_glGetIntegeri_v;
5476 if (!debug_fn.glGetIntegervFn) {
5477 debug_fn.glGetIntegervFn = fn.glGetIntegervFn;
5478 fn.glGetIntegervFn = Debug_glGetIntegerv;
5480 if (!debug_fn.glGetInternalformativFn) {
5481 debug_fn.glGetInternalformativFn = fn.glGetInternalformativFn;
5482 fn.glGetInternalformativFn = Debug_glGetInternalformativ;
5484 if (!debug_fn.glGetProgramBinaryFn) {
5485 debug_fn.glGetProgramBinaryFn = fn.glGetProgramBinaryFn;
5486 fn.glGetProgramBinaryFn = Debug_glGetProgramBinary;
5488 if (!debug_fn.glGetProgramInfoLogFn) {
5489 debug_fn.glGetProgramInfoLogFn = fn.glGetProgramInfoLogFn;
5490 fn.glGetProgramInfoLogFn = Debug_glGetProgramInfoLog;
5492 if (!debug_fn.glGetProgramivFn) {
5493 debug_fn.glGetProgramivFn = fn.glGetProgramivFn;
5494 fn.glGetProgramivFn = Debug_glGetProgramiv;
5496 if (!debug_fn.glGetProgramResourceLocationFn) {
5497 debug_fn.glGetProgramResourceLocationFn = fn.glGetProgramResourceLocationFn;
5498 fn.glGetProgramResourceLocationFn = Debug_glGetProgramResourceLocation;
5500 if (!debug_fn.glGetQueryivFn) {
5501 debug_fn.glGetQueryivFn = fn.glGetQueryivFn;
5502 fn.glGetQueryivFn = Debug_glGetQueryiv;
5504 if (!debug_fn.glGetQueryObjecti64vFn) {
5505 debug_fn.glGetQueryObjecti64vFn = fn.glGetQueryObjecti64vFn;
5506 fn.glGetQueryObjecti64vFn = Debug_glGetQueryObjecti64v;
5508 if (!debug_fn.glGetQueryObjectivFn) {
5509 debug_fn.glGetQueryObjectivFn = fn.glGetQueryObjectivFn;
5510 fn.glGetQueryObjectivFn = Debug_glGetQueryObjectiv;
5512 if (!debug_fn.glGetQueryObjectui64vFn) {
5513 debug_fn.glGetQueryObjectui64vFn = fn.glGetQueryObjectui64vFn;
5514 fn.glGetQueryObjectui64vFn = Debug_glGetQueryObjectui64v;
5516 if (!debug_fn.glGetQueryObjectuivFn) {
5517 debug_fn.glGetQueryObjectuivFn = fn.glGetQueryObjectuivFn;
5518 fn.glGetQueryObjectuivFn = Debug_glGetQueryObjectuiv;
5520 if (!debug_fn.glGetRenderbufferParameterivEXTFn) {
5521 debug_fn.glGetRenderbufferParameterivEXTFn =
5522 fn.glGetRenderbufferParameterivEXTFn;
5523 fn.glGetRenderbufferParameterivEXTFn =
5524 Debug_glGetRenderbufferParameterivEXT;
5526 if (!debug_fn.glGetSamplerParameterfvFn) {
5527 debug_fn.glGetSamplerParameterfvFn = fn.glGetSamplerParameterfvFn;
5528 fn.glGetSamplerParameterfvFn = Debug_glGetSamplerParameterfv;
5530 if (!debug_fn.glGetSamplerParameterivFn) {
5531 debug_fn.glGetSamplerParameterivFn = fn.glGetSamplerParameterivFn;
5532 fn.glGetSamplerParameterivFn = Debug_glGetSamplerParameteriv;
5534 if (!debug_fn.glGetShaderInfoLogFn) {
5535 debug_fn.glGetShaderInfoLogFn = fn.glGetShaderInfoLogFn;
5536 fn.glGetShaderInfoLogFn = Debug_glGetShaderInfoLog;
5538 if (!debug_fn.glGetShaderivFn) {
5539 debug_fn.glGetShaderivFn = fn.glGetShaderivFn;
5540 fn.glGetShaderivFn = Debug_glGetShaderiv;
5542 if (!debug_fn.glGetShaderPrecisionFormatFn) {
5543 debug_fn.glGetShaderPrecisionFormatFn = fn.glGetShaderPrecisionFormatFn;
5544 fn.glGetShaderPrecisionFormatFn = Debug_glGetShaderPrecisionFormat;
5546 if (!debug_fn.glGetShaderSourceFn) {
5547 debug_fn.glGetShaderSourceFn = fn.glGetShaderSourceFn;
5548 fn.glGetShaderSourceFn = Debug_glGetShaderSource;
5550 if (!debug_fn.glGetStringFn) {
5551 debug_fn.glGetStringFn = fn.glGetStringFn;
5552 fn.glGetStringFn = Debug_glGetString;
5554 if (!debug_fn.glGetStringiFn) {
5555 debug_fn.glGetStringiFn = fn.glGetStringiFn;
5556 fn.glGetStringiFn = Debug_glGetStringi;
5558 if (!debug_fn.glGetSyncivFn) {
5559 debug_fn.glGetSyncivFn = fn.glGetSyncivFn;
5560 fn.glGetSyncivFn = Debug_glGetSynciv;
5562 if (!debug_fn.glGetTexLevelParameterfvFn) {
5563 debug_fn.glGetTexLevelParameterfvFn = fn.glGetTexLevelParameterfvFn;
5564 fn.glGetTexLevelParameterfvFn = Debug_glGetTexLevelParameterfv;
5566 if (!debug_fn.glGetTexLevelParameterivFn) {
5567 debug_fn.glGetTexLevelParameterivFn = fn.glGetTexLevelParameterivFn;
5568 fn.glGetTexLevelParameterivFn = Debug_glGetTexLevelParameteriv;
5570 if (!debug_fn.glGetTexParameterfvFn) {
5571 debug_fn.glGetTexParameterfvFn = fn.glGetTexParameterfvFn;
5572 fn.glGetTexParameterfvFn = Debug_glGetTexParameterfv;
5574 if (!debug_fn.glGetTexParameterivFn) {
5575 debug_fn.glGetTexParameterivFn = fn.glGetTexParameterivFn;
5576 fn.glGetTexParameterivFn = Debug_glGetTexParameteriv;
5578 if (!debug_fn.glGetTransformFeedbackVaryingFn) {
5579 debug_fn.glGetTransformFeedbackVaryingFn =
5580 fn.glGetTransformFeedbackVaryingFn;
5581 fn.glGetTransformFeedbackVaryingFn = Debug_glGetTransformFeedbackVarying;
5583 if (!debug_fn.glGetTranslatedShaderSourceANGLEFn) {
5584 debug_fn.glGetTranslatedShaderSourceANGLEFn =
5585 fn.glGetTranslatedShaderSourceANGLEFn;
5586 fn.glGetTranslatedShaderSourceANGLEFn =
5587 Debug_glGetTranslatedShaderSourceANGLE;
5589 if (!debug_fn.glGetUniformBlockIndexFn) {
5590 debug_fn.glGetUniformBlockIndexFn = fn.glGetUniformBlockIndexFn;
5591 fn.glGetUniformBlockIndexFn = Debug_glGetUniformBlockIndex;
5593 if (!debug_fn.glGetUniformfvFn) {
5594 debug_fn.glGetUniformfvFn = fn.glGetUniformfvFn;
5595 fn.glGetUniformfvFn = Debug_glGetUniformfv;
5597 if (!debug_fn.glGetUniformIndicesFn) {
5598 debug_fn.glGetUniformIndicesFn = fn.glGetUniformIndicesFn;
5599 fn.glGetUniformIndicesFn = Debug_glGetUniformIndices;
5601 if (!debug_fn.glGetUniformivFn) {
5602 debug_fn.glGetUniformivFn = fn.glGetUniformivFn;
5603 fn.glGetUniformivFn = Debug_glGetUniformiv;
5605 if (!debug_fn.glGetUniformLocationFn) {
5606 debug_fn.glGetUniformLocationFn = fn.glGetUniformLocationFn;
5607 fn.glGetUniformLocationFn = Debug_glGetUniformLocation;
5609 if (!debug_fn.glGetUniformuivFn) {
5610 debug_fn.glGetUniformuivFn = fn.glGetUniformuivFn;
5611 fn.glGetUniformuivFn = Debug_glGetUniformuiv;
5613 if (!debug_fn.glGetVertexAttribfvFn) {
5614 debug_fn.glGetVertexAttribfvFn = fn.glGetVertexAttribfvFn;
5615 fn.glGetVertexAttribfvFn = Debug_glGetVertexAttribfv;
5617 if (!debug_fn.glGetVertexAttribivFn) {
5618 debug_fn.glGetVertexAttribivFn = fn.glGetVertexAttribivFn;
5619 fn.glGetVertexAttribivFn = Debug_glGetVertexAttribiv;
5621 if (!debug_fn.glGetVertexAttribPointervFn) {
5622 debug_fn.glGetVertexAttribPointervFn = fn.glGetVertexAttribPointervFn;
5623 fn.glGetVertexAttribPointervFn = Debug_glGetVertexAttribPointerv;
5625 if (!debug_fn.glHintFn) {
5626 debug_fn.glHintFn = fn.glHintFn;
5627 fn.glHintFn = Debug_glHint;
5629 if (!debug_fn.glInsertEventMarkerEXTFn) {
5630 debug_fn.glInsertEventMarkerEXTFn = fn.glInsertEventMarkerEXTFn;
5631 fn.glInsertEventMarkerEXTFn = Debug_glInsertEventMarkerEXT;
5633 if (!debug_fn.glInvalidateFramebufferFn) {
5634 debug_fn.glInvalidateFramebufferFn = fn.glInvalidateFramebufferFn;
5635 fn.glInvalidateFramebufferFn = Debug_glInvalidateFramebuffer;
5637 if (!debug_fn.glInvalidateSubFramebufferFn) {
5638 debug_fn.glInvalidateSubFramebufferFn = fn.glInvalidateSubFramebufferFn;
5639 fn.glInvalidateSubFramebufferFn = Debug_glInvalidateSubFramebuffer;
5641 if (!debug_fn.glIsBufferFn) {
5642 debug_fn.glIsBufferFn = fn.glIsBufferFn;
5643 fn.glIsBufferFn = Debug_glIsBuffer;
5645 if (!debug_fn.glIsEnabledFn) {
5646 debug_fn.glIsEnabledFn = fn.glIsEnabledFn;
5647 fn.glIsEnabledFn = Debug_glIsEnabled;
5649 if (!debug_fn.glIsFenceAPPLEFn) {
5650 debug_fn.glIsFenceAPPLEFn = fn.glIsFenceAPPLEFn;
5651 fn.glIsFenceAPPLEFn = Debug_glIsFenceAPPLE;
5653 if (!debug_fn.glIsFenceNVFn) {
5654 debug_fn.glIsFenceNVFn = fn.glIsFenceNVFn;
5655 fn.glIsFenceNVFn = Debug_glIsFenceNV;
5657 if (!debug_fn.glIsFramebufferEXTFn) {
5658 debug_fn.glIsFramebufferEXTFn = fn.glIsFramebufferEXTFn;
5659 fn.glIsFramebufferEXTFn = Debug_glIsFramebufferEXT;
5661 if (!debug_fn.glIsPathNVFn) {
5662 debug_fn.glIsPathNVFn = fn.glIsPathNVFn;
5663 fn.glIsPathNVFn = Debug_glIsPathNV;
5665 if (!debug_fn.glIsProgramFn) {
5666 debug_fn.glIsProgramFn = fn.glIsProgramFn;
5667 fn.glIsProgramFn = Debug_glIsProgram;
5669 if (!debug_fn.glIsQueryFn) {
5670 debug_fn.glIsQueryFn = fn.glIsQueryFn;
5671 fn.glIsQueryFn = Debug_glIsQuery;
5673 if (!debug_fn.glIsRenderbufferEXTFn) {
5674 debug_fn.glIsRenderbufferEXTFn = fn.glIsRenderbufferEXTFn;
5675 fn.glIsRenderbufferEXTFn = Debug_glIsRenderbufferEXT;
5677 if (!debug_fn.glIsSamplerFn) {
5678 debug_fn.glIsSamplerFn = fn.glIsSamplerFn;
5679 fn.glIsSamplerFn = Debug_glIsSampler;
5681 if (!debug_fn.glIsShaderFn) {
5682 debug_fn.glIsShaderFn = fn.glIsShaderFn;
5683 fn.glIsShaderFn = Debug_glIsShader;
5685 if (!debug_fn.glIsSyncFn) {
5686 debug_fn.glIsSyncFn = fn.glIsSyncFn;
5687 fn.glIsSyncFn = Debug_glIsSync;
5689 if (!debug_fn.glIsTextureFn) {
5690 debug_fn.glIsTextureFn = fn.glIsTextureFn;
5691 fn.glIsTextureFn = Debug_glIsTexture;
5693 if (!debug_fn.glIsTransformFeedbackFn) {
5694 debug_fn.glIsTransformFeedbackFn = fn.glIsTransformFeedbackFn;
5695 fn.glIsTransformFeedbackFn = Debug_glIsTransformFeedback;
5697 if (!debug_fn.glIsVertexArrayOESFn) {
5698 debug_fn.glIsVertexArrayOESFn = fn.glIsVertexArrayOESFn;
5699 fn.glIsVertexArrayOESFn = Debug_glIsVertexArrayOES;
5701 if (!debug_fn.glLineWidthFn) {
5702 debug_fn.glLineWidthFn = fn.glLineWidthFn;
5703 fn.glLineWidthFn = Debug_glLineWidth;
5705 if (!debug_fn.glLinkProgramFn) {
5706 debug_fn.glLinkProgramFn = fn.glLinkProgramFn;
5707 fn.glLinkProgramFn = Debug_glLinkProgram;
5709 if (!debug_fn.glMapBufferFn) {
5710 debug_fn.glMapBufferFn = fn.glMapBufferFn;
5711 fn.glMapBufferFn = Debug_glMapBuffer;
5713 if (!debug_fn.glMapBufferRangeFn) {
5714 debug_fn.glMapBufferRangeFn = fn.glMapBufferRangeFn;
5715 fn.glMapBufferRangeFn = Debug_glMapBufferRange;
5717 if (!debug_fn.glMatrixLoadfEXTFn) {
5718 debug_fn.glMatrixLoadfEXTFn = fn.glMatrixLoadfEXTFn;
5719 fn.glMatrixLoadfEXTFn = Debug_glMatrixLoadfEXT;
5721 if (!debug_fn.glMatrixLoadIdentityEXTFn) {
5722 debug_fn.glMatrixLoadIdentityEXTFn = fn.glMatrixLoadIdentityEXTFn;
5723 fn.glMatrixLoadIdentityEXTFn = Debug_glMatrixLoadIdentityEXT;
5725 if (!debug_fn.glPathCommandsNVFn) {
5726 debug_fn.glPathCommandsNVFn = fn.glPathCommandsNVFn;
5727 fn.glPathCommandsNVFn = Debug_glPathCommandsNV;
5729 if (!debug_fn.glPathParameterfNVFn) {
5730 debug_fn.glPathParameterfNVFn = fn.glPathParameterfNVFn;
5731 fn.glPathParameterfNVFn = Debug_glPathParameterfNV;
5733 if (!debug_fn.glPathParameteriNVFn) {
5734 debug_fn.glPathParameteriNVFn = fn.glPathParameteriNVFn;
5735 fn.glPathParameteriNVFn = Debug_glPathParameteriNV;
5737 if (!debug_fn.glPathStencilFuncNVFn) {
5738 debug_fn.glPathStencilFuncNVFn = fn.glPathStencilFuncNVFn;
5739 fn.glPathStencilFuncNVFn = Debug_glPathStencilFuncNV;
5741 if (!debug_fn.glPauseTransformFeedbackFn) {
5742 debug_fn.glPauseTransformFeedbackFn = fn.glPauseTransformFeedbackFn;
5743 fn.glPauseTransformFeedbackFn = Debug_glPauseTransformFeedback;
5745 if (!debug_fn.glPixelStoreiFn) {
5746 debug_fn.glPixelStoreiFn = fn.glPixelStoreiFn;
5747 fn.glPixelStoreiFn = Debug_glPixelStorei;
5749 if (!debug_fn.glPointParameteriFn) {
5750 debug_fn.glPointParameteriFn = fn.glPointParameteriFn;
5751 fn.glPointParameteriFn = Debug_glPointParameteri;
5753 if (!debug_fn.glPolygonOffsetFn) {
5754 debug_fn.glPolygonOffsetFn = fn.glPolygonOffsetFn;
5755 fn.glPolygonOffsetFn = Debug_glPolygonOffset;
5757 if (!debug_fn.glPopGroupMarkerEXTFn) {
5758 debug_fn.glPopGroupMarkerEXTFn = fn.glPopGroupMarkerEXTFn;
5759 fn.glPopGroupMarkerEXTFn = Debug_glPopGroupMarkerEXT;
5761 if (!debug_fn.glProgramBinaryFn) {
5762 debug_fn.glProgramBinaryFn = fn.glProgramBinaryFn;
5763 fn.glProgramBinaryFn = Debug_glProgramBinary;
5765 if (!debug_fn.glProgramParameteriFn) {
5766 debug_fn.glProgramParameteriFn = fn.glProgramParameteriFn;
5767 fn.glProgramParameteriFn = Debug_glProgramParameteri;
5769 if (!debug_fn.glPushGroupMarkerEXTFn) {
5770 debug_fn.glPushGroupMarkerEXTFn = fn.glPushGroupMarkerEXTFn;
5771 fn.glPushGroupMarkerEXTFn = Debug_glPushGroupMarkerEXT;
5773 if (!debug_fn.glQueryCounterFn) {
5774 debug_fn.glQueryCounterFn = fn.glQueryCounterFn;
5775 fn.glQueryCounterFn = Debug_glQueryCounter;
5777 if (!debug_fn.glReadBufferFn) {
5778 debug_fn.glReadBufferFn = fn.glReadBufferFn;
5779 fn.glReadBufferFn = Debug_glReadBuffer;
5781 if (!debug_fn.glReadPixelsFn) {
5782 debug_fn.glReadPixelsFn = fn.glReadPixelsFn;
5783 fn.glReadPixelsFn = Debug_glReadPixels;
5785 if (!debug_fn.glReleaseShaderCompilerFn) {
5786 debug_fn.glReleaseShaderCompilerFn = fn.glReleaseShaderCompilerFn;
5787 fn.glReleaseShaderCompilerFn = Debug_glReleaseShaderCompiler;
5789 if (!debug_fn.glRenderbufferStorageEXTFn) {
5790 debug_fn.glRenderbufferStorageEXTFn = fn.glRenderbufferStorageEXTFn;
5791 fn.glRenderbufferStorageEXTFn = Debug_glRenderbufferStorageEXT;
5793 if (!debug_fn.glRenderbufferStorageMultisampleFn) {
5794 debug_fn.glRenderbufferStorageMultisampleFn =
5795 fn.glRenderbufferStorageMultisampleFn;
5796 fn.glRenderbufferStorageMultisampleFn =
5797 Debug_glRenderbufferStorageMultisample;
5799 if (!debug_fn.glRenderbufferStorageMultisampleANGLEFn) {
5800 debug_fn.glRenderbufferStorageMultisampleANGLEFn =
5801 fn.glRenderbufferStorageMultisampleANGLEFn;
5802 fn.glRenderbufferStorageMultisampleANGLEFn =
5803 Debug_glRenderbufferStorageMultisampleANGLE;
5805 if (!debug_fn.glRenderbufferStorageMultisampleEXTFn) {
5806 debug_fn.glRenderbufferStorageMultisampleEXTFn =
5807 fn.glRenderbufferStorageMultisampleEXTFn;
5808 fn.glRenderbufferStorageMultisampleEXTFn =
5809 Debug_glRenderbufferStorageMultisampleEXT;
5811 if (!debug_fn.glRenderbufferStorageMultisampleIMGFn) {
5812 debug_fn.glRenderbufferStorageMultisampleIMGFn =
5813 fn.glRenderbufferStorageMultisampleIMGFn;
5814 fn.glRenderbufferStorageMultisampleIMGFn =
5815 Debug_glRenderbufferStorageMultisampleIMG;
5817 if (!debug_fn.glResumeTransformFeedbackFn) {
5818 debug_fn.glResumeTransformFeedbackFn = fn.glResumeTransformFeedbackFn;
5819 fn.glResumeTransformFeedbackFn = Debug_glResumeTransformFeedback;
5821 if (!debug_fn.glSampleCoverageFn) {
5822 debug_fn.glSampleCoverageFn = fn.glSampleCoverageFn;
5823 fn.glSampleCoverageFn = Debug_glSampleCoverage;
5825 if (!debug_fn.glSamplerParameterfFn) {
5826 debug_fn.glSamplerParameterfFn = fn.glSamplerParameterfFn;
5827 fn.glSamplerParameterfFn = Debug_glSamplerParameterf;
5829 if (!debug_fn.glSamplerParameterfvFn) {
5830 debug_fn.glSamplerParameterfvFn = fn.glSamplerParameterfvFn;
5831 fn.glSamplerParameterfvFn = Debug_glSamplerParameterfv;
5833 if (!debug_fn.glSamplerParameteriFn) {
5834 debug_fn.glSamplerParameteriFn = fn.glSamplerParameteriFn;
5835 fn.glSamplerParameteriFn = Debug_glSamplerParameteri;
5837 if (!debug_fn.glSamplerParameterivFn) {
5838 debug_fn.glSamplerParameterivFn = fn.glSamplerParameterivFn;
5839 fn.glSamplerParameterivFn = Debug_glSamplerParameteriv;
5841 if (!debug_fn.glScissorFn) {
5842 debug_fn.glScissorFn = fn.glScissorFn;
5843 fn.glScissorFn = Debug_glScissor;
5845 if (!debug_fn.glSetFenceAPPLEFn) {
5846 debug_fn.glSetFenceAPPLEFn = fn.glSetFenceAPPLEFn;
5847 fn.glSetFenceAPPLEFn = Debug_glSetFenceAPPLE;
5849 if (!debug_fn.glSetFenceNVFn) {
5850 debug_fn.glSetFenceNVFn = fn.glSetFenceNVFn;
5851 fn.glSetFenceNVFn = Debug_glSetFenceNV;
5853 if (!debug_fn.glShaderBinaryFn) {
5854 debug_fn.glShaderBinaryFn = fn.glShaderBinaryFn;
5855 fn.glShaderBinaryFn = Debug_glShaderBinary;
5857 if (!debug_fn.glShaderSourceFn) {
5858 debug_fn.glShaderSourceFn = fn.glShaderSourceFn;
5859 fn.glShaderSourceFn = Debug_glShaderSource;
5861 if (!debug_fn.glStencilFillPathNVFn) {
5862 debug_fn.glStencilFillPathNVFn = fn.glStencilFillPathNVFn;
5863 fn.glStencilFillPathNVFn = Debug_glStencilFillPathNV;
5865 if (!debug_fn.glStencilFuncFn) {
5866 debug_fn.glStencilFuncFn = fn.glStencilFuncFn;
5867 fn.glStencilFuncFn = Debug_glStencilFunc;
5869 if (!debug_fn.glStencilFuncSeparateFn) {
5870 debug_fn.glStencilFuncSeparateFn = fn.glStencilFuncSeparateFn;
5871 fn.glStencilFuncSeparateFn = Debug_glStencilFuncSeparate;
5873 if (!debug_fn.glStencilMaskFn) {
5874 debug_fn.glStencilMaskFn = fn.glStencilMaskFn;
5875 fn.glStencilMaskFn = Debug_glStencilMask;
5877 if (!debug_fn.glStencilMaskSeparateFn) {
5878 debug_fn.glStencilMaskSeparateFn = fn.glStencilMaskSeparateFn;
5879 fn.glStencilMaskSeparateFn = Debug_glStencilMaskSeparate;
5881 if (!debug_fn.glStencilOpFn) {
5882 debug_fn.glStencilOpFn = fn.glStencilOpFn;
5883 fn.glStencilOpFn = Debug_glStencilOp;
5885 if (!debug_fn.glStencilOpSeparateFn) {
5886 debug_fn.glStencilOpSeparateFn = fn.glStencilOpSeparateFn;
5887 fn.glStencilOpSeparateFn = Debug_glStencilOpSeparate;
5889 if (!debug_fn.glStencilStrokePathNVFn) {
5890 debug_fn.glStencilStrokePathNVFn = fn.glStencilStrokePathNVFn;
5891 fn.glStencilStrokePathNVFn = Debug_glStencilStrokePathNV;
5893 if (!debug_fn.glStencilThenCoverFillPathNVFn) {
5894 debug_fn.glStencilThenCoverFillPathNVFn = fn.glStencilThenCoverFillPathNVFn;
5895 fn.glStencilThenCoverFillPathNVFn = Debug_glStencilThenCoverFillPathNV;
5897 if (!debug_fn.glStencilThenCoverStrokePathNVFn) {
5898 debug_fn.glStencilThenCoverStrokePathNVFn =
5899 fn.glStencilThenCoverStrokePathNVFn;
5900 fn.glStencilThenCoverStrokePathNVFn = Debug_glStencilThenCoverStrokePathNV;
5902 if (!debug_fn.glTestFenceAPPLEFn) {
5903 debug_fn.glTestFenceAPPLEFn = fn.glTestFenceAPPLEFn;
5904 fn.glTestFenceAPPLEFn = Debug_glTestFenceAPPLE;
5906 if (!debug_fn.glTestFenceNVFn) {
5907 debug_fn.glTestFenceNVFn = fn.glTestFenceNVFn;
5908 fn.glTestFenceNVFn = Debug_glTestFenceNV;
5910 if (!debug_fn.glTexImage2DFn) {
5911 debug_fn.glTexImage2DFn = fn.glTexImage2DFn;
5912 fn.glTexImage2DFn = Debug_glTexImage2D;
5914 if (!debug_fn.glTexImage3DFn) {
5915 debug_fn.glTexImage3DFn = fn.glTexImage3DFn;
5916 fn.glTexImage3DFn = Debug_glTexImage3D;
5918 if (!debug_fn.glTexParameterfFn) {
5919 debug_fn.glTexParameterfFn = fn.glTexParameterfFn;
5920 fn.glTexParameterfFn = Debug_glTexParameterf;
5922 if (!debug_fn.glTexParameterfvFn) {
5923 debug_fn.glTexParameterfvFn = fn.glTexParameterfvFn;
5924 fn.glTexParameterfvFn = Debug_glTexParameterfv;
5926 if (!debug_fn.glTexParameteriFn) {
5927 debug_fn.glTexParameteriFn = fn.glTexParameteriFn;
5928 fn.glTexParameteriFn = Debug_glTexParameteri;
5930 if (!debug_fn.glTexParameterivFn) {
5931 debug_fn.glTexParameterivFn = fn.glTexParameterivFn;
5932 fn.glTexParameterivFn = Debug_glTexParameteriv;
5934 if (!debug_fn.glTexStorage2DEXTFn) {
5935 debug_fn.glTexStorage2DEXTFn = fn.glTexStorage2DEXTFn;
5936 fn.glTexStorage2DEXTFn = Debug_glTexStorage2DEXT;
5938 if (!debug_fn.glTexStorage3DFn) {
5939 debug_fn.glTexStorage3DFn = fn.glTexStorage3DFn;
5940 fn.glTexStorage3DFn = Debug_glTexStorage3D;
5942 if (!debug_fn.glTexSubImage2DFn) {
5943 debug_fn.glTexSubImage2DFn = fn.glTexSubImage2DFn;
5944 fn.glTexSubImage2DFn = Debug_glTexSubImage2D;
5946 if (!debug_fn.glTexSubImage3DFn) {
5947 debug_fn.glTexSubImage3DFn = fn.glTexSubImage3DFn;
5948 fn.glTexSubImage3DFn = Debug_glTexSubImage3D;
5950 if (!debug_fn.glTransformFeedbackVaryingsFn) {
5951 debug_fn.glTransformFeedbackVaryingsFn = fn.glTransformFeedbackVaryingsFn;
5952 fn.glTransformFeedbackVaryingsFn = Debug_glTransformFeedbackVaryings;
5954 if (!debug_fn.glUniform1fFn) {
5955 debug_fn.glUniform1fFn = fn.glUniform1fFn;
5956 fn.glUniform1fFn = Debug_glUniform1f;
5958 if (!debug_fn.glUniform1fvFn) {
5959 debug_fn.glUniform1fvFn = fn.glUniform1fvFn;
5960 fn.glUniform1fvFn = Debug_glUniform1fv;
5962 if (!debug_fn.glUniform1iFn) {
5963 debug_fn.glUniform1iFn = fn.glUniform1iFn;
5964 fn.glUniform1iFn = Debug_glUniform1i;
5966 if (!debug_fn.glUniform1ivFn) {
5967 debug_fn.glUniform1ivFn = fn.glUniform1ivFn;
5968 fn.glUniform1ivFn = Debug_glUniform1iv;
5970 if (!debug_fn.glUniform1uiFn) {
5971 debug_fn.glUniform1uiFn = fn.glUniform1uiFn;
5972 fn.glUniform1uiFn = Debug_glUniform1ui;
5974 if (!debug_fn.glUniform1uivFn) {
5975 debug_fn.glUniform1uivFn = fn.glUniform1uivFn;
5976 fn.glUniform1uivFn = Debug_glUniform1uiv;
5978 if (!debug_fn.glUniform2fFn) {
5979 debug_fn.glUniform2fFn = fn.glUniform2fFn;
5980 fn.glUniform2fFn = Debug_glUniform2f;
5982 if (!debug_fn.glUniform2fvFn) {
5983 debug_fn.glUniform2fvFn = fn.glUniform2fvFn;
5984 fn.glUniform2fvFn = Debug_glUniform2fv;
5986 if (!debug_fn.glUniform2iFn) {
5987 debug_fn.glUniform2iFn = fn.glUniform2iFn;
5988 fn.glUniform2iFn = Debug_glUniform2i;
5990 if (!debug_fn.glUniform2ivFn) {
5991 debug_fn.glUniform2ivFn = fn.glUniform2ivFn;
5992 fn.glUniform2ivFn = Debug_glUniform2iv;
5994 if (!debug_fn.glUniform2uiFn) {
5995 debug_fn.glUniform2uiFn = fn.glUniform2uiFn;
5996 fn.glUniform2uiFn = Debug_glUniform2ui;
5998 if (!debug_fn.glUniform2uivFn) {
5999 debug_fn.glUniform2uivFn = fn.glUniform2uivFn;
6000 fn.glUniform2uivFn = Debug_glUniform2uiv;
6002 if (!debug_fn.glUniform3fFn) {
6003 debug_fn.glUniform3fFn = fn.glUniform3fFn;
6004 fn.glUniform3fFn = Debug_glUniform3f;
6006 if (!debug_fn.glUniform3fvFn) {
6007 debug_fn.glUniform3fvFn = fn.glUniform3fvFn;
6008 fn.glUniform3fvFn = Debug_glUniform3fv;
6010 if (!debug_fn.glUniform3iFn) {
6011 debug_fn.glUniform3iFn = fn.glUniform3iFn;
6012 fn.glUniform3iFn = Debug_glUniform3i;
6014 if (!debug_fn.glUniform3ivFn) {
6015 debug_fn.glUniform3ivFn = fn.glUniform3ivFn;
6016 fn.glUniform3ivFn = Debug_glUniform3iv;
6018 if (!debug_fn.glUniform3uiFn) {
6019 debug_fn.glUniform3uiFn = fn.glUniform3uiFn;
6020 fn.glUniform3uiFn = Debug_glUniform3ui;
6022 if (!debug_fn.glUniform3uivFn) {
6023 debug_fn.glUniform3uivFn = fn.glUniform3uivFn;
6024 fn.glUniform3uivFn = Debug_glUniform3uiv;
6026 if (!debug_fn.glUniform4fFn) {
6027 debug_fn.glUniform4fFn = fn.glUniform4fFn;
6028 fn.glUniform4fFn = Debug_glUniform4f;
6030 if (!debug_fn.glUniform4fvFn) {
6031 debug_fn.glUniform4fvFn = fn.glUniform4fvFn;
6032 fn.glUniform4fvFn = Debug_glUniform4fv;
6034 if (!debug_fn.glUniform4iFn) {
6035 debug_fn.glUniform4iFn = fn.glUniform4iFn;
6036 fn.glUniform4iFn = Debug_glUniform4i;
6038 if (!debug_fn.glUniform4ivFn) {
6039 debug_fn.glUniform4ivFn = fn.glUniform4ivFn;
6040 fn.glUniform4ivFn = Debug_glUniform4iv;
6042 if (!debug_fn.glUniform4uiFn) {
6043 debug_fn.glUniform4uiFn = fn.glUniform4uiFn;
6044 fn.glUniform4uiFn = Debug_glUniform4ui;
6046 if (!debug_fn.glUniform4uivFn) {
6047 debug_fn.glUniform4uivFn = fn.glUniform4uivFn;
6048 fn.glUniform4uivFn = Debug_glUniform4uiv;
6050 if (!debug_fn.glUniformBlockBindingFn) {
6051 debug_fn.glUniformBlockBindingFn = fn.glUniformBlockBindingFn;
6052 fn.glUniformBlockBindingFn = Debug_glUniformBlockBinding;
6054 if (!debug_fn.glUniformMatrix2fvFn) {
6055 debug_fn.glUniformMatrix2fvFn = fn.glUniformMatrix2fvFn;
6056 fn.glUniformMatrix2fvFn = Debug_glUniformMatrix2fv;
6058 if (!debug_fn.glUniformMatrix2x3fvFn) {
6059 debug_fn.glUniformMatrix2x3fvFn = fn.glUniformMatrix2x3fvFn;
6060 fn.glUniformMatrix2x3fvFn = Debug_glUniformMatrix2x3fv;
6062 if (!debug_fn.glUniformMatrix2x4fvFn) {
6063 debug_fn.glUniformMatrix2x4fvFn = fn.glUniformMatrix2x4fvFn;
6064 fn.glUniformMatrix2x4fvFn = Debug_glUniformMatrix2x4fv;
6066 if (!debug_fn.glUniformMatrix3fvFn) {
6067 debug_fn.glUniformMatrix3fvFn = fn.glUniformMatrix3fvFn;
6068 fn.glUniformMatrix3fvFn = Debug_glUniformMatrix3fv;
6070 if (!debug_fn.glUniformMatrix3x2fvFn) {
6071 debug_fn.glUniformMatrix3x2fvFn = fn.glUniformMatrix3x2fvFn;
6072 fn.glUniformMatrix3x2fvFn = Debug_glUniformMatrix3x2fv;
6074 if (!debug_fn.glUniformMatrix3x4fvFn) {
6075 debug_fn.glUniformMatrix3x4fvFn = fn.glUniformMatrix3x4fvFn;
6076 fn.glUniformMatrix3x4fvFn = Debug_glUniformMatrix3x4fv;
6078 if (!debug_fn.glUniformMatrix4fvFn) {
6079 debug_fn.glUniformMatrix4fvFn = fn.glUniformMatrix4fvFn;
6080 fn.glUniformMatrix4fvFn = Debug_glUniformMatrix4fv;
6082 if (!debug_fn.glUniformMatrix4x2fvFn) {
6083 debug_fn.glUniformMatrix4x2fvFn = fn.glUniformMatrix4x2fvFn;
6084 fn.glUniformMatrix4x2fvFn = Debug_glUniformMatrix4x2fv;
6086 if (!debug_fn.glUniformMatrix4x3fvFn) {
6087 debug_fn.glUniformMatrix4x3fvFn = fn.glUniformMatrix4x3fvFn;
6088 fn.glUniformMatrix4x3fvFn = Debug_glUniformMatrix4x3fv;
6090 if (!debug_fn.glUnmapBufferFn) {
6091 debug_fn.glUnmapBufferFn = fn.glUnmapBufferFn;
6092 fn.glUnmapBufferFn = Debug_glUnmapBuffer;
6094 if (!debug_fn.glUseProgramFn) {
6095 debug_fn.glUseProgramFn = fn.glUseProgramFn;
6096 fn.glUseProgramFn = Debug_glUseProgram;
6098 if (!debug_fn.glValidateProgramFn) {
6099 debug_fn.glValidateProgramFn = fn.glValidateProgramFn;
6100 fn.glValidateProgramFn = Debug_glValidateProgram;
6102 if (!debug_fn.glVertexAttrib1fFn) {
6103 debug_fn.glVertexAttrib1fFn = fn.glVertexAttrib1fFn;
6104 fn.glVertexAttrib1fFn = Debug_glVertexAttrib1f;
6106 if (!debug_fn.glVertexAttrib1fvFn) {
6107 debug_fn.glVertexAttrib1fvFn = fn.glVertexAttrib1fvFn;
6108 fn.glVertexAttrib1fvFn = Debug_glVertexAttrib1fv;
6110 if (!debug_fn.glVertexAttrib2fFn) {
6111 debug_fn.glVertexAttrib2fFn = fn.glVertexAttrib2fFn;
6112 fn.glVertexAttrib2fFn = Debug_glVertexAttrib2f;
6114 if (!debug_fn.glVertexAttrib2fvFn) {
6115 debug_fn.glVertexAttrib2fvFn = fn.glVertexAttrib2fvFn;
6116 fn.glVertexAttrib2fvFn = Debug_glVertexAttrib2fv;
6118 if (!debug_fn.glVertexAttrib3fFn) {
6119 debug_fn.glVertexAttrib3fFn = fn.glVertexAttrib3fFn;
6120 fn.glVertexAttrib3fFn = Debug_glVertexAttrib3f;
6122 if (!debug_fn.glVertexAttrib3fvFn) {
6123 debug_fn.glVertexAttrib3fvFn = fn.glVertexAttrib3fvFn;
6124 fn.glVertexAttrib3fvFn = Debug_glVertexAttrib3fv;
6126 if (!debug_fn.glVertexAttrib4fFn) {
6127 debug_fn.glVertexAttrib4fFn = fn.glVertexAttrib4fFn;
6128 fn.glVertexAttrib4fFn = Debug_glVertexAttrib4f;
6130 if (!debug_fn.glVertexAttrib4fvFn) {
6131 debug_fn.glVertexAttrib4fvFn = fn.glVertexAttrib4fvFn;
6132 fn.glVertexAttrib4fvFn = Debug_glVertexAttrib4fv;
6134 if (!debug_fn.glVertexAttribDivisorANGLEFn) {
6135 debug_fn.glVertexAttribDivisorANGLEFn = fn.glVertexAttribDivisorANGLEFn;
6136 fn.glVertexAttribDivisorANGLEFn = Debug_glVertexAttribDivisorANGLE;
6138 if (!debug_fn.glVertexAttribI4iFn) {
6139 debug_fn.glVertexAttribI4iFn = fn.glVertexAttribI4iFn;
6140 fn.glVertexAttribI4iFn = Debug_glVertexAttribI4i;
6142 if (!debug_fn.glVertexAttribI4ivFn) {
6143 debug_fn.glVertexAttribI4ivFn = fn.glVertexAttribI4ivFn;
6144 fn.glVertexAttribI4ivFn = Debug_glVertexAttribI4iv;
6146 if (!debug_fn.glVertexAttribI4uiFn) {
6147 debug_fn.glVertexAttribI4uiFn = fn.glVertexAttribI4uiFn;
6148 fn.glVertexAttribI4uiFn = Debug_glVertexAttribI4ui;
6150 if (!debug_fn.glVertexAttribI4uivFn) {
6151 debug_fn.glVertexAttribI4uivFn = fn.glVertexAttribI4uivFn;
6152 fn.glVertexAttribI4uivFn = Debug_glVertexAttribI4uiv;
6154 if (!debug_fn.glVertexAttribIPointerFn) {
6155 debug_fn.glVertexAttribIPointerFn = fn.glVertexAttribIPointerFn;
6156 fn.glVertexAttribIPointerFn = Debug_glVertexAttribIPointer;
6158 if (!debug_fn.glVertexAttribPointerFn) {
6159 debug_fn.glVertexAttribPointerFn = fn.glVertexAttribPointerFn;
6160 fn.glVertexAttribPointerFn = Debug_glVertexAttribPointer;
6162 if (!debug_fn.glViewportFn) {
6163 debug_fn.glViewportFn = fn.glViewportFn;
6164 fn.glViewportFn = Debug_glViewport;
6166 if (!debug_fn.glWaitSyncFn) {
6167 debug_fn.glWaitSyncFn = fn.glWaitSyncFn;
6168 fn.glWaitSyncFn = Debug_glWaitSync;
6170 g_debugBindingsInitialized = true;
6173 void DriverGL::ClearBindings() {
6174 memset(this, 0, sizeof(*this));
6177 void GLApiBase::glActiveTextureFn(GLenum texture) {
6178 driver_->fn.glActiveTextureFn(texture);
6181 void GLApiBase::glAttachShaderFn(GLuint program, GLuint shader) {
6182 driver_->fn.glAttachShaderFn(program, shader);
6185 void GLApiBase::glBeginQueryFn(GLenum target, GLuint id) {
6186 driver_->fn.glBeginQueryFn(target, id);
6189 void GLApiBase::glBeginTransformFeedbackFn(GLenum primitiveMode) {
6190 driver_->fn.glBeginTransformFeedbackFn(primitiveMode);
6193 void GLApiBase::glBindAttribLocationFn(GLuint program,
6194 GLuint index,
6195 const char* name) {
6196 driver_->fn.glBindAttribLocationFn(program, index, name);
6199 void GLApiBase::glBindBufferFn(GLenum target, GLuint buffer) {
6200 driver_->fn.glBindBufferFn(target, buffer);
6203 void GLApiBase::glBindBufferBaseFn(GLenum target, GLuint index, GLuint buffer) {
6204 driver_->fn.glBindBufferBaseFn(target, index, buffer);
6207 void GLApiBase::glBindBufferRangeFn(GLenum target,
6208 GLuint index,
6209 GLuint buffer,
6210 GLintptr offset,
6211 GLsizeiptr size) {
6212 driver_->fn.glBindBufferRangeFn(target, index, buffer, offset, size);
6215 void GLApiBase::glBindFragDataLocationFn(GLuint program,
6216 GLuint colorNumber,
6217 const char* name) {
6218 driver_->fn.glBindFragDataLocationFn(program, colorNumber, name);
6221 void GLApiBase::glBindFragDataLocationIndexedFn(GLuint program,
6222 GLuint colorNumber,
6223 GLuint index,
6224 const char* name) {
6225 driver_->fn.glBindFragDataLocationIndexedFn(program, colorNumber, index,
6226 name);
6229 void GLApiBase::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
6230 driver_->fn.glBindFramebufferEXTFn(target, framebuffer);
6233 void GLApiBase::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
6234 driver_->fn.glBindRenderbufferEXTFn(target, renderbuffer);
6237 void GLApiBase::glBindSamplerFn(GLuint unit, GLuint sampler) {
6238 driver_->fn.glBindSamplerFn(unit, sampler);
6241 void GLApiBase::glBindTextureFn(GLenum target, GLuint texture) {
6242 driver_->fn.glBindTextureFn(target, texture);
6245 void GLApiBase::glBindTransformFeedbackFn(GLenum target, GLuint id) {
6246 driver_->fn.glBindTransformFeedbackFn(target, id);
6249 void GLApiBase::glBindVertexArrayOESFn(GLuint array) {
6250 driver_->fn.glBindVertexArrayOESFn(array);
6253 void GLApiBase::glBlendBarrierKHRFn(void) {
6254 driver_->fn.glBlendBarrierKHRFn();
6257 void GLApiBase::glBlendColorFn(GLclampf red,
6258 GLclampf green,
6259 GLclampf blue,
6260 GLclampf alpha) {
6261 driver_->fn.glBlendColorFn(red, green, blue, alpha);
6264 void GLApiBase::glBlendEquationFn(GLenum mode) {
6265 driver_->fn.glBlendEquationFn(mode);
6268 void GLApiBase::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
6269 driver_->fn.glBlendEquationSeparateFn(modeRGB, modeAlpha);
6272 void GLApiBase::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
6273 driver_->fn.glBlendFuncFn(sfactor, dfactor);
6276 void GLApiBase::glBlendFuncSeparateFn(GLenum srcRGB,
6277 GLenum dstRGB,
6278 GLenum srcAlpha,
6279 GLenum dstAlpha) {
6280 driver_->fn.glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
6283 void GLApiBase::glBlitFramebufferFn(GLint srcX0,
6284 GLint srcY0,
6285 GLint srcX1,
6286 GLint srcY1,
6287 GLint dstX0,
6288 GLint dstY0,
6289 GLint dstX1,
6290 GLint dstY1,
6291 GLbitfield mask,
6292 GLenum filter) {
6293 driver_->fn.glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6294 dstX1, dstY1, mask, filter);
6297 void GLApiBase::glBlitFramebufferANGLEFn(GLint srcX0,
6298 GLint srcY0,
6299 GLint srcX1,
6300 GLint srcY1,
6301 GLint dstX0,
6302 GLint dstY0,
6303 GLint dstX1,
6304 GLint dstY1,
6305 GLbitfield mask,
6306 GLenum filter) {
6307 driver_->fn.glBlitFramebufferANGLEFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6308 dstX1, dstY1, mask, filter);
6311 void GLApiBase::glBlitFramebufferEXTFn(GLint srcX0,
6312 GLint srcY0,
6313 GLint srcX1,
6314 GLint srcY1,
6315 GLint dstX0,
6316 GLint dstY0,
6317 GLint dstX1,
6318 GLint dstY1,
6319 GLbitfield mask,
6320 GLenum filter) {
6321 driver_->fn.glBlitFramebufferEXTFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6322 dstX1, dstY1, mask, filter);
6325 void GLApiBase::glBufferDataFn(GLenum target,
6326 GLsizeiptr size,
6327 const void* data,
6328 GLenum usage) {
6329 driver_->fn.glBufferDataFn(target, size, data, usage);
6332 void GLApiBase::glBufferSubDataFn(GLenum target,
6333 GLintptr offset,
6334 GLsizeiptr size,
6335 const void* data) {
6336 driver_->fn.glBufferSubDataFn(target, offset, size, data);
6339 GLenum GLApiBase::glCheckFramebufferStatusEXTFn(GLenum target) {
6340 return driver_->fn.glCheckFramebufferStatusEXTFn(target);
6343 void GLApiBase::glClearFn(GLbitfield mask) {
6344 driver_->fn.glClearFn(mask);
6347 void GLApiBase::glClearBufferfiFn(GLenum buffer,
6348 GLint drawbuffer,
6349 const GLfloat depth,
6350 GLint stencil) {
6351 driver_->fn.glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
6354 void GLApiBase::glClearBufferfvFn(GLenum buffer,
6355 GLint drawbuffer,
6356 const GLfloat* value) {
6357 driver_->fn.glClearBufferfvFn(buffer, drawbuffer, value);
6360 void GLApiBase::glClearBufferivFn(GLenum buffer,
6361 GLint drawbuffer,
6362 const GLint* value) {
6363 driver_->fn.glClearBufferivFn(buffer, drawbuffer, value);
6366 void GLApiBase::glClearBufferuivFn(GLenum buffer,
6367 GLint drawbuffer,
6368 const GLuint* value) {
6369 driver_->fn.glClearBufferuivFn(buffer, drawbuffer, value);
6372 void GLApiBase::glClearColorFn(GLclampf red,
6373 GLclampf green,
6374 GLclampf blue,
6375 GLclampf alpha) {
6376 driver_->fn.glClearColorFn(red, green, blue, alpha);
6379 void GLApiBase::glClearDepthFn(GLclampd depth) {
6380 driver_->fn.glClearDepthFn(depth);
6383 void GLApiBase::glClearDepthfFn(GLclampf depth) {
6384 driver_->fn.glClearDepthfFn(depth);
6387 void GLApiBase::glClearStencilFn(GLint s) {
6388 driver_->fn.glClearStencilFn(s);
6391 GLenum GLApiBase::glClientWaitSyncFn(GLsync sync,
6392 GLbitfield flags,
6393 GLuint64 timeout) {
6394 return driver_->fn.glClientWaitSyncFn(sync, flags, timeout);
6397 void GLApiBase::glColorMaskFn(GLboolean red,
6398 GLboolean green,
6399 GLboolean blue,
6400 GLboolean alpha) {
6401 driver_->fn.glColorMaskFn(red, green, blue, alpha);
6404 void GLApiBase::glCompileShaderFn(GLuint shader) {
6405 driver_->fn.glCompileShaderFn(shader);
6408 void GLApiBase::glCompressedTexImage2DFn(GLenum target,
6409 GLint level,
6410 GLenum internalformat,
6411 GLsizei width,
6412 GLsizei height,
6413 GLint border,
6414 GLsizei imageSize,
6415 const void* data) {
6416 driver_->fn.glCompressedTexImage2DFn(target, level, internalformat, width,
6417 height, border, imageSize, data);
6420 void GLApiBase::glCompressedTexImage3DFn(GLenum target,
6421 GLint level,
6422 GLenum internalformat,
6423 GLsizei width,
6424 GLsizei height,
6425 GLsizei depth,
6426 GLint border,
6427 GLsizei imageSize,
6428 const void* data) {
6429 driver_->fn.glCompressedTexImage3DFn(target, level, internalformat, width,
6430 height, depth, border, imageSize, data);
6433 void GLApiBase::glCompressedTexSubImage2DFn(GLenum target,
6434 GLint level,
6435 GLint xoffset,
6436 GLint yoffset,
6437 GLsizei width,
6438 GLsizei height,
6439 GLenum format,
6440 GLsizei imageSize,
6441 const void* data) {
6442 driver_->fn.glCompressedTexSubImage2DFn(
6443 target, level, xoffset, yoffset, width, height, format, imageSize, data);
6446 void GLApiBase::glCompressedTexSubImage3DFn(GLenum target,
6447 GLint level,
6448 GLint xoffset,
6449 GLint yoffset,
6450 GLint zoffset,
6451 GLsizei width,
6452 GLsizei height,
6453 GLsizei depth,
6454 GLenum format,
6455 GLsizei imageSize,
6456 const void* data) {
6457 driver_->fn.glCompressedTexSubImage3DFn(target, level, xoffset, yoffset,
6458 zoffset, width, height, depth, format,
6459 imageSize, data);
6462 void GLApiBase::glCopyBufferSubDataFn(GLenum readTarget,
6463 GLenum writeTarget,
6464 GLintptr readOffset,
6465 GLintptr writeOffset,
6466 GLsizeiptr size) {
6467 driver_->fn.glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
6468 writeOffset, size);
6471 void GLApiBase::glCopyTexImage2DFn(GLenum target,
6472 GLint level,
6473 GLenum internalformat,
6474 GLint x,
6475 GLint y,
6476 GLsizei width,
6477 GLsizei height,
6478 GLint border) {
6479 driver_->fn.glCopyTexImage2DFn(target, level, internalformat, x, y, width,
6480 height, border);
6483 void GLApiBase::glCopyTexSubImage2DFn(GLenum target,
6484 GLint level,
6485 GLint xoffset,
6486 GLint yoffset,
6487 GLint x,
6488 GLint y,
6489 GLsizei width,
6490 GLsizei height) {
6491 driver_->fn.glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y,
6492 width, height);
6495 void GLApiBase::glCopyTexSubImage3DFn(GLenum target,
6496 GLint level,
6497 GLint xoffset,
6498 GLint yoffset,
6499 GLint zoffset,
6500 GLint x,
6501 GLint y,
6502 GLsizei width,
6503 GLsizei height) {
6504 driver_->fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x,
6505 y, width, height);
6508 void GLApiBase::glCoverFillPathNVFn(GLuint path, GLenum coverMode) {
6509 driver_->fn.glCoverFillPathNVFn(path, coverMode);
6512 void GLApiBase::glCoverStrokePathNVFn(GLuint name, GLenum coverMode) {
6513 driver_->fn.glCoverStrokePathNVFn(name, coverMode);
6516 GLuint GLApiBase::glCreateProgramFn(void) {
6517 return driver_->fn.glCreateProgramFn();
6520 GLuint GLApiBase::glCreateShaderFn(GLenum type) {
6521 return driver_->fn.glCreateShaderFn(type);
6524 void GLApiBase::glCullFaceFn(GLenum mode) {
6525 driver_->fn.glCullFaceFn(mode);
6528 void GLApiBase::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
6529 driver_->fn.glDeleteBuffersARBFn(n, buffers);
6532 void GLApiBase::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
6533 driver_->fn.glDeleteFencesAPPLEFn(n, fences);
6536 void GLApiBase::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
6537 driver_->fn.glDeleteFencesNVFn(n, fences);
6540 void GLApiBase::glDeleteFramebuffersEXTFn(GLsizei n,
6541 const GLuint* framebuffers) {
6542 driver_->fn.glDeleteFramebuffersEXTFn(n, framebuffers);
6545 void GLApiBase::glDeletePathsNVFn(GLuint path, GLsizei range) {
6546 driver_->fn.glDeletePathsNVFn(path, range);
6549 void GLApiBase::glDeleteProgramFn(GLuint program) {
6550 driver_->fn.glDeleteProgramFn(program);
6553 void GLApiBase::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
6554 driver_->fn.glDeleteQueriesFn(n, ids);
6557 void GLApiBase::glDeleteRenderbuffersEXTFn(GLsizei n,
6558 const GLuint* renderbuffers) {
6559 driver_->fn.glDeleteRenderbuffersEXTFn(n, renderbuffers);
6562 void GLApiBase::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
6563 driver_->fn.glDeleteSamplersFn(n, samplers);
6566 void GLApiBase::glDeleteShaderFn(GLuint shader) {
6567 driver_->fn.glDeleteShaderFn(shader);
6570 void GLApiBase::glDeleteSyncFn(GLsync sync) {
6571 driver_->fn.glDeleteSyncFn(sync);
6574 void GLApiBase::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
6575 driver_->fn.glDeleteTexturesFn(n, textures);
6578 void GLApiBase::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
6579 driver_->fn.glDeleteTransformFeedbacksFn(n, ids);
6582 void GLApiBase::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
6583 driver_->fn.glDeleteVertexArraysOESFn(n, arrays);
6586 void GLApiBase::glDepthFuncFn(GLenum func) {
6587 driver_->fn.glDepthFuncFn(func);
6590 void GLApiBase::glDepthMaskFn(GLboolean flag) {
6591 driver_->fn.glDepthMaskFn(flag);
6594 void GLApiBase::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
6595 driver_->fn.glDepthRangeFn(zNear, zFar);
6598 void GLApiBase::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
6599 driver_->fn.glDepthRangefFn(zNear, zFar);
6602 void GLApiBase::glDetachShaderFn(GLuint program, GLuint shader) {
6603 driver_->fn.glDetachShaderFn(program, shader);
6606 void GLApiBase::glDisableFn(GLenum cap) {
6607 driver_->fn.glDisableFn(cap);
6610 void GLApiBase::glDisableVertexAttribArrayFn(GLuint index) {
6611 driver_->fn.glDisableVertexAttribArrayFn(index);
6614 void GLApiBase::glDiscardFramebufferEXTFn(GLenum target,
6615 GLsizei numAttachments,
6616 const GLenum* attachments) {
6617 driver_->fn.glDiscardFramebufferEXTFn(target, numAttachments, attachments);
6620 void GLApiBase::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
6621 driver_->fn.glDrawArraysFn(mode, first, count);
6624 void GLApiBase::glDrawArraysInstancedANGLEFn(GLenum mode,
6625 GLint first,
6626 GLsizei count,
6627 GLsizei primcount) {
6628 driver_->fn.glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
6631 void GLApiBase::glDrawBufferFn(GLenum mode) {
6632 driver_->fn.glDrawBufferFn(mode);
6635 void GLApiBase::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
6636 driver_->fn.glDrawBuffersARBFn(n, bufs);
6639 void GLApiBase::glDrawElementsFn(GLenum mode,
6640 GLsizei count,
6641 GLenum type,
6642 const void* indices) {
6643 driver_->fn.glDrawElementsFn(mode, count, type, indices);
6646 void GLApiBase::glDrawElementsInstancedANGLEFn(GLenum mode,
6647 GLsizei count,
6648 GLenum type,
6649 const void* indices,
6650 GLsizei primcount) {
6651 driver_->fn.glDrawElementsInstancedANGLEFn(mode, count, type, indices,
6652 primcount);
6655 void GLApiBase::glDrawRangeElementsFn(GLenum mode,
6656 GLuint start,
6657 GLuint end,
6658 GLsizei count,
6659 GLenum type,
6660 const void* indices) {
6661 driver_->fn.glDrawRangeElementsFn(mode, start, end, count, type, indices);
6664 void GLApiBase::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
6665 GLeglImageOES image) {
6666 driver_->fn.glEGLImageTargetRenderbufferStorageOESFn(target, image);
6669 void GLApiBase::glEGLImageTargetTexture2DOESFn(GLenum target,
6670 GLeglImageOES image) {
6671 driver_->fn.glEGLImageTargetTexture2DOESFn(target, image);
6674 void GLApiBase::glEnableFn(GLenum cap) {
6675 driver_->fn.glEnableFn(cap);
6678 void GLApiBase::glEnableVertexAttribArrayFn(GLuint index) {
6679 driver_->fn.glEnableVertexAttribArrayFn(index);
6682 void GLApiBase::glEndQueryFn(GLenum target) {
6683 driver_->fn.glEndQueryFn(target);
6686 void GLApiBase::glEndTransformFeedbackFn(void) {
6687 driver_->fn.glEndTransformFeedbackFn();
6690 GLsync GLApiBase::glFenceSyncFn(GLenum condition, GLbitfield flags) {
6691 return driver_->fn.glFenceSyncFn(condition, flags);
6694 void GLApiBase::glFinishFn(void) {
6695 driver_->fn.glFinishFn();
6698 void GLApiBase::glFinishFenceAPPLEFn(GLuint fence) {
6699 driver_->fn.glFinishFenceAPPLEFn(fence);
6702 void GLApiBase::glFinishFenceNVFn(GLuint fence) {
6703 driver_->fn.glFinishFenceNVFn(fence);
6706 void GLApiBase::glFlushFn(void) {
6707 driver_->fn.glFlushFn();
6710 void GLApiBase::glFlushMappedBufferRangeFn(GLenum target,
6711 GLintptr offset,
6712 GLsizeiptr length) {
6713 driver_->fn.glFlushMappedBufferRangeFn(target, offset, length);
6716 void GLApiBase::glFramebufferRenderbufferEXTFn(GLenum target,
6717 GLenum attachment,
6718 GLenum renderbuffertarget,
6719 GLuint renderbuffer) {
6720 driver_->fn.glFramebufferRenderbufferEXTFn(target, attachment,
6721 renderbuffertarget, renderbuffer);
6724 void GLApiBase::glFramebufferTexture2DEXTFn(GLenum target,
6725 GLenum attachment,
6726 GLenum textarget,
6727 GLuint texture,
6728 GLint level) {
6729 driver_->fn.glFramebufferTexture2DEXTFn(target, attachment, textarget,
6730 texture, level);
6733 void GLApiBase::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
6734 GLenum attachment,
6735 GLenum textarget,
6736 GLuint texture,
6737 GLint level,
6738 GLsizei samples) {
6739 driver_->fn.glFramebufferTexture2DMultisampleEXTFn(
6740 target, attachment, textarget, texture, level, samples);
6743 void GLApiBase::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
6744 GLenum attachment,
6745 GLenum textarget,
6746 GLuint texture,
6747 GLint level,
6748 GLsizei samples) {
6749 driver_->fn.glFramebufferTexture2DMultisampleIMGFn(
6750 target, attachment, textarget, texture, level, samples);
6753 void GLApiBase::glFramebufferTextureLayerFn(GLenum target,
6754 GLenum attachment,
6755 GLuint texture,
6756 GLint level,
6757 GLint layer) {
6758 driver_->fn.glFramebufferTextureLayerFn(target, attachment, texture, level,
6759 layer);
6762 void GLApiBase::glFrontFaceFn(GLenum mode) {
6763 driver_->fn.glFrontFaceFn(mode);
6766 void GLApiBase::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
6767 driver_->fn.glGenBuffersARBFn(n, buffers);
6770 void GLApiBase::glGenerateMipmapEXTFn(GLenum target) {
6771 driver_->fn.glGenerateMipmapEXTFn(target);
6774 void GLApiBase::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
6775 driver_->fn.glGenFencesAPPLEFn(n, fences);
6778 void GLApiBase::glGenFencesNVFn(GLsizei n, GLuint* fences) {
6779 driver_->fn.glGenFencesNVFn(n, fences);
6782 void GLApiBase::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
6783 driver_->fn.glGenFramebuffersEXTFn(n, framebuffers);
6786 GLuint GLApiBase::glGenPathsNVFn(GLsizei range) {
6787 return driver_->fn.glGenPathsNVFn(range);
6790 void GLApiBase::glGenQueriesFn(GLsizei n, GLuint* ids) {
6791 driver_->fn.glGenQueriesFn(n, ids);
6794 void GLApiBase::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
6795 driver_->fn.glGenRenderbuffersEXTFn(n, renderbuffers);
6798 void GLApiBase::glGenSamplersFn(GLsizei n, GLuint* samplers) {
6799 driver_->fn.glGenSamplersFn(n, samplers);
6802 void GLApiBase::glGenTexturesFn(GLsizei n, GLuint* textures) {
6803 driver_->fn.glGenTexturesFn(n, textures);
6806 void GLApiBase::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
6807 driver_->fn.glGenTransformFeedbacksFn(n, ids);
6810 void GLApiBase::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
6811 driver_->fn.glGenVertexArraysOESFn(n, arrays);
6814 void GLApiBase::glGetActiveAttribFn(GLuint program,
6815 GLuint index,
6816 GLsizei bufsize,
6817 GLsizei* length,
6818 GLint* size,
6819 GLenum* type,
6820 char* name) {
6821 driver_->fn.glGetActiveAttribFn(program, index, bufsize, length, size, type,
6822 name);
6825 void GLApiBase::glGetActiveUniformFn(GLuint program,
6826 GLuint index,
6827 GLsizei bufsize,
6828 GLsizei* length,
6829 GLint* size,
6830 GLenum* type,
6831 char* name) {
6832 driver_->fn.glGetActiveUniformFn(program, index, bufsize, length, size, type,
6833 name);
6836 void GLApiBase::glGetActiveUniformBlockivFn(GLuint program,
6837 GLuint uniformBlockIndex,
6838 GLenum pname,
6839 GLint* params) {
6840 driver_->fn.glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
6841 params);
6844 void GLApiBase::glGetActiveUniformBlockNameFn(GLuint program,
6845 GLuint uniformBlockIndex,
6846 GLsizei bufSize,
6847 GLsizei* length,
6848 char* uniformBlockName) {
6849 driver_->fn.glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
6850 length, uniformBlockName);
6853 void GLApiBase::glGetActiveUniformsivFn(GLuint program,
6854 GLsizei uniformCount,
6855 const GLuint* uniformIndices,
6856 GLenum pname,
6857 GLint* params) {
6858 driver_->fn.glGetActiveUniformsivFn(program, uniformCount, uniformIndices,
6859 pname, params);
6862 void GLApiBase::glGetAttachedShadersFn(GLuint program,
6863 GLsizei maxcount,
6864 GLsizei* count,
6865 GLuint* shaders) {
6866 driver_->fn.glGetAttachedShadersFn(program, maxcount, count, shaders);
6869 GLint GLApiBase::glGetAttribLocationFn(GLuint program, const char* name) {
6870 return driver_->fn.glGetAttribLocationFn(program, name);
6873 void GLApiBase::glGetBooleanvFn(GLenum pname, GLboolean* params) {
6874 driver_->fn.glGetBooleanvFn(pname, params);
6877 void GLApiBase::glGetBufferParameterivFn(GLenum target,
6878 GLenum pname,
6879 GLint* params) {
6880 driver_->fn.glGetBufferParameterivFn(target, pname, params);
6883 GLenum GLApiBase::glGetErrorFn(void) {
6884 return driver_->fn.glGetErrorFn();
6887 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
6888 driver_->fn.glGetFenceivNVFn(fence, pname, params);
6891 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) {
6892 driver_->fn.glGetFloatvFn(pname, params);
6895 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) {
6896 return driver_->fn.glGetFragDataLocationFn(program, name);
6899 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
6900 GLenum attachment,
6901 GLenum pname,
6902 GLint* params) {
6903 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment,
6904 pname, params);
6907 GLenum GLApiBase::glGetGraphicsResetStatusARBFn(void) {
6908 return driver_->fn.glGetGraphicsResetStatusARBFn();
6911 void GLApiBase::glGetInteger64i_vFn(GLenum target,
6912 GLuint index,
6913 GLint64* data) {
6914 driver_->fn.glGetInteger64i_vFn(target, index, data);
6917 void GLApiBase::glGetInteger64vFn(GLenum pname, GLint64* params) {
6918 driver_->fn.glGetInteger64vFn(pname, params);
6921 void GLApiBase::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
6922 driver_->fn.glGetIntegeri_vFn(target, index, data);
6925 void GLApiBase::glGetIntegervFn(GLenum pname, GLint* params) {
6926 driver_->fn.glGetIntegervFn(pname, params);
6929 void GLApiBase::glGetInternalformativFn(GLenum target,
6930 GLenum internalformat,
6931 GLenum pname,
6932 GLsizei bufSize,
6933 GLint* params) {
6934 driver_->fn.glGetInternalformativFn(target, internalformat, pname, bufSize,
6935 params);
6938 void GLApiBase::glGetProgramBinaryFn(GLuint program,
6939 GLsizei bufSize,
6940 GLsizei* length,
6941 GLenum* binaryFormat,
6942 GLvoid* binary) {
6943 driver_->fn.glGetProgramBinaryFn(program, bufSize, length, binaryFormat,
6944 binary);
6947 void GLApiBase::glGetProgramInfoLogFn(GLuint program,
6948 GLsizei bufsize,
6949 GLsizei* length,
6950 char* infolog) {
6951 driver_->fn.glGetProgramInfoLogFn(program, bufsize, length, infolog);
6954 void GLApiBase::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
6955 driver_->fn.glGetProgramivFn(program, pname, params);
6958 GLint GLApiBase::glGetProgramResourceLocationFn(GLuint program,
6959 GLenum programInterface,
6960 const char* name) {
6961 return driver_->fn.glGetProgramResourceLocationFn(program, programInterface,
6962 name);
6965 void GLApiBase::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
6966 driver_->fn.glGetQueryivFn(target, pname, params);
6969 void GLApiBase::glGetQueryObjecti64vFn(GLuint id,
6970 GLenum pname,
6971 GLint64* params) {
6972 driver_->fn.glGetQueryObjecti64vFn(id, pname, params);
6975 void GLApiBase::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
6976 driver_->fn.glGetQueryObjectivFn(id, pname, params);
6979 void GLApiBase::glGetQueryObjectui64vFn(GLuint id,
6980 GLenum pname,
6981 GLuint64* params) {
6982 driver_->fn.glGetQueryObjectui64vFn(id, pname, params);
6985 void GLApiBase::glGetQueryObjectuivFn(GLuint id, GLenum pname, GLuint* params) {
6986 driver_->fn.glGetQueryObjectuivFn(id, pname, params);
6989 void GLApiBase::glGetRenderbufferParameterivEXTFn(GLenum target,
6990 GLenum pname,
6991 GLint* params) {
6992 driver_->fn.glGetRenderbufferParameterivEXTFn(target, pname, params);
6995 void GLApiBase::glGetSamplerParameterfvFn(GLuint sampler,
6996 GLenum pname,
6997 GLfloat* params) {
6998 driver_->fn.glGetSamplerParameterfvFn(sampler, pname, params);
7001 void GLApiBase::glGetSamplerParameterivFn(GLuint sampler,
7002 GLenum pname,
7003 GLint* params) {
7004 driver_->fn.glGetSamplerParameterivFn(sampler, pname, params);
7007 void GLApiBase::glGetShaderInfoLogFn(GLuint shader,
7008 GLsizei bufsize,
7009 GLsizei* length,
7010 char* infolog) {
7011 driver_->fn.glGetShaderInfoLogFn(shader, bufsize, length, infolog);
7014 void GLApiBase::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
7015 driver_->fn.glGetShaderivFn(shader, pname, params);
7018 void GLApiBase::glGetShaderPrecisionFormatFn(GLenum shadertype,
7019 GLenum precisiontype,
7020 GLint* range,
7021 GLint* precision) {
7022 driver_->fn.glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
7023 precision);
7026 void GLApiBase::glGetShaderSourceFn(GLuint shader,
7027 GLsizei bufsize,
7028 GLsizei* length,
7029 char* source) {
7030 driver_->fn.glGetShaderSourceFn(shader, bufsize, length, source);
7033 const GLubyte* GLApiBase::glGetStringFn(GLenum name) {
7034 return driver_->fn.glGetStringFn(name);
7037 const GLubyte* GLApiBase::glGetStringiFn(GLenum name, GLuint index) {
7038 return driver_->fn.glGetStringiFn(name, index);
7041 void GLApiBase::glGetSyncivFn(GLsync sync,
7042 GLenum pname,
7043 GLsizei bufSize,
7044 GLsizei* length,
7045 GLint* values) {
7046 driver_->fn.glGetSyncivFn(sync, pname, bufSize, length, values);
7049 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target,
7050 GLint level,
7051 GLenum pname,
7052 GLfloat* params) {
7053 driver_->fn.glGetTexLevelParameterfvFn(target, level, pname, params);
7056 void GLApiBase::glGetTexLevelParameterivFn(GLenum target,
7057 GLint level,
7058 GLenum pname,
7059 GLint* params) {
7060 driver_->fn.glGetTexLevelParameterivFn(target, level, pname, params);
7063 void GLApiBase::glGetTexParameterfvFn(GLenum target,
7064 GLenum pname,
7065 GLfloat* params) {
7066 driver_->fn.glGetTexParameterfvFn(target, pname, params);
7069 void GLApiBase::glGetTexParameterivFn(GLenum target,
7070 GLenum pname,
7071 GLint* params) {
7072 driver_->fn.glGetTexParameterivFn(target, pname, params);
7075 void GLApiBase::glGetTransformFeedbackVaryingFn(GLuint program,
7076 GLuint index,
7077 GLsizei bufSize,
7078 GLsizei* length,
7079 GLsizei* size,
7080 GLenum* type,
7081 char* name) {
7082 driver_->fn.glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
7083 size, type, name);
7086 void GLApiBase::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
7087 GLsizei bufsize,
7088 GLsizei* length,
7089 char* source) {
7090 driver_->fn.glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length,
7091 source);
7094 GLuint GLApiBase::glGetUniformBlockIndexFn(GLuint program,
7095 const char* uniformBlockName) {
7096 return driver_->fn.glGetUniformBlockIndexFn(program, uniformBlockName);
7099 void GLApiBase::glGetUniformfvFn(GLuint program,
7100 GLint location,
7101 GLfloat* params) {
7102 driver_->fn.glGetUniformfvFn(program, location, params);
7105 void GLApiBase::glGetUniformIndicesFn(GLuint program,
7106 GLsizei uniformCount,
7107 const char* const* uniformNames,
7108 GLuint* uniformIndices) {
7109 driver_->fn.glGetUniformIndicesFn(program, uniformCount, uniformNames,
7110 uniformIndices);
7113 void GLApiBase::glGetUniformivFn(GLuint program,
7114 GLint location,
7115 GLint* params) {
7116 driver_->fn.glGetUniformivFn(program, location, params);
7119 GLint GLApiBase::glGetUniformLocationFn(GLuint program, const char* name) {
7120 return driver_->fn.glGetUniformLocationFn(program, name);
7123 void GLApiBase::glGetUniformuivFn(GLuint program,
7124 GLint location,
7125 GLuint* params) {
7126 driver_->fn.glGetUniformuivFn(program, location, params);
7129 void GLApiBase::glGetVertexAttribfvFn(GLuint index,
7130 GLenum pname,
7131 GLfloat* params) {
7132 driver_->fn.glGetVertexAttribfvFn(index, pname, params);
7135 void GLApiBase::glGetVertexAttribivFn(GLuint index,
7136 GLenum pname,
7137 GLint* params) {
7138 driver_->fn.glGetVertexAttribivFn(index, pname, params);
7141 void GLApiBase::glGetVertexAttribPointervFn(GLuint index,
7142 GLenum pname,
7143 void** pointer) {
7144 driver_->fn.glGetVertexAttribPointervFn(index, pname, pointer);
7147 void GLApiBase::glHintFn(GLenum target, GLenum mode) {
7148 driver_->fn.glHintFn(target, mode);
7151 void GLApiBase::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
7152 driver_->fn.glInsertEventMarkerEXTFn(length, marker);
7155 void GLApiBase::glInvalidateFramebufferFn(GLenum target,
7156 GLsizei numAttachments,
7157 const GLenum* attachments) {
7158 driver_->fn.glInvalidateFramebufferFn(target, numAttachments, attachments);
7161 void GLApiBase::glInvalidateSubFramebufferFn(GLenum target,
7162 GLsizei numAttachments,
7163 const GLenum* attachments,
7164 GLint x,
7165 GLint y,
7166 GLint width,
7167 GLint height) {
7168 driver_->fn.glInvalidateSubFramebufferFn(target, numAttachments, attachments,
7169 x, y, width, height);
7172 GLboolean GLApiBase::glIsBufferFn(GLuint buffer) {
7173 return driver_->fn.glIsBufferFn(buffer);
7176 GLboolean GLApiBase::glIsEnabledFn(GLenum cap) {
7177 return driver_->fn.glIsEnabledFn(cap);
7180 GLboolean GLApiBase::glIsFenceAPPLEFn(GLuint fence) {
7181 return driver_->fn.glIsFenceAPPLEFn(fence);
7184 GLboolean GLApiBase::glIsFenceNVFn(GLuint fence) {
7185 return driver_->fn.glIsFenceNVFn(fence);
7188 GLboolean GLApiBase::glIsFramebufferEXTFn(GLuint framebuffer) {
7189 return driver_->fn.glIsFramebufferEXTFn(framebuffer);
7192 GLboolean GLApiBase::glIsPathNVFn(GLuint path) {
7193 return driver_->fn.glIsPathNVFn(path);
7196 GLboolean GLApiBase::glIsProgramFn(GLuint program) {
7197 return driver_->fn.glIsProgramFn(program);
7200 GLboolean GLApiBase::glIsQueryFn(GLuint query) {
7201 return driver_->fn.glIsQueryFn(query);
7204 GLboolean GLApiBase::glIsRenderbufferEXTFn(GLuint renderbuffer) {
7205 return driver_->fn.glIsRenderbufferEXTFn(renderbuffer);
7208 GLboolean GLApiBase::glIsSamplerFn(GLuint sampler) {
7209 return driver_->fn.glIsSamplerFn(sampler);
7212 GLboolean GLApiBase::glIsShaderFn(GLuint shader) {
7213 return driver_->fn.glIsShaderFn(shader);
7216 GLboolean GLApiBase::glIsSyncFn(GLsync sync) {
7217 return driver_->fn.glIsSyncFn(sync);
7220 GLboolean GLApiBase::glIsTextureFn(GLuint texture) {
7221 return driver_->fn.glIsTextureFn(texture);
7224 GLboolean GLApiBase::glIsTransformFeedbackFn(GLuint id) {
7225 return driver_->fn.glIsTransformFeedbackFn(id);
7228 GLboolean GLApiBase::glIsVertexArrayOESFn(GLuint array) {
7229 return driver_->fn.glIsVertexArrayOESFn(array);
7232 void GLApiBase::glLineWidthFn(GLfloat width) {
7233 driver_->fn.glLineWidthFn(width);
7236 void GLApiBase::glLinkProgramFn(GLuint program) {
7237 driver_->fn.glLinkProgramFn(program);
7240 void* GLApiBase::glMapBufferFn(GLenum target, GLenum access) {
7241 return driver_->fn.glMapBufferFn(target, access);
7244 void* GLApiBase::glMapBufferRangeFn(GLenum target,
7245 GLintptr offset,
7246 GLsizeiptr length,
7247 GLbitfield access) {
7248 return driver_->fn.glMapBufferRangeFn(target, offset, length, access);
7251 void GLApiBase::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
7252 driver_->fn.glMatrixLoadfEXTFn(matrixMode, m);
7255 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
7256 driver_->fn.glMatrixLoadIdentityEXTFn(matrixMode);
7259 void GLApiBase::glPathCommandsNVFn(GLuint path,
7260 GLsizei numCommands,
7261 const GLubyte* commands,
7262 GLsizei numCoords,
7263 GLenum coordType,
7264 const GLvoid* coords) {
7265 driver_->fn.glPathCommandsNVFn(path, numCommands, commands, numCoords,
7266 coordType, coords);
7269 void GLApiBase::glPathParameterfNVFn(GLuint path, GLenum pname, GLfloat value) {
7270 driver_->fn.glPathParameterfNVFn(path, pname, value);
7273 void GLApiBase::glPathParameteriNVFn(GLuint path, GLenum pname, GLint value) {
7274 driver_->fn.glPathParameteriNVFn(path, pname, value);
7277 void GLApiBase::glPathStencilFuncNVFn(GLenum func, GLint ref, GLuint mask) {
7278 driver_->fn.glPathStencilFuncNVFn(func, ref, mask);
7281 void GLApiBase::glPauseTransformFeedbackFn(void) {
7282 driver_->fn.glPauseTransformFeedbackFn();
7285 void GLApiBase::glPixelStoreiFn(GLenum pname, GLint param) {
7286 driver_->fn.glPixelStoreiFn(pname, param);
7289 void GLApiBase::glPointParameteriFn(GLenum pname, GLint param) {
7290 driver_->fn.glPointParameteriFn(pname, param);
7293 void GLApiBase::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
7294 driver_->fn.glPolygonOffsetFn(factor, units);
7297 void GLApiBase::glPopGroupMarkerEXTFn(void) {
7298 driver_->fn.glPopGroupMarkerEXTFn();
7301 void GLApiBase::glProgramBinaryFn(GLuint program,
7302 GLenum binaryFormat,
7303 const GLvoid* binary,
7304 GLsizei length) {
7305 driver_->fn.glProgramBinaryFn(program, binaryFormat, binary, length);
7308 void GLApiBase::glProgramParameteriFn(GLuint program,
7309 GLenum pname,
7310 GLint value) {
7311 driver_->fn.glProgramParameteriFn(program, pname, value);
7314 void GLApiBase::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
7315 driver_->fn.glPushGroupMarkerEXTFn(length, marker);
7318 void GLApiBase::glQueryCounterFn(GLuint id, GLenum target) {
7319 driver_->fn.glQueryCounterFn(id, target);
7322 void GLApiBase::glReadBufferFn(GLenum src) {
7323 driver_->fn.glReadBufferFn(src);
7326 void GLApiBase::glReadPixelsFn(GLint x,
7327 GLint y,
7328 GLsizei width,
7329 GLsizei height,
7330 GLenum format,
7331 GLenum type,
7332 void* pixels) {
7333 driver_->fn.glReadPixelsFn(x, y, width, height, format, type, pixels);
7336 void GLApiBase::glReleaseShaderCompilerFn(void) {
7337 driver_->fn.glReleaseShaderCompilerFn();
7340 void GLApiBase::glRenderbufferStorageEXTFn(GLenum target,
7341 GLenum internalformat,
7342 GLsizei width,
7343 GLsizei height) {
7344 driver_->fn.glRenderbufferStorageEXTFn(target, internalformat, width, height);
7347 void GLApiBase::glRenderbufferStorageMultisampleFn(GLenum target,
7348 GLsizei samples,
7349 GLenum internalformat,
7350 GLsizei width,
7351 GLsizei height) {
7352 driver_->fn.glRenderbufferStorageMultisampleFn(target, samples,
7353 internalformat, width, height);
7356 void GLApiBase::glRenderbufferStorageMultisampleANGLEFn(GLenum target,
7357 GLsizei samples,
7358 GLenum internalformat,
7359 GLsizei width,
7360 GLsizei height) {
7361 driver_->fn.glRenderbufferStorageMultisampleANGLEFn(
7362 target, samples, internalformat, width, height);
7365 void GLApiBase::glRenderbufferStorageMultisampleEXTFn(GLenum target,
7366 GLsizei samples,
7367 GLenum internalformat,
7368 GLsizei width,
7369 GLsizei height) {
7370 driver_->fn.glRenderbufferStorageMultisampleEXTFn(
7371 target, samples, internalformat, width, height);
7374 void GLApiBase::glRenderbufferStorageMultisampleIMGFn(GLenum target,
7375 GLsizei samples,
7376 GLenum internalformat,
7377 GLsizei width,
7378 GLsizei height) {
7379 driver_->fn.glRenderbufferStorageMultisampleIMGFn(
7380 target, samples, internalformat, width, height);
7383 void GLApiBase::glResumeTransformFeedbackFn(void) {
7384 driver_->fn.glResumeTransformFeedbackFn();
7387 void GLApiBase::glSampleCoverageFn(GLclampf value, GLboolean invert) {
7388 driver_->fn.glSampleCoverageFn(value, invert);
7391 void GLApiBase::glSamplerParameterfFn(GLuint sampler,
7392 GLenum pname,
7393 GLfloat param) {
7394 driver_->fn.glSamplerParameterfFn(sampler, pname, param);
7397 void GLApiBase::glSamplerParameterfvFn(GLuint sampler,
7398 GLenum pname,
7399 const GLfloat* params) {
7400 driver_->fn.glSamplerParameterfvFn(sampler, pname, params);
7403 void GLApiBase::glSamplerParameteriFn(GLuint sampler,
7404 GLenum pname,
7405 GLint param) {
7406 driver_->fn.glSamplerParameteriFn(sampler, pname, param);
7409 void GLApiBase::glSamplerParameterivFn(GLuint sampler,
7410 GLenum pname,
7411 const GLint* params) {
7412 driver_->fn.glSamplerParameterivFn(sampler, pname, params);
7415 void GLApiBase::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
7416 driver_->fn.glScissorFn(x, y, width, height);
7419 void GLApiBase::glSetFenceAPPLEFn(GLuint fence) {
7420 driver_->fn.glSetFenceAPPLEFn(fence);
7423 void GLApiBase::glSetFenceNVFn(GLuint fence, GLenum condition) {
7424 driver_->fn.glSetFenceNVFn(fence, condition);
7427 void GLApiBase::glShaderBinaryFn(GLsizei n,
7428 const GLuint* shaders,
7429 GLenum binaryformat,
7430 const void* binary,
7431 GLsizei length) {
7432 driver_->fn.glShaderBinaryFn(n, shaders, binaryformat, binary, length);
7435 void GLApiBase::glShaderSourceFn(GLuint shader,
7436 GLsizei count,
7437 const char* const* str,
7438 const GLint* length) {
7439 driver_->fn.glShaderSourceFn(shader, count, str, length);
7442 void GLApiBase::glStencilFillPathNVFn(GLuint path,
7443 GLenum fillMode,
7444 GLuint mask) {
7445 driver_->fn.glStencilFillPathNVFn(path, fillMode, mask);
7448 void GLApiBase::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
7449 driver_->fn.glStencilFuncFn(func, ref, mask);
7452 void GLApiBase::glStencilFuncSeparateFn(GLenum face,
7453 GLenum func,
7454 GLint ref,
7455 GLuint mask) {
7456 driver_->fn.glStencilFuncSeparateFn(face, func, ref, mask);
7459 void GLApiBase::glStencilMaskFn(GLuint mask) {
7460 driver_->fn.glStencilMaskFn(mask);
7463 void GLApiBase::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
7464 driver_->fn.glStencilMaskSeparateFn(face, mask);
7467 void GLApiBase::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
7468 driver_->fn.glStencilOpFn(fail, zfail, zpass);
7471 void GLApiBase::glStencilOpSeparateFn(GLenum face,
7472 GLenum fail,
7473 GLenum zfail,
7474 GLenum zpass) {
7475 driver_->fn.glStencilOpSeparateFn(face, fail, zfail, zpass);
7478 void GLApiBase::glStencilStrokePathNVFn(GLuint path,
7479 GLint reference,
7480 GLuint mask) {
7481 driver_->fn.glStencilStrokePathNVFn(path, reference, mask);
7484 void GLApiBase::glStencilThenCoverFillPathNVFn(GLuint path,
7485 GLenum fillMode,
7486 GLuint mask,
7487 GLenum coverMode) {
7488 driver_->fn.glStencilThenCoverFillPathNVFn(path, fillMode, mask, coverMode);
7491 void GLApiBase::glStencilThenCoverStrokePathNVFn(GLuint path,
7492 GLint reference,
7493 GLuint mask,
7494 GLenum coverMode) {
7495 driver_->fn.glStencilThenCoverStrokePathNVFn(path, reference, mask,
7496 coverMode);
7499 GLboolean GLApiBase::glTestFenceAPPLEFn(GLuint fence) {
7500 return driver_->fn.glTestFenceAPPLEFn(fence);
7503 GLboolean GLApiBase::glTestFenceNVFn(GLuint fence) {
7504 return driver_->fn.glTestFenceNVFn(fence);
7507 void GLApiBase::glTexImage2DFn(GLenum target,
7508 GLint level,
7509 GLint internalformat,
7510 GLsizei width,
7511 GLsizei height,
7512 GLint border,
7513 GLenum format,
7514 GLenum type,
7515 const void* pixels) {
7516 driver_->fn.glTexImage2DFn(target, level, internalformat, width, height,
7517 border, format, type, pixels);
7520 void GLApiBase::glTexImage3DFn(GLenum target,
7521 GLint level,
7522 GLint internalformat,
7523 GLsizei width,
7524 GLsizei height,
7525 GLsizei depth,
7526 GLint border,
7527 GLenum format,
7528 GLenum type,
7529 const void* pixels) {
7530 driver_->fn.glTexImage3DFn(target, level, internalformat, width, height,
7531 depth, border, format, type, pixels);
7534 void GLApiBase::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
7535 driver_->fn.glTexParameterfFn(target, pname, param);
7538 void GLApiBase::glTexParameterfvFn(GLenum target,
7539 GLenum pname,
7540 const GLfloat* params) {
7541 driver_->fn.glTexParameterfvFn(target, pname, params);
7544 void GLApiBase::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
7545 driver_->fn.glTexParameteriFn(target, pname, param);
7548 void GLApiBase::glTexParameterivFn(GLenum target,
7549 GLenum pname,
7550 const GLint* params) {
7551 driver_->fn.glTexParameterivFn(target, pname, params);
7554 void GLApiBase::glTexStorage2DEXTFn(GLenum target,
7555 GLsizei levels,
7556 GLenum internalformat,
7557 GLsizei width,
7558 GLsizei height) {
7559 driver_->fn.glTexStorage2DEXTFn(target, levels, internalformat, width,
7560 height);
7563 void GLApiBase::glTexStorage3DFn(GLenum target,
7564 GLsizei levels,
7565 GLenum internalformat,
7566 GLsizei width,
7567 GLsizei height,
7568 GLsizei depth) {
7569 driver_->fn.glTexStorage3DFn(target, levels, internalformat, width, height,
7570 depth);
7573 void GLApiBase::glTexSubImage2DFn(GLenum target,
7574 GLint level,
7575 GLint xoffset,
7576 GLint yoffset,
7577 GLsizei width,
7578 GLsizei height,
7579 GLenum format,
7580 GLenum type,
7581 const void* pixels) {
7582 driver_->fn.glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
7583 format, type, pixels);
7586 void GLApiBase::glTexSubImage3DFn(GLenum target,
7587 GLint level,
7588 GLint xoffset,
7589 GLint yoffset,
7590 GLint zoffset,
7591 GLsizei width,
7592 GLsizei height,
7593 GLsizei depth,
7594 GLenum format,
7595 GLenum type,
7596 const void* pixels) {
7597 driver_->fn.glTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, width,
7598 height, depth, format, type, pixels);
7601 void GLApiBase::glTransformFeedbackVaryingsFn(GLuint program,
7602 GLsizei count,
7603 const char* const* varyings,
7604 GLenum bufferMode) {
7605 driver_->fn.glTransformFeedbackVaryingsFn(program, count, varyings,
7606 bufferMode);
7609 void GLApiBase::glUniform1fFn(GLint location, GLfloat x) {
7610 driver_->fn.glUniform1fFn(location, x);
7613 void GLApiBase::glUniform1fvFn(GLint location,
7614 GLsizei count,
7615 const GLfloat* v) {
7616 driver_->fn.glUniform1fvFn(location, count, v);
7619 void GLApiBase::glUniform1iFn(GLint location, GLint x) {
7620 driver_->fn.glUniform1iFn(location, x);
7623 void GLApiBase::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
7624 driver_->fn.glUniform1ivFn(location, count, v);
7627 void GLApiBase::glUniform1uiFn(GLint location, GLuint v0) {
7628 driver_->fn.glUniform1uiFn(location, v0);
7631 void GLApiBase::glUniform1uivFn(GLint location,
7632 GLsizei count,
7633 const GLuint* v) {
7634 driver_->fn.glUniform1uivFn(location, count, v);
7637 void GLApiBase::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
7638 driver_->fn.glUniform2fFn(location, x, y);
7641 void GLApiBase::glUniform2fvFn(GLint location,
7642 GLsizei count,
7643 const GLfloat* v) {
7644 driver_->fn.glUniform2fvFn(location, count, v);
7647 void GLApiBase::glUniform2iFn(GLint location, GLint x, GLint y) {
7648 driver_->fn.glUniform2iFn(location, x, y);
7651 void GLApiBase::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
7652 driver_->fn.glUniform2ivFn(location, count, v);
7655 void GLApiBase::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
7656 driver_->fn.glUniform2uiFn(location, v0, v1);
7659 void GLApiBase::glUniform2uivFn(GLint location,
7660 GLsizei count,
7661 const GLuint* v) {
7662 driver_->fn.glUniform2uivFn(location, count, v);
7665 void GLApiBase::glUniform3fFn(GLint location, GLfloat x, GLfloat y, GLfloat z) {
7666 driver_->fn.glUniform3fFn(location, x, y, z);
7669 void GLApiBase::glUniform3fvFn(GLint location,
7670 GLsizei count,
7671 const GLfloat* v) {
7672 driver_->fn.glUniform3fvFn(location, count, v);
7675 void GLApiBase::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
7676 driver_->fn.glUniform3iFn(location, x, y, z);
7679 void GLApiBase::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
7680 driver_->fn.glUniform3ivFn(location, count, v);
7683 void GLApiBase::glUniform3uiFn(GLint location,
7684 GLuint v0,
7685 GLuint v1,
7686 GLuint v2) {
7687 driver_->fn.glUniform3uiFn(location, v0, v1, v2);
7690 void GLApiBase::glUniform3uivFn(GLint location,
7691 GLsizei count,
7692 const GLuint* v) {
7693 driver_->fn.glUniform3uivFn(location, count, v);
7696 void GLApiBase::glUniform4fFn(GLint location,
7697 GLfloat x,
7698 GLfloat y,
7699 GLfloat z,
7700 GLfloat w) {
7701 driver_->fn.glUniform4fFn(location, x, y, z, w);
7704 void GLApiBase::glUniform4fvFn(GLint location,
7705 GLsizei count,
7706 const GLfloat* v) {
7707 driver_->fn.glUniform4fvFn(location, count, v);
7710 void GLApiBase::glUniform4iFn(GLint location,
7711 GLint x,
7712 GLint y,
7713 GLint z,
7714 GLint w) {
7715 driver_->fn.glUniform4iFn(location, x, y, z, w);
7718 void GLApiBase::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
7719 driver_->fn.glUniform4ivFn(location, count, v);
7722 void GLApiBase::glUniform4uiFn(GLint location,
7723 GLuint v0,
7724 GLuint v1,
7725 GLuint v2,
7726 GLuint v3) {
7727 driver_->fn.glUniform4uiFn(location, v0, v1, v2, v3);
7730 void GLApiBase::glUniform4uivFn(GLint location,
7731 GLsizei count,
7732 const GLuint* v) {
7733 driver_->fn.glUniform4uivFn(location, count, v);
7736 void GLApiBase::glUniformBlockBindingFn(GLuint program,
7737 GLuint uniformBlockIndex,
7738 GLuint uniformBlockBinding) {
7739 driver_->fn.glUniformBlockBindingFn(program, uniformBlockIndex,
7740 uniformBlockBinding);
7743 void GLApiBase::glUniformMatrix2fvFn(GLint location,
7744 GLsizei count,
7745 GLboolean transpose,
7746 const GLfloat* value) {
7747 driver_->fn.glUniformMatrix2fvFn(location, count, transpose, value);
7750 void GLApiBase::glUniformMatrix2x3fvFn(GLint location,
7751 GLsizei count,
7752 GLboolean transpose,
7753 const GLfloat* value) {
7754 driver_->fn.glUniformMatrix2x3fvFn(location, count, transpose, value);
7757 void GLApiBase::glUniformMatrix2x4fvFn(GLint location,
7758 GLsizei count,
7759 GLboolean transpose,
7760 const GLfloat* value) {
7761 driver_->fn.glUniformMatrix2x4fvFn(location, count, transpose, value);
7764 void GLApiBase::glUniformMatrix3fvFn(GLint location,
7765 GLsizei count,
7766 GLboolean transpose,
7767 const GLfloat* value) {
7768 driver_->fn.glUniformMatrix3fvFn(location, count, transpose, value);
7771 void GLApiBase::glUniformMatrix3x2fvFn(GLint location,
7772 GLsizei count,
7773 GLboolean transpose,
7774 const GLfloat* value) {
7775 driver_->fn.glUniformMatrix3x2fvFn(location, count, transpose, value);
7778 void GLApiBase::glUniformMatrix3x4fvFn(GLint location,
7779 GLsizei count,
7780 GLboolean transpose,
7781 const GLfloat* value) {
7782 driver_->fn.glUniformMatrix3x4fvFn(location, count, transpose, value);
7785 void GLApiBase::glUniformMatrix4fvFn(GLint location,
7786 GLsizei count,
7787 GLboolean transpose,
7788 const GLfloat* value) {
7789 driver_->fn.glUniformMatrix4fvFn(location, count, transpose, value);
7792 void GLApiBase::glUniformMatrix4x2fvFn(GLint location,
7793 GLsizei count,
7794 GLboolean transpose,
7795 const GLfloat* value) {
7796 driver_->fn.glUniformMatrix4x2fvFn(location, count, transpose, value);
7799 void GLApiBase::glUniformMatrix4x3fvFn(GLint location,
7800 GLsizei count,
7801 GLboolean transpose,
7802 const GLfloat* value) {
7803 driver_->fn.glUniformMatrix4x3fvFn(location, count, transpose, value);
7806 GLboolean GLApiBase::glUnmapBufferFn(GLenum target) {
7807 return driver_->fn.glUnmapBufferFn(target);
7810 void GLApiBase::glUseProgramFn(GLuint program) {
7811 driver_->fn.glUseProgramFn(program);
7814 void GLApiBase::glValidateProgramFn(GLuint program) {
7815 driver_->fn.glValidateProgramFn(program);
7818 void GLApiBase::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
7819 driver_->fn.glVertexAttrib1fFn(indx, x);
7822 void GLApiBase::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
7823 driver_->fn.glVertexAttrib1fvFn(indx, values);
7826 void GLApiBase::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
7827 driver_->fn.glVertexAttrib2fFn(indx, x, y);
7830 void GLApiBase::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
7831 driver_->fn.glVertexAttrib2fvFn(indx, values);
7834 void GLApiBase::glVertexAttrib3fFn(GLuint indx,
7835 GLfloat x,
7836 GLfloat y,
7837 GLfloat z) {
7838 driver_->fn.glVertexAttrib3fFn(indx, x, y, z);
7841 void GLApiBase::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
7842 driver_->fn.glVertexAttrib3fvFn(indx, values);
7845 void GLApiBase::glVertexAttrib4fFn(GLuint indx,
7846 GLfloat x,
7847 GLfloat y,
7848 GLfloat z,
7849 GLfloat w) {
7850 driver_->fn.glVertexAttrib4fFn(indx, x, y, z, w);
7853 void GLApiBase::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
7854 driver_->fn.glVertexAttrib4fvFn(indx, values);
7857 void GLApiBase::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
7858 driver_->fn.glVertexAttribDivisorANGLEFn(index, divisor);
7861 void GLApiBase::glVertexAttribI4iFn(GLuint indx,
7862 GLint x,
7863 GLint y,
7864 GLint z,
7865 GLint w) {
7866 driver_->fn.glVertexAttribI4iFn(indx, x, y, z, w);
7869 void GLApiBase::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
7870 driver_->fn.glVertexAttribI4ivFn(indx, values);
7873 void GLApiBase::glVertexAttribI4uiFn(GLuint indx,
7874 GLuint x,
7875 GLuint y,
7876 GLuint z,
7877 GLuint w) {
7878 driver_->fn.glVertexAttribI4uiFn(indx, x, y, z, w);
7881 void GLApiBase::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
7882 driver_->fn.glVertexAttribI4uivFn(indx, values);
7885 void GLApiBase::glVertexAttribIPointerFn(GLuint indx,
7886 GLint size,
7887 GLenum type,
7888 GLsizei stride,
7889 const void* ptr) {
7890 driver_->fn.glVertexAttribIPointerFn(indx, size, type, stride, ptr);
7893 void GLApiBase::glVertexAttribPointerFn(GLuint indx,
7894 GLint size,
7895 GLenum type,
7896 GLboolean normalized,
7897 GLsizei stride,
7898 const void* ptr) {
7899 driver_->fn.glVertexAttribPointerFn(indx, size, type, normalized, stride,
7900 ptr);
7903 void GLApiBase::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
7904 driver_->fn.glViewportFn(x, y, width, height);
7907 GLenum GLApiBase::glWaitSyncFn(GLsync sync,
7908 GLbitfield flags,
7909 GLuint64 timeout) {
7910 return driver_->fn.glWaitSyncFn(sync, flags, timeout);
7913 void TraceGLApi::glActiveTextureFn(GLenum texture) {
7914 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glActiveTexture")
7915 gl_api_->glActiveTextureFn(texture);
7918 void TraceGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
7919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glAttachShader")
7920 gl_api_->glAttachShaderFn(program, shader);
7923 void TraceGLApi::glBeginQueryFn(GLenum target, GLuint id) {
7924 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginQuery")
7925 gl_api_->glBeginQueryFn(target, id);
7928 void TraceGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
7929 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginTransformFeedback")
7930 gl_api_->glBeginTransformFeedbackFn(primitiveMode);
7933 void TraceGLApi::glBindAttribLocationFn(GLuint program,
7934 GLuint index,
7935 const char* name) {
7936 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindAttribLocation")
7937 gl_api_->glBindAttribLocationFn(program, index, name);
7940 void TraceGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
7941 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBuffer")
7942 gl_api_->glBindBufferFn(target, buffer);
7945 void TraceGLApi::glBindBufferBaseFn(GLenum target,
7946 GLuint index,
7947 GLuint buffer) {
7948 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferBase")
7949 gl_api_->glBindBufferBaseFn(target, index, buffer);
7952 void TraceGLApi::glBindBufferRangeFn(GLenum target,
7953 GLuint index,
7954 GLuint buffer,
7955 GLintptr offset,
7956 GLsizeiptr size) {
7957 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferRange")
7958 gl_api_->glBindBufferRangeFn(target, index, buffer, offset, size);
7961 void TraceGLApi::glBindFragDataLocationFn(GLuint program,
7962 GLuint colorNumber,
7963 const char* name) {
7964 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFragDataLocation")
7965 gl_api_->glBindFragDataLocationFn(program, colorNumber, name);
7968 void TraceGLApi::glBindFragDataLocationIndexedFn(GLuint program,
7969 GLuint colorNumber,
7970 GLuint index,
7971 const char* name) {
7972 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
7973 "TraceGLAPI::glBindFragDataLocationIndexed")
7974 gl_api_->glBindFragDataLocationIndexedFn(program, colorNumber, index, name);
7977 void TraceGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
7978 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFramebufferEXT")
7979 gl_api_->glBindFramebufferEXTFn(target, framebuffer);
7982 void TraceGLApi::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
7983 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindRenderbufferEXT")
7984 gl_api_->glBindRenderbufferEXTFn(target, renderbuffer);
7987 void TraceGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
7988 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindSampler")
7989 gl_api_->glBindSamplerFn(unit, sampler);
7992 void TraceGLApi::glBindTextureFn(GLenum target, GLuint texture) {
7993 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTexture")
7994 gl_api_->glBindTextureFn(target, texture);
7997 void TraceGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
7998 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTransformFeedback")
7999 gl_api_->glBindTransformFeedbackFn(target, id);
8002 void TraceGLApi::glBindVertexArrayOESFn(GLuint array) {
8003 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindVertexArrayOES")
8004 gl_api_->glBindVertexArrayOESFn(array);
8007 void TraceGLApi::glBlendBarrierKHRFn(void) {
8008 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendBarrierKHR")
8009 gl_api_->glBlendBarrierKHRFn();
8012 void TraceGLApi::glBlendColorFn(GLclampf red,
8013 GLclampf green,
8014 GLclampf blue,
8015 GLclampf alpha) {
8016 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendColor")
8017 gl_api_->glBlendColorFn(red, green, blue, alpha);
8020 void TraceGLApi::glBlendEquationFn(GLenum mode) {
8021 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquation")
8022 gl_api_->glBlendEquationFn(mode);
8025 void TraceGLApi::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
8026 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquationSeparate")
8027 gl_api_->glBlendEquationSeparateFn(modeRGB, modeAlpha);
8030 void TraceGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
8031 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFunc")
8032 gl_api_->glBlendFuncFn(sfactor, dfactor);
8035 void TraceGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
8036 GLenum dstRGB,
8037 GLenum srcAlpha,
8038 GLenum dstAlpha) {
8039 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFuncSeparate")
8040 gl_api_->glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
8043 void TraceGLApi::glBlitFramebufferFn(GLint srcX0,
8044 GLint srcY0,
8045 GLint srcX1,
8046 GLint srcY1,
8047 GLint dstX0,
8048 GLint dstY0,
8049 GLint dstX1,
8050 GLint dstY1,
8051 GLbitfield mask,
8052 GLenum filter) {
8053 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebuffer")
8054 gl_api_->glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
8055 dstY1, mask, filter);
8058 void TraceGLApi::glBlitFramebufferANGLEFn(GLint srcX0,
8059 GLint srcY0,
8060 GLint srcX1,
8061 GLint srcY1,
8062 GLint dstX0,
8063 GLint dstY0,
8064 GLint dstX1,
8065 GLint dstY1,
8066 GLbitfield mask,
8067 GLenum filter) {
8068 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferANGLE")
8069 gl_api_->glBlitFramebufferANGLEFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
8070 dstX1, dstY1, mask, filter);
8073 void TraceGLApi::glBlitFramebufferEXTFn(GLint srcX0,
8074 GLint srcY0,
8075 GLint srcX1,
8076 GLint srcY1,
8077 GLint dstX0,
8078 GLint dstY0,
8079 GLint dstX1,
8080 GLint dstY1,
8081 GLbitfield mask,
8082 GLenum filter) {
8083 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferEXT")
8084 gl_api_->glBlitFramebufferEXTFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
8085 dstX1, dstY1, mask, filter);
8088 void TraceGLApi::glBufferDataFn(GLenum target,
8089 GLsizeiptr size,
8090 const void* data,
8091 GLenum usage) {
8092 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferData")
8093 gl_api_->glBufferDataFn(target, size, data, usage);
8096 void TraceGLApi::glBufferSubDataFn(GLenum target,
8097 GLintptr offset,
8098 GLsizeiptr size,
8099 const void* data) {
8100 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferSubData")
8101 gl_api_->glBufferSubDataFn(target, offset, size, data);
8104 GLenum TraceGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
8105 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8106 "TraceGLAPI::glCheckFramebufferStatusEXT")
8107 return gl_api_->glCheckFramebufferStatusEXTFn(target);
8110 void TraceGLApi::glClearFn(GLbitfield mask) {
8111 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClear")
8112 gl_api_->glClearFn(mask);
8115 void TraceGLApi::glClearBufferfiFn(GLenum buffer,
8116 GLint drawbuffer,
8117 const GLfloat depth,
8118 GLint stencil) {
8119 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfi")
8120 gl_api_->glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
8123 void TraceGLApi::glClearBufferfvFn(GLenum buffer,
8124 GLint drawbuffer,
8125 const GLfloat* value) {
8126 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfv")
8127 gl_api_->glClearBufferfvFn(buffer, drawbuffer, value);
8130 void TraceGLApi::glClearBufferivFn(GLenum buffer,
8131 GLint drawbuffer,
8132 const GLint* value) {
8133 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferiv")
8134 gl_api_->glClearBufferivFn(buffer, drawbuffer, value);
8137 void TraceGLApi::glClearBufferuivFn(GLenum buffer,
8138 GLint drawbuffer,
8139 const GLuint* value) {
8140 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferuiv")
8141 gl_api_->glClearBufferuivFn(buffer, drawbuffer, value);
8144 void TraceGLApi::glClearColorFn(GLclampf red,
8145 GLclampf green,
8146 GLclampf blue,
8147 GLclampf alpha) {
8148 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearColor")
8149 gl_api_->glClearColorFn(red, green, blue, alpha);
8152 void TraceGLApi::glClearDepthFn(GLclampd depth) {
8153 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepth")
8154 gl_api_->glClearDepthFn(depth);
8157 void TraceGLApi::glClearDepthfFn(GLclampf depth) {
8158 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepthf")
8159 gl_api_->glClearDepthfFn(depth);
8162 void TraceGLApi::glClearStencilFn(GLint s) {
8163 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearStencil")
8164 gl_api_->glClearStencilFn(s);
8167 GLenum TraceGLApi::glClientWaitSyncFn(GLsync sync,
8168 GLbitfield flags,
8169 GLuint64 timeout) {
8170 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClientWaitSync")
8171 return gl_api_->glClientWaitSyncFn(sync, flags, timeout);
8174 void TraceGLApi::glColorMaskFn(GLboolean red,
8175 GLboolean green,
8176 GLboolean blue,
8177 GLboolean alpha) {
8178 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glColorMask")
8179 gl_api_->glColorMaskFn(red, green, blue, alpha);
8182 void TraceGLApi::glCompileShaderFn(GLuint shader) {
8183 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompileShader")
8184 gl_api_->glCompileShaderFn(shader);
8187 void TraceGLApi::glCompressedTexImage2DFn(GLenum target,
8188 GLint level,
8189 GLenum internalformat,
8190 GLsizei width,
8191 GLsizei height,
8192 GLint border,
8193 GLsizei imageSize,
8194 const void* data) {
8195 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage2D")
8196 gl_api_->glCompressedTexImage2DFn(target, level, internalformat, width,
8197 height, border, imageSize, data);
8200 void TraceGLApi::glCompressedTexImage3DFn(GLenum target,
8201 GLint level,
8202 GLenum internalformat,
8203 GLsizei width,
8204 GLsizei height,
8205 GLsizei depth,
8206 GLint border,
8207 GLsizei imageSize,
8208 const void* data) {
8209 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage3D")
8210 gl_api_->glCompressedTexImage3DFn(target, level, internalformat, width,
8211 height, depth, border, imageSize, data);
8214 void TraceGLApi::glCompressedTexSubImage2DFn(GLenum target,
8215 GLint level,
8216 GLint xoffset,
8217 GLint yoffset,
8218 GLsizei width,
8219 GLsizei height,
8220 GLenum format,
8221 GLsizei imageSize,
8222 const void* data) {
8223 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage2D")
8224 gl_api_->glCompressedTexSubImage2DFn(target, level, xoffset, yoffset, width,
8225 height, format, imageSize, data);
8228 void TraceGLApi::glCompressedTexSubImage3DFn(GLenum target,
8229 GLint level,
8230 GLint xoffset,
8231 GLint yoffset,
8232 GLint zoffset,
8233 GLsizei width,
8234 GLsizei height,
8235 GLsizei depth,
8236 GLenum format,
8237 GLsizei imageSize,
8238 const void* data) {
8239 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage3D")
8240 gl_api_->glCompressedTexSubImage3DFn(target, level, xoffset, yoffset, zoffset,
8241 width, height, depth, format, imageSize,
8242 data);
8245 void TraceGLApi::glCopyBufferSubDataFn(GLenum readTarget,
8246 GLenum writeTarget,
8247 GLintptr readOffset,
8248 GLintptr writeOffset,
8249 GLsizeiptr size) {
8250 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyBufferSubData")
8251 gl_api_->glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
8252 writeOffset, size);
8255 void TraceGLApi::glCopyTexImage2DFn(GLenum target,
8256 GLint level,
8257 GLenum internalformat,
8258 GLint x,
8259 GLint y,
8260 GLsizei width,
8261 GLsizei height,
8262 GLint border) {
8263 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexImage2D")
8264 gl_api_->glCopyTexImage2DFn(target, level, internalformat, x, y, width,
8265 height, border);
8268 void TraceGLApi::glCopyTexSubImage2DFn(GLenum target,
8269 GLint level,
8270 GLint xoffset,
8271 GLint yoffset,
8272 GLint x,
8273 GLint y,
8274 GLsizei width,
8275 GLsizei height) {
8276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage2D")
8277 gl_api_->glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y, width,
8278 height);
8281 void TraceGLApi::glCopyTexSubImage3DFn(GLenum target,
8282 GLint level,
8283 GLint xoffset,
8284 GLint yoffset,
8285 GLint zoffset,
8286 GLint x,
8287 GLint y,
8288 GLsizei width,
8289 GLsizei height) {
8290 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D")
8291 gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y,
8292 width, height);
8295 void TraceGLApi::glCoverFillPathNVFn(GLuint path, GLenum coverMode) {
8296 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverFillPathNV")
8297 gl_api_->glCoverFillPathNVFn(path, coverMode);
8300 void TraceGLApi::glCoverStrokePathNVFn(GLuint name, GLenum coverMode) {
8301 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverStrokePathNV")
8302 gl_api_->glCoverStrokePathNVFn(name, coverMode);
8305 GLuint TraceGLApi::glCreateProgramFn(void) {
8306 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateProgram")
8307 return gl_api_->glCreateProgramFn();
8310 GLuint TraceGLApi::glCreateShaderFn(GLenum type) {
8311 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateShader")
8312 return gl_api_->glCreateShaderFn(type);
8315 void TraceGLApi::glCullFaceFn(GLenum mode) {
8316 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCullFace")
8317 gl_api_->glCullFaceFn(mode);
8320 void TraceGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
8321 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteBuffersARB")
8322 gl_api_->glDeleteBuffersARBFn(n, buffers);
8325 void TraceGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
8326 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesAPPLE")
8327 gl_api_->glDeleteFencesAPPLEFn(n, fences);
8330 void TraceGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
8331 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesNV")
8332 gl_api_->glDeleteFencesNVFn(n, fences);
8335 void TraceGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
8336 const GLuint* framebuffers) {
8337 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFramebuffersEXT")
8338 gl_api_->glDeleteFramebuffersEXTFn(n, framebuffers);
8341 void TraceGLApi::glDeletePathsNVFn(GLuint path, GLsizei range) {
8342 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeletePathsNV")
8343 gl_api_->glDeletePathsNVFn(path, range);
8346 void TraceGLApi::glDeleteProgramFn(GLuint program) {
8347 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteProgram")
8348 gl_api_->glDeleteProgramFn(program);
8351 void TraceGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
8352 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteQueries")
8353 gl_api_->glDeleteQueriesFn(n, ids);
8356 void TraceGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
8357 const GLuint* renderbuffers) {
8358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteRenderbuffersEXT")
8359 gl_api_->glDeleteRenderbuffersEXTFn(n, renderbuffers);
8362 void TraceGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
8363 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSamplers")
8364 gl_api_->glDeleteSamplersFn(n, samplers);
8367 void TraceGLApi::glDeleteShaderFn(GLuint shader) {
8368 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteShader")
8369 gl_api_->glDeleteShaderFn(shader);
8372 void TraceGLApi::glDeleteSyncFn(GLsync sync) {
8373 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSync")
8374 gl_api_->glDeleteSyncFn(sync);
8377 void TraceGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
8378 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTextures")
8379 gl_api_->glDeleteTexturesFn(n, textures);
8382 void TraceGLApi::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
8383 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTransformFeedbacks")
8384 gl_api_->glDeleteTransformFeedbacksFn(n, ids);
8387 void TraceGLApi::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
8388 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteVertexArraysOES")
8389 gl_api_->glDeleteVertexArraysOESFn(n, arrays);
8392 void TraceGLApi::glDepthFuncFn(GLenum func) {
8393 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthFunc")
8394 gl_api_->glDepthFuncFn(func);
8397 void TraceGLApi::glDepthMaskFn(GLboolean flag) {
8398 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthMask")
8399 gl_api_->glDepthMaskFn(flag);
8402 void TraceGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
8403 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRange")
8404 gl_api_->glDepthRangeFn(zNear, zFar);
8407 void TraceGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
8408 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRangef")
8409 gl_api_->glDepthRangefFn(zNear, zFar);
8412 void TraceGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
8413 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDetachShader")
8414 gl_api_->glDetachShaderFn(program, shader);
8417 void TraceGLApi::glDisableFn(GLenum cap) {
8418 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisable")
8419 gl_api_->glDisableFn(cap);
8422 void TraceGLApi::glDisableVertexAttribArrayFn(GLuint index) {
8423 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisableVertexAttribArray")
8424 gl_api_->glDisableVertexAttribArrayFn(index);
8427 void TraceGLApi::glDiscardFramebufferEXTFn(GLenum target,
8428 GLsizei numAttachments,
8429 const GLenum* attachments) {
8430 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDiscardFramebufferEXT")
8431 gl_api_->glDiscardFramebufferEXTFn(target, numAttachments, attachments);
8434 void TraceGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
8435 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArrays")
8436 gl_api_->glDrawArraysFn(mode, first, count);
8439 void TraceGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
8440 GLint first,
8441 GLsizei count,
8442 GLsizei primcount) {
8443 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArraysInstancedANGLE")
8444 gl_api_->glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
8447 void TraceGLApi::glDrawBufferFn(GLenum mode) {
8448 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffer")
8449 gl_api_->glDrawBufferFn(mode);
8452 void TraceGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
8453 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffersARB")
8454 gl_api_->glDrawBuffersARBFn(n, bufs);
8457 void TraceGLApi::glDrawElementsFn(GLenum mode,
8458 GLsizei count,
8459 GLenum type,
8460 const void* indices) {
8461 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawElements")
8462 gl_api_->glDrawElementsFn(mode, count, type, indices);
8465 void TraceGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
8466 GLsizei count,
8467 GLenum type,
8468 const void* indices,
8469 GLsizei primcount) {
8470 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8471 "TraceGLAPI::glDrawElementsInstancedANGLE")
8472 gl_api_->glDrawElementsInstancedANGLEFn(mode, count, type, indices,
8473 primcount);
8476 void TraceGLApi::glDrawRangeElementsFn(GLenum mode,
8477 GLuint start,
8478 GLuint end,
8479 GLsizei count,
8480 GLenum type,
8481 const void* indices) {
8482 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawRangeElements")
8483 gl_api_->glDrawRangeElementsFn(mode, start, end, count, type, indices);
8486 void TraceGLApi::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
8487 GLeglImageOES image) {
8488 TRACE_EVENT_BINARY_EFFICIENT0(
8489 "gpu", "TraceGLAPI::glEGLImageTargetRenderbufferStorageOES")
8490 gl_api_->glEGLImageTargetRenderbufferStorageOESFn(target, image);
8493 void TraceGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
8494 GLeglImageOES image) {
8495 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8496 "TraceGLAPI::glEGLImageTargetTexture2DOES")
8497 gl_api_->glEGLImageTargetTexture2DOESFn(target, image);
8500 void TraceGLApi::glEnableFn(GLenum cap) {
8501 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnable")
8502 gl_api_->glEnableFn(cap);
8505 void TraceGLApi::glEnableVertexAttribArrayFn(GLuint index) {
8506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnableVertexAttribArray")
8507 gl_api_->glEnableVertexAttribArrayFn(index);
8510 void TraceGLApi::glEndQueryFn(GLenum target) {
8511 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndQuery")
8512 gl_api_->glEndQueryFn(target);
8515 void TraceGLApi::glEndTransformFeedbackFn(void) {
8516 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndTransformFeedback")
8517 gl_api_->glEndTransformFeedbackFn();
8520 GLsync TraceGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
8521 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFenceSync")
8522 return gl_api_->glFenceSyncFn(condition, flags);
8525 void TraceGLApi::glFinishFn(void) {
8526 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinish")
8527 gl_api_->glFinishFn();
8530 void TraceGLApi::glFinishFenceAPPLEFn(GLuint fence) {
8531 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceAPPLE")
8532 gl_api_->glFinishFenceAPPLEFn(fence);
8535 void TraceGLApi::glFinishFenceNVFn(GLuint fence) {
8536 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceNV")
8537 gl_api_->glFinishFenceNVFn(fence);
8540 void TraceGLApi::glFlushFn(void) {
8541 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlush")
8542 gl_api_->glFlushFn();
8545 void TraceGLApi::glFlushMappedBufferRangeFn(GLenum target,
8546 GLintptr offset,
8547 GLsizeiptr length) {
8548 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlushMappedBufferRange")
8549 gl_api_->glFlushMappedBufferRangeFn(target, offset, length);
8552 void TraceGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
8553 GLenum attachment,
8554 GLenum renderbuffertarget,
8555 GLuint renderbuffer) {
8556 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8557 "TraceGLAPI::glFramebufferRenderbufferEXT")
8558 gl_api_->glFramebufferRenderbufferEXTFn(target, attachment,
8559 renderbuffertarget, renderbuffer);
8562 void TraceGLApi::glFramebufferTexture2DEXTFn(GLenum target,
8563 GLenum attachment,
8564 GLenum textarget,
8565 GLuint texture,
8566 GLint level) {
8567 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTexture2DEXT")
8568 gl_api_->glFramebufferTexture2DEXTFn(target, attachment, textarget, texture,
8569 level);
8572 void TraceGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
8573 GLenum attachment,
8574 GLenum textarget,
8575 GLuint texture,
8576 GLint level,
8577 GLsizei samples) {
8578 TRACE_EVENT_BINARY_EFFICIENT0(
8579 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleEXT")
8580 gl_api_->glFramebufferTexture2DMultisampleEXTFn(target, attachment, textarget,
8581 texture, level, samples);
8584 void TraceGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
8585 GLenum attachment,
8586 GLenum textarget,
8587 GLuint texture,
8588 GLint level,
8589 GLsizei samples) {
8590 TRACE_EVENT_BINARY_EFFICIENT0(
8591 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleIMG")
8592 gl_api_->glFramebufferTexture2DMultisampleIMGFn(target, attachment, textarget,
8593 texture, level, samples);
8596 void TraceGLApi::glFramebufferTextureLayerFn(GLenum target,
8597 GLenum attachment,
8598 GLuint texture,
8599 GLint level,
8600 GLint layer) {
8601 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTextureLayer")
8602 gl_api_->glFramebufferTextureLayerFn(target, attachment, texture, level,
8603 layer);
8606 void TraceGLApi::glFrontFaceFn(GLenum mode) {
8607 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFrontFace")
8608 gl_api_->glFrontFaceFn(mode);
8611 void TraceGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
8612 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenBuffersARB")
8613 gl_api_->glGenBuffersARBFn(n, buffers);
8616 void TraceGLApi::glGenerateMipmapEXTFn(GLenum target) {
8617 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenerateMipmapEXT")
8618 gl_api_->glGenerateMipmapEXTFn(target);
8621 void TraceGLApi::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
8622 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesAPPLE")
8623 gl_api_->glGenFencesAPPLEFn(n, fences);
8626 void TraceGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
8627 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesNV")
8628 gl_api_->glGenFencesNVFn(n, fences);
8631 void TraceGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
8632 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFramebuffersEXT")
8633 gl_api_->glGenFramebuffersEXTFn(n, framebuffers);
8636 GLuint TraceGLApi::glGenPathsNVFn(GLsizei range) {
8637 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenPathsNV")
8638 return gl_api_->glGenPathsNVFn(range);
8641 void TraceGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
8642 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenQueries")
8643 gl_api_->glGenQueriesFn(n, ids);
8646 void TraceGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
8647 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenRenderbuffersEXT")
8648 gl_api_->glGenRenderbuffersEXTFn(n, renderbuffers);
8651 void TraceGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
8652 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenSamplers")
8653 gl_api_->glGenSamplersFn(n, samplers);
8656 void TraceGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
8657 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTextures")
8658 gl_api_->glGenTexturesFn(n, textures);
8661 void TraceGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
8662 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTransformFeedbacks")
8663 gl_api_->glGenTransformFeedbacksFn(n, ids);
8666 void TraceGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
8667 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenVertexArraysOES")
8668 gl_api_->glGenVertexArraysOESFn(n, arrays);
8671 void TraceGLApi::glGetActiveAttribFn(GLuint program,
8672 GLuint index,
8673 GLsizei bufsize,
8674 GLsizei* length,
8675 GLint* size,
8676 GLenum* type,
8677 char* name) {
8678 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveAttrib")
8679 gl_api_->glGetActiveAttribFn(program, index, bufsize, length, size, type,
8680 name);
8683 void TraceGLApi::glGetActiveUniformFn(GLuint program,
8684 GLuint index,
8685 GLsizei bufsize,
8686 GLsizei* length,
8687 GLint* size,
8688 GLenum* type,
8689 char* name) {
8690 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniform")
8691 gl_api_->glGetActiveUniformFn(program, index, bufsize, length, size, type,
8692 name);
8695 void TraceGLApi::glGetActiveUniformBlockivFn(GLuint program,
8696 GLuint uniformBlockIndex,
8697 GLenum pname,
8698 GLint* params) {
8699 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformBlockiv")
8700 gl_api_->glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
8701 params);
8704 void TraceGLApi::glGetActiveUniformBlockNameFn(GLuint program,
8705 GLuint uniformBlockIndex,
8706 GLsizei bufSize,
8707 GLsizei* length,
8708 char* uniformBlockName) {
8709 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8710 "TraceGLAPI::glGetActiveUniformBlockName")
8711 gl_api_->glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
8712 length, uniformBlockName);
8715 void TraceGLApi::glGetActiveUniformsivFn(GLuint program,
8716 GLsizei uniformCount,
8717 const GLuint* uniformIndices,
8718 GLenum pname,
8719 GLint* params) {
8720 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformsiv")
8721 gl_api_->glGetActiveUniformsivFn(program, uniformCount, uniformIndices, pname,
8722 params);
8725 void TraceGLApi::glGetAttachedShadersFn(GLuint program,
8726 GLsizei maxcount,
8727 GLsizei* count,
8728 GLuint* shaders) {
8729 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttachedShaders")
8730 gl_api_->glGetAttachedShadersFn(program, maxcount, count, shaders);
8733 GLint TraceGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
8734 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttribLocation")
8735 return gl_api_->glGetAttribLocationFn(program, name);
8738 void TraceGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
8739 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBooleanv")
8740 gl_api_->glGetBooleanvFn(pname, params);
8743 void TraceGLApi::glGetBufferParameterivFn(GLenum target,
8744 GLenum pname,
8745 GLint* params) {
8746 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBufferParameteriv")
8747 gl_api_->glGetBufferParameterivFn(target, pname, params);
8750 GLenum TraceGLApi::glGetErrorFn(void) {
8751 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetError")
8752 return gl_api_->glGetErrorFn();
8755 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
8756 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV")
8757 gl_api_->glGetFenceivNVFn(fence, pname, params);
8760 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
8761 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv")
8762 gl_api_->glGetFloatvFn(pname, params);
8765 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) {
8766 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation")
8767 return gl_api_->glGetFragDataLocationFn(program, name);
8770 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
8771 GLenum attachment,
8772 GLenum pname,
8773 GLint* params) {
8774 TRACE_EVENT_BINARY_EFFICIENT0(
8775 "gpu", "TraceGLAPI::glGetFramebufferAttachmentParameterivEXT")
8776 gl_api_->glGetFramebufferAttachmentParameterivEXTFn(target, attachment, pname,
8777 params);
8780 GLenum TraceGLApi::glGetGraphicsResetStatusARBFn(void) {
8781 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8782 "TraceGLAPI::glGetGraphicsResetStatusARB")
8783 return gl_api_->glGetGraphicsResetStatusARBFn();
8786 void TraceGLApi::glGetInteger64i_vFn(GLenum target,
8787 GLuint index,
8788 GLint64* data) {
8789 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64i_v")
8790 gl_api_->glGetInteger64i_vFn(target, index, data);
8793 void TraceGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
8794 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64v")
8795 gl_api_->glGetInteger64vFn(pname, params);
8798 void TraceGLApi::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
8799 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegeri_v")
8800 gl_api_->glGetIntegeri_vFn(target, index, data);
8803 void TraceGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
8804 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegerv")
8805 gl_api_->glGetIntegervFn(pname, params);
8808 void TraceGLApi::glGetInternalformativFn(GLenum target,
8809 GLenum internalformat,
8810 GLenum pname,
8811 GLsizei bufSize,
8812 GLint* params) {
8813 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInternalformativ")
8814 gl_api_->glGetInternalformativFn(target, internalformat, pname, bufSize,
8815 params);
8818 void TraceGLApi::glGetProgramBinaryFn(GLuint program,
8819 GLsizei bufSize,
8820 GLsizei* length,
8821 GLenum* binaryFormat,
8822 GLvoid* binary) {
8823 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramBinary")
8824 gl_api_->glGetProgramBinaryFn(program, bufSize, length, binaryFormat, binary);
8827 void TraceGLApi::glGetProgramInfoLogFn(GLuint program,
8828 GLsizei bufsize,
8829 GLsizei* length,
8830 char* infolog) {
8831 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramInfoLog")
8832 gl_api_->glGetProgramInfoLogFn(program, bufsize, length, infolog);
8835 void TraceGLApi::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
8836 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramiv")
8837 gl_api_->glGetProgramivFn(program, pname, params);
8840 GLint TraceGLApi::glGetProgramResourceLocationFn(GLuint program,
8841 GLenum programInterface,
8842 const char* name) {
8843 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8844 "TraceGLAPI::glGetProgramResourceLocation")
8845 return gl_api_->glGetProgramResourceLocationFn(program, programInterface,
8846 name);
8849 void TraceGLApi::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
8850 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryiv")
8851 gl_api_->glGetQueryivFn(target, pname, params);
8854 void TraceGLApi::glGetQueryObjecti64vFn(GLuint id,
8855 GLenum pname,
8856 GLint64* params) {
8857 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjecti64v")
8858 gl_api_->glGetQueryObjecti64vFn(id, pname, params);
8861 void TraceGLApi::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
8862 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectiv")
8863 gl_api_->glGetQueryObjectivFn(id, pname, params);
8866 void TraceGLApi::glGetQueryObjectui64vFn(GLuint id,
8867 GLenum pname,
8868 GLuint64* params) {
8869 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectui64v")
8870 gl_api_->glGetQueryObjectui64vFn(id, pname, params);
8873 void TraceGLApi::glGetQueryObjectuivFn(GLuint id,
8874 GLenum pname,
8875 GLuint* params) {
8876 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectuiv")
8877 gl_api_->glGetQueryObjectuivFn(id, pname, params);
8880 void TraceGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
8881 GLenum pname,
8882 GLint* params) {
8883 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8884 "TraceGLAPI::glGetRenderbufferParameterivEXT")
8885 gl_api_->glGetRenderbufferParameterivEXTFn(target, pname, params);
8888 void TraceGLApi::glGetSamplerParameterfvFn(GLuint sampler,
8889 GLenum pname,
8890 GLfloat* params) {
8891 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameterfv")
8892 gl_api_->glGetSamplerParameterfvFn(sampler, pname, params);
8895 void TraceGLApi::glGetSamplerParameterivFn(GLuint sampler,
8896 GLenum pname,
8897 GLint* params) {
8898 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameteriv")
8899 gl_api_->glGetSamplerParameterivFn(sampler, pname, params);
8902 void TraceGLApi::glGetShaderInfoLogFn(GLuint shader,
8903 GLsizei bufsize,
8904 GLsizei* length,
8905 char* infolog) {
8906 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderInfoLog")
8907 gl_api_->glGetShaderInfoLogFn(shader, bufsize, length, infolog);
8910 void TraceGLApi::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
8911 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderiv")
8912 gl_api_->glGetShaderivFn(shader, pname, params);
8915 void TraceGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
8916 GLenum precisiontype,
8917 GLint* range,
8918 GLint* precision) {
8919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderPrecisionFormat")
8920 gl_api_->glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
8921 precision);
8924 void TraceGLApi::glGetShaderSourceFn(GLuint shader,
8925 GLsizei bufsize,
8926 GLsizei* length,
8927 char* source) {
8928 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource")
8929 gl_api_->glGetShaderSourceFn(shader, bufsize, length, source);
8932 const GLubyte* TraceGLApi::glGetStringFn(GLenum name) {
8933 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString")
8934 return gl_api_->glGetStringFn(name);
8937 const GLubyte* TraceGLApi::glGetStringiFn(GLenum name, GLuint index) {
8938 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetStringi")
8939 return gl_api_->glGetStringiFn(name, index);
8942 void TraceGLApi::glGetSyncivFn(GLsync sync,
8943 GLenum pname,
8944 GLsizei bufSize,
8945 GLsizei* length,
8946 GLint* values) {
8947 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv")
8948 gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values);
8951 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target,
8952 GLint level,
8953 GLenum pname,
8954 GLfloat* params) {
8955 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameterfv")
8956 gl_api_->glGetTexLevelParameterfvFn(target, level, pname, params);
8959 void TraceGLApi::glGetTexLevelParameterivFn(GLenum target,
8960 GLint level,
8961 GLenum pname,
8962 GLint* params) {
8963 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameteriv")
8964 gl_api_->glGetTexLevelParameterivFn(target, level, pname, params);
8967 void TraceGLApi::glGetTexParameterfvFn(GLenum target,
8968 GLenum pname,
8969 GLfloat* params) {
8970 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameterfv")
8971 gl_api_->glGetTexParameterfvFn(target, pname, params);
8974 void TraceGLApi::glGetTexParameterivFn(GLenum target,
8975 GLenum pname,
8976 GLint* params) {
8977 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameteriv")
8978 gl_api_->glGetTexParameterivFn(target, pname, params);
8981 void TraceGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
8982 GLuint index,
8983 GLsizei bufSize,
8984 GLsizei* length,
8985 GLsizei* size,
8986 GLenum* type,
8987 char* name) {
8988 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8989 "TraceGLAPI::glGetTransformFeedbackVarying")
8990 gl_api_->glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
8991 size, type, name);
8994 void TraceGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
8995 GLsizei bufsize,
8996 GLsizei* length,
8997 char* source) {
8998 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8999 "TraceGLAPI::glGetTranslatedShaderSourceANGLE")
9000 gl_api_->glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length, source);
9003 GLuint TraceGLApi::glGetUniformBlockIndexFn(GLuint program,
9004 const char* uniformBlockName) {
9005 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformBlockIndex")
9006 return gl_api_->glGetUniformBlockIndexFn(program, uniformBlockName);
9009 void TraceGLApi::glGetUniformfvFn(GLuint program,
9010 GLint location,
9011 GLfloat* params) {
9012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformfv")
9013 gl_api_->glGetUniformfvFn(program, location, params);
9016 void TraceGLApi::glGetUniformIndicesFn(GLuint program,
9017 GLsizei uniformCount,
9018 const char* const* uniformNames,
9019 GLuint* uniformIndices) {
9020 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformIndices")
9021 gl_api_->glGetUniformIndicesFn(program, uniformCount, uniformNames,
9022 uniformIndices);
9025 void TraceGLApi::glGetUniformivFn(GLuint program,
9026 GLint location,
9027 GLint* params) {
9028 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformiv")
9029 gl_api_->glGetUniformivFn(program, location, params);
9032 GLint TraceGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
9033 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformLocation")
9034 return gl_api_->glGetUniformLocationFn(program, name);
9037 void TraceGLApi::glGetUniformuivFn(GLuint program,
9038 GLint location,
9039 GLuint* params) {
9040 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformuiv")
9041 gl_api_->glGetUniformuivFn(program, location, params);
9044 void TraceGLApi::glGetVertexAttribfvFn(GLuint index,
9045 GLenum pname,
9046 GLfloat* params) {
9047 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribfv")
9048 gl_api_->glGetVertexAttribfvFn(index, pname, params);
9051 void TraceGLApi::glGetVertexAttribivFn(GLuint index,
9052 GLenum pname,
9053 GLint* params) {
9054 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribiv")
9055 gl_api_->glGetVertexAttribivFn(index, pname, params);
9058 void TraceGLApi::glGetVertexAttribPointervFn(GLuint index,
9059 GLenum pname,
9060 void** pointer) {
9061 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribPointerv")
9062 gl_api_->glGetVertexAttribPointervFn(index, pname, pointer);
9065 void TraceGLApi::glHintFn(GLenum target, GLenum mode) {
9066 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glHint")
9067 gl_api_->glHintFn(target, mode);
9070 void TraceGLApi::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
9071 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInsertEventMarkerEXT")
9072 gl_api_->glInsertEventMarkerEXTFn(length, marker);
9075 void TraceGLApi::glInvalidateFramebufferFn(GLenum target,
9076 GLsizei numAttachments,
9077 const GLenum* attachments) {
9078 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateFramebuffer")
9079 gl_api_->glInvalidateFramebufferFn(target, numAttachments, attachments);
9082 void TraceGLApi::glInvalidateSubFramebufferFn(GLenum target,
9083 GLsizei numAttachments,
9084 const GLenum* attachments,
9085 GLint x,
9086 GLint y,
9087 GLint width,
9088 GLint height) {
9089 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateSubFramebuffer")
9090 gl_api_->glInvalidateSubFramebufferFn(target, numAttachments, attachments, x,
9091 y, width, height);
9094 GLboolean TraceGLApi::glIsBufferFn(GLuint buffer) {
9095 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsBuffer")
9096 return gl_api_->glIsBufferFn(buffer);
9099 GLboolean TraceGLApi::glIsEnabledFn(GLenum cap) {
9100 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsEnabled")
9101 return gl_api_->glIsEnabledFn(cap);
9104 GLboolean TraceGLApi::glIsFenceAPPLEFn(GLuint fence) {
9105 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceAPPLE")
9106 return gl_api_->glIsFenceAPPLEFn(fence);
9109 GLboolean TraceGLApi::glIsFenceNVFn(GLuint fence) {
9110 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceNV")
9111 return gl_api_->glIsFenceNVFn(fence);
9114 GLboolean TraceGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
9115 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFramebufferEXT")
9116 return gl_api_->glIsFramebufferEXTFn(framebuffer);
9119 GLboolean TraceGLApi::glIsPathNVFn(GLuint path) {
9120 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsPathNV")
9121 return gl_api_->glIsPathNVFn(path);
9124 GLboolean TraceGLApi::glIsProgramFn(GLuint program) {
9125 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsProgram")
9126 return gl_api_->glIsProgramFn(program);
9129 GLboolean TraceGLApi::glIsQueryFn(GLuint query) {
9130 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsQuery")
9131 return gl_api_->glIsQueryFn(query);
9134 GLboolean TraceGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
9135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsRenderbufferEXT")
9136 return gl_api_->glIsRenderbufferEXTFn(renderbuffer);
9139 GLboolean TraceGLApi::glIsSamplerFn(GLuint sampler) {
9140 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSampler")
9141 return gl_api_->glIsSamplerFn(sampler);
9144 GLboolean TraceGLApi::glIsShaderFn(GLuint shader) {
9145 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsShader")
9146 return gl_api_->glIsShaderFn(shader);
9149 GLboolean TraceGLApi::glIsSyncFn(GLsync sync) {
9150 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSync")
9151 return gl_api_->glIsSyncFn(sync);
9154 GLboolean TraceGLApi::glIsTextureFn(GLuint texture) {
9155 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTexture")
9156 return gl_api_->glIsTextureFn(texture);
9159 GLboolean TraceGLApi::glIsTransformFeedbackFn(GLuint id) {
9160 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTransformFeedback")
9161 return gl_api_->glIsTransformFeedbackFn(id);
9164 GLboolean TraceGLApi::glIsVertexArrayOESFn(GLuint array) {
9165 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsVertexArrayOES")
9166 return gl_api_->glIsVertexArrayOESFn(array);
9169 void TraceGLApi::glLineWidthFn(GLfloat width) {
9170 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLineWidth")
9171 gl_api_->glLineWidthFn(width);
9174 void TraceGLApi::glLinkProgramFn(GLuint program) {
9175 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLinkProgram")
9176 gl_api_->glLinkProgramFn(program);
9179 void* TraceGLApi::glMapBufferFn(GLenum target, GLenum access) {
9180 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBuffer")
9181 return gl_api_->glMapBufferFn(target, access);
9184 void* TraceGLApi::glMapBufferRangeFn(GLenum target,
9185 GLintptr offset,
9186 GLsizeiptr length,
9187 GLbitfield access) {
9188 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBufferRange")
9189 return gl_api_->glMapBufferRangeFn(target, offset, length, access);
9192 void TraceGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
9193 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadfEXT")
9194 gl_api_->glMatrixLoadfEXTFn(matrixMode, m);
9197 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
9198 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT")
9199 gl_api_->glMatrixLoadIdentityEXTFn(matrixMode);
9202 void TraceGLApi::glPathCommandsNVFn(GLuint path,
9203 GLsizei numCommands,
9204 const GLubyte* commands,
9205 GLsizei numCoords,
9206 GLenum coordType,
9207 const GLvoid* coords) {
9208 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathCommandsNV")
9209 gl_api_->glPathCommandsNVFn(path, numCommands, commands, numCoords, coordType,
9210 coords);
9213 void TraceGLApi::glPathParameterfNVFn(GLuint path,
9214 GLenum pname,
9215 GLfloat value) {
9216 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathParameterfNV")
9217 gl_api_->glPathParameterfNVFn(path, pname, value);
9220 void TraceGLApi::glPathParameteriNVFn(GLuint path, GLenum pname, GLint value) {
9221 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathParameteriNV")
9222 gl_api_->glPathParameteriNVFn(path, pname, value);
9225 void TraceGLApi::glPathStencilFuncNVFn(GLenum func, GLint ref, GLuint mask) {
9226 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathStencilFuncNV")
9227 gl_api_->glPathStencilFuncNVFn(func, ref, mask);
9230 void TraceGLApi::glPauseTransformFeedbackFn(void) {
9231 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPauseTransformFeedback")
9232 gl_api_->glPauseTransformFeedbackFn();
9235 void TraceGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
9236 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPixelStorei")
9237 gl_api_->glPixelStoreiFn(pname, param);
9240 void TraceGLApi::glPointParameteriFn(GLenum pname, GLint param) {
9241 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPointParameteri")
9242 gl_api_->glPointParameteriFn(pname, param);
9245 void TraceGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
9246 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffset")
9247 gl_api_->glPolygonOffsetFn(factor, units);
9250 void TraceGLApi::glPopGroupMarkerEXTFn(void) {
9251 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopGroupMarkerEXT")
9252 gl_api_->glPopGroupMarkerEXTFn();
9255 void TraceGLApi::glProgramBinaryFn(GLuint program,
9256 GLenum binaryFormat,
9257 const GLvoid* binary,
9258 GLsizei length) {
9259 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramBinary")
9260 gl_api_->glProgramBinaryFn(program, binaryFormat, binary, length);
9263 void TraceGLApi::glProgramParameteriFn(GLuint program,
9264 GLenum pname,
9265 GLint value) {
9266 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramParameteri")
9267 gl_api_->glProgramParameteriFn(program, pname, value);
9270 void TraceGLApi::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
9271 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushGroupMarkerEXT")
9272 gl_api_->glPushGroupMarkerEXTFn(length, marker);
9275 void TraceGLApi::glQueryCounterFn(GLuint id, GLenum target) {
9276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glQueryCounter")
9277 gl_api_->glQueryCounterFn(id, target);
9280 void TraceGLApi::glReadBufferFn(GLenum src) {
9281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadBuffer")
9282 gl_api_->glReadBufferFn(src);
9285 void TraceGLApi::glReadPixelsFn(GLint x,
9286 GLint y,
9287 GLsizei width,
9288 GLsizei height,
9289 GLenum format,
9290 GLenum type,
9291 void* pixels) {
9292 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixels")
9293 gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels);
9296 void TraceGLApi::glReleaseShaderCompilerFn(void) {
9297 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseShaderCompiler")
9298 gl_api_->glReleaseShaderCompilerFn();
9301 void TraceGLApi::glRenderbufferStorageEXTFn(GLenum target,
9302 GLenum internalformat,
9303 GLsizei width,
9304 GLsizei height) {
9305 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glRenderbufferStorageEXT")
9306 gl_api_->glRenderbufferStorageEXTFn(target, internalformat, width, height);
9309 void TraceGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
9310 GLsizei samples,
9311 GLenum internalformat,
9312 GLsizei width,
9313 GLsizei height) {
9314 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9315 "TraceGLAPI::glRenderbufferStorageMultisample")
9316 gl_api_->glRenderbufferStorageMultisampleFn(target, samples, internalformat,
9317 width, height);
9320 void TraceGLApi::glRenderbufferStorageMultisampleANGLEFn(GLenum target,
9321 GLsizei samples,
9322 GLenum internalformat,
9323 GLsizei width,
9324 GLsizei height) {
9325 TRACE_EVENT_BINARY_EFFICIENT0(
9326 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleANGLE")
9327 gl_api_->glRenderbufferStorageMultisampleANGLEFn(
9328 target, samples, internalformat, width, height);
9331 void TraceGLApi::glRenderbufferStorageMultisampleEXTFn(GLenum target,
9332 GLsizei samples,
9333 GLenum internalformat,
9334 GLsizei width,
9335 GLsizei height) {
9336 TRACE_EVENT_BINARY_EFFICIENT0(
9337 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleEXT")
9338 gl_api_->glRenderbufferStorageMultisampleEXTFn(target, samples,
9339 internalformat, width, height);
9342 void TraceGLApi::glRenderbufferStorageMultisampleIMGFn(GLenum target,
9343 GLsizei samples,
9344 GLenum internalformat,
9345 GLsizei width,
9346 GLsizei height) {
9347 TRACE_EVENT_BINARY_EFFICIENT0(
9348 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleIMG")
9349 gl_api_->glRenderbufferStorageMultisampleIMGFn(target, samples,
9350 internalformat, width, height);
9353 void TraceGLApi::glResumeTransformFeedbackFn(void) {
9354 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glResumeTransformFeedback")
9355 gl_api_->glResumeTransformFeedbackFn();
9358 void TraceGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
9359 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSampleCoverage")
9360 gl_api_->glSampleCoverageFn(value, invert);
9363 void TraceGLApi::glSamplerParameterfFn(GLuint sampler,
9364 GLenum pname,
9365 GLfloat param) {
9366 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterf")
9367 gl_api_->glSamplerParameterfFn(sampler, pname, param);
9370 void TraceGLApi::glSamplerParameterfvFn(GLuint sampler,
9371 GLenum pname,
9372 const GLfloat* params) {
9373 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterfv")
9374 gl_api_->glSamplerParameterfvFn(sampler, pname, params);
9377 void TraceGLApi::glSamplerParameteriFn(GLuint sampler,
9378 GLenum pname,
9379 GLint param) {
9380 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteri")
9381 gl_api_->glSamplerParameteriFn(sampler, pname, param);
9384 void TraceGLApi::glSamplerParameterivFn(GLuint sampler,
9385 GLenum pname,
9386 const GLint* params) {
9387 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteriv")
9388 gl_api_->glSamplerParameterivFn(sampler, pname, params);
9391 void TraceGLApi::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
9392 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glScissor")
9393 gl_api_->glScissorFn(x, y, width, height);
9396 void TraceGLApi::glSetFenceAPPLEFn(GLuint fence) {
9397 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceAPPLE")
9398 gl_api_->glSetFenceAPPLEFn(fence);
9401 void TraceGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
9402 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceNV")
9403 gl_api_->glSetFenceNVFn(fence, condition);
9406 void TraceGLApi::glShaderBinaryFn(GLsizei n,
9407 const GLuint* shaders,
9408 GLenum binaryformat,
9409 const void* binary,
9410 GLsizei length) {
9411 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderBinary")
9412 gl_api_->glShaderBinaryFn(n, shaders, binaryformat, binary, length);
9415 void TraceGLApi::glShaderSourceFn(GLuint shader,
9416 GLsizei count,
9417 const char* const* str,
9418 const GLint* length) {
9419 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderSource")
9420 gl_api_->glShaderSourceFn(shader, count, str, length);
9423 void TraceGLApi::glStencilFillPathNVFn(GLuint path,
9424 GLenum fillMode,
9425 GLuint mask) {
9426 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFillPathNV")
9427 gl_api_->glStencilFillPathNVFn(path, fillMode, mask);
9430 void TraceGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
9431 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFunc")
9432 gl_api_->glStencilFuncFn(func, ref, mask);
9435 void TraceGLApi::glStencilFuncSeparateFn(GLenum face,
9436 GLenum func,
9437 GLint ref,
9438 GLuint mask) {
9439 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFuncSeparate")
9440 gl_api_->glStencilFuncSeparateFn(face, func, ref, mask);
9443 void TraceGLApi::glStencilMaskFn(GLuint mask) {
9444 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMask")
9445 gl_api_->glStencilMaskFn(mask);
9448 void TraceGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
9449 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMaskSeparate")
9450 gl_api_->glStencilMaskSeparateFn(face, mask);
9453 void TraceGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
9454 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOp")
9455 gl_api_->glStencilOpFn(fail, zfail, zpass);
9458 void TraceGLApi::glStencilOpSeparateFn(GLenum face,
9459 GLenum fail,
9460 GLenum zfail,
9461 GLenum zpass) {
9462 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOpSeparate")
9463 gl_api_->glStencilOpSeparateFn(face, fail, zfail, zpass);
9466 void TraceGLApi::glStencilStrokePathNVFn(GLuint path,
9467 GLint reference,
9468 GLuint mask) {
9469 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilStrokePathNV")
9470 gl_api_->glStencilStrokePathNVFn(path, reference, mask);
9473 void TraceGLApi::glStencilThenCoverFillPathNVFn(GLuint path,
9474 GLenum fillMode,
9475 GLuint mask,
9476 GLenum coverMode) {
9477 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9478 "TraceGLAPI::glStencilThenCoverFillPathNV")
9479 gl_api_->glStencilThenCoverFillPathNVFn(path, fillMode, mask, coverMode);
9482 void TraceGLApi::glStencilThenCoverStrokePathNVFn(GLuint path,
9483 GLint reference,
9484 GLuint mask,
9485 GLenum coverMode) {
9486 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9487 "TraceGLAPI::glStencilThenCoverStrokePathNV")
9488 gl_api_->glStencilThenCoverStrokePathNVFn(path, reference, mask, coverMode);
9491 GLboolean TraceGLApi::glTestFenceAPPLEFn(GLuint fence) {
9492 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceAPPLE")
9493 return gl_api_->glTestFenceAPPLEFn(fence);
9496 GLboolean TraceGLApi::glTestFenceNVFn(GLuint fence) {
9497 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceNV")
9498 return gl_api_->glTestFenceNVFn(fence);
9501 void TraceGLApi::glTexImage2DFn(GLenum target,
9502 GLint level,
9503 GLint internalformat,
9504 GLsizei width,
9505 GLsizei height,
9506 GLint border,
9507 GLenum format,
9508 GLenum type,
9509 const void* pixels) {
9510 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage2D")
9511 gl_api_->glTexImage2DFn(target, level, internalformat, width, height, border,
9512 format, type, pixels);
9515 void TraceGLApi::glTexImage3DFn(GLenum target,
9516 GLint level,
9517 GLint internalformat,
9518 GLsizei width,
9519 GLsizei height,
9520 GLsizei depth,
9521 GLint border,
9522 GLenum format,
9523 GLenum type,
9524 const void* pixels) {
9525 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage3D")
9526 gl_api_->glTexImage3DFn(target, level, internalformat, width, height, depth,
9527 border, format, type, pixels);
9530 void TraceGLApi::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
9531 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterf")
9532 gl_api_->glTexParameterfFn(target, pname, param);
9535 void TraceGLApi::glTexParameterfvFn(GLenum target,
9536 GLenum pname,
9537 const GLfloat* params) {
9538 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterfv")
9539 gl_api_->glTexParameterfvFn(target, pname, params);
9542 void TraceGLApi::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
9543 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteri")
9544 gl_api_->glTexParameteriFn(target, pname, param);
9547 void TraceGLApi::glTexParameterivFn(GLenum target,
9548 GLenum pname,
9549 const GLint* params) {
9550 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteriv")
9551 gl_api_->glTexParameterivFn(target, pname, params);
9554 void TraceGLApi::glTexStorage2DEXTFn(GLenum target,
9555 GLsizei levels,
9556 GLenum internalformat,
9557 GLsizei width,
9558 GLsizei height) {
9559 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage2DEXT")
9560 gl_api_->glTexStorage2DEXTFn(target, levels, internalformat, width, height);
9563 void TraceGLApi::glTexStorage3DFn(GLenum target,
9564 GLsizei levels,
9565 GLenum internalformat,
9566 GLsizei width,
9567 GLsizei height,
9568 GLsizei depth) {
9569 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage3D")
9570 gl_api_->glTexStorage3DFn(target, levels, internalformat, width, height,
9571 depth);
9574 void TraceGLApi::glTexSubImage2DFn(GLenum target,
9575 GLint level,
9576 GLint xoffset,
9577 GLint yoffset,
9578 GLsizei width,
9579 GLsizei height,
9580 GLenum format,
9581 GLenum type,
9582 const void* pixels) {
9583 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage2D")
9584 gl_api_->glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
9585 format, type, pixels);
9588 void TraceGLApi::glTexSubImage3DFn(GLenum target,
9589 GLint level,
9590 GLint xoffset,
9591 GLint yoffset,
9592 GLint zoffset,
9593 GLsizei width,
9594 GLsizei height,
9595 GLsizei depth,
9596 GLenum format,
9597 GLenum type,
9598 const void* pixels) {
9599 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage3D")
9600 gl_api_->glTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, width,
9601 height, depth, format, type, pixels);
9604 void TraceGLApi::glTransformFeedbackVaryingsFn(GLuint program,
9605 GLsizei count,
9606 const char* const* varyings,
9607 GLenum bufferMode) {
9608 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9609 "TraceGLAPI::glTransformFeedbackVaryings")
9610 gl_api_->glTransformFeedbackVaryingsFn(program, count, varyings, bufferMode);
9613 void TraceGLApi::glUniform1fFn(GLint location, GLfloat x) {
9614 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1f")
9615 gl_api_->glUniform1fFn(location, x);
9618 void TraceGLApi::glUniform1fvFn(GLint location,
9619 GLsizei count,
9620 const GLfloat* v) {
9621 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1fv")
9622 gl_api_->glUniform1fvFn(location, count, v);
9625 void TraceGLApi::glUniform1iFn(GLint location, GLint x) {
9626 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1i")
9627 gl_api_->glUniform1iFn(location, x);
9630 void TraceGLApi::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
9631 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1iv")
9632 gl_api_->glUniform1ivFn(location, count, v);
9635 void TraceGLApi::glUniform1uiFn(GLint location, GLuint v0) {
9636 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1ui")
9637 gl_api_->glUniform1uiFn(location, v0);
9640 void TraceGLApi::glUniform1uivFn(GLint location,
9641 GLsizei count,
9642 const GLuint* v) {
9643 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1uiv")
9644 gl_api_->glUniform1uivFn(location, count, v);
9647 void TraceGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
9648 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2f")
9649 gl_api_->glUniform2fFn(location, x, y);
9652 void TraceGLApi::glUniform2fvFn(GLint location,
9653 GLsizei count,
9654 const GLfloat* v) {
9655 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2fv")
9656 gl_api_->glUniform2fvFn(location, count, v);
9659 void TraceGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
9660 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2i")
9661 gl_api_->glUniform2iFn(location, x, y);
9664 void TraceGLApi::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
9665 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2iv")
9666 gl_api_->glUniform2ivFn(location, count, v);
9669 void TraceGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
9670 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2ui")
9671 gl_api_->glUniform2uiFn(location, v0, v1);
9674 void TraceGLApi::glUniform2uivFn(GLint location,
9675 GLsizei count,
9676 const GLuint* v) {
9677 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2uiv")
9678 gl_api_->glUniform2uivFn(location, count, v);
9681 void TraceGLApi::glUniform3fFn(GLint location,
9682 GLfloat x,
9683 GLfloat y,
9684 GLfloat z) {
9685 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3f")
9686 gl_api_->glUniform3fFn(location, x, y, z);
9689 void TraceGLApi::glUniform3fvFn(GLint location,
9690 GLsizei count,
9691 const GLfloat* v) {
9692 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3fv")
9693 gl_api_->glUniform3fvFn(location, count, v);
9696 void TraceGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
9697 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3i")
9698 gl_api_->glUniform3iFn(location, x, y, z);
9701 void TraceGLApi::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
9702 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3iv")
9703 gl_api_->glUniform3ivFn(location, count, v);
9706 void TraceGLApi::glUniform3uiFn(GLint location,
9707 GLuint v0,
9708 GLuint v1,
9709 GLuint v2) {
9710 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3ui")
9711 gl_api_->glUniform3uiFn(location, v0, v1, v2);
9714 void TraceGLApi::glUniform3uivFn(GLint location,
9715 GLsizei count,
9716 const GLuint* v) {
9717 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3uiv")
9718 gl_api_->glUniform3uivFn(location, count, v);
9721 void TraceGLApi::glUniform4fFn(GLint location,
9722 GLfloat x,
9723 GLfloat y,
9724 GLfloat z,
9725 GLfloat w) {
9726 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4f")
9727 gl_api_->glUniform4fFn(location, x, y, z, w);
9730 void TraceGLApi::glUniform4fvFn(GLint location,
9731 GLsizei count,
9732 const GLfloat* v) {
9733 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4fv")
9734 gl_api_->glUniform4fvFn(location, count, v);
9737 void TraceGLApi::glUniform4iFn(GLint location,
9738 GLint x,
9739 GLint y,
9740 GLint z,
9741 GLint w) {
9742 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4i")
9743 gl_api_->glUniform4iFn(location, x, y, z, w);
9746 void TraceGLApi::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
9747 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4iv")
9748 gl_api_->glUniform4ivFn(location, count, v);
9751 void TraceGLApi::glUniform4uiFn(GLint location,
9752 GLuint v0,
9753 GLuint v1,
9754 GLuint v2,
9755 GLuint v3) {
9756 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4ui")
9757 gl_api_->glUniform4uiFn(location, v0, v1, v2, v3);
9760 void TraceGLApi::glUniform4uivFn(GLint location,
9761 GLsizei count,
9762 const GLuint* v) {
9763 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4uiv")
9764 gl_api_->glUniform4uivFn(location, count, v);
9767 void TraceGLApi::glUniformBlockBindingFn(GLuint program,
9768 GLuint uniformBlockIndex,
9769 GLuint uniformBlockBinding) {
9770 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformBlockBinding")
9771 gl_api_->glUniformBlockBindingFn(program, uniformBlockIndex,
9772 uniformBlockBinding);
9775 void TraceGLApi::glUniformMatrix2fvFn(GLint location,
9776 GLsizei count,
9777 GLboolean transpose,
9778 const GLfloat* value) {
9779 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2fv")
9780 gl_api_->glUniformMatrix2fvFn(location, count, transpose, value);
9783 void TraceGLApi::glUniformMatrix2x3fvFn(GLint location,
9784 GLsizei count,
9785 GLboolean transpose,
9786 const GLfloat* value) {
9787 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x3fv")
9788 gl_api_->glUniformMatrix2x3fvFn(location, count, transpose, value);
9791 void TraceGLApi::glUniformMatrix2x4fvFn(GLint location,
9792 GLsizei count,
9793 GLboolean transpose,
9794 const GLfloat* value) {
9795 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x4fv")
9796 gl_api_->glUniformMatrix2x4fvFn(location, count, transpose, value);
9799 void TraceGLApi::glUniformMatrix3fvFn(GLint location,
9800 GLsizei count,
9801 GLboolean transpose,
9802 const GLfloat* value) {
9803 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3fv")
9804 gl_api_->glUniformMatrix3fvFn(location, count, transpose, value);
9807 void TraceGLApi::glUniformMatrix3x2fvFn(GLint location,
9808 GLsizei count,
9809 GLboolean transpose,
9810 const GLfloat* value) {
9811 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x2fv")
9812 gl_api_->glUniformMatrix3x2fvFn(location, count, transpose, value);
9815 void TraceGLApi::glUniformMatrix3x4fvFn(GLint location,
9816 GLsizei count,
9817 GLboolean transpose,
9818 const GLfloat* value) {
9819 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x4fv")
9820 gl_api_->glUniformMatrix3x4fvFn(location, count, transpose, value);
9823 void TraceGLApi::glUniformMatrix4fvFn(GLint location,
9824 GLsizei count,
9825 GLboolean transpose,
9826 const GLfloat* value) {
9827 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4fv")
9828 gl_api_->glUniformMatrix4fvFn(location, count, transpose, value);
9831 void TraceGLApi::glUniformMatrix4x2fvFn(GLint location,
9832 GLsizei count,
9833 GLboolean transpose,
9834 const GLfloat* value) {
9835 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x2fv")
9836 gl_api_->glUniformMatrix4x2fvFn(location, count, transpose, value);
9839 void TraceGLApi::glUniformMatrix4x3fvFn(GLint location,
9840 GLsizei count,
9841 GLboolean transpose,
9842 const GLfloat* value) {
9843 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x3fv")
9844 gl_api_->glUniformMatrix4x3fvFn(location, count, transpose, value);
9847 GLboolean TraceGLApi::glUnmapBufferFn(GLenum target) {
9848 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUnmapBuffer")
9849 return gl_api_->glUnmapBufferFn(target);
9852 void TraceGLApi::glUseProgramFn(GLuint program) {
9853 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUseProgram")
9854 gl_api_->glUseProgramFn(program);
9857 void TraceGLApi::glValidateProgramFn(GLuint program) {
9858 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glValidateProgram")
9859 gl_api_->glValidateProgramFn(program);
9862 void TraceGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
9863 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1f")
9864 gl_api_->glVertexAttrib1fFn(indx, x);
9867 void TraceGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
9868 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1fv")
9869 gl_api_->glVertexAttrib1fvFn(indx, values);
9872 void TraceGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
9873 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2f")
9874 gl_api_->glVertexAttrib2fFn(indx, x, y);
9877 void TraceGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
9878 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2fv")
9879 gl_api_->glVertexAttrib2fvFn(indx, values);
9882 void TraceGLApi::glVertexAttrib3fFn(GLuint indx,
9883 GLfloat x,
9884 GLfloat y,
9885 GLfloat z) {
9886 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3f")
9887 gl_api_->glVertexAttrib3fFn(indx, x, y, z);
9890 void TraceGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
9891 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3fv")
9892 gl_api_->glVertexAttrib3fvFn(indx, values);
9895 void TraceGLApi::glVertexAttrib4fFn(GLuint indx,
9896 GLfloat x,
9897 GLfloat y,
9898 GLfloat z,
9899 GLfloat w) {
9900 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4f")
9901 gl_api_->glVertexAttrib4fFn(indx, x, y, z, w);
9904 void TraceGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
9905 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4fv")
9906 gl_api_->glVertexAttrib4fvFn(indx, values);
9909 void TraceGLApi::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
9910 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribDivisorANGLE")
9911 gl_api_->glVertexAttribDivisorANGLEFn(index, divisor);
9914 void TraceGLApi::glVertexAttribI4iFn(GLuint indx,
9915 GLint x,
9916 GLint y,
9917 GLint z,
9918 GLint w) {
9919 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4i")
9920 gl_api_->glVertexAttribI4iFn(indx, x, y, z, w);
9923 void TraceGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
9924 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4iv")
9925 gl_api_->glVertexAttribI4ivFn(indx, values);
9928 void TraceGLApi::glVertexAttribI4uiFn(GLuint indx,
9929 GLuint x,
9930 GLuint y,
9931 GLuint z,
9932 GLuint w) {
9933 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4ui")
9934 gl_api_->glVertexAttribI4uiFn(indx, x, y, z, w);
9937 void TraceGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
9938 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4uiv")
9939 gl_api_->glVertexAttribI4uivFn(indx, values);
9942 void TraceGLApi::glVertexAttribIPointerFn(GLuint indx,
9943 GLint size,
9944 GLenum type,
9945 GLsizei stride,
9946 const void* ptr) {
9947 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribIPointer")
9948 gl_api_->glVertexAttribIPointerFn(indx, size, type, stride, ptr);
9951 void TraceGLApi::glVertexAttribPointerFn(GLuint indx,
9952 GLint size,
9953 GLenum type,
9954 GLboolean normalized,
9955 GLsizei stride,
9956 const void* ptr) {
9957 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribPointer")
9958 gl_api_->glVertexAttribPointerFn(indx, size, type, normalized, stride, ptr);
9961 void TraceGLApi::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
9962 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glViewport")
9963 gl_api_->glViewportFn(x, y, width, height);
9966 GLenum TraceGLApi::glWaitSyncFn(GLsync sync,
9967 GLbitfield flags,
9968 GLuint64 timeout) {
9969 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glWaitSync")
9970 return gl_api_->glWaitSyncFn(sync, flags, timeout);
9973 void NoContextGLApi::glActiveTextureFn(GLenum texture) {
9974 NOTREACHED() << "Trying to call glActiveTexture() without current GL context";
9975 LOG(ERROR) << "Trying to call glActiveTexture() without current GL context";
9978 void NoContextGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
9979 NOTREACHED() << "Trying to call glAttachShader() without current GL context";
9980 LOG(ERROR) << "Trying to call glAttachShader() without current GL context";
9983 void NoContextGLApi::glBeginQueryFn(GLenum target, GLuint id) {
9984 NOTREACHED() << "Trying to call glBeginQuery() without current GL context";
9985 LOG(ERROR) << "Trying to call glBeginQuery() without current GL context";
9988 void NoContextGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
9989 NOTREACHED()
9990 << "Trying to call glBeginTransformFeedback() without current GL context";
9991 LOG(ERROR)
9992 << "Trying to call glBeginTransformFeedback() without current GL context";
9995 void NoContextGLApi::glBindAttribLocationFn(GLuint program,
9996 GLuint index,
9997 const char* name) {
9998 NOTREACHED()
9999 << "Trying to call glBindAttribLocation() without current GL context";
10000 LOG(ERROR)
10001 << "Trying to call glBindAttribLocation() without current GL context";
10004 void NoContextGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
10005 NOTREACHED() << "Trying to call glBindBuffer() without current GL context";
10006 LOG(ERROR) << "Trying to call glBindBuffer() without current GL context";
10009 void NoContextGLApi::glBindBufferBaseFn(GLenum target,
10010 GLuint index,
10011 GLuint buffer) {
10012 NOTREACHED()
10013 << "Trying to call glBindBufferBase() without current GL context";
10014 LOG(ERROR) << "Trying to call glBindBufferBase() without current GL context";
10017 void NoContextGLApi::glBindBufferRangeFn(GLenum target,
10018 GLuint index,
10019 GLuint buffer,
10020 GLintptr offset,
10021 GLsizeiptr size) {
10022 NOTREACHED()
10023 << "Trying to call glBindBufferRange() without current GL context";
10024 LOG(ERROR) << "Trying to call glBindBufferRange() without current GL context";
10027 void NoContextGLApi::glBindFragDataLocationFn(GLuint program,
10028 GLuint colorNumber,
10029 const char* name) {
10030 NOTREACHED()
10031 << "Trying to call glBindFragDataLocation() without current GL context";
10032 LOG(ERROR)
10033 << "Trying to call glBindFragDataLocation() without current GL context";
10036 void NoContextGLApi::glBindFragDataLocationIndexedFn(GLuint program,
10037 GLuint colorNumber,
10038 GLuint index,
10039 const char* name) {
10040 NOTREACHED() << "Trying to call glBindFragDataLocationIndexed() without "
10041 "current GL context";
10042 LOG(ERROR) << "Trying to call glBindFragDataLocationIndexed() without "
10043 "current GL context";
10046 void NoContextGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
10047 NOTREACHED()
10048 << "Trying to call glBindFramebufferEXT() without current GL context";
10049 LOG(ERROR)
10050 << "Trying to call glBindFramebufferEXT() without current GL context";
10053 void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target,
10054 GLuint renderbuffer) {
10055 NOTREACHED()
10056 << "Trying to call glBindRenderbufferEXT() without current GL context";
10057 LOG(ERROR)
10058 << "Trying to call glBindRenderbufferEXT() without current GL context";
10061 void NoContextGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
10062 NOTREACHED() << "Trying to call glBindSampler() without current GL context";
10063 LOG(ERROR) << "Trying to call glBindSampler() without current GL context";
10066 void NoContextGLApi::glBindTextureFn(GLenum target, GLuint texture) {
10067 NOTREACHED() << "Trying to call glBindTexture() without current GL context";
10068 LOG(ERROR) << "Trying to call glBindTexture() without current GL context";
10071 void NoContextGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
10072 NOTREACHED()
10073 << "Trying to call glBindTransformFeedback() without current GL context";
10074 LOG(ERROR)
10075 << "Trying to call glBindTransformFeedback() without current GL context";
10078 void NoContextGLApi::glBindVertexArrayOESFn(GLuint array) {
10079 NOTREACHED()
10080 << "Trying to call glBindVertexArrayOES() without current GL context";
10081 LOG(ERROR)
10082 << "Trying to call glBindVertexArrayOES() without current GL context";
10085 void NoContextGLApi::glBlendBarrierKHRFn(void) {
10086 NOTREACHED()
10087 << "Trying to call glBlendBarrierKHR() without current GL context";
10088 LOG(ERROR) << "Trying to call glBlendBarrierKHR() without current GL context";
10091 void NoContextGLApi::glBlendColorFn(GLclampf red,
10092 GLclampf green,
10093 GLclampf blue,
10094 GLclampf alpha) {
10095 NOTREACHED() << "Trying to call glBlendColor() without current GL context";
10096 LOG(ERROR) << "Trying to call glBlendColor() without current GL context";
10099 void NoContextGLApi::glBlendEquationFn(GLenum mode) {
10100 NOTREACHED() << "Trying to call glBlendEquation() without current GL context";
10101 LOG(ERROR) << "Trying to call glBlendEquation() without current GL context";
10104 void NoContextGLApi::glBlendEquationSeparateFn(GLenum modeRGB,
10105 GLenum modeAlpha) {
10106 NOTREACHED()
10107 << "Trying to call glBlendEquationSeparate() without current GL context";
10108 LOG(ERROR)
10109 << "Trying to call glBlendEquationSeparate() without current GL context";
10112 void NoContextGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
10113 NOTREACHED() << "Trying to call glBlendFunc() without current GL context";
10114 LOG(ERROR) << "Trying to call glBlendFunc() without current GL context";
10117 void NoContextGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
10118 GLenum dstRGB,
10119 GLenum srcAlpha,
10120 GLenum dstAlpha) {
10121 NOTREACHED()
10122 << "Trying to call glBlendFuncSeparate() without current GL context";
10123 LOG(ERROR)
10124 << "Trying to call glBlendFuncSeparate() without current GL context";
10127 void NoContextGLApi::glBlitFramebufferFn(GLint srcX0,
10128 GLint srcY0,
10129 GLint srcX1,
10130 GLint srcY1,
10131 GLint dstX0,
10132 GLint dstY0,
10133 GLint dstX1,
10134 GLint dstY1,
10135 GLbitfield mask,
10136 GLenum filter) {
10137 NOTREACHED()
10138 << "Trying to call glBlitFramebuffer() without current GL context";
10139 LOG(ERROR) << "Trying to call glBlitFramebuffer() without current GL context";
10142 void NoContextGLApi::glBlitFramebufferANGLEFn(GLint srcX0,
10143 GLint srcY0,
10144 GLint srcX1,
10145 GLint srcY1,
10146 GLint dstX0,
10147 GLint dstY0,
10148 GLint dstX1,
10149 GLint dstY1,
10150 GLbitfield mask,
10151 GLenum filter) {
10152 NOTREACHED()
10153 << "Trying to call glBlitFramebufferANGLE() without current GL context";
10154 LOG(ERROR)
10155 << "Trying to call glBlitFramebufferANGLE() without current GL context";
10158 void NoContextGLApi::glBlitFramebufferEXTFn(GLint srcX0,
10159 GLint srcY0,
10160 GLint srcX1,
10161 GLint srcY1,
10162 GLint dstX0,
10163 GLint dstY0,
10164 GLint dstX1,
10165 GLint dstY1,
10166 GLbitfield mask,
10167 GLenum filter) {
10168 NOTREACHED()
10169 << "Trying to call glBlitFramebufferEXT() without current GL context";
10170 LOG(ERROR)
10171 << "Trying to call glBlitFramebufferEXT() without current GL context";
10174 void NoContextGLApi::glBufferDataFn(GLenum target,
10175 GLsizeiptr size,
10176 const void* data,
10177 GLenum usage) {
10178 NOTREACHED() << "Trying to call glBufferData() without current GL context";
10179 LOG(ERROR) << "Trying to call glBufferData() without current GL context";
10182 void NoContextGLApi::glBufferSubDataFn(GLenum target,
10183 GLintptr offset,
10184 GLsizeiptr size,
10185 const void* data) {
10186 NOTREACHED() << "Trying to call glBufferSubData() without current GL context";
10187 LOG(ERROR) << "Trying to call glBufferSubData() without current GL context";
10190 GLenum NoContextGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
10191 NOTREACHED() << "Trying to call glCheckFramebufferStatusEXT() without "
10192 "current GL context";
10193 LOG(ERROR) << "Trying to call glCheckFramebufferStatusEXT() without current "
10194 "GL context";
10195 return static_cast<GLenum>(0);
10198 void NoContextGLApi::glClearFn(GLbitfield mask) {
10199 NOTREACHED() << "Trying to call glClear() without current GL context";
10200 LOG(ERROR) << "Trying to call glClear() without current GL context";
10203 void NoContextGLApi::glClearBufferfiFn(GLenum buffer,
10204 GLint drawbuffer,
10205 const GLfloat depth,
10206 GLint stencil) {
10207 NOTREACHED() << "Trying to call glClearBufferfi() without current GL context";
10208 LOG(ERROR) << "Trying to call glClearBufferfi() without current GL context";
10211 void NoContextGLApi::glClearBufferfvFn(GLenum buffer,
10212 GLint drawbuffer,
10213 const GLfloat* value) {
10214 NOTREACHED() << "Trying to call glClearBufferfv() without current GL context";
10215 LOG(ERROR) << "Trying to call glClearBufferfv() without current GL context";
10218 void NoContextGLApi::glClearBufferivFn(GLenum buffer,
10219 GLint drawbuffer,
10220 const GLint* value) {
10221 NOTREACHED() << "Trying to call glClearBufferiv() without current GL context";
10222 LOG(ERROR) << "Trying to call glClearBufferiv() without current GL context";
10225 void NoContextGLApi::glClearBufferuivFn(GLenum buffer,
10226 GLint drawbuffer,
10227 const GLuint* value) {
10228 NOTREACHED()
10229 << "Trying to call glClearBufferuiv() without current GL context";
10230 LOG(ERROR) << "Trying to call glClearBufferuiv() without current GL context";
10233 void NoContextGLApi::glClearColorFn(GLclampf red,
10234 GLclampf green,
10235 GLclampf blue,
10236 GLclampf alpha) {
10237 NOTREACHED() << "Trying to call glClearColor() without current GL context";
10238 LOG(ERROR) << "Trying to call glClearColor() without current GL context";
10241 void NoContextGLApi::glClearDepthFn(GLclampd depth) {
10242 NOTREACHED() << "Trying to call glClearDepth() without current GL context";
10243 LOG(ERROR) << "Trying to call glClearDepth() without current GL context";
10246 void NoContextGLApi::glClearDepthfFn(GLclampf depth) {
10247 NOTREACHED() << "Trying to call glClearDepthf() without current GL context";
10248 LOG(ERROR) << "Trying to call glClearDepthf() without current GL context";
10251 void NoContextGLApi::glClearStencilFn(GLint s) {
10252 NOTREACHED() << "Trying to call glClearStencil() without current GL context";
10253 LOG(ERROR) << "Trying to call glClearStencil() without current GL context";
10256 GLenum NoContextGLApi::glClientWaitSyncFn(GLsync sync,
10257 GLbitfield flags,
10258 GLuint64 timeout) {
10259 NOTREACHED()
10260 << "Trying to call glClientWaitSync() without current GL context";
10261 LOG(ERROR) << "Trying to call glClientWaitSync() without current GL context";
10262 return static_cast<GLenum>(0);
10265 void NoContextGLApi::glColorMaskFn(GLboolean red,
10266 GLboolean green,
10267 GLboolean blue,
10268 GLboolean alpha) {
10269 NOTREACHED() << "Trying to call glColorMask() without current GL context";
10270 LOG(ERROR) << "Trying to call glColorMask() without current GL context";
10273 void NoContextGLApi::glCompileShaderFn(GLuint shader) {
10274 NOTREACHED() << "Trying to call glCompileShader() without current GL context";
10275 LOG(ERROR) << "Trying to call glCompileShader() without current GL context";
10278 void NoContextGLApi::glCompressedTexImage2DFn(GLenum target,
10279 GLint level,
10280 GLenum internalformat,
10281 GLsizei width,
10282 GLsizei height,
10283 GLint border,
10284 GLsizei imageSize,
10285 const void* data) {
10286 NOTREACHED()
10287 << "Trying to call glCompressedTexImage2D() without current GL context";
10288 LOG(ERROR)
10289 << "Trying to call glCompressedTexImage2D() without current GL context";
10292 void NoContextGLApi::glCompressedTexImage3DFn(GLenum target,
10293 GLint level,
10294 GLenum internalformat,
10295 GLsizei width,
10296 GLsizei height,
10297 GLsizei depth,
10298 GLint border,
10299 GLsizei imageSize,
10300 const void* data) {
10301 NOTREACHED()
10302 << "Trying to call glCompressedTexImage3D() without current GL context";
10303 LOG(ERROR)
10304 << "Trying to call glCompressedTexImage3D() without current GL context";
10307 void NoContextGLApi::glCompressedTexSubImage2DFn(GLenum target,
10308 GLint level,
10309 GLint xoffset,
10310 GLint yoffset,
10311 GLsizei width,
10312 GLsizei height,
10313 GLenum format,
10314 GLsizei imageSize,
10315 const void* data) {
10316 NOTREACHED() << "Trying to call glCompressedTexSubImage2D() without current "
10317 "GL context";
10318 LOG(ERROR) << "Trying to call glCompressedTexSubImage2D() without current GL "
10319 "context";
10322 void NoContextGLApi::glCompressedTexSubImage3DFn(GLenum target,
10323 GLint level,
10324 GLint xoffset,
10325 GLint yoffset,
10326 GLint zoffset,
10327 GLsizei width,
10328 GLsizei height,
10329 GLsizei depth,
10330 GLenum format,
10331 GLsizei imageSize,
10332 const void* data) {
10333 NOTREACHED() << "Trying to call glCompressedTexSubImage3D() without current "
10334 "GL context";
10335 LOG(ERROR) << "Trying to call glCompressedTexSubImage3D() without current GL "
10336 "context";
10339 void NoContextGLApi::glCopyBufferSubDataFn(GLenum readTarget,
10340 GLenum writeTarget,
10341 GLintptr readOffset,
10342 GLintptr writeOffset,
10343 GLsizeiptr size) {
10344 NOTREACHED()
10345 << "Trying to call glCopyBufferSubData() without current GL context";
10346 LOG(ERROR)
10347 << "Trying to call glCopyBufferSubData() without current GL context";
10350 void NoContextGLApi::glCopyTexImage2DFn(GLenum target,
10351 GLint level,
10352 GLenum internalformat,
10353 GLint x,
10354 GLint y,
10355 GLsizei width,
10356 GLsizei height,
10357 GLint border) {
10358 NOTREACHED()
10359 << "Trying to call glCopyTexImage2D() without current GL context";
10360 LOG(ERROR) << "Trying to call glCopyTexImage2D() without current GL context";
10363 void NoContextGLApi::glCopyTexSubImage2DFn(GLenum target,
10364 GLint level,
10365 GLint xoffset,
10366 GLint yoffset,
10367 GLint x,
10368 GLint y,
10369 GLsizei width,
10370 GLsizei height) {
10371 NOTREACHED()
10372 << "Trying to call glCopyTexSubImage2D() without current GL context";
10373 LOG(ERROR)
10374 << "Trying to call glCopyTexSubImage2D() without current GL context";
10377 void NoContextGLApi::glCopyTexSubImage3DFn(GLenum target,
10378 GLint level,
10379 GLint xoffset,
10380 GLint yoffset,
10381 GLint zoffset,
10382 GLint x,
10383 GLint y,
10384 GLsizei width,
10385 GLsizei height) {
10386 NOTREACHED()
10387 << "Trying to call glCopyTexSubImage3D() without current GL context";
10388 LOG(ERROR)
10389 << "Trying to call glCopyTexSubImage3D() without current GL context";
10392 void NoContextGLApi::glCoverFillPathNVFn(GLuint path, GLenum coverMode) {
10393 NOTREACHED()
10394 << "Trying to call glCoverFillPathNV() without current GL context";
10395 LOG(ERROR) << "Trying to call glCoverFillPathNV() without current GL context";
10398 void NoContextGLApi::glCoverStrokePathNVFn(GLuint name, GLenum coverMode) {
10399 NOTREACHED()
10400 << "Trying to call glCoverStrokePathNV() without current GL context";
10401 LOG(ERROR)
10402 << "Trying to call glCoverStrokePathNV() without current GL context";
10405 GLuint NoContextGLApi::glCreateProgramFn(void) {
10406 NOTREACHED() << "Trying to call glCreateProgram() without current GL context";
10407 LOG(ERROR) << "Trying to call glCreateProgram() without current GL context";
10408 return 0U;
10411 GLuint NoContextGLApi::glCreateShaderFn(GLenum type) {
10412 NOTREACHED() << "Trying to call glCreateShader() without current GL context";
10413 LOG(ERROR) << "Trying to call glCreateShader() without current GL context";
10414 return 0U;
10417 void NoContextGLApi::glCullFaceFn(GLenum mode) {
10418 NOTREACHED() << "Trying to call glCullFace() without current GL context";
10419 LOG(ERROR) << "Trying to call glCullFace() without current GL context";
10422 void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
10423 NOTREACHED()
10424 << "Trying to call glDeleteBuffersARB() without current GL context";
10425 LOG(ERROR)
10426 << "Trying to call glDeleteBuffersARB() without current GL context";
10429 void NoContextGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
10430 NOTREACHED()
10431 << "Trying to call glDeleteFencesAPPLE() without current GL context";
10432 LOG(ERROR)
10433 << "Trying to call glDeleteFencesAPPLE() without current GL context";
10436 void NoContextGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
10437 NOTREACHED()
10438 << "Trying to call glDeleteFencesNV() without current GL context";
10439 LOG(ERROR) << "Trying to call glDeleteFencesNV() without current GL context";
10442 void NoContextGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
10443 const GLuint* framebuffers) {
10444 NOTREACHED()
10445 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
10446 LOG(ERROR)
10447 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
10450 void NoContextGLApi::glDeletePathsNVFn(GLuint path, GLsizei range) {
10451 NOTREACHED() << "Trying to call glDeletePathsNV() without current GL context";
10452 LOG(ERROR) << "Trying to call glDeletePathsNV() without current GL context";
10455 void NoContextGLApi::glDeleteProgramFn(GLuint program) {
10456 NOTREACHED() << "Trying to call glDeleteProgram() without current GL context";
10457 LOG(ERROR) << "Trying to call glDeleteProgram() without current GL context";
10460 void NoContextGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
10461 NOTREACHED() << "Trying to call glDeleteQueries() without current GL context";
10462 LOG(ERROR) << "Trying to call glDeleteQueries() without current GL context";
10465 void NoContextGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
10466 const GLuint* renderbuffers) {
10467 NOTREACHED()
10468 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
10469 LOG(ERROR)
10470 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
10473 void NoContextGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
10474 NOTREACHED()
10475 << "Trying to call glDeleteSamplers() without current GL context";
10476 LOG(ERROR) << "Trying to call glDeleteSamplers() without current GL context";
10479 void NoContextGLApi::glDeleteShaderFn(GLuint shader) {
10480 NOTREACHED() << "Trying to call glDeleteShader() without current GL context";
10481 LOG(ERROR) << "Trying to call glDeleteShader() without current GL context";
10484 void NoContextGLApi::glDeleteSyncFn(GLsync sync) {
10485 NOTREACHED() << "Trying to call glDeleteSync() without current GL context";
10486 LOG(ERROR) << "Trying to call glDeleteSync() without current GL context";
10489 void NoContextGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
10490 NOTREACHED()
10491 << "Trying to call glDeleteTextures() without current GL context";
10492 LOG(ERROR) << "Trying to call glDeleteTextures() without current GL context";
10495 void NoContextGLApi::glDeleteTransformFeedbacksFn(GLsizei n,
10496 const GLuint* ids) {
10497 NOTREACHED() << "Trying to call glDeleteTransformFeedbacks() without current "
10498 "GL context";
10499 LOG(ERROR) << "Trying to call glDeleteTransformFeedbacks() without current "
10500 "GL context";
10503 void NoContextGLApi::glDeleteVertexArraysOESFn(GLsizei n,
10504 const GLuint* arrays) {
10505 NOTREACHED()
10506 << "Trying to call glDeleteVertexArraysOES() without current GL context";
10507 LOG(ERROR)
10508 << "Trying to call glDeleteVertexArraysOES() without current GL context";
10511 void NoContextGLApi::glDepthFuncFn(GLenum func) {
10512 NOTREACHED() << "Trying to call glDepthFunc() without current GL context";
10513 LOG(ERROR) << "Trying to call glDepthFunc() without current GL context";
10516 void NoContextGLApi::glDepthMaskFn(GLboolean flag) {
10517 NOTREACHED() << "Trying to call glDepthMask() without current GL context";
10518 LOG(ERROR) << "Trying to call glDepthMask() without current GL context";
10521 void NoContextGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
10522 NOTREACHED() << "Trying to call glDepthRange() without current GL context";
10523 LOG(ERROR) << "Trying to call glDepthRange() without current GL context";
10526 void NoContextGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
10527 NOTREACHED() << "Trying to call glDepthRangef() without current GL context";
10528 LOG(ERROR) << "Trying to call glDepthRangef() without current GL context";
10531 void NoContextGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
10532 NOTREACHED() << "Trying to call glDetachShader() without current GL context";
10533 LOG(ERROR) << "Trying to call glDetachShader() without current GL context";
10536 void NoContextGLApi::glDisableFn(GLenum cap) {
10537 NOTREACHED() << "Trying to call glDisable() without current GL context";
10538 LOG(ERROR) << "Trying to call glDisable() without current GL context";
10541 void NoContextGLApi::glDisableVertexAttribArrayFn(GLuint index) {
10542 NOTREACHED() << "Trying to call glDisableVertexAttribArray() without current "
10543 "GL context";
10544 LOG(ERROR) << "Trying to call glDisableVertexAttribArray() without current "
10545 "GL context";
10548 void NoContextGLApi::glDiscardFramebufferEXTFn(GLenum target,
10549 GLsizei numAttachments,
10550 const GLenum* attachments) {
10551 NOTREACHED()
10552 << "Trying to call glDiscardFramebufferEXT() without current GL context";
10553 LOG(ERROR)
10554 << "Trying to call glDiscardFramebufferEXT() without current GL context";
10557 void NoContextGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
10558 NOTREACHED() << "Trying to call glDrawArrays() without current GL context";
10559 LOG(ERROR) << "Trying to call glDrawArrays() without current GL context";
10562 void NoContextGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
10563 GLint first,
10564 GLsizei count,
10565 GLsizei primcount) {
10566 NOTREACHED() << "Trying to call glDrawArraysInstancedANGLE() without current "
10567 "GL context";
10568 LOG(ERROR) << "Trying to call glDrawArraysInstancedANGLE() without current "
10569 "GL context";
10572 void NoContextGLApi::glDrawBufferFn(GLenum mode) {
10573 NOTREACHED() << "Trying to call glDrawBuffer() without current GL context";
10574 LOG(ERROR) << "Trying to call glDrawBuffer() without current GL context";
10577 void NoContextGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
10578 NOTREACHED()
10579 << "Trying to call glDrawBuffersARB() without current GL context";
10580 LOG(ERROR) << "Trying to call glDrawBuffersARB() without current GL context";
10583 void NoContextGLApi::glDrawElementsFn(GLenum mode,
10584 GLsizei count,
10585 GLenum type,
10586 const void* indices) {
10587 NOTREACHED() << "Trying to call glDrawElements() without current GL context";
10588 LOG(ERROR) << "Trying to call glDrawElements() without current GL context";
10591 void NoContextGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
10592 GLsizei count,
10593 GLenum type,
10594 const void* indices,
10595 GLsizei primcount) {
10596 NOTREACHED() << "Trying to call glDrawElementsInstancedANGLE() without "
10597 "current GL context";
10598 LOG(ERROR) << "Trying to call glDrawElementsInstancedANGLE() without current "
10599 "GL context";
10602 void NoContextGLApi::glDrawRangeElementsFn(GLenum mode,
10603 GLuint start,
10604 GLuint end,
10605 GLsizei count,
10606 GLenum type,
10607 const void* indices) {
10608 NOTREACHED()
10609 << "Trying to call glDrawRangeElements() without current GL context";
10610 LOG(ERROR)
10611 << "Trying to call glDrawRangeElements() without current GL context";
10614 void NoContextGLApi::glEGLImageTargetRenderbufferStorageOESFn(
10615 GLenum target,
10616 GLeglImageOES image) {
10617 NOTREACHED() << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
10618 "without current GL context";
10619 LOG(ERROR) << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
10620 "without current GL context";
10623 void NoContextGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
10624 GLeglImageOES image) {
10625 NOTREACHED() << "Trying to call glEGLImageTargetTexture2DOES() without "
10626 "current GL context";
10627 LOG(ERROR) << "Trying to call glEGLImageTargetTexture2DOES() without current "
10628 "GL context";
10631 void NoContextGLApi::glEnableFn(GLenum cap) {
10632 NOTREACHED() << "Trying to call glEnable() without current GL context";
10633 LOG(ERROR) << "Trying to call glEnable() without current GL context";
10636 void NoContextGLApi::glEnableVertexAttribArrayFn(GLuint index) {
10637 NOTREACHED() << "Trying to call glEnableVertexAttribArray() without current "
10638 "GL context";
10639 LOG(ERROR) << "Trying to call glEnableVertexAttribArray() without current GL "
10640 "context";
10643 void NoContextGLApi::glEndQueryFn(GLenum target) {
10644 NOTREACHED() << "Trying to call glEndQuery() without current GL context";
10645 LOG(ERROR) << "Trying to call glEndQuery() without current GL context";
10648 void NoContextGLApi::glEndTransformFeedbackFn(void) {
10649 NOTREACHED()
10650 << "Trying to call glEndTransformFeedback() without current GL context";
10651 LOG(ERROR)
10652 << "Trying to call glEndTransformFeedback() without current GL context";
10655 GLsync NoContextGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
10656 NOTREACHED() << "Trying to call glFenceSync() without current GL context";
10657 LOG(ERROR) << "Trying to call glFenceSync() without current GL context";
10658 return NULL;
10661 void NoContextGLApi::glFinishFn(void) {
10662 NOTREACHED() << "Trying to call glFinish() without current GL context";
10663 LOG(ERROR) << "Trying to call glFinish() without current GL context";
10666 void NoContextGLApi::glFinishFenceAPPLEFn(GLuint fence) {
10667 NOTREACHED()
10668 << "Trying to call glFinishFenceAPPLE() without current GL context";
10669 LOG(ERROR)
10670 << "Trying to call glFinishFenceAPPLE() without current GL context";
10673 void NoContextGLApi::glFinishFenceNVFn(GLuint fence) {
10674 NOTREACHED() << "Trying to call glFinishFenceNV() without current GL context";
10675 LOG(ERROR) << "Trying to call glFinishFenceNV() without current GL context";
10678 void NoContextGLApi::glFlushFn(void) {
10679 NOTREACHED() << "Trying to call glFlush() without current GL context";
10680 LOG(ERROR) << "Trying to call glFlush() without current GL context";
10683 void NoContextGLApi::glFlushMappedBufferRangeFn(GLenum target,
10684 GLintptr offset,
10685 GLsizeiptr length) {
10686 NOTREACHED()
10687 << "Trying to call glFlushMappedBufferRange() without current GL context";
10688 LOG(ERROR)
10689 << "Trying to call glFlushMappedBufferRange() without current GL context";
10692 void NoContextGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
10693 GLenum attachment,
10694 GLenum renderbuffertarget,
10695 GLuint renderbuffer) {
10696 NOTREACHED() << "Trying to call glFramebufferRenderbufferEXT() without "
10697 "current GL context";
10698 LOG(ERROR) << "Trying to call glFramebufferRenderbufferEXT() without current "
10699 "GL context";
10702 void NoContextGLApi::glFramebufferTexture2DEXTFn(GLenum target,
10703 GLenum attachment,
10704 GLenum textarget,
10705 GLuint texture,
10706 GLint level) {
10707 NOTREACHED() << "Trying to call glFramebufferTexture2DEXT() without current "
10708 "GL context";
10709 LOG(ERROR) << "Trying to call glFramebufferTexture2DEXT() without current GL "
10710 "context";
10713 void NoContextGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
10714 GLenum attachment,
10715 GLenum textarget,
10716 GLuint texture,
10717 GLint level,
10718 GLsizei samples) {
10719 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleEXT() "
10720 "without current GL context";
10721 LOG(ERROR) << "Trying to call glFramebufferTexture2DMultisampleEXT() without "
10722 "current GL context";
10725 void NoContextGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
10726 GLenum attachment,
10727 GLenum textarget,
10728 GLuint texture,
10729 GLint level,
10730 GLsizei samples) {
10731 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleIMG() "
10732 "without current GL context";
10733 LOG(ERROR) << "Trying to call glFramebufferTexture2DMultisampleIMG() without "
10734 "current GL context";
10737 void NoContextGLApi::glFramebufferTextureLayerFn(GLenum target,
10738 GLenum attachment,
10739 GLuint texture,
10740 GLint level,
10741 GLint layer) {
10742 NOTREACHED() << "Trying to call glFramebufferTextureLayer() without current "
10743 "GL context";
10744 LOG(ERROR) << "Trying to call glFramebufferTextureLayer() without current GL "
10745 "context";
10748 void NoContextGLApi::glFrontFaceFn(GLenum mode) {
10749 NOTREACHED() << "Trying to call glFrontFace() without current GL context";
10750 LOG(ERROR) << "Trying to call glFrontFace() without current GL context";
10753 void NoContextGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
10754 NOTREACHED() << "Trying to call glGenBuffersARB() without current GL context";
10755 LOG(ERROR) << "Trying to call glGenBuffersARB() without current GL context";
10758 void NoContextGLApi::glGenerateMipmapEXTFn(GLenum target) {
10759 NOTREACHED()
10760 << "Trying to call glGenerateMipmapEXT() without current GL context";
10761 LOG(ERROR)
10762 << "Trying to call glGenerateMipmapEXT() without current GL context";
10765 void NoContextGLApi::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
10766 NOTREACHED()
10767 << "Trying to call glGenFencesAPPLE() without current GL context";
10768 LOG(ERROR) << "Trying to call glGenFencesAPPLE() without current GL context";
10771 void NoContextGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
10772 NOTREACHED() << "Trying to call glGenFencesNV() without current GL context";
10773 LOG(ERROR) << "Trying to call glGenFencesNV() without current GL context";
10776 void NoContextGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
10777 NOTREACHED()
10778 << "Trying to call glGenFramebuffersEXT() without current GL context";
10779 LOG(ERROR)
10780 << "Trying to call glGenFramebuffersEXT() without current GL context";
10783 GLuint NoContextGLApi::glGenPathsNVFn(GLsizei range) {
10784 NOTREACHED() << "Trying to call glGenPathsNV() without current GL context";
10785 LOG(ERROR) << "Trying to call glGenPathsNV() without current GL context";
10786 return 0U;
10789 void NoContextGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
10790 NOTREACHED() << "Trying to call glGenQueries() without current GL context";
10791 LOG(ERROR) << "Trying to call glGenQueries() without current GL context";
10794 void NoContextGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
10795 NOTREACHED()
10796 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10797 LOG(ERROR)
10798 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10801 void NoContextGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
10802 NOTREACHED() << "Trying to call glGenSamplers() without current GL context";
10803 LOG(ERROR) << "Trying to call glGenSamplers() without current GL context";
10806 void NoContextGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
10807 NOTREACHED() << "Trying to call glGenTextures() without current GL context";
10808 LOG(ERROR) << "Trying to call glGenTextures() without current GL context";
10811 void NoContextGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
10812 NOTREACHED()
10813 << "Trying to call glGenTransformFeedbacks() without current GL context";
10814 LOG(ERROR)
10815 << "Trying to call glGenTransformFeedbacks() without current GL context";
10818 void NoContextGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
10819 NOTREACHED()
10820 << "Trying to call glGenVertexArraysOES() without current GL context";
10821 LOG(ERROR)
10822 << "Trying to call glGenVertexArraysOES() without current GL context";
10825 void NoContextGLApi::glGetActiveAttribFn(GLuint program,
10826 GLuint index,
10827 GLsizei bufsize,
10828 GLsizei* length,
10829 GLint* size,
10830 GLenum* type,
10831 char* name) {
10832 NOTREACHED()
10833 << "Trying to call glGetActiveAttrib() without current GL context";
10834 LOG(ERROR) << "Trying to call glGetActiveAttrib() without current GL context";
10837 void NoContextGLApi::glGetActiveUniformFn(GLuint program,
10838 GLuint index,
10839 GLsizei bufsize,
10840 GLsizei* length,
10841 GLint* size,
10842 GLenum* type,
10843 char* name) {
10844 NOTREACHED()
10845 << "Trying to call glGetActiveUniform() without current GL context";
10846 LOG(ERROR)
10847 << "Trying to call glGetActiveUniform() without current GL context";
10850 void NoContextGLApi::glGetActiveUniformBlockivFn(GLuint program,
10851 GLuint uniformBlockIndex,
10852 GLenum pname,
10853 GLint* params) {
10854 NOTREACHED() << "Trying to call glGetActiveUniformBlockiv() without current "
10855 "GL context";
10856 LOG(ERROR) << "Trying to call glGetActiveUniformBlockiv() without current GL "
10857 "context";
10860 void NoContextGLApi::glGetActiveUniformBlockNameFn(GLuint program,
10861 GLuint uniformBlockIndex,
10862 GLsizei bufSize,
10863 GLsizei* length,
10864 char* uniformBlockName) {
10865 NOTREACHED() << "Trying to call glGetActiveUniformBlockName() without "
10866 "current GL context";
10867 LOG(ERROR) << "Trying to call glGetActiveUniformBlockName() without current "
10868 "GL context";
10871 void NoContextGLApi::glGetActiveUniformsivFn(GLuint program,
10872 GLsizei uniformCount,
10873 const GLuint* uniformIndices,
10874 GLenum pname,
10875 GLint* params) {
10876 NOTREACHED()
10877 << "Trying to call glGetActiveUniformsiv() without current GL context";
10878 LOG(ERROR)
10879 << "Trying to call glGetActiveUniformsiv() without current GL context";
10882 void NoContextGLApi::glGetAttachedShadersFn(GLuint program,
10883 GLsizei maxcount,
10884 GLsizei* count,
10885 GLuint* shaders) {
10886 NOTREACHED()
10887 << "Trying to call glGetAttachedShaders() without current GL context";
10888 LOG(ERROR)
10889 << "Trying to call glGetAttachedShaders() without current GL context";
10892 GLint NoContextGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
10893 NOTREACHED()
10894 << "Trying to call glGetAttribLocation() without current GL context";
10895 LOG(ERROR)
10896 << "Trying to call glGetAttribLocation() without current GL context";
10897 return 0;
10900 void NoContextGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
10901 NOTREACHED() << "Trying to call glGetBooleanv() without current GL context";
10902 LOG(ERROR) << "Trying to call glGetBooleanv() without current GL context";
10905 void NoContextGLApi::glGetBufferParameterivFn(GLenum target,
10906 GLenum pname,
10907 GLint* params) {
10908 NOTREACHED()
10909 << "Trying to call glGetBufferParameteriv() without current GL context";
10910 LOG(ERROR)
10911 << "Trying to call glGetBufferParameteriv() without current GL context";
10914 GLenum NoContextGLApi::glGetErrorFn(void) {
10915 NOTREACHED() << "Trying to call glGetError() without current GL context";
10916 LOG(ERROR) << "Trying to call glGetError() without current GL context";
10917 return static_cast<GLenum>(0);
10920 void NoContextGLApi::glGetFenceivNVFn(GLuint fence,
10921 GLenum pname,
10922 GLint* params) {
10923 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context";
10924 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context";
10927 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
10928 NOTREACHED() << "Trying to call glGetFloatv() without current GL context";
10929 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context";
10932 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program,
10933 const char* name) {
10934 NOTREACHED()
10935 << "Trying to call glGetFragDataLocation() without current GL context";
10936 LOG(ERROR)
10937 << "Trying to call glGetFragDataLocation() without current GL context";
10938 return 0;
10941 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn(
10942 GLenum target,
10943 GLenum attachment,
10944 GLenum pname,
10945 GLint* params) {
10946 NOTREACHED() << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
10947 "without current GL context";
10948 LOG(ERROR) << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
10949 "without current GL context";
10952 GLenum NoContextGLApi::glGetGraphicsResetStatusARBFn(void) {
10953 NOTREACHED() << "Trying to call glGetGraphicsResetStatusARB() without "
10954 "current GL context";
10955 LOG(ERROR) << "Trying to call glGetGraphicsResetStatusARB() without current "
10956 "GL context";
10957 return static_cast<GLenum>(0);
10960 void NoContextGLApi::glGetInteger64i_vFn(GLenum target,
10961 GLuint index,
10962 GLint64* data) {
10963 NOTREACHED()
10964 << "Trying to call glGetInteger64i_v() without current GL context";
10965 LOG(ERROR) << "Trying to call glGetInteger64i_v() without current GL context";
10968 void NoContextGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
10969 NOTREACHED() << "Trying to call glGetInteger64v() without current GL context";
10970 LOG(ERROR) << "Trying to call glGetInteger64v() without current GL context";
10973 void NoContextGLApi::glGetIntegeri_vFn(GLenum target,
10974 GLuint index,
10975 GLint* data) {
10976 NOTREACHED() << "Trying to call glGetIntegeri_v() without current GL context";
10977 LOG(ERROR) << "Trying to call glGetIntegeri_v() without current GL context";
10980 void NoContextGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
10981 NOTREACHED() << "Trying to call glGetIntegerv() without current GL context";
10982 LOG(ERROR) << "Trying to call glGetIntegerv() without current GL context";
10985 void NoContextGLApi::glGetInternalformativFn(GLenum target,
10986 GLenum internalformat,
10987 GLenum pname,
10988 GLsizei bufSize,
10989 GLint* params) {
10990 NOTREACHED()
10991 << "Trying to call glGetInternalformativ() without current GL context";
10992 LOG(ERROR)
10993 << "Trying to call glGetInternalformativ() without current GL context";
10996 void NoContextGLApi::glGetProgramBinaryFn(GLuint program,
10997 GLsizei bufSize,
10998 GLsizei* length,
10999 GLenum* binaryFormat,
11000 GLvoid* binary) {
11001 NOTREACHED()
11002 << "Trying to call glGetProgramBinary() without current GL context";
11003 LOG(ERROR)
11004 << "Trying to call glGetProgramBinary() without current GL context";
11007 void NoContextGLApi::glGetProgramInfoLogFn(GLuint program,
11008 GLsizei bufsize,
11009 GLsizei* length,
11010 char* infolog) {
11011 NOTREACHED()
11012 << "Trying to call glGetProgramInfoLog() without current GL context";
11013 LOG(ERROR)
11014 << "Trying to call glGetProgramInfoLog() without current GL context";
11017 void NoContextGLApi::glGetProgramivFn(GLuint program,
11018 GLenum pname,
11019 GLint* params) {
11020 NOTREACHED() << "Trying to call glGetProgramiv() without current GL context";
11021 LOG(ERROR) << "Trying to call glGetProgramiv() without current GL context";
11024 GLint NoContextGLApi::glGetProgramResourceLocationFn(GLuint program,
11025 GLenum programInterface,
11026 const char* name) {
11027 NOTREACHED() << "Trying to call glGetProgramResourceLocation() without "
11028 "current GL context";
11029 LOG(ERROR) << "Trying to call glGetProgramResourceLocation() without current "
11030 "GL context";
11031 return 0;
11034 void NoContextGLApi::glGetQueryivFn(GLenum target,
11035 GLenum pname,
11036 GLint* params) {
11037 NOTREACHED() << "Trying to call glGetQueryiv() without current GL context";
11038 LOG(ERROR) << "Trying to call glGetQueryiv() without current GL context";
11041 void NoContextGLApi::glGetQueryObjecti64vFn(GLuint id,
11042 GLenum pname,
11043 GLint64* params) {
11044 NOTREACHED()
11045 << "Trying to call glGetQueryObjecti64v() without current GL context";
11046 LOG(ERROR)
11047 << "Trying to call glGetQueryObjecti64v() without current GL context";
11050 void NoContextGLApi::glGetQueryObjectivFn(GLuint id,
11051 GLenum pname,
11052 GLint* params) {
11053 NOTREACHED()
11054 << "Trying to call glGetQueryObjectiv() without current GL context";
11055 LOG(ERROR)
11056 << "Trying to call glGetQueryObjectiv() without current GL context";
11059 void NoContextGLApi::glGetQueryObjectui64vFn(GLuint id,
11060 GLenum pname,
11061 GLuint64* params) {
11062 NOTREACHED()
11063 << "Trying to call glGetQueryObjectui64v() without current GL context";
11064 LOG(ERROR)
11065 << "Trying to call glGetQueryObjectui64v() without current GL context";
11068 void NoContextGLApi::glGetQueryObjectuivFn(GLuint id,
11069 GLenum pname,
11070 GLuint* params) {
11071 NOTREACHED()
11072 << "Trying to call glGetQueryObjectuiv() without current GL context";
11073 LOG(ERROR)
11074 << "Trying to call glGetQueryObjectuiv() without current GL context";
11077 void NoContextGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
11078 GLenum pname,
11079 GLint* params) {
11080 NOTREACHED() << "Trying to call glGetRenderbufferParameterivEXT() without "
11081 "current GL context";
11082 LOG(ERROR) << "Trying to call glGetRenderbufferParameterivEXT() without "
11083 "current GL context";
11086 void NoContextGLApi::glGetSamplerParameterfvFn(GLuint sampler,
11087 GLenum pname,
11088 GLfloat* params) {
11089 NOTREACHED()
11090 << "Trying to call glGetSamplerParameterfv() without current GL context";
11091 LOG(ERROR)
11092 << "Trying to call glGetSamplerParameterfv() without current GL context";
11095 void NoContextGLApi::glGetSamplerParameterivFn(GLuint sampler,
11096 GLenum pname,
11097 GLint* params) {
11098 NOTREACHED()
11099 << "Trying to call glGetSamplerParameteriv() without current GL context";
11100 LOG(ERROR)
11101 << "Trying to call glGetSamplerParameteriv() without current GL context";
11104 void NoContextGLApi::glGetShaderInfoLogFn(GLuint shader,
11105 GLsizei bufsize,
11106 GLsizei* length,
11107 char* infolog) {
11108 NOTREACHED()
11109 << "Trying to call glGetShaderInfoLog() without current GL context";
11110 LOG(ERROR)
11111 << "Trying to call glGetShaderInfoLog() without current GL context";
11114 void NoContextGLApi::glGetShaderivFn(GLuint shader,
11115 GLenum pname,
11116 GLint* params) {
11117 NOTREACHED() << "Trying to call glGetShaderiv() without current GL context";
11118 LOG(ERROR) << "Trying to call glGetShaderiv() without current GL context";
11121 void NoContextGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
11122 GLenum precisiontype,
11123 GLint* range,
11124 GLint* precision) {
11125 NOTREACHED() << "Trying to call glGetShaderPrecisionFormat() without current "
11126 "GL context";
11127 LOG(ERROR) << "Trying to call glGetShaderPrecisionFormat() without current "
11128 "GL context";
11131 void NoContextGLApi::glGetShaderSourceFn(GLuint shader,
11132 GLsizei bufsize,
11133 GLsizei* length,
11134 char* source) {
11135 NOTREACHED()
11136 << "Trying to call glGetShaderSource() without current GL context";
11137 LOG(ERROR) << "Trying to call glGetShaderSource() without current GL context";
11140 const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) {
11141 NOTREACHED() << "Trying to call glGetString() without current GL context";
11142 LOG(ERROR) << "Trying to call glGetString() without current GL context";
11143 return NULL;
11146 const GLubyte* NoContextGLApi::glGetStringiFn(GLenum name, GLuint index) {
11147 NOTREACHED() << "Trying to call glGetStringi() without current GL context";
11148 LOG(ERROR) << "Trying to call glGetStringi() without current GL context";
11149 return NULL;
11152 void NoContextGLApi::glGetSyncivFn(GLsync sync,
11153 GLenum pname,
11154 GLsizei bufSize,
11155 GLsizei* length,
11156 GLint* values) {
11157 NOTREACHED() << "Trying to call glGetSynciv() without current GL context";
11158 LOG(ERROR) << "Trying to call glGetSynciv() without current GL context";
11161 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target,
11162 GLint level,
11163 GLenum pname,
11164 GLfloat* params) {
11165 NOTREACHED()
11166 << "Trying to call glGetTexLevelParameterfv() without current GL context";
11167 LOG(ERROR)
11168 << "Trying to call glGetTexLevelParameterfv() without current GL context";
11171 void NoContextGLApi::glGetTexLevelParameterivFn(GLenum target,
11172 GLint level,
11173 GLenum pname,
11174 GLint* params) {
11175 NOTREACHED()
11176 << "Trying to call glGetTexLevelParameteriv() without current GL context";
11177 LOG(ERROR)
11178 << "Trying to call glGetTexLevelParameteriv() without current GL context";
11181 void NoContextGLApi::glGetTexParameterfvFn(GLenum target,
11182 GLenum pname,
11183 GLfloat* params) {
11184 NOTREACHED()
11185 << "Trying to call glGetTexParameterfv() without current GL context";
11186 LOG(ERROR)
11187 << "Trying to call glGetTexParameterfv() without current GL context";
11190 void NoContextGLApi::glGetTexParameterivFn(GLenum target,
11191 GLenum pname,
11192 GLint* params) {
11193 NOTREACHED()
11194 << "Trying to call glGetTexParameteriv() without current GL context";
11195 LOG(ERROR)
11196 << "Trying to call glGetTexParameteriv() without current GL context";
11199 void NoContextGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
11200 GLuint index,
11201 GLsizei bufSize,
11202 GLsizei* length,
11203 GLsizei* size,
11204 GLenum* type,
11205 char* name) {
11206 NOTREACHED() << "Trying to call glGetTransformFeedbackVarying() without "
11207 "current GL context";
11208 LOG(ERROR) << "Trying to call glGetTransformFeedbackVarying() without "
11209 "current GL context";
11212 void NoContextGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
11213 GLsizei bufsize,
11214 GLsizei* length,
11215 char* source) {
11216 NOTREACHED() << "Trying to call glGetTranslatedShaderSourceANGLE() without "
11217 "current GL context";
11218 LOG(ERROR) << "Trying to call glGetTranslatedShaderSourceANGLE() without "
11219 "current GL context";
11222 GLuint NoContextGLApi::glGetUniformBlockIndexFn(GLuint program,
11223 const char* uniformBlockName) {
11224 NOTREACHED()
11225 << "Trying to call glGetUniformBlockIndex() without current GL context";
11226 LOG(ERROR)
11227 << "Trying to call glGetUniformBlockIndex() without current GL context";
11228 return 0U;
11231 void NoContextGLApi::glGetUniformfvFn(GLuint program,
11232 GLint location,
11233 GLfloat* params) {
11234 NOTREACHED() << "Trying to call glGetUniformfv() without current GL context";
11235 LOG(ERROR) << "Trying to call glGetUniformfv() without current GL context";
11238 void NoContextGLApi::glGetUniformIndicesFn(GLuint program,
11239 GLsizei uniformCount,
11240 const char* const* uniformNames,
11241 GLuint* uniformIndices) {
11242 NOTREACHED()
11243 << "Trying to call glGetUniformIndices() without current GL context";
11244 LOG(ERROR)
11245 << "Trying to call glGetUniformIndices() without current GL context";
11248 void NoContextGLApi::glGetUniformivFn(GLuint program,
11249 GLint location,
11250 GLint* params) {
11251 NOTREACHED() << "Trying to call glGetUniformiv() without current GL context";
11252 LOG(ERROR) << "Trying to call glGetUniformiv() without current GL context";
11255 GLint NoContextGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
11256 NOTREACHED()
11257 << "Trying to call glGetUniformLocation() without current GL context";
11258 LOG(ERROR)
11259 << "Trying to call glGetUniformLocation() without current GL context";
11260 return 0;
11263 void NoContextGLApi::glGetUniformuivFn(GLuint program,
11264 GLint location,
11265 GLuint* params) {
11266 NOTREACHED() << "Trying to call glGetUniformuiv() without current GL context";
11267 LOG(ERROR) << "Trying to call glGetUniformuiv() without current GL context";
11270 void NoContextGLApi::glGetVertexAttribfvFn(GLuint index,
11271 GLenum pname,
11272 GLfloat* params) {
11273 NOTREACHED()
11274 << "Trying to call glGetVertexAttribfv() without current GL context";
11275 LOG(ERROR)
11276 << "Trying to call glGetVertexAttribfv() without current GL context";
11279 void NoContextGLApi::glGetVertexAttribivFn(GLuint index,
11280 GLenum pname,
11281 GLint* params) {
11282 NOTREACHED()
11283 << "Trying to call glGetVertexAttribiv() without current GL context";
11284 LOG(ERROR)
11285 << "Trying to call glGetVertexAttribiv() without current GL context";
11288 void NoContextGLApi::glGetVertexAttribPointervFn(GLuint index,
11289 GLenum pname,
11290 void** pointer) {
11291 NOTREACHED() << "Trying to call glGetVertexAttribPointerv() without current "
11292 "GL context";
11293 LOG(ERROR) << "Trying to call glGetVertexAttribPointerv() without current GL "
11294 "context";
11297 void NoContextGLApi::glHintFn(GLenum target, GLenum mode) {
11298 NOTREACHED() << "Trying to call glHint() without current GL context";
11299 LOG(ERROR) << "Trying to call glHint() without current GL context";
11302 void NoContextGLApi::glInsertEventMarkerEXTFn(GLsizei length,
11303 const char* marker) {
11304 NOTREACHED()
11305 << "Trying to call glInsertEventMarkerEXT() without current GL context";
11306 LOG(ERROR)
11307 << "Trying to call glInsertEventMarkerEXT() without current GL context";
11310 void NoContextGLApi::glInvalidateFramebufferFn(GLenum target,
11311 GLsizei numAttachments,
11312 const GLenum* attachments) {
11313 NOTREACHED()
11314 << "Trying to call glInvalidateFramebuffer() without current GL context";
11315 LOG(ERROR)
11316 << "Trying to call glInvalidateFramebuffer() without current GL context";
11319 void NoContextGLApi::glInvalidateSubFramebufferFn(GLenum target,
11320 GLsizei numAttachments,
11321 const GLenum* attachments,
11322 GLint x,
11323 GLint y,
11324 GLint width,
11325 GLint height) {
11326 NOTREACHED() << "Trying to call glInvalidateSubFramebuffer() without current "
11327 "GL context";
11328 LOG(ERROR) << "Trying to call glInvalidateSubFramebuffer() without current "
11329 "GL context";
11332 GLboolean NoContextGLApi::glIsBufferFn(GLuint buffer) {
11333 NOTREACHED() << "Trying to call glIsBuffer() without current GL context";
11334 LOG(ERROR) << "Trying to call glIsBuffer() without current GL context";
11335 return GL_FALSE;
11338 GLboolean NoContextGLApi::glIsEnabledFn(GLenum cap) {
11339 NOTREACHED() << "Trying to call glIsEnabled() without current GL context";
11340 LOG(ERROR) << "Trying to call glIsEnabled() without current GL context";
11341 return GL_FALSE;
11344 GLboolean NoContextGLApi::glIsFenceAPPLEFn(GLuint fence) {
11345 NOTREACHED() << "Trying to call glIsFenceAPPLE() without current GL context";
11346 LOG(ERROR) << "Trying to call glIsFenceAPPLE() without current GL context";
11347 return GL_FALSE;
11350 GLboolean NoContextGLApi::glIsFenceNVFn(GLuint fence) {
11351 NOTREACHED() << "Trying to call glIsFenceNV() without current GL context";
11352 LOG(ERROR) << "Trying to call glIsFenceNV() without current GL context";
11353 return GL_FALSE;
11356 GLboolean NoContextGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
11357 NOTREACHED()
11358 << "Trying to call glIsFramebufferEXT() without current GL context";
11359 LOG(ERROR)
11360 << "Trying to call glIsFramebufferEXT() without current GL context";
11361 return GL_FALSE;
11364 GLboolean NoContextGLApi::glIsPathNVFn(GLuint path) {
11365 NOTREACHED() << "Trying to call glIsPathNV() without current GL context";
11366 LOG(ERROR) << "Trying to call glIsPathNV() without current GL context";
11367 return GL_FALSE;
11370 GLboolean NoContextGLApi::glIsProgramFn(GLuint program) {
11371 NOTREACHED() << "Trying to call glIsProgram() without current GL context";
11372 LOG(ERROR) << "Trying to call glIsProgram() without current GL context";
11373 return GL_FALSE;
11376 GLboolean NoContextGLApi::glIsQueryFn(GLuint query) {
11377 NOTREACHED() << "Trying to call glIsQuery() without current GL context";
11378 LOG(ERROR) << "Trying to call glIsQuery() without current GL context";
11379 return GL_FALSE;
11382 GLboolean NoContextGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
11383 NOTREACHED()
11384 << "Trying to call glIsRenderbufferEXT() without current GL context";
11385 LOG(ERROR)
11386 << "Trying to call glIsRenderbufferEXT() without current GL context";
11387 return GL_FALSE;
11390 GLboolean NoContextGLApi::glIsSamplerFn(GLuint sampler) {
11391 NOTREACHED() << "Trying to call glIsSampler() without current GL context";
11392 LOG(ERROR) << "Trying to call glIsSampler() without current GL context";
11393 return GL_FALSE;
11396 GLboolean NoContextGLApi::glIsShaderFn(GLuint shader) {
11397 NOTREACHED() << "Trying to call glIsShader() without current GL context";
11398 LOG(ERROR) << "Trying to call glIsShader() without current GL context";
11399 return GL_FALSE;
11402 GLboolean NoContextGLApi::glIsSyncFn(GLsync sync) {
11403 NOTREACHED() << "Trying to call glIsSync() without current GL context";
11404 LOG(ERROR) << "Trying to call glIsSync() without current GL context";
11405 return GL_FALSE;
11408 GLboolean NoContextGLApi::glIsTextureFn(GLuint texture) {
11409 NOTREACHED() << "Trying to call glIsTexture() without current GL context";
11410 LOG(ERROR) << "Trying to call glIsTexture() without current GL context";
11411 return GL_FALSE;
11414 GLboolean NoContextGLApi::glIsTransformFeedbackFn(GLuint id) {
11415 NOTREACHED()
11416 << "Trying to call glIsTransformFeedback() without current GL context";
11417 LOG(ERROR)
11418 << "Trying to call glIsTransformFeedback() without current GL context";
11419 return GL_FALSE;
11422 GLboolean NoContextGLApi::glIsVertexArrayOESFn(GLuint array) {
11423 NOTREACHED()
11424 << "Trying to call glIsVertexArrayOES() without current GL context";
11425 LOG(ERROR)
11426 << "Trying to call glIsVertexArrayOES() without current GL context";
11427 return GL_FALSE;
11430 void NoContextGLApi::glLineWidthFn(GLfloat width) {
11431 NOTREACHED() << "Trying to call glLineWidth() without current GL context";
11432 LOG(ERROR) << "Trying to call glLineWidth() without current GL context";
11435 void NoContextGLApi::glLinkProgramFn(GLuint program) {
11436 NOTREACHED() << "Trying to call glLinkProgram() without current GL context";
11437 LOG(ERROR) << "Trying to call glLinkProgram() without current GL context";
11440 void* NoContextGLApi::glMapBufferFn(GLenum target, GLenum access) {
11441 NOTREACHED() << "Trying to call glMapBuffer() without current GL context";
11442 LOG(ERROR) << "Trying to call glMapBuffer() without current GL context";
11443 return NULL;
11446 void* NoContextGLApi::glMapBufferRangeFn(GLenum target,
11447 GLintptr offset,
11448 GLsizeiptr length,
11449 GLbitfield access) {
11450 NOTREACHED()
11451 << "Trying to call glMapBufferRange() without current GL context";
11452 LOG(ERROR) << "Trying to call glMapBufferRange() without current GL context";
11453 return NULL;
11456 void NoContextGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
11457 NOTREACHED()
11458 << "Trying to call glMatrixLoadfEXT() without current GL context";
11459 LOG(ERROR) << "Trying to call glMatrixLoadfEXT() without current GL context";
11462 void NoContextGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
11463 NOTREACHED()
11464 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
11465 LOG(ERROR)
11466 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
11469 void NoContextGLApi::glPathCommandsNVFn(GLuint path,
11470 GLsizei numCommands,
11471 const GLubyte* commands,
11472 GLsizei numCoords,
11473 GLenum coordType,
11474 const GLvoid* coords) {
11475 NOTREACHED()
11476 << "Trying to call glPathCommandsNV() without current GL context";
11477 LOG(ERROR) << "Trying to call glPathCommandsNV() without current GL context";
11480 void NoContextGLApi::glPathParameterfNVFn(GLuint path,
11481 GLenum pname,
11482 GLfloat value) {
11483 NOTREACHED()
11484 << "Trying to call glPathParameterfNV() without current GL context";
11485 LOG(ERROR)
11486 << "Trying to call glPathParameterfNV() without current GL context";
11489 void NoContextGLApi::glPathParameteriNVFn(GLuint path,
11490 GLenum pname,
11491 GLint value) {
11492 NOTREACHED()
11493 << "Trying to call glPathParameteriNV() without current GL context";
11494 LOG(ERROR)
11495 << "Trying to call glPathParameteriNV() without current GL context";
11498 void NoContextGLApi::glPathStencilFuncNVFn(GLenum func,
11499 GLint ref,
11500 GLuint mask) {
11501 NOTREACHED()
11502 << "Trying to call glPathStencilFuncNV() without current GL context";
11503 LOG(ERROR)
11504 << "Trying to call glPathStencilFuncNV() without current GL context";
11507 void NoContextGLApi::glPauseTransformFeedbackFn(void) {
11508 NOTREACHED()
11509 << "Trying to call glPauseTransformFeedback() without current GL context";
11510 LOG(ERROR)
11511 << "Trying to call glPauseTransformFeedback() without current GL context";
11514 void NoContextGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
11515 NOTREACHED() << "Trying to call glPixelStorei() without current GL context";
11516 LOG(ERROR) << "Trying to call glPixelStorei() without current GL context";
11519 void NoContextGLApi::glPointParameteriFn(GLenum pname, GLint param) {
11520 NOTREACHED()
11521 << "Trying to call glPointParameteri() without current GL context";
11522 LOG(ERROR) << "Trying to call glPointParameteri() without current GL context";
11525 void NoContextGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
11526 NOTREACHED() << "Trying to call glPolygonOffset() without current GL context";
11527 LOG(ERROR) << "Trying to call glPolygonOffset() without current GL context";
11530 void NoContextGLApi::glPopGroupMarkerEXTFn(void) {
11531 NOTREACHED()
11532 << "Trying to call glPopGroupMarkerEXT() without current GL context";
11533 LOG(ERROR)
11534 << "Trying to call glPopGroupMarkerEXT() without current GL context";
11537 void NoContextGLApi::glProgramBinaryFn(GLuint program,
11538 GLenum binaryFormat,
11539 const GLvoid* binary,
11540 GLsizei length) {
11541 NOTREACHED() << "Trying to call glProgramBinary() without current GL context";
11542 LOG(ERROR) << "Trying to call glProgramBinary() without current GL context";
11545 void NoContextGLApi::glProgramParameteriFn(GLuint program,
11546 GLenum pname,
11547 GLint value) {
11548 NOTREACHED()
11549 << "Trying to call glProgramParameteri() without current GL context";
11550 LOG(ERROR)
11551 << "Trying to call glProgramParameteri() without current GL context";
11554 void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length,
11555 const char* marker) {
11556 NOTREACHED()
11557 << "Trying to call glPushGroupMarkerEXT() without current GL context";
11558 LOG(ERROR)
11559 << "Trying to call glPushGroupMarkerEXT() without current GL context";
11562 void NoContextGLApi::glQueryCounterFn(GLuint id, GLenum target) {
11563 NOTREACHED() << "Trying to call glQueryCounter() without current GL context";
11564 LOG(ERROR) << "Trying to call glQueryCounter() without current GL context";
11567 void NoContextGLApi::glReadBufferFn(GLenum src) {
11568 NOTREACHED() << "Trying to call glReadBuffer() without current GL context";
11569 LOG(ERROR) << "Trying to call glReadBuffer() without current GL context";
11572 void NoContextGLApi::glReadPixelsFn(GLint x,
11573 GLint y,
11574 GLsizei width,
11575 GLsizei height,
11576 GLenum format,
11577 GLenum type,
11578 void* pixels) {
11579 NOTREACHED() << "Trying to call glReadPixels() without current GL context";
11580 LOG(ERROR) << "Trying to call glReadPixels() without current GL context";
11583 void NoContextGLApi::glReleaseShaderCompilerFn(void) {
11584 NOTREACHED()
11585 << "Trying to call glReleaseShaderCompiler() without current GL context";
11586 LOG(ERROR)
11587 << "Trying to call glReleaseShaderCompiler() without current GL context";
11590 void NoContextGLApi::glRenderbufferStorageEXTFn(GLenum target,
11591 GLenum internalformat,
11592 GLsizei width,
11593 GLsizei height) {
11594 NOTREACHED()
11595 << "Trying to call glRenderbufferStorageEXT() without current GL context";
11596 LOG(ERROR)
11597 << "Trying to call glRenderbufferStorageEXT() without current GL context";
11600 void NoContextGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
11601 GLsizei samples,
11602 GLenum internalformat,
11603 GLsizei width,
11604 GLsizei height) {
11605 NOTREACHED() << "Trying to call glRenderbufferStorageMultisample() without "
11606 "current GL context";
11607 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisample() without "
11608 "current GL context";
11611 void NoContextGLApi::glRenderbufferStorageMultisampleANGLEFn(
11612 GLenum target,
11613 GLsizei samples,
11614 GLenum internalformat,
11615 GLsizei width,
11616 GLsizei height) {
11617 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleANGLE() "
11618 "without current GL context";
11619 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleANGLE() "
11620 "without current GL context";
11623 void NoContextGLApi::glRenderbufferStorageMultisampleEXTFn(
11624 GLenum target,
11625 GLsizei samples,
11626 GLenum internalformat,
11627 GLsizei width,
11628 GLsizei height) {
11629 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleEXT() "
11630 "without current GL context";
11631 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleEXT() without "
11632 "current GL context";
11635 void NoContextGLApi::glRenderbufferStorageMultisampleIMGFn(
11636 GLenum target,
11637 GLsizei samples,
11638 GLenum internalformat,
11639 GLsizei width,
11640 GLsizei height) {
11641 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleIMG() "
11642 "without current GL context";
11643 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleIMG() without "
11644 "current GL context";
11647 void NoContextGLApi::glResumeTransformFeedbackFn(void) {
11648 NOTREACHED() << "Trying to call glResumeTransformFeedback() without current "
11649 "GL context";
11650 LOG(ERROR) << "Trying to call glResumeTransformFeedback() without current GL "
11651 "context";
11654 void NoContextGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
11655 NOTREACHED()
11656 << "Trying to call glSampleCoverage() without current GL context";
11657 LOG(ERROR) << "Trying to call glSampleCoverage() without current GL context";
11660 void NoContextGLApi::glSamplerParameterfFn(GLuint sampler,
11661 GLenum pname,
11662 GLfloat param) {
11663 NOTREACHED()
11664 << "Trying to call glSamplerParameterf() without current GL context";
11665 LOG(ERROR)
11666 << "Trying to call glSamplerParameterf() without current GL context";
11669 void NoContextGLApi::glSamplerParameterfvFn(GLuint sampler,
11670 GLenum pname,
11671 const GLfloat* params) {
11672 NOTREACHED()
11673 << "Trying to call glSamplerParameterfv() without current GL context";
11674 LOG(ERROR)
11675 << "Trying to call glSamplerParameterfv() without current GL context";
11678 void NoContextGLApi::glSamplerParameteriFn(GLuint sampler,
11679 GLenum pname,
11680 GLint param) {
11681 NOTREACHED()
11682 << "Trying to call glSamplerParameteri() without current GL context";
11683 LOG(ERROR)
11684 << "Trying to call glSamplerParameteri() without current GL context";
11687 void NoContextGLApi::glSamplerParameterivFn(GLuint sampler,
11688 GLenum pname,
11689 const GLint* params) {
11690 NOTREACHED()
11691 << "Trying to call glSamplerParameteriv() without current GL context";
11692 LOG(ERROR)
11693 << "Trying to call glSamplerParameteriv() without current GL context";
11696 void NoContextGLApi::glScissorFn(GLint x,
11697 GLint y,
11698 GLsizei width,
11699 GLsizei height) {
11700 NOTREACHED() << "Trying to call glScissor() without current GL context";
11701 LOG(ERROR) << "Trying to call glScissor() without current GL context";
11704 void NoContextGLApi::glSetFenceAPPLEFn(GLuint fence) {
11705 NOTREACHED() << "Trying to call glSetFenceAPPLE() without current GL context";
11706 LOG(ERROR) << "Trying to call glSetFenceAPPLE() without current GL context";
11709 void NoContextGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
11710 NOTREACHED() << "Trying to call glSetFenceNV() without current GL context";
11711 LOG(ERROR) << "Trying to call glSetFenceNV() without current GL context";
11714 void NoContextGLApi::glShaderBinaryFn(GLsizei n,
11715 const GLuint* shaders,
11716 GLenum binaryformat,
11717 const void* binary,
11718 GLsizei length) {
11719 NOTREACHED() << "Trying to call glShaderBinary() without current GL context";
11720 LOG(ERROR) << "Trying to call glShaderBinary() without current GL context";
11723 void NoContextGLApi::glShaderSourceFn(GLuint shader,
11724 GLsizei count,
11725 const char* const* str,
11726 const GLint* length) {
11727 NOTREACHED() << "Trying to call glShaderSource() without current GL context";
11728 LOG(ERROR) << "Trying to call glShaderSource() without current GL context";
11731 void NoContextGLApi::glStencilFillPathNVFn(GLuint path,
11732 GLenum fillMode,
11733 GLuint mask) {
11734 NOTREACHED()
11735 << "Trying to call glStencilFillPathNV() without current GL context";
11736 LOG(ERROR)
11737 << "Trying to call glStencilFillPathNV() without current GL context";
11740 void NoContextGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
11741 NOTREACHED() << "Trying to call glStencilFunc() without current GL context";
11742 LOG(ERROR) << "Trying to call glStencilFunc() without current GL context";
11745 void NoContextGLApi::glStencilFuncSeparateFn(GLenum face,
11746 GLenum func,
11747 GLint ref,
11748 GLuint mask) {
11749 NOTREACHED()
11750 << "Trying to call glStencilFuncSeparate() without current GL context";
11751 LOG(ERROR)
11752 << "Trying to call glStencilFuncSeparate() without current GL context";
11755 void NoContextGLApi::glStencilMaskFn(GLuint mask) {
11756 NOTREACHED() << "Trying to call glStencilMask() without current GL context";
11757 LOG(ERROR) << "Trying to call glStencilMask() without current GL context";
11760 void NoContextGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
11761 NOTREACHED()
11762 << "Trying to call glStencilMaskSeparate() without current GL context";
11763 LOG(ERROR)
11764 << "Trying to call glStencilMaskSeparate() without current GL context";
11767 void NoContextGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
11768 NOTREACHED() << "Trying to call glStencilOp() without current GL context";
11769 LOG(ERROR) << "Trying to call glStencilOp() without current GL context";
11772 void NoContextGLApi::glStencilOpSeparateFn(GLenum face,
11773 GLenum fail,
11774 GLenum zfail,
11775 GLenum zpass) {
11776 NOTREACHED()
11777 << "Trying to call glStencilOpSeparate() without current GL context";
11778 LOG(ERROR)
11779 << "Trying to call glStencilOpSeparate() without current GL context";
11782 void NoContextGLApi::glStencilStrokePathNVFn(GLuint path,
11783 GLint reference,
11784 GLuint mask) {
11785 NOTREACHED()
11786 << "Trying to call glStencilStrokePathNV() without current GL context";
11787 LOG(ERROR)
11788 << "Trying to call glStencilStrokePathNV() without current GL context";
11791 void NoContextGLApi::glStencilThenCoverFillPathNVFn(GLuint path,
11792 GLenum fillMode,
11793 GLuint mask,
11794 GLenum coverMode) {
11795 NOTREACHED() << "Trying to call glStencilThenCoverFillPathNV() without "
11796 "current GL context";
11797 LOG(ERROR) << "Trying to call glStencilThenCoverFillPathNV() without current "
11798 "GL context";
11801 void NoContextGLApi::glStencilThenCoverStrokePathNVFn(GLuint path,
11802 GLint reference,
11803 GLuint mask,
11804 GLenum coverMode) {
11805 NOTREACHED() << "Trying to call glStencilThenCoverStrokePathNV() without "
11806 "current GL context";
11807 LOG(ERROR) << "Trying to call glStencilThenCoverStrokePathNV() without "
11808 "current GL context";
11811 GLboolean NoContextGLApi::glTestFenceAPPLEFn(GLuint fence) {
11812 NOTREACHED()
11813 << "Trying to call glTestFenceAPPLE() without current GL context";
11814 LOG(ERROR) << "Trying to call glTestFenceAPPLE() without current GL context";
11815 return GL_FALSE;
11818 GLboolean NoContextGLApi::glTestFenceNVFn(GLuint fence) {
11819 NOTREACHED() << "Trying to call glTestFenceNV() without current GL context";
11820 LOG(ERROR) << "Trying to call glTestFenceNV() without current GL context";
11821 return GL_FALSE;
11824 void NoContextGLApi::glTexImage2DFn(GLenum target,
11825 GLint level,
11826 GLint internalformat,
11827 GLsizei width,
11828 GLsizei height,
11829 GLint border,
11830 GLenum format,
11831 GLenum type,
11832 const void* pixels) {
11833 NOTREACHED() << "Trying to call glTexImage2D() without current GL context";
11834 LOG(ERROR) << "Trying to call glTexImage2D() without current GL context";
11837 void NoContextGLApi::glTexImage3DFn(GLenum target,
11838 GLint level,
11839 GLint internalformat,
11840 GLsizei width,
11841 GLsizei height,
11842 GLsizei depth,
11843 GLint border,
11844 GLenum format,
11845 GLenum type,
11846 const void* pixels) {
11847 NOTREACHED() << "Trying to call glTexImage3D() without current GL context";
11848 LOG(ERROR) << "Trying to call glTexImage3D() without current GL context";
11851 void NoContextGLApi::glTexParameterfFn(GLenum target,
11852 GLenum pname,
11853 GLfloat param) {
11854 NOTREACHED() << "Trying to call glTexParameterf() without current GL context";
11855 LOG(ERROR) << "Trying to call glTexParameterf() without current GL context";
11858 void NoContextGLApi::glTexParameterfvFn(GLenum target,
11859 GLenum pname,
11860 const GLfloat* params) {
11861 NOTREACHED()
11862 << "Trying to call glTexParameterfv() without current GL context";
11863 LOG(ERROR) << "Trying to call glTexParameterfv() without current GL context";
11866 void NoContextGLApi::glTexParameteriFn(GLenum target,
11867 GLenum pname,
11868 GLint param) {
11869 NOTREACHED() << "Trying to call glTexParameteri() without current GL context";
11870 LOG(ERROR) << "Trying to call glTexParameteri() without current GL context";
11873 void NoContextGLApi::glTexParameterivFn(GLenum target,
11874 GLenum pname,
11875 const GLint* params) {
11876 NOTREACHED()
11877 << "Trying to call glTexParameteriv() without current GL context";
11878 LOG(ERROR) << "Trying to call glTexParameteriv() without current GL context";
11881 void NoContextGLApi::glTexStorage2DEXTFn(GLenum target,
11882 GLsizei levels,
11883 GLenum internalformat,
11884 GLsizei width,
11885 GLsizei height) {
11886 NOTREACHED()
11887 << "Trying to call glTexStorage2DEXT() without current GL context";
11888 LOG(ERROR) << "Trying to call glTexStorage2DEXT() without current GL context";
11891 void NoContextGLApi::glTexStorage3DFn(GLenum target,
11892 GLsizei levels,
11893 GLenum internalformat,
11894 GLsizei width,
11895 GLsizei height,
11896 GLsizei depth) {
11897 NOTREACHED() << "Trying to call glTexStorage3D() without current GL context";
11898 LOG(ERROR) << "Trying to call glTexStorage3D() without current GL context";
11901 void NoContextGLApi::glTexSubImage2DFn(GLenum target,
11902 GLint level,
11903 GLint xoffset,
11904 GLint yoffset,
11905 GLsizei width,
11906 GLsizei height,
11907 GLenum format,
11908 GLenum type,
11909 const void* pixels) {
11910 NOTREACHED() << "Trying to call glTexSubImage2D() without current GL context";
11911 LOG(ERROR) << "Trying to call glTexSubImage2D() without current GL context";
11914 void NoContextGLApi::glTexSubImage3DFn(GLenum target,
11915 GLint level,
11916 GLint xoffset,
11917 GLint yoffset,
11918 GLint zoffset,
11919 GLsizei width,
11920 GLsizei height,
11921 GLsizei depth,
11922 GLenum format,
11923 GLenum type,
11924 const void* pixels) {
11925 NOTREACHED() << "Trying to call glTexSubImage3D() without current GL context";
11926 LOG(ERROR) << "Trying to call glTexSubImage3D() without current GL context";
11929 void NoContextGLApi::glTransformFeedbackVaryingsFn(GLuint program,
11930 GLsizei count,
11931 const char* const* varyings,
11932 GLenum bufferMode) {
11933 NOTREACHED() << "Trying to call glTransformFeedbackVaryings() without "
11934 "current GL context";
11935 LOG(ERROR) << "Trying to call glTransformFeedbackVaryings() without current "
11936 "GL context";
11939 void NoContextGLApi::glUniform1fFn(GLint location, GLfloat x) {
11940 NOTREACHED() << "Trying to call glUniform1f() without current GL context";
11941 LOG(ERROR) << "Trying to call glUniform1f() without current GL context";
11944 void NoContextGLApi::glUniform1fvFn(GLint location,
11945 GLsizei count,
11946 const GLfloat* v) {
11947 NOTREACHED() << "Trying to call glUniform1fv() without current GL context";
11948 LOG(ERROR) << "Trying to call glUniform1fv() without current GL context";
11951 void NoContextGLApi::glUniform1iFn(GLint location, GLint x) {
11952 NOTREACHED() << "Trying to call glUniform1i() without current GL context";
11953 LOG(ERROR) << "Trying to call glUniform1i() without current GL context";
11956 void NoContextGLApi::glUniform1ivFn(GLint location,
11957 GLsizei count,
11958 const GLint* v) {
11959 NOTREACHED() << "Trying to call glUniform1iv() without current GL context";
11960 LOG(ERROR) << "Trying to call glUniform1iv() without current GL context";
11963 void NoContextGLApi::glUniform1uiFn(GLint location, GLuint v0) {
11964 NOTREACHED() << "Trying to call glUniform1ui() without current GL context";
11965 LOG(ERROR) << "Trying to call glUniform1ui() without current GL context";
11968 void NoContextGLApi::glUniform1uivFn(GLint location,
11969 GLsizei count,
11970 const GLuint* v) {
11971 NOTREACHED() << "Trying to call glUniform1uiv() without current GL context";
11972 LOG(ERROR) << "Trying to call glUniform1uiv() without current GL context";
11975 void NoContextGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
11976 NOTREACHED() << "Trying to call glUniform2f() without current GL context";
11977 LOG(ERROR) << "Trying to call glUniform2f() without current GL context";
11980 void NoContextGLApi::glUniform2fvFn(GLint location,
11981 GLsizei count,
11982 const GLfloat* v) {
11983 NOTREACHED() << "Trying to call glUniform2fv() without current GL context";
11984 LOG(ERROR) << "Trying to call glUniform2fv() without current GL context";
11987 void NoContextGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
11988 NOTREACHED() << "Trying to call glUniform2i() without current GL context";
11989 LOG(ERROR) << "Trying to call glUniform2i() without current GL context";
11992 void NoContextGLApi::glUniform2ivFn(GLint location,
11993 GLsizei count,
11994 const GLint* v) {
11995 NOTREACHED() << "Trying to call glUniform2iv() without current GL context";
11996 LOG(ERROR) << "Trying to call glUniform2iv() without current GL context";
11999 void NoContextGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
12000 NOTREACHED() << "Trying to call glUniform2ui() without current GL context";
12001 LOG(ERROR) << "Trying to call glUniform2ui() without current GL context";
12004 void NoContextGLApi::glUniform2uivFn(GLint location,
12005 GLsizei count,
12006 const GLuint* v) {
12007 NOTREACHED() << "Trying to call glUniform2uiv() without current GL context";
12008 LOG(ERROR) << "Trying to call glUniform2uiv() without current GL context";
12011 void NoContextGLApi::glUniform3fFn(GLint location,
12012 GLfloat x,
12013 GLfloat y,
12014 GLfloat z) {
12015 NOTREACHED() << "Trying to call glUniform3f() without current GL context";
12016 LOG(ERROR) << "Trying to call glUniform3f() without current GL context";
12019 void NoContextGLApi::glUniform3fvFn(GLint location,
12020 GLsizei count,
12021 const GLfloat* v) {
12022 NOTREACHED() << "Trying to call glUniform3fv() without current GL context";
12023 LOG(ERROR) << "Trying to call glUniform3fv() without current GL context";
12026 void NoContextGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
12027 NOTREACHED() << "Trying to call glUniform3i() without current GL context";
12028 LOG(ERROR) << "Trying to call glUniform3i() without current GL context";
12031 void NoContextGLApi::glUniform3ivFn(GLint location,
12032 GLsizei count,
12033 const GLint* v) {
12034 NOTREACHED() << "Trying to call glUniform3iv() without current GL context";
12035 LOG(ERROR) << "Trying to call glUniform3iv() without current GL context";
12038 void NoContextGLApi::glUniform3uiFn(GLint location,
12039 GLuint v0,
12040 GLuint v1,
12041 GLuint v2) {
12042 NOTREACHED() << "Trying to call glUniform3ui() without current GL context";
12043 LOG(ERROR) << "Trying to call glUniform3ui() without current GL context";
12046 void NoContextGLApi::glUniform3uivFn(GLint location,
12047 GLsizei count,
12048 const GLuint* v) {
12049 NOTREACHED() << "Trying to call glUniform3uiv() without current GL context";
12050 LOG(ERROR) << "Trying to call glUniform3uiv() without current GL context";
12053 void NoContextGLApi::glUniform4fFn(GLint location,
12054 GLfloat x,
12055 GLfloat y,
12056 GLfloat z,
12057 GLfloat w) {
12058 NOTREACHED() << "Trying to call glUniform4f() without current GL context";
12059 LOG(ERROR) << "Trying to call glUniform4f() without current GL context";
12062 void NoContextGLApi::glUniform4fvFn(GLint location,
12063 GLsizei count,
12064 const GLfloat* v) {
12065 NOTREACHED() << "Trying to call glUniform4fv() without current GL context";
12066 LOG(ERROR) << "Trying to call glUniform4fv() without current GL context";
12069 void NoContextGLApi::glUniform4iFn(GLint location,
12070 GLint x,
12071 GLint y,
12072 GLint z,
12073 GLint w) {
12074 NOTREACHED() << "Trying to call glUniform4i() without current GL context";
12075 LOG(ERROR) << "Trying to call glUniform4i() without current GL context";
12078 void NoContextGLApi::glUniform4ivFn(GLint location,
12079 GLsizei count,
12080 const GLint* v) {
12081 NOTREACHED() << "Trying to call glUniform4iv() without current GL context";
12082 LOG(ERROR) << "Trying to call glUniform4iv() without current GL context";
12085 void NoContextGLApi::glUniform4uiFn(GLint location,
12086 GLuint v0,
12087 GLuint v1,
12088 GLuint v2,
12089 GLuint v3) {
12090 NOTREACHED() << "Trying to call glUniform4ui() without current GL context";
12091 LOG(ERROR) << "Trying to call glUniform4ui() without current GL context";
12094 void NoContextGLApi::glUniform4uivFn(GLint location,
12095 GLsizei count,
12096 const GLuint* v) {
12097 NOTREACHED() << "Trying to call glUniform4uiv() without current GL context";
12098 LOG(ERROR) << "Trying to call glUniform4uiv() without current GL context";
12101 void NoContextGLApi::glUniformBlockBindingFn(GLuint program,
12102 GLuint uniformBlockIndex,
12103 GLuint uniformBlockBinding) {
12104 NOTREACHED()
12105 << "Trying to call glUniformBlockBinding() without current GL context";
12106 LOG(ERROR)
12107 << "Trying to call glUniformBlockBinding() without current GL context";
12110 void NoContextGLApi::glUniformMatrix2fvFn(GLint location,
12111 GLsizei count,
12112 GLboolean transpose,
12113 const GLfloat* value) {
12114 NOTREACHED()
12115 << "Trying to call glUniformMatrix2fv() without current GL context";
12116 LOG(ERROR)
12117 << "Trying to call glUniformMatrix2fv() without current GL context";
12120 void NoContextGLApi::glUniformMatrix2x3fvFn(GLint location,
12121 GLsizei count,
12122 GLboolean transpose,
12123 const GLfloat* value) {
12124 NOTREACHED()
12125 << "Trying to call glUniformMatrix2x3fv() without current GL context";
12126 LOG(ERROR)
12127 << "Trying to call glUniformMatrix2x3fv() without current GL context";
12130 void NoContextGLApi::glUniformMatrix2x4fvFn(GLint location,
12131 GLsizei count,
12132 GLboolean transpose,
12133 const GLfloat* value) {
12134 NOTREACHED()
12135 << "Trying to call glUniformMatrix2x4fv() without current GL context";
12136 LOG(ERROR)
12137 << "Trying to call glUniformMatrix2x4fv() without current GL context";
12140 void NoContextGLApi::glUniformMatrix3fvFn(GLint location,
12141 GLsizei count,
12142 GLboolean transpose,
12143 const GLfloat* value) {
12144 NOTREACHED()
12145 << "Trying to call glUniformMatrix3fv() without current GL context";
12146 LOG(ERROR)
12147 << "Trying to call glUniformMatrix3fv() without current GL context";
12150 void NoContextGLApi::glUniformMatrix3x2fvFn(GLint location,
12151 GLsizei count,
12152 GLboolean transpose,
12153 const GLfloat* value) {
12154 NOTREACHED()
12155 << "Trying to call glUniformMatrix3x2fv() without current GL context";
12156 LOG(ERROR)
12157 << "Trying to call glUniformMatrix3x2fv() without current GL context";
12160 void NoContextGLApi::glUniformMatrix3x4fvFn(GLint location,
12161 GLsizei count,
12162 GLboolean transpose,
12163 const GLfloat* value) {
12164 NOTREACHED()
12165 << "Trying to call glUniformMatrix3x4fv() without current GL context";
12166 LOG(ERROR)
12167 << "Trying to call glUniformMatrix3x4fv() without current GL context";
12170 void NoContextGLApi::glUniformMatrix4fvFn(GLint location,
12171 GLsizei count,
12172 GLboolean transpose,
12173 const GLfloat* value) {
12174 NOTREACHED()
12175 << "Trying to call glUniformMatrix4fv() without current GL context";
12176 LOG(ERROR)
12177 << "Trying to call glUniformMatrix4fv() without current GL context";
12180 void NoContextGLApi::glUniformMatrix4x2fvFn(GLint location,
12181 GLsizei count,
12182 GLboolean transpose,
12183 const GLfloat* value) {
12184 NOTREACHED()
12185 << "Trying to call glUniformMatrix4x2fv() without current GL context";
12186 LOG(ERROR)
12187 << "Trying to call glUniformMatrix4x2fv() without current GL context";
12190 void NoContextGLApi::glUniformMatrix4x3fvFn(GLint location,
12191 GLsizei count,
12192 GLboolean transpose,
12193 const GLfloat* value) {
12194 NOTREACHED()
12195 << "Trying to call glUniformMatrix4x3fv() without current GL context";
12196 LOG(ERROR)
12197 << "Trying to call glUniformMatrix4x3fv() without current GL context";
12200 GLboolean NoContextGLApi::glUnmapBufferFn(GLenum target) {
12201 NOTREACHED() << "Trying to call glUnmapBuffer() without current GL context";
12202 LOG(ERROR) << "Trying to call glUnmapBuffer() without current GL context";
12203 return GL_FALSE;
12206 void NoContextGLApi::glUseProgramFn(GLuint program) {
12207 NOTREACHED() << "Trying to call glUseProgram() without current GL context";
12208 LOG(ERROR) << "Trying to call glUseProgram() without current GL context";
12211 void NoContextGLApi::glValidateProgramFn(GLuint program) {
12212 NOTREACHED()
12213 << "Trying to call glValidateProgram() without current GL context";
12214 LOG(ERROR) << "Trying to call glValidateProgram() without current GL context";
12217 void NoContextGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
12218 NOTREACHED()
12219 << "Trying to call glVertexAttrib1f() without current GL context";
12220 LOG(ERROR) << "Trying to call glVertexAttrib1f() without current GL context";
12223 void NoContextGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
12224 NOTREACHED()
12225 << "Trying to call glVertexAttrib1fv() without current GL context";
12226 LOG(ERROR) << "Trying to call glVertexAttrib1fv() without current GL context";
12229 void NoContextGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
12230 NOTREACHED()
12231 << "Trying to call glVertexAttrib2f() without current GL context";
12232 LOG(ERROR) << "Trying to call glVertexAttrib2f() without current GL context";
12235 void NoContextGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
12236 NOTREACHED()
12237 << "Trying to call glVertexAttrib2fv() without current GL context";
12238 LOG(ERROR) << "Trying to call glVertexAttrib2fv() without current GL context";
12241 void NoContextGLApi::glVertexAttrib3fFn(GLuint indx,
12242 GLfloat x,
12243 GLfloat y,
12244 GLfloat z) {
12245 NOTREACHED()
12246 << "Trying to call glVertexAttrib3f() without current GL context";
12247 LOG(ERROR) << "Trying to call glVertexAttrib3f() without current GL context";
12250 void NoContextGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
12251 NOTREACHED()
12252 << "Trying to call glVertexAttrib3fv() without current GL context";
12253 LOG(ERROR) << "Trying to call glVertexAttrib3fv() without current GL context";
12256 void NoContextGLApi::glVertexAttrib4fFn(GLuint indx,
12257 GLfloat x,
12258 GLfloat y,
12259 GLfloat z,
12260 GLfloat w) {
12261 NOTREACHED()
12262 << "Trying to call glVertexAttrib4f() without current GL context";
12263 LOG(ERROR) << "Trying to call glVertexAttrib4f() without current GL context";
12266 void NoContextGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
12267 NOTREACHED()
12268 << "Trying to call glVertexAttrib4fv() without current GL context";
12269 LOG(ERROR) << "Trying to call glVertexAttrib4fv() without current GL context";
12272 void NoContextGLApi::glVertexAttribDivisorANGLEFn(GLuint index,
12273 GLuint divisor) {
12274 NOTREACHED() << "Trying to call glVertexAttribDivisorANGLE() without current "
12275 "GL context";
12276 LOG(ERROR) << "Trying to call glVertexAttribDivisorANGLE() without current "
12277 "GL context";
12280 void NoContextGLApi::glVertexAttribI4iFn(GLuint indx,
12281 GLint x,
12282 GLint y,
12283 GLint z,
12284 GLint w) {
12285 NOTREACHED()
12286 << "Trying to call glVertexAttribI4i() without current GL context";
12287 LOG(ERROR) << "Trying to call glVertexAttribI4i() without current GL context";
12290 void NoContextGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
12291 NOTREACHED()
12292 << "Trying to call glVertexAttribI4iv() without current GL context";
12293 LOG(ERROR)
12294 << "Trying to call glVertexAttribI4iv() without current GL context";
12297 void NoContextGLApi::glVertexAttribI4uiFn(GLuint indx,
12298 GLuint x,
12299 GLuint y,
12300 GLuint z,
12301 GLuint w) {
12302 NOTREACHED()
12303 << "Trying to call glVertexAttribI4ui() without current GL context";
12304 LOG(ERROR)
12305 << "Trying to call glVertexAttribI4ui() without current GL context";
12308 void NoContextGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
12309 NOTREACHED()
12310 << "Trying to call glVertexAttribI4uiv() without current GL context";
12311 LOG(ERROR)
12312 << "Trying to call glVertexAttribI4uiv() without current GL context";
12315 void NoContextGLApi::glVertexAttribIPointerFn(GLuint indx,
12316 GLint size,
12317 GLenum type,
12318 GLsizei stride,
12319 const void* ptr) {
12320 NOTREACHED()
12321 << "Trying to call glVertexAttribIPointer() without current GL context";
12322 LOG(ERROR)
12323 << "Trying to call glVertexAttribIPointer() without current GL context";
12326 void NoContextGLApi::glVertexAttribPointerFn(GLuint indx,
12327 GLint size,
12328 GLenum type,
12329 GLboolean normalized,
12330 GLsizei stride,
12331 const void* ptr) {
12332 NOTREACHED()
12333 << "Trying to call glVertexAttribPointer() without current GL context";
12334 LOG(ERROR)
12335 << "Trying to call glVertexAttribPointer() without current GL context";
12338 void NoContextGLApi::glViewportFn(GLint x,
12339 GLint y,
12340 GLsizei width,
12341 GLsizei height) {
12342 NOTREACHED() << "Trying to call glViewport() without current GL context";
12343 LOG(ERROR) << "Trying to call glViewport() without current GL context";
12346 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync,
12347 GLbitfield flags,
12348 GLuint64 timeout) {
12349 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
12350 LOG(ERROR) << "Trying to call glWaitSync() without current GL context";
12351 return static_cast<GLenum>(0);
12354 } // namespace gfx