cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ui / gl / gl_bindings_autogen_gl.cc
blobc2493db892feb9a76e8314a3efbb9a06bfe0e0db
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 Debug_glAttachShader(GLuint program,
2124 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 Debug_glBindAttribLocation(GLuint program,
2144 GLuint index,
2145 const char* name) {
2146 GL_SERVICE_LOG("glBindAttribLocation"
2147 << "(" << program << ", " << index << ", " << name << ")");
2148 g_driver_gl.debug_fn.glBindAttribLocationFn(program, index, name);
2151 static void GL_BINDING_CALL Debug_glBindBuffer(GLenum target, GLuint buffer) {
2152 GL_SERVICE_LOG("glBindBuffer"
2153 << "(" << GLEnums::GetStringEnum(target) << ", " << buffer
2154 << ")");
2155 g_driver_gl.debug_fn.glBindBufferFn(target, buffer);
2158 static void GL_BINDING_CALL Debug_glBindBufferBase(GLenum target,
2159 GLuint index,
2160 GLuint buffer) {
2161 GL_SERVICE_LOG("glBindBufferBase"
2162 << "(" << GLEnums::GetStringEnum(target) << ", " << index
2163 << ", " << buffer << ")");
2164 g_driver_gl.debug_fn.glBindBufferBaseFn(target, index, buffer);
2167 static void GL_BINDING_CALL Debug_glBindBufferRange(GLenum target,
2168 GLuint index,
2169 GLuint buffer,
2170 GLintptr offset,
2171 GLsizeiptr size) {
2172 GL_SERVICE_LOG("glBindBufferRange"
2173 << "(" << GLEnums::GetStringEnum(target) << ", " << index
2174 << ", " << buffer << ", " << offset << ", " << size << ")");
2175 g_driver_gl.debug_fn.glBindBufferRangeFn(target, index, buffer, offset, size);
2178 static void GL_BINDING_CALL Debug_glBindFragDataLocation(GLuint program,
2179 GLuint colorNumber,
2180 const char* name) {
2181 GL_SERVICE_LOG("glBindFragDataLocation"
2182 << "(" << program << ", " << colorNumber << ", " << name
2183 << ")");
2184 g_driver_gl.debug_fn.glBindFragDataLocationFn(program, colorNumber, name);
2187 static void GL_BINDING_CALL
2188 Debug_glBindFragDataLocationIndexed(GLuint program,
2189 GLuint colorNumber,
2190 GLuint index,
2191 const char* name) {
2192 GL_SERVICE_LOG("glBindFragDataLocationIndexed"
2193 << "(" << program << ", " << colorNumber << ", " << index
2194 << ", " << name << ")");
2195 g_driver_gl.debug_fn.glBindFragDataLocationIndexedFn(program, colorNumber,
2196 index, name);
2199 static void GL_BINDING_CALL Debug_glBindFramebufferEXT(GLenum target,
2200 GLuint framebuffer) {
2201 GL_SERVICE_LOG("glBindFramebufferEXT"
2202 << "(" << GLEnums::GetStringEnum(target) << ", " << framebuffer
2203 << ")");
2204 g_driver_gl.debug_fn.glBindFramebufferEXTFn(target, framebuffer);
2207 static void GL_BINDING_CALL Debug_glBindRenderbufferEXT(GLenum target,
2208 GLuint renderbuffer) {
2209 GL_SERVICE_LOG("glBindRenderbufferEXT"
2210 << "(" << GLEnums::GetStringEnum(target) << ", "
2211 << renderbuffer << ")");
2212 g_driver_gl.debug_fn.glBindRenderbufferEXTFn(target, renderbuffer);
2215 static void GL_BINDING_CALL Debug_glBindSampler(GLuint unit, GLuint sampler) {
2216 GL_SERVICE_LOG("glBindSampler"
2217 << "(" << unit << ", " << sampler << ")");
2218 g_driver_gl.debug_fn.glBindSamplerFn(unit, sampler);
2221 static void GL_BINDING_CALL Debug_glBindTexture(GLenum target, GLuint texture) {
2222 GL_SERVICE_LOG("glBindTexture"
2223 << "(" << GLEnums::GetStringEnum(target) << ", " << texture
2224 << ")");
2225 g_driver_gl.debug_fn.glBindTextureFn(target, texture);
2228 static void GL_BINDING_CALL Debug_glBindTransformFeedback(GLenum target,
2229 GLuint id) {
2230 GL_SERVICE_LOG("glBindTransformFeedback"
2231 << "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
2232 g_driver_gl.debug_fn.glBindTransformFeedbackFn(target, id);
2235 static void GL_BINDING_CALL Debug_glBindVertexArrayOES(GLuint array) {
2236 GL_SERVICE_LOG("glBindVertexArrayOES"
2237 << "(" << array << ")");
2238 g_driver_gl.debug_fn.glBindVertexArrayOESFn(array);
2241 static void GL_BINDING_CALL Debug_glBlendBarrierKHR(void) {
2242 GL_SERVICE_LOG("glBlendBarrierKHR"
2243 << "("
2244 << ")");
2245 g_driver_gl.debug_fn.glBlendBarrierKHRFn();
2248 static void GL_BINDING_CALL Debug_glBlendColor(GLclampf red,
2249 GLclampf green,
2250 GLclampf blue,
2251 GLclampf alpha) {
2252 GL_SERVICE_LOG("glBlendColor"
2253 << "(" << red << ", " << green << ", " << blue << ", " << alpha
2254 << ")");
2255 g_driver_gl.debug_fn.glBlendColorFn(red, green, blue, alpha);
2258 static void GL_BINDING_CALL Debug_glBlendEquation(GLenum mode) {
2259 GL_SERVICE_LOG("glBlendEquation"
2260 << "(" << GLEnums::GetStringEnum(mode) << ")");
2261 g_driver_gl.debug_fn.glBlendEquationFn(mode);
2264 static void GL_BINDING_CALL Debug_glBlendEquationSeparate(GLenum modeRGB,
2265 GLenum modeAlpha) {
2266 GL_SERVICE_LOG("glBlendEquationSeparate"
2267 << "(" << GLEnums::GetStringEnum(modeRGB) << ", "
2268 << GLEnums::GetStringEnum(modeAlpha) << ")");
2269 g_driver_gl.debug_fn.glBlendEquationSeparateFn(modeRGB, modeAlpha);
2272 static void GL_BINDING_CALL Debug_glBlendFunc(GLenum sfactor, GLenum dfactor) {
2273 GL_SERVICE_LOG("glBlendFunc"
2274 << "(" << GLEnums::GetStringEnum(sfactor) << ", "
2275 << GLEnums::GetStringEnum(dfactor) << ")");
2276 g_driver_gl.debug_fn.glBlendFuncFn(sfactor, dfactor);
2279 static void GL_BINDING_CALL Debug_glBlendFuncSeparate(GLenum srcRGB,
2280 GLenum dstRGB,
2281 GLenum srcAlpha,
2282 GLenum dstAlpha) {
2283 GL_SERVICE_LOG("glBlendFuncSeparate"
2284 << "(" << GLEnums::GetStringEnum(srcRGB) << ", "
2285 << GLEnums::GetStringEnum(dstRGB) << ", "
2286 << GLEnums::GetStringEnum(srcAlpha) << ", "
2287 << GLEnums::GetStringEnum(dstAlpha) << ")");
2288 g_driver_gl.debug_fn.glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha,
2289 dstAlpha);
2292 static void GL_BINDING_CALL Debug_glBlitFramebuffer(GLint srcX0,
2293 GLint srcY0,
2294 GLint srcX1,
2295 GLint srcY1,
2296 GLint dstX0,
2297 GLint dstY0,
2298 GLint dstX1,
2299 GLint dstY1,
2300 GLbitfield mask,
2301 GLenum filter) {
2302 GL_SERVICE_LOG("glBlitFramebuffer"
2303 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2304 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2305 << ", " << dstY1 << ", " << mask << ", "
2306 << GLEnums::GetStringEnum(filter) << ")");
2307 g_driver_gl.debug_fn.glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0,
2308 dstY0, dstX1, dstY1, mask, filter);
2311 static void GL_BINDING_CALL Debug_glBlitFramebufferANGLE(GLint srcX0,
2312 GLint srcY0,
2313 GLint srcX1,
2314 GLint srcY1,
2315 GLint dstX0,
2316 GLint dstY0,
2317 GLint dstX1,
2318 GLint dstY1,
2319 GLbitfield mask,
2320 GLenum filter) {
2321 GL_SERVICE_LOG("glBlitFramebufferANGLE"
2322 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2323 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2324 << ", " << dstY1 << ", " << mask << ", "
2325 << GLEnums::GetStringEnum(filter) << ")");
2326 g_driver_gl.debug_fn.glBlitFramebufferANGLEFn(
2327 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
2330 static void GL_BINDING_CALL Debug_glBlitFramebufferEXT(GLint srcX0,
2331 GLint srcY0,
2332 GLint srcX1,
2333 GLint srcY1,
2334 GLint dstX0,
2335 GLint dstY0,
2336 GLint dstX1,
2337 GLint dstY1,
2338 GLbitfield mask,
2339 GLenum filter) {
2340 GL_SERVICE_LOG("glBlitFramebufferEXT"
2341 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2342 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2343 << ", " << dstY1 << ", " << mask << ", "
2344 << GLEnums::GetStringEnum(filter) << ")");
2345 g_driver_gl.debug_fn.glBlitFramebufferEXTFn(
2346 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
2349 static void GL_BINDING_CALL Debug_glBufferData(GLenum target,
2350 GLsizeiptr size,
2351 const void* data,
2352 GLenum usage) {
2353 GL_SERVICE_LOG("glBufferData"
2354 << "(" << GLEnums::GetStringEnum(target) << ", " << size
2355 << ", " << static_cast<const void*>(data) << ", "
2356 << GLEnums::GetStringEnum(usage) << ")");
2357 g_driver_gl.debug_fn.glBufferDataFn(target, size, data, usage);
2360 static void GL_BINDING_CALL Debug_glBufferSubData(GLenum target,
2361 GLintptr offset,
2362 GLsizeiptr size,
2363 const void* data) {
2364 GL_SERVICE_LOG("glBufferSubData"
2365 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
2366 << ", " << size << ", " << static_cast<const void*>(data)
2367 << ")");
2368 g_driver_gl.debug_fn.glBufferSubDataFn(target, offset, size, data);
2371 static GLenum GL_BINDING_CALL Debug_glCheckFramebufferStatusEXT(GLenum target) {
2372 GL_SERVICE_LOG("glCheckFramebufferStatusEXT"
2373 << "(" << GLEnums::GetStringEnum(target) << ")");
2374 GLenum result = g_driver_gl.debug_fn.glCheckFramebufferStatusEXTFn(target);
2376 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringEnum(result));
2378 return result;
2381 static void GL_BINDING_CALL Debug_glClear(GLbitfield mask) {
2382 GL_SERVICE_LOG("glClear"
2383 << "(" << mask << ")");
2384 g_driver_gl.debug_fn.glClearFn(mask);
2387 static void GL_BINDING_CALL Debug_glClearBufferfi(GLenum buffer,
2388 GLint drawbuffer,
2389 const GLfloat depth,
2390 GLint stencil) {
2391 GL_SERVICE_LOG("glClearBufferfi"
2392 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2393 << ", " << depth << ", " << stencil << ")");
2394 g_driver_gl.debug_fn.glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
2397 static void GL_BINDING_CALL Debug_glClearBufferfv(GLenum buffer,
2398 GLint drawbuffer,
2399 const GLfloat* value) {
2400 GL_SERVICE_LOG("glClearBufferfv"
2401 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2402 << ", " << static_cast<const void*>(value) << ")");
2403 g_driver_gl.debug_fn.glClearBufferfvFn(buffer, drawbuffer, value);
2406 static void GL_BINDING_CALL Debug_glClearBufferiv(GLenum buffer,
2407 GLint drawbuffer,
2408 const GLint* value) {
2409 GL_SERVICE_LOG("glClearBufferiv"
2410 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2411 << ", " << static_cast<const void*>(value) << ")");
2412 g_driver_gl.debug_fn.glClearBufferivFn(buffer, drawbuffer, value);
2415 static void GL_BINDING_CALL Debug_glClearBufferuiv(GLenum buffer,
2416 GLint drawbuffer,
2417 const GLuint* value) {
2418 GL_SERVICE_LOG("glClearBufferuiv"
2419 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2420 << ", " << static_cast<const void*>(value) << ")");
2421 g_driver_gl.debug_fn.glClearBufferuivFn(buffer, drawbuffer, value);
2424 static void GL_BINDING_CALL Debug_glClearColor(GLclampf red,
2425 GLclampf green,
2426 GLclampf blue,
2427 GLclampf alpha) {
2428 GL_SERVICE_LOG("glClearColor"
2429 << "(" << red << ", " << green << ", " << blue << ", " << alpha
2430 << ")");
2431 g_driver_gl.debug_fn.glClearColorFn(red, green, blue, alpha);
2434 static void GL_BINDING_CALL Debug_glClearDepth(GLclampd depth) {
2435 GL_SERVICE_LOG("glClearDepth"
2436 << "(" << depth << ")");
2437 g_driver_gl.debug_fn.glClearDepthFn(depth);
2440 static void GL_BINDING_CALL Debug_glClearDepthf(GLclampf depth) {
2441 GL_SERVICE_LOG("glClearDepthf"
2442 << "(" << depth << ")");
2443 g_driver_gl.debug_fn.glClearDepthfFn(depth);
2446 static void GL_BINDING_CALL Debug_glClearStencil(GLint s) {
2447 GL_SERVICE_LOG("glClearStencil"
2448 << "(" << s << ")");
2449 g_driver_gl.debug_fn.glClearStencilFn(s);
2452 static GLenum GL_BINDING_CALL Debug_glClientWaitSync(GLsync sync,
2453 GLbitfield flags,
2454 GLuint64 timeout) {
2455 GL_SERVICE_LOG("glClientWaitSync"
2456 << "(" << sync << ", " << flags << ", " << timeout << ")");
2457 GLenum result = g_driver_gl.debug_fn.glClientWaitSyncFn(sync, flags, timeout);
2458 GL_SERVICE_LOG("GL_RESULT: " << result);
2459 return result;
2462 static void GL_BINDING_CALL Debug_glColorMask(GLboolean red,
2463 GLboolean green,
2464 GLboolean blue,
2465 GLboolean alpha) {
2466 GL_SERVICE_LOG("glColorMask"
2467 << "(" << GLEnums::GetStringBool(red) << ", "
2468 << GLEnums::GetStringBool(green) << ", "
2469 << GLEnums::GetStringBool(blue) << ", "
2470 << GLEnums::GetStringBool(alpha) << ")");
2471 g_driver_gl.debug_fn.glColorMaskFn(red, green, blue, alpha);
2474 static void GL_BINDING_CALL Debug_glCompileShader(GLuint shader) {
2475 GL_SERVICE_LOG("glCompileShader"
2476 << "(" << shader << ")");
2477 g_driver_gl.debug_fn.glCompileShaderFn(shader);
2480 static void GL_BINDING_CALL Debug_glCompressedTexImage2D(GLenum target,
2481 GLint level,
2482 GLenum internalformat,
2483 GLsizei width,
2484 GLsizei height,
2485 GLint border,
2486 GLsizei imageSize,
2487 const void* data) {
2488 GL_SERVICE_LOG("glCompressedTexImage2D"
2489 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2490 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
2491 << width << ", " << height << ", " << border << ", "
2492 << imageSize << ", " << static_cast<const void*>(data) << ")");
2493 g_driver_gl.debug_fn.glCompressedTexImage2DFn(
2494 target, level, internalformat, width, height, border, imageSize, data);
2497 static void GL_BINDING_CALL Debug_glCompressedTexImage3D(GLenum target,
2498 GLint level,
2499 GLenum internalformat,
2500 GLsizei width,
2501 GLsizei height,
2502 GLsizei depth,
2503 GLint border,
2504 GLsizei imageSize,
2505 const void* data) {
2506 GL_SERVICE_LOG("glCompressedTexImage3D"
2507 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2508 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
2509 << width << ", " << height << ", " << depth << ", " << border
2510 << ", " << imageSize << ", " << static_cast<const void*>(data)
2511 << ")");
2512 g_driver_gl.debug_fn.glCompressedTexImage3DFn(target, level, internalformat,
2513 width, height, depth, border,
2514 imageSize, data);
2517 static void GL_BINDING_CALL Debug_glCompressedTexSubImage2D(GLenum target,
2518 GLint level,
2519 GLint xoffset,
2520 GLint yoffset,
2521 GLsizei width,
2522 GLsizei height,
2523 GLenum format,
2524 GLsizei imageSize,
2525 const void* data) {
2526 GL_SERVICE_LOG("glCompressedTexSubImage2D"
2527 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2528 << ", " << xoffset << ", " << yoffset << ", " << width << ", "
2529 << height << ", " << GLEnums::GetStringEnum(format) << ", "
2530 << imageSize << ", " << static_cast<const void*>(data) << ")");
2531 g_driver_gl.debug_fn.glCompressedTexSubImage2DFn(
2532 target, level, xoffset, yoffset, width, height, format, imageSize, data);
2535 static void GL_BINDING_CALL Debug_glCompressedTexSubImage3D(GLenum target,
2536 GLint level,
2537 GLint xoffset,
2538 GLint yoffset,
2539 GLint zoffset,
2540 GLsizei width,
2541 GLsizei height,
2542 GLsizei depth,
2543 GLenum format,
2544 GLsizei imageSize,
2545 const void* data) {
2546 GL_SERVICE_LOG("glCompressedTexSubImage3D"
2547 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2548 << ", " << xoffset << ", " << yoffset << ", " << zoffset
2549 << ", " << width << ", " << height << ", " << depth << ", "
2550 << GLEnums::GetStringEnum(format) << ", " << imageSize << ", "
2551 << static_cast<const void*>(data) << ")");
2552 g_driver_gl.debug_fn.glCompressedTexSubImage3DFn(
2553 target, level, xoffset, yoffset, zoffset, width, height, depth, format,
2554 imageSize, data);
2557 static void GL_BINDING_CALL Debug_glCopyBufferSubData(GLenum readTarget,
2558 GLenum writeTarget,
2559 GLintptr readOffset,
2560 GLintptr writeOffset,
2561 GLsizeiptr size) {
2562 GL_SERVICE_LOG("glCopyBufferSubData"
2563 << "(" << GLEnums::GetStringEnum(readTarget) << ", "
2564 << GLEnums::GetStringEnum(writeTarget) << ", " << readOffset
2565 << ", " << writeOffset << ", " << size << ")");
2566 g_driver_gl.debug_fn.glCopyBufferSubDataFn(readTarget, writeTarget,
2567 readOffset, writeOffset, size);
2570 static void GL_BINDING_CALL Debug_glCopyTexImage2D(GLenum target,
2571 GLint level,
2572 GLenum internalformat,
2573 GLint x,
2574 GLint y,
2575 GLsizei width,
2576 GLsizei height,
2577 GLint border) {
2578 GL_SERVICE_LOG("glCopyTexImage2D"
2579 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2580 << ", " << GLEnums::GetStringEnum(internalformat) << ", " << x
2581 << ", " << y << ", " << width << ", " << height << ", "
2582 << border << ")");
2583 g_driver_gl.debug_fn.glCopyTexImage2DFn(target, level, internalformat, x, y,
2584 width, height, border);
2587 static void GL_BINDING_CALL Debug_glCopyTexSubImage2D(GLenum target,
2588 GLint level,
2589 GLint xoffset,
2590 GLint yoffset,
2591 GLint x,
2592 GLint y,
2593 GLsizei width,
2594 GLsizei height) {
2595 GL_SERVICE_LOG("glCopyTexSubImage2D"
2596 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2597 << ", " << xoffset << ", " << yoffset << ", " << x << ", " << y
2598 << ", " << width << ", " << height << ")");
2599 g_driver_gl.debug_fn.glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x,
2600 y, width, height);
2603 static void GL_BINDING_CALL Debug_glCopyTexSubImage3D(GLenum target,
2604 GLint level,
2605 GLint xoffset,
2606 GLint yoffset,
2607 GLint zoffset,
2608 GLint x,
2609 GLint y,
2610 GLsizei width,
2611 GLsizei height) {
2612 GL_SERVICE_LOG("glCopyTexSubImage3D"
2613 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2614 << ", " << xoffset << ", " << yoffset << ", " << zoffset
2615 << ", " << x << ", " << y << ", " << width << ", " << height
2616 << ")");
2617 g_driver_gl.debug_fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset,
2618 zoffset, x, y, width, height);
2621 static void GL_BINDING_CALL Debug_glCoverFillPathNV(GLuint path,
2622 GLenum coverMode) {
2623 GL_SERVICE_LOG("glCoverFillPathNV"
2624 << "(" << path << ", " << GLEnums::GetStringEnum(coverMode)
2625 << ")");
2626 g_driver_gl.debug_fn.glCoverFillPathNVFn(path, coverMode);
2629 static void GL_BINDING_CALL Debug_glCoverStrokePathNV(GLuint name,
2630 GLenum coverMode) {
2631 GL_SERVICE_LOG("glCoverStrokePathNV"
2632 << "(" << name << ", " << GLEnums::GetStringEnum(coverMode)
2633 << ")");
2634 g_driver_gl.debug_fn.glCoverStrokePathNVFn(name, coverMode);
2637 static GLuint GL_BINDING_CALL Debug_glCreateProgram(void) {
2638 GL_SERVICE_LOG("glCreateProgram"
2639 << "("
2640 << ")");
2641 GLuint result = g_driver_gl.debug_fn.glCreateProgramFn();
2642 GL_SERVICE_LOG("GL_RESULT: " << result);
2643 return result;
2646 static GLuint GL_BINDING_CALL Debug_glCreateShader(GLenum type) {
2647 GL_SERVICE_LOG("glCreateShader"
2648 << "(" << GLEnums::GetStringEnum(type) << ")");
2649 GLuint result = g_driver_gl.debug_fn.glCreateShaderFn(type);
2650 GL_SERVICE_LOG("GL_RESULT: " << result);
2651 return result;
2654 static void GL_BINDING_CALL Debug_glCullFace(GLenum mode) {
2655 GL_SERVICE_LOG("glCullFace"
2656 << "(" << GLEnums::GetStringEnum(mode) << ")");
2657 g_driver_gl.debug_fn.glCullFaceFn(mode);
2660 static void GL_BINDING_CALL Debug_glDeleteBuffersARB(GLsizei n,
2661 const GLuint* buffers) {
2662 GL_SERVICE_LOG("glDeleteBuffersARB"
2663 << "(" << n << ", " << static_cast<const void*>(buffers)
2664 << ")");
2665 g_driver_gl.debug_fn.glDeleteBuffersARBFn(n, buffers);
2668 static void GL_BINDING_CALL Debug_glDeleteFencesAPPLE(GLsizei n,
2669 const GLuint* fences) {
2670 GL_SERVICE_LOG("glDeleteFencesAPPLE"
2671 << "(" << n << ", " << static_cast<const void*>(fences)
2672 << ")");
2673 g_driver_gl.debug_fn.glDeleteFencesAPPLEFn(n, fences);
2676 static void GL_BINDING_CALL Debug_glDeleteFencesNV(GLsizei n,
2677 const GLuint* fences) {
2678 GL_SERVICE_LOG("glDeleteFencesNV"
2679 << "(" << n << ", " << static_cast<const void*>(fences)
2680 << ")");
2681 g_driver_gl.debug_fn.glDeleteFencesNVFn(n, fences);
2684 static void GL_BINDING_CALL
2685 Debug_glDeleteFramebuffersEXT(GLsizei n, const GLuint* framebuffers) {
2686 GL_SERVICE_LOG("glDeleteFramebuffersEXT"
2687 << "(" << n << ", " << static_cast<const void*>(framebuffers)
2688 << ")");
2689 g_driver_gl.debug_fn.glDeleteFramebuffersEXTFn(n, framebuffers);
2692 static void GL_BINDING_CALL Debug_glDeletePathsNV(GLuint path, GLsizei range) {
2693 GL_SERVICE_LOG("glDeletePathsNV"
2694 << "(" << path << ", " << range << ")");
2695 g_driver_gl.debug_fn.glDeletePathsNVFn(path, range);
2698 static void GL_BINDING_CALL Debug_glDeleteProgram(GLuint program) {
2699 GL_SERVICE_LOG("glDeleteProgram"
2700 << "(" << program << ")");
2701 g_driver_gl.debug_fn.glDeleteProgramFn(program);
2704 static void GL_BINDING_CALL Debug_glDeleteQueries(GLsizei n,
2705 const GLuint* ids) {
2706 GL_SERVICE_LOG("glDeleteQueries"
2707 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2708 g_driver_gl.debug_fn.glDeleteQueriesFn(n, ids);
2711 static void GL_BINDING_CALL
2712 Debug_glDeleteRenderbuffersEXT(GLsizei n, const GLuint* renderbuffers) {
2713 GL_SERVICE_LOG("glDeleteRenderbuffersEXT"
2714 << "(" << n << ", " << static_cast<const void*>(renderbuffers)
2715 << ")");
2716 g_driver_gl.debug_fn.glDeleteRenderbuffersEXTFn(n, renderbuffers);
2719 static void GL_BINDING_CALL Debug_glDeleteSamplers(GLsizei n,
2720 const GLuint* samplers) {
2721 GL_SERVICE_LOG("glDeleteSamplers"
2722 << "(" << n << ", " << static_cast<const void*>(samplers)
2723 << ")");
2724 g_driver_gl.debug_fn.glDeleteSamplersFn(n, samplers);
2727 static void GL_BINDING_CALL Debug_glDeleteShader(GLuint shader) {
2728 GL_SERVICE_LOG("glDeleteShader"
2729 << "(" << shader << ")");
2730 g_driver_gl.debug_fn.glDeleteShaderFn(shader);
2733 static void GL_BINDING_CALL Debug_glDeleteSync(GLsync sync) {
2734 GL_SERVICE_LOG("glDeleteSync"
2735 << "(" << sync << ")");
2736 g_driver_gl.debug_fn.glDeleteSyncFn(sync);
2739 static void GL_BINDING_CALL Debug_glDeleteTextures(GLsizei n,
2740 const GLuint* textures) {
2741 GL_SERVICE_LOG("glDeleteTextures"
2742 << "(" << n << ", " << static_cast<const void*>(textures)
2743 << ")");
2744 g_driver_gl.debug_fn.glDeleteTexturesFn(n, textures);
2747 static void GL_BINDING_CALL
2748 Debug_glDeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
2749 GL_SERVICE_LOG("glDeleteTransformFeedbacks"
2750 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2751 g_driver_gl.debug_fn.glDeleteTransformFeedbacksFn(n, ids);
2754 static void GL_BINDING_CALL
2755 Debug_glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
2756 GL_SERVICE_LOG("glDeleteVertexArraysOES"
2757 << "(" << n << ", " << static_cast<const void*>(arrays)
2758 << ")");
2759 g_driver_gl.debug_fn.glDeleteVertexArraysOESFn(n, arrays);
2762 static void GL_BINDING_CALL Debug_glDepthFunc(GLenum func) {
2763 GL_SERVICE_LOG("glDepthFunc"
2764 << "(" << GLEnums::GetStringEnum(func) << ")");
2765 g_driver_gl.debug_fn.glDepthFuncFn(func);
2768 static void GL_BINDING_CALL Debug_glDepthMask(GLboolean flag) {
2769 GL_SERVICE_LOG("glDepthMask"
2770 << "(" << GLEnums::GetStringBool(flag) << ")");
2771 g_driver_gl.debug_fn.glDepthMaskFn(flag);
2774 static void GL_BINDING_CALL Debug_glDepthRange(GLclampd zNear, GLclampd zFar) {
2775 GL_SERVICE_LOG("glDepthRange"
2776 << "(" << zNear << ", " << zFar << ")");
2777 g_driver_gl.debug_fn.glDepthRangeFn(zNear, zFar);
2780 static void GL_BINDING_CALL Debug_glDepthRangef(GLclampf zNear, GLclampf zFar) {
2781 GL_SERVICE_LOG("glDepthRangef"
2782 << "(" << zNear << ", " << zFar << ")");
2783 g_driver_gl.debug_fn.glDepthRangefFn(zNear, zFar);
2786 static void GL_BINDING_CALL Debug_glDetachShader(GLuint program,
2787 GLuint shader) {
2788 GL_SERVICE_LOG("glDetachShader"
2789 << "(" << program << ", " << shader << ")");
2790 g_driver_gl.debug_fn.glDetachShaderFn(program, shader);
2793 static void GL_BINDING_CALL Debug_glDisable(GLenum cap) {
2794 GL_SERVICE_LOG("glDisable"
2795 << "(" << GLEnums::GetStringEnum(cap) << ")");
2796 g_driver_gl.debug_fn.glDisableFn(cap);
2799 static void GL_BINDING_CALL Debug_glDisableVertexAttribArray(GLuint index) {
2800 GL_SERVICE_LOG("glDisableVertexAttribArray"
2801 << "(" << index << ")");
2802 g_driver_gl.debug_fn.glDisableVertexAttribArrayFn(index);
2805 static void GL_BINDING_CALL
2806 Debug_glDiscardFramebufferEXT(GLenum target,
2807 GLsizei numAttachments,
2808 const GLenum* attachments) {
2809 GL_SERVICE_LOG("glDiscardFramebufferEXT"
2810 << "(" << GLEnums::GetStringEnum(target) << ", "
2811 << numAttachments << ", "
2812 << static_cast<const void*>(attachments) << ")");
2813 g_driver_gl.debug_fn.glDiscardFramebufferEXTFn(target, numAttachments,
2814 attachments);
2817 static void GL_BINDING_CALL Debug_glDrawArrays(GLenum mode,
2818 GLint first,
2819 GLsizei count) {
2820 GL_SERVICE_LOG("glDrawArrays"
2821 << "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
2822 << count << ")");
2823 g_driver_gl.debug_fn.glDrawArraysFn(mode, first, count);
2826 static void GL_BINDING_CALL
2827 Debug_glDrawArraysInstancedANGLE(GLenum mode,
2828 GLint first,
2829 GLsizei count,
2830 GLsizei primcount) {
2831 GL_SERVICE_LOG("glDrawArraysInstancedANGLE"
2832 << "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
2833 << count << ", " << primcount << ")");
2834 g_driver_gl.debug_fn.glDrawArraysInstancedANGLEFn(mode, first, count,
2835 primcount);
2838 static void GL_BINDING_CALL Debug_glDrawBuffer(GLenum mode) {
2839 GL_SERVICE_LOG("glDrawBuffer"
2840 << "(" << GLEnums::GetStringEnum(mode) << ")");
2841 g_driver_gl.debug_fn.glDrawBufferFn(mode);
2844 static void GL_BINDING_CALL Debug_glDrawBuffersARB(GLsizei n,
2845 const GLenum* bufs) {
2846 GL_SERVICE_LOG("glDrawBuffersARB"
2847 << "(" << n << ", " << static_cast<const void*>(bufs) << ")");
2848 g_driver_gl.debug_fn.glDrawBuffersARBFn(n, bufs);
2851 static void GL_BINDING_CALL Debug_glDrawElements(GLenum mode,
2852 GLsizei count,
2853 GLenum type,
2854 const void* indices) {
2855 GL_SERVICE_LOG("glDrawElements"
2856 << "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
2857 << GLEnums::GetStringEnum(type) << ", "
2858 << static_cast<const void*>(indices) << ")");
2859 g_driver_gl.debug_fn.glDrawElementsFn(mode, count, type, indices);
2862 static void GL_BINDING_CALL
2863 Debug_glDrawElementsInstancedANGLE(GLenum mode,
2864 GLsizei count,
2865 GLenum type,
2866 const void* indices,
2867 GLsizei primcount) {
2868 GL_SERVICE_LOG("glDrawElementsInstancedANGLE"
2869 << "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
2870 << GLEnums::GetStringEnum(type) << ", "
2871 << static_cast<const void*>(indices) << ", " << primcount
2872 << ")");
2873 g_driver_gl.debug_fn.glDrawElementsInstancedANGLEFn(mode, count, type,
2874 indices, primcount);
2877 static void GL_BINDING_CALL Debug_glDrawRangeElements(GLenum mode,
2878 GLuint start,
2879 GLuint end,
2880 GLsizei count,
2881 GLenum type,
2882 const void* indices) {
2883 GL_SERVICE_LOG("glDrawRangeElements"
2884 << "(" << GLEnums::GetStringEnum(mode) << ", " << start << ", "
2885 << end << ", " << count << ", " << GLEnums::GetStringEnum(type)
2886 << ", " << static_cast<const void*>(indices) << ")");
2887 g_driver_gl.debug_fn.glDrawRangeElementsFn(mode, start, end, count, type,
2888 indices);
2891 static void GL_BINDING_CALL
2892 Debug_glEGLImageTargetRenderbufferStorageOES(GLenum target,
2893 GLeglImageOES image) {
2894 GL_SERVICE_LOG("glEGLImageTargetRenderbufferStorageOES"
2895 << "(" << GLEnums::GetStringEnum(target) << ", " << image
2896 << ")");
2897 g_driver_gl.debug_fn.glEGLImageTargetRenderbufferStorageOESFn(target, image);
2900 static void GL_BINDING_CALL
2901 Debug_glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image) {
2902 GL_SERVICE_LOG("glEGLImageTargetTexture2DOES"
2903 << "(" << GLEnums::GetStringEnum(target) << ", " << image
2904 << ")");
2905 g_driver_gl.debug_fn.glEGLImageTargetTexture2DOESFn(target, image);
2908 static void GL_BINDING_CALL Debug_glEnable(GLenum cap) {
2909 GL_SERVICE_LOG("glEnable"
2910 << "(" << GLEnums::GetStringEnum(cap) << ")");
2911 g_driver_gl.debug_fn.glEnableFn(cap);
2914 static void GL_BINDING_CALL Debug_glEnableVertexAttribArray(GLuint index) {
2915 GL_SERVICE_LOG("glEnableVertexAttribArray"
2916 << "(" << index << ")");
2917 g_driver_gl.debug_fn.glEnableVertexAttribArrayFn(index);
2920 static void GL_BINDING_CALL Debug_glEndQuery(GLenum target) {
2921 GL_SERVICE_LOG("glEndQuery"
2922 << "(" << GLEnums::GetStringEnum(target) << ")");
2923 g_driver_gl.debug_fn.glEndQueryFn(target);
2926 static void GL_BINDING_CALL Debug_glEndTransformFeedback(void) {
2927 GL_SERVICE_LOG("glEndTransformFeedback"
2928 << "("
2929 << ")");
2930 g_driver_gl.debug_fn.glEndTransformFeedbackFn();
2933 static GLsync GL_BINDING_CALL Debug_glFenceSync(GLenum condition,
2934 GLbitfield flags) {
2935 GL_SERVICE_LOG("glFenceSync"
2936 << "(" << GLEnums::GetStringEnum(condition) << ", " << flags
2937 << ")");
2938 GLsync result = g_driver_gl.debug_fn.glFenceSyncFn(condition, flags);
2939 GL_SERVICE_LOG("GL_RESULT: " << result);
2940 return result;
2943 static void GL_BINDING_CALL Debug_glFinish(void) {
2944 GL_SERVICE_LOG("glFinish"
2945 << "("
2946 << ")");
2947 g_driver_gl.debug_fn.glFinishFn();
2950 static void GL_BINDING_CALL Debug_glFinishFenceAPPLE(GLuint fence) {
2951 GL_SERVICE_LOG("glFinishFenceAPPLE"
2952 << "(" << fence << ")");
2953 g_driver_gl.debug_fn.glFinishFenceAPPLEFn(fence);
2956 static void GL_BINDING_CALL Debug_glFinishFenceNV(GLuint fence) {
2957 GL_SERVICE_LOG("glFinishFenceNV"
2958 << "(" << fence << ")");
2959 g_driver_gl.debug_fn.glFinishFenceNVFn(fence);
2962 static void GL_BINDING_CALL Debug_glFlush(void) {
2963 GL_SERVICE_LOG("glFlush"
2964 << "("
2965 << ")");
2966 g_driver_gl.debug_fn.glFlushFn();
2969 static void GL_BINDING_CALL Debug_glFlushMappedBufferRange(GLenum target,
2970 GLintptr offset,
2971 GLsizeiptr length) {
2972 GL_SERVICE_LOG("glFlushMappedBufferRange"
2973 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
2974 << ", " << length << ")");
2975 g_driver_gl.debug_fn.glFlushMappedBufferRangeFn(target, offset, length);
2978 static void GL_BINDING_CALL
2979 Debug_glFramebufferRenderbufferEXT(GLenum target,
2980 GLenum attachment,
2981 GLenum renderbuffertarget,
2982 GLuint renderbuffer) {
2983 GL_SERVICE_LOG("glFramebufferRenderbufferEXT"
2984 << "(" << GLEnums::GetStringEnum(target) << ", "
2985 << GLEnums::GetStringEnum(attachment) << ", "
2986 << GLEnums::GetStringEnum(renderbuffertarget) << ", "
2987 << renderbuffer << ")");
2988 g_driver_gl.debug_fn.glFramebufferRenderbufferEXTFn(
2989 target, attachment, renderbuffertarget, renderbuffer);
2992 static void GL_BINDING_CALL Debug_glFramebufferTexture2DEXT(GLenum target,
2993 GLenum attachment,
2994 GLenum textarget,
2995 GLuint texture,
2996 GLint level) {
2997 GL_SERVICE_LOG("glFramebufferTexture2DEXT"
2998 << "(" << GLEnums::GetStringEnum(target) << ", "
2999 << GLEnums::GetStringEnum(attachment) << ", "
3000 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
3001 << level << ")");
3002 g_driver_gl.debug_fn.glFramebufferTexture2DEXTFn(target, attachment,
3003 textarget, texture, level);
3006 static void GL_BINDING_CALL
3007 Debug_glFramebufferTexture2DMultisampleEXT(GLenum target,
3008 GLenum attachment,
3009 GLenum textarget,
3010 GLuint texture,
3011 GLint level,
3012 GLsizei samples) {
3013 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleEXT"
3014 << "(" << GLEnums::GetStringEnum(target) << ", "
3015 << GLEnums::GetStringEnum(attachment) << ", "
3016 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
3017 << level << ", " << samples << ")");
3018 g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleEXTFn(
3019 target, attachment, textarget, texture, level, samples);
3022 static void GL_BINDING_CALL
3023 Debug_glFramebufferTexture2DMultisampleIMG(GLenum target,
3024 GLenum attachment,
3025 GLenum textarget,
3026 GLuint texture,
3027 GLint level,
3028 GLsizei samples) {
3029 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleIMG"
3030 << "(" << GLEnums::GetStringEnum(target) << ", "
3031 << GLEnums::GetStringEnum(attachment) << ", "
3032 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
3033 << level << ", " << samples << ")");
3034 g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleIMGFn(
3035 target, attachment, textarget, texture, level, samples);
3038 static void GL_BINDING_CALL Debug_glFramebufferTextureLayer(GLenum target,
3039 GLenum attachment,
3040 GLuint texture,
3041 GLint level,
3042 GLint layer) {
3043 GL_SERVICE_LOG("glFramebufferTextureLayer"
3044 << "(" << GLEnums::GetStringEnum(target) << ", "
3045 << GLEnums::GetStringEnum(attachment) << ", " << texture
3046 << ", " << level << ", " << layer << ")");
3047 g_driver_gl.debug_fn.glFramebufferTextureLayerFn(target, attachment, texture,
3048 level, layer);
3051 static void GL_BINDING_CALL Debug_glFrontFace(GLenum mode) {
3052 GL_SERVICE_LOG("glFrontFace"
3053 << "(" << GLEnums::GetStringEnum(mode) << ")");
3054 g_driver_gl.debug_fn.glFrontFaceFn(mode);
3057 static void GL_BINDING_CALL Debug_glGenBuffersARB(GLsizei n, GLuint* buffers) {
3058 GL_SERVICE_LOG("glGenBuffersARB"
3059 << "(" << n << ", " << static_cast<const void*>(buffers)
3060 << ")");
3061 g_driver_gl.debug_fn.glGenBuffersARBFn(n, buffers);
3064 static void GL_BINDING_CALL Debug_glGenerateMipmapEXT(GLenum target) {
3065 GL_SERVICE_LOG("glGenerateMipmapEXT"
3066 << "(" << GLEnums::GetStringEnum(target) << ")");
3067 g_driver_gl.debug_fn.glGenerateMipmapEXTFn(target);
3070 static void GL_BINDING_CALL Debug_glGenFencesAPPLE(GLsizei n, GLuint* fences) {
3071 GL_SERVICE_LOG("glGenFencesAPPLE"
3072 << "(" << n << ", " << static_cast<const void*>(fences)
3073 << ")");
3074 g_driver_gl.debug_fn.glGenFencesAPPLEFn(n, fences);
3077 static void GL_BINDING_CALL Debug_glGenFencesNV(GLsizei n, GLuint* fences) {
3078 GL_SERVICE_LOG("glGenFencesNV"
3079 << "(" << n << ", " << static_cast<const void*>(fences)
3080 << ")");
3081 g_driver_gl.debug_fn.glGenFencesNVFn(n, fences);
3084 static void GL_BINDING_CALL Debug_glGenFramebuffersEXT(GLsizei n,
3085 GLuint* framebuffers) {
3086 GL_SERVICE_LOG("glGenFramebuffersEXT"
3087 << "(" << n << ", " << static_cast<const void*>(framebuffers)
3088 << ")");
3089 g_driver_gl.debug_fn.glGenFramebuffersEXTFn(n, framebuffers);
3092 static GLuint GL_BINDING_CALL Debug_glGenPathsNV(GLsizei range) {
3093 GL_SERVICE_LOG("glGenPathsNV"
3094 << "(" << range << ")");
3095 GLuint result = g_driver_gl.debug_fn.glGenPathsNVFn(range);
3096 GL_SERVICE_LOG("GL_RESULT: " << result);
3097 return result;
3100 static void GL_BINDING_CALL Debug_glGenQueries(GLsizei n, GLuint* ids) {
3101 GL_SERVICE_LOG("glGenQueries"
3102 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
3103 g_driver_gl.debug_fn.glGenQueriesFn(n, ids);
3106 static void GL_BINDING_CALL Debug_glGenRenderbuffersEXT(GLsizei n,
3107 GLuint* renderbuffers) {
3108 GL_SERVICE_LOG("glGenRenderbuffersEXT"
3109 << "(" << n << ", " << static_cast<const void*>(renderbuffers)
3110 << ")");
3111 g_driver_gl.debug_fn.glGenRenderbuffersEXTFn(n, renderbuffers);
3114 static void GL_BINDING_CALL Debug_glGenSamplers(GLsizei n, GLuint* samplers) {
3115 GL_SERVICE_LOG("glGenSamplers"
3116 << "(" << n << ", " << static_cast<const void*>(samplers)
3117 << ")");
3118 g_driver_gl.debug_fn.glGenSamplersFn(n, samplers);
3121 static void GL_BINDING_CALL Debug_glGenTextures(GLsizei n, GLuint* textures) {
3122 GL_SERVICE_LOG("glGenTextures"
3123 << "(" << n << ", " << static_cast<const void*>(textures)
3124 << ")");
3125 g_driver_gl.debug_fn.glGenTexturesFn(n, textures);
3128 static void GL_BINDING_CALL Debug_glGenTransformFeedbacks(GLsizei n,
3129 GLuint* ids) {
3130 GL_SERVICE_LOG("glGenTransformFeedbacks"
3131 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
3132 g_driver_gl.debug_fn.glGenTransformFeedbacksFn(n, ids);
3135 static void GL_BINDING_CALL Debug_glGenVertexArraysOES(GLsizei n,
3136 GLuint* arrays) {
3137 GL_SERVICE_LOG("glGenVertexArraysOES"
3138 << "(" << n << ", " << static_cast<const void*>(arrays)
3139 << ")");
3140 g_driver_gl.debug_fn.glGenVertexArraysOESFn(n, arrays);
3143 static void GL_BINDING_CALL Debug_glGetActiveAttrib(GLuint program,
3144 GLuint index,
3145 GLsizei bufsize,
3146 GLsizei* length,
3147 GLint* size,
3148 GLenum* type,
3149 char* name) {
3150 GL_SERVICE_LOG("glGetActiveAttrib"
3151 << "(" << program << ", " << index << ", " << bufsize << ", "
3152 << static_cast<const void*>(length) << ", "
3153 << static_cast<const void*>(size) << ", "
3154 << static_cast<const void*>(type) << ", "
3155 << static_cast<const void*>(name) << ")");
3156 g_driver_gl.debug_fn.glGetActiveAttribFn(program, index, bufsize, length,
3157 size, type, name);
3160 static void GL_BINDING_CALL Debug_glGetActiveUniform(GLuint program,
3161 GLuint index,
3162 GLsizei bufsize,
3163 GLsizei* length,
3164 GLint* size,
3165 GLenum* type,
3166 char* name) {
3167 GL_SERVICE_LOG("glGetActiveUniform"
3168 << "(" << program << ", " << index << ", " << bufsize << ", "
3169 << static_cast<const void*>(length) << ", "
3170 << static_cast<const void*>(size) << ", "
3171 << static_cast<const void*>(type) << ", "
3172 << static_cast<const void*>(name) << ")");
3173 g_driver_gl.debug_fn.glGetActiveUniformFn(program, index, bufsize, length,
3174 size, type, name);
3177 static void GL_BINDING_CALL
3178 Debug_glGetActiveUniformBlockiv(GLuint program,
3179 GLuint uniformBlockIndex,
3180 GLenum pname,
3181 GLint* params) {
3182 GL_SERVICE_LOG("glGetActiveUniformBlockiv"
3183 << "(" << program << ", " << uniformBlockIndex << ", "
3184 << GLEnums::GetStringEnum(pname) << ", "
3185 << static_cast<const void*>(params) << ")");
3186 g_driver_gl.debug_fn.glGetActiveUniformBlockivFn(program, uniformBlockIndex,
3187 pname, params);
3190 static void GL_BINDING_CALL
3191 Debug_glGetActiveUniformBlockName(GLuint program,
3192 GLuint uniformBlockIndex,
3193 GLsizei bufSize,
3194 GLsizei* length,
3195 char* uniformBlockName) {
3196 GL_SERVICE_LOG("glGetActiveUniformBlockName"
3197 << "(" << program << ", " << uniformBlockIndex << ", "
3198 << bufSize << ", " << static_cast<const void*>(length) << ", "
3199 << static_cast<const void*>(uniformBlockName) << ")");
3200 g_driver_gl.debug_fn.glGetActiveUniformBlockNameFn(
3201 program, uniformBlockIndex, bufSize, length, uniformBlockName);
3204 static void GL_BINDING_CALL
3205 Debug_glGetActiveUniformsiv(GLuint program,
3206 GLsizei uniformCount,
3207 const GLuint* uniformIndices,
3208 GLenum pname,
3209 GLint* params) {
3210 GL_SERVICE_LOG("glGetActiveUniformsiv"
3211 << "(" << program << ", " << uniformCount << ", "
3212 << static_cast<const void*>(uniformIndices) << ", "
3213 << GLEnums::GetStringEnum(pname) << ", "
3214 << static_cast<const void*>(params) << ")");
3215 g_driver_gl.debug_fn.glGetActiveUniformsivFn(program, uniformCount,
3216 uniformIndices, pname, params);
3219 static void GL_BINDING_CALL Debug_glGetAttachedShaders(GLuint program,
3220 GLsizei maxcount,
3221 GLsizei* count,
3222 GLuint* shaders) {
3223 GL_SERVICE_LOG("glGetAttachedShaders"
3224 << "(" << program << ", " << maxcount << ", "
3225 << static_cast<const void*>(count) << ", "
3226 << static_cast<const void*>(shaders) << ")");
3227 g_driver_gl.debug_fn.glGetAttachedShadersFn(program, maxcount, count,
3228 shaders);
3231 static GLint GL_BINDING_CALL Debug_glGetAttribLocation(GLuint program,
3232 const char* name) {
3233 GL_SERVICE_LOG("glGetAttribLocation"
3234 << "(" << program << ", " << name << ")");
3235 GLint result = g_driver_gl.debug_fn.glGetAttribLocationFn(program, name);
3236 GL_SERVICE_LOG("GL_RESULT: " << result);
3237 return result;
3240 static void GL_BINDING_CALL Debug_glGetBooleanv(GLenum pname,
3241 GLboolean* params) {
3242 GL_SERVICE_LOG("glGetBooleanv"
3243 << "(" << GLEnums::GetStringEnum(pname) << ", "
3244 << static_cast<const void*>(params) << ")");
3245 g_driver_gl.debug_fn.glGetBooleanvFn(pname, params);
3248 static void GL_BINDING_CALL Debug_glGetBufferParameteriv(GLenum target,
3249 GLenum pname,
3250 GLint* params) {
3251 GL_SERVICE_LOG("glGetBufferParameteriv"
3252 << "(" << GLEnums::GetStringEnum(target) << ", "
3253 << GLEnums::GetStringEnum(pname) << ", "
3254 << static_cast<const void*>(params) << ")");
3255 g_driver_gl.debug_fn.glGetBufferParameterivFn(target, pname, params);
3258 static GLenum GL_BINDING_CALL Debug_glGetError(void) {
3259 GL_SERVICE_LOG("glGetError"
3260 << "("
3261 << ")");
3262 GLenum result = g_driver_gl.debug_fn.glGetErrorFn();
3264 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result));
3266 return result;
3269 static void GL_BINDING_CALL Debug_glGetFenceivNV(GLuint fence,
3270 GLenum pname,
3271 GLint* params) {
3272 GL_SERVICE_LOG("glGetFenceivNV"
3273 << "(" << fence << ", " << GLEnums::GetStringEnum(pname)
3274 << ", " << static_cast<const void*>(params) << ")");
3275 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params);
3278 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) {
3279 GL_SERVICE_LOG("glGetFloatv"
3280 << "(" << GLEnums::GetStringEnum(pname) << ", "
3281 << static_cast<const void*>(params) << ")");
3282 g_driver_gl.debug_fn.glGetFloatvFn(pname, params);
3285 static GLint GL_BINDING_CALL Debug_glGetFragDataLocation(GLuint program,
3286 const char* name) {
3287 GL_SERVICE_LOG("glGetFragDataLocation"
3288 << "(" << program << ", " << name << ")");
3289 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name);
3290 GL_SERVICE_LOG("GL_RESULT: " << result);
3291 return result;
3294 static void GL_BINDING_CALL
3295 Debug_glGetFramebufferAttachmentParameterivEXT(GLenum target,
3296 GLenum attachment,
3297 GLenum pname,
3298 GLint* params) {
3299 GL_SERVICE_LOG("glGetFramebufferAttachmentParameterivEXT"
3300 << "(" << GLEnums::GetStringEnum(target) << ", "
3301 << GLEnums::GetStringEnum(attachment) << ", "
3302 << GLEnums::GetStringEnum(pname) << ", "
3303 << static_cast<const void*>(params) << ")");
3304 g_driver_gl.debug_fn.glGetFramebufferAttachmentParameterivEXTFn(
3305 target, attachment, pname, params);
3308 static GLenum GL_BINDING_CALL Debug_glGetGraphicsResetStatusARB(void) {
3309 GL_SERVICE_LOG("glGetGraphicsResetStatusARB"
3310 << "("
3311 << ")");
3312 GLenum result = g_driver_gl.debug_fn.glGetGraphicsResetStatusARBFn();
3313 GL_SERVICE_LOG("GL_RESULT: " << result);
3314 return result;
3317 static void GL_BINDING_CALL Debug_glGetInteger64i_v(GLenum target,
3318 GLuint index,
3319 GLint64* data) {
3320 GL_SERVICE_LOG("glGetInteger64i_v"
3321 << "(" << GLEnums::GetStringEnum(target) << ", " << index
3322 << ", " << static_cast<const void*>(data) << ")");
3323 g_driver_gl.debug_fn.glGetInteger64i_vFn(target, index, data);
3326 static void GL_BINDING_CALL Debug_glGetInteger64v(GLenum pname,
3327 GLint64* params) {
3328 GL_SERVICE_LOG("glGetInteger64v"
3329 << "(" << GLEnums::GetStringEnum(pname) << ", "
3330 << static_cast<const void*>(params) << ")");
3331 g_driver_gl.debug_fn.glGetInteger64vFn(pname, params);
3334 static void GL_BINDING_CALL Debug_glGetIntegeri_v(GLenum target,
3335 GLuint index,
3336 GLint* data) {
3337 GL_SERVICE_LOG("glGetIntegeri_v"
3338 << "(" << GLEnums::GetStringEnum(target) << ", " << index
3339 << ", " << static_cast<const void*>(data) << ")");
3340 g_driver_gl.debug_fn.glGetIntegeri_vFn(target, index, data);
3343 static void GL_BINDING_CALL Debug_glGetIntegerv(GLenum pname, GLint* params) {
3344 GL_SERVICE_LOG("glGetIntegerv"
3345 << "(" << GLEnums::GetStringEnum(pname) << ", "
3346 << static_cast<const void*>(params) << ")");
3347 g_driver_gl.debug_fn.glGetIntegervFn(pname, params);
3350 static void GL_BINDING_CALL Debug_glGetInternalformativ(GLenum target,
3351 GLenum internalformat,
3352 GLenum pname,
3353 GLsizei bufSize,
3354 GLint* params) {
3355 GL_SERVICE_LOG("glGetInternalformativ"
3356 << "(" << GLEnums::GetStringEnum(target) << ", "
3357 << GLEnums::GetStringEnum(internalformat) << ", "
3358 << GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
3359 << static_cast<const void*>(params) << ")");
3360 g_driver_gl.debug_fn.glGetInternalformativFn(target, internalformat, pname,
3361 bufSize, params);
3364 static void GL_BINDING_CALL Debug_glGetProgramBinary(GLuint program,
3365 GLsizei bufSize,
3366 GLsizei* length,
3367 GLenum* binaryFormat,
3368 GLvoid* binary) {
3369 GL_SERVICE_LOG("glGetProgramBinary"
3370 << "(" << program << ", " << bufSize << ", "
3371 << static_cast<const void*>(length) << ", "
3372 << static_cast<const void*>(binaryFormat) << ", "
3373 << static_cast<const void*>(binary) << ")");
3374 g_driver_gl.debug_fn.glGetProgramBinaryFn(program, bufSize, length,
3375 binaryFormat, binary);
3378 static void GL_BINDING_CALL Debug_glGetProgramInfoLog(GLuint program,
3379 GLsizei bufsize,
3380 GLsizei* length,
3381 char* infolog) {
3382 GL_SERVICE_LOG("glGetProgramInfoLog"
3383 << "(" << program << ", " << bufsize << ", "
3384 << static_cast<const void*>(length) << ", "
3385 << static_cast<const void*>(infolog) << ")");
3386 g_driver_gl.debug_fn.glGetProgramInfoLogFn(program, bufsize, length, infolog);
3389 static void GL_BINDING_CALL Debug_glGetProgramiv(GLuint program,
3390 GLenum pname,
3391 GLint* params) {
3392 GL_SERVICE_LOG("glGetProgramiv"
3393 << "(" << program << ", " << GLEnums::GetStringEnum(pname)
3394 << ", " << static_cast<const void*>(params) << ")");
3395 g_driver_gl.debug_fn.glGetProgramivFn(program, pname, params);
3398 static GLint GL_BINDING_CALL
3399 Debug_glGetProgramResourceLocation(GLuint program,
3400 GLenum programInterface,
3401 const char* name) {
3402 GL_SERVICE_LOG("glGetProgramResourceLocation"
3403 << "(" << program << ", "
3404 << GLEnums::GetStringEnum(programInterface) << ", " << name
3405 << ")");
3406 GLint result = g_driver_gl.debug_fn.glGetProgramResourceLocationFn(
3407 program, programInterface, name);
3408 GL_SERVICE_LOG("GL_RESULT: " << result);
3409 return result;
3412 static void GL_BINDING_CALL Debug_glGetQueryiv(GLenum target,
3413 GLenum pname,
3414 GLint* params) {
3415 GL_SERVICE_LOG("glGetQueryiv"
3416 << "(" << GLEnums::GetStringEnum(target) << ", "
3417 << GLEnums::GetStringEnum(pname) << ", "
3418 << static_cast<const void*>(params) << ")");
3419 g_driver_gl.debug_fn.glGetQueryivFn(target, pname, params);
3422 static void GL_BINDING_CALL Debug_glGetQueryObjecti64v(GLuint id,
3423 GLenum pname,
3424 GLint64* params) {
3425 GL_SERVICE_LOG("glGetQueryObjecti64v"
3426 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3427 << static_cast<const void*>(params) << ")");
3428 g_driver_gl.debug_fn.glGetQueryObjecti64vFn(id, pname, params);
3431 static void GL_BINDING_CALL Debug_glGetQueryObjectiv(GLuint id,
3432 GLenum pname,
3433 GLint* params) {
3434 GL_SERVICE_LOG("glGetQueryObjectiv"
3435 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3436 << static_cast<const void*>(params) << ")");
3437 g_driver_gl.debug_fn.glGetQueryObjectivFn(id, pname, params);
3440 static void GL_BINDING_CALL Debug_glGetQueryObjectui64v(GLuint id,
3441 GLenum pname,
3442 GLuint64* params) {
3443 GL_SERVICE_LOG("glGetQueryObjectui64v"
3444 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3445 << static_cast<const void*>(params) << ")");
3446 g_driver_gl.debug_fn.glGetQueryObjectui64vFn(id, pname, params);
3449 static void GL_BINDING_CALL Debug_glGetQueryObjectuiv(GLuint id,
3450 GLenum pname,
3451 GLuint* params) {
3452 GL_SERVICE_LOG("glGetQueryObjectuiv"
3453 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3454 << static_cast<const void*>(params) << ")");
3455 g_driver_gl.debug_fn.glGetQueryObjectuivFn(id, pname, params);
3458 static void GL_BINDING_CALL
3459 Debug_glGetRenderbufferParameterivEXT(GLenum target,
3460 GLenum pname,
3461 GLint* params) {
3462 GL_SERVICE_LOG("glGetRenderbufferParameterivEXT"
3463 << "(" << GLEnums::GetStringEnum(target) << ", "
3464 << GLEnums::GetStringEnum(pname) << ", "
3465 << static_cast<const void*>(params) << ")");
3466 g_driver_gl.debug_fn.glGetRenderbufferParameterivEXTFn(target, pname, params);
3469 static void GL_BINDING_CALL Debug_glGetSamplerParameterfv(GLuint sampler,
3470 GLenum pname,
3471 GLfloat* params) {
3472 GL_SERVICE_LOG("glGetSamplerParameterfv"
3473 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
3474 << ", " << static_cast<const void*>(params) << ")");
3475 g_driver_gl.debug_fn.glGetSamplerParameterfvFn(sampler, pname, params);
3478 static void GL_BINDING_CALL Debug_glGetSamplerParameteriv(GLuint sampler,
3479 GLenum pname,
3480 GLint* params) {
3481 GL_SERVICE_LOG("glGetSamplerParameteriv"
3482 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
3483 << ", " << static_cast<const void*>(params) << ")");
3484 g_driver_gl.debug_fn.glGetSamplerParameterivFn(sampler, pname, params);
3487 static void GL_BINDING_CALL Debug_glGetShaderInfoLog(GLuint shader,
3488 GLsizei bufsize,
3489 GLsizei* length,
3490 char* infolog) {
3491 GL_SERVICE_LOG("glGetShaderInfoLog"
3492 << "(" << shader << ", " << bufsize << ", "
3493 << static_cast<const void*>(length) << ", "
3494 << static_cast<const void*>(infolog) << ")");
3495 g_driver_gl.debug_fn.glGetShaderInfoLogFn(shader, bufsize, length, infolog);
3498 static void GL_BINDING_CALL Debug_glGetShaderiv(GLuint shader,
3499 GLenum pname,
3500 GLint* params) {
3501 GL_SERVICE_LOG("glGetShaderiv"
3502 << "(" << shader << ", " << GLEnums::GetStringEnum(pname)
3503 << ", " << static_cast<const void*>(params) << ")");
3504 g_driver_gl.debug_fn.glGetShaderivFn(shader, pname, params);
3507 static void GL_BINDING_CALL
3508 Debug_glGetShaderPrecisionFormat(GLenum shadertype,
3509 GLenum precisiontype,
3510 GLint* range,
3511 GLint* precision) {
3512 GL_SERVICE_LOG("glGetShaderPrecisionFormat"
3513 << "(" << GLEnums::GetStringEnum(shadertype) << ", "
3514 << GLEnums::GetStringEnum(precisiontype) << ", "
3515 << static_cast<const void*>(range) << ", "
3516 << static_cast<const void*>(precision) << ")");
3517 g_driver_gl.debug_fn.glGetShaderPrecisionFormatFn(shadertype, precisiontype,
3518 range, precision);
3521 static void GL_BINDING_CALL Debug_glGetShaderSource(GLuint shader,
3522 GLsizei bufsize,
3523 GLsizei* length,
3524 char* source) {
3525 GL_SERVICE_LOG("glGetShaderSource"
3526 << "(" << shader << ", " << bufsize << ", "
3527 << static_cast<const void*>(length) << ", "
3528 << static_cast<const void*>(source) << ")");
3529 g_driver_gl.debug_fn.glGetShaderSourceFn(shader, bufsize, length, source);
3532 static const GLubyte* GL_BINDING_CALL Debug_glGetString(GLenum name) {
3533 GL_SERVICE_LOG("glGetString"
3534 << "(" << GLEnums::GetStringEnum(name) << ")");
3535 const GLubyte* result = g_driver_gl.debug_fn.glGetStringFn(name);
3536 GL_SERVICE_LOG("GL_RESULT: " << result);
3537 return result;
3540 static const GLubyte* GL_BINDING_CALL Debug_glGetStringi(GLenum name,
3541 GLuint index) {
3542 GL_SERVICE_LOG("glGetStringi"
3543 << "(" << GLEnums::GetStringEnum(name) << ", " << index
3544 << ")");
3545 const GLubyte* result = g_driver_gl.debug_fn.glGetStringiFn(name, index);
3546 GL_SERVICE_LOG("GL_RESULT: " << result);
3547 return result;
3550 static void GL_BINDING_CALL Debug_glGetSynciv(GLsync sync,
3551 GLenum pname,
3552 GLsizei bufSize,
3553 GLsizei* length,
3554 GLint* values) {
3555 GL_SERVICE_LOG("glGetSynciv"
3556 << "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", "
3557 << bufSize << ", " << static_cast<const void*>(length) << ", "
3558 << static_cast<const void*>(values) << ")");
3559 g_driver_gl.debug_fn.glGetSyncivFn(sync, pname, bufSize, length, values);
3562 static void GL_BINDING_CALL Debug_glGetTexLevelParameterfv(GLenum target,
3563 GLint level,
3564 GLenum pname,
3565 GLfloat* params) {
3566 GL_SERVICE_LOG("glGetTexLevelParameterfv"
3567 << "(" << GLEnums::GetStringEnum(target) << ", " << level
3568 << ", " << GLEnums::GetStringEnum(pname) << ", "
3569 << static_cast<const void*>(params) << ")");
3570 g_driver_gl.debug_fn.glGetTexLevelParameterfvFn(target, level, pname, params);
3573 static void GL_BINDING_CALL Debug_glGetTexLevelParameteriv(GLenum target,
3574 GLint level,
3575 GLenum pname,
3576 GLint* params) {
3577 GL_SERVICE_LOG("glGetTexLevelParameteriv"
3578 << "(" << GLEnums::GetStringEnum(target) << ", " << level
3579 << ", " << GLEnums::GetStringEnum(pname) << ", "
3580 << static_cast<const void*>(params) << ")");
3581 g_driver_gl.debug_fn.glGetTexLevelParameterivFn(target, level, pname, params);
3584 static void GL_BINDING_CALL Debug_glGetTexParameterfv(GLenum target,
3585 GLenum pname,
3586 GLfloat* params) {
3587 GL_SERVICE_LOG("glGetTexParameterfv"
3588 << "(" << GLEnums::GetStringEnum(target) << ", "
3589 << GLEnums::GetStringEnum(pname) << ", "
3590 << static_cast<const void*>(params) << ")");
3591 g_driver_gl.debug_fn.glGetTexParameterfvFn(target, pname, params);
3594 static void GL_BINDING_CALL Debug_glGetTexParameteriv(GLenum target,
3595 GLenum pname,
3596 GLint* params) {
3597 GL_SERVICE_LOG("glGetTexParameteriv"
3598 << "(" << GLEnums::GetStringEnum(target) << ", "
3599 << GLEnums::GetStringEnum(pname) << ", "
3600 << static_cast<const void*>(params) << ")");
3601 g_driver_gl.debug_fn.glGetTexParameterivFn(target, pname, params);
3604 static void GL_BINDING_CALL Debug_glGetTransformFeedbackVarying(GLuint program,
3605 GLuint index,
3606 GLsizei bufSize,
3607 GLsizei* length,
3608 GLsizei* size,
3609 GLenum* type,
3610 char* name) {
3611 GL_SERVICE_LOG("glGetTransformFeedbackVarying"
3612 << "(" << program << ", " << index << ", " << bufSize << ", "
3613 << static_cast<const void*>(length) << ", "
3614 << static_cast<const void*>(size) << ", "
3615 << static_cast<const void*>(type) << ", "
3616 << static_cast<const void*>(name) << ")");
3617 g_driver_gl.debug_fn.glGetTransformFeedbackVaryingFn(
3618 program, index, bufSize, length, size, type, name);
3621 static void GL_BINDING_CALL
3622 Debug_glGetTranslatedShaderSourceANGLE(GLuint shader,
3623 GLsizei bufsize,
3624 GLsizei* length,
3625 char* source) {
3626 GL_SERVICE_LOG("glGetTranslatedShaderSourceANGLE"
3627 << "(" << shader << ", " << bufsize << ", "
3628 << static_cast<const void*>(length) << ", "
3629 << static_cast<const void*>(source) << ")");
3630 g_driver_gl.debug_fn.glGetTranslatedShaderSourceANGLEFn(shader, bufsize,
3631 length, source);
3634 static GLuint GL_BINDING_CALL
3635 Debug_glGetUniformBlockIndex(GLuint program, const char* uniformBlockName) {
3636 GL_SERVICE_LOG("glGetUniformBlockIndex"
3637 << "(" << program << ", " << uniformBlockName << ")");
3638 GLuint result =
3639 g_driver_gl.debug_fn.glGetUniformBlockIndexFn(program, uniformBlockName);
3640 GL_SERVICE_LOG("GL_RESULT: " << result);
3641 return result;
3644 static void GL_BINDING_CALL Debug_glGetUniformfv(GLuint program,
3645 GLint location,
3646 GLfloat* params) {
3647 GL_SERVICE_LOG("glGetUniformfv"
3648 << "(" << program << ", " << location << ", "
3649 << static_cast<const void*>(params) << ")");
3650 g_driver_gl.debug_fn.glGetUniformfvFn(program, location, params);
3653 static void GL_BINDING_CALL
3654 Debug_glGetUniformIndices(GLuint program,
3655 GLsizei uniformCount,
3656 const char* const* uniformNames,
3657 GLuint* uniformIndices) {
3658 GL_SERVICE_LOG("glGetUniformIndices"
3659 << "(" << program << ", " << uniformCount << ", "
3660 << static_cast<const void*>(uniformNames) << ", "
3661 << static_cast<const void*>(uniformIndices) << ")");
3662 g_driver_gl.debug_fn.glGetUniformIndicesFn(program, uniformCount,
3663 uniformNames, uniformIndices);
3666 static void GL_BINDING_CALL Debug_glGetUniformiv(GLuint program,
3667 GLint location,
3668 GLint* params) {
3669 GL_SERVICE_LOG("glGetUniformiv"
3670 << "(" << program << ", " << location << ", "
3671 << static_cast<const void*>(params) << ")");
3672 g_driver_gl.debug_fn.glGetUniformivFn(program, location, params);
3675 static GLint GL_BINDING_CALL Debug_glGetUniformLocation(GLuint program,
3676 const char* name) {
3677 GL_SERVICE_LOG("glGetUniformLocation"
3678 << "(" << program << ", " << name << ")");
3679 GLint result = g_driver_gl.debug_fn.glGetUniformLocationFn(program, name);
3680 GL_SERVICE_LOG("GL_RESULT: " << result);
3681 return result;
3684 static void GL_BINDING_CALL Debug_glGetUniformuiv(GLuint program,
3685 GLint location,
3686 GLuint* params) {
3687 GL_SERVICE_LOG("glGetUniformuiv"
3688 << "(" << program << ", " << location << ", "
3689 << static_cast<const void*>(params) << ")");
3690 g_driver_gl.debug_fn.glGetUniformuivFn(program, location, params);
3693 static void GL_BINDING_CALL Debug_glGetVertexAttribfv(GLuint index,
3694 GLenum pname,
3695 GLfloat* params) {
3696 GL_SERVICE_LOG("glGetVertexAttribfv"
3697 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3698 << ", " << static_cast<const void*>(params) << ")");
3699 g_driver_gl.debug_fn.glGetVertexAttribfvFn(index, pname, params);
3702 static void GL_BINDING_CALL Debug_glGetVertexAttribiv(GLuint index,
3703 GLenum pname,
3704 GLint* params) {
3705 GL_SERVICE_LOG("glGetVertexAttribiv"
3706 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3707 << ", " << static_cast<const void*>(params) << ")");
3708 g_driver_gl.debug_fn.glGetVertexAttribivFn(index, pname, params);
3711 static void GL_BINDING_CALL Debug_glGetVertexAttribPointerv(GLuint index,
3712 GLenum pname,
3713 void** pointer) {
3714 GL_SERVICE_LOG("glGetVertexAttribPointerv"
3715 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3716 << ", " << pointer << ")");
3717 g_driver_gl.debug_fn.glGetVertexAttribPointervFn(index, pname, pointer);
3720 static void GL_BINDING_CALL Debug_glHint(GLenum target, GLenum mode) {
3721 GL_SERVICE_LOG("glHint"
3722 << "(" << GLEnums::GetStringEnum(target) << ", "
3723 << GLEnums::GetStringEnum(mode) << ")");
3724 g_driver_gl.debug_fn.glHintFn(target, mode);
3727 static void GL_BINDING_CALL Debug_glInsertEventMarkerEXT(GLsizei length,
3728 const char* marker) {
3729 GL_SERVICE_LOG("glInsertEventMarkerEXT"
3730 << "(" << length << ", " << marker << ")");
3731 g_driver_gl.debug_fn.glInsertEventMarkerEXTFn(length, marker);
3734 static void GL_BINDING_CALL
3735 Debug_glInvalidateFramebuffer(GLenum target,
3736 GLsizei numAttachments,
3737 const GLenum* attachments) {
3738 GL_SERVICE_LOG("glInvalidateFramebuffer"
3739 << "(" << GLEnums::GetStringEnum(target) << ", "
3740 << numAttachments << ", "
3741 << static_cast<const void*>(attachments) << ")");
3742 g_driver_gl.debug_fn.glInvalidateFramebufferFn(target, numAttachments,
3743 attachments);
3746 static void GL_BINDING_CALL
3747 Debug_glInvalidateSubFramebuffer(GLenum target,
3748 GLsizei numAttachments,
3749 const GLenum* attachments,
3750 GLint x,
3751 GLint y,
3752 GLint width,
3753 GLint height) {
3754 GL_SERVICE_LOG("glInvalidateSubFramebuffer"
3755 << "(" << GLEnums::GetStringEnum(target) << ", "
3756 << numAttachments << ", "
3757 << static_cast<const void*>(attachments) << ", " << x << ", "
3758 << y << ", " << width << ", " << height << ")");
3759 g_driver_gl.debug_fn.glInvalidateSubFramebufferFn(
3760 target, numAttachments, attachments, x, y, width, height);
3763 static GLboolean GL_BINDING_CALL Debug_glIsBuffer(GLuint buffer) {
3764 GL_SERVICE_LOG("glIsBuffer"
3765 << "(" << buffer << ")");
3766 GLboolean result = g_driver_gl.debug_fn.glIsBufferFn(buffer);
3767 GL_SERVICE_LOG("GL_RESULT: " << result);
3768 return result;
3771 static GLboolean GL_BINDING_CALL Debug_glIsEnabled(GLenum cap) {
3772 GL_SERVICE_LOG("glIsEnabled"
3773 << "(" << GLEnums::GetStringEnum(cap) << ")");
3774 GLboolean result = g_driver_gl.debug_fn.glIsEnabledFn(cap);
3775 GL_SERVICE_LOG("GL_RESULT: " << result);
3776 return result;
3779 static GLboolean GL_BINDING_CALL Debug_glIsFenceAPPLE(GLuint fence) {
3780 GL_SERVICE_LOG("glIsFenceAPPLE"
3781 << "(" << fence << ")");
3782 GLboolean result = g_driver_gl.debug_fn.glIsFenceAPPLEFn(fence);
3783 GL_SERVICE_LOG("GL_RESULT: " << result);
3784 return result;
3787 static GLboolean GL_BINDING_CALL Debug_glIsFenceNV(GLuint fence) {
3788 GL_SERVICE_LOG("glIsFenceNV"
3789 << "(" << fence << ")");
3790 GLboolean result = g_driver_gl.debug_fn.glIsFenceNVFn(fence);
3791 GL_SERVICE_LOG("GL_RESULT: " << result);
3792 return result;
3795 static GLboolean GL_BINDING_CALL Debug_glIsFramebufferEXT(GLuint framebuffer) {
3796 GL_SERVICE_LOG("glIsFramebufferEXT"
3797 << "(" << framebuffer << ")");
3798 GLboolean result = g_driver_gl.debug_fn.glIsFramebufferEXTFn(framebuffer);
3799 GL_SERVICE_LOG("GL_RESULT: " << result);
3800 return result;
3803 static GLboolean GL_BINDING_CALL Debug_glIsPathNV(GLuint path) {
3804 GL_SERVICE_LOG("glIsPathNV"
3805 << "(" << path << ")");
3806 GLboolean result = g_driver_gl.debug_fn.glIsPathNVFn(path);
3807 GL_SERVICE_LOG("GL_RESULT: " << result);
3808 return result;
3811 static GLboolean GL_BINDING_CALL Debug_glIsProgram(GLuint program) {
3812 GL_SERVICE_LOG("glIsProgram"
3813 << "(" << program << ")");
3814 GLboolean result = g_driver_gl.debug_fn.glIsProgramFn(program);
3815 GL_SERVICE_LOG("GL_RESULT: " << result);
3816 return result;
3819 static GLboolean GL_BINDING_CALL Debug_glIsQuery(GLuint query) {
3820 GL_SERVICE_LOG("glIsQuery"
3821 << "(" << query << ")");
3822 GLboolean result = g_driver_gl.debug_fn.glIsQueryFn(query);
3823 GL_SERVICE_LOG("GL_RESULT: " << result);
3824 return result;
3827 static GLboolean GL_BINDING_CALL
3828 Debug_glIsRenderbufferEXT(GLuint renderbuffer) {
3829 GL_SERVICE_LOG("glIsRenderbufferEXT"
3830 << "(" << renderbuffer << ")");
3831 GLboolean result = g_driver_gl.debug_fn.glIsRenderbufferEXTFn(renderbuffer);
3832 GL_SERVICE_LOG("GL_RESULT: " << result);
3833 return result;
3836 static GLboolean GL_BINDING_CALL Debug_glIsSampler(GLuint sampler) {
3837 GL_SERVICE_LOG("glIsSampler"
3838 << "(" << sampler << ")");
3839 GLboolean result = g_driver_gl.debug_fn.glIsSamplerFn(sampler);
3840 GL_SERVICE_LOG("GL_RESULT: " << result);
3841 return result;
3844 static GLboolean GL_BINDING_CALL Debug_glIsShader(GLuint shader) {
3845 GL_SERVICE_LOG("glIsShader"
3846 << "(" << shader << ")");
3847 GLboolean result = g_driver_gl.debug_fn.glIsShaderFn(shader);
3848 GL_SERVICE_LOG("GL_RESULT: " << result);
3849 return result;
3852 static GLboolean GL_BINDING_CALL Debug_glIsSync(GLsync sync) {
3853 GL_SERVICE_LOG("glIsSync"
3854 << "(" << sync << ")");
3855 GLboolean result = g_driver_gl.debug_fn.glIsSyncFn(sync);
3856 GL_SERVICE_LOG("GL_RESULT: " << result);
3857 return result;
3860 static GLboolean GL_BINDING_CALL Debug_glIsTexture(GLuint texture) {
3861 GL_SERVICE_LOG("glIsTexture"
3862 << "(" << texture << ")");
3863 GLboolean result = g_driver_gl.debug_fn.glIsTextureFn(texture);
3864 GL_SERVICE_LOG("GL_RESULT: " << result);
3865 return result;
3868 static GLboolean GL_BINDING_CALL Debug_glIsTransformFeedback(GLuint id) {
3869 GL_SERVICE_LOG("glIsTransformFeedback"
3870 << "(" << id << ")");
3871 GLboolean result = g_driver_gl.debug_fn.glIsTransformFeedbackFn(id);
3872 GL_SERVICE_LOG("GL_RESULT: " << result);
3873 return result;
3876 static GLboolean GL_BINDING_CALL Debug_glIsVertexArrayOES(GLuint array) {
3877 GL_SERVICE_LOG("glIsVertexArrayOES"
3878 << "(" << array << ")");
3879 GLboolean result = g_driver_gl.debug_fn.glIsVertexArrayOESFn(array);
3880 GL_SERVICE_LOG("GL_RESULT: " << result);
3881 return result;
3884 static void GL_BINDING_CALL Debug_glLineWidth(GLfloat width) {
3885 GL_SERVICE_LOG("glLineWidth"
3886 << "(" << width << ")");
3887 g_driver_gl.debug_fn.glLineWidthFn(width);
3890 static void GL_BINDING_CALL Debug_glLinkProgram(GLuint program) {
3891 GL_SERVICE_LOG("glLinkProgram"
3892 << "(" << program << ")");
3893 g_driver_gl.debug_fn.glLinkProgramFn(program);
3896 static void* GL_BINDING_CALL Debug_glMapBuffer(GLenum target, GLenum access) {
3897 GL_SERVICE_LOG("glMapBuffer"
3898 << "(" << GLEnums::GetStringEnum(target) << ", "
3899 << GLEnums::GetStringEnum(access) << ")");
3900 void* result = g_driver_gl.debug_fn.glMapBufferFn(target, access);
3901 GL_SERVICE_LOG("GL_RESULT: " << result);
3902 return result;
3905 static void* GL_BINDING_CALL Debug_glMapBufferRange(GLenum target,
3906 GLintptr offset,
3907 GLsizeiptr length,
3908 GLbitfield access) {
3909 GL_SERVICE_LOG("glMapBufferRange"
3910 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
3911 << ", " << length << ", " << access << ")");
3912 void* result =
3913 g_driver_gl.debug_fn.glMapBufferRangeFn(target, offset, length, access);
3914 GL_SERVICE_LOG("GL_RESULT: " << result);
3915 return result;
3918 static void GL_BINDING_CALL Debug_glMatrixLoadfEXT(GLenum matrixMode,
3919 const GLfloat* m) {
3920 GL_SERVICE_LOG("glMatrixLoadfEXT"
3921 << "(" << GLEnums::GetStringEnum(matrixMode) << ", "
3922 << static_cast<const void*>(m) << ")");
3923 g_driver_gl.debug_fn.glMatrixLoadfEXTFn(matrixMode, m);
3926 static void GL_BINDING_CALL Debug_glMatrixLoadIdentityEXT(GLenum matrixMode) {
3927 GL_SERVICE_LOG("glMatrixLoadIdentityEXT"
3928 << "(" << GLEnums::GetStringEnum(matrixMode) << ")");
3929 g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn(matrixMode);
3932 static void GL_BINDING_CALL Debug_glPathCommandsNV(GLuint path,
3933 GLsizei numCommands,
3934 const GLubyte* commands,
3935 GLsizei numCoords,
3936 GLenum coordType,
3937 const GLvoid* coords) {
3938 GL_SERVICE_LOG("glPathCommandsNV"
3939 << "(" << path << ", " << numCommands << ", "
3940 << static_cast<const void*>(commands) << ", " << numCoords
3941 << ", " << GLEnums::GetStringEnum(coordType) << ", "
3942 << static_cast<const void*>(coords) << ")");
3943 g_driver_gl.debug_fn.glPathCommandsNVFn(path, numCommands, commands,
3944 numCoords, coordType, coords);
3947 static void GL_BINDING_CALL Debug_glPathParameterfNV(GLuint path,
3948 GLenum pname,
3949 GLfloat value) {
3950 GL_SERVICE_LOG("glPathParameterfNV"
3951 << "(" << path << ", " << GLEnums::GetStringEnum(pname) << ", "
3952 << value << ")");
3953 g_driver_gl.debug_fn.glPathParameterfNVFn(path, pname, value);
3956 static void GL_BINDING_CALL Debug_glPathParameteriNV(GLuint path,
3957 GLenum pname,
3958 GLint value) {
3959 GL_SERVICE_LOG("glPathParameteriNV"
3960 << "(" << path << ", " << GLEnums::GetStringEnum(pname) << ", "
3961 << value << ")");
3962 g_driver_gl.debug_fn.glPathParameteriNVFn(path, pname, value);
3965 static void GL_BINDING_CALL Debug_glPathStencilFuncNV(GLenum func,
3966 GLint ref,
3967 GLuint mask) {
3968 GL_SERVICE_LOG("glPathStencilFuncNV"
3969 << "(" << GLEnums::GetStringEnum(func) << ", " << ref << ", "
3970 << mask << ")");
3971 g_driver_gl.debug_fn.glPathStencilFuncNVFn(func, ref, mask);
3974 static void GL_BINDING_CALL Debug_glPauseTransformFeedback(void) {
3975 GL_SERVICE_LOG("glPauseTransformFeedback"
3976 << "("
3977 << ")");
3978 g_driver_gl.debug_fn.glPauseTransformFeedbackFn();
3981 static void GL_BINDING_CALL Debug_glPixelStorei(GLenum pname, GLint param) {
3982 GL_SERVICE_LOG("glPixelStorei"
3983 << "(" << GLEnums::GetStringEnum(pname) << ", " << param
3984 << ")");
3985 g_driver_gl.debug_fn.glPixelStoreiFn(pname, param);
3988 static void GL_BINDING_CALL Debug_glPointParameteri(GLenum pname, GLint param) {
3989 GL_SERVICE_LOG("glPointParameteri"
3990 << "(" << GLEnums::GetStringEnum(pname) << ", " << param
3991 << ")");
3992 g_driver_gl.debug_fn.glPointParameteriFn(pname, param);
3995 static void GL_BINDING_CALL Debug_glPolygonOffset(GLfloat factor,
3996 GLfloat units) {
3997 GL_SERVICE_LOG("glPolygonOffset"
3998 << "(" << factor << ", " << units << ")");
3999 g_driver_gl.debug_fn.glPolygonOffsetFn(factor, units);
4002 static void GL_BINDING_CALL Debug_glPopGroupMarkerEXT(void) {
4003 GL_SERVICE_LOG("glPopGroupMarkerEXT"
4004 << "("
4005 << ")");
4006 g_driver_gl.debug_fn.glPopGroupMarkerEXTFn();
4009 static void GL_BINDING_CALL Debug_glProgramBinary(GLuint program,
4010 GLenum binaryFormat,
4011 const GLvoid* binary,
4012 GLsizei length) {
4013 GL_SERVICE_LOG("glProgramBinary"
4014 << "(" << program << ", "
4015 << GLEnums::GetStringEnum(binaryFormat) << ", "
4016 << static_cast<const void*>(binary) << ", " << length << ")");
4017 g_driver_gl.debug_fn.glProgramBinaryFn(program, binaryFormat, binary, length);
4020 static void GL_BINDING_CALL Debug_glProgramParameteri(GLuint program,
4021 GLenum pname,
4022 GLint value) {
4023 GL_SERVICE_LOG("glProgramParameteri"
4024 << "(" << program << ", " << GLEnums::GetStringEnum(pname)
4025 << ", " << value << ")");
4026 g_driver_gl.debug_fn.glProgramParameteriFn(program, pname, value);
4029 static void GL_BINDING_CALL Debug_glPushGroupMarkerEXT(GLsizei length,
4030 const char* marker) {
4031 GL_SERVICE_LOG("glPushGroupMarkerEXT"
4032 << "(" << length << ", " << marker << ")");
4033 g_driver_gl.debug_fn.glPushGroupMarkerEXTFn(length, marker);
4036 static void GL_BINDING_CALL Debug_glQueryCounter(GLuint id, GLenum target) {
4037 GL_SERVICE_LOG("glQueryCounter"
4038 << "(" << id << ", " << GLEnums::GetStringEnum(target) << ")");
4039 g_driver_gl.debug_fn.glQueryCounterFn(id, target);
4042 static void GL_BINDING_CALL Debug_glReadBuffer(GLenum src) {
4043 GL_SERVICE_LOG("glReadBuffer"
4044 << "(" << GLEnums::GetStringEnum(src) << ")");
4045 g_driver_gl.debug_fn.glReadBufferFn(src);
4048 static void GL_BINDING_CALL Debug_glReadPixels(GLint x,
4049 GLint y,
4050 GLsizei width,
4051 GLsizei height,
4052 GLenum format,
4053 GLenum type,
4054 void* pixels) {
4055 GL_SERVICE_LOG("glReadPixels"
4056 << "(" << x << ", " << y << ", " << width << ", " << height
4057 << ", " << GLEnums::GetStringEnum(format) << ", "
4058 << GLEnums::GetStringEnum(type) << ", "
4059 << static_cast<const void*>(pixels) << ")");
4060 g_driver_gl.debug_fn.glReadPixelsFn(x, y, width, height, format, type,
4061 pixels);
4064 static void GL_BINDING_CALL Debug_glReleaseShaderCompiler(void) {
4065 GL_SERVICE_LOG("glReleaseShaderCompiler"
4066 << "("
4067 << ")");
4068 g_driver_gl.debug_fn.glReleaseShaderCompilerFn();
4071 static void GL_BINDING_CALL
4072 Debug_glRenderbufferStorageEXT(GLenum target,
4073 GLenum internalformat,
4074 GLsizei width,
4075 GLsizei height) {
4076 GL_SERVICE_LOG("glRenderbufferStorageEXT"
4077 << "(" << GLEnums::GetStringEnum(target) << ", "
4078 << GLEnums::GetStringEnum(internalformat) << ", " << width
4079 << ", " << height << ")");
4080 g_driver_gl.debug_fn.glRenderbufferStorageEXTFn(target, internalformat, width,
4081 height);
4084 static void GL_BINDING_CALL
4085 Debug_glRenderbufferStorageMultisample(GLenum target,
4086 GLsizei samples,
4087 GLenum internalformat,
4088 GLsizei width,
4089 GLsizei height) {
4090 GL_SERVICE_LOG("glRenderbufferStorageMultisample"
4091 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
4092 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4093 << width << ", " << height << ")");
4094 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleFn(
4095 target, samples, internalformat, width, height);
4098 static void GL_BINDING_CALL
4099 Debug_glRenderbufferStorageMultisampleANGLE(GLenum target,
4100 GLsizei samples,
4101 GLenum internalformat,
4102 GLsizei width,
4103 GLsizei height) {
4104 GL_SERVICE_LOG("glRenderbufferStorageMultisampleANGLE"
4105 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
4106 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4107 << width << ", " << height << ")");
4108 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleANGLEFn(
4109 target, samples, internalformat, width, height);
4112 static void GL_BINDING_CALL
4113 Debug_glRenderbufferStorageMultisampleEXT(GLenum target,
4114 GLsizei samples,
4115 GLenum internalformat,
4116 GLsizei width,
4117 GLsizei height) {
4118 GL_SERVICE_LOG("glRenderbufferStorageMultisampleEXT"
4119 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
4120 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4121 << width << ", " << height << ")");
4122 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleEXTFn(
4123 target, samples, internalformat, width, height);
4126 static void GL_BINDING_CALL
4127 Debug_glRenderbufferStorageMultisampleIMG(GLenum target,
4128 GLsizei samples,
4129 GLenum internalformat,
4130 GLsizei width,
4131 GLsizei height) {
4132 GL_SERVICE_LOG("glRenderbufferStorageMultisampleIMG"
4133 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
4134 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4135 << width << ", " << height << ")");
4136 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleIMGFn(
4137 target, samples, internalformat, width, height);
4140 static void GL_BINDING_CALL Debug_glResumeTransformFeedback(void) {
4141 GL_SERVICE_LOG("glResumeTransformFeedback"
4142 << "("
4143 << ")");
4144 g_driver_gl.debug_fn.glResumeTransformFeedbackFn();
4147 static void GL_BINDING_CALL Debug_glSampleCoverage(GLclampf value,
4148 GLboolean invert) {
4149 GL_SERVICE_LOG("glSampleCoverage"
4150 << "(" << value << ", " << GLEnums::GetStringBool(invert)
4151 << ")");
4152 g_driver_gl.debug_fn.glSampleCoverageFn(value, invert);
4155 static void GL_BINDING_CALL Debug_glSamplerParameterf(GLuint sampler,
4156 GLenum pname,
4157 GLfloat param) {
4158 GL_SERVICE_LOG("glSamplerParameterf"
4159 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4160 << ", " << param << ")");
4161 g_driver_gl.debug_fn.glSamplerParameterfFn(sampler, pname, param);
4164 static void GL_BINDING_CALL Debug_glSamplerParameterfv(GLuint sampler,
4165 GLenum pname,
4166 const GLfloat* params) {
4167 GL_SERVICE_LOG("glSamplerParameterfv"
4168 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4169 << ", " << static_cast<const void*>(params) << ")");
4170 g_driver_gl.debug_fn.glSamplerParameterfvFn(sampler, pname, params);
4173 static void GL_BINDING_CALL Debug_glSamplerParameteri(GLuint sampler,
4174 GLenum pname,
4175 GLint param) {
4176 GL_SERVICE_LOG("glSamplerParameteri"
4177 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4178 << ", " << param << ")");
4179 g_driver_gl.debug_fn.glSamplerParameteriFn(sampler, pname, param);
4182 static void GL_BINDING_CALL Debug_glSamplerParameteriv(GLuint sampler,
4183 GLenum pname,
4184 const GLint* params) {
4185 GL_SERVICE_LOG("glSamplerParameteriv"
4186 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4187 << ", " << static_cast<const void*>(params) << ")");
4188 g_driver_gl.debug_fn.glSamplerParameterivFn(sampler, pname, params);
4191 static void GL_BINDING_CALL Debug_glScissor(GLint x,
4192 GLint y,
4193 GLsizei width,
4194 GLsizei height) {
4195 GL_SERVICE_LOG("glScissor"
4196 << "(" << x << ", " << y << ", " << width << ", " << height
4197 << ")");
4198 g_driver_gl.debug_fn.glScissorFn(x, y, width, height);
4201 static void GL_BINDING_CALL Debug_glSetFenceAPPLE(GLuint fence) {
4202 GL_SERVICE_LOG("glSetFenceAPPLE"
4203 << "(" << fence << ")");
4204 g_driver_gl.debug_fn.glSetFenceAPPLEFn(fence);
4207 static void GL_BINDING_CALL Debug_glSetFenceNV(GLuint fence, GLenum condition) {
4208 GL_SERVICE_LOG("glSetFenceNV"
4209 << "(" << fence << ", " << GLEnums::GetStringEnum(condition)
4210 << ")");
4211 g_driver_gl.debug_fn.glSetFenceNVFn(fence, condition);
4214 static void GL_BINDING_CALL Debug_glShaderBinary(GLsizei n,
4215 const GLuint* shaders,
4216 GLenum binaryformat,
4217 const void* binary,
4218 GLsizei length) {
4219 GL_SERVICE_LOG("glShaderBinary"
4220 << "(" << n << ", " << static_cast<const void*>(shaders)
4221 << ", " << GLEnums::GetStringEnum(binaryformat) << ", "
4222 << static_cast<const void*>(binary) << ", " << length << ")");
4223 g_driver_gl.debug_fn.glShaderBinaryFn(n, shaders, binaryformat, binary,
4224 length);
4227 static void GL_BINDING_CALL Debug_glShaderSource(GLuint shader,
4228 GLsizei count,
4229 const char* const* str,
4230 const GLint* length) {
4231 GL_SERVICE_LOG("glShaderSource"
4232 << "(" << shader << ", " << count << ", "
4233 << static_cast<const void*>(str) << ", "
4234 << static_cast<const void*>(length) << ")");
4235 g_driver_gl.debug_fn.glShaderSourceFn(shader, count, str, length);
4237 GL_SERVICE_LOG_CODE_BLOCK({
4238 for (GLsizei ii = 0; ii < count; ++ii) {
4239 if (str[ii]) {
4240 if (length && length[ii] >= 0) {
4241 std::string source(str[ii], length[ii]);
4242 GL_SERVICE_LOG(" " << ii << ": ---\n" << source << "\n---");
4243 } else {
4244 GL_SERVICE_LOG(" " << ii << ": ---\n" << str[ii] << "\n---");
4246 } else {
4247 GL_SERVICE_LOG(" " << ii << ": NULL");
4253 static void GL_BINDING_CALL Debug_glStencilFillPathNV(GLuint path,
4254 GLenum fillMode,
4255 GLuint mask) {
4256 GL_SERVICE_LOG("glStencilFillPathNV"
4257 << "(" << path << ", " << GLEnums::GetStringEnum(fillMode)
4258 << ", " << mask << ")");
4259 g_driver_gl.debug_fn.glStencilFillPathNVFn(path, fillMode, mask);
4262 static void GL_BINDING_CALL Debug_glStencilFunc(GLenum func,
4263 GLint ref,
4264 GLuint mask) {
4265 GL_SERVICE_LOG("glStencilFunc"
4266 << "(" << GLEnums::GetStringEnum(func) << ", " << ref << ", "
4267 << mask << ")");
4268 g_driver_gl.debug_fn.glStencilFuncFn(func, ref, mask);
4271 static void GL_BINDING_CALL Debug_glStencilFuncSeparate(GLenum face,
4272 GLenum func,
4273 GLint ref,
4274 GLuint mask) {
4275 GL_SERVICE_LOG("glStencilFuncSeparate"
4276 << "(" << GLEnums::GetStringEnum(face) << ", "
4277 << GLEnums::GetStringEnum(func) << ", " << ref << ", " << mask
4278 << ")");
4279 g_driver_gl.debug_fn.glStencilFuncSeparateFn(face, func, ref, mask);
4282 static void GL_BINDING_CALL Debug_glStencilMask(GLuint mask) {
4283 GL_SERVICE_LOG("glStencilMask"
4284 << "(" << mask << ")");
4285 g_driver_gl.debug_fn.glStencilMaskFn(mask);
4288 static void GL_BINDING_CALL Debug_glStencilMaskSeparate(GLenum face,
4289 GLuint mask) {
4290 GL_SERVICE_LOG("glStencilMaskSeparate"
4291 << "(" << GLEnums::GetStringEnum(face) << ", " << mask << ")");
4292 g_driver_gl.debug_fn.glStencilMaskSeparateFn(face, mask);
4295 static void GL_BINDING_CALL Debug_glStencilOp(GLenum fail,
4296 GLenum zfail,
4297 GLenum zpass) {
4298 GL_SERVICE_LOG("glStencilOp"
4299 << "(" << GLEnums::GetStringEnum(fail) << ", "
4300 << GLEnums::GetStringEnum(zfail) << ", "
4301 << GLEnums::GetStringEnum(zpass) << ")");
4302 g_driver_gl.debug_fn.glStencilOpFn(fail, zfail, zpass);
4305 static void GL_BINDING_CALL Debug_glStencilOpSeparate(GLenum face,
4306 GLenum fail,
4307 GLenum zfail,
4308 GLenum zpass) {
4309 GL_SERVICE_LOG("glStencilOpSeparate"
4310 << "(" << GLEnums::GetStringEnum(face) << ", "
4311 << GLEnums::GetStringEnum(fail) << ", "
4312 << GLEnums::GetStringEnum(zfail) << ", "
4313 << GLEnums::GetStringEnum(zpass) << ")");
4314 g_driver_gl.debug_fn.glStencilOpSeparateFn(face, fail, zfail, zpass);
4317 static void GL_BINDING_CALL Debug_glStencilStrokePathNV(GLuint path,
4318 GLint reference,
4319 GLuint mask) {
4320 GL_SERVICE_LOG("glStencilStrokePathNV"
4321 << "(" << path << ", " << reference << ", " << mask << ")");
4322 g_driver_gl.debug_fn.glStencilStrokePathNVFn(path, reference, mask);
4325 static void GL_BINDING_CALL
4326 Debug_glStencilThenCoverFillPathNV(GLuint path,
4327 GLenum fillMode,
4328 GLuint mask,
4329 GLenum coverMode) {
4330 GL_SERVICE_LOG("glStencilThenCoverFillPathNV"
4331 << "(" << path << ", " << GLEnums::GetStringEnum(fillMode)
4332 << ", " << mask << ", " << GLEnums::GetStringEnum(coverMode)
4333 << ")");
4334 g_driver_gl.debug_fn.glStencilThenCoverFillPathNVFn(path, fillMode, mask,
4335 coverMode);
4338 static void GL_BINDING_CALL
4339 Debug_glStencilThenCoverStrokePathNV(GLuint path,
4340 GLint reference,
4341 GLuint mask,
4342 GLenum coverMode) {
4343 GL_SERVICE_LOG("glStencilThenCoverStrokePathNV"
4344 << "(" << path << ", " << reference << ", " << mask << ", "
4345 << GLEnums::GetStringEnum(coverMode) << ")");
4346 g_driver_gl.debug_fn.glStencilThenCoverStrokePathNVFn(path, reference, mask,
4347 coverMode);
4350 static GLboolean GL_BINDING_CALL Debug_glTestFenceAPPLE(GLuint fence) {
4351 GL_SERVICE_LOG("glTestFenceAPPLE"
4352 << "(" << fence << ")");
4353 GLboolean result = g_driver_gl.debug_fn.glTestFenceAPPLEFn(fence);
4354 GL_SERVICE_LOG("GL_RESULT: " << result);
4355 return result;
4358 static GLboolean GL_BINDING_CALL Debug_glTestFenceNV(GLuint fence) {
4359 GL_SERVICE_LOG("glTestFenceNV"
4360 << "(" << fence << ")");
4361 GLboolean result = g_driver_gl.debug_fn.glTestFenceNVFn(fence);
4362 GL_SERVICE_LOG("GL_RESULT: " << result);
4363 return result;
4366 static void GL_BINDING_CALL Debug_glTexImage2D(GLenum target,
4367 GLint level,
4368 GLint internalformat,
4369 GLsizei width,
4370 GLsizei height,
4371 GLint border,
4372 GLenum format,
4373 GLenum type,
4374 const void* pixels) {
4375 GL_SERVICE_LOG("glTexImage2D"
4376 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4377 << ", " << internalformat << ", " << width << ", " << height
4378 << ", " << border << ", " << GLEnums::GetStringEnum(format)
4379 << ", " << GLEnums::GetStringEnum(type) << ", "
4380 << static_cast<const void*>(pixels) << ")");
4381 g_driver_gl.debug_fn.glTexImage2DFn(target, level, internalformat, width,
4382 height, border, format, type, pixels);
4385 static void GL_BINDING_CALL Debug_glTexImage3D(GLenum target,
4386 GLint level,
4387 GLint internalformat,
4388 GLsizei width,
4389 GLsizei height,
4390 GLsizei depth,
4391 GLint border,
4392 GLenum format,
4393 GLenum type,
4394 const void* pixels) {
4395 GL_SERVICE_LOG("glTexImage3D"
4396 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4397 << ", " << internalformat << ", " << width << ", " << height
4398 << ", " << depth << ", " << border << ", "
4399 << GLEnums::GetStringEnum(format) << ", "
4400 << GLEnums::GetStringEnum(type) << ", "
4401 << static_cast<const void*>(pixels) << ")");
4402 g_driver_gl.debug_fn.glTexImage3DFn(target, level, internalformat, width,
4403 height, depth, border, format, type,
4404 pixels);
4407 static void GL_BINDING_CALL Debug_glTexParameterf(GLenum target,
4408 GLenum pname,
4409 GLfloat param) {
4410 GL_SERVICE_LOG("glTexParameterf"
4411 << "(" << GLEnums::GetStringEnum(target) << ", "
4412 << GLEnums::GetStringEnum(pname) << ", " << param << ")");
4413 g_driver_gl.debug_fn.glTexParameterfFn(target, pname, param);
4416 static void GL_BINDING_CALL Debug_glTexParameterfv(GLenum target,
4417 GLenum pname,
4418 const GLfloat* params) {
4419 GL_SERVICE_LOG("glTexParameterfv"
4420 << "(" << GLEnums::GetStringEnum(target) << ", "
4421 << GLEnums::GetStringEnum(pname) << ", "
4422 << static_cast<const void*>(params) << ")");
4423 g_driver_gl.debug_fn.glTexParameterfvFn(target, pname, params);
4426 static void GL_BINDING_CALL Debug_glTexParameteri(GLenum target,
4427 GLenum pname,
4428 GLint param) {
4429 GL_SERVICE_LOG("glTexParameteri"
4430 << "(" << GLEnums::GetStringEnum(target) << ", "
4431 << GLEnums::GetStringEnum(pname) << ", " << param << ")");
4432 g_driver_gl.debug_fn.glTexParameteriFn(target, pname, param);
4435 static void GL_BINDING_CALL Debug_glTexParameteriv(GLenum target,
4436 GLenum pname,
4437 const GLint* params) {
4438 GL_SERVICE_LOG("glTexParameteriv"
4439 << "(" << GLEnums::GetStringEnum(target) << ", "
4440 << GLEnums::GetStringEnum(pname) << ", "
4441 << static_cast<const void*>(params) << ")");
4442 g_driver_gl.debug_fn.glTexParameterivFn(target, pname, params);
4445 static void GL_BINDING_CALL Debug_glTexStorage2DEXT(GLenum target,
4446 GLsizei levels,
4447 GLenum internalformat,
4448 GLsizei width,
4449 GLsizei height) {
4450 GL_SERVICE_LOG("glTexStorage2DEXT"
4451 << "(" << GLEnums::GetStringEnum(target) << ", " << levels
4452 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4453 << width << ", " << height << ")");
4454 g_driver_gl.debug_fn.glTexStorage2DEXTFn(target, levels, internalformat,
4455 width, height);
4458 static void GL_BINDING_CALL Debug_glTexStorage3D(GLenum target,
4459 GLsizei levels,
4460 GLenum internalformat,
4461 GLsizei width,
4462 GLsizei height,
4463 GLsizei depth) {
4464 GL_SERVICE_LOG("glTexStorage3D"
4465 << "(" << GLEnums::GetStringEnum(target) << ", " << levels
4466 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4467 << width << ", " << height << ", " << depth << ")");
4468 g_driver_gl.debug_fn.glTexStorage3DFn(target, levels, internalformat, width,
4469 height, depth);
4472 static void GL_BINDING_CALL Debug_glTexSubImage2D(GLenum target,
4473 GLint level,
4474 GLint xoffset,
4475 GLint yoffset,
4476 GLsizei width,
4477 GLsizei height,
4478 GLenum format,
4479 GLenum type,
4480 const void* pixels) {
4481 GL_SERVICE_LOG("glTexSubImage2D"
4482 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4483 << ", " << xoffset << ", " << yoffset << ", " << width << ", "
4484 << height << ", " << GLEnums::GetStringEnum(format) << ", "
4485 << GLEnums::GetStringEnum(type) << ", "
4486 << static_cast<const void*>(pixels) << ")");
4487 g_driver_gl.debug_fn.glTexSubImage2DFn(target, level, xoffset, yoffset, width,
4488 height, format, type, pixels);
4491 static void GL_BINDING_CALL Debug_glTexSubImage3D(GLenum target,
4492 GLint level,
4493 GLint xoffset,
4494 GLint yoffset,
4495 GLint zoffset,
4496 GLsizei width,
4497 GLsizei height,
4498 GLsizei depth,
4499 GLenum format,
4500 GLenum type,
4501 const void* pixels) {
4502 GL_SERVICE_LOG("glTexSubImage3D"
4503 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4504 << ", " << xoffset << ", " << yoffset << ", " << zoffset
4505 << ", " << width << ", " << height << ", " << depth << ", "
4506 << GLEnums::GetStringEnum(format) << ", "
4507 << GLEnums::GetStringEnum(type) << ", "
4508 << static_cast<const void*>(pixels) << ")");
4509 g_driver_gl.debug_fn.glTexSubImage3DFn(target, level, xoffset, yoffset,
4510 zoffset, width, height, depth, format,
4511 type, pixels);
4514 static void GL_BINDING_CALL
4515 Debug_glTransformFeedbackVaryings(GLuint program,
4516 GLsizei count,
4517 const char* const* varyings,
4518 GLenum bufferMode) {
4519 GL_SERVICE_LOG("glTransformFeedbackVaryings"
4520 << "(" << program << ", " << count << ", "
4521 << static_cast<const void*>(varyings) << ", "
4522 << GLEnums::GetStringEnum(bufferMode) << ")");
4523 g_driver_gl.debug_fn.glTransformFeedbackVaryingsFn(program, count, varyings,
4524 bufferMode);
4527 static void GL_BINDING_CALL Debug_glUniform1f(GLint location, GLfloat x) {
4528 GL_SERVICE_LOG("glUniform1f"
4529 << "(" << location << ", " << x << ")");
4530 g_driver_gl.debug_fn.glUniform1fFn(location, x);
4533 static void GL_BINDING_CALL Debug_glUniform1fv(GLint location,
4534 GLsizei count,
4535 const GLfloat* v) {
4536 GL_SERVICE_LOG("glUniform1fv"
4537 << "(" << location << ", " << count << ", "
4538 << static_cast<const void*>(v) << ")");
4539 g_driver_gl.debug_fn.glUniform1fvFn(location, count, v);
4542 static void GL_BINDING_CALL Debug_glUniform1i(GLint location, GLint x) {
4543 GL_SERVICE_LOG("glUniform1i"
4544 << "(" << location << ", " << x << ")");
4545 g_driver_gl.debug_fn.glUniform1iFn(location, x);
4548 static void GL_BINDING_CALL Debug_glUniform1iv(GLint location,
4549 GLsizei count,
4550 const GLint* v) {
4551 GL_SERVICE_LOG("glUniform1iv"
4552 << "(" << location << ", " << count << ", "
4553 << static_cast<const void*>(v) << ")");
4554 g_driver_gl.debug_fn.glUniform1ivFn(location, count, v);
4557 static void GL_BINDING_CALL Debug_glUniform1ui(GLint location, GLuint v0) {
4558 GL_SERVICE_LOG("glUniform1ui"
4559 << "(" << location << ", " << v0 << ")");
4560 g_driver_gl.debug_fn.glUniform1uiFn(location, v0);
4563 static void GL_BINDING_CALL Debug_glUniform1uiv(GLint location,
4564 GLsizei count,
4565 const GLuint* v) {
4566 GL_SERVICE_LOG("glUniform1uiv"
4567 << "(" << location << ", " << count << ", "
4568 << static_cast<const void*>(v) << ")");
4569 g_driver_gl.debug_fn.glUniform1uivFn(location, count, v);
4572 static void GL_BINDING_CALL Debug_glUniform2f(GLint location,
4573 GLfloat x,
4574 GLfloat y) {
4575 GL_SERVICE_LOG("glUniform2f"
4576 << "(" << location << ", " << x << ", " << y << ")");
4577 g_driver_gl.debug_fn.glUniform2fFn(location, x, y);
4580 static void GL_BINDING_CALL Debug_glUniform2fv(GLint location,
4581 GLsizei count,
4582 const GLfloat* v) {
4583 GL_SERVICE_LOG("glUniform2fv"
4584 << "(" << location << ", " << count << ", "
4585 << static_cast<const void*>(v) << ")");
4586 g_driver_gl.debug_fn.glUniform2fvFn(location, count, v);
4589 static void GL_BINDING_CALL Debug_glUniform2i(GLint location,
4590 GLint x,
4591 GLint y) {
4592 GL_SERVICE_LOG("glUniform2i"
4593 << "(" << location << ", " << x << ", " << y << ")");
4594 g_driver_gl.debug_fn.glUniform2iFn(location, x, y);
4597 static void GL_BINDING_CALL Debug_glUniform2iv(GLint location,
4598 GLsizei count,
4599 const GLint* v) {
4600 GL_SERVICE_LOG("glUniform2iv"
4601 << "(" << location << ", " << count << ", "
4602 << static_cast<const void*>(v) << ")");
4603 g_driver_gl.debug_fn.glUniform2ivFn(location, count, v);
4606 static void GL_BINDING_CALL Debug_glUniform2ui(GLint location,
4607 GLuint v0,
4608 GLuint v1) {
4609 GL_SERVICE_LOG("glUniform2ui"
4610 << "(" << location << ", " << v0 << ", " << v1 << ")");
4611 g_driver_gl.debug_fn.glUniform2uiFn(location, v0, v1);
4614 static void GL_BINDING_CALL Debug_glUniform2uiv(GLint location,
4615 GLsizei count,
4616 const GLuint* v) {
4617 GL_SERVICE_LOG("glUniform2uiv"
4618 << "(" << location << ", " << count << ", "
4619 << static_cast<const void*>(v) << ")");
4620 g_driver_gl.debug_fn.glUniform2uivFn(location, count, v);
4623 static void GL_BINDING_CALL Debug_glUniform3f(GLint location,
4624 GLfloat x,
4625 GLfloat y,
4626 GLfloat z) {
4627 GL_SERVICE_LOG("glUniform3f"
4628 << "(" << location << ", " << x << ", " << y << ", " << z
4629 << ")");
4630 g_driver_gl.debug_fn.glUniform3fFn(location, x, y, z);
4633 static void GL_BINDING_CALL Debug_glUniform3fv(GLint location,
4634 GLsizei count,
4635 const GLfloat* v) {
4636 GL_SERVICE_LOG("glUniform3fv"
4637 << "(" << location << ", " << count << ", "
4638 << static_cast<const void*>(v) << ")");
4639 g_driver_gl.debug_fn.glUniform3fvFn(location, count, v);
4642 static void GL_BINDING_CALL Debug_glUniform3i(GLint location,
4643 GLint x,
4644 GLint y,
4645 GLint z) {
4646 GL_SERVICE_LOG("glUniform3i"
4647 << "(" << location << ", " << x << ", " << y << ", " << z
4648 << ")");
4649 g_driver_gl.debug_fn.glUniform3iFn(location, x, y, z);
4652 static void GL_BINDING_CALL Debug_glUniform3iv(GLint location,
4653 GLsizei count,
4654 const GLint* v) {
4655 GL_SERVICE_LOG("glUniform3iv"
4656 << "(" << location << ", " << count << ", "
4657 << static_cast<const void*>(v) << ")");
4658 g_driver_gl.debug_fn.glUniform3ivFn(location, count, v);
4661 static void GL_BINDING_CALL Debug_glUniform3ui(GLint location,
4662 GLuint v0,
4663 GLuint v1,
4664 GLuint v2) {
4665 GL_SERVICE_LOG("glUniform3ui"
4666 << "(" << location << ", " << v0 << ", " << v1 << ", " << v2
4667 << ")");
4668 g_driver_gl.debug_fn.glUniform3uiFn(location, v0, v1, v2);
4671 static void GL_BINDING_CALL Debug_glUniform3uiv(GLint location,
4672 GLsizei count,
4673 const GLuint* v) {
4674 GL_SERVICE_LOG("glUniform3uiv"
4675 << "(" << location << ", " << count << ", "
4676 << static_cast<const void*>(v) << ")");
4677 g_driver_gl.debug_fn.glUniform3uivFn(location, count, v);
4680 static void GL_BINDING_CALL
4681 Debug_glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
4682 GL_SERVICE_LOG("glUniform4f"
4683 << "(" << location << ", " << x << ", " << y << ", " << z
4684 << ", " << w << ")");
4685 g_driver_gl.debug_fn.glUniform4fFn(location, x, y, z, w);
4688 static void GL_BINDING_CALL Debug_glUniform4fv(GLint location,
4689 GLsizei count,
4690 const GLfloat* v) {
4691 GL_SERVICE_LOG("glUniform4fv"
4692 << "(" << location << ", " << count << ", "
4693 << static_cast<const void*>(v) << ")");
4694 g_driver_gl.debug_fn.glUniform4fvFn(location, count, v);
4697 static void GL_BINDING_CALL
4698 Debug_glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
4699 GL_SERVICE_LOG("glUniform4i"
4700 << "(" << location << ", " << x << ", " << y << ", " << z
4701 << ", " << w << ")");
4702 g_driver_gl.debug_fn.glUniform4iFn(location, x, y, z, w);
4705 static void GL_BINDING_CALL Debug_glUniform4iv(GLint location,
4706 GLsizei count,
4707 const GLint* v) {
4708 GL_SERVICE_LOG("glUniform4iv"
4709 << "(" << location << ", " << count << ", "
4710 << static_cast<const void*>(v) << ")");
4711 g_driver_gl.debug_fn.glUniform4ivFn(location, count, v);
4714 static void GL_BINDING_CALL
4715 Debug_glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) {
4716 GL_SERVICE_LOG("glUniform4ui"
4717 << "(" << location << ", " << v0 << ", " << v1 << ", " << v2
4718 << ", " << v3 << ")");
4719 g_driver_gl.debug_fn.glUniform4uiFn(location, v0, v1, v2, v3);
4722 static void GL_BINDING_CALL Debug_glUniform4uiv(GLint location,
4723 GLsizei count,
4724 const GLuint* v) {
4725 GL_SERVICE_LOG("glUniform4uiv"
4726 << "(" << location << ", " << count << ", "
4727 << static_cast<const void*>(v) << ")");
4728 g_driver_gl.debug_fn.glUniform4uivFn(location, count, v);
4731 static void GL_BINDING_CALL
4732 Debug_glUniformBlockBinding(GLuint program,
4733 GLuint uniformBlockIndex,
4734 GLuint uniformBlockBinding) {
4735 GL_SERVICE_LOG("glUniformBlockBinding"
4736 << "(" << program << ", " << uniformBlockIndex << ", "
4737 << uniformBlockBinding << ")");
4738 g_driver_gl.debug_fn.glUniformBlockBindingFn(program, uniformBlockIndex,
4739 uniformBlockBinding);
4742 static void GL_BINDING_CALL Debug_glUniformMatrix2fv(GLint location,
4743 GLsizei count,
4744 GLboolean transpose,
4745 const GLfloat* value) {
4746 GL_SERVICE_LOG("glUniformMatrix2fv"
4747 << "(" << location << ", " << count << ", "
4748 << GLEnums::GetStringBool(transpose) << ", "
4749 << static_cast<const void*>(value) << ")");
4750 g_driver_gl.debug_fn.glUniformMatrix2fvFn(location, count, transpose, value);
4753 static void GL_BINDING_CALL Debug_glUniformMatrix2x3fv(GLint location,
4754 GLsizei count,
4755 GLboolean transpose,
4756 const GLfloat* value) {
4757 GL_SERVICE_LOG("glUniformMatrix2x3fv"
4758 << "(" << location << ", " << count << ", "
4759 << GLEnums::GetStringBool(transpose) << ", "
4760 << static_cast<const void*>(value) << ")");
4761 g_driver_gl.debug_fn.glUniformMatrix2x3fvFn(location, count, transpose,
4762 value);
4765 static void GL_BINDING_CALL Debug_glUniformMatrix2x4fv(GLint location,
4766 GLsizei count,
4767 GLboolean transpose,
4768 const GLfloat* value) {
4769 GL_SERVICE_LOG("glUniformMatrix2x4fv"
4770 << "(" << location << ", " << count << ", "
4771 << GLEnums::GetStringBool(transpose) << ", "
4772 << static_cast<const void*>(value) << ")");
4773 g_driver_gl.debug_fn.glUniformMatrix2x4fvFn(location, count, transpose,
4774 value);
4777 static void GL_BINDING_CALL Debug_glUniformMatrix3fv(GLint location,
4778 GLsizei count,
4779 GLboolean transpose,
4780 const GLfloat* value) {
4781 GL_SERVICE_LOG("glUniformMatrix3fv"
4782 << "(" << location << ", " << count << ", "
4783 << GLEnums::GetStringBool(transpose) << ", "
4784 << static_cast<const void*>(value) << ")");
4785 g_driver_gl.debug_fn.glUniformMatrix3fvFn(location, count, transpose, value);
4788 static void GL_BINDING_CALL Debug_glUniformMatrix3x2fv(GLint location,
4789 GLsizei count,
4790 GLboolean transpose,
4791 const GLfloat* value) {
4792 GL_SERVICE_LOG("glUniformMatrix3x2fv"
4793 << "(" << location << ", " << count << ", "
4794 << GLEnums::GetStringBool(transpose) << ", "
4795 << static_cast<const void*>(value) << ")");
4796 g_driver_gl.debug_fn.glUniformMatrix3x2fvFn(location, count, transpose,
4797 value);
4800 static void GL_BINDING_CALL Debug_glUniformMatrix3x4fv(GLint location,
4801 GLsizei count,
4802 GLboolean transpose,
4803 const GLfloat* value) {
4804 GL_SERVICE_LOG("glUniformMatrix3x4fv"
4805 << "(" << location << ", " << count << ", "
4806 << GLEnums::GetStringBool(transpose) << ", "
4807 << static_cast<const void*>(value) << ")");
4808 g_driver_gl.debug_fn.glUniformMatrix3x4fvFn(location, count, transpose,
4809 value);
4812 static void GL_BINDING_CALL Debug_glUniformMatrix4fv(GLint location,
4813 GLsizei count,
4814 GLboolean transpose,
4815 const GLfloat* value) {
4816 GL_SERVICE_LOG("glUniformMatrix4fv"
4817 << "(" << location << ", " << count << ", "
4818 << GLEnums::GetStringBool(transpose) << ", "
4819 << static_cast<const void*>(value) << ")");
4820 g_driver_gl.debug_fn.glUniformMatrix4fvFn(location, count, transpose, value);
4823 static void GL_BINDING_CALL Debug_glUniformMatrix4x2fv(GLint location,
4824 GLsizei count,
4825 GLboolean transpose,
4826 const GLfloat* value) {
4827 GL_SERVICE_LOG("glUniformMatrix4x2fv"
4828 << "(" << location << ", " << count << ", "
4829 << GLEnums::GetStringBool(transpose) << ", "
4830 << static_cast<const void*>(value) << ")");
4831 g_driver_gl.debug_fn.glUniformMatrix4x2fvFn(location, count, transpose,
4832 value);
4835 static void GL_BINDING_CALL Debug_glUniformMatrix4x3fv(GLint location,
4836 GLsizei count,
4837 GLboolean transpose,
4838 const GLfloat* value) {
4839 GL_SERVICE_LOG("glUniformMatrix4x3fv"
4840 << "(" << location << ", " << count << ", "
4841 << GLEnums::GetStringBool(transpose) << ", "
4842 << static_cast<const void*>(value) << ")");
4843 g_driver_gl.debug_fn.glUniformMatrix4x3fvFn(location, count, transpose,
4844 value);
4847 static GLboolean GL_BINDING_CALL Debug_glUnmapBuffer(GLenum target) {
4848 GL_SERVICE_LOG("glUnmapBuffer"
4849 << "(" << GLEnums::GetStringEnum(target) << ")");
4850 GLboolean result = g_driver_gl.debug_fn.glUnmapBufferFn(target);
4851 GL_SERVICE_LOG("GL_RESULT: " << result);
4852 return result;
4855 static void GL_BINDING_CALL Debug_glUseProgram(GLuint program) {
4856 GL_SERVICE_LOG("glUseProgram"
4857 << "(" << program << ")");
4858 g_driver_gl.debug_fn.glUseProgramFn(program);
4861 static void GL_BINDING_CALL Debug_glValidateProgram(GLuint program) {
4862 GL_SERVICE_LOG("glValidateProgram"
4863 << "(" << program << ")");
4864 g_driver_gl.debug_fn.glValidateProgramFn(program);
4867 static void GL_BINDING_CALL Debug_glVertexAttrib1f(GLuint indx, GLfloat x) {
4868 GL_SERVICE_LOG("glVertexAttrib1f"
4869 << "(" << indx << ", " << x << ")");
4870 g_driver_gl.debug_fn.glVertexAttrib1fFn(indx, x);
4873 static void GL_BINDING_CALL Debug_glVertexAttrib1fv(GLuint indx,
4874 const GLfloat* values) {
4875 GL_SERVICE_LOG("glVertexAttrib1fv"
4876 << "(" << indx << ", " << static_cast<const void*>(values)
4877 << ")");
4878 g_driver_gl.debug_fn.glVertexAttrib1fvFn(indx, values);
4881 static void GL_BINDING_CALL Debug_glVertexAttrib2f(GLuint indx,
4882 GLfloat x,
4883 GLfloat y) {
4884 GL_SERVICE_LOG("glVertexAttrib2f"
4885 << "(" << indx << ", " << x << ", " << y << ")");
4886 g_driver_gl.debug_fn.glVertexAttrib2fFn(indx, x, y);
4889 static void GL_BINDING_CALL Debug_glVertexAttrib2fv(GLuint indx,
4890 const GLfloat* values) {
4891 GL_SERVICE_LOG("glVertexAttrib2fv"
4892 << "(" << indx << ", " << static_cast<const void*>(values)
4893 << ")");
4894 g_driver_gl.debug_fn.glVertexAttrib2fvFn(indx, values);
4897 static void GL_BINDING_CALL Debug_glVertexAttrib3f(GLuint indx,
4898 GLfloat x,
4899 GLfloat y,
4900 GLfloat z) {
4901 GL_SERVICE_LOG("glVertexAttrib3f"
4902 << "(" << indx << ", " << x << ", " << y << ", " << z << ")");
4903 g_driver_gl.debug_fn.glVertexAttrib3fFn(indx, x, y, z);
4906 static void GL_BINDING_CALL Debug_glVertexAttrib3fv(GLuint indx,
4907 const GLfloat* values) {
4908 GL_SERVICE_LOG("glVertexAttrib3fv"
4909 << "(" << indx << ", " << static_cast<const void*>(values)
4910 << ")");
4911 g_driver_gl.debug_fn.glVertexAttrib3fvFn(indx, values);
4914 static void GL_BINDING_CALL Debug_glVertexAttrib4f(GLuint indx,
4915 GLfloat x,
4916 GLfloat y,
4917 GLfloat z,
4918 GLfloat w) {
4919 GL_SERVICE_LOG("glVertexAttrib4f"
4920 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4921 << w << ")");
4922 g_driver_gl.debug_fn.glVertexAttrib4fFn(indx, x, y, z, w);
4925 static void GL_BINDING_CALL Debug_glVertexAttrib4fv(GLuint indx,
4926 const GLfloat* values) {
4927 GL_SERVICE_LOG("glVertexAttrib4fv"
4928 << "(" << indx << ", " << static_cast<const void*>(values)
4929 << ")");
4930 g_driver_gl.debug_fn.glVertexAttrib4fvFn(indx, values);
4933 static void GL_BINDING_CALL Debug_glVertexAttribDivisorANGLE(GLuint index,
4934 GLuint divisor) {
4935 GL_SERVICE_LOG("glVertexAttribDivisorANGLE"
4936 << "(" << index << ", " << divisor << ")");
4937 g_driver_gl.debug_fn.glVertexAttribDivisorANGLEFn(index, divisor);
4940 static void GL_BINDING_CALL
4941 Debug_glVertexAttribI4i(GLuint indx, GLint x, GLint y, GLint z, GLint w) {
4942 GL_SERVICE_LOG("glVertexAttribI4i"
4943 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4944 << w << ")");
4945 g_driver_gl.debug_fn.glVertexAttribI4iFn(indx, x, y, z, w);
4948 static void GL_BINDING_CALL Debug_glVertexAttribI4iv(GLuint indx,
4949 const GLint* values) {
4950 GL_SERVICE_LOG("glVertexAttribI4iv"
4951 << "(" << indx << ", " << static_cast<const void*>(values)
4952 << ")");
4953 g_driver_gl.debug_fn.glVertexAttribI4ivFn(indx, values);
4956 static void GL_BINDING_CALL
4957 Debug_glVertexAttribI4ui(GLuint indx, GLuint x, GLuint y, GLuint z, GLuint w) {
4958 GL_SERVICE_LOG("glVertexAttribI4ui"
4959 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4960 << w << ")");
4961 g_driver_gl.debug_fn.glVertexAttribI4uiFn(indx, x, y, z, w);
4964 static void GL_BINDING_CALL Debug_glVertexAttribI4uiv(GLuint indx,
4965 const GLuint* values) {
4966 GL_SERVICE_LOG("glVertexAttribI4uiv"
4967 << "(" << indx << ", " << static_cast<const void*>(values)
4968 << ")");
4969 g_driver_gl.debug_fn.glVertexAttribI4uivFn(indx, values);
4972 static void GL_BINDING_CALL Debug_glVertexAttribIPointer(GLuint indx,
4973 GLint size,
4974 GLenum type,
4975 GLsizei stride,
4976 const void* ptr) {
4977 GL_SERVICE_LOG("glVertexAttribIPointer"
4978 << "(" << indx << ", " << size << ", "
4979 << GLEnums::GetStringEnum(type) << ", " << stride << ", "
4980 << static_cast<const void*>(ptr) << ")");
4981 g_driver_gl.debug_fn.glVertexAttribIPointerFn(indx, size, type, stride, ptr);
4984 static void GL_BINDING_CALL Debug_glVertexAttribPointer(GLuint indx,
4985 GLint size,
4986 GLenum type,
4987 GLboolean normalized,
4988 GLsizei stride,
4989 const void* ptr) {
4990 GL_SERVICE_LOG("glVertexAttribPointer"
4991 << "(" << indx << ", " << size << ", "
4992 << GLEnums::GetStringEnum(type) << ", "
4993 << GLEnums::GetStringBool(normalized) << ", " << stride << ", "
4994 << static_cast<const void*>(ptr) << ")");
4995 g_driver_gl.debug_fn.glVertexAttribPointerFn(indx, size, type, normalized,
4996 stride, ptr);
4999 static void GL_BINDING_CALL Debug_glViewport(GLint x,
5000 GLint y,
5001 GLsizei width,
5002 GLsizei height) {
5003 GL_SERVICE_LOG("glViewport"
5004 << "(" << x << ", " << y << ", " << width << ", " << height
5005 << ")");
5006 g_driver_gl.debug_fn.glViewportFn(x, y, width, height);
5009 static GLenum GL_BINDING_CALL Debug_glWaitSync(GLsync sync,
5010 GLbitfield flags,
5011 GLuint64 timeout) {
5012 GL_SERVICE_LOG("glWaitSync"
5013 << "(" << sync << ", " << flags << ", " << timeout << ")");
5014 GLenum result = g_driver_gl.debug_fn.glWaitSyncFn(sync, flags, timeout);
5015 GL_SERVICE_LOG("GL_RESULT: " << result);
5016 return result;
5018 } // extern "C"
5020 void DriverGL::InitializeDebugBindings() {
5021 if (!debug_fn.glActiveTextureFn) {
5022 debug_fn.glActiveTextureFn = fn.glActiveTextureFn;
5023 fn.glActiveTextureFn = Debug_glActiveTexture;
5025 if (!debug_fn.glAttachShaderFn) {
5026 debug_fn.glAttachShaderFn = fn.glAttachShaderFn;
5027 fn.glAttachShaderFn = Debug_glAttachShader;
5029 if (!debug_fn.glBeginQueryFn) {
5030 debug_fn.glBeginQueryFn = fn.glBeginQueryFn;
5031 fn.glBeginQueryFn = Debug_glBeginQuery;
5033 if (!debug_fn.glBeginTransformFeedbackFn) {
5034 debug_fn.glBeginTransformFeedbackFn = fn.glBeginTransformFeedbackFn;
5035 fn.glBeginTransformFeedbackFn = Debug_glBeginTransformFeedback;
5037 if (!debug_fn.glBindAttribLocationFn) {
5038 debug_fn.glBindAttribLocationFn = fn.glBindAttribLocationFn;
5039 fn.glBindAttribLocationFn = Debug_glBindAttribLocation;
5041 if (!debug_fn.glBindBufferFn) {
5042 debug_fn.glBindBufferFn = fn.glBindBufferFn;
5043 fn.glBindBufferFn = Debug_glBindBuffer;
5045 if (!debug_fn.glBindBufferBaseFn) {
5046 debug_fn.glBindBufferBaseFn = fn.glBindBufferBaseFn;
5047 fn.glBindBufferBaseFn = Debug_glBindBufferBase;
5049 if (!debug_fn.glBindBufferRangeFn) {
5050 debug_fn.glBindBufferRangeFn = fn.glBindBufferRangeFn;
5051 fn.glBindBufferRangeFn = Debug_glBindBufferRange;
5053 if (!debug_fn.glBindFragDataLocationFn) {
5054 debug_fn.glBindFragDataLocationFn = fn.glBindFragDataLocationFn;
5055 fn.glBindFragDataLocationFn = Debug_glBindFragDataLocation;
5057 if (!debug_fn.glBindFragDataLocationIndexedFn) {
5058 debug_fn.glBindFragDataLocationIndexedFn =
5059 fn.glBindFragDataLocationIndexedFn;
5060 fn.glBindFragDataLocationIndexedFn = Debug_glBindFragDataLocationIndexed;
5062 if (!debug_fn.glBindFramebufferEXTFn) {
5063 debug_fn.glBindFramebufferEXTFn = fn.glBindFramebufferEXTFn;
5064 fn.glBindFramebufferEXTFn = Debug_glBindFramebufferEXT;
5066 if (!debug_fn.glBindRenderbufferEXTFn) {
5067 debug_fn.glBindRenderbufferEXTFn = fn.glBindRenderbufferEXTFn;
5068 fn.glBindRenderbufferEXTFn = Debug_glBindRenderbufferEXT;
5070 if (!debug_fn.glBindSamplerFn) {
5071 debug_fn.glBindSamplerFn = fn.glBindSamplerFn;
5072 fn.glBindSamplerFn = Debug_glBindSampler;
5074 if (!debug_fn.glBindTextureFn) {
5075 debug_fn.glBindTextureFn = fn.glBindTextureFn;
5076 fn.glBindTextureFn = Debug_glBindTexture;
5078 if (!debug_fn.glBindTransformFeedbackFn) {
5079 debug_fn.glBindTransformFeedbackFn = fn.glBindTransformFeedbackFn;
5080 fn.glBindTransformFeedbackFn = Debug_glBindTransformFeedback;
5082 if (!debug_fn.glBindVertexArrayOESFn) {
5083 debug_fn.glBindVertexArrayOESFn = fn.glBindVertexArrayOESFn;
5084 fn.glBindVertexArrayOESFn = Debug_glBindVertexArrayOES;
5086 if (!debug_fn.glBlendBarrierKHRFn) {
5087 debug_fn.glBlendBarrierKHRFn = fn.glBlendBarrierKHRFn;
5088 fn.glBlendBarrierKHRFn = Debug_glBlendBarrierKHR;
5090 if (!debug_fn.glBlendColorFn) {
5091 debug_fn.glBlendColorFn = fn.glBlendColorFn;
5092 fn.glBlendColorFn = Debug_glBlendColor;
5094 if (!debug_fn.glBlendEquationFn) {
5095 debug_fn.glBlendEquationFn = fn.glBlendEquationFn;
5096 fn.glBlendEquationFn = Debug_glBlendEquation;
5098 if (!debug_fn.glBlendEquationSeparateFn) {
5099 debug_fn.glBlendEquationSeparateFn = fn.glBlendEquationSeparateFn;
5100 fn.glBlendEquationSeparateFn = Debug_glBlendEquationSeparate;
5102 if (!debug_fn.glBlendFuncFn) {
5103 debug_fn.glBlendFuncFn = fn.glBlendFuncFn;
5104 fn.glBlendFuncFn = Debug_glBlendFunc;
5106 if (!debug_fn.glBlendFuncSeparateFn) {
5107 debug_fn.glBlendFuncSeparateFn = fn.glBlendFuncSeparateFn;
5108 fn.glBlendFuncSeparateFn = Debug_glBlendFuncSeparate;
5110 if (!debug_fn.glBlitFramebufferFn) {
5111 debug_fn.glBlitFramebufferFn = fn.glBlitFramebufferFn;
5112 fn.glBlitFramebufferFn = Debug_glBlitFramebuffer;
5114 if (!debug_fn.glBlitFramebufferANGLEFn) {
5115 debug_fn.glBlitFramebufferANGLEFn = fn.glBlitFramebufferANGLEFn;
5116 fn.glBlitFramebufferANGLEFn = Debug_glBlitFramebufferANGLE;
5118 if (!debug_fn.glBlitFramebufferEXTFn) {
5119 debug_fn.glBlitFramebufferEXTFn = fn.glBlitFramebufferEXTFn;
5120 fn.glBlitFramebufferEXTFn = Debug_glBlitFramebufferEXT;
5122 if (!debug_fn.glBufferDataFn) {
5123 debug_fn.glBufferDataFn = fn.glBufferDataFn;
5124 fn.glBufferDataFn = Debug_glBufferData;
5126 if (!debug_fn.glBufferSubDataFn) {
5127 debug_fn.glBufferSubDataFn = fn.glBufferSubDataFn;
5128 fn.glBufferSubDataFn = Debug_glBufferSubData;
5130 if (!debug_fn.glCheckFramebufferStatusEXTFn) {
5131 debug_fn.glCheckFramebufferStatusEXTFn = fn.glCheckFramebufferStatusEXTFn;
5132 fn.glCheckFramebufferStatusEXTFn = Debug_glCheckFramebufferStatusEXT;
5134 if (!debug_fn.glClearFn) {
5135 debug_fn.glClearFn = fn.glClearFn;
5136 fn.glClearFn = Debug_glClear;
5138 if (!debug_fn.glClearBufferfiFn) {
5139 debug_fn.glClearBufferfiFn = fn.glClearBufferfiFn;
5140 fn.glClearBufferfiFn = Debug_glClearBufferfi;
5142 if (!debug_fn.glClearBufferfvFn) {
5143 debug_fn.glClearBufferfvFn = fn.glClearBufferfvFn;
5144 fn.glClearBufferfvFn = Debug_glClearBufferfv;
5146 if (!debug_fn.glClearBufferivFn) {
5147 debug_fn.glClearBufferivFn = fn.glClearBufferivFn;
5148 fn.glClearBufferivFn = Debug_glClearBufferiv;
5150 if (!debug_fn.glClearBufferuivFn) {
5151 debug_fn.glClearBufferuivFn = fn.glClearBufferuivFn;
5152 fn.glClearBufferuivFn = Debug_glClearBufferuiv;
5154 if (!debug_fn.glClearColorFn) {
5155 debug_fn.glClearColorFn = fn.glClearColorFn;
5156 fn.glClearColorFn = Debug_glClearColor;
5158 if (!debug_fn.glClearDepthFn) {
5159 debug_fn.glClearDepthFn = fn.glClearDepthFn;
5160 fn.glClearDepthFn = Debug_glClearDepth;
5162 if (!debug_fn.glClearDepthfFn) {
5163 debug_fn.glClearDepthfFn = fn.glClearDepthfFn;
5164 fn.glClearDepthfFn = Debug_glClearDepthf;
5166 if (!debug_fn.glClearStencilFn) {
5167 debug_fn.glClearStencilFn = fn.glClearStencilFn;
5168 fn.glClearStencilFn = Debug_glClearStencil;
5170 if (!debug_fn.glClientWaitSyncFn) {
5171 debug_fn.glClientWaitSyncFn = fn.glClientWaitSyncFn;
5172 fn.glClientWaitSyncFn = Debug_glClientWaitSync;
5174 if (!debug_fn.glColorMaskFn) {
5175 debug_fn.glColorMaskFn = fn.glColorMaskFn;
5176 fn.glColorMaskFn = Debug_glColorMask;
5178 if (!debug_fn.glCompileShaderFn) {
5179 debug_fn.glCompileShaderFn = fn.glCompileShaderFn;
5180 fn.glCompileShaderFn = Debug_glCompileShader;
5182 if (!debug_fn.glCompressedTexImage2DFn) {
5183 debug_fn.glCompressedTexImage2DFn = fn.glCompressedTexImage2DFn;
5184 fn.glCompressedTexImage2DFn = Debug_glCompressedTexImage2D;
5186 if (!debug_fn.glCompressedTexImage3DFn) {
5187 debug_fn.glCompressedTexImage3DFn = fn.glCompressedTexImage3DFn;
5188 fn.glCompressedTexImage3DFn = Debug_glCompressedTexImage3D;
5190 if (!debug_fn.glCompressedTexSubImage2DFn) {
5191 debug_fn.glCompressedTexSubImage2DFn = fn.glCompressedTexSubImage2DFn;
5192 fn.glCompressedTexSubImage2DFn = Debug_glCompressedTexSubImage2D;
5194 if (!debug_fn.glCompressedTexSubImage3DFn) {
5195 debug_fn.glCompressedTexSubImage3DFn = fn.glCompressedTexSubImage3DFn;
5196 fn.glCompressedTexSubImage3DFn = Debug_glCompressedTexSubImage3D;
5198 if (!debug_fn.glCopyBufferSubDataFn) {
5199 debug_fn.glCopyBufferSubDataFn = fn.glCopyBufferSubDataFn;
5200 fn.glCopyBufferSubDataFn = Debug_glCopyBufferSubData;
5202 if (!debug_fn.glCopyTexImage2DFn) {
5203 debug_fn.glCopyTexImage2DFn = fn.glCopyTexImage2DFn;
5204 fn.glCopyTexImage2DFn = Debug_glCopyTexImage2D;
5206 if (!debug_fn.glCopyTexSubImage2DFn) {
5207 debug_fn.glCopyTexSubImage2DFn = fn.glCopyTexSubImage2DFn;
5208 fn.glCopyTexSubImage2DFn = Debug_glCopyTexSubImage2D;
5210 if (!debug_fn.glCopyTexSubImage3DFn) {
5211 debug_fn.glCopyTexSubImage3DFn = fn.glCopyTexSubImage3DFn;
5212 fn.glCopyTexSubImage3DFn = Debug_glCopyTexSubImage3D;
5214 if (!debug_fn.glCoverFillPathNVFn) {
5215 debug_fn.glCoverFillPathNVFn = fn.glCoverFillPathNVFn;
5216 fn.glCoverFillPathNVFn = Debug_glCoverFillPathNV;
5218 if (!debug_fn.glCoverStrokePathNVFn) {
5219 debug_fn.glCoverStrokePathNVFn = fn.glCoverStrokePathNVFn;
5220 fn.glCoverStrokePathNVFn = Debug_glCoverStrokePathNV;
5222 if (!debug_fn.glCreateProgramFn) {
5223 debug_fn.glCreateProgramFn = fn.glCreateProgramFn;
5224 fn.glCreateProgramFn = Debug_glCreateProgram;
5226 if (!debug_fn.glCreateShaderFn) {
5227 debug_fn.glCreateShaderFn = fn.glCreateShaderFn;
5228 fn.glCreateShaderFn = Debug_glCreateShader;
5230 if (!debug_fn.glCullFaceFn) {
5231 debug_fn.glCullFaceFn = fn.glCullFaceFn;
5232 fn.glCullFaceFn = Debug_glCullFace;
5234 if (!debug_fn.glDeleteBuffersARBFn) {
5235 debug_fn.glDeleteBuffersARBFn = fn.glDeleteBuffersARBFn;
5236 fn.glDeleteBuffersARBFn = Debug_glDeleteBuffersARB;
5238 if (!debug_fn.glDeleteFencesAPPLEFn) {
5239 debug_fn.glDeleteFencesAPPLEFn = fn.glDeleteFencesAPPLEFn;
5240 fn.glDeleteFencesAPPLEFn = Debug_glDeleteFencesAPPLE;
5242 if (!debug_fn.glDeleteFencesNVFn) {
5243 debug_fn.glDeleteFencesNVFn = fn.glDeleteFencesNVFn;
5244 fn.glDeleteFencesNVFn = Debug_glDeleteFencesNV;
5246 if (!debug_fn.glDeleteFramebuffersEXTFn) {
5247 debug_fn.glDeleteFramebuffersEXTFn = fn.glDeleteFramebuffersEXTFn;
5248 fn.glDeleteFramebuffersEXTFn = Debug_glDeleteFramebuffersEXT;
5250 if (!debug_fn.glDeletePathsNVFn) {
5251 debug_fn.glDeletePathsNVFn = fn.glDeletePathsNVFn;
5252 fn.glDeletePathsNVFn = Debug_glDeletePathsNV;
5254 if (!debug_fn.glDeleteProgramFn) {
5255 debug_fn.glDeleteProgramFn = fn.glDeleteProgramFn;
5256 fn.glDeleteProgramFn = Debug_glDeleteProgram;
5258 if (!debug_fn.glDeleteQueriesFn) {
5259 debug_fn.glDeleteQueriesFn = fn.glDeleteQueriesFn;
5260 fn.glDeleteQueriesFn = Debug_glDeleteQueries;
5262 if (!debug_fn.glDeleteRenderbuffersEXTFn) {
5263 debug_fn.glDeleteRenderbuffersEXTFn = fn.glDeleteRenderbuffersEXTFn;
5264 fn.glDeleteRenderbuffersEXTFn = Debug_glDeleteRenderbuffersEXT;
5266 if (!debug_fn.glDeleteSamplersFn) {
5267 debug_fn.glDeleteSamplersFn = fn.glDeleteSamplersFn;
5268 fn.glDeleteSamplersFn = Debug_glDeleteSamplers;
5270 if (!debug_fn.glDeleteShaderFn) {
5271 debug_fn.glDeleteShaderFn = fn.glDeleteShaderFn;
5272 fn.glDeleteShaderFn = Debug_glDeleteShader;
5274 if (!debug_fn.glDeleteSyncFn) {
5275 debug_fn.glDeleteSyncFn = fn.glDeleteSyncFn;
5276 fn.glDeleteSyncFn = Debug_glDeleteSync;
5278 if (!debug_fn.glDeleteTexturesFn) {
5279 debug_fn.glDeleteTexturesFn = fn.glDeleteTexturesFn;
5280 fn.glDeleteTexturesFn = Debug_glDeleteTextures;
5282 if (!debug_fn.glDeleteTransformFeedbacksFn) {
5283 debug_fn.glDeleteTransformFeedbacksFn = fn.glDeleteTransformFeedbacksFn;
5284 fn.glDeleteTransformFeedbacksFn = Debug_glDeleteTransformFeedbacks;
5286 if (!debug_fn.glDeleteVertexArraysOESFn) {
5287 debug_fn.glDeleteVertexArraysOESFn = fn.glDeleteVertexArraysOESFn;
5288 fn.glDeleteVertexArraysOESFn = Debug_glDeleteVertexArraysOES;
5290 if (!debug_fn.glDepthFuncFn) {
5291 debug_fn.glDepthFuncFn = fn.glDepthFuncFn;
5292 fn.glDepthFuncFn = Debug_glDepthFunc;
5294 if (!debug_fn.glDepthMaskFn) {
5295 debug_fn.glDepthMaskFn = fn.glDepthMaskFn;
5296 fn.glDepthMaskFn = Debug_glDepthMask;
5298 if (!debug_fn.glDepthRangeFn) {
5299 debug_fn.glDepthRangeFn = fn.glDepthRangeFn;
5300 fn.glDepthRangeFn = Debug_glDepthRange;
5302 if (!debug_fn.glDepthRangefFn) {
5303 debug_fn.glDepthRangefFn = fn.glDepthRangefFn;
5304 fn.glDepthRangefFn = Debug_glDepthRangef;
5306 if (!debug_fn.glDetachShaderFn) {
5307 debug_fn.glDetachShaderFn = fn.glDetachShaderFn;
5308 fn.glDetachShaderFn = Debug_glDetachShader;
5310 if (!debug_fn.glDisableFn) {
5311 debug_fn.glDisableFn = fn.glDisableFn;
5312 fn.glDisableFn = Debug_glDisable;
5314 if (!debug_fn.glDisableVertexAttribArrayFn) {
5315 debug_fn.glDisableVertexAttribArrayFn = fn.glDisableVertexAttribArrayFn;
5316 fn.glDisableVertexAttribArrayFn = Debug_glDisableVertexAttribArray;
5318 if (!debug_fn.glDiscardFramebufferEXTFn) {
5319 debug_fn.glDiscardFramebufferEXTFn = fn.glDiscardFramebufferEXTFn;
5320 fn.glDiscardFramebufferEXTFn = Debug_glDiscardFramebufferEXT;
5322 if (!debug_fn.glDrawArraysFn) {
5323 debug_fn.glDrawArraysFn = fn.glDrawArraysFn;
5324 fn.glDrawArraysFn = Debug_glDrawArrays;
5326 if (!debug_fn.glDrawArraysInstancedANGLEFn) {
5327 debug_fn.glDrawArraysInstancedANGLEFn = fn.glDrawArraysInstancedANGLEFn;
5328 fn.glDrawArraysInstancedANGLEFn = Debug_glDrawArraysInstancedANGLE;
5330 if (!debug_fn.glDrawBufferFn) {
5331 debug_fn.glDrawBufferFn = fn.glDrawBufferFn;
5332 fn.glDrawBufferFn = Debug_glDrawBuffer;
5334 if (!debug_fn.glDrawBuffersARBFn) {
5335 debug_fn.glDrawBuffersARBFn = fn.glDrawBuffersARBFn;
5336 fn.glDrawBuffersARBFn = Debug_glDrawBuffersARB;
5338 if (!debug_fn.glDrawElementsFn) {
5339 debug_fn.glDrawElementsFn = fn.glDrawElementsFn;
5340 fn.glDrawElementsFn = Debug_glDrawElements;
5342 if (!debug_fn.glDrawElementsInstancedANGLEFn) {
5343 debug_fn.glDrawElementsInstancedANGLEFn = fn.glDrawElementsInstancedANGLEFn;
5344 fn.glDrawElementsInstancedANGLEFn = Debug_glDrawElementsInstancedANGLE;
5346 if (!debug_fn.glDrawRangeElementsFn) {
5347 debug_fn.glDrawRangeElementsFn = fn.glDrawRangeElementsFn;
5348 fn.glDrawRangeElementsFn = Debug_glDrawRangeElements;
5350 if (!debug_fn.glEGLImageTargetRenderbufferStorageOESFn) {
5351 debug_fn.glEGLImageTargetRenderbufferStorageOESFn =
5352 fn.glEGLImageTargetRenderbufferStorageOESFn;
5353 fn.glEGLImageTargetRenderbufferStorageOESFn =
5354 Debug_glEGLImageTargetRenderbufferStorageOES;
5356 if (!debug_fn.glEGLImageTargetTexture2DOESFn) {
5357 debug_fn.glEGLImageTargetTexture2DOESFn = fn.glEGLImageTargetTexture2DOESFn;
5358 fn.glEGLImageTargetTexture2DOESFn = Debug_glEGLImageTargetTexture2DOES;
5360 if (!debug_fn.glEnableFn) {
5361 debug_fn.glEnableFn = fn.glEnableFn;
5362 fn.glEnableFn = Debug_glEnable;
5364 if (!debug_fn.glEnableVertexAttribArrayFn) {
5365 debug_fn.glEnableVertexAttribArrayFn = fn.glEnableVertexAttribArrayFn;
5366 fn.glEnableVertexAttribArrayFn = Debug_glEnableVertexAttribArray;
5368 if (!debug_fn.glEndQueryFn) {
5369 debug_fn.glEndQueryFn = fn.glEndQueryFn;
5370 fn.glEndQueryFn = Debug_glEndQuery;
5372 if (!debug_fn.glEndTransformFeedbackFn) {
5373 debug_fn.glEndTransformFeedbackFn = fn.glEndTransformFeedbackFn;
5374 fn.glEndTransformFeedbackFn = Debug_glEndTransformFeedback;
5376 if (!debug_fn.glFenceSyncFn) {
5377 debug_fn.glFenceSyncFn = fn.glFenceSyncFn;
5378 fn.glFenceSyncFn = Debug_glFenceSync;
5380 if (!debug_fn.glFinishFn) {
5381 debug_fn.glFinishFn = fn.glFinishFn;
5382 fn.glFinishFn = Debug_glFinish;
5384 if (!debug_fn.glFinishFenceAPPLEFn) {
5385 debug_fn.glFinishFenceAPPLEFn = fn.glFinishFenceAPPLEFn;
5386 fn.glFinishFenceAPPLEFn = Debug_glFinishFenceAPPLE;
5388 if (!debug_fn.glFinishFenceNVFn) {
5389 debug_fn.glFinishFenceNVFn = fn.glFinishFenceNVFn;
5390 fn.glFinishFenceNVFn = Debug_glFinishFenceNV;
5392 if (!debug_fn.glFlushFn) {
5393 debug_fn.glFlushFn = fn.glFlushFn;
5394 fn.glFlushFn = Debug_glFlush;
5396 if (!debug_fn.glFlushMappedBufferRangeFn) {
5397 debug_fn.glFlushMappedBufferRangeFn = fn.glFlushMappedBufferRangeFn;
5398 fn.glFlushMappedBufferRangeFn = Debug_glFlushMappedBufferRange;
5400 if (!debug_fn.glFramebufferRenderbufferEXTFn) {
5401 debug_fn.glFramebufferRenderbufferEXTFn = fn.glFramebufferRenderbufferEXTFn;
5402 fn.glFramebufferRenderbufferEXTFn = Debug_glFramebufferRenderbufferEXT;
5404 if (!debug_fn.glFramebufferTexture2DEXTFn) {
5405 debug_fn.glFramebufferTexture2DEXTFn = fn.glFramebufferTexture2DEXTFn;
5406 fn.glFramebufferTexture2DEXTFn = Debug_glFramebufferTexture2DEXT;
5408 if (!debug_fn.glFramebufferTexture2DMultisampleEXTFn) {
5409 debug_fn.glFramebufferTexture2DMultisampleEXTFn =
5410 fn.glFramebufferTexture2DMultisampleEXTFn;
5411 fn.glFramebufferTexture2DMultisampleEXTFn =
5412 Debug_glFramebufferTexture2DMultisampleEXT;
5414 if (!debug_fn.glFramebufferTexture2DMultisampleIMGFn) {
5415 debug_fn.glFramebufferTexture2DMultisampleIMGFn =
5416 fn.glFramebufferTexture2DMultisampleIMGFn;
5417 fn.glFramebufferTexture2DMultisampleIMGFn =
5418 Debug_glFramebufferTexture2DMultisampleIMG;
5420 if (!debug_fn.glFramebufferTextureLayerFn) {
5421 debug_fn.glFramebufferTextureLayerFn = fn.glFramebufferTextureLayerFn;
5422 fn.glFramebufferTextureLayerFn = Debug_glFramebufferTextureLayer;
5424 if (!debug_fn.glFrontFaceFn) {
5425 debug_fn.glFrontFaceFn = fn.glFrontFaceFn;
5426 fn.glFrontFaceFn = Debug_glFrontFace;
5428 if (!debug_fn.glGenBuffersARBFn) {
5429 debug_fn.glGenBuffersARBFn = fn.glGenBuffersARBFn;
5430 fn.glGenBuffersARBFn = Debug_glGenBuffersARB;
5432 if (!debug_fn.glGenerateMipmapEXTFn) {
5433 debug_fn.glGenerateMipmapEXTFn = fn.glGenerateMipmapEXTFn;
5434 fn.glGenerateMipmapEXTFn = Debug_glGenerateMipmapEXT;
5436 if (!debug_fn.glGenFencesAPPLEFn) {
5437 debug_fn.glGenFencesAPPLEFn = fn.glGenFencesAPPLEFn;
5438 fn.glGenFencesAPPLEFn = Debug_glGenFencesAPPLE;
5440 if (!debug_fn.glGenFencesNVFn) {
5441 debug_fn.glGenFencesNVFn = fn.glGenFencesNVFn;
5442 fn.glGenFencesNVFn = Debug_glGenFencesNV;
5444 if (!debug_fn.glGenFramebuffersEXTFn) {
5445 debug_fn.glGenFramebuffersEXTFn = fn.glGenFramebuffersEXTFn;
5446 fn.glGenFramebuffersEXTFn = Debug_glGenFramebuffersEXT;
5448 if (!debug_fn.glGenPathsNVFn) {
5449 debug_fn.glGenPathsNVFn = fn.glGenPathsNVFn;
5450 fn.glGenPathsNVFn = Debug_glGenPathsNV;
5452 if (!debug_fn.glGenQueriesFn) {
5453 debug_fn.glGenQueriesFn = fn.glGenQueriesFn;
5454 fn.glGenQueriesFn = Debug_glGenQueries;
5456 if (!debug_fn.glGenRenderbuffersEXTFn) {
5457 debug_fn.glGenRenderbuffersEXTFn = fn.glGenRenderbuffersEXTFn;
5458 fn.glGenRenderbuffersEXTFn = Debug_glGenRenderbuffersEXT;
5460 if (!debug_fn.glGenSamplersFn) {
5461 debug_fn.glGenSamplersFn = fn.glGenSamplersFn;
5462 fn.glGenSamplersFn = Debug_glGenSamplers;
5464 if (!debug_fn.glGenTexturesFn) {
5465 debug_fn.glGenTexturesFn = fn.glGenTexturesFn;
5466 fn.glGenTexturesFn = Debug_glGenTextures;
5468 if (!debug_fn.glGenTransformFeedbacksFn) {
5469 debug_fn.glGenTransformFeedbacksFn = fn.glGenTransformFeedbacksFn;
5470 fn.glGenTransformFeedbacksFn = Debug_glGenTransformFeedbacks;
5472 if (!debug_fn.glGenVertexArraysOESFn) {
5473 debug_fn.glGenVertexArraysOESFn = fn.glGenVertexArraysOESFn;
5474 fn.glGenVertexArraysOESFn = Debug_glGenVertexArraysOES;
5476 if (!debug_fn.glGetActiveAttribFn) {
5477 debug_fn.glGetActiveAttribFn = fn.glGetActiveAttribFn;
5478 fn.glGetActiveAttribFn = Debug_glGetActiveAttrib;
5480 if (!debug_fn.glGetActiveUniformFn) {
5481 debug_fn.glGetActiveUniformFn = fn.glGetActiveUniformFn;
5482 fn.glGetActiveUniformFn = Debug_glGetActiveUniform;
5484 if (!debug_fn.glGetActiveUniformBlockivFn) {
5485 debug_fn.glGetActiveUniformBlockivFn = fn.glGetActiveUniformBlockivFn;
5486 fn.glGetActiveUniformBlockivFn = Debug_glGetActiveUniformBlockiv;
5488 if (!debug_fn.glGetActiveUniformBlockNameFn) {
5489 debug_fn.glGetActiveUniformBlockNameFn = fn.glGetActiveUniformBlockNameFn;
5490 fn.glGetActiveUniformBlockNameFn = Debug_glGetActiveUniformBlockName;
5492 if (!debug_fn.glGetActiveUniformsivFn) {
5493 debug_fn.glGetActiveUniformsivFn = fn.glGetActiveUniformsivFn;
5494 fn.glGetActiveUniformsivFn = Debug_glGetActiveUniformsiv;
5496 if (!debug_fn.glGetAttachedShadersFn) {
5497 debug_fn.glGetAttachedShadersFn = fn.glGetAttachedShadersFn;
5498 fn.glGetAttachedShadersFn = Debug_glGetAttachedShaders;
5500 if (!debug_fn.glGetAttribLocationFn) {
5501 debug_fn.glGetAttribLocationFn = fn.glGetAttribLocationFn;
5502 fn.glGetAttribLocationFn = Debug_glGetAttribLocation;
5504 if (!debug_fn.glGetBooleanvFn) {
5505 debug_fn.glGetBooleanvFn = fn.glGetBooleanvFn;
5506 fn.glGetBooleanvFn = Debug_glGetBooleanv;
5508 if (!debug_fn.glGetBufferParameterivFn) {
5509 debug_fn.glGetBufferParameterivFn = fn.glGetBufferParameterivFn;
5510 fn.glGetBufferParameterivFn = Debug_glGetBufferParameteriv;
5512 if (!debug_fn.glGetErrorFn) {
5513 debug_fn.glGetErrorFn = fn.glGetErrorFn;
5514 fn.glGetErrorFn = Debug_glGetError;
5516 if (!debug_fn.glGetFenceivNVFn) {
5517 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn;
5518 fn.glGetFenceivNVFn = Debug_glGetFenceivNV;
5520 if (!debug_fn.glGetFloatvFn) {
5521 debug_fn.glGetFloatvFn = fn.glGetFloatvFn;
5522 fn.glGetFloatvFn = Debug_glGetFloatv;
5524 if (!debug_fn.glGetFragDataLocationFn) {
5525 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn;
5526 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation;
5528 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) {
5529 debug_fn.glGetFramebufferAttachmentParameterivEXTFn =
5530 fn.glGetFramebufferAttachmentParameterivEXTFn;
5531 fn.glGetFramebufferAttachmentParameterivEXTFn =
5532 Debug_glGetFramebufferAttachmentParameterivEXT;
5534 if (!debug_fn.glGetGraphicsResetStatusARBFn) {
5535 debug_fn.glGetGraphicsResetStatusARBFn = fn.glGetGraphicsResetStatusARBFn;
5536 fn.glGetGraphicsResetStatusARBFn = Debug_glGetGraphicsResetStatusARB;
5538 if (!debug_fn.glGetInteger64i_vFn) {
5539 debug_fn.glGetInteger64i_vFn = fn.glGetInteger64i_vFn;
5540 fn.glGetInteger64i_vFn = Debug_glGetInteger64i_v;
5542 if (!debug_fn.glGetInteger64vFn) {
5543 debug_fn.glGetInteger64vFn = fn.glGetInteger64vFn;
5544 fn.glGetInteger64vFn = Debug_glGetInteger64v;
5546 if (!debug_fn.glGetIntegeri_vFn) {
5547 debug_fn.glGetIntegeri_vFn = fn.glGetIntegeri_vFn;
5548 fn.glGetIntegeri_vFn = Debug_glGetIntegeri_v;
5550 if (!debug_fn.glGetIntegervFn) {
5551 debug_fn.glGetIntegervFn = fn.glGetIntegervFn;
5552 fn.glGetIntegervFn = Debug_glGetIntegerv;
5554 if (!debug_fn.glGetInternalformativFn) {
5555 debug_fn.glGetInternalformativFn = fn.glGetInternalformativFn;
5556 fn.glGetInternalformativFn = Debug_glGetInternalformativ;
5558 if (!debug_fn.glGetProgramBinaryFn) {
5559 debug_fn.glGetProgramBinaryFn = fn.glGetProgramBinaryFn;
5560 fn.glGetProgramBinaryFn = Debug_glGetProgramBinary;
5562 if (!debug_fn.glGetProgramInfoLogFn) {
5563 debug_fn.glGetProgramInfoLogFn = fn.glGetProgramInfoLogFn;
5564 fn.glGetProgramInfoLogFn = Debug_glGetProgramInfoLog;
5566 if (!debug_fn.glGetProgramivFn) {
5567 debug_fn.glGetProgramivFn = fn.glGetProgramivFn;
5568 fn.glGetProgramivFn = Debug_glGetProgramiv;
5570 if (!debug_fn.glGetProgramResourceLocationFn) {
5571 debug_fn.glGetProgramResourceLocationFn = fn.glGetProgramResourceLocationFn;
5572 fn.glGetProgramResourceLocationFn = Debug_glGetProgramResourceLocation;
5574 if (!debug_fn.glGetQueryivFn) {
5575 debug_fn.glGetQueryivFn = fn.glGetQueryivFn;
5576 fn.glGetQueryivFn = Debug_glGetQueryiv;
5578 if (!debug_fn.glGetQueryObjecti64vFn) {
5579 debug_fn.glGetQueryObjecti64vFn = fn.glGetQueryObjecti64vFn;
5580 fn.glGetQueryObjecti64vFn = Debug_glGetQueryObjecti64v;
5582 if (!debug_fn.glGetQueryObjectivFn) {
5583 debug_fn.glGetQueryObjectivFn = fn.glGetQueryObjectivFn;
5584 fn.glGetQueryObjectivFn = Debug_glGetQueryObjectiv;
5586 if (!debug_fn.glGetQueryObjectui64vFn) {
5587 debug_fn.glGetQueryObjectui64vFn = fn.glGetQueryObjectui64vFn;
5588 fn.glGetQueryObjectui64vFn = Debug_glGetQueryObjectui64v;
5590 if (!debug_fn.glGetQueryObjectuivFn) {
5591 debug_fn.glGetQueryObjectuivFn = fn.glGetQueryObjectuivFn;
5592 fn.glGetQueryObjectuivFn = Debug_glGetQueryObjectuiv;
5594 if (!debug_fn.glGetRenderbufferParameterivEXTFn) {
5595 debug_fn.glGetRenderbufferParameterivEXTFn =
5596 fn.glGetRenderbufferParameterivEXTFn;
5597 fn.glGetRenderbufferParameterivEXTFn =
5598 Debug_glGetRenderbufferParameterivEXT;
5600 if (!debug_fn.glGetSamplerParameterfvFn) {
5601 debug_fn.glGetSamplerParameterfvFn = fn.glGetSamplerParameterfvFn;
5602 fn.glGetSamplerParameterfvFn = Debug_glGetSamplerParameterfv;
5604 if (!debug_fn.glGetSamplerParameterivFn) {
5605 debug_fn.glGetSamplerParameterivFn = fn.glGetSamplerParameterivFn;
5606 fn.glGetSamplerParameterivFn = Debug_glGetSamplerParameteriv;
5608 if (!debug_fn.glGetShaderInfoLogFn) {
5609 debug_fn.glGetShaderInfoLogFn = fn.glGetShaderInfoLogFn;
5610 fn.glGetShaderInfoLogFn = Debug_glGetShaderInfoLog;
5612 if (!debug_fn.glGetShaderivFn) {
5613 debug_fn.glGetShaderivFn = fn.glGetShaderivFn;
5614 fn.glGetShaderivFn = Debug_glGetShaderiv;
5616 if (!debug_fn.glGetShaderPrecisionFormatFn) {
5617 debug_fn.glGetShaderPrecisionFormatFn = fn.glGetShaderPrecisionFormatFn;
5618 fn.glGetShaderPrecisionFormatFn = Debug_glGetShaderPrecisionFormat;
5620 if (!debug_fn.glGetShaderSourceFn) {
5621 debug_fn.glGetShaderSourceFn = fn.glGetShaderSourceFn;
5622 fn.glGetShaderSourceFn = Debug_glGetShaderSource;
5624 if (!debug_fn.glGetStringFn) {
5625 debug_fn.glGetStringFn = fn.glGetStringFn;
5626 fn.glGetStringFn = Debug_glGetString;
5628 if (!debug_fn.glGetStringiFn) {
5629 debug_fn.glGetStringiFn = fn.glGetStringiFn;
5630 fn.glGetStringiFn = Debug_glGetStringi;
5632 if (!debug_fn.glGetSyncivFn) {
5633 debug_fn.glGetSyncivFn = fn.glGetSyncivFn;
5634 fn.glGetSyncivFn = Debug_glGetSynciv;
5636 if (!debug_fn.glGetTexLevelParameterfvFn) {
5637 debug_fn.glGetTexLevelParameterfvFn = fn.glGetTexLevelParameterfvFn;
5638 fn.glGetTexLevelParameterfvFn = Debug_glGetTexLevelParameterfv;
5640 if (!debug_fn.glGetTexLevelParameterivFn) {
5641 debug_fn.glGetTexLevelParameterivFn = fn.glGetTexLevelParameterivFn;
5642 fn.glGetTexLevelParameterivFn = Debug_glGetTexLevelParameteriv;
5644 if (!debug_fn.glGetTexParameterfvFn) {
5645 debug_fn.glGetTexParameterfvFn = fn.glGetTexParameterfvFn;
5646 fn.glGetTexParameterfvFn = Debug_glGetTexParameterfv;
5648 if (!debug_fn.glGetTexParameterivFn) {
5649 debug_fn.glGetTexParameterivFn = fn.glGetTexParameterivFn;
5650 fn.glGetTexParameterivFn = Debug_glGetTexParameteriv;
5652 if (!debug_fn.glGetTransformFeedbackVaryingFn) {
5653 debug_fn.glGetTransformFeedbackVaryingFn =
5654 fn.glGetTransformFeedbackVaryingFn;
5655 fn.glGetTransformFeedbackVaryingFn = Debug_glGetTransformFeedbackVarying;
5657 if (!debug_fn.glGetTranslatedShaderSourceANGLEFn) {
5658 debug_fn.glGetTranslatedShaderSourceANGLEFn =
5659 fn.glGetTranslatedShaderSourceANGLEFn;
5660 fn.glGetTranslatedShaderSourceANGLEFn =
5661 Debug_glGetTranslatedShaderSourceANGLE;
5663 if (!debug_fn.glGetUniformBlockIndexFn) {
5664 debug_fn.glGetUniformBlockIndexFn = fn.glGetUniformBlockIndexFn;
5665 fn.glGetUniformBlockIndexFn = Debug_glGetUniformBlockIndex;
5667 if (!debug_fn.glGetUniformfvFn) {
5668 debug_fn.glGetUniformfvFn = fn.glGetUniformfvFn;
5669 fn.glGetUniformfvFn = Debug_glGetUniformfv;
5671 if (!debug_fn.glGetUniformIndicesFn) {
5672 debug_fn.glGetUniformIndicesFn = fn.glGetUniformIndicesFn;
5673 fn.glGetUniformIndicesFn = Debug_glGetUniformIndices;
5675 if (!debug_fn.glGetUniformivFn) {
5676 debug_fn.glGetUniformivFn = fn.glGetUniformivFn;
5677 fn.glGetUniformivFn = Debug_glGetUniformiv;
5679 if (!debug_fn.glGetUniformLocationFn) {
5680 debug_fn.glGetUniformLocationFn = fn.glGetUniformLocationFn;
5681 fn.glGetUniformLocationFn = Debug_glGetUniformLocation;
5683 if (!debug_fn.glGetUniformuivFn) {
5684 debug_fn.glGetUniformuivFn = fn.glGetUniformuivFn;
5685 fn.glGetUniformuivFn = Debug_glGetUniformuiv;
5687 if (!debug_fn.glGetVertexAttribfvFn) {
5688 debug_fn.glGetVertexAttribfvFn = fn.glGetVertexAttribfvFn;
5689 fn.glGetVertexAttribfvFn = Debug_glGetVertexAttribfv;
5691 if (!debug_fn.glGetVertexAttribivFn) {
5692 debug_fn.glGetVertexAttribivFn = fn.glGetVertexAttribivFn;
5693 fn.glGetVertexAttribivFn = Debug_glGetVertexAttribiv;
5695 if (!debug_fn.glGetVertexAttribPointervFn) {
5696 debug_fn.glGetVertexAttribPointervFn = fn.glGetVertexAttribPointervFn;
5697 fn.glGetVertexAttribPointervFn = Debug_glGetVertexAttribPointerv;
5699 if (!debug_fn.glHintFn) {
5700 debug_fn.glHintFn = fn.glHintFn;
5701 fn.glHintFn = Debug_glHint;
5703 if (!debug_fn.glInsertEventMarkerEXTFn) {
5704 debug_fn.glInsertEventMarkerEXTFn = fn.glInsertEventMarkerEXTFn;
5705 fn.glInsertEventMarkerEXTFn = Debug_glInsertEventMarkerEXT;
5707 if (!debug_fn.glInvalidateFramebufferFn) {
5708 debug_fn.glInvalidateFramebufferFn = fn.glInvalidateFramebufferFn;
5709 fn.glInvalidateFramebufferFn = Debug_glInvalidateFramebuffer;
5711 if (!debug_fn.glInvalidateSubFramebufferFn) {
5712 debug_fn.glInvalidateSubFramebufferFn = fn.glInvalidateSubFramebufferFn;
5713 fn.glInvalidateSubFramebufferFn = Debug_glInvalidateSubFramebuffer;
5715 if (!debug_fn.glIsBufferFn) {
5716 debug_fn.glIsBufferFn = fn.glIsBufferFn;
5717 fn.glIsBufferFn = Debug_glIsBuffer;
5719 if (!debug_fn.glIsEnabledFn) {
5720 debug_fn.glIsEnabledFn = fn.glIsEnabledFn;
5721 fn.glIsEnabledFn = Debug_glIsEnabled;
5723 if (!debug_fn.glIsFenceAPPLEFn) {
5724 debug_fn.glIsFenceAPPLEFn = fn.glIsFenceAPPLEFn;
5725 fn.glIsFenceAPPLEFn = Debug_glIsFenceAPPLE;
5727 if (!debug_fn.glIsFenceNVFn) {
5728 debug_fn.glIsFenceNVFn = fn.glIsFenceNVFn;
5729 fn.glIsFenceNVFn = Debug_glIsFenceNV;
5731 if (!debug_fn.glIsFramebufferEXTFn) {
5732 debug_fn.glIsFramebufferEXTFn = fn.glIsFramebufferEXTFn;
5733 fn.glIsFramebufferEXTFn = Debug_glIsFramebufferEXT;
5735 if (!debug_fn.glIsPathNVFn) {
5736 debug_fn.glIsPathNVFn = fn.glIsPathNVFn;
5737 fn.glIsPathNVFn = Debug_glIsPathNV;
5739 if (!debug_fn.glIsProgramFn) {
5740 debug_fn.glIsProgramFn = fn.glIsProgramFn;
5741 fn.glIsProgramFn = Debug_glIsProgram;
5743 if (!debug_fn.glIsQueryFn) {
5744 debug_fn.glIsQueryFn = fn.glIsQueryFn;
5745 fn.glIsQueryFn = Debug_glIsQuery;
5747 if (!debug_fn.glIsRenderbufferEXTFn) {
5748 debug_fn.glIsRenderbufferEXTFn = fn.glIsRenderbufferEXTFn;
5749 fn.glIsRenderbufferEXTFn = Debug_glIsRenderbufferEXT;
5751 if (!debug_fn.glIsSamplerFn) {
5752 debug_fn.glIsSamplerFn = fn.glIsSamplerFn;
5753 fn.glIsSamplerFn = Debug_glIsSampler;
5755 if (!debug_fn.glIsShaderFn) {
5756 debug_fn.glIsShaderFn = fn.glIsShaderFn;
5757 fn.glIsShaderFn = Debug_glIsShader;
5759 if (!debug_fn.glIsSyncFn) {
5760 debug_fn.glIsSyncFn = fn.glIsSyncFn;
5761 fn.glIsSyncFn = Debug_glIsSync;
5763 if (!debug_fn.glIsTextureFn) {
5764 debug_fn.glIsTextureFn = fn.glIsTextureFn;
5765 fn.glIsTextureFn = Debug_glIsTexture;
5767 if (!debug_fn.glIsTransformFeedbackFn) {
5768 debug_fn.glIsTransformFeedbackFn = fn.glIsTransformFeedbackFn;
5769 fn.glIsTransformFeedbackFn = Debug_glIsTransformFeedback;
5771 if (!debug_fn.glIsVertexArrayOESFn) {
5772 debug_fn.glIsVertexArrayOESFn = fn.glIsVertexArrayOESFn;
5773 fn.glIsVertexArrayOESFn = Debug_glIsVertexArrayOES;
5775 if (!debug_fn.glLineWidthFn) {
5776 debug_fn.glLineWidthFn = fn.glLineWidthFn;
5777 fn.glLineWidthFn = Debug_glLineWidth;
5779 if (!debug_fn.glLinkProgramFn) {
5780 debug_fn.glLinkProgramFn = fn.glLinkProgramFn;
5781 fn.glLinkProgramFn = Debug_glLinkProgram;
5783 if (!debug_fn.glMapBufferFn) {
5784 debug_fn.glMapBufferFn = fn.glMapBufferFn;
5785 fn.glMapBufferFn = Debug_glMapBuffer;
5787 if (!debug_fn.glMapBufferRangeFn) {
5788 debug_fn.glMapBufferRangeFn = fn.glMapBufferRangeFn;
5789 fn.glMapBufferRangeFn = Debug_glMapBufferRange;
5791 if (!debug_fn.glMatrixLoadfEXTFn) {
5792 debug_fn.glMatrixLoadfEXTFn = fn.glMatrixLoadfEXTFn;
5793 fn.glMatrixLoadfEXTFn = Debug_glMatrixLoadfEXT;
5795 if (!debug_fn.glMatrixLoadIdentityEXTFn) {
5796 debug_fn.glMatrixLoadIdentityEXTFn = fn.glMatrixLoadIdentityEXTFn;
5797 fn.glMatrixLoadIdentityEXTFn = Debug_glMatrixLoadIdentityEXT;
5799 if (!debug_fn.glPathCommandsNVFn) {
5800 debug_fn.glPathCommandsNVFn = fn.glPathCommandsNVFn;
5801 fn.glPathCommandsNVFn = Debug_glPathCommandsNV;
5803 if (!debug_fn.glPathParameterfNVFn) {
5804 debug_fn.glPathParameterfNVFn = fn.glPathParameterfNVFn;
5805 fn.glPathParameterfNVFn = Debug_glPathParameterfNV;
5807 if (!debug_fn.glPathParameteriNVFn) {
5808 debug_fn.glPathParameteriNVFn = fn.glPathParameteriNVFn;
5809 fn.glPathParameteriNVFn = Debug_glPathParameteriNV;
5811 if (!debug_fn.glPathStencilFuncNVFn) {
5812 debug_fn.glPathStencilFuncNVFn = fn.glPathStencilFuncNVFn;
5813 fn.glPathStencilFuncNVFn = Debug_glPathStencilFuncNV;
5815 if (!debug_fn.glPauseTransformFeedbackFn) {
5816 debug_fn.glPauseTransformFeedbackFn = fn.glPauseTransformFeedbackFn;
5817 fn.glPauseTransformFeedbackFn = Debug_glPauseTransformFeedback;
5819 if (!debug_fn.glPixelStoreiFn) {
5820 debug_fn.glPixelStoreiFn = fn.glPixelStoreiFn;
5821 fn.glPixelStoreiFn = Debug_glPixelStorei;
5823 if (!debug_fn.glPointParameteriFn) {
5824 debug_fn.glPointParameteriFn = fn.glPointParameteriFn;
5825 fn.glPointParameteriFn = Debug_glPointParameteri;
5827 if (!debug_fn.glPolygonOffsetFn) {
5828 debug_fn.glPolygonOffsetFn = fn.glPolygonOffsetFn;
5829 fn.glPolygonOffsetFn = Debug_glPolygonOffset;
5831 if (!debug_fn.glPopGroupMarkerEXTFn) {
5832 debug_fn.glPopGroupMarkerEXTFn = fn.glPopGroupMarkerEXTFn;
5833 fn.glPopGroupMarkerEXTFn = Debug_glPopGroupMarkerEXT;
5835 if (!debug_fn.glProgramBinaryFn) {
5836 debug_fn.glProgramBinaryFn = fn.glProgramBinaryFn;
5837 fn.glProgramBinaryFn = Debug_glProgramBinary;
5839 if (!debug_fn.glProgramParameteriFn) {
5840 debug_fn.glProgramParameteriFn = fn.glProgramParameteriFn;
5841 fn.glProgramParameteriFn = Debug_glProgramParameteri;
5843 if (!debug_fn.glPushGroupMarkerEXTFn) {
5844 debug_fn.glPushGroupMarkerEXTFn = fn.glPushGroupMarkerEXTFn;
5845 fn.glPushGroupMarkerEXTFn = Debug_glPushGroupMarkerEXT;
5847 if (!debug_fn.glQueryCounterFn) {
5848 debug_fn.glQueryCounterFn = fn.glQueryCounterFn;
5849 fn.glQueryCounterFn = Debug_glQueryCounter;
5851 if (!debug_fn.glReadBufferFn) {
5852 debug_fn.glReadBufferFn = fn.glReadBufferFn;
5853 fn.glReadBufferFn = Debug_glReadBuffer;
5855 if (!debug_fn.glReadPixelsFn) {
5856 debug_fn.glReadPixelsFn = fn.glReadPixelsFn;
5857 fn.glReadPixelsFn = Debug_glReadPixels;
5859 if (!debug_fn.glReleaseShaderCompilerFn) {
5860 debug_fn.glReleaseShaderCompilerFn = fn.glReleaseShaderCompilerFn;
5861 fn.glReleaseShaderCompilerFn = Debug_glReleaseShaderCompiler;
5863 if (!debug_fn.glRenderbufferStorageEXTFn) {
5864 debug_fn.glRenderbufferStorageEXTFn = fn.glRenderbufferStorageEXTFn;
5865 fn.glRenderbufferStorageEXTFn = Debug_glRenderbufferStorageEXT;
5867 if (!debug_fn.glRenderbufferStorageMultisampleFn) {
5868 debug_fn.glRenderbufferStorageMultisampleFn =
5869 fn.glRenderbufferStorageMultisampleFn;
5870 fn.glRenderbufferStorageMultisampleFn =
5871 Debug_glRenderbufferStorageMultisample;
5873 if (!debug_fn.glRenderbufferStorageMultisampleANGLEFn) {
5874 debug_fn.glRenderbufferStorageMultisampleANGLEFn =
5875 fn.glRenderbufferStorageMultisampleANGLEFn;
5876 fn.glRenderbufferStorageMultisampleANGLEFn =
5877 Debug_glRenderbufferStorageMultisampleANGLE;
5879 if (!debug_fn.glRenderbufferStorageMultisampleEXTFn) {
5880 debug_fn.glRenderbufferStorageMultisampleEXTFn =
5881 fn.glRenderbufferStorageMultisampleEXTFn;
5882 fn.glRenderbufferStorageMultisampleEXTFn =
5883 Debug_glRenderbufferStorageMultisampleEXT;
5885 if (!debug_fn.glRenderbufferStorageMultisampleIMGFn) {
5886 debug_fn.glRenderbufferStorageMultisampleIMGFn =
5887 fn.glRenderbufferStorageMultisampleIMGFn;
5888 fn.glRenderbufferStorageMultisampleIMGFn =
5889 Debug_glRenderbufferStorageMultisampleIMG;
5891 if (!debug_fn.glResumeTransformFeedbackFn) {
5892 debug_fn.glResumeTransformFeedbackFn = fn.glResumeTransformFeedbackFn;
5893 fn.glResumeTransformFeedbackFn = Debug_glResumeTransformFeedback;
5895 if (!debug_fn.glSampleCoverageFn) {
5896 debug_fn.glSampleCoverageFn = fn.glSampleCoverageFn;
5897 fn.glSampleCoverageFn = Debug_glSampleCoverage;
5899 if (!debug_fn.glSamplerParameterfFn) {
5900 debug_fn.glSamplerParameterfFn = fn.glSamplerParameterfFn;
5901 fn.glSamplerParameterfFn = Debug_glSamplerParameterf;
5903 if (!debug_fn.glSamplerParameterfvFn) {
5904 debug_fn.glSamplerParameterfvFn = fn.glSamplerParameterfvFn;
5905 fn.glSamplerParameterfvFn = Debug_glSamplerParameterfv;
5907 if (!debug_fn.glSamplerParameteriFn) {
5908 debug_fn.glSamplerParameteriFn = fn.glSamplerParameteriFn;
5909 fn.glSamplerParameteriFn = Debug_glSamplerParameteri;
5911 if (!debug_fn.glSamplerParameterivFn) {
5912 debug_fn.glSamplerParameterivFn = fn.glSamplerParameterivFn;
5913 fn.glSamplerParameterivFn = Debug_glSamplerParameteriv;
5915 if (!debug_fn.glScissorFn) {
5916 debug_fn.glScissorFn = fn.glScissorFn;
5917 fn.glScissorFn = Debug_glScissor;
5919 if (!debug_fn.glSetFenceAPPLEFn) {
5920 debug_fn.glSetFenceAPPLEFn = fn.glSetFenceAPPLEFn;
5921 fn.glSetFenceAPPLEFn = Debug_glSetFenceAPPLE;
5923 if (!debug_fn.glSetFenceNVFn) {
5924 debug_fn.glSetFenceNVFn = fn.glSetFenceNVFn;
5925 fn.glSetFenceNVFn = Debug_glSetFenceNV;
5927 if (!debug_fn.glShaderBinaryFn) {
5928 debug_fn.glShaderBinaryFn = fn.glShaderBinaryFn;
5929 fn.glShaderBinaryFn = Debug_glShaderBinary;
5931 if (!debug_fn.glShaderSourceFn) {
5932 debug_fn.glShaderSourceFn = fn.glShaderSourceFn;
5933 fn.glShaderSourceFn = Debug_glShaderSource;
5935 if (!debug_fn.glStencilFillPathNVFn) {
5936 debug_fn.glStencilFillPathNVFn = fn.glStencilFillPathNVFn;
5937 fn.glStencilFillPathNVFn = Debug_glStencilFillPathNV;
5939 if (!debug_fn.glStencilFuncFn) {
5940 debug_fn.glStencilFuncFn = fn.glStencilFuncFn;
5941 fn.glStencilFuncFn = Debug_glStencilFunc;
5943 if (!debug_fn.glStencilFuncSeparateFn) {
5944 debug_fn.glStencilFuncSeparateFn = fn.glStencilFuncSeparateFn;
5945 fn.glStencilFuncSeparateFn = Debug_glStencilFuncSeparate;
5947 if (!debug_fn.glStencilMaskFn) {
5948 debug_fn.glStencilMaskFn = fn.glStencilMaskFn;
5949 fn.glStencilMaskFn = Debug_glStencilMask;
5951 if (!debug_fn.glStencilMaskSeparateFn) {
5952 debug_fn.glStencilMaskSeparateFn = fn.glStencilMaskSeparateFn;
5953 fn.glStencilMaskSeparateFn = Debug_glStencilMaskSeparate;
5955 if (!debug_fn.glStencilOpFn) {
5956 debug_fn.glStencilOpFn = fn.glStencilOpFn;
5957 fn.glStencilOpFn = Debug_glStencilOp;
5959 if (!debug_fn.glStencilOpSeparateFn) {
5960 debug_fn.glStencilOpSeparateFn = fn.glStencilOpSeparateFn;
5961 fn.glStencilOpSeparateFn = Debug_glStencilOpSeparate;
5963 if (!debug_fn.glStencilStrokePathNVFn) {
5964 debug_fn.glStencilStrokePathNVFn = fn.glStencilStrokePathNVFn;
5965 fn.glStencilStrokePathNVFn = Debug_glStencilStrokePathNV;
5967 if (!debug_fn.glStencilThenCoverFillPathNVFn) {
5968 debug_fn.glStencilThenCoverFillPathNVFn = fn.glStencilThenCoverFillPathNVFn;
5969 fn.glStencilThenCoverFillPathNVFn = Debug_glStencilThenCoverFillPathNV;
5971 if (!debug_fn.glStencilThenCoverStrokePathNVFn) {
5972 debug_fn.glStencilThenCoverStrokePathNVFn =
5973 fn.glStencilThenCoverStrokePathNVFn;
5974 fn.glStencilThenCoverStrokePathNVFn = Debug_glStencilThenCoverStrokePathNV;
5976 if (!debug_fn.glTestFenceAPPLEFn) {
5977 debug_fn.glTestFenceAPPLEFn = fn.glTestFenceAPPLEFn;
5978 fn.glTestFenceAPPLEFn = Debug_glTestFenceAPPLE;
5980 if (!debug_fn.glTestFenceNVFn) {
5981 debug_fn.glTestFenceNVFn = fn.glTestFenceNVFn;
5982 fn.glTestFenceNVFn = Debug_glTestFenceNV;
5984 if (!debug_fn.glTexImage2DFn) {
5985 debug_fn.glTexImage2DFn = fn.glTexImage2DFn;
5986 fn.glTexImage2DFn = Debug_glTexImage2D;
5988 if (!debug_fn.glTexImage3DFn) {
5989 debug_fn.glTexImage3DFn = fn.glTexImage3DFn;
5990 fn.glTexImage3DFn = Debug_glTexImage3D;
5992 if (!debug_fn.glTexParameterfFn) {
5993 debug_fn.glTexParameterfFn = fn.glTexParameterfFn;
5994 fn.glTexParameterfFn = Debug_glTexParameterf;
5996 if (!debug_fn.glTexParameterfvFn) {
5997 debug_fn.glTexParameterfvFn = fn.glTexParameterfvFn;
5998 fn.glTexParameterfvFn = Debug_glTexParameterfv;
6000 if (!debug_fn.glTexParameteriFn) {
6001 debug_fn.glTexParameteriFn = fn.glTexParameteriFn;
6002 fn.glTexParameteriFn = Debug_glTexParameteri;
6004 if (!debug_fn.glTexParameterivFn) {
6005 debug_fn.glTexParameterivFn = fn.glTexParameterivFn;
6006 fn.glTexParameterivFn = Debug_glTexParameteriv;
6008 if (!debug_fn.glTexStorage2DEXTFn) {
6009 debug_fn.glTexStorage2DEXTFn = fn.glTexStorage2DEXTFn;
6010 fn.glTexStorage2DEXTFn = Debug_glTexStorage2DEXT;
6012 if (!debug_fn.glTexStorage3DFn) {
6013 debug_fn.glTexStorage3DFn = fn.glTexStorage3DFn;
6014 fn.glTexStorage3DFn = Debug_glTexStorage3D;
6016 if (!debug_fn.glTexSubImage2DFn) {
6017 debug_fn.glTexSubImage2DFn = fn.glTexSubImage2DFn;
6018 fn.glTexSubImage2DFn = Debug_glTexSubImage2D;
6020 if (!debug_fn.glTexSubImage3DFn) {
6021 debug_fn.glTexSubImage3DFn = fn.glTexSubImage3DFn;
6022 fn.glTexSubImage3DFn = Debug_glTexSubImage3D;
6024 if (!debug_fn.glTransformFeedbackVaryingsFn) {
6025 debug_fn.glTransformFeedbackVaryingsFn = fn.glTransformFeedbackVaryingsFn;
6026 fn.glTransformFeedbackVaryingsFn = Debug_glTransformFeedbackVaryings;
6028 if (!debug_fn.glUniform1fFn) {
6029 debug_fn.glUniform1fFn = fn.glUniform1fFn;
6030 fn.glUniform1fFn = Debug_glUniform1f;
6032 if (!debug_fn.glUniform1fvFn) {
6033 debug_fn.glUniform1fvFn = fn.glUniform1fvFn;
6034 fn.glUniform1fvFn = Debug_glUniform1fv;
6036 if (!debug_fn.glUniform1iFn) {
6037 debug_fn.glUniform1iFn = fn.glUniform1iFn;
6038 fn.glUniform1iFn = Debug_glUniform1i;
6040 if (!debug_fn.glUniform1ivFn) {
6041 debug_fn.glUniform1ivFn = fn.glUniform1ivFn;
6042 fn.glUniform1ivFn = Debug_glUniform1iv;
6044 if (!debug_fn.glUniform1uiFn) {
6045 debug_fn.glUniform1uiFn = fn.glUniform1uiFn;
6046 fn.glUniform1uiFn = Debug_glUniform1ui;
6048 if (!debug_fn.glUniform1uivFn) {
6049 debug_fn.glUniform1uivFn = fn.glUniform1uivFn;
6050 fn.glUniform1uivFn = Debug_glUniform1uiv;
6052 if (!debug_fn.glUniform2fFn) {
6053 debug_fn.glUniform2fFn = fn.glUniform2fFn;
6054 fn.glUniform2fFn = Debug_glUniform2f;
6056 if (!debug_fn.glUniform2fvFn) {
6057 debug_fn.glUniform2fvFn = fn.glUniform2fvFn;
6058 fn.glUniform2fvFn = Debug_glUniform2fv;
6060 if (!debug_fn.glUniform2iFn) {
6061 debug_fn.glUniform2iFn = fn.glUniform2iFn;
6062 fn.glUniform2iFn = Debug_glUniform2i;
6064 if (!debug_fn.glUniform2ivFn) {
6065 debug_fn.glUniform2ivFn = fn.glUniform2ivFn;
6066 fn.glUniform2ivFn = Debug_glUniform2iv;
6068 if (!debug_fn.glUniform2uiFn) {
6069 debug_fn.glUniform2uiFn = fn.glUniform2uiFn;
6070 fn.glUniform2uiFn = Debug_glUniform2ui;
6072 if (!debug_fn.glUniform2uivFn) {
6073 debug_fn.glUniform2uivFn = fn.glUniform2uivFn;
6074 fn.glUniform2uivFn = Debug_glUniform2uiv;
6076 if (!debug_fn.glUniform3fFn) {
6077 debug_fn.glUniform3fFn = fn.glUniform3fFn;
6078 fn.glUniform3fFn = Debug_glUniform3f;
6080 if (!debug_fn.glUniform3fvFn) {
6081 debug_fn.glUniform3fvFn = fn.glUniform3fvFn;
6082 fn.glUniform3fvFn = Debug_glUniform3fv;
6084 if (!debug_fn.glUniform3iFn) {
6085 debug_fn.glUniform3iFn = fn.glUniform3iFn;
6086 fn.glUniform3iFn = Debug_glUniform3i;
6088 if (!debug_fn.glUniform3ivFn) {
6089 debug_fn.glUniform3ivFn = fn.glUniform3ivFn;
6090 fn.glUniform3ivFn = Debug_glUniform3iv;
6092 if (!debug_fn.glUniform3uiFn) {
6093 debug_fn.glUniform3uiFn = fn.glUniform3uiFn;
6094 fn.glUniform3uiFn = Debug_glUniform3ui;
6096 if (!debug_fn.glUniform3uivFn) {
6097 debug_fn.glUniform3uivFn = fn.glUniform3uivFn;
6098 fn.glUniform3uivFn = Debug_glUniform3uiv;
6100 if (!debug_fn.glUniform4fFn) {
6101 debug_fn.glUniform4fFn = fn.glUniform4fFn;
6102 fn.glUniform4fFn = Debug_glUniform4f;
6104 if (!debug_fn.glUniform4fvFn) {
6105 debug_fn.glUniform4fvFn = fn.glUniform4fvFn;
6106 fn.glUniform4fvFn = Debug_glUniform4fv;
6108 if (!debug_fn.glUniform4iFn) {
6109 debug_fn.glUniform4iFn = fn.glUniform4iFn;
6110 fn.glUniform4iFn = Debug_glUniform4i;
6112 if (!debug_fn.glUniform4ivFn) {
6113 debug_fn.glUniform4ivFn = fn.glUniform4ivFn;
6114 fn.glUniform4ivFn = Debug_glUniform4iv;
6116 if (!debug_fn.glUniform4uiFn) {
6117 debug_fn.glUniform4uiFn = fn.glUniform4uiFn;
6118 fn.glUniform4uiFn = Debug_glUniform4ui;
6120 if (!debug_fn.glUniform4uivFn) {
6121 debug_fn.glUniform4uivFn = fn.glUniform4uivFn;
6122 fn.glUniform4uivFn = Debug_glUniform4uiv;
6124 if (!debug_fn.glUniformBlockBindingFn) {
6125 debug_fn.glUniformBlockBindingFn = fn.glUniformBlockBindingFn;
6126 fn.glUniformBlockBindingFn = Debug_glUniformBlockBinding;
6128 if (!debug_fn.glUniformMatrix2fvFn) {
6129 debug_fn.glUniformMatrix2fvFn = fn.glUniformMatrix2fvFn;
6130 fn.glUniformMatrix2fvFn = Debug_glUniformMatrix2fv;
6132 if (!debug_fn.glUniformMatrix2x3fvFn) {
6133 debug_fn.glUniformMatrix2x3fvFn = fn.glUniformMatrix2x3fvFn;
6134 fn.glUniformMatrix2x3fvFn = Debug_glUniformMatrix2x3fv;
6136 if (!debug_fn.glUniformMatrix2x4fvFn) {
6137 debug_fn.glUniformMatrix2x4fvFn = fn.glUniformMatrix2x4fvFn;
6138 fn.glUniformMatrix2x4fvFn = Debug_glUniformMatrix2x4fv;
6140 if (!debug_fn.glUniformMatrix3fvFn) {
6141 debug_fn.glUniformMatrix3fvFn = fn.glUniformMatrix3fvFn;
6142 fn.glUniformMatrix3fvFn = Debug_glUniformMatrix3fv;
6144 if (!debug_fn.glUniformMatrix3x2fvFn) {
6145 debug_fn.glUniformMatrix3x2fvFn = fn.glUniformMatrix3x2fvFn;
6146 fn.glUniformMatrix3x2fvFn = Debug_glUniformMatrix3x2fv;
6148 if (!debug_fn.glUniformMatrix3x4fvFn) {
6149 debug_fn.glUniformMatrix3x4fvFn = fn.glUniformMatrix3x4fvFn;
6150 fn.glUniformMatrix3x4fvFn = Debug_glUniformMatrix3x4fv;
6152 if (!debug_fn.glUniformMatrix4fvFn) {
6153 debug_fn.glUniformMatrix4fvFn = fn.glUniformMatrix4fvFn;
6154 fn.glUniformMatrix4fvFn = Debug_glUniformMatrix4fv;
6156 if (!debug_fn.glUniformMatrix4x2fvFn) {
6157 debug_fn.glUniformMatrix4x2fvFn = fn.glUniformMatrix4x2fvFn;
6158 fn.glUniformMatrix4x2fvFn = Debug_glUniformMatrix4x2fv;
6160 if (!debug_fn.glUniformMatrix4x3fvFn) {
6161 debug_fn.glUniformMatrix4x3fvFn = fn.glUniformMatrix4x3fvFn;
6162 fn.glUniformMatrix4x3fvFn = Debug_glUniformMatrix4x3fv;
6164 if (!debug_fn.glUnmapBufferFn) {
6165 debug_fn.glUnmapBufferFn = fn.glUnmapBufferFn;
6166 fn.glUnmapBufferFn = Debug_glUnmapBuffer;
6168 if (!debug_fn.glUseProgramFn) {
6169 debug_fn.glUseProgramFn = fn.glUseProgramFn;
6170 fn.glUseProgramFn = Debug_glUseProgram;
6172 if (!debug_fn.glValidateProgramFn) {
6173 debug_fn.glValidateProgramFn = fn.glValidateProgramFn;
6174 fn.glValidateProgramFn = Debug_glValidateProgram;
6176 if (!debug_fn.glVertexAttrib1fFn) {
6177 debug_fn.glVertexAttrib1fFn = fn.glVertexAttrib1fFn;
6178 fn.glVertexAttrib1fFn = Debug_glVertexAttrib1f;
6180 if (!debug_fn.glVertexAttrib1fvFn) {
6181 debug_fn.glVertexAttrib1fvFn = fn.glVertexAttrib1fvFn;
6182 fn.glVertexAttrib1fvFn = Debug_glVertexAttrib1fv;
6184 if (!debug_fn.glVertexAttrib2fFn) {
6185 debug_fn.glVertexAttrib2fFn = fn.glVertexAttrib2fFn;
6186 fn.glVertexAttrib2fFn = Debug_glVertexAttrib2f;
6188 if (!debug_fn.glVertexAttrib2fvFn) {
6189 debug_fn.glVertexAttrib2fvFn = fn.glVertexAttrib2fvFn;
6190 fn.glVertexAttrib2fvFn = Debug_glVertexAttrib2fv;
6192 if (!debug_fn.glVertexAttrib3fFn) {
6193 debug_fn.glVertexAttrib3fFn = fn.glVertexAttrib3fFn;
6194 fn.glVertexAttrib3fFn = Debug_glVertexAttrib3f;
6196 if (!debug_fn.glVertexAttrib3fvFn) {
6197 debug_fn.glVertexAttrib3fvFn = fn.glVertexAttrib3fvFn;
6198 fn.glVertexAttrib3fvFn = Debug_glVertexAttrib3fv;
6200 if (!debug_fn.glVertexAttrib4fFn) {
6201 debug_fn.glVertexAttrib4fFn = fn.glVertexAttrib4fFn;
6202 fn.glVertexAttrib4fFn = Debug_glVertexAttrib4f;
6204 if (!debug_fn.glVertexAttrib4fvFn) {
6205 debug_fn.glVertexAttrib4fvFn = fn.glVertexAttrib4fvFn;
6206 fn.glVertexAttrib4fvFn = Debug_glVertexAttrib4fv;
6208 if (!debug_fn.glVertexAttribDivisorANGLEFn) {
6209 debug_fn.glVertexAttribDivisorANGLEFn = fn.glVertexAttribDivisorANGLEFn;
6210 fn.glVertexAttribDivisorANGLEFn = Debug_glVertexAttribDivisorANGLE;
6212 if (!debug_fn.glVertexAttribI4iFn) {
6213 debug_fn.glVertexAttribI4iFn = fn.glVertexAttribI4iFn;
6214 fn.glVertexAttribI4iFn = Debug_glVertexAttribI4i;
6216 if (!debug_fn.glVertexAttribI4ivFn) {
6217 debug_fn.glVertexAttribI4ivFn = fn.glVertexAttribI4ivFn;
6218 fn.glVertexAttribI4ivFn = Debug_glVertexAttribI4iv;
6220 if (!debug_fn.glVertexAttribI4uiFn) {
6221 debug_fn.glVertexAttribI4uiFn = fn.glVertexAttribI4uiFn;
6222 fn.glVertexAttribI4uiFn = Debug_glVertexAttribI4ui;
6224 if (!debug_fn.glVertexAttribI4uivFn) {
6225 debug_fn.glVertexAttribI4uivFn = fn.glVertexAttribI4uivFn;
6226 fn.glVertexAttribI4uivFn = Debug_glVertexAttribI4uiv;
6228 if (!debug_fn.glVertexAttribIPointerFn) {
6229 debug_fn.glVertexAttribIPointerFn = fn.glVertexAttribIPointerFn;
6230 fn.glVertexAttribIPointerFn = Debug_glVertexAttribIPointer;
6232 if (!debug_fn.glVertexAttribPointerFn) {
6233 debug_fn.glVertexAttribPointerFn = fn.glVertexAttribPointerFn;
6234 fn.glVertexAttribPointerFn = Debug_glVertexAttribPointer;
6236 if (!debug_fn.glViewportFn) {
6237 debug_fn.glViewportFn = fn.glViewportFn;
6238 fn.glViewportFn = Debug_glViewport;
6240 if (!debug_fn.glWaitSyncFn) {
6241 debug_fn.glWaitSyncFn = fn.glWaitSyncFn;
6242 fn.glWaitSyncFn = Debug_glWaitSync;
6244 g_debugBindingsInitialized = true;
6247 void DriverGL::ClearBindings() {
6248 memset(this, 0, sizeof(*this));
6251 void GLApiBase::glActiveTextureFn(GLenum texture) {
6252 driver_->fn.glActiveTextureFn(texture);
6255 void GLApiBase::glAttachShaderFn(GLuint program, GLuint shader) {
6256 driver_->fn.glAttachShaderFn(program, shader);
6259 void GLApiBase::glBeginQueryFn(GLenum target, GLuint id) {
6260 driver_->fn.glBeginQueryFn(target, id);
6263 void GLApiBase::glBeginTransformFeedbackFn(GLenum primitiveMode) {
6264 driver_->fn.glBeginTransformFeedbackFn(primitiveMode);
6267 void GLApiBase::glBindAttribLocationFn(GLuint program,
6268 GLuint index,
6269 const char* name) {
6270 driver_->fn.glBindAttribLocationFn(program, index, name);
6273 void GLApiBase::glBindBufferFn(GLenum target, GLuint buffer) {
6274 driver_->fn.glBindBufferFn(target, buffer);
6277 void GLApiBase::glBindBufferBaseFn(GLenum target, GLuint index, GLuint buffer) {
6278 driver_->fn.glBindBufferBaseFn(target, index, buffer);
6281 void GLApiBase::glBindBufferRangeFn(GLenum target,
6282 GLuint index,
6283 GLuint buffer,
6284 GLintptr offset,
6285 GLsizeiptr size) {
6286 driver_->fn.glBindBufferRangeFn(target, index, buffer, offset, size);
6289 void GLApiBase::glBindFragDataLocationFn(GLuint program,
6290 GLuint colorNumber,
6291 const char* name) {
6292 driver_->fn.glBindFragDataLocationFn(program, colorNumber, name);
6295 void GLApiBase::glBindFragDataLocationIndexedFn(GLuint program,
6296 GLuint colorNumber,
6297 GLuint index,
6298 const char* name) {
6299 driver_->fn.glBindFragDataLocationIndexedFn(program, colorNumber, index,
6300 name);
6303 void GLApiBase::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
6304 driver_->fn.glBindFramebufferEXTFn(target, framebuffer);
6307 void GLApiBase::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
6308 driver_->fn.glBindRenderbufferEXTFn(target, renderbuffer);
6311 void GLApiBase::glBindSamplerFn(GLuint unit, GLuint sampler) {
6312 driver_->fn.glBindSamplerFn(unit, sampler);
6315 void GLApiBase::glBindTextureFn(GLenum target, GLuint texture) {
6316 driver_->fn.glBindTextureFn(target, texture);
6319 void GLApiBase::glBindTransformFeedbackFn(GLenum target, GLuint id) {
6320 driver_->fn.glBindTransformFeedbackFn(target, id);
6323 void GLApiBase::glBindVertexArrayOESFn(GLuint array) {
6324 driver_->fn.glBindVertexArrayOESFn(array);
6327 void GLApiBase::glBlendBarrierKHRFn(void) {
6328 driver_->fn.glBlendBarrierKHRFn();
6331 void GLApiBase::glBlendColorFn(GLclampf red,
6332 GLclampf green,
6333 GLclampf blue,
6334 GLclampf alpha) {
6335 driver_->fn.glBlendColorFn(red, green, blue, alpha);
6338 void GLApiBase::glBlendEquationFn(GLenum mode) {
6339 driver_->fn.glBlendEquationFn(mode);
6342 void GLApiBase::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
6343 driver_->fn.glBlendEquationSeparateFn(modeRGB, modeAlpha);
6346 void GLApiBase::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
6347 driver_->fn.glBlendFuncFn(sfactor, dfactor);
6350 void GLApiBase::glBlendFuncSeparateFn(GLenum srcRGB,
6351 GLenum dstRGB,
6352 GLenum srcAlpha,
6353 GLenum dstAlpha) {
6354 driver_->fn.glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
6357 void GLApiBase::glBlitFramebufferFn(GLint srcX0,
6358 GLint srcY0,
6359 GLint srcX1,
6360 GLint srcY1,
6361 GLint dstX0,
6362 GLint dstY0,
6363 GLint dstX1,
6364 GLint dstY1,
6365 GLbitfield mask,
6366 GLenum filter) {
6367 driver_->fn.glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6368 dstX1, dstY1, mask, filter);
6371 void GLApiBase::glBlitFramebufferANGLEFn(GLint srcX0,
6372 GLint srcY0,
6373 GLint srcX1,
6374 GLint srcY1,
6375 GLint dstX0,
6376 GLint dstY0,
6377 GLint dstX1,
6378 GLint dstY1,
6379 GLbitfield mask,
6380 GLenum filter) {
6381 driver_->fn.glBlitFramebufferANGLEFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6382 dstX1, dstY1, mask, filter);
6385 void GLApiBase::glBlitFramebufferEXTFn(GLint srcX0,
6386 GLint srcY0,
6387 GLint srcX1,
6388 GLint srcY1,
6389 GLint dstX0,
6390 GLint dstY0,
6391 GLint dstX1,
6392 GLint dstY1,
6393 GLbitfield mask,
6394 GLenum filter) {
6395 driver_->fn.glBlitFramebufferEXTFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6396 dstX1, dstY1, mask, filter);
6399 void GLApiBase::glBufferDataFn(GLenum target,
6400 GLsizeiptr size,
6401 const void* data,
6402 GLenum usage) {
6403 driver_->fn.glBufferDataFn(target, size, data, usage);
6406 void GLApiBase::glBufferSubDataFn(GLenum target,
6407 GLintptr offset,
6408 GLsizeiptr size,
6409 const void* data) {
6410 driver_->fn.glBufferSubDataFn(target, offset, size, data);
6413 GLenum GLApiBase::glCheckFramebufferStatusEXTFn(GLenum target) {
6414 return driver_->fn.glCheckFramebufferStatusEXTFn(target);
6417 void GLApiBase::glClearFn(GLbitfield mask) {
6418 driver_->fn.glClearFn(mask);
6421 void GLApiBase::glClearBufferfiFn(GLenum buffer,
6422 GLint drawbuffer,
6423 const GLfloat depth,
6424 GLint stencil) {
6425 driver_->fn.glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
6428 void GLApiBase::glClearBufferfvFn(GLenum buffer,
6429 GLint drawbuffer,
6430 const GLfloat* value) {
6431 driver_->fn.glClearBufferfvFn(buffer, drawbuffer, value);
6434 void GLApiBase::glClearBufferivFn(GLenum buffer,
6435 GLint drawbuffer,
6436 const GLint* value) {
6437 driver_->fn.glClearBufferivFn(buffer, drawbuffer, value);
6440 void GLApiBase::glClearBufferuivFn(GLenum buffer,
6441 GLint drawbuffer,
6442 const GLuint* value) {
6443 driver_->fn.glClearBufferuivFn(buffer, drawbuffer, value);
6446 void GLApiBase::glClearColorFn(GLclampf red,
6447 GLclampf green,
6448 GLclampf blue,
6449 GLclampf alpha) {
6450 driver_->fn.glClearColorFn(red, green, blue, alpha);
6453 void GLApiBase::glClearDepthFn(GLclampd depth) {
6454 driver_->fn.glClearDepthFn(depth);
6457 void GLApiBase::glClearDepthfFn(GLclampf depth) {
6458 driver_->fn.glClearDepthfFn(depth);
6461 void GLApiBase::glClearStencilFn(GLint s) {
6462 driver_->fn.glClearStencilFn(s);
6465 GLenum GLApiBase::glClientWaitSyncFn(GLsync sync,
6466 GLbitfield flags,
6467 GLuint64 timeout) {
6468 return driver_->fn.glClientWaitSyncFn(sync, flags, timeout);
6471 void GLApiBase::glColorMaskFn(GLboolean red,
6472 GLboolean green,
6473 GLboolean blue,
6474 GLboolean alpha) {
6475 driver_->fn.glColorMaskFn(red, green, blue, alpha);
6478 void GLApiBase::glCompileShaderFn(GLuint shader) {
6479 driver_->fn.glCompileShaderFn(shader);
6482 void GLApiBase::glCompressedTexImage2DFn(GLenum target,
6483 GLint level,
6484 GLenum internalformat,
6485 GLsizei width,
6486 GLsizei height,
6487 GLint border,
6488 GLsizei imageSize,
6489 const void* data) {
6490 driver_->fn.glCompressedTexImage2DFn(target, level, internalformat, width,
6491 height, border, imageSize, data);
6494 void GLApiBase::glCompressedTexImage3DFn(GLenum target,
6495 GLint level,
6496 GLenum internalformat,
6497 GLsizei width,
6498 GLsizei height,
6499 GLsizei depth,
6500 GLint border,
6501 GLsizei imageSize,
6502 const void* data) {
6503 driver_->fn.glCompressedTexImage3DFn(target, level, internalformat, width,
6504 height, depth, border, imageSize, data);
6507 void GLApiBase::glCompressedTexSubImage2DFn(GLenum target,
6508 GLint level,
6509 GLint xoffset,
6510 GLint yoffset,
6511 GLsizei width,
6512 GLsizei height,
6513 GLenum format,
6514 GLsizei imageSize,
6515 const void* data) {
6516 driver_->fn.glCompressedTexSubImage2DFn(
6517 target, level, xoffset, yoffset, width, height, format, imageSize, data);
6520 void GLApiBase::glCompressedTexSubImage3DFn(GLenum target,
6521 GLint level,
6522 GLint xoffset,
6523 GLint yoffset,
6524 GLint zoffset,
6525 GLsizei width,
6526 GLsizei height,
6527 GLsizei depth,
6528 GLenum format,
6529 GLsizei imageSize,
6530 const void* data) {
6531 driver_->fn.glCompressedTexSubImage3DFn(target, level, xoffset, yoffset,
6532 zoffset, width, height, depth, format,
6533 imageSize, data);
6536 void GLApiBase::glCopyBufferSubDataFn(GLenum readTarget,
6537 GLenum writeTarget,
6538 GLintptr readOffset,
6539 GLintptr writeOffset,
6540 GLsizeiptr size) {
6541 driver_->fn.glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
6542 writeOffset, size);
6545 void GLApiBase::glCopyTexImage2DFn(GLenum target,
6546 GLint level,
6547 GLenum internalformat,
6548 GLint x,
6549 GLint y,
6550 GLsizei width,
6551 GLsizei height,
6552 GLint border) {
6553 driver_->fn.glCopyTexImage2DFn(target, level, internalformat, x, y, width,
6554 height, border);
6557 void GLApiBase::glCopyTexSubImage2DFn(GLenum target,
6558 GLint level,
6559 GLint xoffset,
6560 GLint yoffset,
6561 GLint x,
6562 GLint y,
6563 GLsizei width,
6564 GLsizei height) {
6565 driver_->fn.glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y,
6566 width, height);
6569 void GLApiBase::glCopyTexSubImage3DFn(GLenum target,
6570 GLint level,
6571 GLint xoffset,
6572 GLint yoffset,
6573 GLint zoffset,
6574 GLint x,
6575 GLint y,
6576 GLsizei width,
6577 GLsizei height) {
6578 driver_->fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x,
6579 y, width, height);
6582 void GLApiBase::glCoverFillPathNVFn(GLuint path, GLenum coverMode) {
6583 driver_->fn.glCoverFillPathNVFn(path, coverMode);
6586 void GLApiBase::glCoverStrokePathNVFn(GLuint name, GLenum coverMode) {
6587 driver_->fn.glCoverStrokePathNVFn(name, coverMode);
6590 GLuint GLApiBase::glCreateProgramFn(void) {
6591 return driver_->fn.glCreateProgramFn();
6594 GLuint GLApiBase::glCreateShaderFn(GLenum type) {
6595 return driver_->fn.glCreateShaderFn(type);
6598 void GLApiBase::glCullFaceFn(GLenum mode) {
6599 driver_->fn.glCullFaceFn(mode);
6602 void GLApiBase::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
6603 driver_->fn.glDeleteBuffersARBFn(n, buffers);
6606 void GLApiBase::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
6607 driver_->fn.glDeleteFencesAPPLEFn(n, fences);
6610 void GLApiBase::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
6611 driver_->fn.glDeleteFencesNVFn(n, fences);
6614 void GLApiBase::glDeleteFramebuffersEXTFn(GLsizei n,
6615 const GLuint* framebuffers) {
6616 driver_->fn.glDeleteFramebuffersEXTFn(n, framebuffers);
6619 void GLApiBase::glDeletePathsNVFn(GLuint path, GLsizei range) {
6620 driver_->fn.glDeletePathsNVFn(path, range);
6623 void GLApiBase::glDeleteProgramFn(GLuint program) {
6624 driver_->fn.glDeleteProgramFn(program);
6627 void GLApiBase::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
6628 driver_->fn.glDeleteQueriesFn(n, ids);
6631 void GLApiBase::glDeleteRenderbuffersEXTFn(GLsizei n,
6632 const GLuint* renderbuffers) {
6633 driver_->fn.glDeleteRenderbuffersEXTFn(n, renderbuffers);
6636 void GLApiBase::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
6637 driver_->fn.glDeleteSamplersFn(n, samplers);
6640 void GLApiBase::glDeleteShaderFn(GLuint shader) {
6641 driver_->fn.glDeleteShaderFn(shader);
6644 void GLApiBase::glDeleteSyncFn(GLsync sync) {
6645 driver_->fn.glDeleteSyncFn(sync);
6648 void GLApiBase::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
6649 driver_->fn.glDeleteTexturesFn(n, textures);
6652 void GLApiBase::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
6653 driver_->fn.glDeleteTransformFeedbacksFn(n, ids);
6656 void GLApiBase::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
6657 driver_->fn.glDeleteVertexArraysOESFn(n, arrays);
6660 void GLApiBase::glDepthFuncFn(GLenum func) {
6661 driver_->fn.glDepthFuncFn(func);
6664 void GLApiBase::glDepthMaskFn(GLboolean flag) {
6665 driver_->fn.glDepthMaskFn(flag);
6668 void GLApiBase::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
6669 driver_->fn.glDepthRangeFn(zNear, zFar);
6672 void GLApiBase::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
6673 driver_->fn.glDepthRangefFn(zNear, zFar);
6676 void GLApiBase::glDetachShaderFn(GLuint program, GLuint shader) {
6677 driver_->fn.glDetachShaderFn(program, shader);
6680 void GLApiBase::glDisableFn(GLenum cap) {
6681 driver_->fn.glDisableFn(cap);
6684 void GLApiBase::glDisableVertexAttribArrayFn(GLuint index) {
6685 driver_->fn.glDisableVertexAttribArrayFn(index);
6688 void GLApiBase::glDiscardFramebufferEXTFn(GLenum target,
6689 GLsizei numAttachments,
6690 const GLenum* attachments) {
6691 driver_->fn.glDiscardFramebufferEXTFn(target, numAttachments, attachments);
6694 void GLApiBase::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
6695 driver_->fn.glDrawArraysFn(mode, first, count);
6698 void GLApiBase::glDrawArraysInstancedANGLEFn(GLenum mode,
6699 GLint first,
6700 GLsizei count,
6701 GLsizei primcount) {
6702 driver_->fn.glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
6705 void GLApiBase::glDrawBufferFn(GLenum mode) {
6706 driver_->fn.glDrawBufferFn(mode);
6709 void GLApiBase::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
6710 driver_->fn.glDrawBuffersARBFn(n, bufs);
6713 void GLApiBase::glDrawElementsFn(GLenum mode,
6714 GLsizei count,
6715 GLenum type,
6716 const void* indices) {
6717 driver_->fn.glDrawElementsFn(mode, count, type, indices);
6720 void GLApiBase::glDrawElementsInstancedANGLEFn(GLenum mode,
6721 GLsizei count,
6722 GLenum type,
6723 const void* indices,
6724 GLsizei primcount) {
6725 driver_->fn.glDrawElementsInstancedANGLEFn(mode, count, type, indices,
6726 primcount);
6729 void GLApiBase::glDrawRangeElementsFn(GLenum mode,
6730 GLuint start,
6731 GLuint end,
6732 GLsizei count,
6733 GLenum type,
6734 const void* indices) {
6735 driver_->fn.glDrawRangeElementsFn(mode, start, end, count, type, indices);
6738 void GLApiBase::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
6739 GLeglImageOES image) {
6740 driver_->fn.glEGLImageTargetRenderbufferStorageOESFn(target, image);
6743 void GLApiBase::glEGLImageTargetTexture2DOESFn(GLenum target,
6744 GLeglImageOES image) {
6745 driver_->fn.glEGLImageTargetTexture2DOESFn(target, image);
6748 void GLApiBase::glEnableFn(GLenum cap) {
6749 driver_->fn.glEnableFn(cap);
6752 void GLApiBase::glEnableVertexAttribArrayFn(GLuint index) {
6753 driver_->fn.glEnableVertexAttribArrayFn(index);
6756 void GLApiBase::glEndQueryFn(GLenum target) {
6757 driver_->fn.glEndQueryFn(target);
6760 void GLApiBase::glEndTransformFeedbackFn(void) {
6761 driver_->fn.glEndTransformFeedbackFn();
6764 GLsync GLApiBase::glFenceSyncFn(GLenum condition, GLbitfield flags) {
6765 return driver_->fn.glFenceSyncFn(condition, flags);
6768 void GLApiBase::glFinishFn(void) {
6769 driver_->fn.glFinishFn();
6772 void GLApiBase::glFinishFenceAPPLEFn(GLuint fence) {
6773 driver_->fn.glFinishFenceAPPLEFn(fence);
6776 void GLApiBase::glFinishFenceNVFn(GLuint fence) {
6777 driver_->fn.glFinishFenceNVFn(fence);
6780 void GLApiBase::glFlushFn(void) {
6781 driver_->fn.glFlushFn();
6784 void GLApiBase::glFlushMappedBufferRangeFn(GLenum target,
6785 GLintptr offset,
6786 GLsizeiptr length) {
6787 driver_->fn.glFlushMappedBufferRangeFn(target, offset, length);
6790 void GLApiBase::glFramebufferRenderbufferEXTFn(GLenum target,
6791 GLenum attachment,
6792 GLenum renderbuffertarget,
6793 GLuint renderbuffer) {
6794 driver_->fn.glFramebufferRenderbufferEXTFn(target, attachment,
6795 renderbuffertarget, renderbuffer);
6798 void GLApiBase::glFramebufferTexture2DEXTFn(GLenum target,
6799 GLenum attachment,
6800 GLenum textarget,
6801 GLuint texture,
6802 GLint level) {
6803 driver_->fn.glFramebufferTexture2DEXTFn(target, attachment, textarget,
6804 texture, level);
6807 void GLApiBase::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
6808 GLenum attachment,
6809 GLenum textarget,
6810 GLuint texture,
6811 GLint level,
6812 GLsizei samples) {
6813 driver_->fn.glFramebufferTexture2DMultisampleEXTFn(
6814 target, attachment, textarget, texture, level, samples);
6817 void GLApiBase::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
6818 GLenum attachment,
6819 GLenum textarget,
6820 GLuint texture,
6821 GLint level,
6822 GLsizei samples) {
6823 driver_->fn.glFramebufferTexture2DMultisampleIMGFn(
6824 target, attachment, textarget, texture, level, samples);
6827 void GLApiBase::glFramebufferTextureLayerFn(GLenum target,
6828 GLenum attachment,
6829 GLuint texture,
6830 GLint level,
6831 GLint layer) {
6832 driver_->fn.glFramebufferTextureLayerFn(target, attachment, texture, level,
6833 layer);
6836 void GLApiBase::glFrontFaceFn(GLenum mode) {
6837 driver_->fn.glFrontFaceFn(mode);
6840 void GLApiBase::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
6841 driver_->fn.glGenBuffersARBFn(n, buffers);
6844 void GLApiBase::glGenerateMipmapEXTFn(GLenum target) {
6845 driver_->fn.glGenerateMipmapEXTFn(target);
6848 void GLApiBase::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
6849 driver_->fn.glGenFencesAPPLEFn(n, fences);
6852 void GLApiBase::glGenFencesNVFn(GLsizei n, GLuint* fences) {
6853 driver_->fn.glGenFencesNVFn(n, fences);
6856 void GLApiBase::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
6857 driver_->fn.glGenFramebuffersEXTFn(n, framebuffers);
6860 GLuint GLApiBase::glGenPathsNVFn(GLsizei range) {
6861 return driver_->fn.glGenPathsNVFn(range);
6864 void GLApiBase::glGenQueriesFn(GLsizei n, GLuint* ids) {
6865 driver_->fn.glGenQueriesFn(n, ids);
6868 void GLApiBase::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
6869 driver_->fn.glGenRenderbuffersEXTFn(n, renderbuffers);
6872 void GLApiBase::glGenSamplersFn(GLsizei n, GLuint* samplers) {
6873 driver_->fn.glGenSamplersFn(n, samplers);
6876 void GLApiBase::glGenTexturesFn(GLsizei n, GLuint* textures) {
6877 driver_->fn.glGenTexturesFn(n, textures);
6880 void GLApiBase::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
6881 driver_->fn.glGenTransformFeedbacksFn(n, ids);
6884 void GLApiBase::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
6885 driver_->fn.glGenVertexArraysOESFn(n, arrays);
6888 void GLApiBase::glGetActiveAttribFn(GLuint program,
6889 GLuint index,
6890 GLsizei bufsize,
6891 GLsizei* length,
6892 GLint* size,
6893 GLenum* type,
6894 char* name) {
6895 driver_->fn.glGetActiveAttribFn(program, index, bufsize, length, size, type,
6896 name);
6899 void GLApiBase::glGetActiveUniformFn(GLuint program,
6900 GLuint index,
6901 GLsizei bufsize,
6902 GLsizei* length,
6903 GLint* size,
6904 GLenum* type,
6905 char* name) {
6906 driver_->fn.glGetActiveUniformFn(program, index, bufsize, length, size, type,
6907 name);
6910 void GLApiBase::glGetActiveUniformBlockivFn(GLuint program,
6911 GLuint uniformBlockIndex,
6912 GLenum pname,
6913 GLint* params) {
6914 driver_->fn.glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
6915 params);
6918 void GLApiBase::glGetActiveUniformBlockNameFn(GLuint program,
6919 GLuint uniformBlockIndex,
6920 GLsizei bufSize,
6921 GLsizei* length,
6922 char* uniformBlockName) {
6923 driver_->fn.glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
6924 length, uniformBlockName);
6927 void GLApiBase::glGetActiveUniformsivFn(GLuint program,
6928 GLsizei uniformCount,
6929 const GLuint* uniformIndices,
6930 GLenum pname,
6931 GLint* params) {
6932 driver_->fn.glGetActiveUniformsivFn(program, uniformCount, uniformIndices,
6933 pname, params);
6936 void GLApiBase::glGetAttachedShadersFn(GLuint program,
6937 GLsizei maxcount,
6938 GLsizei* count,
6939 GLuint* shaders) {
6940 driver_->fn.glGetAttachedShadersFn(program, maxcount, count, shaders);
6943 GLint GLApiBase::glGetAttribLocationFn(GLuint program, const char* name) {
6944 return driver_->fn.glGetAttribLocationFn(program, name);
6947 void GLApiBase::glGetBooleanvFn(GLenum pname, GLboolean* params) {
6948 driver_->fn.glGetBooleanvFn(pname, params);
6951 void GLApiBase::glGetBufferParameterivFn(GLenum target,
6952 GLenum pname,
6953 GLint* params) {
6954 driver_->fn.glGetBufferParameterivFn(target, pname, params);
6957 GLenum GLApiBase::glGetErrorFn(void) {
6958 return driver_->fn.glGetErrorFn();
6961 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
6962 driver_->fn.glGetFenceivNVFn(fence, pname, params);
6965 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) {
6966 driver_->fn.glGetFloatvFn(pname, params);
6969 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) {
6970 return driver_->fn.glGetFragDataLocationFn(program, name);
6973 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
6974 GLenum attachment,
6975 GLenum pname,
6976 GLint* params) {
6977 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment,
6978 pname, params);
6981 GLenum GLApiBase::glGetGraphicsResetStatusARBFn(void) {
6982 return driver_->fn.glGetGraphicsResetStatusARBFn();
6985 void GLApiBase::glGetInteger64i_vFn(GLenum target,
6986 GLuint index,
6987 GLint64* data) {
6988 driver_->fn.glGetInteger64i_vFn(target, index, data);
6991 void GLApiBase::glGetInteger64vFn(GLenum pname, GLint64* params) {
6992 driver_->fn.glGetInteger64vFn(pname, params);
6995 void GLApiBase::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
6996 driver_->fn.glGetIntegeri_vFn(target, index, data);
6999 void GLApiBase::glGetIntegervFn(GLenum pname, GLint* params) {
7000 driver_->fn.glGetIntegervFn(pname, params);
7003 void GLApiBase::glGetInternalformativFn(GLenum target,
7004 GLenum internalformat,
7005 GLenum pname,
7006 GLsizei bufSize,
7007 GLint* params) {
7008 driver_->fn.glGetInternalformativFn(target, internalformat, pname, bufSize,
7009 params);
7012 void GLApiBase::glGetProgramBinaryFn(GLuint program,
7013 GLsizei bufSize,
7014 GLsizei* length,
7015 GLenum* binaryFormat,
7016 GLvoid* binary) {
7017 driver_->fn.glGetProgramBinaryFn(program, bufSize, length, binaryFormat,
7018 binary);
7021 void GLApiBase::glGetProgramInfoLogFn(GLuint program,
7022 GLsizei bufsize,
7023 GLsizei* length,
7024 char* infolog) {
7025 driver_->fn.glGetProgramInfoLogFn(program, bufsize, length, infolog);
7028 void GLApiBase::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
7029 driver_->fn.glGetProgramivFn(program, pname, params);
7032 GLint GLApiBase::glGetProgramResourceLocationFn(GLuint program,
7033 GLenum programInterface,
7034 const char* name) {
7035 return driver_->fn.glGetProgramResourceLocationFn(program, programInterface,
7036 name);
7039 void GLApiBase::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
7040 driver_->fn.glGetQueryivFn(target, pname, params);
7043 void GLApiBase::glGetQueryObjecti64vFn(GLuint id,
7044 GLenum pname,
7045 GLint64* params) {
7046 driver_->fn.glGetQueryObjecti64vFn(id, pname, params);
7049 void GLApiBase::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
7050 driver_->fn.glGetQueryObjectivFn(id, pname, params);
7053 void GLApiBase::glGetQueryObjectui64vFn(GLuint id,
7054 GLenum pname,
7055 GLuint64* params) {
7056 driver_->fn.glGetQueryObjectui64vFn(id, pname, params);
7059 void GLApiBase::glGetQueryObjectuivFn(GLuint id, GLenum pname, GLuint* params) {
7060 driver_->fn.glGetQueryObjectuivFn(id, pname, params);
7063 void GLApiBase::glGetRenderbufferParameterivEXTFn(GLenum target,
7064 GLenum pname,
7065 GLint* params) {
7066 driver_->fn.glGetRenderbufferParameterivEXTFn(target, pname, params);
7069 void GLApiBase::glGetSamplerParameterfvFn(GLuint sampler,
7070 GLenum pname,
7071 GLfloat* params) {
7072 driver_->fn.glGetSamplerParameterfvFn(sampler, pname, params);
7075 void GLApiBase::glGetSamplerParameterivFn(GLuint sampler,
7076 GLenum pname,
7077 GLint* params) {
7078 driver_->fn.glGetSamplerParameterivFn(sampler, pname, params);
7081 void GLApiBase::glGetShaderInfoLogFn(GLuint shader,
7082 GLsizei bufsize,
7083 GLsizei* length,
7084 char* infolog) {
7085 driver_->fn.glGetShaderInfoLogFn(shader, bufsize, length, infolog);
7088 void GLApiBase::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
7089 driver_->fn.glGetShaderivFn(shader, pname, params);
7092 void GLApiBase::glGetShaderPrecisionFormatFn(GLenum shadertype,
7093 GLenum precisiontype,
7094 GLint* range,
7095 GLint* precision) {
7096 driver_->fn.glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
7097 precision);
7100 void GLApiBase::glGetShaderSourceFn(GLuint shader,
7101 GLsizei bufsize,
7102 GLsizei* length,
7103 char* source) {
7104 driver_->fn.glGetShaderSourceFn(shader, bufsize, length, source);
7107 const GLubyte* GLApiBase::glGetStringFn(GLenum name) {
7108 return driver_->fn.glGetStringFn(name);
7111 const GLubyte* GLApiBase::glGetStringiFn(GLenum name, GLuint index) {
7112 return driver_->fn.glGetStringiFn(name, index);
7115 void GLApiBase::glGetSyncivFn(GLsync sync,
7116 GLenum pname,
7117 GLsizei bufSize,
7118 GLsizei* length,
7119 GLint* values) {
7120 driver_->fn.glGetSyncivFn(sync, pname, bufSize, length, values);
7123 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target,
7124 GLint level,
7125 GLenum pname,
7126 GLfloat* params) {
7127 driver_->fn.glGetTexLevelParameterfvFn(target, level, pname, params);
7130 void GLApiBase::glGetTexLevelParameterivFn(GLenum target,
7131 GLint level,
7132 GLenum pname,
7133 GLint* params) {
7134 driver_->fn.glGetTexLevelParameterivFn(target, level, pname, params);
7137 void GLApiBase::glGetTexParameterfvFn(GLenum target,
7138 GLenum pname,
7139 GLfloat* params) {
7140 driver_->fn.glGetTexParameterfvFn(target, pname, params);
7143 void GLApiBase::glGetTexParameterivFn(GLenum target,
7144 GLenum pname,
7145 GLint* params) {
7146 driver_->fn.glGetTexParameterivFn(target, pname, params);
7149 void GLApiBase::glGetTransformFeedbackVaryingFn(GLuint program,
7150 GLuint index,
7151 GLsizei bufSize,
7152 GLsizei* length,
7153 GLsizei* size,
7154 GLenum* type,
7155 char* name) {
7156 driver_->fn.glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
7157 size, type, name);
7160 void GLApiBase::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
7161 GLsizei bufsize,
7162 GLsizei* length,
7163 char* source) {
7164 driver_->fn.glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length,
7165 source);
7168 GLuint GLApiBase::glGetUniformBlockIndexFn(GLuint program,
7169 const char* uniformBlockName) {
7170 return driver_->fn.glGetUniformBlockIndexFn(program, uniformBlockName);
7173 void GLApiBase::glGetUniformfvFn(GLuint program,
7174 GLint location,
7175 GLfloat* params) {
7176 driver_->fn.glGetUniformfvFn(program, location, params);
7179 void GLApiBase::glGetUniformIndicesFn(GLuint program,
7180 GLsizei uniformCount,
7181 const char* const* uniformNames,
7182 GLuint* uniformIndices) {
7183 driver_->fn.glGetUniformIndicesFn(program, uniformCount, uniformNames,
7184 uniformIndices);
7187 void GLApiBase::glGetUniformivFn(GLuint program,
7188 GLint location,
7189 GLint* params) {
7190 driver_->fn.glGetUniformivFn(program, location, params);
7193 GLint GLApiBase::glGetUniformLocationFn(GLuint program, const char* name) {
7194 return driver_->fn.glGetUniformLocationFn(program, name);
7197 void GLApiBase::glGetUniformuivFn(GLuint program,
7198 GLint location,
7199 GLuint* params) {
7200 driver_->fn.glGetUniformuivFn(program, location, params);
7203 void GLApiBase::glGetVertexAttribfvFn(GLuint index,
7204 GLenum pname,
7205 GLfloat* params) {
7206 driver_->fn.glGetVertexAttribfvFn(index, pname, params);
7209 void GLApiBase::glGetVertexAttribivFn(GLuint index,
7210 GLenum pname,
7211 GLint* params) {
7212 driver_->fn.glGetVertexAttribivFn(index, pname, params);
7215 void GLApiBase::glGetVertexAttribPointervFn(GLuint index,
7216 GLenum pname,
7217 void** pointer) {
7218 driver_->fn.glGetVertexAttribPointervFn(index, pname, pointer);
7221 void GLApiBase::glHintFn(GLenum target, GLenum mode) {
7222 driver_->fn.glHintFn(target, mode);
7225 void GLApiBase::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
7226 driver_->fn.glInsertEventMarkerEXTFn(length, marker);
7229 void GLApiBase::glInvalidateFramebufferFn(GLenum target,
7230 GLsizei numAttachments,
7231 const GLenum* attachments) {
7232 driver_->fn.glInvalidateFramebufferFn(target, numAttachments, attachments);
7235 void GLApiBase::glInvalidateSubFramebufferFn(GLenum target,
7236 GLsizei numAttachments,
7237 const GLenum* attachments,
7238 GLint x,
7239 GLint y,
7240 GLint width,
7241 GLint height) {
7242 driver_->fn.glInvalidateSubFramebufferFn(target, numAttachments, attachments,
7243 x, y, width, height);
7246 GLboolean GLApiBase::glIsBufferFn(GLuint buffer) {
7247 return driver_->fn.glIsBufferFn(buffer);
7250 GLboolean GLApiBase::glIsEnabledFn(GLenum cap) {
7251 return driver_->fn.glIsEnabledFn(cap);
7254 GLboolean GLApiBase::glIsFenceAPPLEFn(GLuint fence) {
7255 return driver_->fn.glIsFenceAPPLEFn(fence);
7258 GLboolean GLApiBase::glIsFenceNVFn(GLuint fence) {
7259 return driver_->fn.glIsFenceNVFn(fence);
7262 GLboolean GLApiBase::glIsFramebufferEXTFn(GLuint framebuffer) {
7263 return driver_->fn.glIsFramebufferEXTFn(framebuffer);
7266 GLboolean GLApiBase::glIsPathNVFn(GLuint path) {
7267 return driver_->fn.glIsPathNVFn(path);
7270 GLboolean GLApiBase::glIsProgramFn(GLuint program) {
7271 return driver_->fn.glIsProgramFn(program);
7274 GLboolean GLApiBase::glIsQueryFn(GLuint query) {
7275 return driver_->fn.glIsQueryFn(query);
7278 GLboolean GLApiBase::glIsRenderbufferEXTFn(GLuint renderbuffer) {
7279 return driver_->fn.glIsRenderbufferEXTFn(renderbuffer);
7282 GLboolean GLApiBase::glIsSamplerFn(GLuint sampler) {
7283 return driver_->fn.glIsSamplerFn(sampler);
7286 GLboolean GLApiBase::glIsShaderFn(GLuint shader) {
7287 return driver_->fn.glIsShaderFn(shader);
7290 GLboolean GLApiBase::glIsSyncFn(GLsync sync) {
7291 return driver_->fn.glIsSyncFn(sync);
7294 GLboolean GLApiBase::glIsTextureFn(GLuint texture) {
7295 return driver_->fn.glIsTextureFn(texture);
7298 GLboolean GLApiBase::glIsTransformFeedbackFn(GLuint id) {
7299 return driver_->fn.glIsTransformFeedbackFn(id);
7302 GLboolean GLApiBase::glIsVertexArrayOESFn(GLuint array) {
7303 return driver_->fn.glIsVertexArrayOESFn(array);
7306 void GLApiBase::glLineWidthFn(GLfloat width) {
7307 driver_->fn.glLineWidthFn(width);
7310 void GLApiBase::glLinkProgramFn(GLuint program) {
7311 driver_->fn.glLinkProgramFn(program);
7314 void* GLApiBase::glMapBufferFn(GLenum target, GLenum access) {
7315 return driver_->fn.glMapBufferFn(target, access);
7318 void* GLApiBase::glMapBufferRangeFn(GLenum target,
7319 GLintptr offset,
7320 GLsizeiptr length,
7321 GLbitfield access) {
7322 return driver_->fn.glMapBufferRangeFn(target, offset, length, access);
7325 void GLApiBase::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
7326 driver_->fn.glMatrixLoadfEXTFn(matrixMode, m);
7329 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
7330 driver_->fn.glMatrixLoadIdentityEXTFn(matrixMode);
7333 void GLApiBase::glPathCommandsNVFn(GLuint path,
7334 GLsizei numCommands,
7335 const GLubyte* commands,
7336 GLsizei numCoords,
7337 GLenum coordType,
7338 const GLvoid* coords) {
7339 driver_->fn.glPathCommandsNVFn(path, numCommands, commands, numCoords,
7340 coordType, coords);
7343 void GLApiBase::glPathParameterfNVFn(GLuint path, GLenum pname, GLfloat value) {
7344 driver_->fn.glPathParameterfNVFn(path, pname, value);
7347 void GLApiBase::glPathParameteriNVFn(GLuint path, GLenum pname, GLint value) {
7348 driver_->fn.glPathParameteriNVFn(path, pname, value);
7351 void GLApiBase::glPathStencilFuncNVFn(GLenum func, GLint ref, GLuint mask) {
7352 driver_->fn.glPathStencilFuncNVFn(func, ref, mask);
7355 void GLApiBase::glPauseTransformFeedbackFn(void) {
7356 driver_->fn.glPauseTransformFeedbackFn();
7359 void GLApiBase::glPixelStoreiFn(GLenum pname, GLint param) {
7360 driver_->fn.glPixelStoreiFn(pname, param);
7363 void GLApiBase::glPointParameteriFn(GLenum pname, GLint param) {
7364 driver_->fn.glPointParameteriFn(pname, param);
7367 void GLApiBase::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
7368 driver_->fn.glPolygonOffsetFn(factor, units);
7371 void GLApiBase::glPopGroupMarkerEXTFn(void) {
7372 driver_->fn.glPopGroupMarkerEXTFn();
7375 void GLApiBase::glProgramBinaryFn(GLuint program,
7376 GLenum binaryFormat,
7377 const GLvoid* binary,
7378 GLsizei length) {
7379 driver_->fn.glProgramBinaryFn(program, binaryFormat, binary, length);
7382 void GLApiBase::glProgramParameteriFn(GLuint program,
7383 GLenum pname,
7384 GLint value) {
7385 driver_->fn.glProgramParameteriFn(program, pname, value);
7388 void GLApiBase::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
7389 driver_->fn.glPushGroupMarkerEXTFn(length, marker);
7392 void GLApiBase::glQueryCounterFn(GLuint id, GLenum target) {
7393 driver_->fn.glQueryCounterFn(id, target);
7396 void GLApiBase::glReadBufferFn(GLenum src) {
7397 driver_->fn.glReadBufferFn(src);
7400 void GLApiBase::glReadPixelsFn(GLint x,
7401 GLint y,
7402 GLsizei width,
7403 GLsizei height,
7404 GLenum format,
7405 GLenum type,
7406 void* pixels) {
7407 driver_->fn.glReadPixelsFn(x, y, width, height, format, type, pixels);
7410 void GLApiBase::glReleaseShaderCompilerFn(void) {
7411 driver_->fn.glReleaseShaderCompilerFn();
7414 void GLApiBase::glRenderbufferStorageEXTFn(GLenum target,
7415 GLenum internalformat,
7416 GLsizei width,
7417 GLsizei height) {
7418 driver_->fn.glRenderbufferStorageEXTFn(target, internalformat, width, height);
7421 void GLApiBase::glRenderbufferStorageMultisampleFn(GLenum target,
7422 GLsizei samples,
7423 GLenum internalformat,
7424 GLsizei width,
7425 GLsizei height) {
7426 driver_->fn.glRenderbufferStorageMultisampleFn(target, samples,
7427 internalformat, width, height);
7430 void GLApiBase::glRenderbufferStorageMultisampleANGLEFn(GLenum target,
7431 GLsizei samples,
7432 GLenum internalformat,
7433 GLsizei width,
7434 GLsizei height) {
7435 driver_->fn.glRenderbufferStorageMultisampleANGLEFn(
7436 target, samples, internalformat, width, height);
7439 void GLApiBase::glRenderbufferStorageMultisampleEXTFn(GLenum target,
7440 GLsizei samples,
7441 GLenum internalformat,
7442 GLsizei width,
7443 GLsizei height) {
7444 driver_->fn.glRenderbufferStorageMultisampleEXTFn(
7445 target, samples, internalformat, width, height);
7448 void GLApiBase::glRenderbufferStorageMultisampleIMGFn(GLenum target,
7449 GLsizei samples,
7450 GLenum internalformat,
7451 GLsizei width,
7452 GLsizei height) {
7453 driver_->fn.glRenderbufferStorageMultisampleIMGFn(
7454 target, samples, internalformat, width, height);
7457 void GLApiBase::glResumeTransformFeedbackFn(void) {
7458 driver_->fn.glResumeTransformFeedbackFn();
7461 void GLApiBase::glSampleCoverageFn(GLclampf value, GLboolean invert) {
7462 driver_->fn.glSampleCoverageFn(value, invert);
7465 void GLApiBase::glSamplerParameterfFn(GLuint sampler,
7466 GLenum pname,
7467 GLfloat param) {
7468 driver_->fn.glSamplerParameterfFn(sampler, pname, param);
7471 void GLApiBase::glSamplerParameterfvFn(GLuint sampler,
7472 GLenum pname,
7473 const GLfloat* params) {
7474 driver_->fn.glSamplerParameterfvFn(sampler, pname, params);
7477 void GLApiBase::glSamplerParameteriFn(GLuint sampler,
7478 GLenum pname,
7479 GLint param) {
7480 driver_->fn.glSamplerParameteriFn(sampler, pname, param);
7483 void GLApiBase::glSamplerParameterivFn(GLuint sampler,
7484 GLenum pname,
7485 const GLint* params) {
7486 driver_->fn.glSamplerParameterivFn(sampler, pname, params);
7489 void GLApiBase::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
7490 driver_->fn.glScissorFn(x, y, width, height);
7493 void GLApiBase::glSetFenceAPPLEFn(GLuint fence) {
7494 driver_->fn.glSetFenceAPPLEFn(fence);
7497 void GLApiBase::glSetFenceNVFn(GLuint fence, GLenum condition) {
7498 driver_->fn.glSetFenceNVFn(fence, condition);
7501 void GLApiBase::glShaderBinaryFn(GLsizei n,
7502 const GLuint* shaders,
7503 GLenum binaryformat,
7504 const void* binary,
7505 GLsizei length) {
7506 driver_->fn.glShaderBinaryFn(n, shaders, binaryformat, binary, length);
7509 void GLApiBase::glShaderSourceFn(GLuint shader,
7510 GLsizei count,
7511 const char* const* str,
7512 const GLint* length) {
7513 driver_->fn.glShaderSourceFn(shader, count, str, length);
7516 void GLApiBase::glStencilFillPathNVFn(GLuint path,
7517 GLenum fillMode,
7518 GLuint mask) {
7519 driver_->fn.glStencilFillPathNVFn(path, fillMode, mask);
7522 void GLApiBase::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
7523 driver_->fn.glStencilFuncFn(func, ref, mask);
7526 void GLApiBase::glStencilFuncSeparateFn(GLenum face,
7527 GLenum func,
7528 GLint ref,
7529 GLuint mask) {
7530 driver_->fn.glStencilFuncSeparateFn(face, func, ref, mask);
7533 void GLApiBase::glStencilMaskFn(GLuint mask) {
7534 driver_->fn.glStencilMaskFn(mask);
7537 void GLApiBase::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
7538 driver_->fn.glStencilMaskSeparateFn(face, mask);
7541 void GLApiBase::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
7542 driver_->fn.glStencilOpFn(fail, zfail, zpass);
7545 void GLApiBase::glStencilOpSeparateFn(GLenum face,
7546 GLenum fail,
7547 GLenum zfail,
7548 GLenum zpass) {
7549 driver_->fn.glStencilOpSeparateFn(face, fail, zfail, zpass);
7552 void GLApiBase::glStencilStrokePathNVFn(GLuint path,
7553 GLint reference,
7554 GLuint mask) {
7555 driver_->fn.glStencilStrokePathNVFn(path, reference, mask);
7558 void GLApiBase::glStencilThenCoverFillPathNVFn(GLuint path,
7559 GLenum fillMode,
7560 GLuint mask,
7561 GLenum coverMode) {
7562 driver_->fn.glStencilThenCoverFillPathNVFn(path, fillMode, mask, coverMode);
7565 void GLApiBase::glStencilThenCoverStrokePathNVFn(GLuint path,
7566 GLint reference,
7567 GLuint mask,
7568 GLenum coverMode) {
7569 driver_->fn.glStencilThenCoverStrokePathNVFn(path, reference, mask,
7570 coverMode);
7573 GLboolean GLApiBase::glTestFenceAPPLEFn(GLuint fence) {
7574 return driver_->fn.glTestFenceAPPLEFn(fence);
7577 GLboolean GLApiBase::glTestFenceNVFn(GLuint fence) {
7578 return driver_->fn.glTestFenceNVFn(fence);
7581 void GLApiBase::glTexImage2DFn(GLenum target,
7582 GLint level,
7583 GLint internalformat,
7584 GLsizei width,
7585 GLsizei height,
7586 GLint border,
7587 GLenum format,
7588 GLenum type,
7589 const void* pixels) {
7590 driver_->fn.glTexImage2DFn(target, level, internalformat, width, height,
7591 border, format, type, pixels);
7594 void GLApiBase::glTexImage3DFn(GLenum target,
7595 GLint level,
7596 GLint internalformat,
7597 GLsizei width,
7598 GLsizei height,
7599 GLsizei depth,
7600 GLint border,
7601 GLenum format,
7602 GLenum type,
7603 const void* pixels) {
7604 driver_->fn.glTexImage3DFn(target, level, internalformat, width, height,
7605 depth, border, format, type, pixels);
7608 void GLApiBase::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
7609 driver_->fn.glTexParameterfFn(target, pname, param);
7612 void GLApiBase::glTexParameterfvFn(GLenum target,
7613 GLenum pname,
7614 const GLfloat* params) {
7615 driver_->fn.glTexParameterfvFn(target, pname, params);
7618 void GLApiBase::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
7619 driver_->fn.glTexParameteriFn(target, pname, param);
7622 void GLApiBase::glTexParameterivFn(GLenum target,
7623 GLenum pname,
7624 const GLint* params) {
7625 driver_->fn.glTexParameterivFn(target, pname, params);
7628 void GLApiBase::glTexStorage2DEXTFn(GLenum target,
7629 GLsizei levels,
7630 GLenum internalformat,
7631 GLsizei width,
7632 GLsizei height) {
7633 driver_->fn.glTexStorage2DEXTFn(target, levels, internalformat, width,
7634 height);
7637 void GLApiBase::glTexStorage3DFn(GLenum target,
7638 GLsizei levels,
7639 GLenum internalformat,
7640 GLsizei width,
7641 GLsizei height,
7642 GLsizei depth) {
7643 driver_->fn.glTexStorage3DFn(target, levels, internalformat, width, height,
7644 depth);
7647 void GLApiBase::glTexSubImage2DFn(GLenum target,
7648 GLint level,
7649 GLint xoffset,
7650 GLint yoffset,
7651 GLsizei width,
7652 GLsizei height,
7653 GLenum format,
7654 GLenum type,
7655 const void* pixels) {
7656 driver_->fn.glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
7657 format, type, pixels);
7660 void GLApiBase::glTexSubImage3DFn(GLenum target,
7661 GLint level,
7662 GLint xoffset,
7663 GLint yoffset,
7664 GLint zoffset,
7665 GLsizei width,
7666 GLsizei height,
7667 GLsizei depth,
7668 GLenum format,
7669 GLenum type,
7670 const void* pixels) {
7671 driver_->fn.glTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, width,
7672 height, depth, format, type, pixels);
7675 void GLApiBase::glTransformFeedbackVaryingsFn(GLuint program,
7676 GLsizei count,
7677 const char* const* varyings,
7678 GLenum bufferMode) {
7679 driver_->fn.glTransformFeedbackVaryingsFn(program, count, varyings,
7680 bufferMode);
7683 void GLApiBase::glUniform1fFn(GLint location, GLfloat x) {
7684 driver_->fn.glUniform1fFn(location, x);
7687 void GLApiBase::glUniform1fvFn(GLint location,
7688 GLsizei count,
7689 const GLfloat* v) {
7690 driver_->fn.glUniform1fvFn(location, count, v);
7693 void GLApiBase::glUniform1iFn(GLint location, GLint x) {
7694 driver_->fn.glUniform1iFn(location, x);
7697 void GLApiBase::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
7698 driver_->fn.glUniform1ivFn(location, count, v);
7701 void GLApiBase::glUniform1uiFn(GLint location, GLuint v0) {
7702 driver_->fn.glUniform1uiFn(location, v0);
7705 void GLApiBase::glUniform1uivFn(GLint location,
7706 GLsizei count,
7707 const GLuint* v) {
7708 driver_->fn.glUniform1uivFn(location, count, v);
7711 void GLApiBase::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
7712 driver_->fn.glUniform2fFn(location, x, y);
7715 void GLApiBase::glUniform2fvFn(GLint location,
7716 GLsizei count,
7717 const GLfloat* v) {
7718 driver_->fn.glUniform2fvFn(location, count, v);
7721 void GLApiBase::glUniform2iFn(GLint location, GLint x, GLint y) {
7722 driver_->fn.glUniform2iFn(location, x, y);
7725 void GLApiBase::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
7726 driver_->fn.glUniform2ivFn(location, count, v);
7729 void GLApiBase::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
7730 driver_->fn.glUniform2uiFn(location, v0, v1);
7733 void GLApiBase::glUniform2uivFn(GLint location,
7734 GLsizei count,
7735 const GLuint* v) {
7736 driver_->fn.glUniform2uivFn(location, count, v);
7739 void GLApiBase::glUniform3fFn(GLint location, GLfloat x, GLfloat y, GLfloat z) {
7740 driver_->fn.glUniform3fFn(location, x, y, z);
7743 void GLApiBase::glUniform3fvFn(GLint location,
7744 GLsizei count,
7745 const GLfloat* v) {
7746 driver_->fn.glUniform3fvFn(location, count, v);
7749 void GLApiBase::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
7750 driver_->fn.glUniform3iFn(location, x, y, z);
7753 void GLApiBase::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
7754 driver_->fn.glUniform3ivFn(location, count, v);
7757 void GLApiBase::glUniform3uiFn(GLint location,
7758 GLuint v0,
7759 GLuint v1,
7760 GLuint v2) {
7761 driver_->fn.glUniform3uiFn(location, v0, v1, v2);
7764 void GLApiBase::glUniform3uivFn(GLint location,
7765 GLsizei count,
7766 const GLuint* v) {
7767 driver_->fn.glUniform3uivFn(location, count, v);
7770 void GLApiBase::glUniform4fFn(GLint location,
7771 GLfloat x,
7772 GLfloat y,
7773 GLfloat z,
7774 GLfloat w) {
7775 driver_->fn.glUniform4fFn(location, x, y, z, w);
7778 void GLApiBase::glUniform4fvFn(GLint location,
7779 GLsizei count,
7780 const GLfloat* v) {
7781 driver_->fn.glUniform4fvFn(location, count, v);
7784 void GLApiBase::glUniform4iFn(GLint location,
7785 GLint x,
7786 GLint y,
7787 GLint z,
7788 GLint w) {
7789 driver_->fn.glUniform4iFn(location, x, y, z, w);
7792 void GLApiBase::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
7793 driver_->fn.glUniform4ivFn(location, count, v);
7796 void GLApiBase::glUniform4uiFn(GLint location,
7797 GLuint v0,
7798 GLuint v1,
7799 GLuint v2,
7800 GLuint v3) {
7801 driver_->fn.glUniform4uiFn(location, v0, v1, v2, v3);
7804 void GLApiBase::glUniform4uivFn(GLint location,
7805 GLsizei count,
7806 const GLuint* v) {
7807 driver_->fn.glUniform4uivFn(location, count, v);
7810 void GLApiBase::glUniformBlockBindingFn(GLuint program,
7811 GLuint uniformBlockIndex,
7812 GLuint uniformBlockBinding) {
7813 driver_->fn.glUniformBlockBindingFn(program, uniformBlockIndex,
7814 uniformBlockBinding);
7817 void GLApiBase::glUniformMatrix2fvFn(GLint location,
7818 GLsizei count,
7819 GLboolean transpose,
7820 const GLfloat* value) {
7821 driver_->fn.glUniformMatrix2fvFn(location, count, transpose, value);
7824 void GLApiBase::glUniformMatrix2x3fvFn(GLint location,
7825 GLsizei count,
7826 GLboolean transpose,
7827 const GLfloat* value) {
7828 driver_->fn.glUniformMatrix2x3fvFn(location, count, transpose, value);
7831 void GLApiBase::glUniformMatrix2x4fvFn(GLint location,
7832 GLsizei count,
7833 GLboolean transpose,
7834 const GLfloat* value) {
7835 driver_->fn.glUniformMatrix2x4fvFn(location, count, transpose, value);
7838 void GLApiBase::glUniformMatrix3fvFn(GLint location,
7839 GLsizei count,
7840 GLboolean transpose,
7841 const GLfloat* value) {
7842 driver_->fn.glUniformMatrix3fvFn(location, count, transpose, value);
7845 void GLApiBase::glUniformMatrix3x2fvFn(GLint location,
7846 GLsizei count,
7847 GLboolean transpose,
7848 const GLfloat* value) {
7849 driver_->fn.glUniformMatrix3x2fvFn(location, count, transpose, value);
7852 void GLApiBase::glUniformMatrix3x4fvFn(GLint location,
7853 GLsizei count,
7854 GLboolean transpose,
7855 const GLfloat* value) {
7856 driver_->fn.glUniformMatrix3x4fvFn(location, count, transpose, value);
7859 void GLApiBase::glUniformMatrix4fvFn(GLint location,
7860 GLsizei count,
7861 GLboolean transpose,
7862 const GLfloat* value) {
7863 driver_->fn.glUniformMatrix4fvFn(location, count, transpose, value);
7866 void GLApiBase::glUniformMatrix4x2fvFn(GLint location,
7867 GLsizei count,
7868 GLboolean transpose,
7869 const GLfloat* value) {
7870 driver_->fn.glUniformMatrix4x2fvFn(location, count, transpose, value);
7873 void GLApiBase::glUniformMatrix4x3fvFn(GLint location,
7874 GLsizei count,
7875 GLboolean transpose,
7876 const GLfloat* value) {
7877 driver_->fn.glUniformMatrix4x3fvFn(location, count, transpose, value);
7880 GLboolean GLApiBase::glUnmapBufferFn(GLenum target) {
7881 return driver_->fn.glUnmapBufferFn(target);
7884 void GLApiBase::glUseProgramFn(GLuint program) {
7885 driver_->fn.glUseProgramFn(program);
7888 void GLApiBase::glValidateProgramFn(GLuint program) {
7889 driver_->fn.glValidateProgramFn(program);
7892 void GLApiBase::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
7893 driver_->fn.glVertexAttrib1fFn(indx, x);
7896 void GLApiBase::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
7897 driver_->fn.glVertexAttrib1fvFn(indx, values);
7900 void GLApiBase::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
7901 driver_->fn.glVertexAttrib2fFn(indx, x, y);
7904 void GLApiBase::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
7905 driver_->fn.glVertexAttrib2fvFn(indx, values);
7908 void GLApiBase::glVertexAttrib3fFn(GLuint indx,
7909 GLfloat x,
7910 GLfloat y,
7911 GLfloat z) {
7912 driver_->fn.glVertexAttrib3fFn(indx, x, y, z);
7915 void GLApiBase::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
7916 driver_->fn.glVertexAttrib3fvFn(indx, values);
7919 void GLApiBase::glVertexAttrib4fFn(GLuint indx,
7920 GLfloat x,
7921 GLfloat y,
7922 GLfloat z,
7923 GLfloat w) {
7924 driver_->fn.glVertexAttrib4fFn(indx, x, y, z, w);
7927 void GLApiBase::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
7928 driver_->fn.glVertexAttrib4fvFn(indx, values);
7931 void GLApiBase::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
7932 driver_->fn.glVertexAttribDivisorANGLEFn(index, divisor);
7935 void GLApiBase::glVertexAttribI4iFn(GLuint indx,
7936 GLint x,
7937 GLint y,
7938 GLint z,
7939 GLint w) {
7940 driver_->fn.glVertexAttribI4iFn(indx, x, y, z, w);
7943 void GLApiBase::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
7944 driver_->fn.glVertexAttribI4ivFn(indx, values);
7947 void GLApiBase::glVertexAttribI4uiFn(GLuint indx,
7948 GLuint x,
7949 GLuint y,
7950 GLuint z,
7951 GLuint w) {
7952 driver_->fn.glVertexAttribI4uiFn(indx, x, y, z, w);
7955 void GLApiBase::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
7956 driver_->fn.glVertexAttribI4uivFn(indx, values);
7959 void GLApiBase::glVertexAttribIPointerFn(GLuint indx,
7960 GLint size,
7961 GLenum type,
7962 GLsizei stride,
7963 const void* ptr) {
7964 driver_->fn.glVertexAttribIPointerFn(indx, size, type, stride, ptr);
7967 void GLApiBase::glVertexAttribPointerFn(GLuint indx,
7968 GLint size,
7969 GLenum type,
7970 GLboolean normalized,
7971 GLsizei stride,
7972 const void* ptr) {
7973 driver_->fn.glVertexAttribPointerFn(indx, size, type, normalized, stride,
7974 ptr);
7977 void GLApiBase::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
7978 driver_->fn.glViewportFn(x, y, width, height);
7981 GLenum GLApiBase::glWaitSyncFn(GLsync sync,
7982 GLbitfield flags,
7983 GLuint64 timeout) {
7984 return driver_->fn.glWaitSyncFn(sync, flags, timeout);
7987 void TraceGLApi::glActiveTextureFn(GLenum texture) {
7988 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glActiveTexture")
7989 gl_api_->glActiveTextureFn(texture);
7992 void TraceGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
7993 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glAttachShader")
7994 gl_api_->glAttachShaderFn(program, shader);
7997 void TraceGLApi::glBeginQueryFn(GLenum target, GLuint id) {
7998 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginQuery")
7999 gl_api_->glBeginQueryFn(target, id);
8002 void TraceGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
8003 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginTransformFeedback")
8004 gl_api_->glBeginTransformFeedbackFn(primitiveMode);
8007 void TraceGLApi::glBindAttribLocationFn(GLuint program,
8008 GLuint index,
8009 const char* name) {
8010 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindAttribLocation")
8011 gl_api_->glBindAttribLocationFn(program, index, name);
8014 void TraceGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
8015 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBuffer")
8016 gl_api_->glBindBufferFn(target, buffer);
8019 void TraceGLApi::glBindBufferBaseFn(GLenum target,
8020 GLuint index,
8021 GLuint buffer) {
8022 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferBase")
8023 gl_api_->glBindBufferBaseFn(target, index, buffer);
8026 void TraceGLApi::glBindBufferRangeFn(GLenum target,
8027 GLuint index,
8028 GLuint buffer,
8029 GLintptr offset,
8030 GLsizeiptr size) {
8031 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferRange")
8032 gl_api_->glBindBufferRangeFn(target, index, buffer, offset, size);
8035 void TraceGLApi::glBindFragDataLocationFn(GLuint program,
8036 GLuint colorNumber,
8037 const char* name) {
8038 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFragDataLocation")
8039 gl_api_->glBindFragDataLocationFn(program, colorNumber, name);
8042 void TraceGLApi::glBindFragDataLocationIndexedFn(GLuint program,
8043 GLuint colorNumber,
8044 GLuint index,
8045 const char* name) {
8046 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8047 "TraceGLAPI::glBindFragDataLocationIndexed")
8048 gl_api_->glBindFragDataLocationIndexedFn(program, colorNumber, index, name);
8051 void TraceGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
8052 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFramebufferEXT")
8053 gl_api_->glBindFramebufferEXTFn(target, framebuffer);
8056 void TraceGLApi::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
8057 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindRenderbufferEXT")
8058 gl_api_->glBindRenderbufferEXTFn(target, renderbuffer);
8061 void TraceGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
8062 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindSampler")
8063 gl_api_->glBindSamplerFn(unit, sampler);
8066 void TraceGLApi::glBindTextureFn(GLenum target, GLuint texture) {
8067 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTexture")
8068 gl_api_->glBindTextureFn(target, texture);
8071 void TraceGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
8072 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTransformFeedback")
8073 gl_api_->glBindTransformFeedbackFn(target, id);
8076 void TraceGLApi::glBindVertexArrayOESFn(GLuint array) {
8077 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindVertexArrayOES")
8078 gl_api_->glBindVertexArrayOESFn(array);
8081 void TraceGLApi::glBlendBarrierKHRFn(void) {
8082 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendBarrierKHR")
8083 gl_api_->glBlendBarrierKHRFn();
8086 void TraceGLApi::glBlendColorFn(GLclampf red,
8087 GLclampf green,
8088 GLclampf blue,
8089 GLclampf alpha) {
8090 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendColor")
8091 gl_api_->glBlendColorFn(red, green, blue, alpha);
8094 void TraceGLApi::glBlendEquationFn(GLenum mode) {
8095 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquation")
8096 gl_api_->glBlendEquationFn(mode);
8099 void TraceGLApi::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
8100 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquationSeparate")
8101 gl_api_->glBlendEquationSeparateFn(modeRGB, modeAlpha);
8104 void TraceGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
8105 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFunc")
8106 gl_api_->glBlendFuncFn(sfactor, dfactor);
8109 void TraceGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
8110 GLenum dstRGB,
8111 GLenum srcAlpha,
8112 GLenum dstAlpha) {
8113 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFuncSeparate")
8114 gl_api_->glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
8117 void TraceGLApi::glBlitFramebufferFn(GLint srcX0,
8118 GLint srcY0,
8119 GLint srcX1,
8120 GLint srcY1,
8121 GLint dstX0,
8122 GLint dstY0,
8123 GLint dstX1,
8124 GLint dstY1,
8125 GLbitfield mask,
8126 GLenum filter) {
8127 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebuffer")
8128 gl_api_->glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
8129 dstY1, mask, filter);
8132 void TraceGLApi::glBlitFramebufferANGLEFn(GLint srcX0,
8133 GLint srcY0,
8134 GLint srcX1,
8135 GLint srcY1,
8136 GLint dstX0,
8137 GLint dstY0,
8138 GLint dstX1,
8139 GLint dstY1,
8140 GLbitfield mask,
8141 GLenum filter) {
8142 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferANGLE")
8143 gl_api_->glBlitFramebufferANGLEFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
8144 dstX1, dstY1, mask, filter);
8147 void TraceGLApi::glBlitFramebufferEXTFn(GLint srcX0,
8148 GLint srcY0,
8149 GLint srcX1,
8150 GLint srcY1,
8151 GLint dstX0,
8152 GLint dstY0,
8153 GLint dstX1,
8154 GLint dstY1,
8155 GLbitfield mask,
8156 GLenum filter) {
8157 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferEXT")
8158 gl_api_->glBlitFramebufferEXTFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
8159 dstX1, dstY1, mask, filter);
8162 void TraceGLApi::glBufferDataFn(GLenum target,
8163 GLsizeiptr size,
8164 const void* data,
8165 GLenum usage) {
8166 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferData")
8167 gl_api_->glBufferDataFn(target, size, data, usage);
8170 void TraceGLApi::glBufferSubDataFn(GLenum target,
8171 GLintptr offset,
8172 GLsizeiptr size,
8173 const void* data) {
8174 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferSubData")
8175 gl_api_->glBufferSubDataFn(target, offset, size, data);
8178 GLenum TraceGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
8179 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8180 "TraceGLAPI::glCheckFramebufferStatusEXT")
8181 return gl_api_->glCheckFramebufferStatusEXTFn(target);
8184 void TraceGLApi::glClearFn(GLbitfield mask) {
8185 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClear")
8186 gl_api_->glClearFn(mask);
8189 void TraceGLApi::glClearBufferfiFn(GLenum buffer,
8190 GLint drawbuffer,
8191 const GLfloat depth,
8192 GLint stencil) {
8193 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfi")
8194 gl_api_->glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
8197 void TraceGLApi::glClearBufferfvFn(GLenum buffer,
8198 GLint drawbuffer,
8199 const GLfloat* value) {
8200 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfv")
8201 gl_api_->glClearBufferfvFn(buffer, drawbuffer, value);
8204 void TraceGLApi::glClearBufferivFn(GLenum buffer,
8205 GLint drawbuffer,
8206 const GLint* value) {
8207 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferiv")
8208 gl_api_->glClearBufferivFn(buffer, drawbuffer, value);
8211 void TraceGLApi::glClearBufferuivFn(GLenum buffer,
8212 GLint drawbuffer,
8213 const GLuint* value) {
8214 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferuiv")
8215 gl_api_->glClearBufferuivFn(buffer, drawbuffer, value);
8218 void TraceGLApi::glClearColorFn(GLclampf red,
8219 GLclampf green,
8220 GLclampf blue,
8221 GLclampf alpha) {
8222 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearColor")
8223 gl_api_->glClearColorFn(red, green, blue, alpha);
8226 void TraceGLApi::glClearDepthFn(GLclampd depth) {
8227 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepth")
8228 gl_api_->glClearDepthFn(depth);
8231 void TraceGLApi::glClearDepthfFn(GLclampf depth) {
8232 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepthf")
8233 gl_api_->glClearDepthfFn(depth);
8236 void TraceGLApi::glClearStencilFn(GLint s) {
8237 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearStencil")
8238 gl_api_->glClearStencilFn(s);
8241 GLenum TraceGLApi::glClientWaitSyncFn(GLsync sync,
8242 GLbitfield flags,
8243 GLuint64 timeout) {
8244 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClientWaitSync")
8245 return gl_api_->glClientWaitSyncFn(sync, flags, timeout);
8248 void TraceGLApi::glColorMaskFn(GLboolean red,
8249 GLboolean green,
8250 GLboolean blue,
8251 GLboolean alpha) {
8252 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glColorMask")
8253 gl_api_->glColorMaskFn(red, green, blue, alpha);
8256 void TraceGLApi::glCompileShaderFn(GLuint shader) {
8257 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompileShader")
8258 gl_api_->glCompileShaderFn(shader);
8261 void TraceGLApi::glCompressedTexImage2DFn(GLenum target,
8262 GLint level,
8263 GLenum internalformat,
8264 GLsizei width,
8265 GLsizei height,
8266 GLint border,
8267 GLsizei imageSize,
8268 const void* data) {
8269 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage2D")
8270 gl_api_->glCompressedTexImage2DFn(target, level, internalformat, width,
8271 height, border, imageSize, data);
8274 void TraceGLApi::glCompressedTexImage3DFn(GLenum target,
8275 GLint level,
8276 GLenum internalformat,
8277 GLsizei width,
8278 GLsizei height,
8279 GLsizei depth,
8280 GLint border,
8281 GLsizei imageSize,
8282 const void* data) {
8283 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage3D")
8284 gl_api_->glCompressedTexImage3DFn(target, level, internalformat, width,
8285 height, depth, border, imageSize, data);
8288 void TraceGLApi::glCompressedTexSubImage2DFn(GLenum target,
8289 GLint level,
8290 GLint xoffset,
8291 GLint yoffset,
8292 GLsizei width,
8293 GLsizei height,
8294 GLenum format,
8295 GLsizei imageSize,
8296 const void* data) {
8297 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage2D")
8298 gl_api_->glCompressedTexSubImage2DFn(target, level, xoffset, yoffset, width,
8299 height, format, imageSize, data);
8302 void TraceGLApi::glCompressedTexSubImage3DFn(GLenum target,
8303 GLint level,
8304 GLint xoffset,
8305 GLint yoffset,
8306 GLint zoffset,
8307 GLsizei width,
8308 GLsizei height,
8309 GLsizei depth,
8310 GLenum format,
8311 GLsizei imageSize,
8312 const void* data) {
8313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage3D")
8314 gl_api_->glCompressedTexSubImage3DFn(target, level, xoffset, yoffset, zoffset,
8315 width, height, depth, format, imageSize,
8316 data);
8319 void TraceGLApi::glCopyBufferSubDataFn(GLenum readTarget,
8320 GLenum writeTarget,
8321 GLintptr readOffset,
8322 GLintptr writeOffset,
8323 GLsizeiptr size) {
8324 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyBufferSubData")
8325 gl_api_->glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
8326 writeOffset, size);
8329 void TraceGLApi::glCopyTexImage2DFn(GLenum target,
8330 GLint level,
8331 GLenum internalformat,
8332 GLint x,
8333 GLint y,
8334 GLsizei width,
8335 GLsizei height,
8336 GLint border) {
8337 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexImage2D")
8338 gl_api_->glCopyTexImage2DFn(target, level, internalformat, x, y, width,
8339 height, border);
8342 void TraceGLApi::glCopyTexSubImage2DFn(GLenum target,
8343 GLint level,
8344 GLint xoffset,
8345 GLint yoffset,
8346 GLint x,
8347 GLint y,
8348 GLsizei width,
8349 GLsizei height) {
8350 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage2D")
8351 gl_api_->glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y, width,
8352 height);
8355 void TraceGLApi::glCopyTexSubImage3DFn(GLenum target,
8356 GLint level,
8357 GLint xoffset,
8358 GLint yoffset,
8359 GLint zoffset,
8360 GLint x,
8361 GLint y,
8362 GLsizei width,
8363 GLsizei height) {
8364 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D")
8365 gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y,
8366 width, height);
8369 void TraceGLApi::glCoverFillPathNVFn(GLuint path, GLenum coverMode) {
8370 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverFillPathNV")
8371 gl_api_->glCoverFillPathNVFn(path, coverMode);
8374 void TraceGLApi::glCoverStrokePathNVFn(GLuint name, GLenum coverMode) {
8375 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCoverStrokePathNV")
8376 gl_api_->glCoverStrokePathNVFn(name, coverMode);
8379 GLuint TraceGLApi::glCreateProgramFn(void) {
8380 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateProgram")
8381 return gl_api_->glCreateProgramFn();
8384 GLuint TraceGLApi::glCreateShaderFn(GLenum type) {
8385 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateShader")
8386 return gl_api_->glCreateShaderFn(type);
8389 void TraceGLApi::glCullFaceFn(GLenum mode) {
8390 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCullFace")
8391 gl_api_->glCullFaceFn(mode);
8394 void TraceGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
8395 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteBuffersARB")
8396 gl_api_->glDeleteBuffersARBFn(n, buffers);
8399 void TraceGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
8400 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesAPPLE")
8401 gl_api_->glDeleteFencesAPPLEFn(n, fences);
8404 void TraceGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
8405 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesNV")
8406 gl_api_->glDeleteFencesNVFn(n, fences);
8409 void TraceGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
8410 const GLuint* framebuffers) {
8411 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFramebuffersEXT")
8412 gl_api_->glDeleteFramebuffersEXTFn(n, framebuffers);
8415 void TraceGLApi::glDeletePathsNVFn(GLuint path, GLsizei range) {
8416 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeletePathsNV")
8417 gl_api_->glDeletePathsNVFn(path, range);
8420 void TraceGLApi::glDeleteProgramFn(GLuint program) {
8421 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteProgram")
8422 gl_api_->glDeleteProgramFn(program);
8425 void TraceGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
8426 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteQueries")
8427 gl_api_->glDeleteQueriesFn(n, ids);
8430 void TraceGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
8431 const GLuint* renderbuffers) {
8432 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteRenderbuffersEXT")
8433 gl_api_->glDeleteRenderbuffersEXTFn(n, renderbuffers);
8436 void TraceGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
8437 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSamplers")
8438 gl_api_->glDeleteSamplersFn(n, samplers);
8441 void TraceGLApi::glDeleteShaderFn(GLuint shader) {
8442 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteShader")
8443 gl_api_->glDeleteShaderFn(shader);
8446 void TraceGLApi::glDeleteSyncFn(GLsync sync) {
8447 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSync")
8448 gl_api_->glDeleteSyncFn(sync);
8451 void TraceGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
8452 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTextures")
8453 gl_api_->glDeleteTexturesFn(n, textures);
8456 void TraceGLApi::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
8457 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTransformFeedbacks")
8458 gl_api_->glDeleteTransformFeedbacksFn(n, ids);
8461 void TraceGLApi::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
8462 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteVertexArraysOES")
8463 gl_api_->glDeleteVertexArraysOESFn(n, arrays);
8466 void TraceGLApi::glDepthFuncFn(GLenum func) {
8467 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthFunc")
8468 gl_api_->glDepthFuncFn(func);
8471 void TraceGLApi::glDepthMaskFn(GLboolean flag) {
8472 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthMask")
8473 gl_api_->glDepthMaskFn(flag);
8476 void TraceGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
8477 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRange")
8478 gl_api_->glDepthRangeFn(zNear, zFar);
8481 void TraceGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
8482 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRangef")
8483 gl_api_->glDepthRangefFn(zNear, zFar);
8486 void TraceGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
8487 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDetachShader")
8488 gl_api_->glDetachShaderFn(program, shader);
8491 void TraceGLApi::glDisableFn(GLenum cap) {
8492 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisable")
8493 gl_api_->glDisableFn(cap);
8496 void TraceGLApi::glDisableVertexAttribArrayFn(GLuint index) {
8497 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisableVertexAttribArray")
8498 gl_api_->glDisableVertexAttribArrayFn(index);
8501 void TraceGLApi::glDiscardFramebufferEXTFn(GLenum target,
8502 GLsizei numAttachments,
8503 const GLenum* attachments) {
8504 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDiscardFramebufferEXT")
8505 gl_api_->glDiscardFramebufferEXTFn(target, numAttachments, attachments);
8508 void TraceGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
8509 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArrays")
8510 gl_api_->glDrawArraysFn(mode, first, count);
8513 void TraceGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
8514 GLint first,
8515 GLsizei count,
8516 GLsizei primcount) {
8517 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArraysInstancedANGLE")
8518 gl_api_->glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
8521 void TraceGLApi::glDrawBufferFn(GLenum mode) {
8522 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffer")
8523 gl_api_->glDrawBufferFn(mode);
8526 void TraceGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
8527 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffersARB")
8528 gl_api_->glDrawBuffersARBFn(n, bufs);
8531 void TraceGLApi::glDrawElementsFn(GLenum mode,
8532 GLsizei count,
8533 GLenum type,
8534 const void* indices) {
8535 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawElements")
8536 gl_api_->glDrawElementsFn(mode, count, type, indices);
8539 void TraceGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
8540 GLsizei count,
8541 GLenum type,
8542 const void* indices,
8543 GLsizei primcount) {
8544 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8545 "TraceGLAPI::glDrawElementsInstancedANGLE")
8546 gl_api_->glDrawElementsInstancedANGLEFn(mode, count, type, indices,
8547 primcount);
8550 void TraceGLApi::glDrawRangeElementsFn(GLenum mode,
8551 GLuint start,
8552 GLuint end,
8553 GLsizei count,
8554 GLenum type,
8555 const void* indices) {
8556 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawRangeElements")
8557 gl_api_->glDrawRangeElementsFn(mode, start, end, count, type, indices);
8560 void TraceGLApi::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
8561 GLeglImageOES image) {
8562 TRACE_EVENT_BINARY_EFFICIENT0(
8563 "gpu", "TraceGLAPI::glEGLImageTargetRenderbufferStorageOES")
8564 gl_api_->glEGLImageTargetRenderbufferStorageOESFn(target, image);
8567 void TraceGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
8568 GLeglImageOES image) {
8569 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8570 "TraceGLAPI::glEGLImageTargetTexture2DOES")
8571 gl_api_->glEGLImageTargetTexture2DOESFn(target, image);
8574 void TraceGLApi::glEnableFn(GLenum cap) {
8575 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnable")
8576 gl_api_->glEnableFn(cap);
8579 void TraceGLApi::glEnableVertexAttribArrayFn(GLuint index) {
8580 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnableVertexAttribArray")
8581 gl_api_->glEnableVertexAttribArrayFn(index);
8584 void TraceGLApi::glEndQueryFn(GLenum target) {
8585 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndQuery")
8586 gl_api_->glEndQueryFn(target);
8589 void TraceGLApi::glEndTransformFeedbackFn(void) {
8590 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndTransformFeedback")
8591 gl_api_->glEndTransformFeedbackFn();
8594 GLsync TraceGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
8595 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFenceSync")
8596 return gl_api_->glFenceSyncFn(condition, flags);
8599 void TraceGLApi::glFinishFn(void) {
8600 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinish")
8601 gl_api_->glFinishFn();
8604 void TraceGLApi::glFinishFenceAPPLEFn(GLuint fence) {
8605 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceAPPLE")
8606 gl_api_->glFinishFenceAPPLEFn(fence);
8609 void TraceGLApi::glFinishFenceNVFn(GLuint fence) {
8610 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceNV")
8611 gl_api_->glFinishFenceNVFn(fence);
8614 void TraceGLApi::glFlushFn(void) {
8615 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlush")
8616 gl_api_->glFlushFn();
8619 void TraceGLApi::glFlushMappedBufferRangeFn(GLenum target,
8620 GLintptr offset,
8621 GLsizeiptr length) {
8622 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlushMappedBufferRange")
8623 gl_api_->glFlushMappedBufferRangeFn(target, offset, length);
8626 void TraceGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
8627 GLenum attachment,
8628 GLenum renderbuffertarget,
8629 GLuint renderbuffer) {
8630 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8631 "TraceGLAPI::glFramebufferRenderbufferEXT")
8632 gl_api_->glFramebufferRenderbufferEXTFn(target, attachment,
8633 renderbuffertarget, renderbuffer);
8636 void TraceGLApi::glFramebufferTexture2DEXTFn(GLenum target,
8637 GLenum attachment,
8638 GLenum textarget,
8639 GLuint texture,
8640 GLint level) {
8641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTexture2DEXT")
8642 gl_api_->glFramebufferTexture2DEXTFn(target, attachment, textarget, texture,
8643 level);
8646 void TraceGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
8647 GLenum attachment,
8648 GLenum textarget,
8649 GLuint texture,
8650 GLint level,
8651 GLsizei samples) {
8652 TRACE_EVENT_BINARY_EFFICIENT0(
8653 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleEXT")
8654 gl_api_->glFramebufferTexture2DMultisampleEXTFn(target, attachment, textarget,
8655 texture, level, samples);
8658 void TraceGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
8659 GLenum attachment,
8660 GLenum textarget,
8661 GLuint texture,
8662 GLint level,
8663 GLsizei samples) {
8664 TRACE_EVENT_BINARY_EFFICIENT0(
8665 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleIMG")
8666 gl_api_->glFramebufferTexture2DMultisampleIMGFn(target, attachment, textarget,
8667 texture, level, samples);
8670 void TraceGLApi::glFramebufferTextureLayerFn(GLenum target,
8671 GLenum attachment,
8672 GLuint texture,
8673 GLint level,
8674 GLint layer) {
8675 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTextureLayer")
8676 gl_api_->glFramebufferTextureLayerFn(target, attachment, texture, level,
8677 layer);
8680 void TraceGLApi::glFrontFaceFn(GLenum mode) {
8681 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFrontFace")
8682 gl_api_->glFrontFaceFn(mode);
8685 void TraceGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
8686 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenBuffersARB")
8687 gl_api_->glGenBuffersARBFn(n, buffers);
8690 void TraceGLApi::glGenerateMipmapEXTFn(GLenum target) {
8691 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenerateMipmapEXT")
8692 gl_api_->glGenerateMipmapEXTFn(target);
8695 void TraceGLApi::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
8696 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesAPPLE")
8697 gl_api_->glGenFencesAPPLEFn(n, fences);
8700 void TraceGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
8701 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesNV")
8702 gl_api_->glGenFencesNVFn(n, fences);
8705 void TraceGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
8706 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFramebuffersEXT")
8707 gl_api_->glGenFramebuffersEXTFn(n, framebuffers);
8710 GLuint TraceGLApi::glGenPathsNVFn(GLsizei range) {
8711 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenPathsNV")
8712 return gl_api_->glGenPathsNVFn(range);
8715 void TraceGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
8716 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenQueries")
8717 gl_api_->glGenQueriesFn(n, ids);
8720 void TraceGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
8721 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenRenderbuffersEXT")
8722 gl_api_->glGenRenderbuffersEXTFn(n, renderbuffers);
8725 void TraceGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
8726 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenSamplers")
8727 gl_api_->glGenSamplersFn(n, samplers);
8730 void TraceGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
8731 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTextures")
8732 gl_api_->glGenTexturesFn(n, textures);
8735 void TraceGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
8736 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTransformFeedbacks")
8737 gl_api_->glGenTransformFeedbacksFn(n, ids);
8740 void TraceGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
8741 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenVertexArraysOES")
8742 gl_api_->glGenVertexArraysOESFn(n, arrays);
8745 void TraceGLApi::glGetActiveAttribFn(GLuint program,
8746 GLuint index,
8747 GLsizei bufsize,
8748 GLsizei* length,
8749 GLint* size,
8750 GLenum* type,
8751 char* name) {
8752 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveAttrib")
8753 gl_api_->glGetActiveAttribFn(program, index, bufsize, length, size, type,
8754 name);
8757 void TraceGLApi::glGetActiveUniformFn(GLuint program,
8758 GLuint index,
8759 GLsizei bufsize,
8760 GLsizei* length,
8761 GLint* size,
8762 GLenum* type,
8763 char* name) {
8764 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniform")
8765 gl_api_->glGetActiveUniformFn(program, index, bufsize, length, size, type,
8766 name);
8769 void TraceGLApi::glGetActiveUniformBlockivFn(GLuint program,
8770 GLuint uniformBlockIndex,
8771 GLenum pname,
8772 GLint* params) {
8773 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformBlockiv")
8774 gl_api_->glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
8775 params);
8778 void TraceGLApi::glGetActiveUniformBlockNameFn(GLuint program,
8779 GLuint uniformBlockIndex,
8780 GLsizei bufSize,
8781 GLsizei* length,
8782 char* uniformBlockName) {
8783 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8784 "TraceGLAPI::glGetActiveUniformBlockName")
8785 gl_api_->glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
8786 length, uniformBlockName);
8789 void TraceGLApi::glGetActiveUniformsivFn(GLuint program,
8790 GLsizei uniformCount,
8791 const GLuint* uniformIndices,
8792 GLenum pname,
8793 GLint* params) {
8794 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformsiv")
8795 gl_api_->glGetActiveUniformsivFn(program, uniformCount, uniformIndices, pname,
8796 params);
8799 void TraceGLApi::glGetAttachedShadersFn(GLuint program,
8800 GLsizei maxcount,
8801 GLsizei* count,
8802 GLuint* shaders) {
8803 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttachedShaders")
8804 gl_api_->glGetAttachedShadersFn(program, maxcount, count, shaders);
8807 GLint TraceGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
8808 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttribLocation")
8809 return gl_api_->glGetAttribLocationFn(program, name);
8812 void TraceGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
8813 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBooleanv")
8814 gl_api_->glGetBooleanvFn(pname, params);
8817 void TraceGLApi::glGetBufferParameterivFn(GLenum target,
8818 GLenum pname,
8819 GLint* params) {
8820 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBufferParameteriv")
8821 gl_api_->glGetBufferParameterivFn(target, pname, params);
8824 GLenum TraceGLApi::glGetErrorFn(void) {
8825 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetError")
8826 return gl_api_->glGetErrorFn();
8829 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
8830 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV")
8831 gl_api_->glGetFenceivNVFn(fence, pname, params);
8834 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
8835 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv")
8836 gl_api_->glGetFloatvFn(pname, params);
8839 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) {
8840 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation")
8841 return gl_api_->glGetFragDataLocationFn(program, name);
8844 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
8845 GLenum attachment,
8846 GLenum pname,
8847 GLint* params) {
8848 TRACE_EVENT_BINARY_EFFICIENT0(
8849 "gpu", "TraceGLAPI::glGetFramebufferAttachmentParameterivEXT")
8850 gl_api_->glGetFramebufferAttachmentParameterivEXTFn(target, attachment, pname,
8851 params);
8854 GLenum TraceGLApi::glGetGraphicsResetStatusARBFn(void) {
8855 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8856 "TraceGLAPI::glGetGraphicsResetStatusARB")
8857 return gl_api_->glGetGraphicsResetStatusARBFn();
8860 void TraceGLApi::glGetInteger64i_vFn(GLenum target,
8861 GLuint index,
8862 GLint64* data) {
8863 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64i_v")
8864 gl_api_->glGetInteger64i_vFn(target, index, data);
8867 void TraceGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
8868 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64v")
8869 gl_api_->glGetInteger64vFn(pname, params);
8872 void TraceGLApi::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
8873 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegeri_v")
8874 gl_api_->glGetIntegeri_vFn(target, index, data);
8877 void TraceGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
8878 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegerv")
8879 gl_api_->glGetIntegervFn(pname, params);
8882 void TraceGLApi::glGetInternalformativFn(GLenum target,
8883 GLenum internalformat,
8884 GLenum pname,
8885 GLsizei bufSize,
8886 GLint* params) {
8887 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInternalformativ")
8888 gl_api_->glGetInternalformativFn(target, internalformat, pname, bufSize,
8889 params);
8892 void TraceGLApi::glGetProgramBinaryFn(GLuint program,
8893 GLsizei bufSize,
8894 GLsizei* length,
8895 GLenum* binaryFormat,
8896 GLvoid* binary) {
8897 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramBinary")
8898 gl_api_->glGetProgramBinaryFn(program, bufSize, length, binaryFormat, binary);
8901 void TraceGLApi::glGetProgramInfoLogFn(GLuint program,
8902 GLsizei bufsize,
8903 GLsizei* length,
8904 char* infolog) {
8905 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramInfoLog")
8906 gl_api_->glGetProgramInfoLogFn(program, bufsize, length, infolog);
8909 void TraceGLApi::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
8910 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramiv")
8911 gl_api_->glGetProgramivFn(program, pname, params);
8914 GLint TraceGLApi::glGetProgramResourceLocationFn(GLuint program,
8915 GLenum programInterface,
8916 const char* name) {
8917 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8918 "TraceGLAPI::glGetProgramResourceLocation")
8919 return gl_api_->glGetProgramResourceLocationFn(program, programInterface,
8920 name);
8923 void TraceGLApi::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
8924 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryiv")
8925 gl_api_->glGetQueryivFn(target, pname, params);
8928 void TraceGLApi::glGetQueryObjecti64vFn(GLuint id,
8929 GLenum pname,
8930 GLint64* params) {
8931 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjecti64v")
8932 gl_api_->glGetQueryObjecti64vFn(id, pname, params);
8935 void TraceGLApi::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
8936 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectiv")
8937 gl_api_->glGetQueryObjectivFn(id, pname, params);
8940 void TraceGLApi::glGetQueryObjectui64vFn(GLuint id,
8941 GLenum pname,
8942 GLuint64* params) {
8943 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectui64v")
8944 gl_api_->glGetQueryObjectui64vFn(id, pname, params);
8947 void TraceGLApi::glGetQueryObjectuivFn(GLuint id,
8948 GLenum pname,
8949 GLuint* params) {
8950 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectuiv")
8951 gl_api_->glGetQueryObjectuivFn(id, pname, params);
8954 void TraceGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
8955 GLenum pname,
8956 GLint* params) {
8957 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8958 "TraceGLAPI::glGetRenderbufferParameterivEXT")
8959 gl_api_->glGetRenderbufferParameterivEXTFn(target, pname, params);
8962 void TraceGLApi::glGetSamplerParameterfvFn(GLuint sampler,
8963 GLenum pname,
8964 GLfloat* params) {
8965 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameterfv")
8966 gl_api_->glGetSamplerParameterfvFn(sampler, pname, params);
8969 void TraceGLApi::glGetSamplerParameterivFn(GLuint sampler,
8970 GLenum pname,
8971 GLint* params) {
8972 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameteriv")
8973 gl_api_->glGetSamplerParameterivFn(sampler, pname, params);
8976 void TraceGLApi::glGetShaderInfoLogFn(GLuint shader,
8977 GLsizei bufsize,
8978 GLsizei* length,
8979 char* infolog) {
8980 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderInfoLog")
8981 gl_api_->glGetShaderInfoLogFn(shader, bufsize, length, infolog);
8984 void TraceGLApi::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
8985 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderiv")
8986 gl_api_->glGetShaderivFn(shader, pname, params);
8989 void TraceGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
8990 GLenum precisiontype,
8991 GLint* range,
8992 GLint* precision) {
8993 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderPrecisionFormat")
8994 gl_api_->glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
8995 precision);
8998 void TraceGLApi::glGetShaderSourceFn(GLuint shader,
8999 GLsizei bufsize,
9000 GLsizei* length,
9001 char* source) {
9002 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource")
9003 gl_api_->glGetShaderSourceFn(shader, bufsize, length, source);
9006 const GLubyte* TraceGLApi::glGetStringFn(GLenum name) {
9007 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString")
9008 return gl_api_->glGetStringFn(name);
9011 const GLubyte* TraceGLApi::glGetStringiFn(GLenum name, GLuint index) {
9012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetStringi")
9013 return gl_api_->glGetStringiFn(name, index);
9016 void TraceGLApi::glGetSyncivFn(GLsync sync,
9017 GLenum pname,
9018 GLsizei bufSize,
9019 GLsizei* length,
9020 GLint* values) {
9021 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv")
9022 gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values);
9025 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target,
9026 GLint level,
9027 GLenum pname,
9028 GLfloat* params) {
9029 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameterfv")
9030 gl_api_->glGetTexLevelParameterfvFn(target, level, pname, params);
9033 void TraceGLApi::glGetTexLevelParameterivFn(GLenum target,
9034 GLint level,
9035 GLenum pname,
9036 GLint* params) {
9037 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameteriv")
9038 gl_api_->glGetTexLevelParameterivFn(target, level, pname, params);
9041 void TraceGLApi::glGetTexParameterfvFn(GLenum target,
9042 GLenum pname,
9043 GLfloat* params) {
9044 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameterfv")
9045 gl_api_->glGetTexParameterfvFn(target, pname, params);
9048 void TraceGLApi::glGetTexParameterivFn(GLenum target,
9049 GLenum pname,
9050 GLint* params) {
9051 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameteriv")
9052 gl_api_->glGetTexParameterivFn(target, pname, params);
9055 void TraceGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
9056 GLuint index,
9057 GLsizei bufSize,
9058 GLsizei* length,
9059 GLsizei* size,
9060 GLenum* type,
9061 char* name) {
9062 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9063 "TraceGLAPI::glGetTransformFeedbackVarying")
9064 gl_api_->glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
9065 size, type, name);
9068 void TraceGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
9069 GLsizei bufsize,
9070 GLsizei* length,
9071 char* source) {
9072 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9073 "TraceGLAPI::glGetTranslatedShaderSourceANGLE")
9074 gl_api_->glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length, source);
9077 GLuint TraceGLApi::glGetUniformBlockIndexFn(GLuint program,
9078 const char* uniformBlockName) {
9079 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformBlockIndex")
9080 return gl_api_->glGetUniformBlockIndexFn(program, uniformBlockName);
9083 void TraceGLApi::glGetUniformfvFn(GLuint program,
9084 GLint location,
9085 GLfloat* params) {
9086 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformfv")
9087 gl_api_->glGetUniformfvFn(program, location, params);
9090 void TraceGLApi::glGetUniformIndicesFn(GLuint program,
9091 GLsizei uniformCount,
9092 const char* const* uniformNames,
9093 GLuint* uniformIndices) {
9094 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformIndices")
9095 gl_api_->glGetUniformIndicesFn(program, uniformCount, uniformNames,
9096 uniformIndices);
9099 void TraceGLApi::glGetUniformivFn(GLuint program,
9100 GLint location,
9101 GLint* params) {
9102 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformiv")
9103 gl_api_->glGetUniformivFn(program, location, params);
9106 GLint TraceGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
9107 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformLocation")
9108 return gl_api_->glGetUniformLocationFn(program, name);
9111 void TraceGLApi::glGetUniformuivFn(GLuint program,
9112 GLint location,
9113 GLuint* params) {
9114 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformuiv")
9115 gl_api_->glGetUniformuivFn(program, location, params);
9118 void TraceGLApi::glGetVertexAttribfvFn(GLuint index,
9119 GLenum pname,
9120 GLfloat* params) {
9121 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribfv")
9122 gl_api_->glGetVertexAttribfvFn(index, pname, params);
9125 void TraceGLApi::glGetVertexAttribivFn(GLuint index,
9126 GLenum pname,
9127 GLint* params) {
9128 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribiv")
9129 gl_api_->glGetVertexAttribivFn(index, pname, params);
9132 void TraceGLApi::glGetVertexAttribPointervFn(GLuint index,
9133 GLenum pname,
9134 void** pointer) {
9135 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribPointerv")
9136 gl_api_->glGetVertexAttribPointervFn(index, pname, pointer);
9139 void TraceGLApi::glHintFn(GLenum target, GLenum mode) {
9140 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glHint")
9141 gl_api_->glHintFn(target, mode);
9144 void TraceGLApi::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
9145 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInsertEventMarkerEXT")
9146 gl_api_->glInsertEventMarkerEXTFn(length, marker);
9149 void TraceGLApi::glInvalidateFramebufferFn(GLenum target,
9150 GLsizei numAttachments,
9151 const GLenum* attachments) {
9152 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateFramebuffer")
9153 gl_api_->glInvalidateFramebufferFn(target, numAttachments, attachments);
9156 void TraceGLApi::glInvalidateSubFramebufferFn(GLenum target,
9157 GLsizei numAttachments,
9158 const GLenum* attachments,
9159 GLint x,
9160 GLint y,
9161 GLint width,
9162 GLint height) {
9163 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateSubFramebuffer")
9164 gl_api_->glInvalidateSubFramebufferFn(target, numAttachments, attachments, x,
9165 y, width, height);
9168 GLboolean TraceGLApi::glIsBufferFn(GLuint buffer) {
9169 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsBuffer")
9170 return gl_api_->glIsBufferFn(buffer);
9173 GLboolean TraceGLApi::glIsEnabledFn(GLenum cap) {
9174 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsEnabled")
9175 return gl_api_->glIsEnabledFn(cap);
9178 GLboolean TraceGLApi::glIsFenceAPPLEFn(GLuint fence) {
9179 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceAPPLE")
9180 return gl_api_->glIsFenceAPPLEFn(fence);
9183 GLboolean TraceGLApi::glIsFenceNVFn(GLuint fence) {
9184 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceNV")
9185 return gl_api_->glIsFenceNVFn(fence);
9188 GLboolean TraceGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
9189 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFramebufferEXT")
9190 return gl_api_->glIsFramebufferEXTFn(framebuffer);
9193 GLboolean TraceGLApi::glIsPathNVFn(GLuint path) {
9194 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsPathNV")
9195 return gl_api_->glIsPathNVFn(path);
9198 GLboolean TraceGLApi::glIsProgramFn(GLuint program) {
9199 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsProgram")
9200 return gl_api_->glIsProgramFn(program);
9203 GLboolean TraceGLApi::glIsQueryFn(GLuint query) {
9204 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsQuery")
9205 return gl_api_->glIsQueryFn(query);
9208 GLboolean TraceGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
9209 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsRenderbufferEXT")
9210 return gl_api_->glIsRenderbufferEXTFn(renderbuffer);
9213 GLboolean TraceGLApi::glIsSamplerFn(GLuint sampler) {
9214 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSampler")
9215 return gl_api_->glIsSamplerFn(sampler);
9218 GLboolean TraceGLApi::glIsShaderFn(GLuint shader) {
9219 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsShader")
9220 return gl_api_->glIsShaderFn(shader);
9223 GLboolean TraceGLApi::glIsSyncFn(GLsync sync) {
9224 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSync")
9225 return gl_api_->glIsSyncFn(sync);
9228 GLboolean TraceGLApi::glIsTextureFn(GLuint texture) {
9229 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTexture")
9230 return gl_api_->glIsTextureFn(texture);
9233 GLboolean TraceGLApi::glIsTransformFeedbackFn(GLuint id) {
9234 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTransformFeedback")
9235 return gl_api_->glIsTransformFeedbackFn(id);
9238 GLboolean TraceGLApi::glIsVertexArrayOESFn(GLuint array) {
9239 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsVertexArrayOES")
9240 return gl_api_->glIsVertexArrayOESFn(array);
9243 void TraceGLApi::glLineWidthFn(GLfloat width) {
9244 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLineWidth")
9245 gl_api_->glLineWidthFn(width);
9248 void TraceGLApi::glLinkProgramFn(GLuint program) {
9249 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLinkProgram")
9250 gl_api_->glLinkProgramFn(program);
9253 void* TraceGLApi::glMapBufferFn(GLenum target, GLenum access) {
9254 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBuffer")
9255 return gl_api_->glMapBufferFn(target, access);
9258 void* TraceGLApi::glMapBufferRangeFn(GLenum target,
9259 GLintptr offset,
9260 GLsizeiptr length,
9261 GLbitfield access) {
9262 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBufferRange")
9263 return gl_api_->glMapBufferRangeFn(target, offset, length, access);
9266 void TraceGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
9267 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadfEXT")
9268 gl_api_->glMatrixLoadfEXTFn(matrixMode, m);
9271 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
9272 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT")
9273 gl_api_->glMatrixLoadIdentityEXTFn(matrixMode);
9276 void TraceGLApi::glPathCommandsNVFn(GLuint path,
9277 GLsizei numCommands,
9278 const GLubyte* commands,
9279 GLsizei numCoords,
9280 GLenum coordType,
9281 const GLvoid* coords) {
9282 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathCommandsNV")
9283 gl_api_->glPathCommandsNVFn(path, numCommands, commands, numCoords, coordType,
9284 coords);
9287 void TraceGLApi::glPathParameterfNVFn(GLuint path,
9288 GLenum pname,
9289 GLfloat value) {
9290 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathParameterfNV")
9291 gl_api_->glPathParameterfNVFn(path, pname, value);
9294 void TraceGLApi::glPathParameteriNVFn(GLuint path, GLenum pname, GLint value) {
9295 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathParameteriNV")
9296 gl_api_->glPathParameteriNVFn(path, pname, value);
9299 void TraceGLApi::glPathStencilFuncNVFn(GLenum func, GLint ref, GLuint mask) {
9300 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPathStencilFuncNV")
9301 gl_api_->glPathStencilFuncNVFn(func, ref, mask);
9304 void TraceGLApi::glPauseTransformFeedbackFn(void) {
9305 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPauseTransformFeedback")
9306 gl_api_->glPauseTransformFeedbackFn();
9309 void TraceGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
9310 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPixelStorei")
9311 gl_api_->glPixelStoreiFn(pname, param);
9314 void TraceGLApi::glPointParameteriFn(GLenum pname, GLint param) {
9315 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPointParameteri")
9316 gl_api_->glPointParameteriFn(pname, param);
9319 void TraceGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
9320 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffset")
9321 gl_api_->glPolygonOffsetFn(factor, units);
9324 void TraceGLApi::glPopGroupMarkerEXTFn(void) {
9325 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopGroupMarkerEXT")
9326 gl_api_->glPopGroupMarkerEXTFn();
9329 void TraceGLApi::glProgramBinaryFn(GLuint program,
9330 GLenum binaryFormat,
9331 const GLvoid* binary,
9332 GLsizei length) {
9333 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramBinary")
9334 gl_api_->glProgramBinaryFn(program, binaryFormat, binary, length);
9337 void TraceGLApi::glProgramParameteriFn(GLuint program,
9338 GLenum pname,
9339 GLint value) {
9340 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramParameteri")
9341 gl_api_->glProgramParameteriFn(program, pname, value);
9344 void TraceGLApi::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
9345 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushGroupMarkerEXT")
9346 gl_api_->glPushGroupMarkerEXTFn(length, marker);
9349 void TraceGLApi::glQueryCounterFn(GLuint id, GLenum target) {
9350 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glQueryCounter")
9351 gl_api_->glQueryCounterFn(id, target);
9354 void TraceGLApi::glReadBufferFn(GLenum src) {
9355 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadBuffer")
9356 gl_api_->glReadBufferFn(src);
9359 void TraceGLApi::glReadPixelsFn(GLint x,
9360 GLint y,
9361 GLsizei width,
9362 GLsizei height,
9363 GLenum format,
9364 GLenum type,
9365 void* pixels) {
9366 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixels")
9367 gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels);
9370 void TraceGLApi::glReleaseShaderCompilerFn(void) {
9371 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseShaderCompiler")
9372 gl_api_->glReleaseShaderCompilerFn();
9375 void TraceGLApi::glRenderbufferStorageEXTFn(GLenum target,
9376 GLenum internalformat,
9377 GLsizei width,
9378 GLsizei height) {
9379 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glRenderbufferStorageEXT")
9380 gl_api_->glRenderbufferStorageEXTFn(target, internalformat, width, height);
9383 void TraceGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
9384 GLsizei samples,
9385 GLenum internalformat,
9386 GLsizei width,
9387 GLsizei height) {
9388 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9389 "TraceGLAPI::glRenderbufferStorageMultisample")
9390 gl_api_->glRenderbufferStorageMultisampleFn(target, samples, internalformat,
9391 width, height);
9394 void TraceGLApi::glRenderbufferStorageMultisampleANGLEFn(GLenum target,
9395 GLsizei samples,
9396 GLenum internalformat,
9397 GLsizei width,
9398 GLsizei height) {
9399 TRACE_EVENT_BINARY_EFFICIENT0(
9400 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleANGLE")
9401 gl_api_->glRenderbufferStorageMultisampleANGLEFn(
9402 target, samples, internalformat, width, height);
9405 void TraceGLApi::glRenderbufferStorageMultisampleEXTFn(GLenum target,
9406 GLsizei samples,
9407 GLenum internalformat,
9408 GLsizei width,
9409 GLsizei height) {
9410 TRACE_EVENT_BINARY_EFFICIENT0(
9411 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleEXT")
9412 gl_api_->glRenderbufferStorageMultisampleEXTFn(target, samples,
9413 internalformat, width, height);
9416 void TraceGLApi::glRenderbufferStorageMultisampleIMGFn(GLenum target,
9417 GLsizei samples,
9418 GLenum internalformat,
9419 GLsizei width,
9420 GLsizei height) {
9421 TRACE_EVENT_BINARY_EFFICIENT0(
9422 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleIMG")
9423 gl_api_->glRenderbufferStorageMultisampleIMGFn(target, samples,
9424 internalformat, width, height);
9427 void TraceGLApi::glResumeTransformFeedbackFn(void) {
9428 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glResumeTransformFeedback")
9429 gl_api_->glResumeTransformFeedbackFn();
9432 void TraceGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
9433 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSampleCoverage")
9434 gl_api_->glSampleCoverageFn(value, invert);
9437 void TraceGLApi::glSamplerParameterfFn(GLuint sampler,
9438 GLenum pname,
9439 GLfloat param) {
9440 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterf")
9441 gl_api_->glSamplerParameterfFn(sampler, pname, param);
9444 void TraceGLApi::glSamplerParameterfvFn(GLuint sampler,
9445 GLenum pname,
9446 const GLfloat* params) {
9447 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterfv")
9448 gl_api_->glSamplerParameterfvFn(sampler, pname, params);
9451 void TraceGLApi::glSamplerParameteriFn(GLuint sampler,
9452 GLenum pname,
9453 GLint param) {
9454 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteri")
9455 gl_api_->glSamplerParameteriFn(sampler, pname, param);
9458 void TraceGLApi::glSamplerParameterivFn(GLuint sampler,
9459 GLenum pname,
9460 const GLint* params) {
9461 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteriv")
9462 gl_api_->glSamplerParameterivFn(sampler, pname, params);
9465 void TraceGLApi::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
9466 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glScissor")
9467 gl_api_->glScissorFn(x, y, width, height);
9470 void TraceGLApi::glSetFenceAPPLEFn(GLuint fence) {
9471 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceAPPLE")
9472 gl_api_->glSetFenceAPPLEFn(fence);
9475 void TraceGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
9476 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceNV")
9477 gl_api_->glSetFenceNVFn(fence, condition);
9480 void TraceGLApi::glShaderBinaryFn(GLsizei n,
9481 const GLuint* shaders,
9482 GLenum binaryformat,
9483 const void* binary,
9484 GLsizei length) {
9485 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderBinary")
9486 gl_api_->glShaderBinaryFn(n, shaders, binaryformat, binary, length);
9489 void TraceGLApi::glShaderSourceFn(GLuint shader,
9490 GLsizei count,
9491 const char* const* str,
9492 const GLint* length) {
9493 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderSource")
9494 gl_api_->glShaderSourceFn(shader, count, str, length);
9497 void TraceGLApi::glStencilFillPathNVFn(GLuint path,
9498 GLenum fillMode,
9499 GLuint mask) {
9500 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFillPathNV")
9501 gl_api_->glStencilFillPathNVFn(path, fillMode, mask);
9504 void TraceGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
9505 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFunc")
9506 gl_api_->glStencilFuncFn(func, ref, mask);
9509 void TraceGLApi::glStencilFuncSeparateFn(GLenum face,
9510 GLenum func,
9511 GLint ref,
9512 GLuint mask) {
9513 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFuncSeparate")
9514 gl_api_->glStencilFuncSeparateFn(face, func, ref, mask);
9517 void TraceGLApi::glStencilMaskFn(GLuint mask) {
9518 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMask")
9519 gl_api_->glStencilMaskFn(mask);
9522 void TraceGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
9523 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMaskSeparate")
9524 gl_api_->glStencilMaskSeparateFn(face, mask);
9527 void TraceGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
9528 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOp")
9529 gl_api_->glStencilOpFn(fail, zfail, zpass);
9532 void TraceGLApi::glStencilOpSeparateFn(GLenum face,
9533 GLenum fail,
9534 GLenum zfail,
9535 GLenum zpass) {
9536 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOpSeparate")
9537 gl_api_->glStencilOpSeparateFn(face, fail, zfail, zpass);
9540 void TraceGLApi::glStencilStrokePathNVFn(GLuint path,
9541 GLint reference,
9542 GLuint mask) {
9543 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilStrokePathNV")
9544 gl_api_->glStencilStrokePathNVFn(path, reference, mask);
9547 void TraceGLApi::glStencilThenCoverFillPathNVFn(GLuint path,
9548 GLenum fillMode,
9549 GLuint mask,
9550 GLenum coverMode) {
9551 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9552 "TraceGLAPI::glStencilThenCoverFillPathNV")
9553 gl_api_->glStencilThenCoverFillPathNVFn(path, fillMode, mask, coverMode);
9556 void TraceGLApi::glStencilThenCoverStrokePathNVFn(GLuint path,
9557 GLint reference,
9558 GLuint mask,
9559 GLenum coverMode) {
9560 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9561 "TraceGLAPI::glStencilThenCoverStrokePathNV")
9562 gl_api_->glStencilThenCoverStrokePathNVFn(path, reference, mask, coverMode);
9565 GLboolean TraceGLApi::glTestFenceAPPLEFn(GLuint fence) {
9566 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceAPPLE")
9567 return gl_api_->glTestFenceAPPLEFn(fence);
9570 GLboolean TraceGLApi::glTestFenceNVFn(GLuint fence) {
9571 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceNV")
9572 return gl_api_->glTestFenceNVFn(fence);
9575 void TraceGLApi::glTexImage2DFn(GLenum target,
9576 GLint level,
9577 GLint internalformat,
9578 GLsizei width,
9579 GLsizei height,
9580 GLint border,
9581 GLenum format,
9582 GLenum type,
9583 const void* pixels) {
9584 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage2D")
9585 gl_api_->glTexImage2DFn(target, level, internalformat, width, height, border,
9586 format, type, pixels);
9589 void TraceGLApi::glTexImage3DFn(GLenum target,
9590 GLint level,
9591 GLint internalformat,
9592 GLsizei width,
9593 GLsizei height,
9594 GLsizei depth,
9595 GLint border,
9596 GLenum format,
9597 GLenum type,
9598 const void* pixels) {
9599 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage3D")
9600 gl_api_->glTexImage3DFn(target, level, internalformat, width, height, depth,
9601 border, format, type, pixels);
9604 void TraceGLApi::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
9605 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterf")
9606 gl_api_->glTexParameterfFn(target, pname, param);
9609 void TraceGLApi::glTexParameterfvFn(GLenum target,
9610 GLenum pname,
9611 const GLfloat* params) {
9612 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterfv")
9613 gl_api_->glTexParameterfvFn(target, pname, params);
9616 void TraceGLApi::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
9617 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteri")
9618 gl_api_->glTexParameteriFn(target, pname, param);
9621 void TraceGLApi::glTexParameterivFn(GLenum target,
9622 GLenum pname,
9623 const GLint* params) {
9624 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteriv")
9625 gl_api_->glTexParameterivFn(target, pname, params);
9628 void TraceGLApi::glTexStorage2DEXTFn(GLenum target,
9629 GLsizei levels,
9630 GLenum internalformat,
9631 GLsizei width,
9632 GLsizei height) {
9633 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage2DEXT")
9634 gl_api_->glTexStorage2DEXTFn(target, levels, internalformat, width, height);
9637 void TraceGLApi::glTexStorage3DFn(GLenum target,
9638 GLsizei levels,
9639 GLenum internalformat,
9640 GLsizei width,
9641 GLsizei height,
9642 GLsizei depth) {
9643 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage3D")
9644 gl_api_->glTexStorage3DFn(target, levels, internalformat, width, height,
9645 depth);
9648 void TraceGLApi::glTexSubImage2DFn(GLenum target,
9649 GLint level,
9650 GLint xoffset,
9651 GLint yoffset,
9652 GLsizei width,
9653 GLsizei height,
9654 GLenum format,
9655 GLenum type,
9656 const void* pixels) {
9657 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage2D")
9658 gl_api_->glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
9659 format, type, pixels);
9662 void TraceGLApi::glTexSubImage3DFn(GLenum target,
9663 GLint level,
9664 GLint xoffset,
9665 GLint yoffset,
9666 GLint zoffset,
9667 GLsizei width,
9668 GLsizei height,
9669 GLsizei depth,
9670 GLenum format,
9671 GLenum type,
9672 const void* pixels) {
9673 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage3D")
9674 gl_api_->glTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, width,
9675 height, depth, format, type, pixels);
9678 void TraceGLApi::glTransformFeedbackVaryingsFn(GLuint program,
9679 GLsizei count,
9680 const char* const* varyings,
9681 GLenum bufferMode) {
9682 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9683 "TraceGLAPI::glTransformFeedbackVaryings")
9684 gl_api_->glTransformFeedbackVaryingsFn(program, count, varyings, bufferMode);
9687 void TraceGLApi::glUniform1fFn(GLint location, GLfloat x) {
9688 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1f")
9689 gl_api_->glUniform1fFn(location, x);
9692 void TraceGLApi::glUniform1fvFn(GLint location,
9693 GLsizei count,
9694 const GLfloat* v) {
9695 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1fv")
9696 gl_api_->glUniform1fvFn(location, count, v);
9699 void TraceGLApi::glUniform1iFn(GLint location, GLint x) {
9700 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1i")
9701 gl_api_->glUniform1iFn(location, x);
9704 void TraceGLApi::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
9705 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1iv")
9706 gl_api_->glUniform1ivFn(location, count, v);
9709 void TraceGLApi::glUniform1uiFn(GLint location, GLuint v0) {
9710 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1ui")
9711 gl_api_->glUniform1uiFn(location, v0);
9714 void TraceGLApi::glUniform1uivFn(GLint location,
9715 GLsizei count,
9716 const GLuint* v) {
9717 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1uiv")
9718 gl_api_->glUniform1uivFn(location, count, v);
9721 void TraceGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
9722 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2f")
9723 gl_api_->glUniform2fFn(location, x, y);
9726 void TraceGLApi::glUniform2fvFn(GLint location,
9727 GLsizei count,
9728 const GLfloat* v) {
9729 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2fv")
9730 gl_api_->glUniform2fvFn(location, count, v);
9733 void TraceGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
9734 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2i")
9735 gl_api_->glUniform2iFn(location, x, y);
9738 void TraceGLApi::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
9739 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2iv")
9740 gl_api_->glUniform2ivFn(location, count, v);
9743 void TraceGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
9744 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2ui")
9745 gl_api_->glUniform2uiFn(location, v0, v1);
9748 void TraceGLApi::glUniform2uivFn(GLint location,
9749 GLsizei count,
9750 const GLuint* v) {
9751 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2uiv")
9752 gl_api_->glUniform2uivFn(location, count, v);
9755 void TraceGLApi::glUniform3fFn(GLint location,
9756 GLfloat x,
9757 GLfloat y,
9758 GLfloat z) {
9759 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3f")
9760 gl_api_->glUniform3fFn(location, x, y, z);
9763 void TraceGLApi::glUniform3fvFn(GLint location,
9764 GLsizei count,
9765 const GLfloat* v) {
9766 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3fv")
9767 gl_api_->glUniform3fvFn(location, count, v);
9770 void TraceGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
9771 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3i")
9772 gl_api_->glUniform3iFn(location, x, y, z);
9775 void TraceGLApi::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
9776 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3iv")
9777 gl_api_->glUniform3ivFn(location, count, v);
9780 void TraceGLApi::glUniform3uiFn(GLint location,
9781 GLuint v0,
9782 GLuint v1,
9783 GLuint v2) {
9784 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3ui")
9785 gl_api_->glUniform3uiFn(location, v0, v1, v2);
9788 void TraceGLApi::glUniform3uivFn(GLint location,
9789 GLsizei count,
9790 const GLuint* v) {
9791 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3uiv")
9792 gl_api_->glUniform3uivFn(location, count, v);
9795 void TraceGLApi::glUniform4fFn(GLint location,
9796 GLfloat x,
9797 GLfloat y,
9798 GLfloat z,
9799 GLfloat w) {
9800 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4f")
9801 gl_api_->glUniform4fFn(location, x, y, z, w);
9804 void TraceGLApi::glUniform4fvFn(GLint location,
9805 GLsizei count,
9806 const GLfloat* v) {
9807 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4fv")
9808 gl_api_->glUniform4fvFn(location, count, v);
9811 void TraceGLApi::glUniform4iFn(GLint location,
9812 GLint x,
9813 GLint y,
9814 GLint z,
9815 GLint w) {
9816 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4i")
9817 gl_api_->glUniform4iFn(location, x, y, z, w);
9820 void TraceGLApi::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
9821 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4iv")
9822 gl_api_->glUniform4ivFn(location, count, v);
9825 void TraceGLApi::glUniform4uiFn(GLint location,
9826 GLuint v0,
9827 GLuint v1,
9828 GLuint v2,
9829 GLuint v3) {
9830 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4ui")
9831 gl_api_->glUniform4uiFn(location, v0, v1, v2, v3);
9834 void TraceGLApi::glUniform4uivFn(GLint location,
9835 GLsizei count,
9836 const GLuint* v) {
9837 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4uiv")
9838 gl_api_->glUniform4uivFn(location, count, v);
9841 void TraceGLApi::glUniformBlockBindingFn(GLuint program,
9842 GLuint uniformBlockIndex,
9843 GLuint uniformBlockBinding) {
9844 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformBlockBinding")
9845 gl_api_->glUniformBlockBindingFn(program, uniformBlockIndex,
9846 uniformBlockBinding);
9849 void TraceGLApi::glUniformMatrix2fvFn(GLint location,
9850 GLsizei count,
9851 GLboolean transpose,
9852 const GLfloat* value) {
9853 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2fv")
9854 gl_api_->glUniformMatrix2fvFn(location, count, transpose, value);
9857 void TraceGLApi::glUniformMatrix2x3fvFn(GLint location,
9858 GLsizei count,
9859 GLboolean transpose,
9860 const GLfloat* value) {
9861 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x3fv")
9862 gl_api_->glUniformMatrix2x3fvFn(location, count, transpose, value);
9865 void TraceGLApi::glUniformMatrix2x4fvFn(GLint location,
9866 GLsizei count,
9867 GLboolean transpose,
9868 const GLfloat* value) {
9869 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x4fv")
9870 gl_api_->glUniformMatrix2x4fvFn(location, count, transpose, value);
9873 void TraceGLApi::glUniformMatrix3fvFn(GLint location,
9874 GLsizei count,
9875 GLboolean transpose,
9876 const GLfloat* value) {
9877 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3fv")
9878 gl_api_->glUniformMatrix3fvFn(location, count, transpose, value);
9881 void TraceGLApi::glUniformMatrix3x2fvFn(GLint location,
9882 GLsizei count,
9883 GLboolean transpose,
9884 const GLfloat* value) {
9885 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x2fv")
9886 gl_api_->glUniformMatrix3x2fvFn(location, count, transpose, value);
9889 void TraceGLApi::glUniformMatrix3x4fvFn(GLint location,
9890 GLsizei count,
9891 GLboolean transpose,
9892 const GLfloat* value) {
9893 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x4fv")
9894 gl_api_->glUniformMatrix3x4fvFn(location, count, transpose, value);
9897 void TraceGLApi::glUniformMatrix4fvFn(GLint location,
9898 GLsizei count,
9899 GLboolean transpose,
9900 const GLfloat* value) {
9901 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4fv")
9902 gl_api_->glUniformMatrix4fvFn(location, count, transpose, value);
9905 void TraceGLApi::glUniformMatrix4x2fvFn(GLint location,
9906 GLsizei count,
9907 GLboolean transpose,
9908 const GLfloat* value) {
9909 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x2fv")
9910 gl_api_->glUniformMatrix4x2fvFn(location, count, transpose, value);
9913 void TraceGLApi::glUniformMatrix4x3fvFn(GLint location,
9914 GLsizei count,
9915 GLboolean transpose,
9916 const GLfloat* value) {
9917 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x3fv")
9918 gl_api_->glUniformMatrix4x3fvFn(location, count, transpose, value);
9921 GLboolean TraceGLApi::glUnmapBufferFn(GLenum target) {
9922 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUnmapBuffer")
9923 return gl_api_->glUnmapBufferFn(target);
9926 void TraceGLApi::glUseProgramFn(GLuint program) {
9927 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUseProgram")
9928 gl_api_->glUseProgramFn(program);
9931 void TraceGLApi::glValidateProgramFn(GLuint program) {
9932 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glValidateProgram")
9933 gl_api_->glValidateProgramFn(program);
9936 void TraceGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
9937 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1f")
9938 gl_api_->glVertexAttrib1fFn(indx, x);
9941 void TraceGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
9942 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1fv")
9943 gl_api_->glVertexAttrib1fvFn(indx, values);
9946 void TraceGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
9947 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2f")
9948 gl_api_->glVertexAttrib2fFn(indx, x, y);
9951 void TraceGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
9952 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2fv")
9953 gl_api_->glVertexAttrib2fvFn(indx, values);
9956 void TraceGLApi::glVertexAttrib3fFn(GLuint indx,
9957 GLfloat x,
9958 GLfloat y,
9959 GLfloat z) {
9960 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3f")
9961 gl_api_->glVertexAttrib3fFn(indx, x, y, z);
9964 void TraceGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
9965 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3fv")
9966 gl_api_->glVertexAttrib3fvFn(indx, values);
9969 void TraceGLApi::glVertexAttrib4fFn(GLuint indx,
9970 GLfloat x,
9971 GLfloat y,
9972 GLfloat z,
9973 GLfloat w) {
9974 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4f")
9975 gl_api_->glVertexAttrib4fFn(indx, x, y, z, w);
9978 void TraceGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
9979 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4fv")
9980 gl_api_->glVertexAttrib4fvFn(indx, values);
9983 void TraceGLApi::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
9984 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribDivisorANGLE")
9985 gl_api_->glVertexAttribDivisorANGLEFn(index, divisor);
9988 void TraceGLApi::glVertexAttribI4iFn(GLuint indx,
9989 GLint x,
9990 GLint y,
9991 GLint z,
9992 GLint w) {
9993 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4i")
9994 gl_api_->glVertexAttribI4iFn(indx, x, y, z, w);
9997 void TraceGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
9998 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4iv")
9999 gl_api_->glVertexAttribI4ivFn(indx, values);
10002 void TraceGLApi::glVertexAttribI4uiFn(GLuint indx,
10003 GLuint x,
10004 GLuint y,
10005 GLuint z,
10006 GLuint w) {
10007 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4ui")
10008 gl_api_->glVertexAttribI4uiFn(indx, x, y, z, w);
10011 void TraceGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
10012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4uiv")
10013 gl_api_->glVertexAttribI4uivFn(indx, values);
10016 void TraceGLApi::glVertexAttribIPointerFn(GLuint indx,
10017 GLint size,
10018 GLenum type,
10019 GLsizei stride,
10020 const void* ptr) {
10021 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribIPointer")
10022 gl_api_->glVertexAttribIPointerFn(indx, size, type, stride, ptr);
10025 void TraceGLApi::glVertexAttribPointerFn(GLuint indx,
10026 GLint size,
10027 GLenum type,
10028 GLboolean normalized,
10029 GLsizei stride,
10030 const void* ptr) {
10031 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribPointer")
10032 gl_api_->glVertexAttribPointerFn(indx, size, type, normalized, stride, ptr);
10035 void TraceGLApi::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
10036 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glViewport")
10037 gl_api_->glViewportFn(x, y, width, height);
10040 GLenum TraceGLApi::glWaitSyncFn(GLsync sync,
10041 GLbitfield flags,
10042 GLuint64 timeout) {
10043 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glWaitSync")
10044 return gl_api_->glWaitSyncFn(sync, flags, timeout);
10047 void NoContextGLApi::glActiveTextureFn(GLenum texture) {
10048 NOTREACHED() << "Trying to call glActiveTexture() without current GL context";
10049 LOG(ERROR) << "Trying to call glActiveTexture() without current GL context";
10052 void NoContextGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
10053 NOTREACHED() << "Trying to call glAttachShader() without current GL context";
10054 LOG(ERROR) << "Trying to call glAttachShader() without current GL context";
10057 void NoContextGLApi::glBeginQueryFn(GLenum target, GLuint id) {
10058 NOTREACHED() << "Trying to call glBeginQuery() without current GL context";
10059 LOG(ERROR) << "Trying to call glBeginQuery() without current GL context";
10062 void NoContextGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
10063 NOTREACHED()
10064 << "Trying to call glBeginTransformFeedback() without current GL context";
10065 LOG(ERROR)
10066 << "Trying to call glBeginTransformFeedback() without current GL context";
10069 void NoContextGLApi::glBindAttribLocationFn(GLuint program,
10070 GLuint index,
10071 const char* name) {
10072 NOTREACHED()
10073 << "Trying to call glBindAttribLocation() without current GL context";
10074 LOG(ERROR)
10075 << "Trying to call glBindAttribLocation() without current GL context";
10078 void NoContextGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
10079 NOTREACHED() << "Trying to call glBindBuffer() without current GL context";
10080 LOG(ERROR) << "Trying to call glBindBuffer() without current GL context";
10083 void NoContextGLApi::glBindBufferBaseFn(GLenum target,
10084 GLuint index,
10085 GLuint buffer) {
10086 NOTREACHED()
10087 << "Trying to call glBindBufferBase() without current GL context";
10088 LOG(ERROR) << "Trying to call glBindBufferBase() without current GL context";
10091 void NoContextGLApi::glBindBufferRangeFn(GLenum target,
10092 GLuint index,
10093 GLuint buffer,
10094 GLintptr offset,
10095 GLsizeiptr size) {
10096 NOTREACHED()
10097 << "Trying to call glBindBufferRange() without current GL context";
10098 LOG(ERROR) << "Trying to call glBindBufferRange() without current GL context";
10101 void NoContextGLApi::glBindFragDataLocationFn(GLuint program,
10102 GLuint colorNumber,
10103 const char* name) {
10104 NOTREACHED()
10105 << "Trying to call glBindFragDataLocation() without current GL context";
10106 LOG(ERROR)
10107 << "Trying to call glBindFragDataLocation() without current GL context";
10110 void NoContextGLApi::glBindFragDataLocationIndexedFn(GLuint program,
10111 GLuint colorNumber,
10112 GLuint index,
10113 const char* name) {
10114 NOTREACHED() << "Trying to call glBindFragDataLocationIndexed() without "
10115 "current GL context";
10116 LOG(ERROR) << "Trying to call glBindFragDataLocationIndexed() without "
10117 "current GL context";
10120 void NoContextGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
10121 NOTREACHED()
10122 << "Trying to call glBindFramebufferEXT() without current GL context";
10123 LOG(ERROR)
10124 << "Trying to call glBindFramebufferEXT() without current GL context";
10127 void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target,
10128 GLuint renderbuffer) {
10129 NOTREACHED()
10130 << "Trying to call glBindRenderbufferEXT() without current GL context";
10131 LOG(ERROR)
10132 << "Trying to call glBindRenderbufferEXT() without current GL context";
10135 void NoContextGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
10136 NOTREACHED() << "Trying to call glBindSampler() without current GL context";
10137 LOG(ERROR) << "Trying to call glBindSampler() without current GL context";
10140 void NoContextGLApi::glBindTextureFn(GLenum target, GLuint texture) {
10141 NOTREACHED() << "Trying to call glBindTexture() without current GL context";
10142 LOG(ERROR) << "Trying to call glBindTexture() without current GL context";
10145 void NoContextGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
10146 NOTREACHED()
10147 << "Trying to call glBindTransformFeedback() without current GL context";
10148 LOG(ERROR)
10149 << "Trying to call glBindTransformFeedback() without current GL context";
10152 void NoContextGLApi::glBindVertexArrayOESFn(GLuint array) {
10153 NOTREACHED()
10154 << "Trying to call glBindVertexArrayOES() without current GL context";
10155 LOG(ERROR)
10156 << "Trying to call glBindVertexArrayOES() without current GL context";
10159 void NoContextGLApi::glBlendBarrierKHRFn(void) {
10160 NOTREACHED()
10161 << "Trying to call glBlendBarrierKHR() without current GL context";
10162 LOG(ERROR) << "Trying to call glBlendBarrierKHR() without current GL context";
10165 void NoContextGLApi::glBlendColorFn(GLclampf red,
10166 GLclampf green,
10167 GLclampf blue,
10168 GLclampf alpha) {
10169 NOTREACHED() << "Trying to call glBlendColor() without current GL context";
10170 LOG(ERROR) << "Trying to call glBlendColor() without current GL context";
10173 void NoContextGLApi::glBlendEquationFn(GLenum mode) {
10174 NOTREACHED() << "Trying to call glBlendEquation() without current GL context";
10175 LOG(ERROR) << "Trying to call glBlendEquation() without current GL context";
10178 void NoContextGLApi::glBlendEquationSeparateFn(GLenum modeRGB,
10179 GLenum modeAlpha) {
10180 NOTREACHED()
10181 << "Trying to call glBlendEquationSeparate() without current GL context";
10182 LOG(ERROR)
10183 << "Trying to call glBlendEquationSeparate() without current GL context";
10186 void NoContextGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
10187 NOTREACHED() << "Trying to call glBlendFunc() without current GL context";
10188 LOG(ERROR) << "Trying to call glBlendFunc() without current GL context";
10191 void NoContextGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
10192 GLenum dstRGB,
10193 GLenum srcAlpha,
10194 GLenum dstAlpha) {
10195 NOTREACHED()
10196 << "Trying to call glBlendFuncSeparate() without current GL context";
10197 LOG(ERROR)
10198 << "Trying to call glBlendFuncSeparate() without current GL context";
10201 void NoContextGLApi::glBlitFramebufferFn(GLint srcX0,
10202 GLint srcY0,
10203 GLint srcX1,
10204 GLint srcY1,
10205 GLint dstX0,
10206 GLint dstY0,
10207 GLint dstX1,
10208 GLint dstY1,
10209 GLbitfield mask,
10210 GLenum filter) {
10211 NOTREACHED()
10212 << "Trying to call glBlitFramebuffer() without current GL context";
10213 LOG(ERROR) << "Trying to call glBlitFramebuffer() without current GL context";
10216 void NoContextGLApi::glBlitFramebufferANGLEFn(GLint srcX0,
10217 GLint srcY0,
10218 GLint srcX1,
10219 GLint srcY1,
10220 GLint dstX0,
10221 GLint dstY0,
10222 GLint dstX1,
10223 GLint dstY1,
10224 GLbitfield mask,
10225 GLenum filter) {
10226 NOTREACHED()
10227 << "Trying to call glBlitFramebufferANGLE() without current GL context";
10228 LOG(ERROR)
10229 << "Trying to call glBlitFramebufferANGLE() without current GL context";
10232 void NoContextGLApi::glBlitFramebufferEXTFn(GLint srcX0,
10233 GLint srcY0,
10234 GLint srcX1,
10235 GLint srcY1,
10236 GLint dstX0,
10237 GLint dstY0,
10238 GLint dstX1,
10239 GLint dstY1,
10240 GLbitfield mask,
10241 GLenum filter) {
10242 NOTREACHED()
10243 << "Trying to call glBlitFramebufferEXT() without current GL context";
10244 LOG(ERROR)
10245 << "Trying to call glBlitFramebufferEXT() without current GL context";
10248 void NoContextGLApi::glBufferDataFn(GLenum target,
10249 GLsizeiptr size,
10250 const void* data,
10251 GLenum usage) {
10252 NOTREACHED() << "Trying to call glBufferData() without current GL context";
10253 LOG(ERROR) << "Trying to call glBufferData() without current GL context";
10256 void NoContextGLApi::glBufferSubDataFn(GLenum target,
10257 GLintptr offset,
10258 GLsizeiptr size,
10259 const void* data) {
10260 NOTREACHED() << "Trying to call glBufferSubData() without current GL context";
10261 LOG(ERROR) << "Trying to call glBufferSubData() without current GL context";
10264 GLenum NoContextGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
10265 NOTREACHED() << "Trying to call glCheckFramebufferStatusEXT() without "
10266 "current GL context";
10267 LOG(ERROR) << "Trying to call glCheckFramebufferStatusEXT() without current "
10268 "GL context";
10269 return static_cast<GLenum>(0);
10272 void NoContextGLApi::glClearFn(GLbitfield mask) {
10273 NOTREACHED() << "Trying to call glClear() without current GL context";
10274 LOG(ERROR) << "Trying to call glClear() without current GL context";
10277 void NoContextGLApi::glClearBufferfiFn(GLenum buffer,
10278 GLint drawbuffer,
10279 const GLfloat depth,
10280 GLint stencil) {
10281 NOTREACHED() << "Trying to call glClearBufferfi() without current GL context";
10282 LOG(ERROR) << "Trying to call glClearBufferfi() without current GL context";
10285 void NoContextGLApi::glClearBufferfvFn(GLenum buffer,
10286 GLint drawbuffer,
10287 const GLfloat* value) {
10288 NOTREACHED() << "Trying to call glClearBufferfv() without current GL context";
10289 LOG(ERROR) << "Trying to call glClearBufferfv() without current GL context";
10292 void NoContextGLApi::glClearBufferivFn(GLenum buffer,
10293 GLint drawbuffer,
10294 const GLint* value) {
10295 NOTREACHED() << "Trying to call glClearBufferiv() without current GL context";
10296 LOG(ERROR) << "Trying to call glClearBufferiv() without current GL context";
10299 void NoContextGLApi::glClearBufferuivFn(GLenum buffer,
10300 GLint drawbuffer,
10301 const GLuint* value) {
10302 NOTREACHED()
10303 << "Trying to call glClearBufferuiv() without current GL context";
10304 LOG(ERROR) << "Trying to call glClearBufferuiv() without current GL context";
10307 void NoContextGLApi::glClearColorFn(GLclampf red,
10308 GLclampf green,
10309 GLclampf blue,
10310 GLclampf alpha) {
10311 NOTREACHED() << "Trying to call glClearColor() without current GL context";
10312 LOG(ERROR) << "Trying to call glClearColor() without current GL context";
10315 void NoContextGLApi::glClearDepthFn(GLclampd depth) {
10316 NOTREACHED() << "Trying to call glClearDepth() without current GL context";
10317 LOG(ERROR) << "Trying to call glClearDepth() without current GL context";
10320 void NoContextGLApi::glClearDepthfFn(GLclampf depth) {
10321 NOTREACHED() << "Trying to call glClearDepthf() without current GL context";
10322 LOG(ERROR) << "Trying to call glClearDepthf() without current GL context";
10325 void NoContextGLApi::glClearStencilFn(GLint s) {
10326 NOTREACHED() << "Trying to call glClearStencil() without current GL context";
10327 LOG(ERROR) << "Trying to call glClearStencil() without current GL context";
10330 GLenum NoContextGLApi::glClientWaitSyncFn(GLsync sync,
10331 GLbitfield flags,
10332 GLuint64 timeout) {
10333 NOTREACHED()
10334 << "Trying to call glClientWaitSync() without current GL context";
10335 LOG(ERROR) << "Trying to call glClientWaitSync() without current GL context";
10336 return static_cast<GLenum>(0);
10339 void NoContextGLApi::glColorMaskFn(GLboolean red,
10340 GLboolean green,
10341 GLboolean blue,
10342 GLboolean alpha) {
10343 NOTREACHED() << "Trying to call glColorMask() without current GL context";
10344 LOG(ERROR) << "Trying to call glColorMask() without current GL context";
10347 void NoContextGLApi::glCompileShaderFn(GLuint shader) {
10348 NOTREACHED() << "Trying to call glCompileShader() without current GL context";
10349 LOG(ERROR) << "Trying to call glCompileShader() without current GL context";
10352 void NoContextGLApi::glCompressedTexImage2DFn(GLenum target,
10353 GLint level,
10354 GLenum internalformat,
10355 GLsizei width,
10356 GLsizei height,
10357 GLint border,
10358 GLsizei imageSize,
10359 const void* data) {
10360 NOTREACHED()
10361 << "Trying to call glCompressedTexImage2D() without current GL context";
10362 LOG(ERROR)
10363 << "Trying to call glCompressedTexImage2D() without current GL context";
10366 void NoContextGLApi::glCompressedTexImage3DFn(GLenum target,
10367 GLint level,
10368 GLenum internalformat,
10369 GLsizei width,
10370 GLsizei height,
10371 GLsizei depth,
10372 GLint border,
10373 GLsizei imageSize,
10374 const void* data) {
10375 NOTREACHED()
10376 << "Trying to call glCompressedTexImage3D() without current GL context";
10377 LOG(ERROR)
10378 << "Trying to call glCompressedTexImage3D() without current GL context";
10381 void NoContextGLApi::glCompressedTexSubImage2DFn(GLenum target,
10382 GLint level,
10383 GLint xoffset,
10384 GLint yoffset,
10385 GLsizei width,
10386 GLsizei height,
10387 GLenum format,
10388 GLsizei imageSize,
10389 const void* data) {
10390 NOTREACHED() << "Trying to call glCompressedTexSubImage2D() without current "
10391 "GL context";
10392 LOG(ERROR) << "Trying to call glCompressedTexSubImage2D() without current GL "
10393 "context";
10396 void NoContextGLApi::glCompressedTexSubImage3DFn(GLenum target,
10397 GLint level,
10398 GLint xoffset,
10399 GLint yoffset,
10400 GLint zoffset,
10401 GLsizei width,
10402 GLsizei height,
10403 GLsizei depth,
10404 GLenum format,
10405 GLsizei imageSize,
10406 const void* data) {
10407 NOTREACHED() << "Trying to call glCompressedTexSubImage3D() without current "
10408 "GL context";
10409 LOG(ERROR) << "Trying to call glCompressedTexSubImage3D() without current GL "
10410 "context";
10413 void NoContextGLApi::glCopyBufferSubDataFn(GLenum readTarget,
10414 GLenum writeTarget,
10415 GLintptr readOffset,
10416 GLintptr writeOffset,
10417 GLsizeiptr size) {
10418 NOTREACHED()
10419 << "Trying to call glCopyBufferSubData() without current GL context";
10420 LOG(ERROR)
10421 << "Trying to call glCopyBufferSubData() without current GL context";
10424 void NoContextGLApi::glCopyTexImage2DFn(GLenum target,
10425 GLint level,
10426 GLenum internalformat,
10427 GLint x,
10428 GLint y,
10429 GLsizei width,
10430 GLsizei height,
10431 GLint border) {
10432 NOTREACHED()
10433 << "Trying to call glCopyTexImage2D() without current GL context";
10434 LOG(ERROR) << "Trying to call glCopyTexImage2D() without current GL context";
10437 void NoContextGLApi::glCopyTexSubImage2DFn(GLenum target,
10438 GLint level,
10439 GLint xoffset,
10440 GLint yoffset,
10441 GLint x,
10442 GLint y,
10443 GLsizei width,
10444 GLsizei height) {
10445 NOTREACHED()
10446 << "Trying to call glCopyTexSubImage2D() without current GL context";
10447 LOG(ERROR)
10448 << "Trying to call glCopyTexSubImage2D() without current GL context";
10451 void NoContextGLApi::glCopyTexSubImage3DFn(GLenum target,
10452 GLint level,
10453 GLint xoffset,
10454 GLint yoffset,
10455 GLint zoffset,
10456 GLint x,
10457 GLint y,
10458 GLsizei width,
10459 GLsizei height) {
10460 NOTREACHED()
10461 << "Trying to call glCopyTexSubImage3D() without current GL context";
10462 LOG(ERROR)
10463 << "Trying to call glCopyTexSubImage3D() without current GL context";
10466 void NoContextGLApi::glCoverFillPathNVFn(GLuint path, GLenum coverMode) {
10467 NOTREACHED()
10468 << "Trying to call glCoverFillPathNV() without current GL context";
10469 LOG(ERROR) << "Trying to call glCoverFillPathNV() without current GL context";
10472 void NoContextGLApi::glCoverStrokePathNVFn(GLuint name, GLenum coverMode) {
10473 NOTREACHED()
10474 << "Trying to call glCoverStrokePathNV() without current GL context";
10475 LOG(ERROR)
10476 << "Trying to call glCoverStrokePathNV() without current GL context";
10479 GLuint NoContextGLApi::glCreateProgramFn(void) {
10480 NOTREACHED() << "Trying to call glCreateProgram() without current GL context";
10481 LOG(ERROR) << "Trying to call glCreateProgram() without current GL context";
10482 return 0U;
10485 GLuint NoContextGLApi::glCreateShaderFn(GLenum type) {
10486 NOTREACHED() << "Trying to call glCreateShader() without current GL context";
10487 LOG(ERROR) << "Trying to call glCreateShader() without current GL context";
10488 return 0U;
10491 void NoContextGLApi::glCullFaceFn(GLenum mode) {
10492 NOTREACHED() << "Trying to call glCullFace() without current GL context";
10493 LOG(ERROR) << "Trying to call glCullFace() without current GL context";
10496 void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
10497 NOTREACHED()
10498 << "Trying to call glDeleteBuffersARB() without current GL context";
10499 LOG(ERROR)
10500 << "Trying to call glDeleteBuffersARB() without current GL context";
10503 void NoContextGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
10504 NOTREACHED()
10505 << "Trying to call glDeleteFencesAPPLE() without current GL context";
10506 LOG(ERROR)
10507 << "Trying to call glDeleteFencesAPPLE() without current GL context";
10510 void NoContextGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
10511 NOTREACHED()
10512 << "Trying to call glDeleteFencesNV() without current GL context";
10513 LOG(ERROR) << "Trying to call glDeleteFencesNV() without current GL context";
10516 void NoContextGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
10517 const GLuint* framebuffers) {
10518 NOTREACHED()
10519 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
10520 LOG(ERROR)
10521 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
10524 void NoContextGLApi::glDeletePathsNVFn(GLuint path, GLsizei range) {
10525 NOTREACHED() << "Trying to call glDeletePathsNV() without current GL context";
10526 LOG(ERROR) << "Trying to call glDeletePathsNV() without current GL context";
10529 void NoContextGLApi::glDeleteProgramFn(GLuint program) {
10530 NOTREACHED() << "Trying to call glDeleteProgram() without current GL context";
10531 LOG(ERROR) << "Trying to call glDeleteProgram() without current GL context";
10534 void NoContextGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
10535 NOTREACHED() << "Trying to call glDeleteQueries() without current GL context";
10536 LOG(ERROR) << "Trying to call glDeleteQueries() without current GL context";
10539 void NoContextGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
10540 const GLuint* renderbuffers) {
10541 NOTREACHED()
10542 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
10543 LOG(ERROR)
10544 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
10547 void NoContextGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
10548 NOTREACHED()
10549 << "Trying to call glDeleteSamplers() without current GL context";
10550 LOG(ERROR) << "Trying to call glDeleteSamplers() without current GL context";
10553 void NoContextGLApi::glDeleteShaderFn(GLuint shader) {
10554 NOTREACHED() << "Trying to call glDeleteShader() without current GL context";
10555 LOG(ERROR) << "Trying to call glDeleteShader() without current GL context";
10558 void NoContextGLApi::glDeleteSyncFn(GLsync sync) {
10559 NOTREACHED() << "Trying to call glDeleteSync() without current GL context";
10560 LOG(ERROR) << "Trying to call glDeleteSync() without current GL context";
10563 void NoContextGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
10564 NOTREACHED()
10565 << "Trying to call glDeleteTextures() without current GL context";
10566 LOG(ERROR) << "Trying to call glDeleteTextures() without current GL context";
10569 void NoContextGLApi::glDeleteTransformFeedbacksFn(GLsizei n,
10570 const GLuint* ids) {
10571 NOTREACHED() << "Trying to call glDeleteTransformFeedbacks() without current "
10572 "GL context";
10573 LOG(ERROR) << "Trying to call glDeleteTransformFeedbacks() without current "
10574 "GL context";
10577 void NoContextGLApi::glDeleteVertexArraysOESFn(GLsizei n,
10578 const GLuint* arrays) {
10579 NOTREACHED()
10580 << "Trying to call glDeleteVertexArraysOES() without current GL context";
10581 LOG(ERROR)
10582 << "Trying to call glDeleteVertexArraysOES() without current GL context";
10585 void NoContextGLApi::glDepthFuncFn(GLenum func) {
10586 NOTREACHED() << "Trying to call glDepthFunc() without current GL context";
10587 LOG(ERROR) << "Trying to call glDepthFunc() without current GL context";
10590 void NoContextGLApi::glDepthMaskFn(GLboolean flag) {
10591 NOTREACHED() << "Trying to call glDepthMask() without current GL context";
10592 LOG(ERROR) << "Trying to call glDepthMask() without current GL context";
10595 void NoContextGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
10596 NOTREACHED() << "Trying to call glDepthRange() without current GL context";
10597 LOG(ERROR) << "Trying to call glDepthRange() without current GL context";
10600 void NoContextGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
10601 NOTREACHED() << "Trying to call glDepthRangef() without current GL context";
10602 LOG(ERROR) << "Trying to call glDepthRangef() without current GL context";
10605 void NoContextGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
10606 NOTREACHED() << "Trying to call glDetachShader() without current GL context";
10607 LOG(ERROR) << "Trying to call glDetachShader() without current GL context";
10610 void NoContextGLApi::glDisableFn(GLenum cap) {
10611 NOTREACHED() << "Trying to call glDisable() without current GL context";
10612 LOG(ERROR) << "Trying to call glDisable() without current GL context";
10615 void NoContextGLApi::glDisableVertexAttribArrayFn(GLuint index) {
10616 NOTREACHED() << "Trying to call glDisableVertexAttribArray() without current "
10617 "GL context";
10618 LOG(ERROR) << "Trying to call glDisableVertexAttribArray() without current "
10619 "GL context";
10622 void NoContextGLApi::glDiscardFramebufferEXTFn(GLenum target,
10623 GLsizei numAttachments,
10624 const GLenum* attachments) {
10625 NOTREACHED()
10626 << "Trying to call glDiscardFramebufferEXT() without current GL context";
10627 LOG(ERROR)
10628 << "Trying to call glDiscardFramebufferEXT() without current GL context";
10631 void NoContextGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
10632 NOTREACHED() << "Trying to call glDrawArrays() without current GL context";
10633 LOG(ERROR) << "Trying to call glDrawArrays() without current GL context";
10636 void NoContextGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
10637 GLint first,
10638 GLsizei count,
10639 GLsizei primcount) {
10640 NOTREACHED() << "Trying to call glDrawArraysInstancedANGLE() without current "
10641 "GL context";
10642 LOG(ERROR) << "Trying to call glDrawArraysInstancedANGLE() without current "
10643 "GL context";
10646 void NoContextGLApi::glDrawBufferFn(GLenum mode) {
10647 NOTREACHED() << "Trying to call glDrawBuffer() without current GL context";
10648 LOG(ERROR) << "Trying to call glDrawBuffer() without current GL context";
10651 void NoContextGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
10652 NOTREACHED()
10653 << "Trying to call glDrawBuffersARB() without current GL context";
10654 LOG(ERROR) << "Trying to call glDrawBuffersARB() without current GL context";
10657 void NoContextGLApi::glDrawElementsFn(GLenum mode,
10658 GLsizei count,
10659 GLenum type,
10660 const void* indices) {
10661 NOTREACHED() << "Trying to call glDrawElements() without current GL context";
10662 LOG(ERROR) << "Trying to call glDrawElements() without current GL context";
10665 void NoContextGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
10666 GLsizei count,
10667 GLenum type,
10668 const void* indices,
10669 GLsizei primcount) {
10670 NOTREACHED() << "Trying to call glDrawElementsInstancedANGLE() without "
10671 "current GL context";
10672 LOG(ERROR) << "Trying to call glDrawElementsInstancedANGLE() without current "
10673 "GL context";
10676 void NoContextGLApi::glDrawRangeElementsFn(GLenum mode,
10677 GLuint start,
10678 GLuint end,
10679 GLsizei count,
10680 GLenum type,
10681 const void* indices) {
10682 NOTREACHED()
10683 << "Trying to call glDrawRangeElements() without current GL context";
10684 LOG(ERROR)
10685 << "Trying to call glDrawRangeElements() without current GL context";
10688 void NoContextGLApi::glEGLImageTargetRenderbufferStorageOESFn(
10689 GLenum target,
10690 GLeglImageOES image) {
10691 NOTREACHED() << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
10692 "without current GL context";
10693 LOG(ERROR) << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
10694 "without current GL context";
10697 void NoContextGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
10698 GLeglImageOES image) {
10699 NOTREACHED() << "Trying to call glEGLImageTargetTexture2DOES() without "
10700 "current GL context";
10701 LOG(ERROR) << "Trying to call glEGLImageTargetTexture2DOES() without current "
10702 "GL context";
10705 void NoContextGLApi::glEnableFn(GLenum cap) {
10706 NOTREACHED() << "Trying to call glEnable() without current GL context";
10707 LOG(ERROR) << "Trying to call glEnable() without current GL context";
10710 void NoContextGLApi::glEnableVertexAttribArrayFn(GLuint index) {
10711 NOTREACHED() << "Trying to call glEnableVertexAttribArray() without current "
10712 "GL context";
10713 LOG(ERROR) << "Trying to call glEnableVertexAttribArray() without current GL "
10714 "context";
10717 void NoContextGLApi::glEndQueryFn(GLenum target) {
10718 NOTREACHED() << "Trying to call glEndQuery() without current GL context";
10719 LOG(ERROR) << "Trying to call glEndQuery() without current GL context";
10722 void NoContextGLApi::glEndTransformFeedbackFn(void) {
10723 NOTREACHED()
10724 << "Trying to call glEndTransformFeedback() without current GL context";
10725 LOG(ERROR)
10726 << "Trying to call glEndTransformFeedback() without current GL context";
10729 GLsync NoContextGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
10730 NOTREACHED() << "Trying to call glFenceSync() without current GL context";
10731 LOG(ERROR) << "Trying to call glFenceSync() without current GL context";
10732 return NULL;
10735 void NoContextGLApi::glFinishFn(void) {
10736 NOTREACHED() << "Trying to call glFinish() without current GL context";
10737 LOG(ERROR) << "Trying to call glFinish() without current GL context";
10740 void NoContextGLApi::glFinishFenceAPPLEFn(GLuint fence) {
10741 NOTREACHED()
10742 << "Trying to call glFinishFenceAPPLE() without current GL context";
10743 LOG(ERROR)
10744 << "Trying to call glFinishFenceAPPLE() without current GL context";
10747 void NoContextGLApi::glFinishFenceNVFn(GLuint fence) {
10748 NOTREACHED() << "Trying to call glFinishFenceNV() without current GL context";
10749 LOG(ERROR) << "Trying to call glFinishFenceNV() without current GL context";
10752 void NoContextGLApi::glFlushFn(void) {
10753 NOTREACHED() << "Trying to call glFlush() without current GL context";
10754 LOG(ERROR) << "Trying to call glFlush() without current GL context";
10757 void NoContextGLApi::glFlushMappedBufferRangeFn(GLenum target,
10758 GLintptr offset,
10759 GLsizeiptr length) {
10760 NOTREACHED()
10761 << "Trying to call glFlushMappedBufferRange() without current GL context";
10762 LOG(ERROR)
10763 << "Trying to call glFlushMappedBufferRange() without current GL context";
10766 void NoContextGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
10767 GLenum attachment,
10768 GLenum renderbuffertarget,
10769 GLuint renderbuffer) {
10770 NOTREACHED() << "Trying to call glFramebufferRenderbufferEXT() without "
10771 "current GL context";
10772 LOG(ERROR) << "Trying to call glFramebufferRenderbufferEXT() without current "
10773 "GL context";
10776 void NoContextGLApi::glFramebufferTexture2DEXTFn(GLenum target,
10777 GLenum attachment,
10778 GLenum textarget,
10779 GLuint texture,
10780 GLint level) {
10781 NOTREACHED() << "Trying to call glFramebufferTexture2DEXT() without current "
10782 "GL context";
10783 LOG(ERROR) << "Trying to call glFramebufferTexture2DEXT() without current GL "
10784 "context";
10787 void NoContextGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
10788 GLenum attachment,
10789 GLenum textarget,
10790 GLuint texture,
10791 GLint level,
10792 GLsizei samples) {
10793 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleEXT() "
10794 "without current GL context";
10795 LOG(ERROR) << "Trying to call glFramebufferTexture2DMultisampleEXT() without "
10796 "current GL context";
10799 void NoContextGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
10800 GLenum attachment,
10801 GLenum textarget,
10802 GLuint texture,
10803 GLint level,
10804 GLsizei samples) {
10805 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleIMG() "
10806 "without current GL context";
10807 LOG(ERROR) << "Trying to call glFramebufferTexture2DMultisampleIMG() without "
10808 "current GL context";
10811 void NoContextGLApi::glFramebufferTextureLayerFn(GLenum target,
10812 GLenum attachment,
10813 GLuint texture,
10814 GLint level,
10815 GLint layer) {
10816 NOTREACHED() << "Trying to call glFramebufferTextureLayer() without current "
10817 "GL context";
10818 LOG(ERROR) << "Trying to call glFramebufferTextureLayer() without current GL "
10819 "context";
10822 void NoContextGLApi::glFrontFaceFn(GLenum mode) {
10823 NOTREACHED() << "Trying to call glFrontFace() without current GL context";
10824 LOG(ERROR) << "Trying to call glFrontFace() without current GL context";
10827 void NoContextGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
10828 NOTREACHED() << "Trying to call glGenBuffersARB() without current GL context";
10829 LOG(ERROR) << "Trying to call glGenBuffersARB() without current GL context";
10832 void NoContextGLApi::glGenerateMipmapEXTFn(GLenum target) {
10833 NOTREACHED()
10834 << "Trying to call glGenerateMipmapEXT() without current GL context";
10835 LOG(ERROR)
10836 << "Trying to call glGenerateMipmapEXT() without current GL context";
10839 void NoContextGLApi::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
10840 NOTREACHED()
10841 << "Trying to call glGenFencesAPPLE() without current GL context";
10842 LOG(ERROR) << "Trying to call glGenFencesAPPLE() without current GL context";
10845 void NoContextGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
10846 NOTREACHED() << "Trying to call glGenFencesNV() without current GL context";
10847 LOG(ERROR) << "Trying to call glGenFencesNV() without current GL context";
10850 void NoContextGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
10851 NOTREACHED()
10852 << "Trying to call glGenFramebuffersEXT() without current GL context";
10853 LOG(ERROR)
10854 << "Trying to call glGenFramebuffersEXT() without current GL context";
10857 GLuint NoContextGLApi::glGenPathsNVFn(GLsizei range) {
10858 NOTREACHED() << "Trying to call glGenPathsNV() without current GL context";
10859 LOG(ERROR) << "Trying to call glGenPathsNV() without current GL context";
10860 return 0U;
10863 void NoContextGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
10864 NOTREACHED() << "Trying to call glGenQueries() without current GL context";
10865 LOG(ERROR) << "Trying to call glGenQueries() without current GL context";
10868 void NoContextGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
10869 NOTREACHED()
10870 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10871 LOG(ERROR)
10872 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10875 void NoContextGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
10876 NOTREACHED() << "Trying to call glGenSamplers() without current GL context";
10877 LOG(ERROR) << "Trying to call glGenSamplers() without current GL context";
10880 void NoContextGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
10881 NOTREACHED() << "Trying to call glGenTextures() without current GL context";
10882 LOG(ERROR) << "Trying to call glGenTextures() without current GL context";
10885 void NoContextGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
10886 NOTREACHED()
10887 << "Trying to call glGenTransformFeedbacks() without current GL context";
10888 LOG(ERROR)
10889 << "Trying to call glGenTransformFeedbacks() without current GL context";
10892 void NoContextGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
10893 NOTREACHED()
10894 << "Trying to call glGenVertexArraysOES() without current GL context";
10895 LOG(ERROR)
10896 << "Trying to call glGenVertexArraysOES() without current GL context";
10899 void NoContextGLApi::glGetActiveAttribFn(GLuint program,
10900 GLuint index,
10901 GLsizei bufsize,
10902 GLsizei* length,
10903 GLint* size,
10904 GLenum* type,
10905 char* name) {
10906 NOTREACHED()
10907 << "Trying to call glGetActiveAttrib() without current GL context";
10908 LOG(ERROR) << "Trying to call glGetActiveAttrib() without current GL context";
10911 void NoContextGLApi::glGetActiveUniformFn(GLuint program,
10912 GLuint index,
10913 GLsizei bufsize,
10914 GLsizei* length,
10915 GLint* size,
10916 GLenum* type,
10917 char* name) {
10918 NOTREACHED()
10919 << "Trying to call glGetActiveUniform() without current GL context";
10920 LOG(ERROR)
10921 << "Trying to call glGetActiveUniform() without current GL context";
10924 void NoContextGLApi::glGetActiveUniformBlockivFn(GLuint program,
10925 GLuint uniformBlockIndex,
10926 GLenum pname,
10927 GLint* params) {
10928 NOTREACHED() << "Trying to call glGetActiveUniformBlockiv() without current "
10929 "GL context";
10930 LOG(ERROR) << "Trying to call glGetActiveUniformBlockiv() without current GL "
10931 "context";
10934 void NoContextGLApi::glGetActiveUniformBlockNameFn(GLuint program,
10935 GLuint uniformBlockIndex,
10936 GLsizei bufSize,
10937 GLsizei* length,
10938 char* uniformBlockName) {
10939 NOTREACHED() << "Trying to call glGetActiveUniformBlockName() without "
10940 "current GL context";
10941 LOG(ERROR) << "Trying to call glGetActiveUniformBlockName() without current "
10942 "GL context";
10945 void NoContextGLApi::glGetActiveUniformsivFn(GLuint program,
10946 GLsizei uniformCount,
10947 const GLuint* uniformIndices,
10948 GLenum pname,
10949 GLint* params) {
10950 NOTREACHED()
10951 << "Trying to call glGetActiveUniformsiv() without current GL context";
10952 LOG(ERROR)
10953 << "Trying to call glGetActiveUniformsiv() without current GL context";
10956 void NoContextGLApi::glGetAttachedShadersFn(GLuint program,
10957 GLsizei maxcount,
10958 GLsizei* count,
10959 GLuint* shaders) {
10960 NOTREACHED()
10961 << "Trying to call glGetAttachedShaders() without current GL context";
10962 LOG(ERROR)
10963 << "Trying to call glGetAttachedShaders() without current GL context";
10966 GLint NoContextGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
10967 NOTREACHED()
10968 << "Trying to call glGetAttribLocation() without current GL context";
10969 LOG(ERROR)
10970 << "Trying to call glGetAttribLocation() without current GL context";
10971 return 0;
10974 void NoContextGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
10975 NOTREACHED() << "Trying to call glGetBooleanv() without current GL context";
10976 LOG(ERROR) << "Trying to call glGetBooleanv() without current GL context";
10979 void NoContextGLApi::glGetBufferParameterivFn(GLenum target,
10980 GLenum pname,
10981 GLint* params) {
10982 NOTREACHED()
10983 << "Trying to call glGetBufferParameteriv() without current GL context";
10984 LOG(ERROR)
10985 << "Trying to call glGetBufferParameteriv() without current GL context";
10988 GLenum NoContextGLApi::glGetErrorFn(void) {
10989 NOTREACHED() << "Trying to call glGetError() without current GL context";
10990 LOG(ERROR) << "Trying to call glGetError() without current GL context";
10991 return static_cast<GLenum>(0);
10994 void NoContextGLApi::glGetFenceivNVFn(GLuint fence,
10995 GLenum pname,
10996 GLint* params) {
10997 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context";
10998 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context";
11001 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
11002 NOTREACHED() << "Trying to call glGetFloatv() without current GL context";
11003 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context";
11006 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program,
11007 const char* name) {
11008 NOTREACHED()
11009 << "Trying to call glGetFragDataLocation() without current GL context";
11010 LOG(ERROR)
11011 << "Trying to call glGetFragDataLocation() without current GL context";
11012 return 0;
11015 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn(
11016 GLenum target,
11017 GLenum attachment,
11018 GLenum pname,
11019 GLint* params) {
11020 NOTREACHED() << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
11021 "without current GL context";
11022 LOG(ERROR) << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
11023 "without current GL context";
11026 GLenum NoContextGLApi::glGetGraphicsResetStatusARBFn(void) {
11027 NOTREACHED() << "Trying to call glGetGraphicsResetStatusARB() without "
11028 "current GL context";
11029 LOG(ERROR) << "Trying to call glGetGraphicsResetStatusARB() without current "
11030 "GL context";
11031 return static_cast<GLenum>(0);
11034 void NoContextGLApi::glGetInteger64i_vFn(GLenum target,
11035 GLuint index,
11036 GLint64* data) {
11037 NOTREACHED()
11038 << "Trying to call glGetInteger64i_v() without current GL context";
11039 LOG(ERROR) << "Trying to call glGetInteger64i_v() without current GL context";
11042 void NoContextGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
11043 NOTREACHED() << "Trying to call glGetInteger64v() without current GL context";
11044 LOG(ERROR) << "Trying to call glGetInteger64v() without current GL context";
11047 void NoContextGLApi::glGetIntegeri_vFn(GLenum target,
11048 GLuint index,
11049 GLint* data) {
11050 NOTREACHED() << "Trying to call glGetIntegeri_v() without current GL context";
11051 LOG(ERROR) << "Trying to call glGetIntegeri_v() without current GL context";
11054 void NoContextGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
11055 NOTREACHED() << "Trying to call glGetIntegerv() without current GL context";
11056 LOG(ERROR) << "Trying to call glGetIntegerv() without current GL context";
11059 void NoContextGLApi::glGetInternalformativFn(GLenum target,
11060 GLenum internalformat,
11061 GLenum pname,
11062 GLsizei bufSize,
11063 GLint* params) {
11064 NOTREACHED()
11065 << "Trying to call glGetInternalformativ() without current GL context";
11066 LOG(ERROR)
11067 << "Trying to call glGetInternalformativ() without current GL context";
11070 void NoContextGLApi::glGetProgramBinaryFn(GLuint program,
11071 GLsizei bufSize,
11072 GLsizei* length,
11073 GLenum* binaryFormat,
11074 GLvoid* binary) {
11075 NOTREACHED()
11076 << "Trying to call glGetProgramBinary() without current GL context";
11077 LOG(ERROR)
11078 << "Trying to call glGetProgramBinary() without current GL context";
11081 void NoContextGLApi::glGetProgramInfoLogFn(GLuint program,
11082 GLsizei bufsize,
11083 GLsizei* length,
11084 char* infolog) {
11085 NOTREACHED()
11086 << "Trying to call glGetProgramInfoLog() without current GL context";
11087 LOG(ERROR)
11088 << "Trying to call glGetProgramInfoLog() without current GL context";
11091 void NoContextGLApi::glGetProgramivFn(GLuint program,
11092 GLenum pname,
11093 GLint* params) {
11094 NOTREACHED() << "Trying to call glGetProgramiv() without current GL context";
11095 LOG(ERROR) << "Trying to call glGetProgramiv() without current GL context";
11098 GLint NoContextGLApi::glGetProgramResourceLocationFn(GLuint program,
11099 GLenum programInterface,
11100 const char* name) {
11101 NOTREACHED() << "Trying to call glGetProgramResourceLocation() without "
11102 "current GL context";
11103 LOG(ERROR) << "Trying to call glGetProgramResourceLocation() without current "
11104 "GL context";
11105 return 0;
11108 void NoContextGLApi::glGetQueryivFn(GLenum target,
11109 GLenum pname,
11110 GLint* params) {
11111 NOTREACHED() << "Trying to call glGetQueryiv() without current GL context";
11112 LOG(ERROR) << "Trying to call glGetQueryiv() without current GL context";
11115 void NoContextGLApi::glGetQueryObjecti64vFn(GLuint id,
11116 GLenum pname,
11117 GLint64* params) {
11118 NOTREACHED()
11119 << "Trying to call glGetQueryObjecti64v() without current GL context";
11120 LOG(ERROR)
11121 << "Trying to call glGetQueryObjecti64v() without current GL context";
11124 void NoContextGLApi::glGetQueryObjectivFn(GLuint id,
11125 GLenum pname,
11126 GLint* params) {
11127 NOTREACHED()
11128 << "Trying to call glGetQueryObjectiv() without current GL context";
11129 LOG(ERROR)
11130 << "Trying to call glGetQueryObjectiv() without current GL context";
11133 void NoContextGLApi::glGetQueryObjectui64vFn(GLuint id,
11134 GLenum pname,
11135 GLuint64* params) {
11136 NOTREACHED()
11137 << "Trying to call glGetQueryObjectui64v() without current GL context";
11138 LOG(ERROR)
11139 << "Trying to call glGetQueryObjectui64v() without current GL context";
11142 void NoContextGLApi::glGetQueryObjectuivFn(GLuint id,
11143 GLenum pname,
11144 GLuint* params) {
11145 NOTREACHED()
11146 << "Trying to call glGetQueryObjectuiv() without current GL context";
11147 LOG(ERROR)
11148 << "Trying to call glGetQueryObjectuiv() without current GL context";
11151 void NoContextGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
11152 GLenum pname,
11153 GLint* params) {
11154 NOTREACHED() << "Trying to call glGetRenderbufferParameterivEXT() without "
11155 "current GL context";
11156 LOG(ERROR) << "Trying to call glGetRenderbufferParameterivEXT() without "
11157 "current GL context";
11160 void NoContextGLApi::glGetSamplerParameterfvFn(GLuint sampler,
11161 GLenum pname,
11162 GLfloat* params) {
11163 NOTREACHED()
11164 << "Trying to call glGetSamplerParameterfv() without current GL context";
11165 LOG(ERROR)
11166 << "Trying to call glGetSamplerParameterfv() without current GL context";
11169 void NoContextGLApi::glGetSamplerParameterivFn(GLuint sampler,
11170 GLenum pname,
11171 GLint* params) {
11172 NOTREACHED()
11173 << "Trying to call glGetSamplerParameteriv() without current GL context";
11174 LOG(ERROR)
11175 << "Trying to call glGetSamplerParameteriv() without current GL context";
11178 void NoContextGLApi::glGetShaderInfoLogFn(GLuint shader,
11179 GLsizei bufsize,
11180 GLsizei* length,
11181 char* infolog) {
11182 NOTREACHED()
11183 << "Trying to call glGetShaderInfoLog() without current GL context";
11184 LOG(ERROR)
11185 << "Trying to call glGetShaderInfoLog() without current GL context";
11188 void NoContextGLApi::glGetShaderivFn(GLuint shader,
11189 GLenum pname,
11190 GLint* params) {
11191 NOTREACHED() << "Trying to call glGetShaderiv() without current GL context";
11192 LOG(ERROR) << "Trying to call glGetShaderiv() without current GL context";
11195 void NoContextGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
11196 GLenum precisiontype,
11197 GLint* range,
11198 GLint* precision) {
11199 NOTREACHED() << "Trying to call glGetShaderPrecisionFormat() without current "
11200 "GL context";
11201 LOG(ERROR) << "Trying to call glGetShaderPrecisionFormat() without current "
11202 "GL context";
11205 void NoContextGLApi::glGetShaderSourceFn(GLuint shader,
11206 GLsizei bufsize,
11207 GLsizei* length,
11208 char* source) {
11209 NOTREACHED()
11210 << "Trying to call glGetShaderSource() without current GL context";
11211 LOG(ERROR) << "Trying to call glGetShaderSource() without current GL context";
11214 const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) {
11215 NOTREACHED() << "Trying to call glGetString() without current GL context";
11216 LOG(ERROR) << "Trying to call glGetString() without current GL context";
11217 return NULL;
11220 const GLubyte* NoContextGLApi::glGetStringiFn(GLenum name, GLuint index) {
11221 NOTREACHED() << "Trying to call glGetStringi() without current GL context";
11222 LOG(ERROR) << "Trying to call glGetStringi() without current GL context";
11223 return NULL;
11226 void NoContextGLApi::glGetSyncivFn(GLsync sync,
11227 GLenum pname,
11228 GLsizei bufSize,
11229 GLsizei* length,
11230 GLint* values) {
11231 NOTREACHED() << "Trying to call glGetSynciv() without current GL context";
11232 LOG(ERROR) << "Trying to call glGetSynciv() without current GL context";
11235 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target,
11236 GLint level,
11237 GLenum pname,
11238 GLfloat* params) {
11239 NOTREACHED()
11240 << "Trying to call glGetTexLevelParameterfv() without current GL context";
11241 LOG(ERROR)
11242 << "Trying to call glGetTexLevelParameterfv() without current GL context";
11245 void NoContextGLApi::glGetTexLevelParameterivFn(GLenum target,
11246 GLint level,
11247 GLenum pname,
11248 GLint* params) {
11249 NOTREACHED()
11250 << "Trying to call glGetTexLevelParameteriv() without current GL context";
11251 LOG(ERROR)
11252 << "Trying to call glGetTexLevelParameteriv() without current GL context";
11255 void NoContextGLApi::glGetTexParameterfvFn(GLenum target,
11256 GLenum pname,
11257 GLfloat* params) {
11258 NOTREACHED()
11259 << "Trying to call glGetTexParameterfv() without current GL context";
11260 LOG(ERROR)
11261 << "Trying to call glGetTexParameterfv() without current GL context";
11264 void NoContextGLApi::glGetTexParameterivFn(GLenum target,
11265 GLenum pname,
11266 GLint* params) {
11267 NOTREACHED()
11268 << "Trying to call glGetTexParameteriv() without current GL context";
11269 LOG(ERROR)
11270 << "Trying to call glGetTexParameteriv() without current GL context";
11273 void NoContextGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
11274 GLuint index,
11275 GLsizei bufSize,
11276 GLsizei* length,
11277 GLsizei* size,
11278 GLenum* type,
11279 char* name) {
11280 NOTREACHED() << "Trying to call glGetTransformFeedbackVarying() without "
11281 "current GL context";
11282 LOG(ERROR) << "Trying to call glGetTransformFeedbackVarying() without "
11283 "current GL context";
11286 void NoContextGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
11287 GLsizei bufsize,
11288 GLsizei* length,
11289 char* source) {
11290 NOTREACHED() << "Trying to call glGetTranslatedShaderSourceANGLE() without "
11291 "current GL context";
11292 LOG(ERROR) << "Trying to call glGetTranslatedShaderSourceANGLE() without "
11293 "current GL context";
11296 GLuint NoContextGLApi::glGetUniformBlockIndexFn(GLuint program,
11297 const char* uniformBlockName) {
11298 NOTREACHED()
11299 << "Trying to call glGetUniformBlockIndex() without current GL context";
11300 LOG(ERROR)
11301 << "Trying to call glGetUniformBlockIndex() without current GL context";
11302 return 0U;
11305 void NoContextGLApi::glGetUniformfvFn(GLuint program,
11306 GLint location,
11307 GLfloat* params) {
11308 NOTREACHED() << "Trying to call glGetUniformfv() without current GL context";
11309 LOG(ERROR) << "Trying to call glGetUniformfv() without current GL context";
11312 void NoContextGLApi::glGetUniformIndicesFn(GLuint program,
11313 GLsizei uniformCount,
11314 const char* const* uniformNames,
11315 GLuint* uniformIndices) {
11316 NOTREACHED()
11317 << "Trying to call glGetUniformIndices() without current GL context";
11318 LOG(ERROR)
11319 << "Trying to call glGetUniformIndices() without current GL context";
11322 void NoContextGLApi::glGetUniformivFn(GLuint program,
11323 GLint location,
11324 GLint* params) {
11325 NOTREACHED() << "Trying to call glGetUniformiv() without current GL context";
11326 LOG(ERROR) << "Trying to call glGetUniformiv() without current GL context";
11329 GLint NoContextGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
11330 NOTREACHED()
11331 << "Trying to call glGetUniformLocation() without current GL context";
11332 LOG(ERROR)
11333 << "Trying to call glGetUniformLocation() without current GL context";
11334 return 0;
11337 void NoContextGLApi::glGetUniformuivFn(GLuint program,
11338 GLint location,
11339 GLuint* params) {
11340 NOTREACHED() << "Trying to call glGetUniformuiv() without current GL context";
11341 LOG(ERROR) << "Trying to call glGetUniformuiv() without current GL context";
11344 void NoContextGLApi::glGetVertexAttribfvFn(GLuint index,
11345 GLenum pname,
11346 GLfloat* params) {
11347 NOTREACHED()
11348 << "Trying to call glGetVertexAttribfv() without current GL context";
11349 LOG(ERROR)
11350 << "Trying to call glGetVertexAttribfv() without current GL context";
11353 void NoContextGLApi::glGetVertexAttribivFn(GLuint index,
11354 GLenum pname,
11355 GLint* params) {
11356 NOTREACHED()
11357 << "Trying to call glGetVertexAttribiv() without current GL context";
11358 LOG(ERROR)
11359 << "Trying to call glGetVertexAttribiv() without current GL context";
11362 void NoContextGLApi::glGetVertexAttribPointervFn(GLuint index,
11363 GLenum pname,
11364 void** pointer) {
11365 NOTREACHED() << "Trying to call glGetVertexAttribPointerv() without current "
11366 "GL context";
11367 LOG(ERROR) << "Trying to call glGetVertexAttribPointerv() without current GL "
11368 "context";
11371 void NoContextGLApi::glHintFn(GLenum target, GLenum mode) {
11372 NOTREACHED() << "Trying to call glHint() without current GL context";
11373 LOG(ERROR) << "Trying to call glHint() without current GL context";
11376 void NoContextGLApi::glInsertEventMarkerEXTFn(GLsizei length,
11377 const char* marker) {
11378 NOTREACHED()
11379 << "Trying to call glInsertEventMarkerEXT() without current GL context";
11380 LOG(ERROR)
11381 << "Trying to call glInsertEventMarkerEXT() without current GL context";
11384 void NoContextGLApi::glInvalidateFramebufferFn(GLenum target,
11385 GLsizei numAttachments,
11386 const GLenum* attachments) {
11387 NOTREACHED()
11388 << "Trying to call glInvalidateFramebuffer() without current GL context";
11389 LOG(ERROR)
11390 << "Trying to call glInvalidateFramebuffer() without current GL context";
11393 void NoContextGLApi::glInvalidateSubFramebufferFn(GLenum target,
11394 GLsizei numAttachments,
11395 const GLenum* attachments,
11396 GLint x,
11397 GLint y,
11398 GLint width,
11399 GLint height) {
11400 NOTREACHED() << "Trying to call glInvalidateSubFramebuffer() without current "
11401 "GL context";
11402 LOG(ERROR) << "Trying to call glInvalidateSubFramebuffer() without current "
11403 "GL context";
11406 GLboolean NoContextGLApi::glIsBufferFn(GLuint buffer) {
11407 NOTREACHED() << "Trying to call glIsBuffer() without current GL context";
11408 LOG(ERROR) << "Trying to call glIsBuffer() without current GL context";
11409 return GL_FALSE;
11412 GLboolean NoContextGLApi::glIsEnabledFn(GLenum cap) {
11413 NOTREACHED() << "Trying to call glIsEnabled() without current GL context";
11414 LOG(ERROR) << "Trying to call glIsEnabled() without current GL context";
11415 return GL_FALSE;
11418 GLboolean NoContextGLApi::glIsFenceAPPLEFn(GLuint fence) {
11419 NOTREACHED() << "Trying to call glIsFenceAPPLE() without current GL context";
11420 LOG(ERROR) << "Trying to call glIsFenceAPPLE() without current GL context";
11421 return GL_FALSE;
11424 GLboolean NoContextGLApi::glIsFenceNVFn(GLuint fence) {
11425 NOTREACHED() << "Trying to call glIsFenceNV() without current GL context";
11426 LOG(ERROR) << "Trying to call glIsFenceNV() without current GL context";
11427 return GL_FALSE;
11430 GLboolean NoContextGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
11431 NOTREACHED()
11432 << "Trying to call glIsFramebufferEXT() without current GL context";
11433 LOG(ERROR)
11434 << "Trying to call glIsFramebufferEXT() without current GL context";
11435 return GL_FALSE;
11438 GLboolean NoContextGLApi::glIsPathNVFn(GLuint path) {
11439 NOTREACHED() << "Trying to call glIsPathNV() without current GL context";
11440 LOG(ERROR) << "Trying to call glIsPathNV() without current GL context";
11441 return GL_FALSE;
11444 GLboolean NoContextGLApi::glIsProgramFn(GLuint program) {
11445 NOTREACHED() << "Trying to call glIsProgram() without current GL context";
11446 LOG(ERROR) << "Trying to call glIsProgram() without current GL context";
11447 return GL_FALSE;
11450 GLboolean NoContextGLApi::glIsQueryFn(GLuint query) {
11451 NOTREACHED() << "Trying to call glIsQuery() without current GL context";
11452 LOG(ERROR) << "Trying to call glIsQuery() without current GL context";
11453 return GL_FALSE;
11456 GLboolean NoContextGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
11457 NOTREACHED()
11458 << "Trying to call glIsRenderbufferEXT() without current GL context";
11459 LOG(ERROR)
11460 << "Trying to call glIsRenderbufferEXT() without current GL context";
11461 return GL_FALSE;
11464 GLboolean NoContextGLApi::glIsSamplerFn(GLuint sampler) {
11465 NOTREACHED() << "Trying to call glIsSampler() without current GL context";
11466 LOG(ERROR) << "Trying to call glIsSampler() without current GL context";
11467 return GL_FALSE;
11470 GLboolean NoContextGLApi::glIsShaderFn(GLuint shader) {
11471 NOTREACHED() << "Trying to call glIsShader() without current GL context";
11472 LOG(ERROR) << "Trying to call glIsShader() without current GL context";
11473 return GL_FALSE;
11476 GLboolean NoContextGLApi::glIsSyncFn(GLsync sync) {
11477 NOTREACHED() << "Trying to call glIsSync() without current GL context";
11478 LOG(ERROR) << "Trying to call glIsSync() without current GL context";
11479 return GL_FALSE;
11482 GLboolean NoContextGLApi::glIsTextureFn(GLuint texture) {
11483 NOTREACHED() << "Trying to call glIsTexture() without current GL context";
11484 LOG(ERROR) << "Trying to call glIsTexture() without current GL context";
11485 return GL_FALSE;
11488 GLboolean NoContextGLApi::glIsTransformFeedbackFn(GLuint id) {
11489 NOTREACHED()
11490 << "Trying to call glIsTransformFeedback() without current GL context";
11491 LOG(ERROR)
11492 << "Trying to call glIsTransformFeedback() without current GL context";
11493 return GL_FALSE;
11496 GLboolean NoContextGLApi::glIsVertexArrayOESFn(GLuint array) {
11497 NOTREACHED()
11498 << "Trying to call glIsVertexArrayOES() without current GL context";
11499 LOG(ERROR)
11500 << "Trying to call glIsVertexArrayOES() without current GL context";
11501 return GL_FALSE;
11504 void NoContextGLApi::glLineWidthFn(GLfloat width) {
11505 NOTREACHED() << "Trying to call glLineWidth() without current GL context";
11506 LOG(ERROR) << "Trying to call glLineWidth() without current GL context";
11509 void NoContextGLApi::glLinkProgramFn(GLuint program) {
11510 NOTREACHED() << "Trying to call glLinkProgram() without current GL context";
11511 LOG(ERROR) << "Trying to call glLinkProgram() without current GL context";
11514 void* NoContextGLApi::glMapBufferFn(GLenum target, GLenum access) {
11515 NOTREACHED() << "Trying to call glMapBuffer() without current GL context";
11516 LOG(ERROR) << "Trying to call glMapBuffer() without current GL context";
11517 return NULL;
11520 void* NoContextGLApi::glMapBufferRangeFn(GLenum target,
11521 GLintptr offset,
11522 GLsizeiptr length,
11523 GLbitfield access) {
11524 NOTREACHED()
11525 << "Trying to call glMapBufferRange() without current GL context";
11526 LOG(ERROR) << "Trying to call glMapBufferRange() without current GL context";
11527 return NULL;
11530 void NoContextGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
11531 NOTREACHED()
11532 << "Trying to call glMatrixLoadfEXT() without current GL context";
11533 LOG(ERROR) << "Trying to call glMatrixLoadfEXT() without current GL context";
11536 void NoContextGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
11537 NOTREACHED()
11538 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
11539 LOG(ERROR)
11540 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
11543 void NoContextGLApi::glPathCommandsNVFn(GLuint path,
11544 GLsizei numCommands,
11545 const GLubyte* commands,
11546 GLsizei numCoords,
11547 GLenum coordType,
11548 const GLvoid* coords) {
11549 NOTREACHED()
11550 << "Trying to call glPathCommandsNV() without current GL context";
11551 LOG(ERROR) << "Trying to call glPathCommandsNV() without current GL context";
11554 void NoContextGLApi::glPathParameterfNVFn(GLuint path,
11555 GLenum pname,
11556 GLfloat value) {
11557 NOTREACHED()
11558 << "Trying to call glPathParameterfNV() without current GL context";
11559 LOG(ERROR)
11560 << "Trying to call glPathParameterfNV() without current GL context";
11563 void NoContextGLApi::glPathParameteriNVFn(GLuint path,
11564 GLenum pname,
11565 GLint value) {
11566 NOTREACHED()
11567 << "Trying to call glPathParameteriNV() without current GL context";
11568 LOG(ERROR)
11569 << "Trying to call glPathParameteriNV() without current GL context";
11572 void NoContextGLApi::glPathStencilFuncNVFn(GLenum func,
11573 GLint ref,
11574 GLuint mask) {
11575 NOTREACHED()
11576 << "Trying to call glPathStencilFuncNV() without current GL context";
11577 LOG(ERROR)
11578 << "Trying to call glPathStencilFuncNV() without current GL context";
11581 void NoContextGLApi::glPauseTransformFeedbackFn(void) {
11582 NOTREACHED()
11583 << "Trying to call glPauseTransformFeedback() without current GL context";
11584 LOG(ERROR)
11585 << "Trying to call glPauseTransformFeedback() without current GL context";
11588 void NoContextGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
11589 NOTREACHED() << "Trying to call glPixelStorei() without current GL context";
11590 LOG(ERROR) << "Trying to call glPixelStorei() without current GL context";
11593 void NoContextGLApi::glPointParameteriFn(GLenum pname, GLint param) {
11594 NOTREACHED()
11595 << "Trying to call glPointParameteri() without current GL context";
11596 LOG(ERROR) << "Trying to call glPointParameteri() without current GL context";
11599 void NoContextGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
11600 NOTREACHED() << "Trying to call glPolygonOffset() without current GL context";
11601 LOG(ERROR) << "Trying to call glPolygonOffset() without current GL context";
11604 void NoContextGLApi::glPopGroupMarkerEXTFn(void) {
11605 NOTREACHED()
11606 << "Trying to call glPopGroupMarkerEXT() without current GL context";
11607 LOG(ERROR)
11608 << "Trying to call glPopGroupMarkerEXT() without current GL context";
11611 void NoContextGLApi::glProgramBinaryFn(GLuint program,
11612 GLenum binaryFormat,
11613 const GLvoid* binary,
11614 GLsizei length) {
11615 NOTREACHED() << "Trying to call glProgramBinary() without current GL context";
11616 LOG(ERROR) << "Trying to call glProgramBinary() without current GL context";
11619 void NoContextGLApi::glProgramParameteriFn(GLuint program,
11620 GLenum pname,
11621 GLint value) {
11622 NOTREACHED()
11623 << "Trying to call glProgramParameteri() without current GL context";
11624 LOG(ERROR)
11625 << "Trying to call glProgramParameteri() without current GL context";
11628 void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length,
11629 const char* marker) {
11630 NOTREACHED()
11631 << "Trying to call glPushGroupMarkerEXT() without current GL context";
11632 LOG(ERROR)
11633 << "Trying to call glPushGroupMarkerEXT() without current GL context";
11636 void NoContextGLApi::glQueryCounterFn(GLuint id, GLenum target) {
11637 NOTREACHED() << "Trying to call glQueryCounter() without current GL context";
11638 LOG(ERROR) << "Trying to call glQueryCounter() without current GL context";
11641 void NoContextGLApi::glReadBufferFn(GLenum src) {
11642 NOTREACHED() << "Trying to call glReadBuffer() without current GL context";
11643 LOG(ERROR) << "Trying to call glReadBuffer() without current GL context";
11646 void NoContextGLApi::glReadPixelsFn(GLint x,
11647 GLint y,
11648 GLsizei width,
11649 GLsizei height,
11650 GLenum format,
11651 GLenum type,
11652 void* pixels) {
11653 NOTREACHED() << "Trying to call glReadPixels() without current GL context";
11654 LOG(ERROR) << "Trying to call glReadPixels() without current GL context";
11657 void NoContextGLApi::glReleaseShaderCompilerFn(void) {
11658 NOTREACHED()
11659 << "Trying to call glReleaseShaderCompiler() without current GL context";
11660 LOG(ERROR)
11661 << "Trying to call glReleaseShaderCompiler() without current GL context";
11664 void NoContextGLApi::glRenderbufferStorageEXTFn(GLenum target,
11665 GLenum internalformat,
11666 GLsizei width,
11667 GLsizei height) {
11668 NOTREACHED()
11669 << "Trying to call glRenderbufferStorageEXT() without current GL context";
11670 LOG(ERROR)
11671 << "Trying to call glRenderbufferStorageEXT() without current GL context";
11674 void NoContextGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
11675 GLsizei samples,
11676 GLenum internalformat,
11677 GLsizei width,
11678 GLsizei height) {
11679 NOTREACHED() << "Trying to call glRenderbufferStorageMultisample() without "
11680 "current GL context";
11681 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisample() without "
11682 "current GL context";
11685 void NoContextGLApi::glRenderbufferStorageMultisampleANGLEFn(
11686 GLenum target,
11687 GLsizei samples,
11688 GLenum internalformat,
11689 GLsizei width,
11690 GLsizei height) {
11691 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleANGLE() "
11692 "without current GL context";
11693 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleANGLE() "
11694 "without current GL context";
11697 void NoContextGLApi::glRenderbufferStorageMultisampleEXTFn(
11698 GLenum target,
11699 GLsizei samples,
11700 GLenum internalformat,
11701 GLsizei width,
11702 GLsizei height) {
11703 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleEXT() "
11704 "without current GL context";
11705 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleEXT() without "
11706 "current GL context";
11709 void NoContextGLApi::glRenderbufferStorageMultisampleIMGFn(
11710 GLenum target,
11711 GLsizei samples,
11712 GLenum internalformat,
11713 GLsizei width,
11714 GLsizei height) {
11715 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleIMG() "
11716 "without current GL context";
11717 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleIMG() without "
11718 "current GL context";
11721 void NoContextGLApi::glResumeTransformFeedbackFn(void) {
11722 NOTREACHED() << "Trying to call glResumeTransformFeedback() without current "
11723 "GL context";
11724 LOG(ERROR) << "Trying to call glResumeTransformFeedback() without current GL "
11725 "context";
11728 void NoContextGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
11729 NOTREACHED()
11730 << "Trying to call glSampleCoverage() without current GL context";
11731 LOG(ERROR) << "Trying to call glSampleCoverage() without current GL context";
11734 void NoContextGLApi::glSamplerParameterfFn(GLuint sampler,
11735 GLenum pname,
11736 GLfloat param) {
11737 NOTREACHED()
11738 << "Trying to call glSamplerParameterf() without current GL context";
11739 LOG(ERROR)
11740 << "Trying to call glSamplerParameterf() without current GL context";
11743 void NoContextGLApi::glSamplerParameterfvFn(GLuint sampler,
11744 GLenum pname,
11745 const GLfloat* params) {
11746 NOTREACHED()
11747 << "Trying to call glSamplerParameterfv() without current GL context";
11748 LOG(ERROR)
11749 << "Trying to call glSamplerParameterfv() without current GL context";
11752 void NoContextGLApi::glSamplerParameteriFn(GLuint sampler,
11753 GLenum pname,
11754 GLint param) {
11755 NOTREACHED()
11756 << "Trying to call glSamplerParameteri() without current GL context";
11757 LOG(ERROR)
11758 << "Trying to call glSamplerParameteri() without current GL context";
11761 void NoContextGLApi::glSamplerParameterivFn(GLuint sampler,
11762 GLenum pname,
11763 const GLint* params) {
11764 NOTREACHED()
11765 << "Trying to call glSamplerParameteriv() without current GL context";
11766 LOG(ERROR)
11767 << "Trying to call glSamplerParameteriv() without current GL context";
11770 void NoContextGLApi::glScissorFn(GLint x,
11771 GLint y,
11772 GLsizei width,
11773 GLsizei height) {
11774 NOTREACHED() << "Trying to call glScissor() without current GL context";
11775 LOG(ERROR) << "Trying to call glScissor() without current GL context";
11778 void NoContextGLApi::glSetFenceAPPLEFn(GLuint fence) {
11779 NOTREACHED() << "Trying to call glSetFenceAPPLE() without current GL context";
11780 LOG(ERROR) << "Trying to call glSetFenceAPPLE() without current GL context";
11783 void NoContextGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
11784 NOTREACHED() << "Trying to call glSetFenceNV() without current GL context";
11785 LOG(ERROR) << "Trying to call glSetFenceNV() without current GL context";
11788 void NoContextGLApi::glShaderBinaryFn(GLsizei n,
11789 const GLuint* shaders,
11790 GLenum binaryformat,
11791 const void* binary,
11792 GLsizei length) {
11793 NOTREACHED() << "Trying to call glShaderBinary() without current GL context";
11794 LOG(ERROR) << "Trying to call glShaderBinary() without current GL context";
11797 void NoContextGLApi::glShaderSourceFn(GLuint shader,
11798 GLsizei count,
11799 const char* const* str,
11800 const GLint* length) {
11801 NOTREACHED() << "Trying to call glShaderSource() without current GL context";
11802 LOG(ERROR) << "Trying to call glShaderSource() without current GL context";
11805 void NoContextGLApi::glStencilFillPathNVFn(GLuint path,
11806 GLenum fillMode,
11807 GLuint mask) {
11808 NOTREACHED()
11809 << "Trying to call glStencilFillPathNV() without current GL context";
11810 LOG(ERROR)
11811 << "Trying to call glStencilFillPathNV() without current GL context";
11814 void NoContextGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
11815 NOTREACHED() << "Trying to call glStencilFunc() without current GL context";
11816 LOG(ERROR) << "Trying to call glStencilFunc() without current GL context";
11819 void NoContextGLApi::glStencilFuncSeparateFn(GLenum face,
11820 GLenum func,
11821 GLint ref,
11822 GLuint mask) {
11823 NOTREACHED()
11824 << "Trying to call glStencilFuncSeparate() without current GL context";
11825 LOG(ERROR)
11826 << "Trying to call glStencilFuncSeparate() without current GL context";
11829 void NoContextGLApi::glStencilMaskFn(GLuint mask) {
11830 NOTREACHED() << "Trying to call glStencilMask() without current GL context";
11831 LOG(ERROR) << "Trying to call glStencilMask() without current GL context";
11834 void NoContextGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
11835 NOTREACHED()
11836 << "Trying to call glStencilMaskSeparate() without current GL context";
11837 LOG(ERROR)
11838 << "Trying to call glStencilMaskSeparate() without current GL context";
11841 void NoContextGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
11842 NOTREACHED() << "Trying to call glStencilOp() without current GL context";
11843 LOG(ERROR) << "Trying to call glStencilOp() without current GL context";
11846 void NoContextGLApi::glStencilOpSeparateFn(GLenum face,
11847 GLenum fail,
11848 GLenum zfail,
11849 GLenum zpass) {
11850 NOTREACHED()
11851 << "Trying to call glStencilOpSeparate() without current GL context";
11852 LOG(ERROR)
11853 << "Trying to call glStencilOpSeparate() without current GL context";
11856 void NoContextGLApi::glStencilStrokePathNVFn(GLuint path,
11857 GLint reference,
11858 GLuint mask) {
11859 NOTREACHED()
11860 << "Trying to call glStencilStrokePathNV() without current GL context";
11861 LOG(ERROR)
11862 << "Trying to call glStencilStrokePathNV() without current GL context";
11865 void NoContextGLApi::glStencilThenCoverFillPathNVFn(GLuint path,
11866 GLenum fillMode,
11867 GLuint mask,
11868 GLenum coverMode) {
11869 NOTREACHED() << "Trying to call glStencilThenCoverFillPathNV() without "
11870 "current GL context";
11871 LOG(ERROR) << "Trying to call glStencilThenCoverFillPathNV() without current "
11872 "GL context";
11875 void NoContextGLApi::glStencilThenCoverStrokePathNVFn(GLuint path,
11876 GLint reference,
11877 GLuint mask,
11878 GLenum coverMode) {
11879 NOTREACHED() << "Trying to call glStencilThenCoverStrokePathNV() without "
11880 "current GL context";
11881 LOG(ERROR) << "Trying to call glStencilThenCoverStrokePathNV() without "
11882 "current GL context";
11885 GLboolean NoContextGLApi::glTestFenceAPPLEFn(GLuint fence) {
11886 NOTREACHED()
11887 << "Trying to call glTestFenceAPPLE() without current GL context";
11888 LOG(ERROR) << "Trying to call glTestFenceAPPLE() without current GL context";
11889 return GL_FALSE;
11892 GLboolean NoContextGLApi::glTestFenceNVFn(GLuint fence) {
11893 NOTREACHED() << "Trying to call glTestFenceNV() without current GL context";
11894 LOG(ERROR) << "Trying to call glTestFenceNV() without current GL context";
11895 return GL_FALSE;
11898 void NoContextGLApi::glTexImage2DFn(GLenum target,
11899 GLint level,
11900 GLint internalformat,
11901 GLsizei width,
11902 GLsizei height,
11903 GLint border,
11904 GLenum format,
11905 GLenum type,
11906 const void* pixels) {
11907 NOTREACHED() << "Trying to call glTexImage2D() without current GL context";
11908 LOG(ERROR) << "Trying to call glTexImage2D() without current GL context";
11911 void NoContextGLApi::glTexImage3DFn(GLenum target,
11912 GLint level,
11913 GLint internalformat,
11914 GLsizei width,
11915 GLsizei height,
11916 GLsizei depth,
11917 GLint border,
11918 GLenum format,
11919 GLenum type,
11920 const void* pixels) {
11921 NOTREACHED() << "Trying to call glTexImage3D() without current GL context";
11922 LOG(ERROR) << "Trying to call glTexImage3D() without current GL context";
11925 void NoContextGLApi::glTexParameterfFn(GLenum target,
11926 GLenum pname,
11927 GLfloat param) {
11928 NOTREACHED() << "Trying to call glTexParameterf() without current GL context";
11929 LOG(ERROR) << "Trying to call glTexParameterf() without current GL context";
11932 void NoContextGLApi::glTexParameterfvFn(GLenum target,
11933 GLenum pname,
11934 const GLfloat* params) {
11935 NOTREACHED()
11936 << "Trying to call glTexParameterfv() without current GL context";
11937 LOG(ERROR) << "Trying to call glTexParameterfv() without current GL context";
11940 void NoContextGLApi::glTexParameteriFn(GLenum target,
11941 GLenum pname,
11942 GLint param) {
11943 NOTREACHED() << "Trying to call glTexParameteri() without current GL context";
11944 LOG(ERROR) << "Trying to call glTexParameteri() without current GL context";
11947 void NoContextGLApi::glTexParameterivFn(GLenum target,
11948 GLenum pname,
11949 const GLint* params) {
11950 NOTREACHED()
11951 << "Trying to call glTexParameteriv() without current GL context";
11952 LOG(ERROR) << "Trying to call glTexParameteriv() without current GL context";
11955 void NoContextGLApi::glTexStorage2DEXTFn(GLenum target,
11956 GLsizei levels,
11957 GLenum internalformat,
11958 GLsizei width,
11959 GLsizei height) {
11960 NOTREACHED()
11961 << "Trying to call glTexStorage2DEXT() without current GL context";
11962 LOG(ERROR) << "Trying to call glTexStorage2DEXT() without current GL context";
11965 void NoContextGLApi::glTexStorage3DFn(GLenum target,
11966 GLsizei levels,
11967 GLenum internalformat,
11968 GLsizei width,
11969 GLsizei height,
11970 GLsizei depth) {
11971 NOTREACHED() << "Trying to call glTexStorage3D() without current GL context";
11972 LOG(ERROR) << "Trying to call glTexStorage3D() without current GL context";
11975 void NoContextGLApi::glTexSubImage2DFn(GLenum target,
11976 GLint level,
11977 GLint xoffset,
11978 GLint yoffset,
11979 GLsizei width,
11980 GLsizei height,
11981 GLenum format,
11982 GLenum type,
11983 const void* pixels) {
11984 NOTREACHED() << "Trying to call glTexSubImage2D() without current GL context";
11985 LOG(ERROR) << "Trying to call glTexSubImage2D() without current GL context";
11988 void NoContextGLApi::glTexSubImage3DFn(GLenum target,
11989 GLint level,
11990 GLint xoffset,
11991 GLint yoffset,
11992 GLint zoffset,
11993 GLsizei width,
11994 GLsizei height,
11995 GLsizei depth,
11996 GLenum format,
11997 GLenum type,
11998 const void* pixels) {
11999 NOTREACHED() << "Trying to call glTexSubImage3D() without current GL context";
12000 LOG(ERROR) << "Trying to call glTexSubImage3D() without current GL context";
12003 void NoContextGLApi::glTransformFeedbackVaryingsFn(GLuint program,
12004 GLsizei count,
12005 const char* const* varyings,
12006 GLenum bufferMode) {
12007 NOTREACHED() << "Trying to call glTransformFeedbackVaryings() without "
12008 "current GL context";
12009 LOG(ERROR) << "Trying to call glTransformFeedbackVaryings() without current "
12010 "GL context";
12013 void NoContextGLApi::glUniform1fFn(GLint location, GLfloat x) {
12014 NOTREACHED() << "Trying to call glUniform1f() without current GL context";
12015 LOG(ERROR) << "Trying to call glUniform1f() without current GL context";
12018 void NoContextGLApi::glUniform1fvFn(GLint location,
12019 GLsizei count,
12020 const GLfloat* v) {
12021 NOTREACHED() << "Trying to call glUniform1fv() without current GL context";
12022 LOG(ERROR) << "Trying to call glUniform1fv() without current GL context";
12025 void NoContextGLApi::glUniform1iFn(GLint location, GLint x) {
12026 NOTREACHED() << "Trying to call glUniform1i() without current GL context";
12027 LOG(ERROR) << "Trying to call glUniform1i() without current GL context";
12030 void NoContextGLApi::glUniform1ivFn(GLint location,
12031 GLsizei count,
12032 const GLint* v) {
12033 NOTREACHED() << "Trying to call glUniform1iv() without current GL context";
12034 LOG(ERROR) << "Trying to call glUniform1iv() without current GL context";
12037 void NoContextGLApi::glUniform1uiFn(GLint location, GLuint v0) {
12038 NOTREACHED() << "Trying to call glUniform1ui() without current GL context";
12039 LOG(ERROR) << "Trying to call glUniform1ui() without current GL context";
12042 void NoContextGLApi::glUniform1uivFn(GLint location,
12043 GLsizei count,
12044 const GLuint* v) {
12045 NOTREACHED() << "Trying to call glUniform1uiv() without current GL context";
12046 LOG(ERROR) << "Trying to call glUniform1uiv() without current GL context";
12049 void NoContextGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
12050 NOTREACHED() << "Trying to call glUniform2f() without current GL context";
12051 LOG(ERROR) << "Trying to call glUniform2f() without current GL context";
12054 void NoContextGLApi::glUniform2fvFn(GLint location,
12055 GLsizei count,
12056 const GLfloat* v) {
12057 NOTREACHED() << "Trying to call glUniform2fv() without current GL context";
12058 LOG(ERROR) << "Trying to call glUniform2fv() without current GL context";
12061 void NoContextGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
12062 NOTREACHED() << "Trying to call glUniform2i() without current GL context";
12063 LOG(ERROR) << "Trying to call glUniform2i() without current GL context";
12066 void NoContextGLApi::glUniform2ivFn(GLint location,
12067 GLsizei count,
12068 const GLint* v) {
12069 NOTREACHED() << "Trying to call glUniform2iv() without current GL context";
12070 LOG(ERROR) << "Trying to call glUniform2iv() without current GL context";
12073 void NoContextGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
12074 NOTREACHED() << "Trying to call glUniform2ui() without current GL context";
12075 LOG(ERROR) << "Trying to call glUniform2ui() without current GL context";
12078 void NoContextGLApi::glUniform2uivFn(GLint location,
12079 GLsizei count,
12080 const GLuint* v) {
12081 NOTREACHED() << "Trying to call glUniform2uiv() without current GL context";
12082 LOG(ERROR) << "Trying to call glUniform2uiv() without current GL context";
12085 void NoContextGLApi::glUniform3fFn(GLint location,
12086 GLfloat x,
12087 GLfloat y,
12088 GLfloat z) {
12089 NOTREACHED() << "Trying to call glUniform3f() without current GL context";
12090 LOG(ERROR) << "Trying to call glUniform3f() without current GL context";
12093 void NoContextGLApi::glUniform3fvFn(GLint location,
12094 GLsizei count,
12095 const GLfloat* v) {
12096 NOTREACHED() << "Trying to call glUniform3fv() without current GL context";
12097 LOG(ERROR) << "Trying to call glUniform3fv() without current GL context";
12100 void NoContextGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
12101 NOTREACHED() << "Trying to call glUniform3i() without current GL context";
12102 LOG(ERROR) << "Trying to call glUniform3i() without current GL context";
12105 void NoContextGLApi::glUniform3ivFn(GLint location,
12106 GLsizei count,
12107 const GLint* v) {
12108 NOTREACHED() << "Trying to call glUniform3iv() without current GL context";
12109 LOG(ERROR) << "Trying to call glUniform3iv() without current GL context";
12112 void NoContextGLApi::glUniform3uiFn(GLint location,
12113 GLuint v0,
12114 GLuint v1,
12115 GLuint v2) {
12116 NOTREACHED() << "Trying to call glUniform3ui() without current GL context";
12117 LOG(ERROR) << "Trying to call glUniform3ui() without current GL context";
12120 void NoContextGLApi::glUniform3uivFn(GLint location,
12121 GLsizei count,
12122 const GLuint* v) {
12123 NOTREACHED() << "Trying to call glUniform3uiv() without current GL context";
12124 LOG(ERROR) << "Trying to call glUniform3uiv() without current GL context";
12127 void NoContextGLApi::glUniform4fFn(GLint location,
12128 GLfloat x,
12129 GLfloat y,
12130 GLfloat z,
12131 GLfloat w) {
12132 NOTREACHED() << "Trying to call glUniform4f() without current GL context";
12133 LOG(ERROR) << "Trying to call glUniform4f() without current GL context";
12136 void NoContextGLApi::glUniform4fvFn(GLint location,
12137 GLsizei count,
12138 const GLfloat* v) {
12139 NOTREACHED() << "Trying to call glUniform4fv() without current GL context";
12140 LOG(ERROR) << "Trying to call glUniform4fv() without current GL context";
12143 void NoContextGLApi::glUniform4iFn(GLint location,
12144 GLint x,
12145 GLint y,
12146 GLint z,
12147 GLint w) {
12148 NOTREACHED() << "Trying to call glUniform4i() without current GL context";
12149 LOG(ERROR) << "Trying to call glUniform4i() without current GL context";
12152 void NoContextGLApi::glUniform4ivFn(GLint location,
12153 GLsizei count,
12154 const GLint* v) {
12155 NOTREACHED() << "Trying to call glUniform4iv() without current GL context";
12156 LOG(ERROR) << "Trying to call glUniform4iv() without current GL context";
12159 void NoContextGLApi::glUniform4uiFn(GLint location,
12160 GLuint v0,
12161 GLuint v1,
12162 GLuint v2,
12163 GLuint v3) {
12164 NOTREACHED() << "Trying to call glUniform4ui() without current GL context";
12165 LOG(ERROR) << "Trying to call glUniform4ui() without current GL context";
12168 void NoContextGLApi::glUniform4uivFn(GLint location,
12169 GLsizei count,
12170 const GLuint* v) {
12171 NOTREACHED() << "Trying to call glUniform4uiv() without current GL context";
12172 LOG(ERROR) << "Trying to call glUniform4uiv() without current GL context";
12175 void NoContextGLApi::glUniformBlockBindingFn(GLuint program,
12176 GLuint uniformBlockIndex,
12177 GLuint uniformBlockBinding) {
12178 NOTREACHED()
12179 << "Trying to call glUniformBlockBinding() without current GL context";
12180 LOG(ERROR)
12181 << "Trying to call glUniformBlockBinding() without current GL context";
12184 void NoContextGLApi::glUniformMatrix2fvFn(GLint location,
12185 GLsizei count,
12186 GLboolean transpose,
12187 const GLfloat* value) {
12188 NOTREACHED()
12189 << "Trying to call glUniformMatrix2fv() without current GL context";
12190 LOG(ERROR)
12191 << "Trying to call glUniformMatrix2fv() without current GL context";
12194 void NoContextGLApi::glUniformMatrix2x3fvFn(GLint location,
12195 GLsizei count,
12196 GLboolean transpose,
12197 const GLfloat* value) {
12198 NOTREACHED()
12199 << "Trying to call glUniformMatrix2x3fv() without current GL context";
12200 LOG(ERROR)
12201 << "Trying to call glUniformMatrix2x3fv() without current GL context";
12204 void NoContextGLApi::glUniformMatrix2x4fvFn(GLint location,
12205 GLsizei count,
12206 GLboolean transpose,
12207 const GLfloat* value) {
12208 NOTREACHED()
12209 << "Trying to call glUniformMatrix2x4fv() without current GL context";
12210 LOG(ERROR)
12211 << "Trying to call glUniformMatrix2x4fv() without current GL context";
12214 void NoContextGLApi::glUniformMatrix3fvFn(GLint location,
12215 GLsizei count,
12216 GLboolean transpose,
12217 const GLfloat* value) {
12218 NOTREACHED()
12219 << "Trying to call glUniformMatrix3fv() without current GL context";
12220 LOG(ERROR)
12221 << "Trying to call glUniformMatrix3fv() without current GL context";
12224 void NoContextGLApi::glUniformMatrix3x2fvFn(GLint location,
12225 GLsizei count,
12226 GLboolean transpose,
12227 const GLfloat* value) {
12228 NOTREACHED()
12229 << "Trying to call glUniformMatrix3x2fv() without current GL context";
12230 LOG(ERROR)
12231 << "Trying to call glUniformMatrix3x2fv() without current GL context";
12234 void NoContextGLApi::glUniformMatrix3x4fvFn(GLint location,
12235 GLsizei count,
12236 GLboolean transpose,
12237 const GLfloat* value) {
12238 NOTREACHED()
12239 << "Trying to call glUniformMatrix3x4fv() without current GL context";
12240 LOG(ERROR)
12241 << "Trying to call glUniformMatrix3x4fv() without current GL context";
12244 void NoContextGLApi::glUniformMatrix4fvFn(GLint location,
12245 GLsizei count,
12246 GLboolean transpose,
12247 const GLfloat* value) {
12248 NOTREACHED()
12249 << "Trying to call glUniformMatrix4fv() without current GL context";
12250 LOG(ERROR)
12251 << "Trying to call glUniformMatrix4fv() without current GL context";
12254 void NoContextGLApi::glUniformMatrix4x2fvFn(GLint location,
12255 GLsizei count,
12256 GLboolean transpose,
12257 const GLfloat* value) {
12258 NOTREACHED()
12259 << "Trying to call glUniformMatrix4x2fv() without current GL context";
12260 LOG(ERROR)
12261 << "Trying to call glUniformMatrix4x2fv() without current GL context";
12264 void NoContextGLApi::glUniformMatrix4x3fvFn(GLint location,
12265 GLsizei count,
12266 GLboolean transpose,
12267 const GLfloat* value) {
12268 NOTREACHED()
12269 << "Trying to call glUniformMatrix4x3fv() without current GL context";
12270 LOG(ERROR)
12271 << "Trying to call glUniformMatrix4x3fv() without current GL context";
12274 GLboolean NoContextGLApi::glUnmapBufferFn(GLenum target) {
12275 NOTREACHED() << "Trying to call glUnmapBuffer() without current GL context";
12276 LOG(ERROR) << "Trying to call glUnmapBuffer() without current GL context";
12277 return GL_FALSE;
12280 void NoContextGLApi::glUseProgramFn(GLuint program) {
12281 NOTREACHED() << "Trying to call glUseProgram() without current GL context";
12282 LOG(ERROR) << "Trying to call glUseProgram() without current GL context";
12285 void NoContextGLApi::glValidateProgramFn(GLuint program) {
12286 NOTREACHED()
12287 << "Trying to call glValidateProgram() without current GL context";
12288 LOG(ERROR) << "Trying to call glValidateProgram() without current GL context";
12291 void NoContextGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
12292 NOTREACHED()
12293 << "Trying to call glVertexAttrib1f() without current GL context";
12294 LOG(ERROR) << "Trying to call glVertexAttrib1f() without current GL context";
12297 void NoContextGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
12298 NOTREACHED()
12299 << "Trying to call glVertexAttrib1fv() without current GL context";
12300 LOG(ERROR) << "Trying to call glVertexAttrib1fv() without current GL context";
12303 void NoContextGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
12304 NOTREACHED()
12305 << "Trying to call glVertexAttrib2f() without current GL context";
12306 LOG(ERROR) << "Trying to call glVertexAttrib2f() without current GL context";
12309 void NoContextGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
12310 NOTREACHED()
12311 << "Trying to call glVertexAttrib2fv() without current GL context";
12312 LOG(ERROR) << "Trying to call glVertexAttrib2fv() without current GL context";
12315 void NoContextGLApi::glVertexAttrib3fFn(GLuint indx,
12316 GLfloat x,
12317 GLfloat y,
12318 GLfloat z) {
12319 NOTREACHED()
12320 << "Trying to call glVertexAttrib3f() without current GL context";
12321 LOG(ERROR) << "Trying to call glVertexAttrib3f() without current GL context";
12324 void NoContextGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
12325 NOTREACHED()
12326 << "Trying to call glVertexAttrib3fv() without current GL context";
12327 LOG(ERROR) << "Trying to call glVertexAttrib3fv() without current GL context";
12330 void NoContextGLApi::glVertexAttrib4fFn(GLuint indx,
12331 GLfloat x,
12332 GLfloat y,
12333 GLfloat z,
12334 GLfloat w) {
12335 NOTREACHED()
12336 << "Trying to call glVertexAttrib4f() without current GL context";
12337 LOG(ERROR) << "Trying to call glVertexAttrib4f() without current GL context";
12340 void NoContextGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
12341 NOTREACHED()
12342 << "Trying to call glVertexAttrib4fv() without current GL context";
12343 LOG(ERROR) << "Trying to call glVertexAttrib4fv() without current GL context";
12346 void NoContextGLApi::glVertexAttribDivisorANGLEFn(GLuint index,
12347 GLuint divisor) {
12348 NOTREACHED() << "Trying to call glVertexAttribDivisorANGLE() without current "
12349 "GL context";
12350 LOG(ERROR) << "Trying to call glVertexAttribDivisorANGLE() without current "
12351 "GL context";
12354 void NoContextGLApi::glVertexAttribI4iFn(GLuint indx,
12355 GLint x,
12356 GLint y,
12357 GLint z,
12358 GLint w) {
12359 NOTREACHED()
12360 << "Trying to call glVertexAttribI4i() without current GL context";
12361 LOG(ERROR) << "Trying to call glVertexAttribI4i() without current GL context";
12364 void NoContextGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
12365 NOTREACHED()
12366 << "Trying to call glVertexAttribI4iv() without current GL context";
12367 LOG(ERROR)
12368 << "Trying to call glVertexAttribI4iv() without current GL context";
12371 void NoContextGLApi::glVertexAttribI4uiFn(GLuint indx,
12372 GLuint x,
12373 GLuint y,
12374 GLuint z,
12375 GLuint w) {
12376 NOTREACHED()
12377 << "Trying to call glVertexAttribI4ui() without current GL context";
12378 LOG(ERROR)
12379 << "Trying to call glVertexAttribI4ui() without current GL context";
12382 void NoContextGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
12383 NOTREACHED()
12384 << "Trying to call glVertexAttribI4uiv() without current GL context";
12385 LOG(ERROR)
12386 << "Trying to call glVertexAttribI4uiv() without current GL context";
12389 void NoContextGLApi::glVertexAttribIPointerFn(GLuint indx,
12390 GLint size,
12391 GLenum type,
12392 GLsizei stride,
12393 const void* ptr) {
12394 NOTREACHED()
12395 << "Trying to call glVertexAttribIPointer() without current GL context";
12396 LOG(ERROR)
12397 << "Trying to call glVertexAttribIPointer() without current GL context";
12400 void NoContextGLApi::glVertexAttribPointerFn(GLuint indx,
12401 GLint size,
12402 GLenum type,
12403 GLboolean normalized,
12404 GLsizei stride,
12405 const void* ptr) {
12406 NOTREACHED()
12407 << "Trying to call glVertexAttribPointer() without current GL context";
12408 LOG(ERROR)
12409 << "Trying to call glVertexAttribPointer() without current GL context";
12412 void NoContextGLApi::glViewportFn(GLint x,
12413 GLint y,
12414 GLsizei width,
12415 GLsizei height) {
12416 NOTREACHED() << "Trying to call glViewport() without current GL context";
12417 LOG(ERROR) << "Trying to call glViewport() without current GL context";
12420 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync,
12421 GLbitfield flags,
12422 GLuint64 timeout) {
12423 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
12424 LOG(ERROR) << "Trying to call glWaitSync() without current GL context";
12425 return static_cast<GLenum>(0);
12428 } // namespace gfx