ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / ui / gl / gl_bindings_autogen_gl.cc
bloba65571792c964590d857c31a8ce513035b300b50
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.glBeginQueryARBFn = 0;
33 fn.glBeginTransformFeedbackFn = 0;
34 fn.glBindAttribLocationFn = reinterpret_cast<glBindAttribLocationProc>(
35 GetGLProcAddress("glBindAttribLocation"));
36 fn.glBindBufferFn =
37 reinterpret_cast<glBindBufferProc>(GetGLProcAddress("glBindBuffer"));
38 fn.glBindBufferBaseFn = 0;
39 fn.glBindBufferRangeFn = 0;
40 fn.glBindFragDataLocationFn = 0;
41 fn.glBindFragDataLocationIndexedFn = 0;
42 fn.glBindFramebufferEXTFn = 0;
43 fn.glBindRenderbufferEXTFn = 0;
44 fn.glBindSamplerFn = 0;
45 fn.glBindTextureFn =
46 reinterpret_cast<glBindTextureProc>(GetGLProcAddress("glBindTexture"));
47 fn.glBindTransformFeedbackFn = 0;
48 fn.glBindVertexArrayOESFn = 0;
49 fn.glBlendBarrierKHRFn = 0;
50 fn.glBlendColorFn =
51 reinterpret_cast<glBlendColorProc>(GetGLProcAddress("glBlendColor"));
52 fn.glBlendEquationFn = reinterpret_cast<glBlendEquationProc>(
53 GetGLProcAddress("glBlendEquation"));
54 fn.glBlendEquationSeparateFn = reinterpret_cast<glBlendEquationSeparateProc>(
55 GetGLProcAddress("glBlendEquationSeparate"));
56 fn.glBlendFuncFn =
57 reinterpret_cast<glBlendFuncProc>(GetGLProcAddress("glBlendFunc"));
58 fn.glBlendFuncSeparateFn = reinterpret_cast<glBlendFuncSeparateProc>(
59 GetGLProcAddress("glBlendFuncSeparate"));
60 fn.glBlitFramebufferFn = 0;
61 fn.glBlitFramebufferANGLEFn = 0;
62 fn.glBlitFramebufferEXTFn = 0;
63 fn.glBufferDataFn =
64 reinterpret_cast<glBufferDataProc>(GetGLProcAddress("glBufferData"));
65 fn.glBufferSubDataFn = reinterpret_cast<glBufferSubDataProc>(
66 GetGLProcAddress("glBufferSubData"));
67 fn.glCheckFramebufferStatusEXTFn = 0;
68 fn.glClearFn = reinterpret_cast<glClearProc>(GetGLProcAddress("glClear"));
69 fn.glClearBufferfiFn = 0;
70 fn.glClearBufferfvFn = 0;
71 fn.glClearBufferivFn = 0;
72 fn.glClearBufferuivFn = 0;
73 fn.glClearColorFn =
74 reinterpret_cast<glClearColorProc>(GetGLProcAddress("glClearColor"));
75 fn.glClearDepthFn =
76 reinterpret_cast<glClearDepthProc>(GetGLProcAddress("glClearDepth"));
77 fn.glClearDepthfFn = 0;
78 fn.glClearStencilFn =
79 reinterpret_cast<glClearStencilProc>(GetGLProcAddress("glClearStencil"));
80 fn.glClientWaitSyncFn = 0;
81 fn.glColorMaskFn =
82 reinterpret_cast<glColorMaskProc>(GetGLProcAddress("glColorMask"));
83 fn.glCompileShaderFn = reinterpret_cast<glCompileShaderProc>(
84 GetGLProcAddress("glCompileShader"));
85 fn.glCompressedTexImage2DFn = reinterpret_cast<glCompressedTexImage2DProc>(
86 GetGLProcAddress("glCompressedTexImage2D"));
87 fn.glCompressedTexImage3DFn = 0;
88 fn.glCompressedTexSubImage2DFn =
89 reinterpret_cast<glCompressedTexSubImage2DProc>(
90 GetGLProcAddress("glCompressedTexSubImage2D"));
91 fn.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.glCreateProgramFn = reinterpret_cast<glCreateProgramProc>(
98 GetGLProcAddress("glCreateProgram"));
99 fn.glCreateShaderFn =
100 reinterpret_cast<glCreateShaderProc>(GetGLProcAddress("glCreateShader"));
101 fn.glCullFaceFn =
102 reinterpret_cast<glCullFaceProc>(GetGLProcAddress("glCullFace"));
103 fn.glDeleteBuffersARBFn = reinterpret_cast<glDeleteBuffersARBProc>(
104 GetGLProcAddress("glDeleteBuffers"));
105 fn.glDeleteFencesAPPLEFn = 0;
106 fn.glDeleteFencesNVFn = 0;
107 fn.glDeleteFramebuffersEXTFn = 0;
108 fn.glDeleteProgramFn = reinterpret_cast<glDeleteProgramProc>(
109 GetGLProcAddress("glDeleteProgram"));
110 fn.glDeleteQueriesFn = 0;
111 fn.glDeleteQueriesARBFn = 0;
112 fn.glDeleteRenderbuffersEXTFn = 0;
113 fn.glDeleteSamplersFn = 0;
114 fn.glDeleteShaderFn =
115 reinterpret_cast<glDeleteShaderProc>(GetGLProcAddress("glDeleteShader"));
116 fn.glDeleteSyncFn = 0;
117 fn.glDeleteTexturesFn = reinterpret_cast<glDeleteTexturesProc>(
118 GetGLProcAddress("glDeleteTextures"));
119 fn.glDeleteTransformFeedbacksFn = 0;
120 fn.glDeleteVertexArraysOESFn = 0;
121 fn.glDepthFuncFn =
122 reinterpret_cast<glDepthFuncProc>(GetGLProcAddress("glDepthFunc"));
123 fn.glDepthMaskFn =
124 reinterpret_cast<glDepthMaskProc>(GetGLProcAddress("glDepthMask"));
125 fn.glDepthRangeFn =
126 reinterpret_cast<glDepthRangeProc>(GetGLProcAddress("glDepthRange"));
127 fn.glDepthRangefFn = 0;
128 fn.glDetachShaderFn =
129 reinterpret_cast<glDetachShaderProc>(GetGLProcAddress("glDetachShader"));
130 fn.glDisableFn =
131 reinterpret_cast<glDisableProc>(GetGLProcAddress("glDisable"));
132 fn.glDisableVertexAttribArrayFn =
133 reinterpret_cast<glDisableVertexAttribArrayProc>(
134 GetGLProcAddress("glDisableVertexAttribArray"));
135 fn.glDiscardFramebufferEXTFn = 0;
136 fn.glDrawArraysFn =
137 reinterpret_cast<glDrawArraysProc>(GetGLProcAddress("glDrawArrays"));
138 fn.glDrawArraysInstancedANGLEFn = 0;
139 fn.glDrawBufferFn = 0;
140 fn.glDrawBuffersARBFn = 0;
141 fn.glDrawElementsFn =
142 reinterpret_cast<glDrawElementsProc>(GetGLProcAddress("glDrawElements"));
143 fn.glDrawElementsInstancedANGLEFn = 0;
144 fn.glDrawRangeElementsFn = 0;
145 fn.glEGLImageTargetRenderbufferStorageOESFn = 0;
146 fn.glEGLImageTargetTexture2DOESFn = 0;
147 fn.glEnableFn = reinterpret_cast<glEnableProc>(GetGLProcAddress("glEnable"));
148 fn.glEnableVertexAttribArrayFn =
149 reinterpret_cast<glEnableVertexAttribArrayProc>(
150 GetGLProcAddress("glEnableVertexAttribArray"));
151 fn.glEndQueryFn = 0;
152 fn.glEndQueryARBFn = 0;
153 fn.glEndTransformFeedbackFn = 0;
154 fn.glFenceSyncFn = 0;
155 fn.glFinishFn = reinterpret_cast<glFinishProc>(GetGLProcAddress("glFinish"));
156 fn.glFinishFenceAPPLEFn = 0;
157 fn.glFinishFenceNVFn = 0;
158 fn.glFlushFn = reinterpret_cast<glFlushProc>(GetGLProcAddress("glFlush"));
159 fn.glFlushMappedBufferRangeFn = 0;
160 fn.glFramebufferRenderbufferEXTFn = 0;
161 fn.glFramebufferTexture2DEXTFn = 0;
162 fn.glFramebufferTexture2DMultisampleEXTFn = 0;
163 fn.glFramebufferTexture2DMultisampleIMGFn = 0;
164 fn.glFramebufferTextureLayerFn = 0;
165 fn.glFrontFaceFn =
166 reinterpret_cast<glFrontFaceProc>(GetGLProcAddress("glFrontFace"));
167 fn.glGenBuffersARBFn =
168 reinterpret_cast<glGenBuffersARBProc>(GetGLProcAddress("glGenBuffers"));
169 fn.glGenerateMipmapEXTFn = 0;
170 fn.glGenFencesAPPLEFn = 0;
171 fn.glGenFencesNVFn = 0;
172 fn.glGenFramebuffersEXTFn = 0;
173 fn.glGenQueriesFn = 0;
174 fn.glGenQueriesARBFn = 0;
175 fn.glGenRenderbuffersEXTFn = 0;
176 fn.glGenSamplersFn = 0;
177 fn.glGenTexturesFn =
178 reinterpret_cast<glGenTexturesProc>(GetGLProcAddress("glGenTextures"));
179 fn.glGenTransformFeedbacksFn = 0;
180 fn.glGenVertexArraysOESFn = 0;
181 fn.glGetActiveAttribFn = reinterpret_cast<glGetActiveAttribProc>(
182 GetGLProcAddress("glGetActiveAttrib"));
183 fn.glGetActiveUniformFn = reinterpret_cast<glGetActiveUniformProc>(
184 GetGLProcAddress("glGetActiveUniform"));
185 fn.glGetActiveUniformBlockivFn = 0;
186 fn.glGetActiveUniformBlockNameFn = 0;
187 fn.glGetActiveUniformsivFn = 0;
188 fn.glGetAttachedShadersFn = reinterpret_cast<glGetAttachedShadersProc>(
189 GetGLProcAddress("glGetAttachedShaders"));
190 fn.glGetAttribLocationFn = reinterpret_cast<glGetAttribLocationProc>(
191 GetGLProcAddress("glGetAttribLocation"));
192 fn.glGetBooleanvFn =
193 reinterpret_cast<glGetBooleanvProc>(GetGLProcAddress("glGetBooleanv"));
194 fn.glGetBufferParameterivFn = reinterpret_cast<glGetBufferParameterivProc>(
195 GetGLProcAddress("glGetBufferParameteriv"));
196 fn.glGetErrorFn =
197 reinterpret_cast<glGetErrorProc>(GetGLProcAddress("glGetError"));
198 fn.glGetFenceivNVFn = 0;
199 fn.glGetFloatvFn =
200 reinterpret_cast<glGetFloatvProc>(GetGLProcAddress("glGetFloatv"));
201 fn.glGetFragDataLocationFn = 0;
202 fn.glGetFramebufferAttachmentParameterivEXTFn = 0;
203 fn.glGetGraphicsResetStatusARBFn = 0;
204 fn.glGetInteger64i_vFn = 0;
205 fn.glGetInteger64vFn = 0;
206 fn.glGetIntegeri_vFn = 0;
207 fn.glGetIntegervFn =
208 reinterpret_cast<glGetIntegervProc>(GetGLProcAddress("glGetIntegerv"));
209 fn.glGetInternalformativFn = 0;
210 fn.glGetProgramBinaryFn = 0;
211 fn.glGetProgramInfoLogFn = reinterpret_cast<glGetProgramInfoLogProc>(
212 GetGLProcAddress("glGetProgramInfoLog"));
213 fn.glGetProgramivFn =
214 reinterpret_cast<glGetProgramivProc>(GetGLProcAddress("glGetProgramiv"));
215 fn.glGetProgramResourceLocationFn = 0;
216 fn.glGetQueryivFn = 0;
217 fn.glGetQueryivARBFn = 0;
218 fn.glGetQueryObjecti64vFn = 0;
219 fn.glGetQueryObjectivFn = 0;
220 fn.glGetQueryObjectivARBFn = 0;
221 fn.glGetQueryObjectui64vFn = 0;
222 fn.glGetQueryObjectuivFn = 0;
223 fn.glGetQueryObjectuivARBFn = 0;
224 fn.glGetRenderbufferParameterivEXTFn = 0;
225 fn.glGetSamplerParameterfvFn = 0;
226 fn.glGetSamplerParameterivFn = 0;
227 fn.glGetShaderInfoLogFn = reinterpret_cast<glGetShaderInfoLogProc>(
228 GetGLProcAddress("glGetShaderInfoLog"));
229 fn.glGetShaderivFn =
230 reinterpret_cast<glGetShaderivProc>(GetGLProcAddress("glGetShaderiv"));
231 fn.glGetShaderPrecisionFormatFn = 0;
232 fn.glGetShaderSourceFn = reinterpret_cast<glGetShaderSourceProc>(
233 GetGLProcAddress("glGetShaderSource"));
234 fn.glGetStringFn =
235 reinterpret_cast<glGetStringProc>(GetGLProcAddress("glGetString"));
236 fn.glGetStringiFn = 0;
237 fn.glGetSyncivFn = 0;
238 fn.glGetTexLevelParameterfvFn = 0;
239 fn.glGetTexLevelParameterivFn = 0;
240 fn.glGetTexParameterfvFn = reinterpret_cast<glGetTexParameterfvProc>(
241 GetGLProcAddress("glGetTexParameterfv"));
242 fn.glGetTexParameterivFn = reinterpret_cast<glGetTexParameterivProc>(
243 GetGLProcAddress("glGetTexParameteriv"));
244 fn.glGetTransformFeedbackVaryingFn = 0;
245 fn.glGetTranslatedShaderSourceANGLEFn = 0;
246 fn.glGetUniformBlockIndexFn = 0;
247 fn.glGetUniformfvFn =
248 reinterpret_cast<glGetUniformfvProc>(GetGLProcAddress("glGetUniformfv"));
249 fn.glGetUniformIndicesFn = 0;
250 fn.glGetUniformivFn =
251 reinterpret_cast<glGetUniformivProc>(GetGLProcAddress("glGetUniformiv"));
252 fn.glGetUniformLocationFn = reinterpret_cast<glGetUniformLocationProc>(
253 GetGLProcAddress("glGetUniformLocation"));
254 fn.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.glIsProgramFn =
273 reinterpret_cast<glIsProgramProc>(GetGLProcAddress("glIsProgram"));
274 fn.glIsQueryFn = 0;
275 fn.glIsQueryARBFn = 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.glPauseTransformFeedbackFn = 0;
294 fn.glPixelStoreiFn =
295 reinterpret_cast<glPixelStoreiProc>(GetGLProcAddress("glPixelStorei"));
296 fn.glPointParameteriFn = 0;
297 fn.glPolygonOffsetFn = reinterpret_cast<glPolygonOffsetProc>(
298 GetGLProcAddress("glPolygonOffset"));
299 fn.glPopGroupMarkerEXTFn = 0;
300 fn.glProgramBinaryFn = 0;
301 fn.glProgramParameteriFn = 0;
302 fn.glPushGroupMarkerEXTFn = 0;
303 fn.glQueryCounterFn = 0;
304 fn.glReadBufferFn = 0;
305 fn.glReadPixelsFn =
306 reinterpret_cast<glReadPixelsProc>(GetGLProcAddress("glReadPixels"));
307 fn.glReleaseShaderCompilerFn = 0;
308 fn.glRenderbufferStorageEXTFn = 0;
309 fn.glRenderbufferStorageMultisampleFn = 0;
310 fn.glRenderbufferStorageMultisampleANGLEFn = 0;
311 fn.glRenderbufferStorageMultisampleEXTFn = 0;
312 fn.glRenderbufferStorageMultisampleIMGFn = 0;
313 fn.glResumeTransformFeedbackFn = 0;
314 fn.glSampleCoverageFn = reinterpret_cast<glSampleCoverageProc>(
315 GetGLProcAddress("glSampleCoverage"));
316 fn.glSamplerParameterfFn = 0;
317 fn.glSamplerParameterfvFn = 0;
318 fn.glSamplerParameteriFn = 0;
319 fn.glSamplerParameterivFn = 0;
320 fn.glScissorFn =
321 reinterpret_cast<glScissorProc>(GetGLProcAddress("glScissor"));
322 fn.glSetFenceAPPLEFn = 0;
323 fn.glSetFenceNVFn = 0;
324 fn.glShaderBinaryFn = 0;
325 fn.glShaderSourceFn =
326 reinterpret_cast<glShaderSourceProc>(GetGLProcAddress("glShaderSource"));
327 fn.glStencilFuncFn =
328 reinterpret_cast<glStencilFuncProc>(GetGLProcAddress("glStencilFunc"));
329 fn.glStencilFuncSeparateFn = reinterpret_cast<glStencilFuncSeparateProc>(
330 GetGLProcAddress("glStencilFuncSeparate"));
331 fn.glStencilMaskFn =
332 reinterpret_cast<glStencilMaskProc>(GetGLProcAddress("glStencilMask"));
333 fn.glStencilMaskSeparateFn = reinterpret_cast<glStencilMaskSeparateProc>(
334 GetGLProcAddress("glStencilMaskSeparate"));
335 fn.glStencilOpFn =
336 reinterpret_cast<glStencilOpProc>(GetGLProcAddress("glStencilOp"));
337 fn.glStencilOpSeparateFn = reinterpret_cast<glStencilOpSeparateProc>(
338 GetGLProcAddress("glStencilOpSeparate"));
339 fn.glTestFenceAPPLEFn = 0;
340 fn.glTestFenceNVFn = 0;
341 fn.glTexImage2DFn =
342 reinterpret_cast<glTexImage2DProc>(GetGLProcAddress("glTexImage2D"));
343 fn.glTexImage3DFn = 0;
344 fn.glTexParameterfFn = reinterpret_cast<glTexParameterfProc>(
345 GetGLProcAddress("glTexParameterf"));
346 fn.glTexParameterfvFn = reinterpret_cast<glTexParameterfvProc>(
347 GetGLProcAddress("glTexParameterfv"));
348 fn.glTexParameteriFn = reinterpret_cast<glTexParameteriProc>(
349 GetGLProcAddress("glTexParameteri"));
350 fn.glTexParameterivFn = reinterpret_cast<glTexParameterivProc>(
351 GetGLProcAddress("glTexParameteriv"));
352 fn.glTexStorage2DEXTFn = 0;
353 fn.glTexStorage3DFn = 0;
354 fn.glTexSubImage2DFn = reinterpret_cast<glTexSubImage2DProc>(
355 GetGLProcAddress("glTexSubImage2D"));
356 fn.glTransformFeedbackVaryingsFn = 0;
357 fn.glUniform1fFn =
358 reinterpret_cast<glUniform1fProc>(GetGLProcAddress("glUniform1f"));
359 fn.glUniform1fvFn =
360 reinterpret_cast<glUniform1fvProc>(GetGLProcAddress("glUniform1fv"));
361 fn.glUniform1iFn =
362 reinterpret_cast<glUniform1iProc>(GetGLProcAddress("glUniform1i"));
363 fn.glUniform1ivFn =
364 reinterpret_cast<glUniform1ivProc>(GetGLProcAddress("glUniform1iv"));
365 fn.glUniform1uiFn = 0;
366 fn.glUniform1uivFn = 0;
367 fn.glUniform2fFn =
368 reinterpret_cast<glUniform2fProc>(GetGLProcAddress("glUniform2f"));
369 fn.glUniform2fvFn =
370 reinterpret_cast<glUniform2fvProc>(GetGLProcAddress("glUniform2fv"));
371 fn.glUniform2iFn =
372 reinterpret_cast<glUniform2iProc>(GetGLProcAddress("glUniform2i"));
373 fn.glUniform2ivFn =
374 reinterpret_cast<glUniform2ivProc>(GetGLProcAddress("glUniform2iv"));
375 fn.glUniform2uiFn = 0;
376 fn.glUniform2uivFn = 0;
377 fn.glUniform3fFn =
378 reinterpret_cast<glUniform3fProc>(GetGLProcAddress("glUniform3f"));
379 fn.glUniform3fvFn =
380 reinterpret_cast<glUniform3fvProc>(GetGLProcAddress("glUniform3fv"));
381 fn.glUniform3iFn =
382 reinterpret_cast<glUniform3iProc>(GetGLProcAddress("glUniform3i"));
383 fn.glUniform3ivFn =
384 reinterpret_cast<glUniform3ivProc>(GetGLProcAddress("glUniform3iv"));
385 fn.glUniform3uiFn = 0;
386 fn.glUniform3uivFn = 0;
387 fn.glUniform4fFn =
388 reinterpret_cast<glUniform4fProc>(GetGLProcAddress("glUniform4f"));
389 fn.glUniform4fvFn =
390 reinterpret_cast<glUniform4fvProc>(GetGLProcAddress("glUniform4fv"));
391 fn.glUniform4iFn =
392 reinterpret_cast<glUniform4iProc>(GetGLProcAddress("glUniform4i"));
393 fn.glUniform4ivFn =
394 reinterpret_cast<glUniform4ivProc>(GetGLProcAddress("glUniform4iv"));
395 fn.glUniform4uiFn = 0;
396 fn.glUniform4uivFn = 0;
397 fn.glUniformBlockBindingFn = 0;
398 fn.glUniformMatrix2fvFn = reinterpret_cast<glUniformMatrix2fvProc>(
399 GetGLProcAddress("glUniformMatrix2fv"));
400 fn.glUniformMatrix2x3fvFn = 0;
401 fn.glUniformMatrix2x4fvFn = 0;
402 fn.glUniformMatrix3fvFn = reinterpret_cast<glUniformMatrix3fvProc>(
403 GetGLProcAddress("glUniformMatrix3fv"));
404 fn.glUniformMatrix3x2fvFn = 0;
405 fn.glUniformMatrix3x4fvFn = 0;
406 fn.glUniformMatrix4fvFn = reinterpret_cast<glUniformMatrix4fvProc>(
407 GetGLProcAddress("glUniformMatrix4fv"));
408 fn.glUniformMatrix4x2fvFn = 0;
409 fn.glUniformMatrix4x3fvFn = 0;
410 fn.glUnmapBufferFn = 0;
411 fn.glUseProgramFn =
412 reinterpret_cast<glUseProgramProc>(GetGLProcAddress("glUseProgram"));
413 fn.glValidateProgramFn = reinterpret_cast<glValidateProgramProc>(
414 GetGLProcAddress("glValidateProgram"));
415 fn.glVertexAttrib1fFn = reinterpret_cast<glVertexAttrib1fProc>(
416 GetGLProcAddress("glVertexAttrib1f"));
417 fn.glVertexAttrib1fvFn = reinterpret_cast<glVertexAttrib1fvProc>(
418 GetGLProcAddress("glVertexAttrib1fv"));
419 fn.glVertexAttrib2fFn = reinterpret_cast<glVertexAttrib2fProc>(
420 GetGLProcAddress("glVertexAttrib2f"));
421 fn.glVertexAttrib2fvFn = reinterpret_cast<glVertexAttrib2fvProc>(
422 GetGLProcAddress("glVertexAttrib2fv"));
423 fn.glVertexAttrib3fFn = reinterpret_cast<glVertexAttrib3fProc>(
424 GetGLProcAddress("glVertexAttrib3f"));
425 fn.glVertexAttrib3fvFn = reinterpret_cast<glVertexAttrib3fvProc>(
426 GetGLProcAddress("glVertexAttrib3fv"));
427 fn.glVertexAttrib4fFn = reinterpret_cast<glVertexAttrib4fProc>(
428 GetGLProcAddress("glVertexAttrib4f"));
429 fn.glVertexAttrib4fvFn = reinterpret_cast<glVertexAttrib4fvProc>(
430 GetGLProcAddress("glVertexAttrib4fv"));
431 fn.glVertexAttribDivisorANGLEFn = 0;
432 fn.glVertexAttribI4iFn = 0;
433 fn.glVertexAttribI4ivFn = 0;
434 fn.glVertexAttribI4uiFn = 0;
435 fn.glVertexAttribI4uivFn = 0;
436 fn.glVertexAttribIPointerFn = 0;
437 fn.glVertexAttribPointerFn = reinterpret_cast<glVertexAttribPointerProc>(
438 GetGLProcAddress("glVertexAttribPointer"));
439 fn.glViewportFn =
440 reinterpret_cast<glViewportProc>(GetGLProcAddress("glViewport"));
441 fn.glWaitSyncFn = 0;
444 void DriverGL::InitializeDynamicBindings(GLContext* context) {
445 DCHECK(context && context->IsCurrent(NULL));
446 const GLVersionInfo* ver = context->GetVersionInfo();
447 ALLOW_UNUSED_LOCAL(ver);
448 std::string extensions = context->GetExtensions() + " ";
449 ALLOW_UNUSED_LOCAL(extensions);
451 ext.b_GL_ANGLE_framebuffer_blit =
452 extensions.find("GL_ANGLE_framebuffer_blit ") != std::string::npos;
453 ext.b_GL_ANGLE_framebuffer_multisample =
454 extensions.find("GL_ANGLE_framebuffer_multisample ") != std::string::npos;
455 ext.b_GL_ANGLE_instanced_arrays =
456 extensions.find("GL_ANGLE_instanced_arrays ") != std::string::npos;
457 ext.b_GL_ANGLE_translated_shader_source =
458 extensions.find("GL_ANGLE_translated_shader_source ") !=
459 std::string::npos;
460 ext.b_GL_APPLE_fence =
461 extensions.find("GL_APPLE_fence ") != std::string::npos;
462 ext.b_GL_APPLE_vertex_array_object =
463 extensions.find("GL_APPLE_vertex_array_object ") != std::string::npos;
464 ext.b_GL_ARB_draw_buffers =
465 extensions.find("GL_ARB_draw_buffers ") != std::string::npos;
466 ext.b_GL_ARB_draw_instanced =
467 extensions.find("GL_ARB_draw_instanced ") != std::string::npos;
468 ext.b_GL_ARB_get_program_binary =
469 extensions.find("GL_ARB_get_program_binary ") != std::string::npos;
470 ext.b_GL_ARB_instanced_arrays =
471 extensions.find("GL_ARB_instanced_arrays ") != std::string::npos;
472 ext.b_GL_ARB_map_buffer_range =
473 extensions.find("GL_ARB_map_buffer_range ") != std::string::npos;
474 ext.b_GL_ARB_occlusion_query =
475 extensions.find("GL_ARB_occlusion_query ") != std::string::npos;
476 ext.b_GL_ARB_robustness =
477 extensions.find("GL_ARB_robustness ") != std::string::npos;
478 ext.b_GL_ARB_sync = extensions.find("GL_ARB_sync ") != std::string::npos;
479 ext.b_GL_ARB_texture_storage =
480 extensions.find("GL_ARB_texture_storage ") != std::string::npos;
481 ext.b_GL_ARB_timer_query =
482 extensions.find("GL_ARB_timer_query ") != std::string::npos;
483 ext.b_GL_ARB_vertex_array_object =
484 extensions.find("GL_ARB_vertex_array_object ") != std::string::npos;
485 ext.b_GL_CHROMIUM_gles_depth_binding_hack =
486 extensions.find("GL_CHROMIUM_gles_depth_binding_hack ") !=
487 std::string::npos;
488 ext.b_GL_EXT_debug_marker =
489 extensions.find("GL_EXT_debug_marker ") != std::string::npos;
490 ext.b_GL_EXT_direct_state_access =
491 extensions.find("GL_EXT_direct_state_access ") != std::string::npos;
492 ext.b_GL_EXT_discard_framebuffer =
493 extensions.find("GL_EXT_discard_framebuffer ") != std::string::npos;
494 ext.b_GL_EXT_disjoint_timer_query =
495 extensions.find("GL_EXT_disjoint_timer_query ") != std::string::npos;
496 ext.b_GL_EXT_draw_buffers =
497 extensions.find("GL_EXT_draw_buffers ") != std::string::npos;
498 ext.b_GL_EXT_framebuffer_blit =
499 extensions.find("GL_EXT_framebuffer_blit ") != std::string::npos;
500 ext.b_GL_EXT_framebuffer_multisample =
501 extensions.find("GL_EXT_framebuffer_multisample ") != std::string::npos;
502 ext.b_GL_EXT_framebuffer_object =
503 extensions.find("GL_EXT_framebuffer_object ") != std::string::npos;
504 ext.b_GL_EXT_map_buffer_range =
505 extensions.find("GL_EXT_map_buffer_range ") != std::string::npos;
506 ext.b_GL_EXT_multisampled_render_to_texture =
507 extensions.find("GL_EXT_multisampled_render_to_texture ") !=
508 std::string::npos;
509 ext.b_GL_EXT_occlusion_query_boolean =
510 extensions.find("GL_EXT_occlusion_query_boolean ") != std::string::npos;
511 ext.b_GL_EXT_robustness =
512 extensions.find("GL_EXT_robustness ") != std::string::npos;
513 ext.b_GL_EXT_texture_storage =
514 extensions.find("GL_EXT_texture_storage ") != std::string::npos;
515 ext.b_GL_EXT_timer_query =
516 extensions.find("GL_EXT_timer_query ") != std::string::npos;
517 ext.b_GL_IMG_multisampled_render_to_texture =
518 extensions.find("GL_IMG_multisampled_render_to_texture ") !=
519 std::string::npos;
520 ext.b_GL_KHR_blend_equation_advanced =
521 extensions.find("GL_KHR_blend_equation_advanced ") != std::string::npos;
522 ext.b_GL_KHR_robustness =
523 extensions.find("GL_KHR_robustness ") != std::string::npos;
524 ext.b_GL_NV_blend_equation_advanced =
525 extensions.find("GL_NV_blend_equation_advanced ") != std::string::npos;
526 ext.b_GL_NV_fence = extensions.find("GL_NV_fence ") != std::string::npos;
527 ext.b_GL_NV_path_rendering =
528 extensions.find("GL_NV_path_rendering ") != std::string::npos;
529 ext.b_GL_OES_EGL_image =
530 extensions.find("GL_OES_EGL_image ") != std::string::npos;
531 ext.b_GL_OES_get_program_binary =
532 extensions.find("GL_OES_get_program_binary ") != std::string::npos;
533 ext.b_GL_OES_mapbuffer =
534 extensions.find("GL_OES_mapbuffer ") != std::string::npos;
535 ext.b_GL_OES_vertex_array_object =
536 extensions.find("GL_OES_vertex_array_object ") != std::string::npos;
538 debug_fn.glBeginQueryFn = 0;
539 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
540 fn.glBeginQueryFn =
541 reinterpret_cast<glBeginQueryProc>(GetGLProcAddress("glBeginQuery"));
542 DCHECK(fn.glBeginQueryFn);
545 debug_fn.glBeginQueryARBFn = 0;
546 if (ext.b_GL_ARB_occlusion_query) {
547 fn.glBeginQueryARBFn = reinterpret_cast<glBeginQueryARBProc>(
548 GetGLProcAddress("glBeginQueryARB"));
549 DCHECK(fn.glBeginQueryARBFn);
550 } else if (ext.b_GL_EXT_disjoint_timer_query ||
551 ext.b_GL_EXT_occlusion_query_boolean) {
552 fn.glBeginQueryARBFn = reinterpret_cast<glBeginQueryARBProc>(
553 GetGLProcAddress("glBeginQueryEXT"));
554 DCHECK(fn.glBeginQueryARBFn);
557 debug_fn.glBeginTransformFeedbackFn = 0;
558 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
559 fn.glBeginTransformFeedbackFn =
560 reinterpret_cast<glBeginTransformFeedbackProc>(
561 GetGLProcAddress("glBeginTransformFeedback"));
562 DCHECK(fn.glBeginTransformFeedbackFn);
565 debug_fn.glBindBufferBaseFn = 0;
566 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
567 fn.glBindBufferBaseFn = reinterpret_cast<glBindBufferBaseProc>(
568 GetGLProcAddress("glBindBufferBase"));
569 DCHECK(fn.glBindBufferBaseFn);
572 debug_fn.glBindBufferRangeFn = 0;
573 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
574 fn.glBindBufferRangeFn = reinterpret_cast<glBindBufferRangeProc>(
575 GetGLProcAddress("glBindBufferRange"));
576 DCHECK(fn.glBindBufferRangeFn);
579 debug_fn.glBindFragDataLocationFn = 0;
580 if (ver->IsAtLeastGL(3u, 0u)) {
581 fn.glBindFragDataLocationFn = reinterpret_cast<glBindFragDataLocationProc>(
582 GetGLProcAddress("glBindFragDataLocation"));
583 DCHECK(fn.glBindFragDataLocationFn);
586 debug_fn.glBindFragDataLocationIndexedFn = 0;
587 if (ver->IsAtLeastGL(3u, 3u)) {
588 fn.glBindFragDataLocationIndexedFn =
589 reinterpret_cast<glBindFragDataLocationIndexedProc>(
590 GetGLProcAddress("glBindFragDataLocationIndexed"));
591 DCHECK(fn.glBindFragDataLocationIndexedFn);
594 debug_fn.glBindFramebufferEXTFn = 0;
595 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
596 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>(
597 GetGLProcAddress("glBindFramebuffer"));
598 DCHECK(fn.glBindFramebufferEXTFn);
599 } else if (ext.b_GL_EXT_framebuffer_object) {
600 fn.glBindFramebufferEXTFn = reinterpret_cast<glBindFramebufferEXTProc>(
601 GetGLProcAddress("glBindFramebufferEXT"));
602 DCHECK(fn.glBindFramebufferEXTFn);
605 debug_fn.glBindRenderbufferEXTFn = 0;
606 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
607 fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>(
608 GetGLProcAddress("glBindRenderbuffer"));
609 DCHECK(fn.glBindRenderbufferEXTFn);
610 } else if (ext.b_GL_EXT_framebuffer_object) {
611 fn.glBindRenderbufferEXTFn = reinterpret_cast<glBindRenderbufferEXTProc>(
612 GetGLProcAddress("glBindRenderbufferEXT"));
613 DCHECK(fn.glBindRenderbufferEXTFn);
616 debug_fn.glBindSamplerFn = 0;
617 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
618 fn.glBindSamplerFn =
619 reinterpret_cast<glBindSamplerProc>(GetGLProcAddress("glBindSampler"));
620 DCHECK(fn.glBindSamplerFn);
623 debug_fn.glBindTransformFeedbackFn = 0;
624 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
625 fn.glBindTransformFeedbackFn =
626 reinterpret_cast<glBindTransformFeedbackProc>(
627 GetGLProcAddress("glBindTransformFeedback"));
628 DCHECK(fn.glBindTransformFeedbackFn);
631 debug_fn.glBindVertexArrayOESFn = 0;
632 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
633 ext.b_GL_ARB_vertex_array_object) {
634 fn.glBindVertexArrayOESFn = reinterpret_cast<glBindVertexArrayOESProc>(
635 GetGLProcAddress("glBindVertexArray"));
636 DCHECK(fn.glBindVertexArrayOESFn);
637 } else if (ext.b_GL_OES_vertex_array_object) {
638 fn.glBindVertexArrayOESFn = reinterpret_cast<glBindVertexArrayOESProc>(
639 GetGLProcAddress("glBindVertexArrayOES"));
640 DCHECK(fn.glBindVertexArrayOESFn);
641 } else if (ext.b_GL_APPLE_vertex_array_object) {
642 fn.glBindVertexArrayOESFn = reinterpret_cast<glBindVertexArrayOESProc>(
643 GetGLProcAddress("glBindVertexArrayAPPLE"));
644 DCHECK(fn.glBindVertexArrayOESFn);
647 debug_fn.glBlendBarrierKHRFn = 0;
648 if (ext.b_GL_NV_blend_equation_advanced) {
649 fn.glBlendBarrierKHRFn = reinterpret_cast<glBlendBarrierKHRProc>(
650 GetGLProcAddress("glBlendBarrierNV"));
651 DCHECK(fn.glBlendBarrierKHRFn);
652 } else if (ext.b_GL_KHR_blend_equation_advanced) {
653 fn.glBlendBarrierKHRFn = reinterpret_cast<glBlendBarrierKHRProc>(
654 GetGLProcAddress("glBlendBarrierKHR"));
655 DCHECK(fn.glBlendBarrierKHRFn);
658 debug_fn.glBlitFramebufferFn = 0;
659 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
660 fn.glBlitFramebufferFn = reinterpret_cast<glBlitFramebufferProc>(
661 GetGLProcAddress("glBlitFramebuffer"));
662 DCHECK(fn.glBlitFramebufferFn);
665 debug_fn.glBlitFramebufferANGLEFn = 0;
666 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
667 fn.glBlitFramebufferANGLEFn = reinterpret_cast<glBlitFramebufferANGLEProc>(
668 GetGLProcAddress("glBlitFramebuffer"));
669 DCHECK(fn.glBlitFramebufferANGLEFn);
670 } else if (ext.b_GL_ANGLE_framebuffer_blit) {
671 fn.glBlitFramebufferANGLEFn = reinterpret_cast<glBlitFramebufferANGLEProc>(
672 GetGLProcAddress("glBlitFramebufferANGLE"));
673 DCHECK(fn.glBlitFramebufferANGLEFn);
676 debug_fn.glBlitFramebufferEXTFn = 0;
677 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
678 fn.glBlitFramebufferEXTFn = reinterpret_cast<glBlitFramebufferEXTProc>(
679 GetGLProcAddress("glBlitFramebuffer"));
680 DCHECK(fn.glBlitFramebufferEXTFn);
681 } else if (ext.b_GL_EXT_framebuffer_blit) {
682 fn.glBlitFramebufferEXTFn = reinterpret_cast<glBlitFramebufferEXTProc>(
683 GetGLProcAddress("glBlitFramebufferEXT"));
684 DCHECK(fn.glBlitFramebufferEXTFn);
687 debug_fn.glCheckFramebufferStatusEXTFn = 0;
688 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
689 fn.glCheckFramebufferStatusEXTFn =
690 reinterpret_cast<glCheckFramebufferStatusEXTProc>(
691 GetGLProcAddress("glCheckFramebufferStatus"));
692 DCHECK(fn.glCheckFramebufferStatusEXTFn);
693 } else if (ext.b_GL_EXT_framebuffer_object) {
694 fn.glCheckFramebufferStatusEXTFn =
695 reinterpret_cast<glCheckFramebufferStatusEXTProc>(
696 GetGLProcAddress("glCheckFramebufferStatusEXT"));
697 DCHECK(fn.glCheckFramebufferStatusEXTFn);
700 debug_fn.glClearBufferfiFn = 0;
701 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
702 fn.glClearBufferfiFn = reinterpret_cast<glClearBufferfiProc>(
703 GetGLProcAddress("glClearBufferfi"));
704 DCHECK(fn.glClearBufferfiFn);
707 debug_fn.glClearBufferfvFn = 0;
708 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
709 fn.glClearBufferfvFn = reinterpret_cast<glClearBufferfvProc>(
710 GetGLProcAddress("glClearBufferfv"));
711 DCHECK(fn.glClearBufferfvFn);
714 debug_fn.glClearBufferivFn = 0;
715 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
716 fn.glClearBufferivFn = reinterpret_cast<glClearBufferivProc>(
717 GetGLProcAddress("glClearBufferiv"));
718 DCHECK(fn.glClearBufferivFn);
721 debug_fn.glClearBufferuivFn = 0;
722 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
723 fn.glClearBufferuivFn = reinterpret_cast<glClearBufferuivProc>(
724 GetGLProcAddress("glClearBufferuiv"));
725 DCHECK(fn.glClearBufferuivFn);
728 debug_fn.glClearDepthfFn = 0;
729 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
730 fn.glClearDepthfFn =
731 reinterpret_cast<glClearDepthfProc>(GetGLProcAddress("glClearDepthf"));
732 DCHECK(fn.glClearDepthfFn);
735 debug_fn.glClientWaitSyncFn = 0;
736 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
737 ext.b_GL_ARB_sync) {
738 fn.glClientWaitSyncFn = reinterpret_cast<glClientWaitSyncProc>(
739 GetGLProcAddress("glClientWaitSync"));
740 DCHECK(fn.glClientWaitSyncFn);
743 debug_fn.glCompressedTexImage3DFn = 0;
744 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
745 fn.glCompressedTexImage3DFn = reinterpret_cast<glCompressedTexImage3DProc>(
746 GetGLProcAddress("glCompressedTexImage3D"));
747 DCHECK(fn.glCompressedTexImage3DFn);
750 debug_fn.glCopyBufferSubDataFn = 0;
751 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
752 fn.glCopyBufferSubDataFn = reinterpret_cast<glCopyBufferSubDataProc>(
753 GetGLProcAddress("glCopyBufferSubData"));
754 DCHECK(fn.glCopyBufferSubDataFn);
757 debug_fn.glCopyTexSubImage3DFn = 0;
758 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
759 fn.glCopyTexSubImage3DFn = reinterpret_cast<glCopyTexSubImage3DProc>(
760 GetGLProcAddress("glCopyTexSubImage3D"));
761 DCHECK(fn.glCopyTexSubImage3DFn);
764 debug_fn.glDeleteFencesAPPLEFn = 0;
765 if (ext.b_GL_APPLE_fence) {
766 fn.glDeleteFencesAPPLEFn = reinterpret_cast<glDeleteFencesAPPLEProc>(
767 GetGLProcAddress("glDeleteFencesAPPLE"));
768 DCHECK(fn.glDeleteFencesAPPLEFn);
771 debug_fn.glDeleteFencesNVFn = 0;
772 if (ext.b_GL_NV_fence) {
773 fn.glDeleteFencesNVFn = reinterpret_cast<glDeleteFencesNVProc>(
774 GetGLProcAddress("glDeleteFencesNV"));
775 DCHECK(fn.glDeleteFencesNVFn);
778 debug_fn.glDeleteFramebuffersEXTFn = 0;
779 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
780 fn.glDeleteFramebuffersEXTFn =
781 reinterpret_cast<glDeleteFramebuffersEXTProc>(
782 GetGLProcAddress("glDeleteFramebuffers"));
783 DCHECK(fn.glDeleteFramebuffersEXTFn);
784 } else if (ext.b_GL_EXT_framebuffer_object) {
785 fn.glDeleteFramebuffersEXTFn =
786 reinterpret_cast<glDeleteFramebuffersEXTProc>(
787 GetGLProcAddress("glDeleteFramebuffersEXT"));
788 DCHECK(fn.glDeleteFramebuffersEXTFn);
791 debug_fn.glDeleteQueriesFn = 0;
792 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
793 fn.glDeleteQueriesFn = reinterpret_cast<glDeleteQueriesProc>(
794 GetGLProcAddress("glDeleteQueries"));
795 DCHECK(fn.glDeleteQueriesFn);
798 debug_fn.glDeleteQueriesARBFn = 0;
799 if (ext.b_GL_ARB_occlusion_query) {
800 fn.glDeleteQueriesARBFn = reinterpret_cast<glDeleteQueriesARBProc>(
801 GetGLProcAddress("glDeleteQueriesARB"));
802 DCHECK(fn.glDeleteQueriesARBFn);
803 } else if (ext.b_GL_EXT_disjoint_timer_query ||
804 ext.b_GL_EXT_occlusion_query_boolean) {
805 fn.glDeleteQueriesARBFn = reinterpret_cast<glDeleteQueriesARBProc>(
806 GetGLProcAddress("glDeleteQueriesEXT"));
807 DCHECK(fn.glDeleteQueriesARBFn);
810 debug_fn.glDeleteRenderbuffersEXTFn = 0;
811 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
812 fn.glDeleteRenderbuffersEXTFn =
813 reinterpret_cast<glDeleteRenderbuffersEXTProc>(
814 GetGLProcAddress("glDeleteRenderbuffers"));
815 DCHECK(fn.glDeleteRenderbuffersEXTFn);
816 } else if (ext.b_GL_EXT_framebuffer_object) {
817 fn.glDeleteRenderbuffersEXTFn =
818 reinterpret_cast<glDeleteRenderbuffersEXTProc>(
819 GetGLProcAddress("glDeleteRenderbuffersEXT"));
820 DCHECK(fn.glDeleteRenderbuffersEXTFn);
823 debug_fn.glDeleteSamplersFn = 0;
824 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
825 fn.glDeleteSamplersFn = reinterpret_cast<glDeleteSamplersProc>(
826 GetGLProcAddress("glDeleteSamplers"));
827 DCHECK(fn.glDeleteSamplersFn);
830 debug_fn.glDeleteSyncFn = 0;
831 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
832 ext.b_GL_ARB_sync) {
833 fn.glDeleteSyncFn =
834 reinterpret_cast<glDeleteSyncProc>(GetGLProcAddress("glDeleteSync"));
835 DCHECK(fn.glDeleteSyncFn);
838 debug_fn.glDeleteTransformFeedbacksFn = 0;
839 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
840 fn.glDeleteTransformFeedbacksFn =
841 reinterpret_cast<glDeleteTransformFeedbacksProc>(
842 GetGLProcAddress("glDeleteTransformFeedbacks"));
843 DCHECK(fn.glDeleteTransformFeedbacksFn);
846 debug_fn.glDeleteVertexArraysOESFn = 0;
847 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
848 ext.b_GL_ARB_vertex_array_object) {
849 fn.glDeleteVertexArraysOESFn =
850 reinterpret_cast<glDeleteVertexArraysOESProc>(
851 GetGLProcAddress("glDeleteVertexArrays"));
852 DCHECK(fn.glDeleteVertexArraysOESFn);
853 } else if (ext.b_GL_OES_vertex_array_object) {
854 fn.glDeleteVertexArraysOESFn =
855 reinterpret_cast<glDeleteVertexArraysOESProc>(
856 GetGLProcAddress("glDeleteVertexArraysOES"));
857 DCHECK(fn.glDeleteVertexArraysOESFn);
858 } else if (ext.b_GL_APPLE_vertex_array_object) {
859 fn.glDeleteVertexArraysOESFn =
860 reinterpret_cast<glDeleteVertexArraysOESProc>(
861 GetGLProcAddress("glDeleteVertexArraysAPPLE"));
862 DCHECK(fn.glDeleteVertexArraysOESFn);
865 debug_fn.glDepthRangefFn = 0;
866 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
867 fn.glDepthRangefFn =
868 reinterpret_cast<glDepthRangefProc>(GetGLProcAddress("glDepthRangef"));
869 DCHECK(fn.glDepthRangefFn);
872 debug_fn.glDiscardFramebufferEXTFn = 0;
873 if (ext.b_GL_EXT_discard_framebuffer) {
874 fn.glDiscardFramebufferEXTFn =
875 reinterpret_cast<glDiscardFramebufferEXTProc>(
876 GetGLProcAddress("glDiscardFramebufferEXT"));
877 DCHECK(fn.glDiscardFramebufferEXTFn);
880 debug_fn.glDrawArraysInstancedANGLEFn = 0;
881 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
882 fn.glDrawArraysInstancedANGLEFn =
883 reinterpret_cast<glDrawArraysInstancedANGLEProc>(
884 GetGLProcAddress("glDrawArraysInstanced"));
885 DCHECK(fn.glDrawArraysInstancedANGLEFn);
886 } else if (ext.b_GL_ARB_draw_instanced) {
887 fn.glDrawArraysInstancedANGLEFn =
888 reinterpret_cast<glDrawArraysInstancedANGLEProc>(
889 GetGLProcAddress("glDrawArraysInstancedARB"));
890 DCHECK(fn.glDrawArraysInstancedANGLEFn);
891 } else if (ext.b_GL_ANGLE_instanced_arrays) {
892 fn.glDrawArraysInstancedANGLEFn =
893 reinterpret_cast<glDrawArraysInstancedANGLEProc>(
894 GetGLProcAddress("glDrawArraysInstancedANGLE"));
895 DCHECK(fn.glDrawArraysInstancedANGLEFn);
898 debug_fn.glDrawBufferFn = 0;
899 if (!ver->is_es) {
900 fn.glDrawBufferFn =
901 reinterpret_cast<glDrawBufferProc>(GetGLProcAddress("glDrawBuffer"));
902 DCHECK(fn.glDrawBufferFn);
905 debug_fn.glDrawBuffersARBFn = 0;
906 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
907 fn.glDrawBuffersARBFn = reinterpret_cast<glDrawBuffersARBProc>(
908 GetGLProcAddress("glDrawBuffers"));
909 DCHECK(fn.glDrawBuffersARBFn);
910 } else if (ext.b_GL_ARB_draw_buffers) {
911 fn.glDrawBuffersARBFn = reinterpret_cast<glDrawBuffersARBProc>(
912 GetGLProcAddress("glDrawBuffersARB"));
913 DCHECK(fn.glDrawBuffersARBFn);
914 } else if (ext.b_GL_EXT_draw_buffers) {
915 fn.glDrawBuffersARBFn = reinterpret_cast<glDrawBuffersARBProc>(
916 GetGLProcAddress("glDrawBuffersEXT"));
917 DCHECK(fn.glDrawBuffersARBFn);
920 debug_fn.glDrawElementsInstancedANGLEFn = 0;
921 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
922 fn.glDrawElementsInstancedANGLEFn =
923 reinterpret_cast<glDrawElementsInstancedANGLEProc>(
924 GetGLProcAddress("glDrawElementsInstanced"));
925 DCHECK(fn.glDrawElementsInstancedANGLEFn);
926 } else if (ext.b_GL_ARB_draw_instanced) {
927 fn.glDrawElementsInstancedANGLEFn =
928 reinterpret_cast<glDrawElementsInstancedANGLEProc>(
929 GetGLProcAddress("glDrawElementsInstancedARB"));
930 DCHECK(fn.glDrawElementsInstancedANGLEFn);
931 } else if (ext.b_GL_ANGLE_instanced_arrays) {
932 fn.glDrawElementsInstancedANGLEFn =
933 reinterpret_cast<glDrawElementsInstancedANGLEProc>(
934 GetGLProcAddress("glDrawElementsInstancedANGLE"));
935 DCHECK(fn.glDrawElementsInstancedANGLEFn);
938 debug_fn.glDrawRangeElementsFn = 0;
939 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
940 fn.glDrawRangeElementsFn = reinterpret_cast<glDrawRangeElementsProc>(
941 GetGLProcAddress("glDrawRangeElements"));
942 DCHECK(fn.glDrawRangeElementsFn);
945 debug_fn.glEGLImageTargetRenderbufferStorageOESFn = 0;
946 if (ext.b_GL_OES_EGL_image) {
947 fn.glEGLImageTargetRenderbufferStorageOESFn =
948 reinterpret_cast<glEGLImageTargetRenderbufferStorageOESProc>(
949 GetGLProcAddress("glEGLImageTargetRenderbufferStorageOES"));
950 DCHECK(fn.glEGLImageTargetRenderbufferStorageOESFn);
953 debug_fn.glEGLImageTargetTexture2DOESFn = 0;
954 if (ext.b_GL_OES_EGL_image) {
955 fn.glEGLImageTargetTexture2DOESFn =
956 reinterpret_cast<glEGLImageTargetTexture2DOESProc>(
957 GetGLProcAddress("glEGLImageTargetTexture2DOES"));
958 DCHECK(fn.glEGLImageTargetTexture2DOESFn);
961 debug_fn.glEndQueryFn = 0;
962 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
963 fn.glEndQueryFn =
964 reinterpret_cast<glEndQueryProc>(GetGLProcAddress("glEndQuery"));
965 DCHECK(fn.glEndQueryFn);
968 debug_fn.glEndQueryARBFn = 0;
969 if (ext.b_GL_ARB_occlusion_query) {
970 fn.glEndQueryARBFn =
971 reinterpret_cast<glEndQueryARBProc>(GetGLProcAddress("glEndQueryARB"));
972 DCHECK(fn.glEndQueryARBFn);
973 } else if (ext.b_GL_EXT_disjoint_timer_query ||
974 ext.b_GL_EXT_occlusion_query_boolean) {
975 fn.glEndQueryARBFn =
976 reinterpret_cast<glEndQueryARBProc>(GetGLProcAddress("glEndQueryEXT"));
977 DCHECK(fn.glEndQueryARBFn);
980 debug_fn.glEndTransformFeedbackFn = 0;
981 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
982 fn.glEndTransformFeedbackFn = reinterpret_cast<glEndTransformFeedbackProc>(
983 GetGLProcAddress("glEndTransformFeedback"));
984 DCHECK(fn.glEndTransformFeedbackFn);
987 debug_fn.glFenceSyncFn = 0;
988 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
989 ext.b_GL_ARB_sync) {
990 fn.glFenceSyncFn =
991 reinterpret_cast<glFenceSyncProc>(GetGLProcAddress("glFenceSync"));
992 DCHECK(fn.glFenceSyncFn);
995 debug_fn.glFinishFenceAPPLEFn = 0;
996 if (ext.b_GL_APPLE_fence) {
997 fn.glFinishFenceAPPLEFn = reinterpret_cast<glFinishFenceAPPLEProc>(
998 GetGLProcAddress("glFinishFenceAPPLE"));
999 DCHECK(fn.glFinishFenceAPPLEFn);
1002 debug_fn.glFinishFenceNVFn = 0;
1003 if (ext.b_GL_NV_fence) {
1004 fn.glFinishFenceNVFn = reinterpret_cast<glFinishFenceNVProc>(
1005 GetGLProcAddress("glFinishFenceNV"));
1006 DCHECK(fn.glFinishFenceNVFn);
1009 debug_fn.glFlushMappedBufferRangeFn = 0;
1010 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1011 fn.glFlushMappedBufferRangeFn =
1012 reinterpret_cast<glFlushMappedBufferRangeProc>(
1013 GetGLProcAddress("glFlushMappedBufferRange"));
1014 DCHECK(fn.glFlushMappedBufferRangeFn);
1017 debug_fn.glFramebufferRenderbufferEXTFn = 0;
1018 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1019 fn.glFramebufferRenderbufferEXTFn =
1020 reinterpret_cast<glFramebufferRenderbufferEXTProc>(
1021 GetGLProcAddress("glFramebufferRenderbuffer"));
1022 DCHECK(fn.glFramebufferRenderbufferEXTFn);
1023 } else if (ext.b_GL_EXT_framebuffer_object) {
1024 fn.glFramebufferRenderbufferEXTFn =
1025 reinterpret_cast<glFramebufferRenderbufferEXTProc>(
1026 GetGLProcAddress("glFramebufferRenderbufferEXT"));
1027 DCHECK(fn.glFramebufferRenderbufferEXTFn);
1030 debug_fn.glFramebufferTexture2DEXTFn = 0;
1031 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1032 fn.glFramebufferTexture2DEXTFn =
1033 reinterpret_cast<glFramebufferTexture2DEXTProc>(
1034 GetGLProcAddress("glFramebufferTexture2D"));
1035 DCHECK(fn.glFramebufferTexture2DEXTFn);
1036 } else if (ext.b_GL_EXT_framebuffer_object) {
1037 fn.glFramebufferTexture2DEXTFn =
1038 reinterpret_cast<glFramebufferTexture2DEXTProc>(
1039 GetGLProcAddress("glFramebufferTexture2DEXT"));
1040 DCHECK(fn.glFramebufferTexture2DEXTFn);
1043 debug_fn.glFramebufferTexture2DMultisampleEXTFn = 0;
1044 if (ext.b_GL_EXT_multisampled_render_to_texture) {
1045 fn.glFramebufferTexture2DMultisampleEXTFn =
1046 reinterpret_cast<glFramebufferTexture2DMultisampleEXTProc>(
1047 GetGLProcAddress("glFramebufferTexture2DMultisampleEXT"));
1048 DCHECK(fn.glFramebufferTexture2DMultisampleEXTFn);
1051 debug_fn.glFramebufferTexture2DMultisampleIMGFn = 0;
1052 if (ext.b_GL_IMG_multisampled_render_to_texture) {
1053 fn.glFramebufferTexture2DMultisampleIMGFn =
1054 reinterpret_cast<glFramebufferTexture2DMultisampleIMGProc>(
1055 GetGLProcAddress("glFramebufferTexture2DMultisampleIMG"));
1056 DCHECK(fn.glFramebufferTexture2DMultisampleIMGFn);
1059 debug_fn.glFramebufferTextureLayerFn = 0;
1060 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1061 fn.glFramebufferTextureLayerFn =
1062 reinterpret_cast<glFramebufferTextureLayerProc>(
1063 GetGLProcAddress("glFramebufferTextureLayer"));
1064 DCHECK(fn.glFramebufferTextureLayerFn);
1067 debug_fn.glGenerateMipmapEXTFn = 0;
1068 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1069 fn.glGenerateMipmapEXTFn = reinterpret_cast<glGenerateMipmapEXTProc>(
1070 GetGLProcAddress("glGenerateMipmap"));
1071 DCHECK(fn.glGenerateMipmapEXTFn);
1072 } else if (ext.b_GL_EXT_framebuffer_object) {
1073 fn.glGenerateMipmapEXTFn = reinterpret_cast<glGenerateMipmapEXTProc>(
1074 GetGLProcAddress("glGenerateMipmapEXT"));
1075 DCHECK(fn.glGenerateMipmapEXTFn);
1078 debug_fn.glGenFencesAPPLEFn = 0;
1079 if (ext.b_GL_APPLE_fence) {
1080 fn.glGenFencesAPPLEFn = reinterpret_cast<glGenFencesAPPLEProc>(
1081 GetGLProcAddress("glGenFencesAPPLE"));
1082 DCHECK(fn.glGenFencesAPPLEFn);
1085 debug_fn.glGenFencesNVFn = 0;
1086 if (ext.b_GL_NV_fence) {
1087 fn.glGenFencesNVFn =
1088 reinterpret_cast<glGenFencesNVProc>(GetGLProcAddress("glGenFencesNV"));
1089 DCHECK(fn.glGenFencesNVFn);
1092 debug_fn.glGenFramebuffersEXTFn = 0;
1093 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1094 fn.glGenFramebuffersEXTFn = reinterpret_cast<glGenFramebuffersEXTProc>(
1095 GetGLProcAddress("glGenFramebuffers"));
1096 DCHECK(fn.glGenFramebuffersEXTFn);
1097 } else if (ext.b_GL_EXT_framebuffer_object) {
1098 fn.glGenFramebuffersEXTFn = reinterpret_cast<glGenFramebuffersEXTProc>(
1099 GetGLProcAddress("glGenFramebuffersEXT"));
1100 DCHECK(fn.glGenFramebuffersEXTFn);
1103 debug_fn.glGenQueriesFn = 0;
1104 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1105 fn.glGenQueriesFn =
1106 reinterpret_cast<glGenQueriesProc>(GetGLProcAddress("glGenQueries"));
1107 DCHECK(fn.glGenQueriesFn);
1110 debug_fn.glGenQueriesARBFn = 0;
1111 if (ext.b_GL_ARB_occlusion_query) {
1112 fn.glGenQueriesARBFn = reinterpret_cast<glGenQueriesARBProc>(
1113 GetGLProcAddress("glGenQueriesARB"));
1114 DCHECK(fn.glGenQueriesARBFn);
1115 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1116 ext.b_GL_EXT_occlusion_query_boolean) {
1117 fn.glGenQueriesARBFn = reinterpret_cast<glGenQueriesARBProc>(
1118 GetGLProcAddress("glGenQueriesEXT"));
1119 DCHECK(fn.glGenQueriesARBFn);
1122 debug_fn.glGenRenderbuffersEXTFn = 0;
1123 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1124 fn.glGenRenderbuffersEXTFn = reinterpret_cast<glGenRenderbuffersEXTProc>(
1125 GetGLProcAddress("glGenRenderbuffers"));
1126 DCHECK(fn.glGenRenderbuffersEXTFn);
1127 } else if (ext.b_GL_EXT_framebuffer_object) {
1128 fn.glGenRenderbuffersEXTFn = reinterpret_cast<glGenRenderbuffersEXTProc>(
1129 GetGLProcAddress("glGenRenderbuffersEXT"));
1130 DCHECK(fn.glGenRenderbuffersEXTFn);
1133 debug_fn.glGenSamplersFn = 0;
1134 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1135 fn.glGenSamplersFn =
1136 reinterpret_cast<glGenSamplersProc>(GetGLProcAddress("glGenSamplers"));
1137 DCHECK(fn.glGenSamplersFn);
1140 debug_fn.glGenTransformFeedbacksFn = 0;
1141 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
1142 fn.glGenTransformFeedbacksFn =
1143 reinterpret_cast<glGenTransformFeedbacksProc>(
1144 GetGLProcAddress("glGenTransformFeedbacks"));
1145 DCHECK(fn.glGenTransformFeedbacksFn);
1148 debug_fn.glGenVertexArraysOESFn = 0;
1149 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
1150 ext.b_GL_ARB_vertex_array_object) {
1151 fn.glGenVertexArraysOESFn = reinterpret_cast<glGenVertexArraysOESProc>(
1152 GetGLProcAddress("glGenVertexArrays"));
1153 DCHECK(fn.glGenVertexArraysOESFn);
1154 } else if (ext.b_GL_OES_vertex_array_object) {
1155 fn.glGenVertexArraysOESFn = reinterpret_cast<glGenVertexArraysOESProc>(
1156 GetGLProcAddress("glGenVertexArraysOES"));
1157 DCHECK(fn.glGenVertexArraysOESFn);
1158 } else if (ext.b_GL_APPLE_vertex_array_object) {
1159 fn.glGenVertexArraysOESFn = reinterpret_cast<glGenVertexArraysOESProc>(
1160 GetGLProcAddress("glGenVertexArraysAPPLE"));
1161 DCHECK(fn.glGenVertexArraysOESFn);
1164 debug_fn.glGetActiveUniformBlockivFn = 0;
1165 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1166 fn.glGetActiveUniformBlockivFn =
1167 reinterpret_cast<glGetActiveUniformBlockivProc>(
1168 GetGLProcAddress("glGetActiveUniformBlockiv"));
1169 DCHECK(fn.glGetActiveUniformBlockivFn);
1172 debug_fn.glGetActiveUniformBlockNameFn = 0;
1173 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1174 fn.glGetActiveUniformBlockNameFn =
1175 reinterpret_cast<glGetActiveUniformBlockNameProc>(
1176 GetGLProcAddress("glGetActiveUniformBlockName"));
1177 DCHECK(fn.glGetActiveUniformBlockNameFn);
1180 debug_fn.glGetActiveUniformsivFn = 0;
1181 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1182 fn.glGetActiveUniformsivFn = reinterpret_cast<glGetActiveUniformsivProc>(
1183 GetGLProcAddress("glGetActiveUniformsiv"));
1184 DCHECK(fn.glGetActiveUniformsivFn);
1187 debug_fn.glGetFenceivNVFn = 0;
1188 if (ext.b_GL_NV_fence) {
1189 fn.glGetFenceivNVFn = reinterpret_cast<glGetFenceivNVProc>(
1190 GetGLProcAddress("glGetFenceivNV"));
1191 DCHECK(fn.glGetFenceivNVFn);
1194 debug_fn.glGetFragDataLocationFn = 0;
1195 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1196 fn.glGetFragDataLocationFn = reinterpret_cast<glGetFragDataLocationProc>(
1197 GetGLProcAddress("glGetFragDataLocation"));
1198 DCHECK(fn.glGetFragDataLocationFn);
1201 debug_fn.glGetFramebufferAttachmentParameterivEXTFn = 0;
1202 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1203 fn.glGetFramebufferAttachmentParameterivEXTFn =
1204 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc>(
1205 GetGLProcAddress("glGetFramebufferAttachmentParameteriv"));
1206 DCHECK(fn.glGetFramebufferAttachmentParameterivEXTFn);
1207 } else if (ext.b_GL_EXT_framebuffer_object) {
1208 fn.glGetFramebufferAttachmentParameterivEXTFn =
1209 reinterpret_cast<glGetFramebufferAttachmentParameterivEXTProc>(
1210 GetGLProcAddress("glGetFramebufferAttachmentParameterivEXT"));
1211 DCHECK(fn.glGetFramebufferAttachmentParameterivEXTFn);
1214 debug_fn.glGetGraphicsResetStatusARBFn = 0;
1215 if (ver->IsAtLeastGL(4u, 5u)) {
1216 fn.glGetGraphicsResetStatusARBFn =
1217 reinterpret_cast<glGetGraphicsResetStatusARBProc>(
1218 GetGLProcAddress("glGetGraphicsResetStatus"));
1219 DCHECK(fn.glGetGraphicsResetStatusARBFn);
1220 } else if (ext.b_GL_ARB_robustness) {
1221 fn.glGetGraphicsResetStatusARBFn =
1222 reinterpret_cast<glGetGraphicsResetStatusARBProc>(
1223 GetGLProcAddress("glGetGraphicsResetStatusARB"));
1224 DCHECK(fn.glGetGraphicsResetStatusARBFn);
1225 } else if (ext.b_GL_KHR_robustness) {
1226 fn.glGetGraphicsResetStatusARBFn =
1227 reinterpret_cast<glGetGraphicsResetStatusARBProc>(
1228 GetGLProcAddress("glGetGraphicsResetStatusKHR"));
1229 DCHECK(fn.glGetGraphicsResetStatusARBFn);
1230 } else if (ext.b_GL_EXT_robustness) {
1231 fn.glGetGraphicsResetStatusARBFn =
1232 reinterpret_cast<glGetGraphicsResetStatusARBProc>(
1233 GetGLProcAddress("glGetGraphicsResetStatusEXT"));
1234 DCHECK(fn.glGetGraphicsResetStatusARBFn);
1237 debug_fn.glGetInteger64i_vFn = 0;
1238 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u)) {
1239 fn.glGetInteger64i_vFn = reinterpret_cast<glGetInteger64i_vProc>(
1240 GetGLProcAddress("glGetInteger64i_v"));
1241 DCHECK(fn.glGetInteger64i_vFn);
1244 debug_fn.glGetInteger64vFn = 0;
1245 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u)) {
1246 fn.glGetInteger64vFn = reinterpret_cast<glGetInteger64vProc>(
1247 GetGLProcAddress("glGetInteger64v"));
1248 DCHECK(fn.glGetInteger64vFn);
1251 debug_fn.glGetIntegeri_vFn = 0;
1252 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1253 fn.glGetIntegeri_vFn = reinterpret_cast<glGetIntegeri_vProc>(
1254 GetGLProcAddress("glGetIntegeri_v"));
1255 DCHECK(fn.glGetIntegeri_vFn);
1258 debug_fn.glGetInternalformativFn = 0;
1259 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u)) {
1260 fn.glGetInternalformativFn = reinterpret_cast<glGetInternalformativProc>(
1261 GetGLProcAddress("glGetInternalformativ"));
1262 DCHECK(fn.glGetInternalformativFn);
1265 debug_fn.glGetProgramBinaryFn = 0;
1266 if (ver->IsAtLeastGL(4u, 1u) || ver->IsAtLeastGLES(3u, 0u) ||
1267 ext.b_GL_ARB_get_program_binary) {
1268 fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>(
1269 GetGLProcAddress("glGetProgramBinary"));
1270 DCHECK(fn.glGetProgramBinaryFn);
1271 } else if (ext.b_GL_OES_get_program_binary) {
1272 fn.glGetProgramBinaryFn = reinterpret_cast<glGetProgramBinaryProc>(
1273 GetGLProcAddress("glGetProgramBinaryOES"));
1274 DCHECK(fn.glGetProgramBinaryFn);
1277 debug_fn.glGetProgramResourceLocationFn = 0;
1278 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 1u)) {
1279 fn.glGetProgramResourceLocationFn =
1280 reinterpret_cast<glGetProgramResourceLocationProc>(
1281 GetGLProcAddress("glGetProgramResourceLocation"));
1282 DCHECK(fn.glGetProgramResourceLocationFn);
1285 debug_fn.glGetQueryivFn = 0;
1286 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1287 fn.glGetQueryivFn =
1288 reinterpret_cast<glGetQueryivProc>(GetGLProcAddress("glGetQueryiv"));
1289 DCHECK(fn.glGetQueryivFn);
1292 debug_fn.glGetQueryivARBFn = 0;
1293 if (ext.b_GL_ARB_occlusion_query) {
1294 fn.glGetQueryivARBFn = reinterpret_cast<glGetQueryivARBProc>(
1295 GetGLProcAddress("glGetQueryivARB"));
1296 DCHECK(fn.glGetQueryivARBFn);
1297 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1298 ext.b_GL_EXT_occlusion_query_boolean) {
1299 fn.glGetQueryivARBFn = reinterpret_cast<glGetQueryivARBProc>(
1300 GetGLProcAddress("glGetQueryivEXT"));
1301 DCHECK(fn.glGetQueryivARBFn);
1304 debug_fn.glGetQueryObjecti64vFn = 0;
1305 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_timer_query) {
1306 fn.glGetQueryObjecti64vFn = reinterpret_cast<glGetQueryObjecti64vProc>(
1307 GetGLProcAddress("glGetQueryObjecti64v"));
1308 DCHECK(fn.glGetQueryObjecti64vFn);
1309 } else if (ext.b_GL_EXT_timer_query || ext.b_GL_EXT_disjoint_timer_query) {
1310 fn.glGetQueryObjecti64vFn = reinterpret_cast<glGetQueryObjecti64vProc>(
1311 GetGLProcAddress("glGetQueryObjecti64vEXT"));
1312 DCHECK(fn.glGetQueryObjecti64vFn);
1315 debug_fn.glGetQueryObjectivFn = 0;
1316 if (!ver->is_es) {
1317 fn.glGetQueryObjectivFn = reinterpret_cast<glGetQueryObjectivProc>(
1318 GetGLProcAddress("glGetQueryObjectiv"));
1319 DCHECK(fn.glGetQueryObjectivFn);
1322 debug_fn.glGetQueryObjectivARBFn = 0;
1323 if (ext.b_GL_ARB_occlusion_query) {
1324 fn.glGetQueryObjectivARBFn = reinterpret_cast<glGetQueryObjectivARBProc>(
1325 GetGLProcAddress("glGetQueryObjectivARB"));
1326 DCHECK(fn.glGetQueryObjectivARBFn);
1327 } else if (ext.b_GL_EXT_disjoint_timer_query) {
1328 fn.glGetQueryObjectivARBFn = reinterpret_cast<glGetQueryObjectivARBProc>(
1329 GetGLProcAddress("glGetQueryObjectivEXT"));
1330 DCHECK(fn.glGetQueryObjectivARBFn);
1333 debug_fn.glGetQueryObjectui64vFn = 0;
1334 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_timer_query) {
1335 fn.glGetQueryObjectui64vFn = reinterpret_cast<glGetQueryObjectui64vProc>(
1336 GetGLProcAddress("glGetQueryObjectui64v"));
1337 DCHECK(fn.glGetQueryObjectui64vFn);
1338 } else if (ext.b_GL_EXT_timer_query || ext.b_GL_EXT_disjoint_timer_query) {
1339 fn.glGetQueryObjectui64vFn = reinterpret_cast<glGetQueryObjectui64vProc>(
1340 GetGLProcAddress("glGetQueryObjectui64vEXT"));
1341 DCHECK(fn.glGetQueryObjectui64vFn);
1344 debug_fn.glGetQueryObjectuivFn = 0;
1345 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1346 fn.glGetQueryObjectuivFn = reinterpret_cast<glGetQueryObjectuivProc>(
1347 GetGLProcAddress("glGetQueryObjectuiv"));
1348 DCHECK(fn.glGetQueryObjectuivFn);
1351 debug_fn.glGetQueryObjectuivARBFn = 0;
1352 if (ext.b_GL_ARB_occlusion_query) {
1353 fn.glGetQueryObjectuivARBFn = reinterpret_cast<glGetQueryObjectuivARBProc>(
1354 GetGLProcAddress("glGetQueryObjectuivARB"));
1355 DCHECK(fn.glGetQueryObjectuivARBFn);
1356 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1357 ext.b_GL_EXT_occlusion_query_boolean) {
1358 fn.glGetQueryObjectuivARBFn = reinterpret_cast<glGetQueryObjectuivARBProc>(
1359 GetGLProcAddress("glGetQueryObjectuivEXT"));
1360 DCHECK(fn.glGetQueryObjectuivARBFn);
1363 debug_fn.glGetRenderbufferParameterivEXTFn = 0;
1364 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1365 fn.glGetRenderbufferParameterivEXTFn =
1366 reinterpret_cast<glGetRenderbufferParameterivEXTProc>(
1367 GetGLProcAddress("glGetRenderbufferParameteriv"));
1368 DCHECK(fn.glGetRenderbufferParameterivEXTFn);
1369 } else if (ext.b_GL_EXT_framebuffer_object) {
1370 fn.glGetRenderbufferParameterivEXTFn =
1371 reinterpret_cast<glGetRenderbufferParameterivEXTProc>(
1372 GetGLProcAddress("glGetRenderbufferParameterivEXT"));
1373 DCHECK(fn.glGetRenderbufferParameterivEXTFn);
1376 debug_fn.glGetSamplerParameterfvFn = 0;
1377 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1378 fn.glGetSamplerParameterfvFn =
1379 reinterpret_cast<glGetSamplerParameterfvProc>(
1380 GetGLProcAddress("glGetSamplerParameterfv"));
1381 DCHECK(fn.glGetSamplerParameterfvFn);
1384 debug_fn.glGetSamplerParameterivFn = 0;
1385 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1386 fn.glGetSamplerParameterivFn =
1387 reinterpret_cast<glGetSamplerParameterivProc>(
1388 GetGLProcAddress("glGetSamplerParameteriv"));
1389 DCHECK(fn.glGetSamplerParameterivFn);
1392 debug_fn.glGetShaderPrecisionFormatFn = 0;
1393 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
1394 fn.glGetShaderPrecisionFormatFn =
1395 reinterpret_cast<glGetShaderPrecisionFormatProc>(
1396 GetGLProcAddress("glGetShaderPrecisionFormat"));
1397 DCHECK(fn.glGetShaderPrecisionFormatFn);
1400 debug_fn.glGetStringiFn = 0;
1401 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1402 fn.glGetStringiFn =
1403 reinterpret_cast<glGetStringiProc>(GetGLProcAddress("glGetStringi"));
1404 DCHECK(fn.glGetStringiFn);
1407 debug_fn.glGetSyncivFn = 0;
1408 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
1409 ext.b_GL_ARB_sync) {
1410 fn.glGetSyncivFn =
1411 reinterpret_cast<glGetSyncivProc>(GetGLProcAddress("glGetSynciv"));
1412 DCHECK(fn.glGetSyncivFn);
1415 debug_fn.glGetTexLevelParameterfvFn = 0;
1416 if (!ver->is_es || ver->IsAtLeastGLES(3u, 1u)) {
1417 fn.glGetTexLevelParameterfvFn =
1418 reinterpret_cast<glGetTexLevelParameterfvProc>(
1419 GetGLProcAddress("glGetTexLevelParameterfv"));
1420 DCHECK(fn.glGetTexLevelParameterfvFn);
1423 debug_fn.glGetTexLevelParameterivFn = 0;
1424 if (!ver->is_es || ver->IsAtLeastGLES(3u, 1u)) {
1425 fn.glGetTexLevelParameterivFn =
1426 reinterpret_cast<glGetTexLevelParameterivProc>(
1427 GetGLProcAddress("glGetTexLevelParameteriv"));
1428 DCHECK(fn.glGetTexLevelParameterivFn);
1431 debug_fn.glGetTransformFeedbackVaryingFn = 0;
1432 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1433 fn.glGetTransformFeedbackVaryingFn =
1434 reinterpret_cast<glGetTransformFeedbackVaryingProc>(
1435 GetGLProcAddress("glGetTransformFeedbackVarying"));
1436 DCHECK(fn.glGetTransformFeedbackVaryingFn);
1439 debug_fn.glGetTranslatedShaderSourceANGLEFn = 0;
1440 if (ext.b_GL_ANGLE_translated_shader_source) {
1441 fn.glGetTranslatedShaderSourceANGLEFn =
1442 reinterpret_cast<glGetTranslatedShaderSourceANGLEProc>(
1443 GetGLProcAddress("glGetTranslatedShaderSourceANGLE"));
1444 DCHECK(fn.glGetTranslatedShaderSourceANGLEFn);
1447 debug_fn.glGetUniformBlockIndexFn = 0;
1448 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1449 fn.glGetUniformBlockIndexFn = reinterpret_cast<glGetUniformBlockIndexProc>(
1450 GetGLProcAddress("glGetUniformBlockIndex"));
1451 DCHECK(fn.glGetUniformBlockIndexFn);
1454 debug_fn.glGetUniformIndicesFn = 0;
1455 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1456 fn.glGetUniformIndicesFn = reinterpret_cast<glGetUniformIndicesProc>(
1457 GetGLProcAddress("glGetUniformIndices"));
1458 DCHECK(fn.glGetUniformIndicesFn);
1461 debug_fn.glInsertEventMarkerEXTFn = 0;
1462 if (ext.b_GL_EXT_debug_marker) {
1463 fn.glInsertEventMarkerEXTFn = reinterpret_cast<glInsertEventMarkerEXTProc>(
1464 GetGLProcAddress("glInsertEventMarkerEXT"));
1465 DCHECK(fn.glInsertEventMarkerEXTFn);
1468 debug_fn.glInvalidateFramebufferFn = 0;
1469 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1470 fn.glInvalidateFramebufferFn =
1471 reinterpret_cast<glInvalidateFramebufferProc>(
1472 GetGLProcAddress("glInvalidateFramebuffer"));
1473 DCHECK(fn.glInvalidateFramebufferFn);
1476 debug_fn.glInvalidateSubFramebufferFn = 0;
1477 if (ver->IsAtLeastGL(4u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1478 fn.glInvalidateSubFramebufferFn =
1479 reinterpret_cast<glInvalidateSubFramebufferProc>(
1480 GetGLProcAddress("glInvalidateSubFramebuffer"));
1481 DCHECK(fn.glInvalidateSubFramebufferFn);
1484 debug_fn.glIsFenceAPPLEFn = 0;
1485 if (ext.b_GL_APPLE_fence) {
1486 fn.glIsFenceAPPLEFn = reinterpret_cast<glIsFenceAPPLEProc>(
1487 GetGLProcAddress("glIsFenceAPPLE"));
1488 DCHECK(fn.glIsFenceAPPLEFn);
1491 debug_fn.glIsFenceNVFn = 0;
1492 if (ext.b_GL_NV_fence) {
1493 fn.glIsFenceNVFn =
1494 reinterpret_cast<glIsFenceNVProc>(GetGLProcAddress("glIsFenceNV"));
1495 DCHECK(fn.glIsFenceNVFn);
1498 debug_fn.glIsFramebufferEXTFn = 0;
1499 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1500 fn.glIsFramebufferEXTFn = reinterpret_cast<glIsFramebufferEXTProc>(
1501 GetGLProcAddress("glIsFramebuffer"));
1502 DCHECK(fn.glIsFramebufferEXTFn);
1503 } else if (ext.b_GL_EXT_framebuffer_object) {
1504 fn.glIsFramebufferEXTFn = reinterpret_cast<glIsFramebufferEXTProc>(
1505 GetGLProcAddress("glIsFramebufferEXT"));
1506 DCHECK(fn.glIsFramebufferEXTFn);
1509 debug_fn.glIsQueryFn = 0;
1510 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1511 fn.glIsQueryFn =
1512 reinterpret_cast<glIsQueryProc>(GetGLProcAddress("glIsQuery"));
1513 DCHECK(fn.glIsQueryFn);
1516 debug_fn.glIsQueryARBFn = 0;
1517 if (ext.b_GL_ARB_occlusion_query) {
1518 fn.glIsQueryARBFn =
1519 reinterpret_cast<glIsQueryARBProc>(GetGLProcAddress("glIsQueryARB"));
1520 DCHECK(fn.glIsQueryARBFn);
1521 } else if (ext.b_GL_EXT_disjoint_timer_query ||
1522 ext.b_GL_EXT_occlusion_query_boolean) {
1523 fn.glIsQueryARBFn =
1524 reinterpret_cast<glIsQueryARBProc>(GetGLProcAddress("glIsQueryEXT"));
1525 DCHECK(fn.glIsQueryARBFn);
1528 debug_fn.glIsRenderbufferEXTFn = 0;
1529 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1530 fn.glIsRenderbufferEXTFn = reinterpret_cast<glIsRenderbufferEXTProc>(
1531 GetGLProcAddress("glIsRenderbuffer"));
1532 DCHECK(fn.glIsRenderbufferEXTFn);
1533 } else if (ext.b_GL_EXT_framebuffer_object) {
1534 fn.glIsRenderbufferEXTFn = reinterpret_cast<glIsRenderbufferEXTProc>(
1535 GetGLProcAddress("glIsRenderbufferEXT"));
1536 DCHECK(fn.glIsRenderbufferEXTFn);
1539 debug_fn.glIsSamplerFn = 0;
1540 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1541 fn.glIsSamplerFn =
1542 reinterpret_cast<glIsSamplerProc>(GetGLProcAddress("glIsSampler"));
1543 DCHECK(fn.glIsSamplerFn);
1546 debug_fn.glIsSyncFn = 0;
1547 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
1548 ext.b_GL_ARB_sync) {
1549 fn.glIsSyncFn =
1550 reinterpret_cast<glIsSyncProc>(GetGLProcAddress("glIsSync"));
1551 DCHECK(fn.glIsSyncFn);
1554 debug_fn.glIsTransformFeedbackFn = 0;
1555 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
1556 fn.glIsTransformFeedbackFn = reinterpret_cast<glIsTransformFeedbackProc>(
1557 GetGLProcAddress("glIsTransformFeedback"));
1558 DCHECK(fn.glIsTransformFeedbackFn);
1561 debug_fn.glIsVertexArrayOESFn = 0;
1562 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
1563 ext.b_GL_ARB_vertex_array_object) {
1564 fn.glIsVertexArrayOESFn = reinterpret_cast<glIsVertexArrayOESProc>(
1565 GetGLProcAddress("glIsVertexArray"));
1566 DCHECK(fn.glIsVertexArrayOESFn);
1567 } else if (ext.b_GL_OES_vertex_array_object) {
1568 fn.glIsVertexArrayOESFn = reinterpret_cast<glIsVertexArrayOESProc>(
1569 GetGLProcAddress("glIsVertexArrayOES"));
1570 DCHECK(fn.glIsVertexArrayOESFn);
1571 } else if (ext.b_GL_APPLE_vertex_array_object) {
1572 fn.glIsVertexArrayOESFn = reinterpret_cast<glIsVertexArrayOESProc>(
1573 GetGLProcAddress("glIsVertexArrayAPPLE"));
1574 DCHECK(fn.glIsVertexArrayOESFn);
1577 debug_fn.glMapBufferFn = 0;
1578 if (!ver->is_es) {
1579 fn.glMapBufferFn =
1580 reinterpret_cast<glMapBufferProc>(GetGLProcAddress("glMapBuffer"));
1581 DCHECK(fn.glMapBufferFn);
1582 } else if (ext.b_GL_OES_mapbuffer) {
1583 fn.glMapBufferFn =
1584 reinterpret_cast<glMapBufferProc>(GetGLProcAddress("glMapBufferOES"));
1585 DCHECK(fn.glMapBufferFn);
1588 debug_fn.glMapBufferRangeFn = 0;
1589 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u) ||
1590 ext.b_GL_ARB_map_buffer_range) {
1591 fn.glMapBufferRangeFn = reinterpret_cast<glMapBufferRangeProc>(
1592 GetGLProcAddress("glMapBufferRange"));
1593 DCHECK(fn.glMapBufferRangeFn);
1594 } else if (ext.b_GL_EXT_map_buffer_range) {
1595 fn.glMapBufferRangeFn = reinterpret_cast<glMapBufferRangeProc>(
1596 GetGLProcAddress("glMapBufferRangeEXT"));
1597 DCHECK(fn.glMapBufferRangeFn);
1600 debug_fn.glMatrixLoadfEXTFn = 0;
1601 if (ext.b_GL_EXT_direct_state_access || ext.b_GL_NV_path_rendering) {
1602 fn.glMatrixLoadfEXTFn = reinterpret_cast<glMatrixLoadfEXTProc>(
1603 GetGLProcAddress("glMatrixLoadfEXT"));
1604 DCHECK(fn.glMatrixLoadfEXTFn);
1607 debug_fn.glMatrixLoadIdentityEXTFn = 0;
1608 if (ext.b_GL_EXT_direct_state_access || ext.b_GL_NV_path_rendering) {
1609 fn.glMatrixLoadIdentityEXTFn =
1610 reinterpret_cast<glMatrixLoadIdentityEXTProc>(
1611 GetGLProcAddress("glMatrixLoadIdentityEXT"));
1612 DCHECK(fn.glMatrixLoadIdentityEXTFn);
1615 debug_fn.glPauseTransformFeedbackFn = 0;
1616 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
1617 fn.glPauseTransformFeedbackFn =
1618 reinterpret_cast<glPauseTransformFeedbackProc>(
1619 GetGLProcAddress("glPauseTransformFeedback"));
1620 DCHECK(fn.glPauseTransformFeedbackFn);
1623 debug_fn.glPointParameteriFn = 0;
1624 if (!ver->is_es) {
1625 fn.glPointParameteriFn = reinterpret_cast<glPointParameteriProc>(
1626 GetGLProcAddress("glPointParameteri"));
1627 DCHECK(fn.glPointParameteriFn);
1630 debug_fn.glPopGroupMarkerEXTFn = 0;
1631 if (ext.b_GL_EXT_debug_marker) {
1632 fn.glPopGroupMarkerEXTFn = reinterpret_cast<glPopGroupMarkerEXTProc>(
1633 GetGLProcAddress("glPopGroupMarkerEXT"));
1634 DCHECK(fn.glPopGroupMarkerEXTFn);
1637 debug_fn.glProgramBinaryFn = 0;
1638 if (ver->IsAtLeastGL(4u, 1u) || ver->IsAtLeastGLES(3u, 0u) ||
1639 ext.b_GL_ARB_get_program_binary) {
1640 fn.glProgramBinaryFn = reinterpret_cast<glProgramBinaryProc>(
1641 GetGLProcAddress("glProgramBinary"));
1642 DCHECK(fn.glProgramBinaryFn);
1643 } else if (ext.b_GL_OES_get_program_binary) {
1644 fn.glProgramBinaryFn = reinterpret_cast<glProgramBinaryProc>(
1645 GetGLProcAddress("glProgramBinaryOES"));
1646 DCHECK(fn.glProgramBinaryFn);
1649 debug_fn.glProgramParameteriFn = 0;
1650 if (ver->IsAtLeastGL(4u, 1u) || ver->IsAtLeastGLES(3u, 0u) ||
1651 ext.b_GL_ARB_get_program_binary) {
1652 fn.glProgramParameteriFn = reinterpret_cast<glProgramParameteriProc>(
1653 GetGLProcAddress("glProgramParameteri"));
1654 DCHECK(fn.glProgramParameteriFn);
1657 debug_fn.glPushGroupMarkerEXTFn = 0;
1658 if (ext.b_GL_EXT_debug_marker) {
1659 fn.glPushGroupMarkerEXTFn = reinterpret_cast<glPushGroupMarkerEXTProc>(
1660 GetGLProcAddress("glPushGroupMarkerEXT"));
1661 DCHECK(fn.glPushGroupMarkerEXTFn);
1664 debug_fn.glQueryCounterFn = 0;
1665 if (ver->IsAtLeastGL(3u, 3u) || ext.b_GL_ARB_timer_query) {
1666 fn.glQueryCounterFn = reinterpret_cast<glQueryCounterProc>(
1667 GetGLProcAddress("glQueryCounter"));
1668 DCHECK(fn.glQueryCounterFn);
1669 } else if (ext.b_GL_EXT_disjoint_timer_query) {
1670 fn.glQueryCounterFn = reinterpret_cast<glQueryCounterProc>(
1671 GetGLProcAddress("glQueryCounterEXT"));
1672 DCHECK(fn.glQueryCounterFn);
1675 debug_fn.glReadBufferFn = 0;
1676 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1677 fn.glReadBufferFn =
1678 reinterpret_cast<glReadBufferProc>(GetGLProcAddress("glReadBuffer"));
1679 DCHECK(fn.glReadBufferFn);
1682 debug_fn.glReleaseShaderCompilerFn = 0;
1683 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
1684 fn.glReleaseShaderCompilerFn =
1685 reinterpret_cast<glReleaseShaderCompilerProc>(
1686 GetGLProcAddress("glReleaseShaderCompiler"));
1687 DCHECK(fn.glReleaseShaderCompilerFn);
1690 debug_fn.glRenderbufferStorageEXTFn = 0;
1691 if (ver->IsAtLeastGL(3u, 0u) || ver->is_es) {
1692 fn.glRenderbufferStorageEXTFn =
1693 reinterpret_cast<glRenderbufferStorageEXTProc>(
1694 GetGLProcAddress("glRenderbufferStorage"));
1695 DCHECK(fn.glRenderbufferStorageEXTFn);
1696 } else if (ext.b_GL_EXT_framebuffer_object) {
1697 fn.glRenderbufferStorageEXTFn =
1698 reinterpret_cast<glRenderbufferStorageEXTProc>(
1699 GetGLProcAddress("glRenderbufferStorageEXT"));
1700 DCHECK(fn.glRenderbufferStorageEXTFn);
1703 debug_fn.glRenderbufferStorageMultisampleFn = 0;
1704 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1705 fn.glRenderbufferStorageMultisampleFn =
1706 reinterpret_cast<glRenderbufferStorageMultisampleProc>(
1707 GetGLProcAddress("glRenderbufferStorageMultisample"));
1708 DCHECK(fn.glRenderbufferStorageMultisampleFn);
1711 debug_fn.glRenderbufferStorageMultisampleANGLEFn = 0;
1712 if (ext.b_GL_ANGLE_framebuffer_multisample) {
1713 fn.glRenderbufferStorageMultisampleANGLEFn =
1714 reinterpret_cast<glRenderbufferStorageMultisampleANGLEProc>(
1715 GetGLProcAddress("glRenderbufferStorageMultisampleANGLE"));
1716 DCHECK(fn.glRenderbufferStorageMultisampleANGLEFn);
1719 debug_fn.glRenderbufferStorageMultisampleEXTFn = 0;
1720 if (ext.b_GL_EXT_multisampled_render_to_texture ||
1721 ext.b_GL_EXT_framebuffer_multisample) {
1722 fn.glRenderbufferStorageMultisampleEXTFn =
1723 reinterpret_cast<glRenderbufferStorageMultisampleEXTProc>(
1724 GetGLProcAddress("glRenderbufferStorageMultisampleEXT"));
1725 DCHECK(fn.glRenderbufferStorageMultisampleEXTFn);
1728 debug_fn.glRenderbufferStorageMultisampleIMGFn = 0;
1729 if (ext.b_GL_IMG_multisampled_render_to_texture) {
1730 fn.glRenderbufferStorageMultisampleIMGFn =
1731 reinterpret_cast<glRenderbufferStorageMultisampleIMGProc>(
1732 GetGLProcAddress("glRenderbufferStorageMultisampleIMG"));
1733 DCHECK(fn.glRenderbufferStorageMultisampleIMGFn);
1736 debug_fn.glResumeTransformFeedbackFn = 0;
1737 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(4u, 0u)) {
1738 fn.glResumeTransformFeedbackFn =
1739 reinterpret_cast<glResumeTransformFeedbackProc>(
1740 GetGLProcAddress("glResumeTransformFeedback"));
1741 DCHECK(fn.glResumeTransformFeedbackFn);
1744 debug_fn.glSamplerParameterfFn = 0;
1745 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1746 fn.glSamplerParameterfFn = reinterpret_cast<glSamplerParameterfProc>(
1747 GetGLProcAddress("glSamplerParameterf"));
1748 DCHECK(fn.glSamplerParameterfFn);
1751 debug_fn.glSamplerParameterfvFn = 0;
1752 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1753 fn.glSamplerParameterfvFn = reinterpret_cast<glSamplerParameterfvProc>(
1754 GetGLProcAddress("glSamplerParameterfv"));
1755 DCHECK(fn.glSamplerParameterfvFn);
1758 debug_fn.glSamplerParameteriFn = 0;
1759 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1760 fn.glSamplerParameteriFn = reinterpret_cast<glSamplerParameteriProc>(
1761 GetGLProcAddress("glSamplerParameteri"));
1762 DCHECK(fn.glSamplerParameteriFn);
1765 debug_fn.glSamplerParameterivFn = 0;
1766 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1767 fn.glSamplerParameterivFn = reinterpret_cast<glSamplerParameterivProc>(
1768 GetGLProcAddress("glSamplerParameteriv"));
1769 DCHECK(fn.glSamplerParameterivFn);
1772 debug_fn.glSetFenceAPPLEFn = 0;
1773 if (ext.b_GL_APPLE_fence) {
1774 fn.glSetFenceAPPLEFn = reinterpret_cast<glSetFenceAPPLEProc>(
1775 GetGLProcAddress("glSetFenceAPPLE"));
1776 DCHECK(fn.glSetFenceAPPLEFn);
1779 debug_fn.glSetFenceNVFn = 0;
1780 if (ext.b_GL_NV_fence) {
1781 fn.glSetFenceNVFn =
1782 reinterpret_cast<glSetFenceNVProc>(GetGLProcAddress("glSetFenceNV"));
1783 DCHECK(fn.glSetFenceNVFn);
1786 debug_fn.glShaderBinaryFn = 0;
1787 if (ver->IsAtLeastGL(4u, 1u) || ver->is_es) {
1788 fn.glShaderBinaryFn = reinterpret_cast<glShaderBinaryProc>(
1789 GetGLProcAddress("glShaderBinary"));
1790 DCHECK(fn.glShaderBinaryFn);
1793 debug_fn.glTestFenceAPPLEFn = 0;
1794 if (ext.b_GL_APPLE_fence) {
1795 fn.glTestFenceAPPLEFn = reinterpret_cast<glTestFenceAPPLEProc>(
1796 GetGLProcAddress("glTestFenceAPPLE"));
1797 DCHECK(fn.glTestFenceAPPLEFn);
1800 debug_fn.glTestFenceNVFn = 0;
1801 if (ext.b_GL_NV_fence) {
1802 fn.glTestFenceNVFn =
1803 reinterpret_cast<glTestFenceNVProc>(GetGLProcAddress("glTestFenceNV"));
1804 DCHECK(fn.glTestFenceNVFn);
1807 debug_fn.glTexImage3DFn = 0;
1808 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1809 fn.glTexImage3DFn =
1810 reinterpret_cast<glTexImage3DProc>(GetGLProcAddress("glTexImage3D"));
1811 DCHECK(fn.glTexImage3DFn);
1814 debug_fn.glTexStorage2DEXTFn = 0;
1815 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
1816 ext.b_GL_ARB_texture_storage) {
1817 fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>(
1818 GetGLProcAddress("glTexStorage2D"));
1819 DCHECK(fn.glTexStorage2DEXTFn);
1820 } else if (ext.b_GL_EXT_texture_storage) {
1821 fn.glTexStorage2DEXTFn = reinterpret_cast<glTexStorage2DEXTProc>(
1822 GetGLProcAddress("glTexStorage2DEXT"));
1823 DCHECK(fn.glTexStorage2DEXTFn);
1826 debug_fn.glTexStorage3DFn = 0;
1827 if (ver->IsAtLeastGL(4u, 2u) || ver->IsAtLeastGLES(3u, 0u)) {
1828 fn.glTexStorage3DFn = reinterpret_cast<glTexStorage3DProc>(
1829 GetGLProcAddress("glTexStorage3D"));
1830 DCHECK(fn.glTexStorage3DFn);
1833 debug_fn.glTransformFeedbackVaryingsFn = 0;
1834 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1835 fn.glTransformFeedbackVaryingsFn =
1836 reinterpret_cast<glTransformFeedbackVaryingsProc>(
1837 GetGLProcAddress("glTransformFeedbackVaryings"));
1838 DCHECK(fn.glTransformFeedbackVaryingsFn);
1841 debug_fn.glUniform1uiFn = 0;
1842 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1843 fn.glUniform1uiFn =
1844 reinterpret_cast<glUniform1uiProc>(GetGLProcAddress("glUniform1ui"));
1845 DCHECK(fn.glUniform1uiFn);
1848 debug_fn.glUniform1uivFn = 0;
1849 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1850 fn.glUniform1uivFn =
1851 reinterpret_cast<glUniform1uivProc>(GetGLProcAddress("glUniform1uiv"));
1852 DCHECK(fn.glUniform1uivFn);
1855 debug_fn.glUniform2uiFn = 0;
1856 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1857 fn.glUniform2uiFn =
1858 reinterpret_cast<glUniform2uiProc>(GetGLProcAddress("glUniform2ui"));
1859 DCHECK(fn.glUniform2uiFn);
1862 debug_fn.glUniform2uivFn = 0;
1863 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1864 fn.glUniform2uivFn =
1865 reinterpret_cast<glUniform2uivProc>(GetGLProcAddress("glUniform2uiv"));
1866 DCHECK(fn.glUniform2uivFn);
1869 debug_fn.glUniform3uiFn = 0;
1870 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1871 fn.glUniform3uiFn =
1872 reinterpret_cast<glUniform3uiProc>(GetGLProcAddress("glUniform3ui"));
1873 DCHECK(fn.glUniform3uiFn);
1876 debug_fn.glUniform3uivFn = 0;
1877 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1878 fn.glUniform3uivFn =
1879 reinterpret_cast<glUniform3uivProc>(GetGLProcAddress("glUniform3uiv"));
1880 DCHECK(fn.glUniform3uivFn);
1883 debug_fn.glUniform4uiFn = 0;
1884 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1885 fn.glUniform4uiFn =
1886 reinterpret_cast<glUniform4uiProc>(GetGLProcAddress("glUniform4ui"));
1887 DCHECK(fn.glUniform4uiFn);
1890 debug_fn.glUniform4uivFn = 0;
1891 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1892 fn.glUniform4uivFn =
1893 reinterpret_cast<glUniform4uivProc>(GetGLProcAddress("glUniform4uiv"));
1894 DCHECK(fn.glUniform4uivFn);
1897 debug_fn.glUniformBlockBindingFn = 0;
1898 if (ver->IsAtLeastGLES(3u, 0u) || ver->IsAtLeastGL(3u, 1u)) {
1899 fn.glUniformBlockBindingFn = reinterpret_cast<glUniformBlockBindingProc>(
1900 GetGLProcAddress("glUniformBlockBinding"));
1901 DCHECK(fn.glUniformBlockBindingFn);
1904 debug_fn.glUniformMatrix2x3fvFn = 0;
1905 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1906 fn.glUniformMatrix2x3fvFn = reinterpret_cast<glUniformMatrix2x3fvProc>(
1907 GetGLProcAddress("glUniformMatrix2x3fv"));
1908 DCHECK(fn.glUniformMatrix2x3fvFn);
1911 debug_fn.glUniformMatrix2x4fvFn = 0;
1912 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1913 fn.glUniformMatrix2x4fvFn = reinterpret_cast<glUniformMatrix2x4fvProc>(
1914 GetGLProcAddress("glUniformMatrix2x4fv"));
1915 DCHECK(fn.glUniformMatrix2x4fvFn);
1918 debug_fn.glUniformMatrix3x2fvFn = 0;
1919 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1920 fn.glUniformMatrix3x2fvFn = reinterpret_cast<glUniformMatrix3x2fvProc>(
1921 GetGLProcAddress("glUniformMatrix3x2fv"));
1922 DCHECK(fn.glUniformMatrix3x2fvFn);
1925 debug_fn.glUniformMatrix3x4fvFn = 0;
1926 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1927 fn.glUniformMatrix3x4fvFn = reinterpret_cast<glUniformMatrix3x4fvProc>(
1928 GetGLProcAddress("glUniformMatrix3x4fv"));
1929 DCHECK(fn.glUniformMatrix3x4fvFn);
1932 debug_fn.glUniformMatrix4x2fvFn = 0;
1933 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1934 fn.glUniformMatrix4x2fvFn = reinterpret_cast<glUniformMatrix4x2fvProc>(
1935 GetGLProcAddress("glUniformMatrix4x2fv"));
1936 DCHECK(fn.glUniformMatrix4x2fvFn);
1939 debug_fn.glUniformMatrix4x3fvFn = 0;
1940 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1941 fn.glUniformMatrix4x3fvFn = reinterpret_cast<glUniformMatrix4x3fvProc>(
1942 GetGLProcAddress("glUniformMatrix4x3fv"));
1943 DCHECK(fn.glUniformMatrix4x3fvFn);
1946 debug_fn.glUnmapBufferFn = 0;
1947 if (!ver->is_es || ver->IsAtLeastGLES(3u, 0u)) {
1948 fn.glUnmapBufferFn =
1949 reinterpret_cast<glUnmapBufferProc>(GetGLProcAddress("glUnmapBuffer"));
1950 DCHECK(fn.glUnmapBufferFn);
1951 } else if (ext.b_GL_OES_mapbuffer) {
1952 fn.glUnmapBufferFn = reinterpret_cast<glUnmapBufferProc>(
1953 GetGLProcAddress("glUnmapBufferOES"));
1954 DCHECK(fn.glUnmapBufferFn);
1957 debug_fn.glVertexAttribDivisorANGLEFn = 0;
1958 if (ver->IsAtLeastGL(3u, 3u) || ver->IsAtLeastGLES(3u, 0u)) {
1959 fn.glVertexAttribDivisorANGLEFn =
1960 reinterpret_cast<glVertexAttribDivisorANGLEProc>(
1961 GetGLProcAddress("glVertexAttribDivisor"));
1962 DCHECK(fn.glVertexAttribDivisorANGLEFn);
1963 } else if (ext.b_GL_ARB_instanced_arrays) {
1964 fn.glVertexAttribDivisorANGLEFn =
1965 reinterpret_cast<glVertexAttribDivisorANGLEProc>(
1966 GetGLProcAddress("glVertexAttribDivisorARB"));
1967 DCHECK(fn.glVertexAttribDivisorANGLEFn);
1968 } else if (ext.b_GL_ANGLE_instanced_arrays) {
1969 fn.glVertexAttribDivisorANGLEFn =
1970 reinterpret_cast<glVertexAttribDivisorANGLEProc>(
1971 GetGLProcAddress("glVertexAttribDivisorANGLE"));
1972 DCHECK(fn.glVertexAttribDivisorANGLEFn);
1975 debug_fn.glVertexAttribI4iFn = 0;
1976 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1977 fn.glVertexAttribI4iFn = reinterpret_cast<glVertexAttribI4iProc>(
1978 GetGLProcAddress("glVertexAttribI4i"));
1979 DCHECK(fn.glVertexAttribI4iFn);
1982 debug_fn.glVertexAttribI4ivFn = 0;
1983 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1984 fn.glVertexAttribI4ivFn = reinterpret_cast<glVertexAttribI4ivProc>(
1985 GetGLProcAddress("glVertexAttribI4iv"));
1986 DCHECK(fn.glVertexAttribI4ivFn);
1989 debug_fn.glVertexAttribI4uiFn = 0;
1990 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1991 fn.glVertexAttribI4uiFn = reinterpret_cast<glVertexAttribI4uiProc>(
1992 GetGLProcAddress("glVertexAttribI4ui"));
1993 DCHECK(fn.glVertexAttribI4uiFn);
1996 debug_fn.glVertexAttribI4uivFn = 0;
1997 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
1998 fn.glVertexAttribI4uivFn = reinterpret_cast<glVertexAttribI4uivProc>(
1999 GetGLProcAddress("glVertexAttribI4uiv"));
2000 DCHECK(fn.glVertexAttribI4uivFn);
2003 debug_fn.glVertexAttribIPointerFn = 0;
2004 if (ver->IsAtLeastGL(3u, 0u) || ver->IsAtLeastGLES(3u, 0u)) {
2005 fn.glVertexAttribIPointerFn = reinterpret_cast<glVertexAttribIPointerProc>(
2006 GetGLProcAddress("glVertexAttribIPointer"));
2007 DCHECK(fn.glVertexAttribIPointerFn);
2010 debug_fn.glWaitSyncFn = 0;
2011 if (ver->IsAtLeastGL(3u, 2u) || ver->IsAtLeastGLES(3u, 0u) ||
2012 ext.b_GL_ARB_sync) {
2013 fn.glWaitSyncFn =
2014 reinterpret_cast<glWaitSyncProc>(GetGLProcAddress("glWaitSync"));
2015 DCHECK(fn.glWaitSyncFn);
2018 if (g_debugBindingsInitialized)
2019 InitializeDebugBindings();
2022 extern "C" {
2024 static void GL_BINDING_CALL Debug_glActiveTexture(GLenum texture) {
2025 GL_SERVICE_LOG("glActiveTexture"
2026 << "(" << GLEnums::GetStringEnum(texture) << ")");
2027 g_driver_gl.debug_fn.glActiveTextureFn(texture);
2030 static void GL_BINDING_CALL
2031 Debug_glAttachShader(GLuint program, GLuint shader) {
2032 GL_SERVICE_LOG("glAttachShader"
2033 << "(" << program << ", " << shader << ")");
2034 g_driver_gl.debug_fn.glAttachShaderFn(program, shader);
2037 static void GL_BINDING_CALL Debug_glBeginQuery(GLenum target, GLuint id) {
2038 GL_SERVICE_LOG("glBeginQuery"
2039 << "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
2040 g_driver_gl.debug_fn.glBeginQueryFn(target, id);
2043 static void GL_BINDING_CALL Debug_glBeginQueryARB(GLenum target, GLuint id) {
2044 GL_SERVICE_LOG("glBeginQueryARB"
2045 << "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
2046 g_driver_gl.debug_fn.glBeginQueryARBFn(target, id);
2049 static void GL_BINDING_CALL
2050 Debug_glBeginTransformFeedback(GLenum primitiveMode) {
2051 GL_SERVICE_LOG("glBeginTransformFeedback"
2052 << "(" << GLEnums::GetStringEnum(primitiveMode) << ")");
2053 g_driver_gl.debug_fn.glBeginTransformFeedbackFn(primitiveMode);
2056 static void GL_BINDING_CALL
2057 Debug_glBindAttribLocation(GLuint program, GLuint index, const char* name) {
2058 GL_SERVICE_LOG("glBindAttribLocation"
2059 << "(" << program << ", " << index << ", " << name << ")");
2060 g_driver_gl.debug_fn.glBindAttribLocationFn(program, index, name);
2063 static void GL_BINDING_CALL Debug_glBindBuffer(GLenum target, GLuint buffer) {
2064 GL_SERVICE_LOG("glBindBuffer"
2065 << "(" << GLEnums::GetStringEnum(target) << ", " << buffer
2066 << ")");
2067 g_driver_gl.debug_fn.glBindBufferFn(target, buffer);
2070 static void GL_BINDING_CALL
2071 Debug_glBindBufferBase(GLenum target, GLuint index, GLuint buffer) {
2072 GL_SERVICE_LOG("glBindBufferBase"
2073 << "(" << GLEnums::GetStringEnum(target) << ", " << index
2074 << ", " << buffer << ")");
2075 g_driver_gl.debug_fn.glBindBufferBaseFn(target, index, buffer);
2078 static void GL_BINDING_CALL Debug_glBindBufferRange(GLenum target,
2079 GLuint index,
2080 GLuint buffer,
2081 GLintptr offset,
2082 GLsizeiptr size) {
2083 GL_SERVICE_LOG("glBindBufferRange"
2084 << "(" << GLEnums::GetStringEnum(target) << ", " << index
2085 << ", " << buffer << ", " << offset << ", " << size << ")");
2086 g_driver_gl.debug_fn.glBindBufferRangeFn(target, index, buffer, offset, size);
2089 static void GL_BINDING_CALL Debug_glBindFragDataLocation(GLuint program,
2090 GLuint colorNumber,
2091 const char* name) {
2092 GL_SERVICE_LOG("glBindFragDataLocation"
2093 << "(" << program << ", " << colorNumber << ", " << name
2094 << ")");
2095 g_driver_gl.debug_fn.glBindFragDataLocationFn(program, colorNumber, name);
2098 static void GL_BINDING_CALL
2099 Debug_glBindFragDataLocationIndexed(GLuint program,
2100 GLuint colorNumber,
2101 GLuint index,
2102 const char* name) {
2103 GL_SERVICE_LOG("glBindFragDataLocationIndexed"
2104 << "(" << program << ", " << colorNumber << ", " << index
2105 << ", " << name << ")");
2106 g_driver_gl.debug_fn.glBindFragDataLocationIndexedFn(program, colorNumber,
2107 index, name);
2110 static void GL_BINDING_CALL
2111 Debug_glBindFramebufferEXT(GLenum target, GLuint framebuffer) {
2112 GL_SERVICE_LOG("glBindFramebufferEXT"
2113 << "(" << GLEnums::GetStringEnum(target) << ", " << framebuffer
2114 << ")");
2115 g_driver_gl.debug_fn.glBindFramebufferEXTFn(target, framebuffer);
2118 static void GL_BINDING_CALL
2119 Debug_glBindRenderbufferEXT(GLenum target, GLuint renderbuffer) {
2120 GL_SERVICE_LOG("glBindRenderbufferEXT"
2121 << "(" << GLEnums::GetStringEnum(target) << ", "
2122 << renderbuffer << ")");
2123 g_driver_gl.debug_fn.glBindRenderbufferEXTFn(target, renderbuffer);
2126 static void GL_BINDING_CALL Debug_glBindSampler(GLuint unit, GLuint sampler) {
2127 GL_SERVICE_LOG("glBindSampler"
2128 << "(" << unit << ", " << sampler << ")");
2129 g_driver_gl.debug_fn.glBindSamplerFn(unit, sampler);
2132 static void GL_BINDING_CALL Debug_glBindTexture(GLenum target, GLuint texture) {
2133 GL_SERVICE_LOG("glBindTexture"
2134 << "(" << GLEnums::GetStringEnum(target) << ", " << texture
2135 << ")");
2136 g_driver_gl.debug_fn.glBindTextureFn(target, texture);
2139 static void GL_BINDING_CALL
2140 Debug_glBindTransformFeedback(GLenum target, GLuint id) {
2141 GL_SERVICE_LOG("glBindTransformFeedback"
2142 << "(" << GLEnums::GetStringEnum(target) << ", " << id << ")");
2143 g_driver_gl.debug_fn.glBindTransformFeedbackFn(target, id);
2146 static void GL_BINDING_CALL Debug_glBindVertexArrayOES(GLuint array) {
2147 GL_SERVICE_LOG("glBindVertexArrayOES"
2148 << "(" << array << ")");
2149 g_driver_gl.debug_fn.glBindVertexArrayOESFn(array);
2152 static void GL_BINDING_CALL Debug_glBlendBarrierKHR(void) {
2153 GL_SERVICE_LOG("glBlendBarrierKHR"
2154 << "("
2155 << ")");
2156 g_driver_gl.debug_fn.glBlendBarrierKHRFn();
2159 static void GL_BINDING_CALL Debug_glBlendColor(GLclampf red,
2160 GLclampf green,
2161 GLclampf blue,
2162 GLclampf alpha) {
2163 GL_SERVICE_LOG("glBlendColor"
2164 << "(" << red << ", " << green << ", " << blue << ", " << alpha
2165 << ")");
2166 g_driver_gl.debug_fn.glBlendColorFn(red, green, blue, alpha);
2169 static void GL_BINDING_CALL Debug_glBlendEquation(GLenum mode) {
2170 GL_SERVICE_LOG("glBlendEquation"
2171 << "(" << GLEnums::GetStringEnum(mode) << ")");
2172 g_driver_gl.debug_fn.glBlendEquationFn(mode);
2175 static void GL_BINDING_CALL
2176 Debug_glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
2177 GL_SERVICE_LOG("glBlendEquationSeparate"
2178 << "(" << GLEnums::GetStringEnum(modeRGB) << ", "
2179 << GLEnums::GetStringEnum(modeAlpha) << ")");
2180 g_driver_gl.debug_fn.glBlendEquationSeparateFn(modeRGB, modeAlpha);
2183 static void GL_BINDING_CALL Debug_glBlendFunc(GLenum sfactor, GLenum dfactor) {
2184 GL_SERVICE_LOG("glBlendFunc"
2185 << "(" << GLEnums::GetStringEnum(sfactor) << ", "
2186 << GLEnums::GetStringEnum(dfactor) << ")");
2187 g_driver_gl.debug_fn.glBlendFuncFn(sfactor, dfactor);
2190 static void GL_BINDING_CALL Debug_glBlendFuncSeparate(GLenum srcRGB,
2191 GLenum dstRGB,
2192 GLenum srcAlpha,
2193 GLenum dstAlpha) {
2194 GL_SERVICE_LOG("glBlendFuncSeparate"
2195 << "(" << GLEnums::GetStringEnum(srcRGB) << ", "
2196 << GLEnums::GetStringEnum(dstRGB) << ", "
2197 << GLEnums::GetStringEnum(srcAlpha) << ", "
2198 << GLEnums::GetStringEnum(dstAlpha) << ")");
2199 g_driver_gl.debug_fn.glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha,
2200 dstAlpha);
2203 static void GL_BINDING_CALL Debug_glBlitFramebuffer(GLint srcX0,
2204 GLint srcY0,
2205 GLint srcX1,
2206 GLint srcY1,
2207 GLint dstX0,
2208 GLint dstY0,
2209 GLint dstX1,
2210 GLint dstY1,
2211 GLbitfield mask,
2212 GLenum filter) {
2213 GL_SERVICE_LOG("glBlitFramebuffer"
2214 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2215 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2216 << ", " << dstY1 << ", " << mask << ", "
2217 << GLEnums::GetStringEnum(filter) << ")");
2218 g_driver_gl.debug_fn.glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0,
2219 dstY0, dstX1, dstY1, mask, filter);
2222 static void GL_BINDING_CALL Debug_glBlitFramebufferANGLE(GLint srcX0,
2223 GLint srcY0,
2224 GLint srcX1,
2225 GLint srcY1,
2226 GLint dstX0,
2227 GLint dstY0,
2228 GLint dstX1,
2229 GLint dstY1,
2230 GLbitfield mask,
2231 GLenum filter) {
2232 GL_SERVICE_LOG("glBlitFramebufferANGLE"
2233 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2234 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2235 << ", " << dstY1 << ", " << mask << ", "
2236 << GLEnums::GetStringEnum(filter) << ")");
2237 g_driver_gl.debug_fn.glBlitFramebufferANGLEFn(
2238 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
2241 static void GL_BINDING_CALL Debug_glBlitFramebufferEXT(GLint srcX0,
2242 GLint srcY0,
2243 GLint srcX1,
2244 GLint srcY1,
2245 GLint dstX0,
2246 GLint dstY0,
2247 GLint dstX1,
2248 GLint dstY1,
2249 GLbitfield mask,
2250 GLenum filter) {
2251 GL_SERVICE_LOG("glBlitFramebufferEXT"
2252 << "(" << srcX0 << ", " << srcY0 << ", " << srcX1 << ", "
2253 << srcY1 << ", " << dstX0 << ", " << dstY0 << ", " << dstX1
2254 << ", " << dstY1 << ", " << mask << ", "
2255 << GLEnums::GetStringEnum(filter) << ")");
2256 g_driver_gl.debug_fn.glBlitFramebufferEXTFn(
2257 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
2260 static void GL_BINDING_CALL Debug_glBufferData(GLenum target,
2261 GLsizeiptr size,
2262 const void* data,
2263 GLenum usage) {
2264 GL_SERVICE_LOG("glBufferData"
2265 << "(" << GLEnums::GetStringEnum(target) << ", " << size
2266 << ", " << static_cast<const void*>(data) << ", "
2267 << GLEnums::GetStringEnum(usage) << ")");
2268 g_driver_gl.debug_fn.glBufferDataFn(target, size, data, usage);
2271 static void GL_BINDING_CALL Debug_glBufferSubData(GLenum target,
2272 GLintptr offset,
2273 GLsizeiptr size,
2274 const void* data) {
2275 GL_SERVICE_LOG("glBufferSubData"
2276 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
2277 << ", " << size << ", " << static_cast<const void*>(data)
2278 << ")");
2279 g_driver_gl.debug_fn.glBufferSubDataFn(target, offset, size, data);
2282 static GLenum GL_BINDING_CALL Debug_glCheckFramebufferStatusEXT(GLenum target) {
2283 GL_SERVICE_LOG("glCheckFramebufferStatusEXT"
2284 << "(" << GLEnums::GetStringEnum(target) << ")");
2285 GLenum result = g_driver_gl.debug_fn.glCheckFramebufferStatusEXTFn(target);
2287 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringEnum(result));
2289 return result;
2292 static void GL_BINDING_CALL Debug_glClear(GLbitfield mask) {
2293 GL_SERVICE_LOG("glClear"
2294 << "(" << mask << ")");
2295 g_driver_gl.debug_fn.glClearFn(mask);
2298 static void GL_BINDING_CALL Debug_glClearBufferfi(GLenum buffer,
2299 GLint drawbuffer,
2300 const GLfloat depth,
2301 GLint stencil) {
2302 GL_SERVICE_LOG("glClearBufferfi"
2303 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2304 << ", " << depth << ", " << stencil << ")");
2305 g_driver_gl.debug_fn.glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
2308 static void GL_BINDING_CALL
2309 Debug_glClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat* value) {
2310 GL_SERVICE_LOG("glClearBufferfv"
2311 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2312 << ", " << static_cast<const void*>(value) << ")");
2313 g_driver_gl.debug_fn.glClearBufferfvFn(buffer, drawbuffer, value);
2316 static void GL_BINDING_CALL
2317 Debug_glClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint* value) {
2318 GL_SERVICE_LOG("glClearBufferiv"
2319 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2320 << ", " << static_cast<const void*>(value) << ")");
2321 g_driver_gl.debug_fn.glClearBufferivFn(buffer, drawbuffer, value);
2324 static void GL_BINDING_CALL
2325 Debug_glClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint* value) {
2326 GL_SERVICE_LOG("glClearBufferuiv"
2327 << "(" << GLEnums::GetStringEnum(buffer) << ", " << drawbuffer
2328 << ", " << static_cast<const void*>(value) << ")");
2329 g_driver_gl.debug_fn.glClearBufferuivFn(buffer, drawbuffer, value);
2332 static void GL_BINDING_CALL Debug_glClearColor(GLclampf red,
2333 GLclampf green,
2334 GLclampf blue,
2335 GLclampf alpha) {
2336 GL_SERVICE_LOG("glClearColor"
2337 << "(" << red << ", " << green << ", " << blue << ", " << alpha
2338 << ")");
2339 g_driver_gl.debug_fn.glClearColorFn(red, green, blue, alpha);
2342 static void GL_BINDING_CALL Debug_glClearDepth(GLclampd depth) {
2343 GL_SERVICE_LOG("glClearDepth"
2344 << "(" << depth << ")");
2345 g_driver_gl.debug_fn.glClearDepthFn(depth);
2348 static void GL_BINDING_CALL Debug_glClearDepthf(GLclampf depth) {
2349 GL_SERVICE_LOG("glClearDepthf"
2350 << "(" << depth << ")");
2351 g_driver_gl.debug_fn.glClearDepthfFn(depth);
2354 static void GL_BINDING_CALL Debug_glClearStencil(GLint s) {
2355 GL_SERVICE_LOG("glClearStencil"
2356 << "(" << s << ")");
2357 g_driver_gl.debug_fn.glClearStencilFn(s);
2360 static GLenum GL_BINDING_CALL
2361 Debug_glClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
2362 GL_SERVICE_LOG("glClientWaitSync"
2363 << "(" << sync << ", " << flags << ", " << timeout << ")");
2364 GLenum result = g_driver_gl.debug_fn.glClientWaitSyncFn(sync, flags, timeout);
2365 GL_SERVICE_LOG("GL_RESULT: " << result);
2366 return result;
2369 static void GL_BINDING_CALL Debug_glColorMask(GLboolean red,
2370 GLboolean green,
2371 GLboolean blue,
2372 GLboolean alpha) {
2373 GL_SERVICE_LOG("glColorMask"
2374 << "(" << GLEnums::GetStringBool(red) << ", "
2375 << GLEnums::GetStringBool(green) << ", "
2376 << GLEnums::GetStringBool(blue) << ", "
2377 << GLEnums::GetStringBool(alpha) << ")");
2378 g_driver_gl.debug_fn.glColorMaskFn(red, green, blue, alpha);
2381 static void GL_BINDING_CALL Debug_glCompileShader(GLuint shader) {
2382 GL_SERVICE_LOG("glCompileShader"
2383 << "(" << shader << ")");
2384 g_driver_gl.debug_fn.glCompileShaderFn(shader);
2387 static void GL_BINDING_CALL Debug_glCompressedTexImage2D(GLenum target,
2388 GLint level,
2389 GLenum internalformat,
2390 GLsizei width,
2391 GLsizei height,
2392 GLint border,
2393 GLsizei imageSize,
2394 const void* data) {
2395 GL_SERVICE_LOG("glCompressedTexImage2D"
2396 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2397 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
2398 << width << ", " << height << ", " << border << ", "
2399 << imageSize << ", " << static_cast<const void*>(data) << ")");
2400 g_driver_gl.debug_fn.glCompressedTexImage2DFn(
2401 target, level, internalformat, width, height, border, imageSize, data);
2404 static void GL_BINDING_CALL Debug_glCompressedTexImage3D(GLenum target,
2405 GLint level,
2406 GLenum internalformat,
2407 GLsizei width,
2408 GLsizei height,
2409 GLsizei depth,
2410 GLint border,
2411 GLsizei imageSize,
2412 const void* data) {
2413 GL_SERVICE_LOG("glCompressedTexImage3D"
2414 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2415 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
2416 << width << ", " << height << ", " << depth << ", " << border
2417 << ", " << imageSize << ", " << static_cast<const void*>(data)
2418 << ")");
2419 g_driver_gl.debug_fn.glCompressedTexImage3DFn(target, level, internalformat,
2420 width, height, depth, border,
2421 imageSize, data);
2424 static void GL_BINDING_CALL Debug_glCompressedTexSubImage2D(GLenum target,
2425 GLint level,
2426 GLint xoffset,
2427 GLint yoffset,
2428 GLsizei width,
2429 GLsizei height,
2430 GLenum format,
2431 GLsizei imageSize,
2432 const void* data) {
2433 GL_SERVICE_LOG("glCompressedTexSubImage2D"
2434 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2435 << ", " << xoffset << ", " << yoffset << ", " << width << ", "
2436 << height << ", " << GLEnums::GetStringEnum(format) << ", "
2437 << imageSize << ", " << static_cast<const void*>(data) << ")");
2438 g_driver_gl.debug_fn.glCompressedTexSubImage2DFn(
2439 target, level, xoffset, yoffset, width, height, format, imageSize, data);
2442 static void GL_BINDING_CALL Debug_glCopyBufferSubData(GLenum readTarget,
2443 GLenum writeTarget,
2444 GLintptr readOffset,
2445 GLintptr writeOffset,
2446 GLsizeiptr size) {
2447 GL_SERVICE_LOG("glCopyBufferSubData"
2448 << "(" << GLEnums::GetStringEnum(readTarget) << ", "
2449 << GLEnums::GetStringEnum(writeTarget) << ", " << readOffset
2450 << ", " << writeOffset << ", " << size << ")");
2451 g_driver_gl.debug_fn.glCopyBufferSubDataFn(readTarget, writeTarget,
2452 readOffset, writeOffset, size);
2455 static void GL_BINDING_CALL Debug_glCopyTexImage2D(GLenum target,
2456 GLint level,
2457 GLenum internalformat,
2458 GLint x,
2459 GLint y,
2460 GLsizei width,
2461 GLsizei height,
2462 GLint border) {
2463 GL_SERVICE_LOG("glCopyTexImage2D"
2464 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2465 << ", " << GLEnums::GetStringEnum(internalformat) << ", " << x
2466 << ", " << y << ", " << width << ", " << height << ", "
2467 << border << ")");
2468 g_driver_gl.debug_fn.glCopyTexImage2DFn(target, level, internalformat, x, y,
2469 width, height, border);
2472 static void GL_BINDING_CALL Debug_glCopyTexSubImage2D(GLenum target,
2473 GLint level,
2474 GLint xoffset,
2475 GLint yoffset,
2476 GLint x,
2477 GLint y,
2478 GLsizei width,
2479 GLsizei height) {
2480 GL_SERVICE_LOG("glCopyTexSubImage2D"
2481 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2482 << ", " << xoffset << ", " << yoffset << ", " << x << ", " << y
2483 << ", " << width << ", " << height << ")");
2484 g_driver_gl.debug_fn.glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x,
2485 y, width, height);
2488 static void GL_BINDING_CALL Debug_glCopyTexSubImage3D(GLenum target,
2489 GLint level,
2490 GLint xoffset,
2491 GLint yoffset,
2492 GLint zoffset,
2493 GLint x,
2494 GLint y,
2495 GLsizei width,
2496 GLsizei height) {
2497 GL_SERVICE_LOG("glCopyTexSubImage3D"
2498 << "(" << GLEnums::GetStringEnum(target) << ", " << level
2499 << ", " << xoffset << ", " << yoffset << ", " << zoffset
2500 << ", " << x << ", " << y << ", " << width << ", " << height
2501 << ")");
2502 g_driver_gl.debug_fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset,
2503 zoffset, x, y, width, height);
2506 static GLuint GL_BINDING_CALL Debug_glCreateProgram(void) {
2507 GL_SERVICE_LOG("glCreateProgram"
2508 << "("
2509 << ")");
2510 GLuint result = g_driver_gl.debug_fn.glCreateProgramFn();
2511 GL_SERVICE_LOG("GL_RESULT: " << result);
2512 return result;
2515 static GLuint GL_BINDING_CALL Debug_glCreateShader(GLenum type) {
2516 GL_SERVICE_LOG("glCreateShader"
2517 << "(" << GLEnums::GetStringEnum(type) << ")");
2518 GLuint result = g_driver_gl.debug_fn.glCreateShaderFn(type);
2519 GL_SERVICE_LOG("GL_RESULT: " << result);
2520 return result;
2523 static void GL_BINDING_CALL Debug_glCullFace(GLenum mode) {
2524 GL_SERVICE_LOG("glCullFace"
2525 << "(" << GLEnums::GetStringEnum(mode) << ")");
2526 g_driver_gl.debug_fn.glCullFaceFn(mode);
2529 static void GL_BINDING_CALL
2530 Debug_glDeleteBuffersARB(GLsizei n, const GLuint* buffers) {
2531 GL_SERVICE_LOG("glDeleteBuffersARB"
2532 << "(" << n << ", " << static_cast<const void*>(buffers)
2533 << ")");
2534 g_driver_gl.debug_fn.glDeleteBuffersARBFn(n, buffers);
2537 static void GL_BINDING_CALL
2538 Debug_glDeleteFencesAPPLE(GLsizei n, const GLuint* fences) {
2539 GL_SERVICE_LOG("glDeleteFencesAPPLE"
2540 << "(" << n << ", " << static_cast<const void*>(fences)
2541 << ")");
2542 g_driver_gl.debug_fn.glDeleteFencesAPPLEFn(n, fences);
2545 static void GL_BINDING_CALL
2546 Debug_glDeleteFencesNV(GLsizei n, const GLuint* fences) {
2547 GL_SERVICE_LOG("glDeleteFencesNV"
2548 << "(" << n << ", " << static_cast<const void*>(fences)
2549 << ")");
2550 g_driver_gl.debug_fn.glDeleteFencesNVFn(n, fences);
2553 static void GL_BINDING_CALL
2554 Debug_glDeleteFramebuffersEXT(GLsizei n, const GLuint* framebuffers) {
2555 GL_SERVICE_LOG("glDeleteFramebuffersEXT"
2556 << "(" << n << ", " << static_cast<const void*>(framebuffers)
2557 << ")");
2558 g_driver_gl.debug_fn.glDeleteFramebuffersEXTFn(n, framebuffers);
2561 static void GL_BINDING_CALL Debug_glDeleteProgram(GLuint program) {
2562 GL_SERVICE_LOG("glDeleteProgram"
2563 << "(" << program << ")");
2564 g_driver_gl.debug_fn.glDeleteProgramFn(program);
2567 static void GL_BINDING_CALL
2568 Debug_glDeleteQueries(GLsizei n, const GLuint* ids) {
2569 GL_SERVICE_LOG("glDeleteQueries"
2570 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2571 g_driver_gl.debug_fn.glDeleteQueriesFn(n, ids);
2574 static void GL_BINDING_CALL
2575 Debug_glDeleteQueriesARB(GLsizei n, const GLuint* ids) {
2576 GL_SERVICE_LOG("glDeleteQueriesARB"
2577 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2578 g_driver_gl.debug_fn.glDeleteQueriesARBFn(n, ids);
2581 static void GL_BINDING_CALL
2582 Debug_glDeleteRenderbuffersEXT(GLsizei n, const GLuint* renderbuffers) {
2583 GL_SERVICE_LOG("glDeleteRenderbuffersEXT"
2584 << "(" << n << ", " << static_cast<const void*>(renderbuffers)
2585 << ")");
2586 g_driver_gl.debug_fn.glDeleteRenderbuffersEXTFn(n, renderbuffers);
2589 static void GL_BINDING_CALL
2590 Debug_glDeleteSamplers(GLsizei n, const GLuint* samplers) {
2591 GL_SERVICE_LOG("glDeleteSamplers"
2592 << "(" << n << ", " << static_cast<const void*>(samplers)
2593 << ")");
2594 g_driver_gl.debug_fn.glDeleteSamplersFn(n, samplers);
2597 static void GL_BINDING_CALL Debug_glDeleteShader(GLuint shader) {
2598 GL_SERVICE_LOG("glDeleteShader"
2599 << "(" << shader << ")");
2600 g_driver_gl.debug_fn.glDeleteShaderFn(shader);
2603 static void GL_BINDING_CALL Debug_glDeleteSync(GLsync sync) {
2604 GL_SERVICE_LOG("glDeleteSync"
2605 << "(" << sync << ")");
2606 g_driver_gl.debug_fn.glDeleteSyncFn(sync);
2609 static void GL_BINDING_CALL
2610 Debug_glDeleteTextures(GLsizei n, const GLuint* textures) {
2611 GL_SERVICE_LOG("glDeleteTextures"
2612 << "(" << n << ", " << static_cast<const void*>(textures)
2613 << ")");
2614 g_driver_gl.debug_fn.glDeleteTexturesFn(n, textures);
2617 static void GL_BINDING_CALL
2618 Debug_glDeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
2619 GL_SERVICE_LOG("glDeleteTransformFeedbacks"
2620 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2621 g_driver_gl.debug_fn.glDeleteTransformFeedbacksFn(n, ids);
2624 static void GL_BINDING_CALL
2625 Debug_glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
2626 GL_SERVICE_LOG("glDeleteVertexArraysOES"
2627 << "(" << n << ", " << static_cast<const void*>(arrays)
2628 << ")");
2629 g_driver_gl.debug_fn.glDeleteVertexArraysOESFn(n, arrays);
2632 static void GL_BINDING_CALL Debug_glDepthFunc(GLenum func) {
2633 GL_SERVICE_LOG("glDepthFunc"
2634 << "(" << GLEnums::GetStringEnum(func) << ")");
2635 g_driver_gl.debug_fn.glDepthFuncFn(func);
2638 static void GL_BINDING_CALL Debug_glDepthMask(GLboolean flag) {
2639 GL_SERVICE_LOG("glDepthMask"
2640 << "(" << GLEnums::GetStringBool(flag) << ")");
2641 g_driver_gl.debug_fn.glDepthMaskFn(flag);
2644 static void GL_BINDING_CALL Debug_glDepthRange(GLclampd zNear, GLclampd zFar) {
2645 GL_SERVICE_LOG("glDepthRange"
2646 << "(" << zNear << ", " << zFar << ")");
2647 g_driver_gl.debug_fn.glDepthRangeFn(zNear, zFar);
2650 static void GL_BINDING_CALL Debug_glDepthRangef(GLclampf zNear, GLclampf zFar) {
2651 GL_SERVICE_LOG("glDepthRangef"
2652 << "(" << zNear << ", " << zFar << ")");
2653 g_driver_gl.debug_fn.glDepthRangefFn(zNear, zFar);
2656 static void GL_BINDING_CALL
2657 Debug_glDetachShader(GLuint program, GLuint shader) {
2658 GL_SERVICE_LOG("glDetachShader"
2659 << "(" << program << ", " << shader << ")");
2660 g_driver_gl.debug_fn.glDetachShaderFn(program, shader);
2663 static void GL_BINDING_CALL Debug_glDisable(GLenum cap) {
2664 GL_SERVICE_LOG("glDisable"
2665 << "(" << GLEnums::GetStringEnum(cap) << ")");
2666 g_driver_gl.debug_fn.glDisableFn(cap);
2669 static void GL_BINDING_CALL Debug_glDisableVertexAttribArray(GLuint index) {
2670 GL_SERVICE_LOG("glDisableVertexAttribArray"
2671 << "(" << index << ")");
2672 g_driver_gl.debug_fn.glDisableVertexAttribArrayFn(index);
2675 static void GL_BINDING_CALL
2676 Debug_glDiscardFramebufferEXT(GLenum target,
2677 GLsizei numAttachments,
2678 const GLenum* attachments) {
2679 GL_SERVICE_LOG("glDiscardFramebufferEXT"
2680 << "(" << GLEnums::GetStringEnum(target) << ", "
2681 << numAttachments << ", "
2682 << static_cast<const void*>(attachments) << ")");
2683 g_driver_gl.debug_fn.glDiscardFramebufferEXTFn(target, numAttachments,
2684 attachments);
2687 static void GL_BINDING_CALL
2688 Debug_glDrawArrays(GLenum mode, GLint first, GLsizei count) {
2689 GL_SERVICE_LOG("glDrawArrays"
2690 << "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
2691 << count << ")");
2692 g_driver_gl.debug_fn.glDrawArraysFn(mode, first, count);
2695 static void GL_BINDING_CALL
2696 Debug_glDrawArraysInstancedANGLE(GLenum mode,
2697 GLint first,
2698 GLsizei count,
2699 GLsizei primcount) {
2700 GL_SERVICE_LOG("glDrawArraysInstancedANGLE"
2701 << "(" << GLEnums::GetStringEnum(mode) << ", " << first << ", "
2702 << count << ", " << primcount << ")");
2703 g_driver_gl.debug_fn.glDrawArraysInstancedANGLEFn(mode, first, count,
2704 primcount);
2707 static void GL_BINDING_CALL Debug_glDrawBuffer(GLenum mode) {
2708 GL_SERVICE_LOG("glDrawBuffer"
2709 << "(" << GLEnums::GetStringEnum(mode) << ")");
2710 g_driver_gl.debug_fn.glDrawBufferFn(mode);
2713 static void GL_BINDING_CALL
2714 Debug_glDrawBuffersARB(GLsizei n, const GLenum* bufs) {
2715 GL_SERVICE_LOG("glDrawBuffersARB"
2716 << "(" << n << ", " << static_cast<const void*>(bufs) << ")");
2717 g_driver_gl.debug_fn.glDrawBuffersARBFn(n, bufs);
2720 static void GL_BINDING_CALL Debug_glDrawElements(GLenum mode,
2721 GLsizei count,
2722 GLenum type,
2723 const void* indices) {
2724 GL_SERVICE_LOG("glDrawElements"
2725 << "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
2726 << GLEnums::GetStringEnum(type) << ", "
2727 << static_cast<const void*>(indices) << ")");
2728 g_driver_gl.debug_fn.glDrawElementsFn(mode, count, type, indices);
2731 static void GL_BINDING_CALL
2732 Debug_glDrawElementsInstancedANGLE(GLenum mode,
2733 GLsizei count,
2734 GLenum type,
2735 const void* indices,
2736 GLsizei primcount) {
2737 GL_SERVICE_LOG("glDrawElementsInstancedANGLE"
2738 << "(" << GLEnums::GetStringEnum(mode) << ", " << count << ", "
2739 << GLEnums::GetStringEnum(type) << ", "
2740 << static_cast<const void*>(indices) << ", " << primcount
2741 << ")");
2742 g_driver_gl.debug_fn.glDrawElementsInstancedANGLEFn(mode, count, type,
2743 indices, primcount);
2746 static void GL_BINDING_CALL Debug_glDrawRangeElements(GLenum mode,
2747 GLuint start,
2748 GLuint end,
2749 GLsizei count,
2750 GLenum type,
2751 const void* indices) {
2752 GL_SERVICE_LOG("glDrawRangeElements"
2753 << "(" << GLEnums::GetStringEnum(mode) << ", " << start << ", "
2754 << end << ", " << count << ", " << GLEnums::GetStringEnum(type)
2755 << ", " << static_cast<const void*>(indices) << ")");
2756 g_driver_gl.debug_fn.glDrawRangeElementsFn(mode, start, end, count, type,
2757 indices);
2760 static void GL_BINDING_CALL
2761 Debug_glEGLImageTargetRenderbufferStorageOES(GLenum target,
2762 GLeglImageOES image) {
2763 GL_SERVICE_LOG("glEGLImageTargetRenderbufferStorageOES"
2764 << "(" << GLEnums::GetStringEnum(target) << ", " << image
2765 << ")");
2766 g_driver_gl.debug_fn.glEGLImageTargetRenderbufferStorageOESFn(target, image);
2769 static void GL_BINDING_CALL
2770 Debug_glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image) {
2771 GL_SERVICE_LOG("glEGLImageTargetTexture2DOES"
2772 << "(" << GLEnums::GetStringEnum(target) << ", " << image
2773 << ")");
2774 g_driver_gl.debug_fn.glEGLImageTargetTexture2DOESFn(target, image);
2777 static void GL_BINDING_CALL Debug_glEnable(GLenum cap) {
2778 GL_SERVICE_LOG("glEnable"
2779 << "(" << GLEnums::GetStringEnum(cap) << ")");
2780 g_driver_gl.debug_fn.glEnableFn(cap);
2783 static void GL_BINDING_CALL Debug_glEnableVertexAttribArray(GLuint index) {
2784 GL_SERVICE_LOG("glEnableVertexAttribArray"
2785 << "(" << index << ")");
2786 g_driver_gl.debug_fn.glEnableVertexAttribArrayFn(index);
2789 static void GL_BINDING_CALL Debug_glEndQuery(GLenum target) {
2790 GL_SERVICE_LOG("glEndQuery"
2791 << "(" << GLEnums::GetStringEnum(target) << ")");
2792 g_driver_gl.debug_fn.glEndQueryFn(target);
2795 static void GL_BINDING_CALL Debug_glEndQueryARB(GLenum target) {
2796 GL_SERVICE_LOG("glEndQueryARB"
2797 << "(" << GLEnums::GetStringEnum(target) << ")");
2798 g_driver_gl.debug_fn.glEndQueryARBFn(target);
2801 static void GL_BINDING_CALL Debug_glEndTransformFeedback(void) {
2802 GL_SERVICE_LOG("glEndTransformFeedback"
2803 << "("
2804 << ")");
2805 g_driver_gl.debug_fn.glEndTransformFeedbackFn();
2808 static GLsync GL_BINDING_CALL
2809 Debug_glFenceSync(GLenum condition, GLbitfield flags) {
2810 GL_SERVICE_LOG("glFenceSync"
2811 << "(" << GLEnums::GetStringEnum(condition) << ", " << flags
2812 << ")");
2813 GLsync result = g_driver_gl.debug_fn.glFenceSyncFn(condition, flags);
2814 GL_SERVICE_LOG("GL_RESULT: " << result);
2815 return result;
2818 static void GL_BINDING_CALL Debug_glFinish(void) {
2819 GL_SERVICE_LOG("glFinish"
2820 << "("
2821 << ")");
2822 g_driver_gl.debug_fn.glFinishFn();
2825 static void GL_BINDING_CALL Debug_glFinishFenceAPPLE(GLuint fence) {
2826 GL_SERVICE_LOG("glFinishFenceAPPLE"
2827 << "(" << fence << ")");
2828 g_driver_gl.debug_fn.glFinishFenceAPPLEFn(fence);
2831 static void GL_BINDING_CALL Debug_glFinishFenceNV(GLuint fence) {
2832 GL_SERVICE_LOG("glFinishFenceNV"
2833 << "(" << fence << ")");
2834 g_driver_gl.debug_fn.glFinishFenceNVFn(fence);
2837 static void GL_BINDING_CALL Debug_glFlush(void) {
2838 GL_SERVICE_LOG("glFlush"
2839 << "("
2840 << ")");
2841 g_driver_gl.debug_fn.glFlushFn();
2844 static void GL_BINDING_CALL Debug_glFlushMappedBufferRange(GLenum target,
2845 GLintptr offset,
2846 GLsizeiptr length) {
2847 GL_SERVICE_LOG("glFlushMappedBufferRange"
2848 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
2849 << ", " << length << ")");
2850 g_driver_gl.debug_fn.glFlushMappedBufferRangeFn(target, offset, length);
2853 static void GL_BINDING_CALL
2854 Debug_glFramebufferRenderbufferEXT(GLenum target,
2855 GLenum attachment,
2856 GLenum renderbuffertarget,
2857 GLuint renderbuffer) {
2858 GL_SERVICE_LOG("glFramebufferRenderbufferEXT"
2859 << "(" << GLEnums::GetStringEnum(target) << ", "
2860 << GLEnums::GetStringEnum(attachment) << ", "
2861 << GLEnums::GetStringEnum(renderbuffertarget) << ", "
2862 << renderbuffer << ")");
2863 g_driver_gl.debug_fn.glFramebufferRenderbufferEXTFn(
2864 target, attachment, renderbuffertarget, renderbuffer);
2867 static void GL_BINDING_CALL Debug_glFramebufferTexture2DEXT(GLenum target,
2868 GLenum attachment,
2869 GLenum textarget,
2870 GLuint texture,
2871 GLint level) {
2872 GL_SERVICE_LOG("glFramebufferTexture2DEXT"
2873 << "(" << GLEnums::GetStringEnum(target) << ", "
2874 << GLEnums::GetStringEnum(attachment) << ", "
2875 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
2876 << level << ")");
2877 g_driver_gl.debug_fn.glFramebufferTexture2DEXTFn(target, attachment,
2878 textarget, texture, level);
2881 static void GL_BINDING_CALL
2882 Debug_glFramebufferTexture2DMultisampleEXT(GLenum target,
2883 GLenum attachment,
2884 GLenum textarget,
2885 GLuint texture,
2886 GLint level,
2887 GLsizei samples) {
2888 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleEXT"
2889 << "(" << GLEnums::GetStringEnum(target) << ", "
2890 << GLEnums::GetStringEnum(attachment) << ", "
2891 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
2892 << level << ", " << samples << ")");
2893 g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleEXTFn(
2894 target, attachment, textarget, texture, level, samples);
2897 static void GL_BINDING_CALL
2898 Debug_glFramebufferTexture2DMultisampleIMG(GLenum target,
2899 GLenum attachment,
2900 GLenum textarget,
2901 GLuint texture,
2902 GLint level,
2903 GLsizei samples) {
2904 GL_SERVICE_LOG("glFramebufferTexture2DMultisampleIMG"
2905 << "(" << GLEnums::GetStringEnum(target) << ", "
2906 << GLEnums::GetStringEnum(attachment) << ", "
2907 << GLEnums::GetStringEnum(textarget) << ", " << texture << ", "
2908 << level << ", " << samples << ")");
2909 g_driver_gl.debug_fn.glFramebufferTexture2DMultisampleIMGFn(
2910 target, attachment, textarget, texture, level, samples);
2913 static void GL_BINDING_CALL Debug_glFramebufferTextureLayer(GLenum target,
2914 GLenum attachment,
2915 GLuint texture,
2916 GLint level,
2917 GLint layer) {
2918 GL_SERVICE_LOG("glFramebufferTextureLayer"
2919 << "(" << GLEnums::GetStringEnum(target) << ", "
2920 << GLEnums::GetStringEnum(attachment) << ", " << texture
2921 << ", " << level << ", " << layer << ")");
2922 g_driver_gl.debug_fn.glFramebufferTextureLayerFn(target, attachment, texture,
2923 level, layer);
2926 static void GL_BINDING_CALL Debug_glFrontFace(GLenum mode) {
2927 GL_SERVICE_LOG("glFrontFace"
2928 << "(" << GLEnums::GetStringEnum(mode) << ")");
2929 g_driver_gl.debug_fn.glFrontFaceFn(mode);
2932 static void GL_BINDING_CALL Debug_glGenBuffersARB(GLsizei n, GLuint* buffers) {
2933 GL_SERVICE_LOG("glGenBuffersARB"
2934 << "(" << n << ", " << static_cast<const void*>(buffers)
2935 << ")");
2936 g_driver_gl.debug_fn.glGenBuffersARBFn(n, buffers);
2939 static void GL_BINDING_CALL Debug_glGenerateMipmapEXT(GLenum target) {
2940 GL_SERVICE_LOG("glGenerateMipmapEXT"
2941 << "(" << GLEnums::GetStringEnum(target) << ")");
2942 g_driver_gl.debug_fn.glGenerateMipmapEXTFn(target);
2945 static void GL_BINDING_CALL Debug_glGenFencesAPPLE(GLsizei n, GLuint* fences) {
2946 GL_SERVICE_LOG("glGenFencesAPPLE"
2947 << "(" << n << ", " << static_cast<const void*>(fences)
2948 << ")");
2949 g_driver_gl.debug_fn.glGenFencesAPPLEFn(n, fences);
2952 static void GL_BINDING_CALL Debug_glGenFencesNV(GLsizei n, GLuint* fences) {
2953 GL_SERVICE_LOG("glGenFencesNV"
2954 << "(" << n << ", " << static_cast<const void*>(fences)
2955 << ")");
2956 g_driver_gl.debug_fn.glGenFencesNVFn(n, fences);
2959 static void GL_BINDING_CALL
2960 Debug_glGenFramebuffersEXT(GLsizei n, GLuint* framebuffers) {
2961 GL_SERVICE_LOG("glGenFramebuffersEXT"
2962 << "(" << n << ", " << static_cast<const void*>(framebuffers)
2963 << ")");
2964 g_driver_gl.debug_fn.glGenFramebuffersEXTFn(n, framebuffers);
2967 static void GL_BINDING_CALL Debug_glGenQueries(GLsizei n, GLuint* ids) {
2968 GL_SERVICE_LOG("glGenQueries"
2969 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2970 g_driver_gl.debug_fn.glGenQueriesFn(n, ids);
2973 static void GL_BINDING_CALL Debug_glGenQueriesARB(GLsizei n, GLuint* ids) {
2974 GL_SERVICE_LOG("glGenQueriesARB"
2975 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
2976 g_driver_gl.debug_fn.glGenQueriesARBFn(n, ids);
2979 static void GL_BINDING_CALL
2980 Debug_glGenRenderbuffersEXT(GLsizei n, GLuint* renderbuffers) {
2981 GL_SERVICE_LOG("glGenRenderbuffersEXT"
2982 << "(" << n << ", " << static_cast<const void*>(renderbuffers)
2983 << ")");
2984 g_driver_gl.debug_fn.glGenRenderbuffersEXTFn(n, renderbuffers);
2987 static void GL_BINDING_CALL Debug_glGenSamplers(GLsizei n, GLuint* samplers) {
2988 GL_SERVICE_LOG("glGenSamplers"
2989 << "(" << n << ", " << static_cast<const void*>(samplers)
2990 << ")");
2991 g_driver_gl.debug_fn.glGenSamplersFn(n, samplers);
2994 static void GL_BINDING_CALL Debug_glGenTextures(GLsizei n, GLuint* textures) {
2995 GL_SERVICE_LOG("glGenTextures"
2996 << "(" << n << ", " << static_cast<const void*>(textures)
2997 << ")");
2998 g_driver_gl.debug_fn.glGenTexturesFn(n, textures);
3001 static void GL_BINDING_CALL
3002 Debug_glGenTransformFeedbacks(GLsizei n, GLuint* ids) {
3003 GL_SERVICE_LOG("glGenTransformFeedbacks"
3004 << "(" << n << ", " << static_cast<const void*>(ids) << ")");
3005 g_driver_gl.debug_fn.glGenTransformFeedbacksFn(n, ids);
3008 static void GL_BINDING_CALL
3009 Debug_glGenVertexArraysOES(GLsizei n, GLuint* arrays) {
3010 GL_SERVICE_LOG("glGenVertexArraysOES"
3011 << "(" << n << ", " << static_cast<const void*>(arrays)
3012 << ")");
3013 g_driver_gl.debug_fn.glGenVertexArraysOESFn(n, arrays);
3016 static void GL_BINDING_CALL Debug_glGetActiveAttrib(GLuint program,
3017 GLuint index,
3018 GLsizei bufsize,
3019 GLsizei* length,
3020 GLint* size,
3021 GLenum* type,
3022 char* name) {
3023 GL_SERVICE_LOG("glGetActiveAttrib"
3024 << "(" << program << ", " << index << ", " << bufsize << ", "
3025 << static_cast<const void*>(length) << ", "
3026 << static_cast<const void*>(size) << ", "
3027 << static_cast<const void*>(type) << ", "
3028 << static_cast<const void*>(name) << ")");
3029 g_driver_gl.debug_fn.glGetActiveAttribFn(program, index, bufsize, length,
3030 size, type, name);
3033 static void GL_BINDING_CALL Debug_glGetActiveUniform(GLuint program,
3034 GLuint index,
3035 GLsizei bufsize,
3036 GLsizei* length,
3037 GLint* size,
3038 GLenum* type,
3039 char* name) {
3040 GL_SERVICE_LOG("glGetActiveUniform"
3041 << "(" << program << ", " << index << ", " << bufsize << ", "
3042 << static_cast<const void*>(length) << ", "
3043 << static_cast<const void*>(size) << ", "
3044 << static_cast<const void*>(type) << ", "
3045 << static_cast<const void*>(name) << ")");
3046 g_driver_gl.debug_fn.glGetActiveUniformFn(program, index, bufsize, length,
3047 size, type, name);
3050 static void GL_BINDING_CALL
3051 Debug_glGetActiveUniformBlockiv(GLuint program,
3052 GLuint uniformBlockIndex,
3053 GLenum pname,
3054 GLint* params) {
3055 GL_SERVICE_LOG("glGetActiveUniformBlockiv"
3056 << "(" << program << ", " << uniformBlockIndex << ", "
3057 << GLEnums::GetStringEnum(pname) << ", "
3058 << static_cast<const void*>(params) << ")");
3059 g_driver_gl.debug_fn.glGetActiveUniformBlockivFn(program, uniformBlockIndex,
3060 pname, params);
3063 static void GL_BINDING_CALL
3064 Debug_glGetActiveUniformBlockName(GLuint program,
3065 GLuint uniformBlockIndex,
3066 GLsizei bufSize,
3067 GLsizei* length,
3068 char* uniformBlockName) {
3069 GL_SERVICE_LOG("glGetActiveUniformBlockName"
3070 << "(" << program << ", " << uniformBlockIndex << ", "
3071 << bufSize << ", " << static_cast<const void*>(length) << ", "
3072 << static_cast<const void*>(uniformBlockName) << ")");
3073 g_driver_gl.debug_fn.glGetActiveUniformBlockNameFn(
3074 program, uniformBlockIndex, bufSize, length, uniformBlockName);
3077 static void GL_BINDING_CALL
3078 Debug_glGetActiveUniformsiv(GLuint program,
3079 GLsizei uniformCount,
3080 const GLuint* uniformIndices,
3081 GLenum pname,
3082 GLint* params) {
3083 GL_SERVICE_LOG("glGetActiveUniformsiv"
3084 << "(" << program << ", " << uniformCount << ", "
3085 << static_cast<const void*>(uniformIndices) << ", "
3086 << GLEnums::GetStringEnum(pname) << ", "
3087 << static_cast<const void*>(params) << ")");
3088 g_driver_gl.debug_fn.glGetActiveUniformsivFn(program, uniformCount,
3089 uniformIndices, pname, params);
3092 static void GL_BINDING_CALL Debug_glGetAttachedShaders(GLuint program,
3093 GLsizei maxcount,
3094 GLsizei* count,
3095 GLuint* shaders) {
3096 GL_SERVICE_LOG("glGetAttachedShaders"
3097 << "(" << program << ", " << maxcount << ", "
3098 << static_cast<const void*>(count) << ", "
3099 << static_cast<const void*>(shaders) << ")");
3100 g_driver_gl.debug_fn.glGetAttachedShadersFn(program, maxcount, count,
3101 shaders);
3104 static GLint GL_BINDING_CALL
3105 Debug_glGetAttribLocation(GLuint program, const char* name) {
3106 GL_SERVICE_LOG("glGetAttribLocation"
3107 << "(" << program << ", " << name << ")");
3108 GLint result = g_driver_gl.debug_fn.glGetAttribLocationFn(program, name);
3109 GL_SERVICE_LOG("GL_RESULT: " << result);
3110 return result;
3113 static void GL_BINDING_CALL
3114 Debug_glGetBooleanv(GLenum pname, GLboolean* params) {
3115 GL_SERVICE_LOG("glGetBooleanv"
3116 << "(" << GLEnums::GetStringEnum(pname) << ", "
3117 << static_cast<const void*>(params) << ")");
3118 g_driver_gl.debug_fn.glGetBooleanvFn(pname, params);
3121 static void GL_BINDING_CALL
3122 Debug_glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params) {
3123 GL_SERVICE_LOG("glGetBufferParameteriv"
3124 << "(" << GLEnums::GetStringEnum(target) << ", "
3125 << GLEnums::GetStringEnum(pname) << ", "
3126 << static_cast<const void*>(params) << ")");
3127 g_driver_gl.debug_fn.glGetBufferParameterivFn(target, pname, params);
3130 static GLenum GL_BINDING_CALL Debug_glGetError(void) {
3131 GL_SERVICE_LOG("glGetError"
3132 << "("
3133 << ")");
3134 GLenum result = g_driver_gl.debug_fn.glGetErrorFn();
3136 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result));
3138 return result;
3141 static void GL_BINDING_CALL
3142 Debug_glGetFenceivNV(GLuint fence, GLenum pname, GLint* params) {
3143 GL_SERVICE_LOG("glGetFenceivNV"
3144 << "(" << fence << ", " << GLEnums::GetStringEnum(pname)
3145 << ", " << static_cast<const void*>(params) << ")");
3146 g_driver_gl.debug_fn.glGetFenceivNVFn(fence, pname, params);
3149 static void GL_BINDING_CALL Debug_glGetFloatv(GLenum pname, GLfloat* params) {
3150 GL_SERVICE_LOG("glGetFloatv"
3151 << "(" << GLEnums::GetStringEnum(pname) << ", "
3152 << static_cast<const void*>(params) << ")");
3153 g_driver_gl.debug_fn.glGetFloatvFn(pname, params);
3156 static GLint GL_BINDING_CALL
3157 Debug_glGetFragDataLocation(GLuint program, const char* name) {
3158 GL_SERVICE_LOG("glGetFragDataLocation"
3159 << "(" << program << ", " << name << ")");
3160 GLint result = g_driver_gl.debug_fn.glGetFragDataLocationFn(program, name);
3161 GL_SERVICE_LOG("GL_RESULT: " << result);
3162 return result;
3165 static void GL_BINDING_CALL
3166 Debug_glGetFramebufferAttachmentParameterivEXT(GLenum target,
3167 GLenum attachment,
3168 GLenum pname,
3169 GLint* params) {
3170 GL_SERVICE_LOG("glGetFramebufferAttachmentParameterivEXT"
3171 << "(" << GLEnums::GetStringEnum(target) << ", "
3172 << GLEnums::GetStringEnum(attachment) << ", "
3173 << GLEnums::GetStringEnum(pname) << ", "
3174 << static_cast<const void*>(params) << ")");
3175 g_driver_gl.debug_fn.glGetFramebufferAttachmentParameterivEXTFn(
3176 target, attachment, pname, params);
3179 static GLenum GL_BINDING_CALL Debug_glGetGraphicsResetStatusARB(void) {
3180 GL_SERVICE_LOG("glGetGraphicsResetStatusARB"
3181 << "("
3182 << ")");
3183 GLenum result = g_driver_gl.debug_fn.glGetGraphicsResetStatusARBFn();
3184 GL_SERVICE_LOG("GL_RESULT: " << result);
3185 return result;
3188 static void GL_BINDING_CALL
3189 Debug_glGetInteger64i_v(GLenum target, GLuint index, GLint64* data) {
3190 GL_SERVICE_LOG("glGetInteger64i_v"
3191 << "(" << GLEnums::GetStringEnum(target) << ", " << index
3192 << ", " << static_cast<const void*>(data) << ")");
3193 g_driver_gl.debug_fn.glGetInteger64i_vFn(target, index, data);
3196 static void GL_BINDING_CALL
3197 Debug_glGetInteger64v(GLenum pname, GLint64* params) {
3198 GL_SERVICE_LOG("glGetInteger64v"
3199 << "(" << GLEnums::GetStringEnum(pname) << ", "
3200 << static_cast<const void*>(params) << ")");
3201 g_driver_gl.debug_fn.glGetInteger64vFn(pname, params);
3204 static void GL_BINDING_CALL
3205 Debug_glGetIntegeri_v(GLenum target, GLuint index, GLint* data) {
3206 GL_SERVICE_LOG("glGetIntegeri_v"
3207 << "(" << GLEnums::GetStringEnum(target) << ", " << index
3208 << ", " << static_cast<const void*>(data) << ")");
3209 g_driver_gl.debug_fn.glGetIntegeri_vFn(target, index, data);
3212 static void GL_BINDING_CALL Debug_glGetIntegerv(GLenum pname, GLint* params) {
3213 GL_SERVICE_LOG("glGetIntegerv"
3214 << "(" << GLEnums::GetStringEnum(pname) << ", "
3215 << static_cast<const void*>(params) << ")");
3216 g_driver_gl.debug_fn.glGetIntegervFn(pname, params);
3219 static void GL_BINDING_CALL Debug_glGetInternalformativ(GLenum target,
3220 GLenum internalformat,
3221 GLenum pname,
3222 GLsizei bufSize,
3223 GLint* params) {
3224 GL_SERVICE_LOG("glGetInternalformativ"
3225 << "(" << GLEnums::GetStringEnum(target) << ", "
3226 << GLEnums::GetStringEnum(internalformat) << ", "
3227 << GLEnums::GetStringEnum(pname) << ", " << bufSize << ", "
3228 << static_cast<const void*>(params) << ")");
3229 g_driver_gl.debug_fn.glGetInternalformativFn(target, internalformat, pname,
3230 bufSize, params);
3233 static void GL_BINDING_CALL Debug_glGetProgramBinary(GLuint program,
3234 GLsizei bufSize,
3235 GLsizei* length,
3236 GLenum* binaryFormat,
3237 GLvoid* binary) {
3238 GL_SERVICE_LOG("glGetProgramBinary"
3239 << "(" << program << ", " << bufSize << ", "
3240 << static_cast<const void*>(length) << ", "
3241 << static_cast<const void*>(binaryFormat) << ", "
3242 << static_cast<const void*>(binary) << ")");
3243 g_driver_gl.debug_fn.glGetProgramBinaryFn(program, bufSize, length,
3244 binaryFormat, binary);
3247 static void GL_BINDING_CALL Debug_glGetProgramInfoLog(GLuint program,
3248 GLsizei bufsize,
3249 GLsizei* length,
3250 char* infolog) {
3251 GL_SERVICE_LOG("glGetProgramInfoLog"
3252 << "(" << program << ", " << bufsize << ", "
3253 << static_cast<const void*>(length) << ", "
3254 << static_cast<const void*>(infolog) << ")");
3255 g_driver_gl.debug_fn.glGetProgramInfoLogFn(program, bufsize, length, infolog);
3258 static void GL_BINDING_CALL
3259 Debug_glGetProgramiv(GLuint program, GLenum pname, GLint* params) {
3260 GL_SERVICE_LOG("glGetProgramiv"
3261 << "(" << program << ", " << GLEnums::GetStringEnum(pname)
3262 << ", " << static_cast<const void*>(params) << ")");
3263 g_driver_gl.debug_fn.glGetProgramivFn(program, pname, params);
3266 static GLint GL_BINDING_CALL
3267 Debug_glGetProgramResourceLocation(GLuint program,
3268 GLenum programInterface,
3269 const char* name) {
3270 GL_SERVICE_LOG("glGetProgramResourceLocation"
3271 << "(" << program << ", "
3272 << GLEnums::GetStringEnum(programInterface) << ", " << name
3273 << ")");
3274 GLint result = g_driver_gl.debug_fn.glGetProgramResourceLocationFn(
3275 program, programInterface, name);
3276 GL_SERVICE_LOG("GL_RESULT: " << result);
3277 return result;
3280 static void GL_BINDING_CALL
3281 Debug_glGetQueryiv(GLenum target, GLenum pname, GLint* params) {
3282 GL_SERVICE_LOG("glGetQueryiv"
3283 << "(" << GLEnums::GetStringEnum(target) << ", "
3284 << GLEnums::GetStringEnum(pname) << ", "
3285 << static_cast<const void*>(params) << ")");
3286 g_driver_gl.debug_fn.glGetQueryivFn(target, pname, params);
3289 static void GL_BINDING_CALL
3290 Debug_glGetQueryivARB(GLenum target, GLenum pname, GLint* params) {
3291 GL_SERVICE_LOG("glGetQueryivARB"
3292 << "(" << GLEnums::GetStringEnum(target) << ", "
3293 << GLEnums::GetStringEnum(pname) << ", "
3294 << static_cast<const void*>(params) << ")");
3295 g_driver_gl.debug_fn.glGetQueryivARBFn(target, pname, params);
3298 static void GL_BINDING_CALL
3299 Debug_glGetQueryObjecti64v(GLuint id, GLenum pname, GLint64* params) {
3300 GL_SERVICE_LOG("glGetQueryObjecti64v"
3301 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3302 << static_cast<const void*>(params) << ")");
3303 g_driver_gl.debug_fn.glGetQueryObjecti64vFn(id, pname, params);
3306 static void GL_BINDING_CALL
3307 Debug_glGetQueryObjectiv(GLuint id, GLenum pname, GLint* params) {
3308 GL_SERVICE_LOG("glGetQueryObjectiv"
3309 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3310 << static_cast<const void*>(params) << ")");
3311 g_driver_gl.debug_fn.glGetQueryObjectivFn(id, pname, params);
3314 static void GL_BINDING_CALL
3315 Debug_glGetQueryObjectivARB(GLuint id, GLenum pname, GLint* params) {
3316 GL_SERVICE_LOG("glGetQueryObjectivARB"
3317 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3318 << static_cast<const void*>(params) << ")");
3319 g_driver_gl.debug_fn.glGetQueryObjectivARBFn(id, pname, params);
3322 static void GL_BINDING_CALL
3323 Debug_glGetQueryObjectui64v(GLuint id, GLenum pname, GLuint64* params) {
3324 GL_SERVICE_LOG("glGetQueryObjectui64v"
3325 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3326 << static_cast<const void*>(params) << ")");
3327 g_driver_gl.debug_fn.glGetQueryObjectui64vFn(id, pname, params);
3330 static void GL_BINDING_CALL
3331 Debug_glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint* params) {
3332 GL_SERVICE_LOG("glGetQueryObjectuiv"
3333 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3334 << static_cast<const void*>(params) << ")");
3335 g_driver_gl.debug_fn.glGetQueryObjectuivFn(id, pname, params);
3338 static void GL_BINDING_CALL
3339 Debug_glGetQueryObjectuivARB(GLuint id, GLenum pname, GLuint* params) {
3340 GL_SERVICE_LOG("glGetQueryObjectuivARB"
3341 << "(" << id << ", " << GLEnums::GetStringEnum(pname) << ", "
3342 << static_cast<const void*>(params) << ")");
3343 g_driver_gl.debug_fn.glGetQueryObjectuivARBFn(id, pname, params);
3346 static void GL_BINDING_CALL
3347 Debug_glGetRenderbufferParameterivEXT(GLenum target,
3348 GLenum pname,
3349 GLint* params) {
3350 GL_SERVICE_LOG("glGetRenderbufferParameterivEXT"
3351 << "(" << GLEnums::GetStringEnum(target) << ", "
3352 << GLEnums::GetStringEnum(pname) << ", "
3353 << static_cast<const void*>(params) << ")");
3354 g_driver_gl.debug_fn.glGetRenderbufferParameterivEXTFn(target, pname, params);
3357 static void GL_BINDING_CALL
3358 Debug_glGetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params) {
3359 GL_SERVICE_LOG("glGetSamplerParameterfv"
3360 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
3361 << ", " << static_cast<const void*>(params) << ")");
3362 g_driver_gl.debug_fn.glGetSamplerParameterfvFn(sampler, pname, params);
3365 static void GL_BINDING_CALL
3366 Debug_glGetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params) {
3367 GL_SERVICE_LOG("glGetSamplerParameteriv"
3368 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
3369 << ", " << static_cast<const void*>(params) << ")");
3370 g_driver_gl.debug_fn.glGetSamplerParameterivFn(sampler, pname, params);
3373 static void GL_BINDING_CALL Debug_glGetShaderInfoLog(GLuint shader,
3374 GLsizei bufsize,
3375 GLsizei* length,
3376 char* infolog) {
3377 GL_SERVICE_LOG("glGetShaderInfoLog"
3378 << "(" << shader << ", " << bufsize << ", "
3379 << static_cast<const void*>(length) << ", "
3380 << static_cast<const void*>(infolog) << ")");
3381 g_driver_gl.debug_fn.glGetShaderInfoLogFn(shader, bufsize, length, infolog);
3384 static void GL_BINDING_CALL
3385 Debug_glGetShaderiv(GLuint shader, GLenum pname, GLint* params) {
3386 GL_SERVICE_LOG("glGetShaderiv"
3387 << "(" << shader << ", " << GLEnums::GetStringEnum(pname)
3388 << ", " << static_cast<const void*>(params) << ")");
3389 g_driver_gl.debug_fn.glGetShaderivFn(shader, pname, params);
3392 static void GL_BINDING_CALL
3393 Debug_glGetShaderPrecisionFormat(GLenum shadertype,
3394 GLenum precisiontype,
3395 GLint* range,
3396 GLint* precision) {
3397 GL_SERVICE_LOG("glGetShaderPrecisionFormat"
3398 << "(" << GLEnums::GetStringEnum(shadertype) << ", "
3399 << GLEnums::GetStringEnum(precisiontype) << ", "
3400 << static_cast<const void*>(range) << ", "
3401 << static_cast<const void*>(precision) << ")");
3402 g_driver_gl.debug_fn.glGetShaderPrecisionFormatFn(shadertype, precisiontype,
3403 range, precision);
3406 static void GL_BINDING_CALL Debug_glGetShaderSource(GLuint shader,
3407 GLsizei bufsize,
3408 GLsizei* length,
3409 char* source) {
3410 GL_SERVICE_LOG("glGetShaderSource"
3411 << "(" << shader << ", " << bufsize << ", "
3412 << static_cast<const void*>(length) << ", "
3413 << static_cast<const void*>(source) << ")");
3414 g_driver_gl.debug_fn.glGetShaderSourceFn(shader, bufsize, length, source);
3417 static const GLubyte* GL_BINDING_CALL Debug_glGetString(GLenum name) {
3418 GL_SERVICE_LOG("glGetString"
3419 << "(" << GLEnums::GetStringEnum(name) << ")");
3420 const GLubyte* result = g_driver_gl.debug_fn.glGetStringFn(name);
3421 GL_SERVICE_LOG("GL_RESULT: " << result);
3422 return result;
3425 static const GLubyte* GL_BINDING_CALL
3426 Debug_glGetStringi(GLenum name, GLuint index) {
3427 GL_SERVICE_LOG("glGetStringi"
3428 << "(" << GLEnums::GetStringEnum(name) << ", " << index
3429 << ")");
3430 const GLubyte* result = g_driver_gl.debug_fn.glGetStringiFn(name, index);
3431 GL_SERVICE_LOG("GL_RESULT: " << result);
3432 return result;
3435 static void GL_BINDING_CALL Debug_glGetSynciv(GLsync sync,
3436 GLenum pname,
3437 GLsizei bufSize,
3438 GLsizei* length,
3439 GLint* values) {
3440 GL_SERVICE_LOG("glGetSynciv"
3441 << "(" << sync << ", " << GLEnums::GetStringEnum(pname) << ", "
3442 << bufSize << ", " << static_cast<const void*>(length) << ", "
3443 << static_cast<const void*>(values) << ")");
3444 g_driver_gl.debug_fn.glGetSyncivFn(sync, pname, bufSize, length, values);
3447 static void GL_BINDING_CALL Debug_glGetTexLevelParameterfv(GLenum target,
3448 GLint level,
3449 GLenum pname,
3450 GLfloat* params) {
3451 GL_SERVICE_LOG("glGetTexLevelParameterfv"
3452 << "(" << GLEnums::GetStringEnum(target) << ", " << level
3453 << ", " << GLEnums::GetStringEnum(pname) << ", "
3454 << static_cast<const void*>(params) << ")");
3455 g_driver_gl.debug_fn.glGetTexLevelParameterfvFn(target, level, pname, params);
3458 static void GL_BINDING_CALL Debug_glGetTexLevelParameteriv(GLenum target,
3459 GLint level,
3460 GLenum pname,
3461 GLint* params) {
3462 GL_SERVICE_LOG("glGetTexLevelParameteriv"
3463 << "(" << GLEnums::GetStringEnum(target) << ", " << level
3464 << ", " << GLEnums::GetStringEnum(pname) << ", "
3465 << static_cast<const void*>(params) << ")");
3466 g_driver_gl.debug_fn.glGetTexLevelParameterivFn(target, level, pname, params);
3469 static void GL_BINDING_CALL
3470 Debug_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) {
3471 GL_SERVICE_LOG("glGetTexParameterfv"
3472 << "(" << GLEnums::GetStringEnum(target) << ", "
3473 << GLEnums::GetStringEnum(pname) << ", "
3474 << static_cast<const void*>(params) << ")");
3475 g_driver_gl.debug_fn.glGetTexParameterfvFn(target, pname, params);
3478 static void GL_BINDING_CALL
3479 Debug_glGetTexParameteriv(GLenum target, GLenum pname, GLint* params) {
3480 GL_SERVICE_LOG("glGetTexParameteriv"
3481 << "(" << GLEnums::GetStringEnum(target) << ", "
3482 << GLEnums::GetStringEnum(pname) << ", "
3483 << static_cast<const void*>(params) << ")");
3484 g_driver_gl.debug_fn.glGetTexParameterivFn(target, pname, params);
3487 static void GL_BINDING_CALL Debug_glGetTransformFeedbackVarying(GLuint program,
3488 GLuint index,
3489 GLsizei bufSize,
3490 GLsizei* length,
3491 GLsizei* size,
3492 GLenum* type,
3493 char* name) {
3494 GL_SERVICE_LOG("glGetTransformFeedbackVarying"
3495 << "(" << program << ", " << index << ", " << bufSize << ", "
3496 << static_cast<const void*>(length) << ", "
3497 << static_cast<const void*>(size) << ", "
3498 << static_cast<const void*>(type) << ", "
3499 << static_cast<const void*>(name) << ")");
3500 g_driver_gl.debug_fn.glGetTransformFeedbackVaryingFn(
3501 program, index, bufSize, length, size, type, name);
3504 static void GL_BINDING_CALL
3505 Debug_glGetTranslatedShaderSourceANGLE(GLuint shader,
3506 GLsizei bufsize,
3507 GLsizei* length,
3508 char* source) {
3509 GL_SERVICE_LOG("glGetTranslatedShaderSourceANGLE"
3510 << "(" << shader << ", " << bufsize << ", "
3511 << static_cast<const void*>(length) << ", "
3512 << static_cast<const void*>(source) << ")");
3513 g_driver_gl.debug_fn.glGetTranslatedShaderSourceANGLEFn(shader, bufsize,
3514 length, source);
3517 static GLuint GL_BINDING_CALL
3518 Debug_glGetUniformBlockIndex(GLuint program, const char* uniformBlockName) {
3519 GL_SERVICE_LOG("glGetUniformBlockIndex"
3520 << "(" << program << ", " << uniformBlockName << ")");
3521 GLuint result =
3522 g_driver_gl.debug_fn.glGetUniformBlockIndexFn(program, uniformBlockName);
3523 GL_SERVICE_LOG("GL_RESULT: " << result);
3524 return result;
3527 static void GL_BINDING_CALL
3528 Debug_glGetUniformfv(GLuint program, GLint location, GLfloat* params) {
3529 GL_SERVICE_LOG("glGetUniformfv"
3530 << "(" << program << ", " << location << ", "
3531 << static_cast<const void*>(params) << ")");
3532 g_driver_gl.debug_fn.glGetUniformfvFn(program, location, params);
3535 static void GL_BINDING_CALL
3536 Debug_glGetUniformIndices(GLuint program,
3537 GLsizei uniformCount,
3538 const char* const* uniformNames,
3539 GLuint* uniformIndices) {
3540 GL_SERVICE_LOG("glGetUniformIndices"
3541 << "(" << program << ", " << uniformCount << ", "
3542 << static_cast<const void*>(uniformNames) << ", "
3543 << static_cast<const void*>(uniformIndices) << ")");
3544 g_driver_gl.debug_fn.glGetUniformIndicesFn(program, uniformCount,
3545 uniformNames, uniformIndices);
3548 static void GL_BINDING_CALL
3549 Debug_glGetUniformiv(GLuint program, GLint location, GLint* params) {
3550 GL_SERVICE_LOG("glGetUniformiv"
3551 << "(" << program << ", " << location << ", "
3552 << static_cast<const void*>(params) << ")");
3553 g_driver_gl.debug_fn.glGetUniformivFn(program, location, params);
3556 static GLint GL_BINDING_CALL
3557 Debug_glGetUniformLocation(GLuint program, const char* name) {
3558 GL_SERVICE_LOG("glGetUniformLocation"
3559 << "(" << program << ", " << name << ")");
3560 GLint result = g_driver_gl.debug_fn.glGetUniformLocationFn(program, name);
3561 GL_SERVICE_LOG("GL_RESULT: " << result);
3562 return result;
3565 static void GL_BINDING_CALL
3566 Debug_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) {
3567 GL_SERVICE_LOG("glGetVertexAttribfv"
3568 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3569 << ", " << static_cast<const void*>(params) << ")");
3570 g_driver_gl.debug_fn.glGetVertexAttribfvFn(index, pname, params);
3573 static void GL_BINDING_CALL
3574 Debug_glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params) {
3575 GL_SERVICE_LOG("glGetVertexAttribiv"
3576 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3577 << ", " << static_cast<const void*>(params) << ")");
3578 g_driver_gl.debug_fn.glGetVertexAttribivFn(index, pname, params);
3581 static void GL_BINDING_CALL
3582 Debug_glGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) {
3583 GL_SERVICE_LOG("glGetVertexAttribPointerv"
3584 << "(" << index << ", " << GLEnums::GetStringEnum(pname)
3585 << ", " << pointer << ")");
3586 g_driver_gl.debug_fn.glGetVertexAttribPointervFn(index, pname, pointer);
3589 static void GL_BINDING_CALL Debug_glHint(GLenum target, GLenum mode) {
3590 GL_SERVICE_LOG("glHint"
3591 << "(" << GLEnums::GetStringEnum(target) << ", "
3592 << GLEnums::GetStringEnum(mode) << ")");
3593 g_driver_gl.debug_fn.glHintFn(target, mode);
3596 static void GL_BINDING_CALL
3597 Debug_glInsertEventMarkerEXT(GLsizei length, const char* marker) {
3598 GL_SERVICE_LOG("glInsertEventMarkerEXT"
3599 << "(" << length << ", " << marker << ")");
3600 g_driver_gl.debug_fn.glInsertEventMarkerEXTFn(length, marker);
3603 static void GL_BINDING_CALL
3604 Debug_glInvalidateFramebuffer(GLenum target,
3605 GLsizei numAttachments,
3606 const GLenum* attachments) {
3607 GL_SERVICE_LOG("glInvalidateFramebuffer"
3608 << "(" << GLEnums::GetStringEnum(target) << ", "
3609 << numAttachments << ", "
3610 << static_cast<const void*>(attachments) << ")");
3611 g_driver_gl.debug_fn.glInvalidateFramebufferFn(target, numAttachments,
3612 attachments);
3615 static void GL_BINDING_CALL
3616 Debug_glInvalidateSubFramebuffer(GLenum target,
3617 GLsizei numAttachments,
3618 const GLenum* attachments,
3619 GLint x,
3620 GLint y,
3621 GLint width,
3622 GLint height) {
3623 GL_SERVICE_LOG("glInvalidateSubFramebuffer"
3624 << "(" << GLEnums::GetStringEnum(target) << ", "
3625 << numAttachments << ", "
3626 << static_cast<const void*>(attachments) << ", " << x << ", "
3627 << y << ", " << width << ", " << height << ")");
3628 g_driver_gl.debug_fn.glInvalidateSubFramebufferFn(
3629 target, numAttachments, attachments, x, y, width, height);
3632 static GLboolean GL_BINDING_CALL Debug_glIsBuffer(GLuint buffer) {
3633 GL_SERVICE_LOG("glIsBuffer"
3634 << "(" << buffer << ")");
3635 GLboolean result = g_driver_gl.debug_fn.glIsBufferFn(buffer);
3636 GL_SERVICE_LOG("GL_RESULT: " << result);
3637 return result;
3640 static GLboolean GL_BINDING_CALL Debug_glIsEnabled(GLenum cap) {
3641 GL_SERVICE_LOG("glIsEnabled"
3642 << "(" << GLEnums::GetStringEnum(cap) << ")");
3643 GLboolean result = g_driver_gl.debug_fn.glIsEnabledFn(cap);
3644 GL_SERVICE_LOG("GL_RESULT: " << result);
3645 return result;
3648 static GLboolean GL_BINDING_CALL Debug_glIsFenceAPPLE(GLuint fence) {
3649 GL_SERVICE_LOG("glIsFenceAPPLE"
3650 << "(" << fence << ")");
3651 GLboolean result = g_driver_gl.debug_fn.glIsFenceAPPLEFn(fence);
3652 GL_SERVICE_LOG("GL_RESULT: " << result);
3653 return result;
3656 static GLboolean GL_BINDING_CALL Debug_glIsFenceNV(GLuint fence) {
3657 GL_SERVICE_LOG("glIsFenceNV"
3658 << "(" << fence << ")");
3659 GLboolean result = g_driver_gl.debug_fn.glIsFenceNVFn(fence);
3660 GL_SERVICE_LOG("GL_RESULT: " << result);
3661 return result;
3664 static GLboolean GL_BINDING_CALL Debug_glIsFramebufferEXT(GLuint framebuffer) {
3665 GL_SERVICE_LOG("glIsFramebufferEXT"
3666 << "(" << framebuffer << ")");
3667 GLboolean result = g_driver_gl.debug_fn.glIsFramebufferEXTFn(framebuffer);
3668 GL_SERVICE_LOG("GL_RESULT: " << result);
3669 return result;
3672 static GLboolean GL_BINDING_CALL Debug_glIsProgram(GLuint program) {
3673 GL_SERVICE_LOG("glIsProgram"
3674 << "(" << program << ")");
3675 GLboolean result = g_driver_gl.debug_fn.glIsProgramFn(program);
3676 GL_SERVICE_LOG("GL_RESULT: " << result);
3677 return result;
3680 static GLboolean GL_BINDING_CALL Debug_glIsQuery(GLuint query) {
3681 GL_SERVICE_LOG("glIsQuery"
3682 << "(" << query << ")");
3683 GLboolean result = g_driver_gl.debug_fn.glIsQueryFn(query);
3684 GL_SERVICE_LOG("GL_RESULT: " << result);
3685 return result;
3688 static GLboolean GL_BINDING_CALL Debug_glIsQueryARB(GLuint query) {
3689 GL_SERVICE_LOG("glIsQueryARB"
3690 << "(" << query << ")");
3691 GLboolean result = g_driver_gl.debug_fn.glIsQueryARBFn(query);
3692 GL_SERVICE_LOG("GL_RESULT: " << result);
3693 return result;
3696 static GLboolean GL_BINDING_CALL
3697 Debug_glIsRenderbufferEXT(GLuint renderbuffer) {
3698 GL_SERVICE_LOG("glIsRenderbufferEXT"
3699 << "(" << renderbuffer << ")");
3700 GLboolean result = g_driver_gl.debug_fn.glIsRenderbufferEXTFn(renderbuffer);
3701 GL_SERVICE_LOG("GL_RESULT: " << result);
3702 return result;
3705 static GLboolean GL_BINDING_CALL Debug_glIsSampler(GLuint sampler) {
3706 GL_SERVICE_LOG("glIsSampler"
3707 << "(" << sampler << ")");
3708 GLboolean result = g_driver_gl.debug_fn.glIsSamplerFn(sampler);
3709 GL_SERVICE_LOG("GL_RESULT: " << result);
3710 return result;
3713 static GLboolean GL_BINDING_CALL Debug_glIsShader(GLuint shader) {
3714 GL_SERVICE_LOG("glIsShader"
3715 << "(" << shader << ")");
3716 GLboolean result = g_driver_gl.debug_fn.glIsShaderFn(shader);
3717 GL_SERVICE_LOG("GL_RESULT: " << result);
3718 return result;
3721 static GLboolean GL_BINDING_CALL Debug_glIsSync(GLsync sync) {
3722 GL_SERVICE_LOG("glIsSync"
3723 << "(" << sync << ")");
3724 GLboolean result = g_driver_gl.debug_fn.glIsSyncFn(sync);
3725 GL_SERVICE_LOG("GL_RESULT: " << result);
3726 return result;
3729 static GLboolean GL_BINDING_CALL Debug_glIsTexture(GLuint texture) {
3730 GL_SERVICE_LOG("glIsTexture"
3731 << "(" << texture << ")");
3732 GLboolean result = g_driver_gl.debug_fn.glIsTextureFn(texture);
3733 GL_SERVICE_LOG("GL_RESULT: " << result);
3734 return result;
3737 static GLboolean GL_BINDING_CALL Debug_glIsTransformFeedback(GLuint id) {
3738 GL_SERVICE_LOG("glIsTransformFeedback"
3739 << "(" << id << ")");
3740 GLboolean result = g_driver_gl.debug_fn.glIsTransformFeedbackFn(id);
3741 GL_SERVICE_LOG("GL_RESULT: " << result);
3742 return result;
3745 static GLboolean GL_BINDING_CALL Debug_glIsVertexArrayOES(GLuint array) {
3746 GL_SERVICE_LOG("glIsVertexArrayOES"
3747 << "(" << array << ")");
3748 GLboolean result = g_driver_gl.debug_fn.glIsVertexArrayOESFn(array);
3749 GL_SERVICE_LOG("GL_RESULT: " << result);
3750 return result;
3753 static void GL_BINDING_CALL Debug_glLineWidth(GLfloat width) {
3754 GL_SERVICE_LOG("glLineWidth"
3755 << "(" << width << ")");
3756 g_driver_gl.debug_fn.glLineWidthFn(width);
3759 static void GL_BINDING_CALL Debug_glLinkProgram(GLuint program) {
3760 GL_SERVICE_LOG("glLinkProgram"
3761 << "(" << program << ")");
3762 g_driver_gl.debug_fn.glLinkProgramFn(program);
3765 static void* GL_BINDING_CALL Debug_glMapBuffer(GLenum target, GLenum access) {
3766 GL_SERVICE_LOG("glMapBuffer"
3767 << "(" << GLEnums::GetStringEnum(target) << ", "
3768 << GLEnums::GetStringEnum(access) << ")");
3769 void* result = g_driver_gl.debug_fn.glMapBufferFn(target, access);
3770 GL_SERVICE_LOG("GL_RESULT: " << result);
3771 return result;
3774 static void* GL_BINDING_CALL Debug_glMapBufferRange(GLenum target,
3775 GLintptr offset,
3776 GLsizeiptr length,
3777 GLbitfield access) {
3778 GL_SERVICE_LOG("glMapBufferRange"
3779 << "(" << GLEnums::GetStringEnum(target) << ", " << offset
3780 << ", " << length << ", " << access << ")");
3781 void* result =
3782 g_driver_gl.debug_fn.glMapBufferRangeFn(target, offset, length, access);
3783 GL_SERVICE_LOG("GL_RESULT: " << result);
3784 return result;
3787 static void GL_BINDING_CALL
3788 Debug_glMatrixLoadfEXT(GLenum matrixMode, const GLfloat* m) {
3789 GL_SERVICE_LOG("glMatrixLoadfEXT"
3790 << "(" << GLEnums::GetStringEnum(matrixMode) << ", "
3791 << static_cast<const void*>(m) << ")");
3792 g_driver_gl.debug_fn.glMatrixLoadfEXTFn(matrixMode, m);
3795 static void GL_BINDING_CALL Debug_glMatrixLoadIdentityEXT(GLenum matrixMode) {
3796 GL_SERVICE_LOG("glMatrixLoadIdentityEXT"
3797 << "(" << GLEnums::GetStringEnum(matrixMode) << ")");
3798 g_driver_gl.debug_fn.glMatrixLoadIdentityEXTFn(matrixMode);
3801 static void GL_BINDING_CALL Debug_glPauseTransformFeedback(void) {
3802 GL_SERVICE_LOG("glPauseTransformFeedback"
3803 << "("
3804 << ")");
3805 g_driver_gl.debug_fn.glPauseTransformFeedbackFn();
3808 static void GL_BINDING_CALL Debug_glPixelStorei(GLenum pname, GLint param) {
3809 GL_SERVICE_LOG("glPixelStorei"
3810 << "(" << GLEnums::GetStringEnum(pname) << ", " << param
3811 << ")");
3812 g_driver_gl.debug_fn.glPixelStoreiFn(pname, param);
3815 static void GL_BINDING_CALL Debug_glPointParameteri(GLenum pname, GLint param) {
3816 GL_SERVICE_LOG("glPointParameteri"
3817 << "(" << GLEnums::GetStringEnum(pname) << ", " << param
3818 << ")");
3819 g_driver_gl.debug_fn.glPointParameteriFn(pname, param);
3822 static void GL_BINDING_CALL
3823 Debug_glPolygonOffset(GLfloat factor, GLfloat units) {
3824 GL_SERVICE_LOG("glPolygonOffset"
3825 << "(" << factor << ", " << units << ")");
3826 g_driver_gl.debug_fn.glPolygonOffsetFn(factor, units);
3829 static void GL_BINDING_CALL Debug_glPopGroupMarkerEXT(void) {
3830 GL_SERVICE_LOG("glPopGroupMarkerEXT"
3831 << "("
3832 << ")");
3833 g_driver_gl.debug_fn.glPopGroupMarkerEXTFn();
3836 static void GL_BINDING_CALL Debug_glProgramBinary(GLuint program,
3837 GLenum binaryFormat,
3838 const GLvoid* binary,
3839 GLsizei length) {
3840 GL_SERVICE_LOG("glProgramBinary"
3841 << "(" << program << ", "
3842 << GLEnums::GetStringEnum(binaryFormat) << ", "
3843 << static_cast<const void*>(binary) << ", " << length << ")");
3844 g_driver_gl.debug_fn.glProgramBinaryFn(program, binaryFormat, binary, length);
3847 static void GL_BINDING_CALL
3848 Debug_glProgramParameteri(GLuint program, GLenum pname, GLint value) {
3849 GL_SERVICE_LOG("glProgramParameteri"
3850 << "(" << program << ", " << GLEnums::GetStringEnum(pname)
3851 << ", " << value << ")");
3852 g_driver_gl.debug_fn.glProgramParameteriFn(program, pname, value);
3855 static void GL_BINDING_CALL
3856 Debug_glPushGroupMarkerEXT(GLsizei length, const char* marker) {
3857 GL_SERVICE_LOG("glPushGroupMarkerEXT"
3858 << "(" << length << ", " << marker << ")");
3859 g_driver_gl.debug_fn.glPushGroupMarkerEXTFn(length, marker);
3862 static void GL_BINDING_CALL Debug_glQueryCounter(GLuint id, GLenum target) {
3863 GL_SERVICE_LOG("glQueryCounter"
3864 << "(" << id << ", " << GLEnums::GetStringEnum(target) << ")");
3865 g_driver_gl.debug_fn.glQueryCounterFn(id, target);
3868 static void GL_BINDING_CALL Debug_glReadBuffer(GLenum src) {
3869 GL_SERVICE_LOG("glReadBuffer"
3870 << "(" << GLEnums::GetStringEnum(src) << ")");
3871 g_driver_gl.debug_fn.glReadBufferFn(src);
3874 static void GL_BINDING_CALL Debug_glReadPixels(GLint x,
3875 GLint y,
3876 GLsizei width,
3877 GLsizei height,
3878 GLenum format,
3879 GLenum type,
3880 void* pixels) {
3881 GL_SERVICE_LOG("glReadPixels"
3882 << "(" << x << ", " << y << ", " << width << ", " << height
3883 << ", " << GLEnums::GetStringEnum(format) << ", "
3884 << GLEnums::GetStringEnum(type) << ", "
3885 << static_cast<const void*>(pixels) << ")");
3886 g_driver_gl.debug_fn.glReadPixelsFn(x, y, width, height, format, type,
3887 pixels);
3890 static void GL_BINDING_CALL Debug_glReleaseShaderCompiler(void) {
3891 GL_SERVICE_LOG("glReleaseShaderCompiler"
3892 << "("
3893 << ")");
3894 g_driver_gl.debug_fn.glReleaseShaderCompilerFn();
3897 static void GL_BINDING_CALL
3898 Debug_glRenderbufferStorageEXT(GLenum target,
3899 GLenum internalformat,
3900 GLsizei width,
3901 GLsizei height) {
3902 GL_SERVICE_LOG("glRenderbufferStorageEXT"
3903 << "(" << GLEnums::GetStringEnum(target) << ", "
3904 << GLEnums::GetStringEnum(internalformat) << ", " << width
3905 << ", " << height << ")");
3906 g_driver_gl.debug_fn.glRenderbufferStorageEXTFn(target, internalformat, width,
3907 height);
3910 static void GL_BINDING_CALL
3911 Debug_glRenderbufferStorageMultisample(GLenum target,
3912 GLsizei samples,
3913 GLenum internalformat,
3914 GLsizei width,
3915 GLsizei height) {
3916 GL_SERVICE_LOG("glRenderbufferStorageMultisample"
3917 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
3918 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
3919 << width << ", " << height << ")");
3920 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleFn(
3921 target, samples, internalformat, width, height);
3924 static void GL_BINDING_CALL
3925 Debug_glRenderbufferStorageMultisampleANGLE(GLenum target,
3926 GLsizei samples,
3927 GLenum internalformat,
3928 GLsizei width,
3929 GLsizei height) {
3930 GL_SERVICE_LOG("glRenderbufferStorageMultisampleANGLE"
3931 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
3932 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
3933 << width << ", " << height << ")");
3934 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleANGLEFn(
3935 target, samples, internalformat, width, height);
3938 static void GL_BINDING_CALL
3939 Debug_glRenderbufferStorageMultisampleEXT(GLenum target,
3940 GLsizei samples,
3941 GLenum internalformat,
3942 GLsizei width,
3943 GLsizei height) {
3944 GL_SERVICE_LOG("glRenderbufferStorageMultisampleEXT"
3945 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
3946 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
3947 << width << ", " << height << ")");
3948 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleEXTFn(
3949 target, samples, internalformat, width, height);
3952 static void GL_BINDING_CALL
3953 Debug_glRenderbufferStorageMultisampleIMG(GLenum target,
3954 GLsizei samples,
3955 GLenum internalformat,
3956 GLsizei width,
3957 GLsizei height) {
3958 GL_SERVICE_LOG("glRenderbufferStorageMultisampleIMG"
3959 << "(" << GLEnums::GetStringEnum(target) << ", " << samples
3960 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
3961 << width << ", " << height << ")");
3962 g_driver_gl.debug_fn.glRenderbufferStorageMultisampleIMGFn(
3963 target, samples, internalformat, width, height);
3966 static void GL_BINDING_CALL Debug_glResumeTransformFeedback(void) {
3967 GL_SERVICE_LOG("glResumeTransformFeedback"
3968 << "("
3969 << ")");
3970 g_driver_gl.debug_fn.glResumeTransformFeedbackFn();
3973 static void GL_BINDING_CALL
3974 Debug_glSampleCoverage(GLclampf value, GLboolean invert) {
3975 GL_SERVICE_LOG("glSampleCoverage"
3976 << "(" << value << ", " << GLEnums::GetStringBool(invert)
3977 << ")");
3978 g_driver_gl.debug_fn.glSampleCoverageFn(value, invert);
3981 static void GL_BINDING_CALL
3982 Debug_glSamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) {
3983 GL_SERVICE_LOG("glSamplerParameterf"
3984 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
3985 << ", " << param << ")");
3986 g_driver_gl.debug_fn.glSamplerParameterfFn(sampler, pname, param);
3989 static void GL_BINDING_CALL Debug_glSamplerParameterfv(GLuint sampler,
3990 GLenum pname,
3991 const GLfloat* params) {
3992 GL_SERVICE_LOG("glSamplerParameterfv"
3993 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
3994 << ", " << static_cast<const void*>(params) << ")");
3995 g_driver_gl.debug_fn.glSamplerParameterfvFn(sampler, pname, params);
3998 static void GL_BINDING_CALL
3999 Debug_glSamplerParameteri(GLuint sampler, GLenum pname, GLint param) {
4000 GL_SERVICE_LOG("glSamplerParameteri"
4001 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4002 << ", " << param << ")");
4003 g_driver_gl.debug_fn.glSamplerParameteriFn(sampler, pname, param);
4006 static void GL_BINDING_CALL
4007 Debug_glSamplerParameteriv(GLuint sampler, GLenum pname, const GLint* params) {
4008 GL_SERVICE_LOG("glSamplerParameteriv"
4009 << "(" << sampler << ", " << GLEnums::GetStringEnum(pname)
4010 << ", " << static_cast<const void*>(params) << ")");
4011 g_driver_gl.debug_fn.glSamplerParameterivFn(sampler, pname, params);
4014 static void GL_BINDING_CALL
4015 Debug_glScissor(GLint x, GLint y, GLsizei width, GLsizei height) {
4016 GL_SERVICE_LOG("glScissor"
4017 << "(" << x << ", " << y << ", " << width << ", " << height
4018 << ")");
4019 g_driver_gl.debug_fn.glScissorFn(x, y, width, height);
4022 static void GL_BINDING_CALL Debug_glSetFenceAPPLE(GLuint fence) {
4023 GL_SERVICE_LOG("glSetFenceAPPLE"
4024 << "(" << fence << ")");
4025 g_driver_gl.debug_fn.glSetFenceAPPLEFn(fence);
4028 static void GL_BINDING_CALL Debug_glSetFenceNV(GLuint fence, GLenum condition) {
4029 GL_SERVICE_LOG("glSetFenceNV"
4030 << "(" << fence << ", " << GLEnums::GetStringEnum(condition)
4031 << ")");
4032 g_driver_gl.debug_fn.glSetFenceNVFn(fence, condition);
4035 static void GL_BINDING_CALL Debug_glShaderBinary(GLsizei n,
4036 const GLuint* shaders,
4037 GLenum binaryformat,
4038 const void* binary,
4039 GLsizei length) {
4040 GL_SERVICE_LOG("glShaderBinary"
4041 << "(" << n << ", " << static_cast<const void*>(shaders)
4042 << ", " << GLEnums::GetStringEnum(binaryformat) << ", "
4043 << static_cast<const void*>(binary) << ", " << length << ")");
4044 g_driver_gl.debug_fn.glShaderBinaryFn(n, shaders, binaryformat, binary,
4045 length);
4048 static void GL_BINDING_CALL Debug_glShaderSource(GLuint shader,
4049 GLsizei count,
4050 const char* const* str,
4051 const GLint* length) {
4052 GL_SERVICE_LOG("glShaderSource"
4053 << "(" << shader << ", " << count << ", "
4054 << static_cast<const void*>(str) << ", "
4055 << static_cast<const void*>(length) << ")");
4056 g_driver_gl.debug_fn.glShaderSourceFn(shader, count, str, length);
4058 GL_SERVICE_LOG_CODE_BLOCK({
4059 for (GLsizei ii = 0; ii < count; ++ii) {
4060 if (str[ii]) {
4061 if (length && length[ii] >= 0) {
4062 std::string source(str[ii], length[ii]);
4063 GL_SERVICE_LOG(" " << ii << ": ---\n" << source << "\n---");
4064 } else {
4065 GL_SERVICE_LOG(" " << ii << ": ---\n" << str[ii] << "\n---");
4067 } else {
4068 GL_SERVICE_LOG(" " << ii << ": NULL");
4074 static void GL_BINDING_CALL
4075 Debug_glStencilFunc(GLenum func, GLint ref, GLuint mask) {
4076 GL_SERVICE_LOG("glStencilFunc"
4077 << "(" << GLEnums::GetStringEnum(func) << ", " << ref << ", "
4078 << mask << ")");
4079 g_driver_gl.debug_fn.glStencilFuncFn(func, ref, mask);
4082 static void GL_BINDING_CALL
4083 Debug_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) {
4084 GL_SERVICE_LOG("glStencilFuncSeparate"
4085 << "(" << GLEnums::GetStringEnum(face) << ", "
4086 << GLEnums::GetStringEnum(func) << ", " << ref << ", " << mask
4087 << ")");
4088 g_driver_gl.debug_fn.glStencilFuncSeparateFn(face, func, ref, mask);
4091 static void GL_BINDING_CALL Debug_glStencilMask(GLuint mask) {
4092 GL_SERVICE_LOG("glStencilMask"
4093 << "(" << mask << ")");
4094 g_driver_gl.debug_fn.glStencilMaskFn(mask);
4097 static void GL_BINDING_CALL
4098 Debug_glStencilMaskSeparate(GLenum face, GLuint mask) {
4099 GL_SERVICE_LOG("glStencilMaskSeparate"
4100 << "(" << GLEnums::GetStringEnum(face) << ", " << mask << ")");
4101 g_driver_gl.debug_fn.glStencilMaskSeparateFn(face, mask);
4104 static void GL_BINDING_CALL
4105 Debug_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
4106 GL_SERVICE_LOG("glStencilOp"
4107 << "(" << GLEnums::GetStringEnum(fail) << ", "
4108 << GLEnums::GetStringEnum(zfail) << ", "
4109 << GLEnums::GetStringEnum(zpass) << ")");
4110 g_driver_gl.debug_fn.glStencilOpFn(fail, zfail, zpass);
4113 static void GL_BINDING_CALL Debug_glStencilOpSeparate(GLenum face,
4114 GLenum fail,
4115 GLenum zfail,
4116 GLenum zpass) {
4117 GL_SERVICE_LOG("glStencilOpSeparate"
4118 << "(" << GLEnums::GetStringEnum(face) << ", "
4119 << GLEnums::GetStringEnum(fail) << ", "
4120 << GLEnums::GetStringEnum(zfail) << ", "
4121 << GLEnums::GetStringEnum(zpass) << ")");
4122 g_driver_gl.debug_fn.glStencilOpSeparateFn(face, fail, zfail, zpass);
4125 static GLboolean GL_BINDING_CALL Debug_glTestFenceAPPLE(GLuint fence) {
4126 GL_SERVICE_LOG("glTestFenceAPPLE"
4127 << "(" << fence << ")");
4128 GLboolean result = g_driver_gl.debug_fn.glTestFenceAPPLEFn(fence);
4129 GL_SERVICE_LOG("GL_RESULT: " << result);
4130 return result;
4133 static GLboolean GL_BINDING_CALL Debug_glTestFenceNV(GLuint fence) {
4134 GL_SERVICE_LOG("glTestFenceNV"
4135 << "(" << fence << ")");
4136 GLboolean result = g_driver_gl.debug_fn.glTestFenceNVFn(fence);
4137 GL_SERVICE_LOG("GL_RESULT: " << result);
4138 return result;
4141 static void GL_BINDING_CALL Debug_glTexImage2D(GLenum target,
4142 GLint level,
4143 GLint internalformat,
4144 GLsizei width,
4145 GLsizei height,
4146 GLint border,
4147 GLenum format,
4148 GLenum type,
4149 const void* pixels) {
4150 GL_SERVICE_LOG("glTexImage2D"
4151 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4152 << ", " << internalformat << ", " << width << ", " << height
4153 << ", " << border << ", " << GLEnums::GetStringEnum(format)
4154 << ", " << GLEnums::GetStringEnum(type) << ", "
4155 << static_cast<const void*>(pixels) << ")");
4156 g_driver_gl.debug_fn.glTexImage2DFn(target, level, internalformat, width,
4157 height, border, format, type, pixels);
4160 static void GL_BINDING_CALL Debug_glTexImage3D(GLenum target,
4161 GLint level,
4162 GLint internalformat,
4163 GLsizei width,
4164 GLsizei height,
4165 GLsizei depth,
4166 GLint border,
4167 GLenum format,
4168 GLenum type,
4169 const void* pixels) {
4170 GL_SERVICE_LOG("glTexImage3D"
4171 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4172 << ", " << internalformat << ", " << width << ", " << height
4173 << ", " << depth << ", " << border << ", "
4174 << GLEnums::GetStringEnum(format) << ", "
4175 << GLEnums::GetStringEnum(type) << ", "
4176 << static_cast<const void*>(pixels) << ")");
4177 g_driver_gl.debug_fn.glTexImage3DFn(target, level, internalformat, width,
4178 height, depth, border, format, type,
4179 pixels);
4182 static void GL_BINDING_CALL
4183 Debug_glTexParameterf(GLenum target, GLenum pname, GLfloat param) {
4184 GL_SERVICE_LOG("glTexParameterf"
4185 << "(" << GLEnums::GetStringEnum(target) << ", "
4186 << GLEnums::GetStringEnum(pname) << ", " << param << ")");
4187 g_driver_gl.debug_fn.glTexParameterfFn(target, pname, param);
4190 static void GL_BINDING_CALL
4191 Debug_glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params) {
4192 GL_SERVICE_LOG("glTexParameterfv"
4193 << "(" << GLEnums::GetStringEnum(target) << ", "
4194 << GLEnums::GetStringEnum(pname) << ", "
4195 << static_cast<const void*>(params) << ")");
4196 g_driver_gl.debug_fn.glTexParameterfvFn(target, pname, params);
4199 static void GL_BINDING_CALL
4200 Debug_glTexParameteri(GLenum target, GLenum pname, GLint param) {
4201 GL_SERVICE_LOG("glTexParameteri"
4202 << "(" << GLEnums::GetStringEnum(target) << ", "
4203 << GLEnums::GetStringEnum(pname) << ", " << param << ")");
4204 g_driver_gl.debug_fn.glTexParameteriFn(target, pname, param);
4207 static void GL_BINDING_CALL
4208 Debug_glTexParameteriv(GLenum target, GLenum pname, const GLint* params) {
4209 GL_SERVICE_LOG("glTexParameteriv"
4210 << "(" << GLEnums::GetStringEnum(target) << ", "
4211 << GLEnums::GetStringEnum(pname) << ", "
4212 << static_cast<const void*>(params) << ")");
4213 g_driver_gl.debug_fn.glTexParameterivFn(target, pname, params);
4216 static void GL_BINDING_CALL Debug_glTexStorage2DEXT(GLenum target,
4217 GLsizei levels,
4218 GLenum internalformat,
4219 GLsizei width,
4220 GLsizei height) {
4221 GL_SERVICE_LOG("glTexStorage2DEXT"
4222 << "(" << GLEnums::GetStringEnum(target) << ", " << levels
4223 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4224 << width << ", " << height << ")");
4225 g_driver_gl.debug_fn.glTexStorage2DEXTFn(target, levels, internalformat,
4226 width, height);
4229 static void GL_BINDING_CALL Debug_glTexStorage3D(GLenum target,
4230 GLsizei levels,
4231 GLenum internalformat,
4232 GLsizei width,
4233 GLsizei height,
4234 GLsizei depth) {
4235 GL_SERVICE_LOG("glTexStorage3D"
4236 << "(" << GLEnums::GetStringEnum(target) << ", " << levels
4237 << ", " << GLEnums::GetStringEnum(internalformat) << ", "
4238 << width << ", " << height << ", " << depth << ")");
4239 g_driver_gl.debug_fn.glTexStorage3DFn(target, levels, internalformat, width,
4240 height, depth);
4243 static void GL_BINDING_CALL Debug_glTexSubImage2D(GLenum target,
4244 GLint level,
4245 GLint xoffset,
4246 GLint yoffset,
4247 GLsizei width,
4248 GLsizei height,
4249 GLenum format,
4250 GLenum type,
4251 const void* pixels) {
4252 GL_SERVICE_LOG("glTexSubImage2D"
4253 << "(" << GLEnums::GetStringEnum(target) << ", " << level
4254 << ", " << xoffset << ", " << yoffset << ", " << width << ", "
4255 << height << ", " << GLEnums::GetStringEnum(format) << ", "
4256 << GLEnums::GetStringEnum(type) << ", "
4257 << static_cast<const void*>(pixels) << ")");
4258 g_driver_gl.debug_fn.glTexSubImage2DFn(target, level, xoffset, yoffset, width,
4259 height, format, type, pixels);
4262 static void GL_BINDING_CALL
4263 Debug_glTransformFeedbackVaryings(GLuint program,
4264 GLsizei count,
4265 const char* const* varyings,
4266 GLenum bufferMode) {
4267 GL_SERVICE_LOG("glTransformFeedbackVaryings"
4268 << "(" << program << ", " << count << ", "
4269 << static_cast<const void*>(varyings) << ", "
4270 << GLEnums::GetStringEnum(bufferMode) << ")");
4271 g_driver_gl.debug_fn.glTransformFeedbackVaryingsFn(program, count, varyings,
4272 bufferMode);
4275 static void GL_BINDING_CALL Debug_glUniform1f(GLint location, GLfloat x) {
4276 GL_SERVICE_LOG("glUniform1f"
4277 << "(" << location << ", " << x << ")");
4278 g_driver_gl.debug_fn.glUniform1fFn(location, x);
4281 static void GL_BINDING_CALL
4282 Debug_glUniform1fv(GLint location, GLsizei count, const GLfloat* v) {
4283 GL_SERVICE_LOG("glUniform1fv"
4284 << "(" << location << ", " << count << ", "
4285 << static_cast<const void*>(v) << ")");
4286 g_driver_gl.debug_fn.glUniform1fvFn(location, count, v);
4289 static void GL_BINDING_CALL Debug_glUniform1i(GLint location, GLint x) {
4290 GL_SERVICE_LOG("glUniform1i"
4291 << "(" << location << ", " << x << ")");
4292 g_driver_gl.debug_fn.glUniform1iFn(location, x);
4295 static void GL_BINDING_CALL
4296 Debug_glUniform1iv(GLint location, GLsizei count, const GLint* v) {
4297 GL_SERVICE_LOG("glUniform1iv"
4298 << "(" << location << ", " << count << ", "
4299 << static_cast<const void*>(v) << ")");
4300 g_driver_gl.debug_fn.glUniform1ivFn(location, count, v);
4303 static void GL_BINDING_CALL Debug_glUniform1ui(GLint location, GLuint v0) {
4304 GL_SERVICE_LOG("glUniform1ui"
4305 << "(" << location << ", " << v0 << ")");
4306 g_driver_gl.debug_fn.glUniform1uiFn(location, v0);
4309 static void GL_BINDING_CALL
4310 Debug_glUniform1uiv(GLint location, GLsizei count, const GLuint* v) {
4311 GL_SERVICE_LOG("glUniform1uiv"
4312 << "(" << location << ", " << count << ", "
4313 << static_cast<const void*>(v) << ")");
4314 g_driver_gl.debug_fn.glUniform1uivFn(location, count, v);
4317 static void GL_BINDING_CALL
4318 Debug_glUniform2f(GLint location, GLfloat x, GLfloat y) {
4319 GL_SERVICE_LOG("glUniform2f"
4320 << "(" << location << ", " << x << ", " << y << ")");
4321 g_driver_gl.debug_fn.glUniform2fFn(location, x, y);
4324 static void GL_BINDING_CALL
4325 Debug_glUniform2fv(GLint location, GLsizei count, const GLfloat* v) {
4326 GL_SERVICE_LOG("glUniform2fv"
4327 << "(" << location << ", " << count << ", "
4328 << static_cast<const void*>(v) << ")");
4329 g_driver_gl.debug_fn.glUniform2fvFn(location, count, v);
4332 static void GL_BINDING_CALL
4333 Debug_glUniform2i(GLint location, GLint x, GLint y) {
4334 GL_SERVICE_LOG("glUniform2i"
4335 << "(" << location << ", " << x << ", " << y << ")");
4336 g_driver_gl.debug_fn.glUniform2iFn(location, x, y);
4339 static void GL_BINDING_CALL
4340 Debug_glUniform2iv(GLint location, GLsizei count, const GLint* v) {
4341 GL_SERVICE_LOG("glUniform2iv"
4342 << "(" << location << ", " << count << ", "
4343 << static_cast<const void*>(v) << ")");
4344 g_driver_gl.debug_fn.glUniform2ivFn(location, count, v);
4347 static void GL_BINDING_CALL
4348 Debug_glUniform2ui(GLint location, GLuint v0, GLuint v1) {
4349 GL_SERVICE_LOG("glUniform2ui"
4350 << "(" << location << ", " << v0 << ", " << v1 << ")");
4351 g_driver_gl.debug_fn.glUniform2uiFn(location, v0, v1);
4354 static void GL_BINDING_CALL
4355 Debug_glUniform2uiv(GLint location, GLsizei count, const GLuint* v) {
4356 GL_SERVICE_LOG("glUniform2uiv"
4357 << "(" << location << ", " << count << ", "
4358 << static_cast<const void*>(v) << ")");
4359 g_driver_gl.debug_fn.glUniform2uivFn(location, count, v);
4362 static void GL_BINDING_CALL
4363 Debug_glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
4364 GL_SERVICE_LOG("glUniform3f"
4365 << "(" << location << ", " << x << ", " << y << ", " << z
4366 << ")");
4367 g_driver_gl.debug_fn.glUniform3fFn(location, x, y, z);
4370 static void GL_BINDING_CALL
4371 Debug_glUniform3fv(GLint location, GLsizei count, const GLfloat* v) {
4372 GL_SERVICE_LOG("glUniform3fv"
4373 << "(" << location << ", " << count << ", "
4374 << static_cast<const void*>(v) << ")");
4375 g_driver_gl.debug_fn.glUniform3fvFn(location, count, v);
4378 static void GL_BINDING_CALL
4379 Debug_glUniform3i(GLint location, GLint x, GLint y, GLint z) {
4380 GL_SERVICE_LOG("glUniform3i"
4381 << "(" << location << ", " << x << ", " << y << ", " << z
4382 << ")");
4383 g_driver_gl.debug_fn.glUniform3iFn(location, x, y, z);
4386 static void GL_BINDING_CALL
4387 Debug_glUniform3iv(GLint location, GLsizei count, const GLint* v) {
4388 GL_SERVICE_LOG("glUniform3iv"
4389 << "(" << location << ", " << count << ", "
4390 << static_cast<const void*>(v) << ")");
4391 g_driver_gl.debug_fn.glUniform3ivFn(location, count, v);
4394 static void GL_BINDING_CALL
4395 Debug_glUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2) {
4396 GL_SERVICE_LOG("glUniform3ui"
4397 << "(" << location << ", " << v0 << ", " << v1 << ", " << v2
4398 << ")");
4399 g_driver_gl.debug_fn.glUniform3uiFn(location, v0, v1, v2);
4402 static void GL_BINDING_CALL
4403 Debug_glUniform3uiv(GLint location, GLsizei count, const GLuint* v) {
4404 GL_SERVICE_LOG("glUniform3uiv"
4405 << "(" << location << ", " << count << ", "
4406 << static_cast<const void*>(v) << ")");
4407 g_driver_gl.debug_fn.glUniform3uivFn(location, count, v);
4410 static void GL_BINDING_CALL
4411 Debug_glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
4412 GL_SERVICE_LOG("glUniform4f"
4413 << "(" << location << ", " << x << ", " << y << ", " << z
4414 << ", " << w << ")");
4415 g_driver_gl.debug_fn.glUniform4fFn(location, x, y, z, w);
4418 static void GL_BINDING_CALL
4419 Debug_glUniform4fv(GLint location, GLsizei count, const GLfloat* v) {
4420 GL_SERVICE_LOG("glUniform4fv"
4421 << "(" << location << ", " << count << ", "
4422 << static_cast<const void*>(v) << ")");
4423 g_driver_gl.debug_fn.glUniform4fvFn(location, count, v);
4426 static void GL_BINDING_CALL
4427 Debug_glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
4428 GL_SERVICE_LOG("glUniform4i"
4429 << "(" << location << ", " << x << ", " << y << ", " << z
4430 << ", " << w << ")");
4431 g_driver_gl.debug_fn.glUniform4iFn(location, x, y, z, w);
4434 static void GL_BINDING_CALL
4435 Debug_glUniform4iv(GLint location, GLsizei count, const GLint* v) {
4436 GL_SERVICE_LOG("glUniform4iv"
4437 << "(" << location << ", " << count << ", "
4438 << static_cast<const void*>(v) << ")");
4439 g_driver_gl.debug_fn.glUniform4ivFn(location, count, v);
4442 static void GL_BINDING_CALL
4443 Debug_glUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) {
4444 GL_SERVICE_LOG("glUniform4ui"
4445 << "(" << location << ", " << v0 << ", " << v1 << ", " << v2
4446 << ", " << v3 << ")");
4447 g_driver_gl.debug_fn.glUniform4uiFn(location, v0, v1, v2, v3);
4450 static void GL_BINDING_CALL
4451 Debug_glUniform4uiv(GLint location, GLsizei count, const GLuint* v) {
4452 GL_SERVICE_LOG("glUniform4uiv"
4453 << "(" << location << ", " << count << ", "
4454 << static_cast<const void*>(v) << ")");
4455 g_driver_gl.debug_fn.glUniform4uivFn(location, count, v);
4458 static void GL_BINDING_CALL
4459 Debug_glUniformBlockBinding(GLuint program,
4460 GLuint uniformBlockIndex,
4461 GLuint uniformBlockBinding) {
4462 GL_SERVICE_LOG("glUniformBlockBinding"
4463 << "(" << program << ", " << uniformBlockIndex << ", "
4464 << uniformBlockBinding << ")");
4465 g_driver_gl.debug_fn.glUniformBlockBindingFn(program, uniformBlockIndex,
4466 uniformBlockBinding);
4469 static void GL_BINDING_CALL Debug_glUniformMatrix2fv(GLint location,
4470 GLsizei count,
4471 GLboolean transpose,
4472 const GLfloat* value) {
4473 GL_SERVICE_LOG("glUniformMatrix2fv"
4474 << "(" << location << ", " << count << ", "
4475 << GLEnums::GetStringBool(transpose) << ", "
4476 << static_cast<const void*>(value) << ")");
4477 g_driver_gl.debug_fn.glUniformMatrix2fvFn(location, count, transpose, value);
4480 static void GL_BINDING_CALL Debug_glUniformMatrix2x3fv(GLint location,
4481 GLsizei count,
4482 GLboolean transpose,
4483 const GLfloat* value) {
4484 GL_SERVICE_LOG("glUniformMatrix2x3fv"
4485 << "(" << location << ", " << count << ", "
4486 << GLEnums::GetStringBool(transpose) << ", "
4487 << static_cast<const void*>(value) << ")");
4488 g_driver_gl.debug_fn.glUniformMatrix2x3fvFn(location, count, transpose,
4489 value);
4492 static void GL_BINDING_CALL Debug_glUniformMatrix2x4fv(GLint location,
4493 GLsizei count,
4494 GLboolean transpose,
4495 const GLfloat* value) {
4496 GL_SERVICE_LOG("glUniformMatrix2x4fv"
4497 << "(" << location << ", " << count << ", "
4498 << GLEnums::GetStringBool(transpose) << ", "
4499 << static_cast<const void*>(value) << ")");
4500 g_driver_gl.debug_fn.glUniformMatrix2x4fvFn(location, count, transpose,
4501 value);
4504 static void GL_BINDING_CALL Debug_glUniformMatrix3fv(GLint location,
4505 GLsizei count,
4506 GLboolean transpose,
4507 const GLfloat* value) {
4508 GL_SERVICE_LOG("glUniformMatrix3fv"
4509 << "(" << location << ", " << count << ", "
4510 << GLEnums::GetStringBool(transpose) << ", "
4511 << static_cast<const void*>(value) << ")");
4512 g_driver_gl.debug_fn.glUniformMatrix3fvFn(location, count, transpose, value);
4515 static void GL_BINDING_CALL Debug_glUniformMatrix3x2fv(GLint location,
4516 GLsizei count,
4517 GLboolean transpose,
4518 const GLfloat* value) {
4519 GL_SERVICE_LOG("glUniformMatrix3x2fv"
4520 << "(" << location << ", " << count << ", "
4521 << GLEnums::GetStringBool(transpose) << ", "
4522 << static_cast<const void*>(value) << ")");
4523 g_driver_gl.debug_fn.glUniformMatrix3x2fvFn(location, count, transpose,
4524 value);
4527 static void GL_BINDING_CALL Debug_glUniformMatrix3x4fv(GLint location,
4528 GLsizei count,
4529 GLboolean transpose,
4530 const GLfloat* value) {
4531 GL_SERVICE_LOG("glUniformMatrix3x4fv"
4532 << "(" << location << ", " << count << ", "
4533 << GLEnums::GetStringBool(transpose) << ", "
4534 << static_cast<const void*>(value) << ")");
4535 g_driver_gl.debug_fn.glUniformMatrix3x4fvFn(location, count, transpose,
4536 value);
4539 static void GL_BINDING_CALL Debug_glUniformMatrix4fv(GLint location,
4540 GLsizei count,
4541 GLboolean transpose,
4542 const GLfloat* value) {
4543 GL_SERVICE_LOG("glUniformMatrix4fv"
4544 << "(" << location << ", " << count << ", "
4545 << GLEnums::GetStringBool(transpose) << ", "
4546 << static_cast<const void*>(value) << ")");
4547 g_driver_gl.debug_fn.glUniformMatrix4fvFn(location, count, transpose, value);
4550 static void GL_BINDING_CALL Debug_glUniformMatrix4x2fv(GLint location,
4551 GLsizei count,
4552 GLboolean transpose,
4553 const GLfloat* value) {
4554 GL_SERVICE_LOG("glUniformMatrix4x2fv"
4555 << "(" << location << ", " << count << ", "
4556 << GLEnums::GetStringBool(transpose) << ", "
4557 << static_cast<const void*>(value) << ")");
4558 g_driver_gl.debug_fn.glUniformMatrix4x2fvFn(location, count, transpose,
4559 value);
4562 static void GL_BINDING_CALL Debug_glUniformMatrix4x3fv(GLint location,
4563 GLsizei count,
4564 GLboolean transpose,
4565 const GLfloat* value) {
4566 GL_SERVICE_LOG("glUniformMatrix4x3fv"
4567 << "(" << location << ", " << count << ", "
4568 << GLEnums::GetStringBool(transpose) << ", "
4569 << static_cast<const void*>(value) << ")");
4570 g_driver_gl.debug_fn.glUniformMatrix4x3fvFn(location, count, transpose,
4571 value);
4574 static GLboolean GL_BINDING_CALL Debug_glUnmapBuffer(GLenum target) {
4575 GL_SERVICE_LOG("glUnmapBuffer"
4576 << "(" << GLEnums::GetStringEnum(target) << ")");
4577 GLboolean result = g_driver_gl.debug_fn.glUnmapBufferFn(target);
4578 GL_SERVICE_LOG("GL_RESULT: " << result);
4579 return result;
4582 static void GL_BINDING_CALL Debug_glUseProgram(GLuint program) {
4583 GL_SERVICE_LOG("glUseProgram"
4584 << "(" << program << ")");
4585 g_driver_gl.debug_fn.glUseProgramFn(program);
4588 static void GL_BINDING_CALL Debug_glValidateProgram(GLuint program) {
4589 GL_SERVICE_LOG("glValidateProgram"
4590 << "(" << program << ")");
4591 g_driver_gl.debug_fn.glValidateProgramFn(program);
4594 static void GL_BINDING_CALL Debug_glVertexAttrib1f(GLuint indx, GLfloat x) {
4595 GL_SERVICE_LOG("glVertexAttrib1f"
4596 << "(" << indx << ", " << x << ")");
4597 g_driver_gl.debug_fn.glVertexAttrib1fFn(indx, x);
4600 static void GL_BINDING_CALL
4601 Debug_glVertexAttrib1fv(GLuint indx, const GLfloat* values) {
4602 GL_SERVICE_LOG("glVertexAttrib1fv"
4603 << "(" << indx << ", " << static_cast<const void*>(values)
4604 << ")");
4605 g_driver_gl.debug_fn.glVertexAttrib1fvFn(indx, values);
4608 static void GL_BINDING_CALL
4609 Debug_glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
4610 GL_SERVICE_LOG("glVertexAttrib2f"
4611 << "(" << indx << ", " << x << ", " << y << ")");
4612 g_driver_gl.debug_fn.glVertexAttrib2fFn(indx, x, y);
4615 static void GL_BINDING_CALL
4616 Debug_glVertexAttrib2fv(GLuint indx, const GLfloat* values) {
4617 GL_SERVICE_LOG("glVertexAttrib2fv"
4618 << "(" << indx << ", " << static_cast<const void*>(values)
4619 << ")");
4620 g_driver_gl.debug_fn.glVertexAttrib2fvFn(indx, values);
4623 static void GL_BINDING_CALL
4624 Debug_glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
4625 GL_SERVICE_LOG("glVertexAttrib3f"
4626 << "(" << indx << ", " << x << ", " << y << ", " << z << ")");
4627 g_driver_gl.debug_fn.glVertexAttrib3fFn(indx, x, y, z);
4630 static void GL_BINDING_CALL
4631 Debug_glVertexAttrib3fv(GLuint indx, const GLfloat* values) {
4632 GL_SERVICE_LOG("glVertexAttrib3fv"
4633 << "(" << indx << ", " << static_cast<const void*>(values)
4634 << ")");
4635 g_driver_gl.debug_fn.glVertexAttrib3fvFn(indx, values);
4638 static void GL_BINDING_CALL Debug_glVertexAttrib4f(GLuint indx,
4639 GLfloat x,
4640 GLfloat y,
4641 GLfloat z,
4642 GLfloat w) {
4643 GL_SERVICE_LOG("glVertexAttrib4f"
4644 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4645 << w << ")");
4646 g_driver_gl.debug_fn.glVertexAttrib4fFn(indx, x, y, z, w);
4649 static void GL_BINDING_CALL
4650 Debug_glVertexAttrib4fv(GLuint indx, const GLfloat* values) {
4651 GL_SERVICE_LOG("glVertexAttrib4fv"
4652 << "(" << indx << ", " << static_cast<const void*>(values)
4653 << ")");
4654 g_driver_gl.debug_fn.glVertexAttrib4fvFn(indx, values);
4657 static void GL_BINDING_CALL
4658 Debug_glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
4659 GL_SERVICE_LOG("glVertexAttribDivisorANGLE"
4660 << "(" << index << ", " << divisor << ")");
4661 g_driver_gl.debug_fn.glVertexAttribDivisorANGLEFn(index, divisor);
4664 static void GL_BINDING_CALL
4665 Debug_glVertexAttribI4i(GLuint indx, GLint x, GLint y, GLint z, GLint w) {
4666 GL_SERVICE_LOG("glVertexAttribI4i"
4667 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4668 << w << ")");
4669 g_driver_gl.debug_fn.glVertexAttribI4iFn(indx, x, y, z, w);
4672 static void GL_BINDING_CALL
4673 Debug_glVertexAttribI4iv(GLuint indx, const GLint* values) {
4674 GL_SERVICE_LOG("glVertexAttribI4iv"
4675 << "(" << indx << ", " << static_cast<const void*>(values)
4676 << ")");
4677 g_driver_gl.debug_fn.glVertexAttribI4ivFn(indx, values);
4680 static void GL_BINDING_CALL
4681 Debug_glVertexAttribI4ui(GLuint indx, GLuint x, GLuint y, GLuint z, GLuint w) {
4682 GL_SERVICE_LOG("glVertexAttribI4ui"
4683 << "(" << indx << ", " << x << ", " << y << ", " << z << ", "
4684 << w << ")");
4685 g_driver_gl.debug_fn.glVertexAttribI4uiFn(indx, x, y, z, w);
4688 static void GL_BINDING_CALL
4689 Debug_glVertexAttribI4uiv(GLuint indx, const GLuint* values) {
4690 GL_SERVICE_LOG("glVertexAttribI4uiv"
4691 << "(" << indx << ", " << static_cast<const void*>(values)
4692 << ")");
4693 g_driver_gl.debug_fn.glVertexAttribI4uivFn(indx, values);
4696 static void GL_BINDING_CALL Debug_glVertexAttribIPointer(GLuint indx,
4697 GLint size,
4698 GLenum type,
4699 GLsizei stride,
4700 const void* ptr) {
4701 GL_SERVICE_LOG("glVertexAttribIPointer"
4702 << "(" << indx << ", " << size << ", "
4703 << GLEnums::GetStringEnum(type) << ", " << stride << ", "
4704 << static_cast<const void*>(ptr) << ")");
4705 g_driver_gl.debug_fn.glVertexAttribIPointerFn(indx, size, type, stride, ptr);
4708 static void GL_BINDING_CALL Debug_glVertexAttribPointer(GLuint indx,
4709 GLint size,
4710 GLenum type,
4711 GLboolean normalized,
4712 GLsizei stride,
4713 const void* ptr) {
4714 GL_SERVICE_LOG("glVertexAttribPointer"
4715 << "(" << indx << ", " << size << ", "
4716 << GLEnums::GetStringEnum(type) << ", "
4717 << GLEnums::GetStringBool(normalized) << ", " << stride << ", "
4718 << static_cast<const void*>(ptr) << ")");
4719 g_driver_gl.debug_fn.glVertexAttribPointerFn(indx, size, type, normalized,
4720 stride, ptr);
4723 static void GL_BINDING_CALL
4724 Debug_glViewport(GLint x, GLint y, GLsizei width, GLsizei height) {
4725 GL_SERVICE_LOG("glViewport"
4726 << "(" << x << ", " << y << ", " << width << ", " << height
4727 << ")");
4728 g_driver_gl.debug_fn.glViewportFn(x, y, width, height);
4731 static GLenum GL_BINDING_CALL
4732 Debug_glWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
4733 GL_SERVICE_LOG("glWaitSync"
4734 << "(" << sync << ", " << flags << ", " << timeout << ")");
4735 GLenum result = g_driver_gl.debug_fn.glWaitSyncFn(sync, flags, timeout);
4736 GL_SERVICE_LOG("GL_RESULT: " << result);
4737 return result;
4739 } // extern "C"
4741 void DriverGL::InitializeDebugBindings() {
4742 if (!debug_fn.glActiveTextureFn) {
4743 debug_fn.glActiveTextureFn = fn.glActiveTextureFn;
4744 fn.glActiveTextureFn = Debug_glActiveTexture;
4746 if (!debug_fn.glAttachShaderFn) {
4747 debug_fn.glAttachShaderFn = fn.glAttachShaderFn;
4748 fn.glAttachShaderFn = Debug_glAttachShader;
4750 if (!debug_fn.glBeginQueryFn) {
4751 debug_fn.glBeginQueryFn = fn.glBeginQueryFn;
4752 fn.glBeginQueryFn = Debug_glBeginQuery;
4754 if (!debug_fn.glBeginQueryARBFn) {
4755 debug_fn.glBeginQueryARBFn = fn.glBeginQueryARBFn;
4756 fn.glBeginQueryARBFn = Debug_glBeginQueryARB;
4758 if (!debug_fn.glBeginTransformFeedbackFn) {
4759 debug_fn.glBeginTransformFeedbackFn = fn.glBeginTransformFeedbackFn;
4760 fn.glBeginTransformFeedbackFn = Debug_glBeginTransformFeedback;
4762 if (!debug_fn.glBindAttribLocationFn) {
4763 debug_fn.glBindAttribLocationFn = fn.glBindAttribLocationFn;
4764 fn.glBindAttribLocationFn = Debug_glBindAttribLocation;
4766 if (!debug_fn.glBindBufferFn) {
4767 debug_fn.glBindBufferFn = fn.glBindBufferFn;
4768 fn.glBindBufferFn = Debug_glBindBuffer;
4770 if (!debug_fn.glBindBufferBaseFn) {
4771 debug_fn.glBindBufferBaseFn = fn.glBindBufferBaseFn;
4772 fn.glBindBufferBaseFn = Debug_glBindBufferBase;
4774 if (!debug_fn.glBindBufferRangeFn) {
4775 debug_fn.glBindBufferRangeFn = fn.glBindBufferRangeFn;
4776 fn.glBindBufferRangeFn = Debug_glBindBufferRange;
4778 if (!debug_fn.glBindFragDataLocationFn) {
4779 debug_fn.glBindFragDataLocationFn = fn.glBindFragDataLocationFn;
4780 fn.glBindFragDataLocationFn = Debug_glBindFragDataLocation;
4782 if (!debug_fn.glBindFragDataLocationIndexedFn) {
4783 debug_fn.glBindFragDataLocationIndexedFn =
4784 fn.glBindFragDataLocationIndexedFn;
4785 fn.glBindFragDataLocationIndexedFn = Debug_glBindFragDataLocationIndexed;
4787 if (!debug_fn.glBindFramebufferEXTFn) {
4788 debug_fn.glBindFramebufferEXTFn = fn.glBindFramebufferEXTFn;
4789 fn.glBindFramebufferEXTFn = Debug_glBindFramebufferEXT;
4791 if (!debug_fn.glBindRenderbufferEXTFn) {
4792 debug_fn.glBindRenderbufferEXTFn = fn.glBindRenderbufferEXTFn;
4793 fn.glBindRenderbufferEXTFn = Debug_glBindRenderbufferEXT;
4795 if (!debug_fn.glBindSamplerFn) {
4796 debug_fn.glBindSamplerFn = fn.glBindSamplerFn;
4797 fn.glBindSamplerFn = Debug_glBindSampler;
4799 if (!debug_fn.glBindTextureFn) {
4800 debug_fn.glBindTextureFn = fn.glBindTextureFn;
4801 fn.glBindTextureFn = Debug_glBindTexture;
4803 if (!debug_fn.glBindTransformFeedbackFn) {
4804 debug_fn.glBindTransformFeedbackFn = fn.glBindTransformFeedbackFn;
4805 fn.glBindTransformFeedbackFn = Debug_glBindTransformFeedback;
4807 if (!debug_fn.glBindVertexArrayOESFn) {
4808 debug_fn.glBindVertexArrayOESFn = fn.glBindVertexArrayOESFn;
4809 fn.glBindVertexArrayOESFn = Debug_glBindVertexArrayOES;
4811 if (!debug_fn.glBlendBarrierKHRFn) {
4812 debug_fn.glBlendBarrierKHRFn = fn.glBlendBarrierKHRFn;
4813 fn.glBlendBarrierKHRFn = Debug_glBlendBarrierKHR;
4815 if (!debug_fn.glBlendColorFn) {
4816 debug_fn.glBlendColorFn = fn.glBlendColorFn;
4817 fn.glBlendColorFn = Debug_glBlendColor;
4819 if (!debug_fn.glBlendEquationFn) {
4820 debug_fn.glBlendEquationFn = fn.glBlendEquationFn;
4821 fn.glBlendEquationFn = Debug_glBlendEquation;
4823 if (!debug_fn.glBlendEquationSeparateFn) {
4824 debug_fn.glBlendEquationSeparateFn = fn.glBlendEquationSeparateFn;
4825 fn.glBlendEquationSeparateFn = Debug_glBlendEquationSeparate;
4827 if (!debug_fn.glBlendFuncFn) {
4828 debug_fn.glBlendFuncFn = fn.glBlendFuncFn;
4829 fn.glBlendFuncFn = Debug_glBlendFunc;
4831 if (!debug_fn.glBlendFuncSeparateFn) {
4832 debug_fn.glBlendFuncSeparateFn = fn.glBlendFuncSeparateFn;
4833 fn.glBlendFuncSeparateFn = Debug_glBlendFuncSeparate;
4835 if (!debug_fn.glBlitFramebufferFn) {
4836 debug_fn.glBlitFramebufferFn = fn.glBlitFramebufferFn;
4837 fn.glBlitFramebufferFn = Debug_glBlitFramebuffer;
4839 if (!debug_fn.glBlitFramebufferANGLEFn) {
4840 debug_fn.glBlitFramebufferANGLEFn = fn.glBlitFramebufferANGLEFn;
4841 fn.glBlitFramebufferANGLEFn = Debug_glBlitFramebufferANGLE;
4843 if (!debug_fn.glBlitFramebufferEXTFn) {
4844 debug_fn.glBlitFramebufferEXTFn = fn.glBlitFramebufferEXTFn;
4845 fn.glBlitFramebufferEXTFn = Debug_glBlitFramebufferEXT;
4847 if (!debug_fn.glBufferDataFn) {
4848 debug_fn.glBufferDataFn = fn.glBufferDataFn;
4849 fn.glBufferDataFn = Debug_glBufferData;
4851 if (!debug_fn.glBufferSubDataFn) {
4852 debug_fn.glBufferSubDataFn = fn.glBufferSubDataFn;
4853 fn.glBufferSubDataFn = Debug_glBufferSubData;
4855 if (!debug_fn.glCheckFramebufferStatusEXTFn) {
4856 debug_fn.glCheckFramebufferStatusEXTFn = fn.glCheckFramebufferStatusEXTFn;
4857 fn.glCheckFramebufferStatusEXTFn = Debug_glCheckFramebufferStatusEXT;
4859 if (!debug_fn.glClearFn) {
4860 debug_fn.glClearFn = fn.glClearFn;
4861 fn.glClearFn = Debug_glClear;
4863 if (!debug_fn.glClearBufferfiFn) {
4864 debug_fn.glClearBufferfiFn = fn.glClearBufferfiFn;
4865 fn.glClearBufferfiFn = Debug_glClearBufferfi;
4867 if (!debug_fn.glClearBufferfvFn) {
4868 debug_fn.glClearBufferfvFn = fn.glClearBufferfvFn;
4869 fn.glClearBufferfvFn = Debug_glClearBufferfv;
4871 if (!debug_fn.glClearBufferivFn) {
4872 debug_fn.glClearBufferivFn = fn.glClearBufferivFn;
4873 fn.glClearBufferivFn = Debug_glClearBufferiv;
4875 if (!debug_fn.glClearBufferuivFn) {
4876 debug_fn.glClearBufferuivFn = fn.glClearBufferuivFn;
4877 fn.glClearBufferuivFn = Debug_glClearBufferuiv;
4879 if (!debug_fn.glClearColorFn) {
4880 debug_fn.glClearColorFn = fn.glClearColorFn;
4881 fn.glClearColorFn = Debug_glClearColor;
4883 if (!debug_fn.glClearDepthFn) {
4884 debug_fn.glClearDepthFn = fn.glClearDepthFn;
4885 fn.glClearDepthFn = Debug_glClearDepth;
4887 if (!debug_fn.glClearDepthfFn) {
4888 debug_fn.glClearDepthfFn = fn.glClearDepthfFn;
4889 fn.glClearDepthfFn = Debug_glClearDepthf;
4891 if (!debug_fn.glClearStencilFn) {
4892 debug_fn.glClearStencilFn = fn.glClearStencilFn;
4893 fn.glClearStencilFn = Debug_glClearStencil;
4895 if (!debug_fn.glClientWaitSyncFn) {
4896 debug_fn.glClientWaitSyncFn = fn.glClientWaitSyncFn;
4897 fn.glClientWaitSyncFn = Debug_glClientWaitSync;
4899 if (!debug_fn.glColorMaskFn) {
4900 debug_fn.glColorMaskFn = fn.glColorMaskFn;
4901 fn.glColorMaskFn = Debug_glColorMask;
4903 if (!debug_fn.glCompileShaderFn) {
4904 debug_fn.glCompileShaderFn = fn.glCompileShaderFn;
4905 fn.glCompileShaderFn = Debug_glCompileShader;
4907 if (!debug_fn.glCompressedTexImage2DFn) {
4908 debug_fn.glCompressedTexImage2DFn = fn.glCompressedTexImage2DFn;
4909 fn.glCompressedTexImage2DFn = Debug_glCompressedTexImage2D;
4911 if (!debug_fn.glCompressedTexImage3DFn) {
4912 debug_fn.glCompressedTexImage3DFn = fn.glCompressedTexImage3DFn;
4913 fn.glCompressedTexImage3DFn = Debug_glCompressedTexImage3D;
4915 if (!debug_fn.glCompressedTexSubImage2DFn) {
4916 debug_fn.glCompressedTexSubImage2DFn = fn.glCompressedTexSubImage2DFn;
4917 fn.glCompressedTexSubImage2DFn = Debug_glCompressedTexSubImage2D;
4919 if (!debug_fn.glCopyBufferSubDataFn) {
4920 debug_fn.glCopyBufferSubDataFn = fn.glCopyBufferSubDataFn;
4921 fn.glCopyBufferSubDataFn = Debug_glCopyBufferSubData;
4923 if (!debug_fn.glCopyTexImage2DFn) {
4924 debug_fn.glCopyTexImage2DFn = fn.glCopyTexImage2DFn;
4925 fn.glCopyTexImage2DFn = Debug_glCopyTexImage2D;
4927 if (!debug_fn.glCopyTexSubImage2DFn) {
4928 debug_fn.glCopyTexSubImage2DFn = fn.glCopyTexSubImage2DFn;
4929 fn.glCopyTexSubImage2DFn = Debug_glCopyTexSubImage2D;
4931 if (!debug_fn.glCopyTexSubImage3DFn) {
4932 debug_fn.glCopyTexSubImage3DFn = fn.glCopyTexSubImage3DFn;
4933 fn.glCopyTexSubImage3DFn = Debug_glCopyTexSubImage3D;
4935 if (!debug_fn.glCreateProgramFn) {
4936 debug_fn.glCreateProgramFn = fn.glCreateProgramFn;
4937 fn.glCreateProgramFn = Debug_glCreateProgram;
4939 if (!debug_fn.glCreateShaderFn) {
4940 debug_fn.glCreateShaderFn = fn.glCreateShaderFn;
4941 fn.glCreateShaderFn = Debug_glCreateShader;
4943 if (!debug_fn.glCullFaceFn) {
4944 debug_fn.glCullFaceFn = fn.glCullFaceFn;
4945 fn.glCullFaceFn = Debug_glCullFace;
4947 if (!debug_fn.glDeleteBuffersARBFn) {
4948 debug_fn.glDeleteBuffersARBFn = fn.glDeleteBuffersARBFn;
4949 fn.glDeleteBuffersARBFn = Debug_glDeleteBuffersARB;
4951 if (!debug_fn.glDeleteFencesAPPLEFn) {
4952 debug_fn.glDeleteFencesAPPLEFn = fn.glDeleteFencesAPPLEFn;
4953 fn.glDeleteFencesAPPLEFn = Debug_glDeleteFencesAPPLE;
4955 if (!debug_fn.glDeleteFencesNVFn) {
4956 debug_fn.glDeleteFencesNVFn = fn.glDeleteFencesNVFn;
4957 fn.glDeleteFencesNVFn = Debug_glDeleteFencesNV;
4959 if (!debug_fn.glDeleteFramebuffersEXTFn) {
4960 debug_fn.glDeleteFramebuffersEXTFn = fn.glDeleteFramebuffersEXTFn;
4961 fn.glDeleteFramebuffersEXTFn = Debug_glDeleteFramebuffersEXT;
4963 if (!debug_fn.glDeleteProgramFn) {
4964 debug_fn.glDeleteProgramFn = fn.glDeleteProgramFn;
4965 fn.glDeleteProgramFn = Debug_glDeleteProgram;
4967 if (!debug_fn.glDeleteQueriesFn) {
4968 debug_fn.glDeleteQueriesFn = fn.glDeleteQueriesFn;
4969 fn.glDeleteQueriesFn = Debug_glDeleteQueries;
4971 if (!debug_fn.glDeleteQueriesARBFn) {
4972 debug_fn.glDeleteQueriesARBFn = fn.glDeleteQueriesARBFn;
4973 fn.glDeleteQueriesARBFn = Debug_glDeleteQueriesARB;
4975 if (!debug_fn.glDeleteRenderbuffersEXTFn) {
4976 debug_fn.glDeleteRenderbuffersEXTFn = fn.glDeleteRenderbuffersEXTFn;
4977 fn.glDeleteRenderbuffersEXTFn = Debug_glDeleteRenderbuffersEXT;
4979 if (!debug_fn.glDeleteSamplersFn) {
4980 debug_fn.glDeleteSamplersFn = fn.glDeleteSamplersFn;
4981 fn.glDeleteSamplersFn = Debug_glDeleteSamplers;
4983 if (!debug_fn.glDeleteShaderFn) {
4984 debug_fn.glDeleteShaderFn = fn.glDeleteShaderFn;
4985 fn.glDeleteShaderFn = Debug_glDeleteShader;
4987 if (!debug_fn.glDeleteSyncFn) {
4988 debug_fn.glDeleteSyncFn = fn.glDeleteSyncFn;
4989 fn.glDeleteSyncFn = Debug_glDeleteSync;
4991 if (!debug_fn.glDeleteTexturesFn) {
4992 debug_fn.glDeleteTexturesFn = fn.glDeleteTexturesFn;
4993 fn.glDeleteTexturesFn = Debug_glDeleteTextures;
4995 if (!debug_fn.glDeleteTransformFeedbacksFn) {
4996 debug_fn.glDeleteTransformFeedbacksFn = fn.glDeleteTransformFeedbacksFn;
4997 fn.glDeleteTransformFeedbacksFn = Debug_glDeleteTransformFeedbacks;
4999 if (!debug_fn.glDeleteVertexArraysOESFn) {
5000 debug_fn.glDeleteVertexArraysOESFn = fn.glDeleteVertexArraysOESFn;
5001 fn.glDeleteVertexArraysOESFn = Debug_glDeleteVertexArraysOES;
5003 if (!debug_fn.glDepthFuncFn) {
5004 debug_fn.glDepthFuncFn = fn.glDepthFuncFn;
5005 fn.glDepthFuncFn = Debug_glDepthFunc;
5007 if (!debug_fn.glDepthMaskFn) {
5008 debug_fn.glDepthMaskFn = fn.glDepthMaskFn;
5009 fn.glDepthMaskFn = Debug_glDepthMask;
5011 if (!debug_fn.glDepthRangeFn) {
5012 debug_fn.glDepthRangeFn = fn.glDepthRangeFn;
5013 fn.glDepthRangeFn = Debug_glDepthRange;
5015 if (!debug_fn.glDepthRangefFn) {
5016 debug_fn.glDepthRangefFn = fn.glDepthRangefFn;
5017 fn.glDepthRangefFn = Debug_glDepthRangef;
5019 if (!debug_fn.glDetachShaderFn) {
5020 debug_fn.glDetachShaderFn = fn.glDetachShaderFn;
5021 fn.glDetachShaderFn = Debug_glDetachShader;
5023 if (!debug_fn.glDisableFn) {
5024 debug_fn.glDisableFn = fn.glDisableFn;
5025 fn.glDisableFn = Debug_glDisable;
5027 if (!debug_fn.glDisableVertexAttribArrayFn) {
5028 debug_fn.glDisableVertexAttribArrayFn = fn.glDisableVertexAttribArrayFn;
5029 fn.glDisableVertexAttribArrayFn = Debug_glDisableVertexAttribArray;
5031 if (!debug_fn.glDiscardFramebufferEXTFn) {
5032 debug_fn.glDiscardFramebufferEXTFn = fn.glDiscardFramebufferEXTFn;
5033 fn.glDiscardFramebufferEXTFn = Debug_glDiscardFramebufferEXT;
5035 if (!debug_fn.glDrawArraysFn) {
5036 debug_fn.glDrawArraysFn = fn.glDrawArraysFn;
5037 fn.glDrawArraysFn = Debug_glDrawArrays;
5039 if (!debug_fn.glDrawArraysInstancedANGLEFn) {
5040 debug_fn.glDrawArraysInstancedANGLEFn = fn.glDrawArraysInstancedANGLEFn;
5041 fn.glDrawArraysInstancedANGLEFn = Debug_glDrawArraysInstancedANGLE;
5043 if (!debug_fn.glDrawBufferFn) {
5044 debug_fn.glDrawBufferFn = fn.glDrawBufferFn;
5045 fn.glDrawBufferFn = Debug_glDrawBuffer;
5047 if (!debug_fn.glDrawBuffersARBFn) {
5048 debug_fn.glDrawBuffersARBFn = fn.glDrawBuffersARBFn;
5049 fn.glDrawBuffersARBFn = Debug_glDrawBuffersARB;
5051 if (!debug_fn.glDrawElementsFn) {
5052 debug_fn.glDrawElementsFn = fn.glDrawElementsFn;
5053 fn.glDrawElementsFn = Debug_glDrawElements;
5055 if (!debug_fn.glDrawElementsInstancedANGLEFn) {
5056 debug_fn.glDrawElementsInstancedANGLEFn = fn.glDrawElementsInstancedANGLEFn;
5057 fn.glDrawElementsInstancedANGLEFn = Debug_glDrawElementsInstancedANGLE;
5059 if (!debug_fn.glDrawRangeElementsFn) {
5060 debug_fn.glDrawRangeElementsFn = fn.glDrawRangeElementsFn;
5061 fn.glDrawRangeElementsFn = Debug_glDrawRangeElements;
5063 if (!debug_fn.glEGLImageTargetRenderbufferStorageOESFn) {
5064 debug_fn.glEGLImageTargetRenderbufferStorageOESFn =
5065 fn.glEGLImageTargetRenderbufferStorageOESFn;
5066 fn.glEGLImageTargetRenderbufferStorageOESFn =
5067 Debug_glEGLImageTargetRenderbufferStorageOES;
5069 if (!debug_fn.glEGLImageTargetTexture2DOESFn) {
5070 debug_fn.glEGLImageTargetTexture2DOESFn = fn.glEGLImageTargetTexture2DOESFn;
5071 fn.glEGLImageTargetTexture2DOESFn = Debug_glEGLImageTargetTexture2DOES;
5073 if (!debug_fn.glEnableFn) {
5074 debug_fn.glEnableFn = fn.glEnableFn;
5075 fn.glEnableFn = Debug_glEnable;
5077 if (!debug_fn.glEnableVertexAttribArrayFn) {
5078 debug_fn.glEnableVertexAttribArrayFn = fn.glEnableVertexAttribArrayFn;
5079 fn.glEnableVertexAttribArrayFn = Debug_glEnableVertexAttribArray;
5081 if (!debug_fn.glEndQueryFn) {
5082 debug_fn.glEndQueryFn = fn.glEndQueryFn;
5083 fn.glEndQueryFn = Debug_glEndQuery;
5085 if (!debug_fn.glEndQueryARBFn) {
5086 debug_fn.glEndQueryARBFn = fn.glEndQueryARBFn;
5087 fn.glEndQueryARBFn = Debug_glEndQueryARB;
5089 if (!debug_fn.glEndTransformFeedbackFn) {
5090 debug_fn.glEndTransformFeedbackFn = fn.glEndTransformFeedbackFn;
5091 fn.glEndTransformFeedbackFn = Debug_glEndTransformFeedback;
5093 if (!debug_fn.glFenceSyncFn) {
5094 debug_fn.glFenceSyncFn = fn.glFenceSyncFn;
5095 fn.glFenceSyncFn = Debug_glFenceSync;
5097 if (!debug_fn.glFinishFn) {
5098 debug_fn.glFinishFn = fn.glFinishFn;
5099 fn.glFinishFn = Debug_glFinish;
5101 if (!debug_fn.glFinishFenceAPPLEFn) {
5102 debug_fn.glFinishFenceAPPLEFn = fn.glFinishFenceAPPLEFn;
5103 fn.glFinishFenceAPPLEFn = Debug_glFinishFenceAPPLE;
5105 if (!debug_fn.glFinishFenceNVFn) {
5106 debug_fn.glFinishFenceNVFn = fn.glFinishFenceNVFn;
5107 fn.glFinishFenceNVFn = Debug_glFinishFenceNV;
5109 if (!debug_fn.glFlushFn) {
5110 debug_fn.glFlushFn = fn.glFlushFn;
5111 fn.glFlushFn = Debug_glFlush;
5113 if (!debug_fn.glFlushMappedBufferRangeFn) {
5114 debug_fn.glFlushMappedBufferRangeFn = fn.glFlushMappedBufferRangeFn;
5115 fn.glFlushMappedBufferRangeFn = Debug_glFlushMappedBufferRange;
5117 if (!debug_fn.glFramebufferRenderbufferEXTFn) {
5118 debug_fn.glFramebufferRenderbufferEXTFn = fn.glFramebufferRenderbufferEXTFn;
5119 fn.glFramebufferRenderbufferEXTFn = Debug_glFramebufferRenderbufferEXT;
5121 if (!debug_fn.glFramebufferTexture2DEXTFn) {
5122 debug_fn.glFramebufferTexture2DEXTFn = fn.glFramebufferTexture2DEXTFn;
5123 fn.glFramebufferTexture2DEXTFn = Debug_glFramebufferTexture2DEXT;
5125 if (!debug_fn.glFramebufferTexture2DMultisampleEXTFn) {
5126 debug_fn.glFramebufferTexture2DMultisampleEXTFn =
5127 fn.glFramebufferTexture2DMultisampleEXTFn;
5128 fn.glFramebufferTexture2DMultisampleEXTFn =
5129 Debug_glFramebufferTexture2DMultisampleEXT;
5131 if (!debug_fn.glFramebufferTexture2DMultisampleIMGFn) {
5132 debug_fn.glFramebufferTexture2DMultisampleIMGFn =
5133 fn.glFramebufferTexture2DMultisampleIMGFn;
5134 fn.glFramebufferTexture2DMultisampleIMGFn =
5135 Debug_glFramebufferTexture2DMultisampleIMG;
5137 if (!debug_fn.glFramebufferTextureLayerFn) {
5138 debug_fn.glFramebufferTextureLayerFn = fn.glFramebufferTextureLayerFn;
5139 fn.glFramebufferTextureLayerFn = Debug_glFramebufferTextureLayer;
5141 if (!debug_fn.glFrontFaceFn) {
5142 debug_fn.glFrontFaceFn = fn.glFrontFaceFn;
5143 fn.glFrontFaceFn = Debug_glFrontFace;
5145 if (!debug_fn.glGenBuffersARBFn) {
5146 debug_fn.glGenBuffersARBFn = fn.glGenBuffersARBFn;
5147 fn.glGenBuffersARBFn = Debug_glGenBuffersARB;
5149 if (!debug_fn.glGenerateMipmapEXTFn) {
5150 debug_fn.glGenerateMipmapEXTFn = fn.glGenerateMipmapEXTFn;
5151 fn.glGenerateMipmapEXTFn = Debug_glGenerateMipmapEXT;
5153 if (!debug_fn.glGenFencesAPPLEFn) {
5154 debug_fn.glGenFencesAPPLEFn = fn.glGenFencesAPPLEFn;
5155 fn.glGenFencesAPPLEFn = Debug_glGenFencesAPPLE;
5157 if (!debug_fn.glGenFencesNVFn) {
5158 debug_fn.glGenFencesNVFn = fn.glGenFencesNVFn;
5159 fn.glGenFencesNVFn = Debug_glGenFencesNV;
5161 if (!debug_fn.glGenFramebuffersEXTFn) {
5162 debug_fn.glGenFramebuffersEXTFn = fn.glGenFramebuffersEXTFn;
5163 fn.glGenFramebuffersEXTFn = Debug_glGenFramebuffersEXT;
5165 if (!debug_fn.glGenQueriesFn) {
5166 debug_fn.glGenQueriesFn = fn.glGenQueriesFn;
5167 fn.glGenQueriesFn = Debug_glGenQueries;
5169 if (!debug_fn.glGenQueriesARBFn) {
5170 debug_fn.glGenQueriesARBFn = fn.glGenQueriesARBFn;
5171 fn.glGenQueriesARBFn = Debug_glGenQueriesARB;
5173 if (!debug_fn.glGenRenderbuffersEXTFn) {
5174 debug_fn.glGenRenderbuffersEXTFn = fn.glGenRenderbuffersEXTFn;
5175 fn.glGenRenderbuffersEXTFn = Debug_glGenRenderbuffersEXT;
5177 if (!debug_fn.glGenSamplersFn) {
5178 debug_fn.glGenSamplersFn = fn.glGenSamplersFn;
5179 fn.glGenSamplersFn = Debug_glGenSamplers;
5181 if (!debug_fn.glGenTexturesFn) {
5182 debug_fn.glGenTexturesFn = fn.glGenTexturesFn;
5183 fn.glGenTexturesFn = Debug_glGenTextures;
5185 if (!debug_fn.glGenTransformFeedbacksFn) {
5186 debug_fn.glGenTransformFeedbacksFn = fn.glGenTransformFeedbacksFn;
5187 fn.glGenTransformFeedbacksFn = Debug_glGenTransformFeedbacks;
5189 if (!debug_fn.glGenVertexArraysOESFn) {
5190 debug_fn.glGenVertexArraysOESFn = fn.glGenVertexArraysOESFn;
5191 fn.glGenVertexArraysOESFn = Debug_glGenVertexArraysOES;
5193 if (!debug_fn.glGetActiveAttribFn) {
5194 debug_fn.glGetActiveAttribFn = fn.glGetActiveAttribFn;
5195 fn.glGetActiveAttribFn = Debug_glGetActiveAttrib;
5197 if (!debug_fn.glGetActiveUniformFn) {
5198 debug_fn.glGetActiveUniformFn = fn.glGetActiveUniformFn;
5199 fn.glGetActiveUniformFn = Debug_glGetActiveUniform;
5201 if (!debug_fn.glGetActiveUniformBlockivFn) {
5202 debug_fn.glGetActiveUniformBlockivFn = fn.glGetActiveUniformBlockivFn;
5203 fn.glGetActiveUniformBlockivFn = Debug_glGetActiveUniformBlockiv;
5205 if (!debug_fn.glGetActiveUniformBlockNameFn) {
5206 debug_fn.glGetActiveUniformBlockNameFn = fn.glGetActiveUniformBlockNameFn;
5207 fn.glGetActiveUniformBlockNameFn = Debug_glGetActiveUniformBlockName;
5209 if (!debug_fn.glGetActiveUniformsivFn) {
5210 debug_fn.glGetActiveUniformsivFn = fn.glGetActiveUniformsivFn;
5211 fn.glGetActiveUniformsivFn = Debug_glGetActiveUniformsiv;
5213 if (!debug_fn.glGetAttachedShadersFn) {
5214 debug_fn.glGetAttachedShadersFn = fn.glGetAttachedShadersFn;
5215 fn.glGetAttachedShadersFn = Debug_glGetAttachedShaders;
5217 if (!debug_fn.glGetAttribLocationFn) {
5218 debug_fn.glGetAttribLocationFn = fn.glGetAttribLocationFn;
5219 fn.glGetAttribLocationFn = Debug_glGetAttribLocation;
5221 if (!debug_fn.glGetBooleanvFn) {
5222 debug_fn.glGetBooleanvFn = fn.glGetBooleanvFn;
5223 fn.glGetBooleanvFn = Debug_glGetBooleanv;
5225 if (!debug_fn.glGetBufferParameterivFn) {
5226 debug_fn.glGetBufferParameterivFn = fn.glGetBufferParameterivFn;
5227 fn.glGetBufferParameterivFn = Debug_glGetBufferParameteriv;
5229 if (!debug_fn.glGetErrorFn) {
5230 debug_fn.glGetErrorFn = fn.glGetErrorFn;
5231 fn.glGetErrorFn = Debug_glGetError;
5233 if (!debug_fn.glGetFenceivNVFn) {
5234 debug_fn.glGetFenceivNVFn = fn.glGetFenceivNVFn;
5235 fn.glGetFenceivNVFn = Debug_glGetFenceivNV;
5237 if (!debug_fn.glGetFloatvFn) {
5238 debug_fn.glGetFloatvFn = fn.glGetFloatvFn;
5239 fn.glGetFloatvFn = Debug_glGetFloatv;
5241 if (!debug_fn.glGetFragDataLocationFn) {
5242 debug_fn.glGetFragDataLocationFn = fn.glGetFragDataLocationFn;
5243 fn.glGetFragDataLocationFn = Debug_glGetFragDataLocation;
5245 if (!debug_fn.glGetFramebufferAttachmentParameterivEXTFn) {
5246 debug_fn.glGetFramebufferAttachmentParameterivEXTFn =
5247 fn.glGetFramebufferAttachmentParameterivEXTFn;
5248 fn.glGetFramebufferAttachmentParameterivEXTFn =
5249 Debug_glGetFramebufferAttachmentParameterivEXT;
5251 if (!debug_fn.glGetGraphicsResetStatusARBFn) {
5252 debug_fn.glGetGraphicsResetStatusARBFn = fn.glGetGraphicsResetStatusARBFn;
5253 fn.glGetGraphicsResetStatusARBFn = Debug_glGetGraphicsResetStatusARB;
5255 if (!debug_fn.glGetInteger64i_vFn) {
5256 debug_fn.glGetInteger64i_vFn = fn.glGetInteger64i_vFn;
5257 fn.glGetInteger64i_vFn = Debug_glGetInteger64i_v;
5259 if (!debug_fn.glGetInteger64vFn) {
5260 debug_fn.glGetInteger64vFn = fn.glGetInteger64vFn;
5261 fn.glGetInteger64vFn = Debug_glGetInteger64v;
5263 if (!debug_fn.glGetIntegeri_vFn) {
5264 debug_fn.glGetIntegeri_vFn = fn.glGetIntegeri_vFn;
5265 fn.glGetIntegeri_vFn = Debug_glGetIntegeri_v;
5267 if (!debug_fn.glGetIntegervFn) {
5268 debug_fn.glGetIntegervFn = fn.glGetIntegervFn;
5269 fn.glGetIntegervFn = Debug_glGetIntegerv;
5271 if (!debug_fn.glGetInternalformativFn) {
5272 debug_fn.glGetInternalformativFn = fn.glGetInternalformativFn;
5273 fn.glGetInternalformativFn = Debug_glGetInternalformativ;
5275 if (!debug_fn.glGetProgramBinaryFn) {
5276 debug_fn.glGetProgramBinaryFn = fn.glGetProgramBinaryFn;
5277 fn.glGetProgramBinaryFn = Debug_glGetProgramBinary;
5279 if (!debug_fn.glGetProgramInfoLogFn) {
5280 debug_fn.glGetProgramInfoLogFn = fn.glGetProgramInfoLogFn;
5281 fn.glGetProgramInfoLogFn = Debug_glGetProgramInfoLog;
5283 if (!debug_fn.glGetProgramivFn) {
5284 debug_fn.glGetProgramivFn = fn.glGetProgramivFn;
5285 fn.glGetProgramivFn = Debug_glGetProgramiv;
5287 if (!debug_fn.glGetProgramResourceLocationFn) {
5288 debug_fn.glGetProgramResourceLocationFn = fn.glGetProgramResourceLocationFn;
5289 fn.glGetProgramResourceLocationFn = Debug_glGetProgramResourceLocation;
5291 if (!debug_fn.glGetQueryivFn) {
5292 debug_fn.glGetQueryivFn = fn.glGetQueryivFn;
5293 fn.glGetQueryivFn = Debug_glGetQueryiv;
5295 if (!debug_fn.glGetQueryivARBFn) {
5296 debug_fn.glGetQueryivARBFn = fn.glGetQueryivARBFn;
5297 fn.glGetQueryivARBFn = Debug_glGetQueryivARB;
5299 if (!debug_fn.glGetQueryObjecti64vFn) {
5300 debug_fn.glGetQueryObjecti64vFn = fn.glGetQueryObjecti64vFn;
5301 fn.glGetQueryObjecti64vFn = Debug_glGetQueryObjecti64v;
5303 if (!debug_fn.glGetQueryObjectivFn) {
5304 debug_fn.glGetQueryObjectivFn = fn.glGetQueryObjectivFn;
5305 fn.glGetQueryObjectivFn = Debug_glGetQueryObjectiv;
5307 if (!debug_fn.glGetQueryObjectivARBFn) {
5308 debug_fn.glGetQueryObjectivARBFn = fn.glGetQueryObjectivARBFn;
5309 fn.glGetQueryObjectivARBFn = Debug_glGetQueryObjectivARB;
5311 if (!debug_fn.glGetQueryObjectui64vFn) {
5312 debug_fn.glGetQueryObjectui64vFn = fn.glGetQueryObjectui64vFn;
5313 fn.glGetQueryObjectui64vFn = Debug_glGetQueryObjectui64v;
5315 if (!debug_fn.glGetQueryObjectuivFn) {
5316 debug_fn.glGetQueryObjectuivFn = fn.glGetQueryObjectuivFn;
5317 fn.glGetQueryObjectuivFn = Debug_glGetQueryObjectuiv;
5319 if (!debug_fn.glGetQueryObjectuivARBFn) {
5320 debug_fn.glGetQueryObjectuivARBFn = fn.glGetQueryObjectuivARBFn;
5321 fn.glGetQueryObjectuivARBFn = Debug_glGetQueryObjectuivARB;
5323 if (!debug_fn.glGetRenderbufferParameterivEXTFn) {
5324 debug_fn.glGetRenderbufferParameterivEXTFn =
5325 fn.glGetRenderbufferParameterivEXTFn;
5326 fn.glGetRenderbufferParameterivEXTFn =
5327 Debug_glGetRenderbufferParameterivEXT;
5329 if (!debug_fn.glGetSamplerParameterfvFn) {
5330 debug_fn.glGetSamplerParameterfvFn = fn.glGetSamplerParameterfvFn;
5331 fn.glGetSamplerParameterfvFn = Debug_glGetSamplerParameterfv;
5333 if (!debug_fn.glGetSamplerParameterivFn) {
5334 debug_fn.glGetSamplerParameterivFn = fn.glGetSamplerParameterivFn;
5335 fn.glGetSamplerParameterivFn = Debug_glGetSamplerParameteriv;
5337 if (!debug_fn.glGetShaderInfoLogFn) {
5338 debug_fn.glGetShaderInfoLogFn = fn.glGetShaderInfoLogFn;
5339 fn.glGetShaderInfoLogFn = Debug_glGetShaderInfoLog;
5341 if (!debug_fn.glGetShaderivFn) {
5342 debug_fn.glGetShaderivFn = fn.glGetShaderivFn;
5343 fn.glGetShaderivFn = Debug_glGetShaderiv;
5345 if (!debug_fn.glGetShaderPrecisionFormatFn) {
5346 debug_fn.glGetShaderPrecisionFormatFn = fn.glGetShaderPrecisionFormatFn;
5347 fn.glGetShaderPrecisionFormatFn = Debug_glGetShaderPrecisionFormat;
5349 if (!debug_fn.glGetShaderSourceFn) {
5350 debug_fn.glGetShaderSourceFn = fn.glGetShaderSourceFn;
5351 fn.glGetShaderSourceFn = Debug_glGetShaderSource;
5353 if (!debug_fn.glGetStringFn) {
5354 debug_fn.glGetStringFn = fn.glGetStringFn;
5355 fn.glGetStringFn = Debug_glGetString;
5357 if (!debug_fn.glGetStringiFn) {
5358 debug_fn.glGetStringiFn = fn.glGetStringiFn;
5359 fn.glGetStringiFn = Debug_glGetStringi;
5361 if (!debug_fn.glGetSyncivFn) {
5362 debug_fn.glGetSyncivFn = fn.glGetSyncivFn;
5363 fn.glGetSyncivFn = Debug_glGetSynciv;
5365 if (!debug_fn.glGetTexLevelParameterfvFn) {
5366 debug_fn.glGetTexLevelParameterfvFn = fn.glGetTexLevelParameterfvFn;
5367 fn.glGetTexLevelParameterfvFn = Debug_glGetTexLevelParameterfv;
5369 if (!debug_fn.glGetTexLevelParameterivFn) {
5370 debug_fn.glGetTexLevelParameterivFn = fn.glGetTexLevelParameterivFn;
5371 fn.glGetTexLevelParameterivFn = Debug_glGetTexLevelParameteriv;
5373 if (!debug_fn.glGetTexParameterfvFn) {
5374 debug_fn.glGetTexParameterfvFn = fn.glGetTexParameterfvFn;
5375 fn.glGetTexParameterfvFn = Debug_glGetTexParameterfv;
5377 if (!debug_fn.glGetTexParameterivFn) {
5378 debug_fn.glGetTexParameterivFn = fn.glGetTexParameterivFn;
5379 fn.glGetTexParameterivFn = Debug_glGetTexParameteriv;
5381 if (!debug_fn.glGetTransformFeedbackVaryingFn) {
5382 debug_fn.glGetTransformFeedbackVaryingFn =
5383 fn.glGetTransformFeedbackVaryingFn;
5384 fn.glGetTransformFeedbackVaryingFn = Debug_glGetTransformFeedbackVarying;
5386 if (!debug_fn.glGetTranslatedShaderSourceANGLEFn) {
5387 debug_fn.glGetTranslatedShaderSourceANGLEFn =
5388 fn.glGetTranslatedShaderSourceANGLEFn;
5389 fn.glGetTranslatedShaderSourceANGLEFn =
5390 Debug_glGetTranslatedShaderSourceANGLE;
5392 if (!debug_fn.glGetUniformBlockIndexFn) {
5393 debug_fn.glGetUniformBlockIndexFn = fn.glGetUniformBlockIndexFn;
5394 fn.glGetUniformBlockIndexFn = Debug_glGetUniformBlockIndex;
5396 if (!debug_fn.glGetUniformfvFn) {
5397 debug_fn.glGetUniformfvFn = fn.glGetUniformfvFn;
5398 fn.glGetUniformfvFn = Debug_glGetUniformfv;
5400 if (!debug_fn.glGetUniformIndicesFn) {
5401 debug_fn.glGetUniformIndicesFn = fn.glGetUniformIndicesFn;
5402 fn.glGetUniformIndicesFn = Debug_glGetUniformIndices;
5404 if (!debug_fn.glGetUniformivFn) {
5405 debug_fn.glGetUniformivFn = fn.glGetUniformivFn;
5406 fn.glGetUniformivFn = Debug_glGetUniformiv;
5408 if (!debug_fn.glGetUniformLocationFn) {
5409 debug_fn.glGetUniformLocationFn = fn.glGetUniformLocationFn;
5410 fn.glGetUniformLocationFn = Debug_glGetUniformLocation;
5412 if (!debug_fn.glGetVertexAttribfvFn) {
5413 debug_fn.glGetVertexAttribfvFn = fn.glGetVertexAttribfvFn;
5414 fn.glGetVertexAttribfvFn = Debug_glGetVertexAttribfv;
5416 if (!debug_fn.glGetVertexAttribivFn) {
5417 debug_fn.glGetVertexAttribivFn = fn.glGetVertexAttribivFn;
5418 fn.glGetVertexAttribivFn = Debug_glGetVertexAttribiv;
5420 if (!debug_fn.glGetVertexAttribPointervFn) {
5421 debug_fn.glGetVertexAttribPointervFn = fn.glGetVertexAttribPointervFn;
5422 fn.glGetVertexAttribPointervFn = Debug_glGetVertexAttribPointerv;
5424 if (!debug_fn.glHintFn) {
5425 debug_fn.glHintFn = fn.glHintFn;
5426 fn.glHintFn = Debug_glHint;
5428 if (!debug_fn.glInsertEventMarkerEXTFn) {
5429 debug_fn.glInsertEventMarkerEXTFn = fn.glInsertEventMarkerEXTFn;
5430 fn.glInsertEventMarkerEXTFn = Debug_glInsertEventMarkerEXT;
5432 if (!debug_fn.glInvalidateFramebufferFn) {
5433 debug_fn.glInvalidateFramebufferFn = fn.glInvalidateFramebufferFn;
5434 fn.glInvalidateFramebufferFn = Debug_glInvalidateFramebuffer;
5436 if (!debug_fn.glInvalidateSubFramebufferFn) {
5437 debug_fn.glInvalidateSubFramebufferFn = fn.glInvalidateSubFramebufferFn;
5438 fn.glInvalidateSubFramebufferFn = Debug_glInvalidateSubFramebuffer;
5440 if (!debug_fn.glIsBufferFn) {
5441 debug_fn.glIsBufferFn = fn.glIsBufferFn;
5442 fn.glIsBufferFn = Debug_glIsBuffer;
5444 if (!debug_fn.glIsEnabledFn) {
5445 debug_fn.glIsEnabledFn = fn.glIsEnabledFn;
5446 fn.glIsEnabledFn = Debug_glIsEnabled;
5448 if (!debug_fn.glIsFenceAPPLEFn) {
5449 debug_fn.glIsFenceAPPLEFn = fn.glIsFenceAPPLEFn;
5450 fn.glIsFenceAPPLEFn = Debug_glIsFenceAPPLE;
5452 if (!debug_fn.glIsFenceNVFn) {
5453 debug_fn.glIsFenceNVFn = fn.glIsFenceNVFn;
5454 fn.glIsFenceNVFn = Debug_glIsFenceNV;
5456 if (!debug_fn.glIsFramebufferEXTFn) {
5457 debug_fn.glIsFramebufferEXTFn = fn.glIsFramebufferEXTFn;
5458 fn.glIsFramebufferEXTFn = Debug_glIsFramebufferEXT;
5460 if (!debug_fn.glIsProgramFn) {
5461 debug_fn.glIsProgramFn = fn.glIsProgramFn;
5462 fn.glIsProgramFn = Debug_glIsProgram;
5464 if (!debug_fn.glIsQueryFn) {
5465 debug_fn.glIsQueryFn = fn.glIsQueryFn;
5466 fn.glIsQueryFn = Debug_glIsQuery;
5468 if (!debug_fn.glIsQueryARBFn) {
5469 debug_fn.glIsQueryARBFn = fn.glIsQueryARBFn;
5470 fn.glIsQueryARBFn = Debug_glIsQueryARB;
5472 if (!debug_fn.glIsRenderbufferEXTFn) {
5473 debug_fn.glIsRenderbufferEXTFn = fn.glIsRenderbufferEXTFn;
5474 fn.glIsRenderbufferEXTFn = Debug_glIsRenderbufferEXT;
5476 if (!debug_fn.glIsSamplerFn) {
5477 debug_fn.glIsSamplerFn = fn.glIsSamplerFn;
5478 fn.glIsSamplerFn = Debug_glIsSampler;
5480 if (!debug_fn.glIsShaderFn) {
5481 debug_fn.glIsShaderFn = fn.glIsShaderFn;
5482 fn.glIsShaderFn = Debug_glIsShader;
5484 if (!debug_fn.glIsSyncFn) {
5485 debug_fn.glIsSyncFn = fn.glIsSyncFn;
5486 fn.glIsSyncFn = Debug_glIsSync;
5488 if (!debug_fn.glIsTextureFn) {
5489 debug_fn.glIsTextureFn = fn.glIsTextureFn;
5490 fn.glIsTextureFn = Debug_glIsTexture;
5492 if (!debug_fn.glIsTransformFeedbackFn) {
5493 debug_fn.glIsTransformFeedbackFn = fn.glIsTransformFeedbackFn;
5494 fn.glIsTransformFeedbackFn = Debug_glIsTransformFeedback;
5496 if (!debug_fn.glIsVertexArrayOESFn) {
5497 debug_fn.glIsVertexArrayOESFn = fn.glIsVertexArrayOESFn;
5498 fn.glIsVertexArrayOESFn = Debug_glIsVertexArrayOES;
5500 if (!debug_fn.glLineWidthFn) {
5501 debug_fn.glLineWidthFn = fn.glLineWidthFn;
5502 fn.glLineWidthFn = Debug_glLineWidth;
5504 if (!debug_fn.glLinkProgramFn) {
5505 debug_fn.glLinkProgramFn = fn.glLinkProgramFn;
5506 fn.glLinkProgramFn = Debug_glLinkProgram;
5508 if (!debug_fn.glMapBufferFn) {
5509 debug_fn.glMapBufferFn = fn.glMapBufferFn;
5510 fn.glMapBufferFn = Debug_glMapBuffer;
5512 if (!debug_fn.glMapBufferRangeFn) {
5513 debug_fn.glMapBufferRangeFn = fn.glMapBufferRangeFn;
5514 fn.glMapBufferRangeFn = Debug_glMapBufferRange;
5516 if (!debug_fn.glMatrixLoadfEXTFn) {
5517 debug_fn.glMatrixLoadfEXTFn = fn.glMatrixLoadfEXTFn;
5518 fn.glMatrixLoadfEXTFn = Debug_glMatrixLoadfEXT;
5520 if (!debug_fn.glMatrixLoadIdentityEXTFn) {
5521 debug_fn.glMatrixLoadIdentityEXTFn = fn.glMatrixLoadIdentityEXTFn;
5522 fn.glMatrixLoadIdentityEXTFn = Debug_glMatrixLoadIdentityEXT;
5524 if (!debug_fn.glPauseTransformFeedbackFn) {
5525 debug_fn.glPauseTransformFeedbackFn = fn.glPauseTransformFeedbackFn;
5526 fn.glPauseTransformFeedbackFn = Debug_glPauseTransformFeedback;
5528 if (!debug_fn.glPixelStoreiFn) {
5529 debug_fn.glPixelStoreiFn = fn.glPixelStoreiFn;
5530 fn.glPixelStoreiFn = Debug_glPixelStorei;
5532 if (!debug_fn.glPointParameteriFn) {
5533 debug_fn.glPointParameteriFn = fn.glPointParameteriFn;
5534 fn.glPointParameteriFn = Debug_glPointParameteri;
5536 if (!debug_fn.glPolygonOffsetFn) {
5537 debug_fn.glPolygonOffsetFn = fn.glPolygonOffsetFn;
5538 fn.glPolygonOffsetFn = Debug_glPolygonOffset;
5540 if (!debug_fn.glPopGroupMarkerEXTFn) {
5541 debug_fn.glPopGroupMarkerEXTFn = fn.glPopGroupMarkerEXTFn;
5542 fn.glPopGroupMarkerEXTFn = Debug_glPopGroupMarkerEXT;
5544 if (!debug_fn.glProgramBinaryFn) {
5545 debug_fn.glProgramBinaryFn = fn.glProgramBinaryFn;
5546 fn.glProgramBinaryFn = Debug_glProgramBinary;
5548 if (!debug_fn.glProgramParameteriFn) {
5549 debug_fn.glProgramParameteriFn = fn.glProgramParameteriFn;
5550 fn.glProgramParameteriFn = Debug_glProgramParameteri;
5552 if (!debug_fn.glPushGroupMarkerEXTFn) {
5553 debug_fn.glPushGroupMarkerEXTFn = fn.glPushGroupMarkerEXTFn;
5554 fn.glPushGroupMarkerEXTFn = Debug_glPushGroupMarkerEXT;
5556 if (!debug_fn.glQueryCounterFn) {
5557 debug_fn.glQueryCounterFn = fn.glQueryCounterFn;
5558 fn.glQueryCounterFn = Debug_glQueryCounter;
5560 if (!debug_fn.glReadBufferFn) {
5561 debug_fn.glReadBufferFn = fn.glReadBufferFn;
5562 fn.glReadBufferFn = Debug_glReadBuffer;
5564 if (!debug_fn.glReadPixelsFn) {
5565 debug_fn.glReadPixelsFn = fn.glReadPixelsFn;
5566 fn.glReadPixelsFn = Debug_glReadPixels;
5568 if (!debug_fn.glReleaseShaderCompilerFn) {
5569 debug_fn.glReleaseShaderCompilerFn = fn.glReleaseShaderCompilerFn;
5570 fn.glReleaseShaderCompilerFn = Debug_glReleaseShaderCompiler;
5572 if (!debug_fn.glRenderbufferStorageEXTFn) {
5573 debug_fn.glRenderbufferStorageEXTFn = fn.glRenderbufferStorageEXTFn;
5574 fn.glRenderbufferStorageEXTFn = Debug_glRenderbufferStorageEXT;
5576 if (!debug_fn.glRenderbufferStorageMultisampleFn) {
5577 debug_fn.glRenderbufferStorageMultisampleFn =
5578 fn.glRenderbufferStorageMultisampleFn;
5579 fn.glRenderbufferStorageMultisampleFn =
5580 Debug_glRenderbufferStorageMultisample;
5582 if (!debug_fn.glRenderbufferStorageMultisampleANGLEFn) {
5583 debug_fn.glRenderbufferStorageMultisampleANGLEFn =
5584 fn.glRenderbufferStorageMultisampleANGLEFn;
5585 fn.glRenderbufferStorageMultisampleANGLEFn =
5586 Debug_glRenderbufferStorageMultisampleANGLE;
5588 if (!debug_fn.glRenderbufferStorageMultisampleEXTFn) {
5589 debug_fn.glRenderbufferStorageMultisampleEXTFn =
5590 fn.glRenderbufferStorageMultisampleEXTFn;
5591 fn.glRenderbufferStorageMultisampleEXTFn =
5592 Debug_glRenderbufferStorageMultisampleEXT;
5594 if (!debug_fn.glRenderbufferStorageMultisampleIMGFn) {
5595 debug_fn.glRenderbufferStorageMultisampleIMGFn =
5596 fn.glRenderbufferStorageMultisampleIMGFn;
5597 fn.glRenderbufferStorageMultisampleIMGFn =
5598 Debug_glRenderbufferStorageMultisampleIMG;
5600 if (!debug_fn.glResumeTransformFeedbackFn) {
5601 debug_fn.glResumeTransformFeedbackFn = fn.glResumeTransformFeedbackFn;
5602 fn.glResumeTransformFeedbackFn = Debug_glResumeTransformFeedback;
5604 if (!debug_fn.glSampleCoverageFn) {
5605 debug_fn.glSampleCoverageFn = fn.glSampleCoverageFn;
5606 fn.glSampleCoverageFn = Debug_glSampleCoverage;
5608 if (!debug_fn.glSamplerParameterfFn) {
5609 debug_fn.glSamplerParameterfFn = fn.glSamplerParameterfFn;
5610 fn.glSamplerParameterfFn = Debug_glSamplerParameterf;
5612 if (!debug_fn.glSamplerParameterfvFn) {
5613 debug_fn.glSamplerParameterfvFn = fn.glSamplerParameterfvFn;
5614 fn.glSamplerParameterfvFn = Debug_glSamplerParameterfv;
5616 if (!debug_fn.glSamplerParameteriFn) {
5617 debug_fn.glSamplerParameteriFn = fn.glSamplerParameteriFn;
5618 fn.glSamplerParameteriFn = Debug_glSamplerParameteri;
5620 if (!debug_fn.glSamplerParameterivFn) {
5621 debug_fn.glSamplerParameterivFn = fn.glSamplerParameterivFn;
5622 fn.glSamplerParameterivFn = Debug_glSamplerParameteriv;
5624 if (!debug_fn.glScissorFn) {
5625 debug_fn.glScissorFn = fn.glScissorFn;
5626 fn.glScissorFn = Debug_glScissor;
5628 if (!debug_fn.glSetFenceAPPLEFn) {
5629 debug_fn.glSetFenceAPPLEFn = fn.glSetFenceAPPLEFn;
5630 fn.glSetFenceAPPLEFn = Debug_glSetFenceAPPLE;
5632 if (!debug_fn.glSetFenceNVFn) {
5633 debug_fn.glSetFenceNVFn = fn.glSetFenceNVFn;
5634 fn.glSetFenceNVFn = Debug_glSetFenceNV;
5636 if (!debug_fn.glShaderBinaryFn) {
5637 debug_fn.glShaderBinaryFn = fn.glShaderBinaryFn;
5638 fn.glShaderBinaryFn = Debug_glShaderBinary;
5640 if (!debug_fn.glShaderSourceFn) {
5641 debug_fn.glShaderSourceFn = fn.glShaderSourceFn;
5642 fn.glShaderSourceFn = Debug_glShaderSource;
5644 if (!debug_fn.glStencilFuncFn) {
5645 debug_fn.glStencilFuncFn = fn.glStencilFuncFn;
5646 fn.glStencilFuncFn = Debug_glStencilFunc;
5648 if (!debug_fn.glStencilFuncSeparateFn) {
5649 debug_fn.glStencilFuncSeparateFn = fn.glStencilFuncSeparateFn;
5650 fn.glStencilFuncSeparateFn = Debug_glStencilFuncSeparate;
5652 if (!debug_fn.glStencilMaskFn) {
5653 debug_fn.glStencilMaskFn = fn.glStencilMaskFn;
5654 fn.glStencilMaskFn = Debug_glStencilMask;
5656 if (!debug_fn.glStencilMaskSeparateFn) {
5657 debug_fn.glStencilMaskSeparateFn = fn.glStencilMaskSeparateFn;
5658 fn.glStencilMaskSeparateFn = Debug_glStencilMaskSeparate;
5660 if (!debug_fn.glStencilOpFn) {
5661 debug_fn.glStencilOpFn = fn.glStencilOpFn;
5662 fn.glStencilOpFn = Debug_glStencilOp;
5664 if (!debug_fn.glStencilOpSeparateFn) {
5665 debug_fn.glStencilOpSeparateFn = fn.glStencilOpSeparateFn;
5666 fn.glStencilOpSeparateFn = Debug_glStencilOpSeparate;
5668 if (!debug_fn.glTestFenceAPPLEFn) {
5669 debug_fn.glTestFenceAPPLEFn = fn.glTestFenceAPPLEFn;
5670 fn.glTestFenceAPPLEFn = Debug_glTestFenceAPPLE;
5672 if (!debug_fn.glTestFenceNVFn) {
5673 debug_fn.glTestFenceNVFn = fn.glTestFenceNVFn;
5674 fn.glTestFenceNVFn = Debug_glTestFenceNV;
5676 if (!debug_fn.glTexImage2DFn) {
5677 debug_fn.glTexImage2DFn = fn.glTexImage2DFn;
5678 fn.glTexImage2DFn = Debug_glTexImage2D;
5680 if (!debug_fn.glTexImage3DFn) {
5681 debug_fn.glTexImage3DFn = fn.glTexImage3DFn;
5682 fn.glTexImage3DFn = Debug_glTexImage3D;
5684 if (!debug_fn.glTexParameterfFn) {
5685 debug_fn.glTexParameterfFn = fn.glTexParameterfFn;
5686 fn.glTexParameterfFn = Debug_glTexParameterf;
5688 if (!debug_fn.glTexParameterfvFn) {
5689 debug_fn.glTexParameterfvFn = fn.glTexParameterfvFn;
5690 fn.glTexParameterfvFn = Debug_glTexParameterfv;
5692 if (!debug_fn.glTexParameteriFn) {
5693 debug_fn.glTexParameteriFn = fn.glTexParameteriFn;
5694 fn.glTexParameteriFn = Debug_glTexParameteri;
5696 if (!debug_fn.glTexParameterivFn) {
5697 debug_fn.glTexParameterivFn = fn.glTexParameterivFn;
5698 fn.glTexParameterivFn = Debug_glTexParameteriv;
5700 if (!debug_fn.glTexStorage2DEXTFn) {
5701 debug_fn.glTexStorage2DEXTFn = fn.glTexStorage2DEXTFn;
5702 fn.glTexStorage2DEXTFn = Debug_glTexStorage2DEXT;
5704 if (!debug_fn.glTexStorage3DFn) {
5705 debug_fn.glTexStorage3DFn = fn.glTexStorage3DFn;
5706 fn.glTexStorage3DFn = Debug_glTexStorage3D;
5708 if (!debug_fn.glTexSubImage2DFn) {
5709 debug_fn.glTexSubImage2DFn = fn.glTexSubImage2DFn;
5710 fn.glTexSubImage2DFn = Debug_glTexSubImage2D;
5712 if (!debug_fn.glTransformFeedbackVaryingsFn) {
5713 debug_fn.glTransformFeedbackVaryingsFn = fn.glTransformFeedbackVaryingsFn;
5714 fn.glTransformFeedbackVaryingsFn = Debug_glTransformFeedbackVaryings;
5716 if (!debug_fn.glUniform1fFn) {
5717 debug_fn.glUniform1fFn = fn.glUniform1fFn;
5718 fn.glUniform1fFn = Debug_glUniform1f;
5720 if (!debug_fn.glUniform1fvFn) {
5721 debug_fn.glUniform1fvFn = fn.glUniform1fvFn;
5722 fn.glUniform1fvFn = Debug_glUniform1fv;
5724 if (!debug_fn.glUniform1iFn) {
5725 debug_fn.glUniform1iFn = fn.glUniform1iFn;
5726 fn.glUniform1iFn = Debug_glUniform1i;
5728 if (!debug_fn.glUniform1ivFn) {
5729 debug_fn.glUniform1ivFn = fn.glUniform1ivFn;
5730 fn.glUniform1ivFn = Debug_glUniform1iv;
5732 if (!debug_fn.glUniform1uiFn) {
5733 debug_fn.glUniform1uiFn = fn.glUniform1uiFn;
5734 fn.glUniform1uiFn = Debug_glUniform1ui;
5736 if (!debug_fn.glUniform1uivFn) {
5737 debug_fn.glUniform1uivFn = fn.glUniform1uivFn;
5738 fn.glUniform1uivFn = Debug_glUniform1uiv;
5740 if (!debug_fn.glUniform2fFn) {
5741 debug_fn.glUniform2fFn = fn.glUniform2fFn;
5742 fn.glUniform2fFn = Debug_glUniform2f;
5744 if (!debug_fn.glUniform2fvFn) {
5745 debug_fn.glUniform2fvFn = fn.glUniform2fvFn;
5746 fn.glUniform2fvFn = Debug_glUniform2fv;
5748 if (!debug_fn.glUniform2iFn) {
5749 debug_fn.glUniform2iFn = fn.glUniform2iFn;
5750 fn.glUniform2iFn = Debug_glUniform2i;
5752 if (!debug_fn.glUniform2ivFn) {
5753 debug_fn.glUniform2ivFn = fn.glUniform2ivFn;
5754 fn.glUniform2ivFn = Debug_glUniform2iv;
5756 if (!debug_fn.glUniform2uiFn) {
5757 debug_fn.glUniform2uiFn = fn.glUniform2uiFn;
5758 fn.glUniform2uiFn = Debug_glUniform2ui;
5760 if (!debug_fn.glUniform2uivFn) {
5761 debug_fn.glUniform2uivFn = fn.glUniform2uivFn;
5762 fn.glUniform2uivFn = Debug_glUniform2uiv;
5764 if (!debug_fn.glUniform3fFn) {
5765 debug_fn.glUniform3fFn = fn.glUniform3fFn;
5766 fn.glUniform3fFn = Debug_glUniform3f;
5768 if (!debug_fn.glUniform3fvFn) {
5769 debug_fn.glUniform3fvFn = fn.glUniform3fvFn;
5770 fn.glUniform3fvFn = Debug_glUniform3fv;
5772 if (!debug_fn.glUniform3iFn) {
5773 debug_fn.glUniform3iFn = fn.glUniform3iFn;
5774 fn.glUniform3iFn = Debug_glUniform3i;
5776 if (!debug_fn.glUniform3ivFn) {
5777 debug_fn.glUniform3ivFn = fn.glUniform3ivFn;
5778 fn.glUniform3ivFn = Debug_glUniform3iv;
5780 if (!debug_fn.glUniform3uiFn) {
5781 debug_fn.glUniform3uiFn = fn.glUniform3uiFn;
5782 fn.glUniform3uiFn = Debug_glUniform3ui;
5784 if (!debug_fn.glUniform3uivFn) {
5785 debug_fn.glUniform3uivFn = fn.glUniform3uivFn;
5786 fn.glUniform3uivFn = Debug_glUniform3uiv;
5788 if (!debug_fn.glUniform4fFn) {
5789 debug_fn.glUniform4fFn = fn.glUniform4fFn;
5790 fn.glUniform4fFn = Debug_glUniform4f;
5792 if (!debug_fn.glUniform4fvFn) {
5793 debug_fn.glUniform4fvFn = fn.glUniform4fvFn;
5794 fn.glUniform4fvFn = Debug_glUniform4fv;
5796 if (!debug_fn.glUniform4iFn) {
5797 debug_fn.glUniform4iFn = fn.glUniform4iFn;
5798 fn.glUniform4iFn = Debug_glUniform4i;
5800 if (!debug_fn.glUniform4ivFn) {
5801 debug_fn.glUniform4ivFn = fn.glUniform4ivFn;
5802 fn.glUniform4ivFn = Debug_glUniform4iv;
5804 if (!debug_fn.glUniform4uiFn) {
5805 debug_fn.glUniform4uiFn = fn.glUniform4uiFn;
5806 fn.glUniform4uiFn = Debug_glUniform4ui;
5808 if (!debug_fn.glUniform4uivFn) {
5809 debug_fn.glUniform4uivFn = fn.glUniform4uivFn;
5810 fn.glUniform4uivFn = Debug_glUniform4uiv;
5812 if (!debug_fn.glUniformBlockBindingFn) {
5813 debug_fn.glUniformBlockBindingFn = fn.glUniformBlockBindingFn;
5814 fn.glUniformBlockBindingFn = Debug_glUniformBlockBinding;
5816 if (!debug_fn.glUniformMatrix2fvFn) {
5817 debug_fn.glUniformMatrix2fvFn = fn.glUniformMatrix2fvFn;
5818 fn.glUniformMatrix2fvFn = Debug_glUniformMatrix2fv;
5820 if (!debug_fn.glUniformMatrix2x3fvFn) {
5821 debug_fn.glUniformMatrix2x3fvFn = fn.glUniformMatrix2x3fvFn;
5822 fn.glUniformMatrix2x3fvFn = Debug_glUniformMatrix2x3fv;
5824 if (!debug_fn.glUniformMatrix2x4fvFn) {
5825 debug_fn.glUniformMatrix2x4fvFn = fn.glUniformMatrix2x4fvFn;
5826 fn.glUniformMatrix2x4fvFn = Debug_glUniformMatrix2x4fv;
5828 if (!debug_fn.glUniformMatrix3fvFn) {
5829 debug_fn.glUniformMatrix3fvFn = fn.glUniformMatrix3fvFn;
5830 fn.glUniformMatrix3fvFn = Debug_glUniformMatrix3fv;
5832 if (!debug_fn.glUniformMatrix3x2fvFn) {
5833 debug_fn.glUniformMatrix3x2fvFn = fn.glUniformMatrix3x2fvFn;
5834 fn.glUniformMatrix3x2fvFn = Debug_glUniformMatrix3x2fv;
5836 if (!debug_fn.glUniformMatrix3x4fvFn) {
5837 debug_fn.glUniformMatrix3x4fvFn = fn.glUniformMatrix3x4fvFn;
5838 fn.glUniformMatrix3x4fvFn = Debug_glUniformMatrix3x4fv;
5840 if (!debug_fn.glUniformMatrix4fvFn) {
5841 debug_fn.glUniformMatrix4fvFn = fn.glUniformMatrix4fvFn;
5842 fn.glUniformMatrix4fvFn = Debug_glUniformMatrix4fv;
5844 if (!debug_fn.glUniformMatrix4x2fvFn) {
5845 debug_fn.glUniformMatrix4x2fvFn = fn.glUniformMatrix4x2fvFn;
5846 fn.glUniformMatrix4x2fvFn = Debug_glUniformMatrix4x2fv;
5848 if (!debug_fn.glUniformMatrix4x3fvFn) {
5849 debug_fn.glUniformMatrix4x3fvFn = fn.glUniformMatrix4x3fvFn;
5850 fn.glUniformMatrix4x3fvFn = Debug_glUniformMatrix4x3fv;
5852 if (!debug_fn.glUnmapBufferFn) {
5853 debug_fn.glUnmapBufferFn = fn.glUnmapBufferFn;
5854 fn.glUnmapBufferFn = Debug_glUnmapBuffer;
5856 if (!debug_fn.glUseProgramFn) {
5857 debug_fn.glUseProgramFn = fn.glUseProgramFn;
5858 fn.glUseProgramFn = Debug_glUseProgram;
5860 if (!debug_fn.glValidateProgramFn) {
5861 debug_fn.glValidateProgramFn = fn.glValidateProgramFn;
5862 fn.glValidateProgramFn = Debug_glValidateProgram;
5864 if (!debug_fn.glVertexAttrib1fFn) {
5865 debug_fn.glVertexAttrib1fFn = fn.glVertexAttrib1fFn;
5866 fn.glVertexAttrib1fFn = Debug_glVertexAttrib1f;
5868 if (!debug_fn.glVertexAttrib1fvFn) {
5869 debug_fn.glVertexAttrib1fvFn = fn.glVertexAttrib1fvFn;
5870 fn.glVertexAttrib1fvFn = Debug_glVertexAttrib1fv;
5872 if (!debug_fn.glVertexAttrib2fFn) {
5873 debug_fn.glVertexAttrib2fFn = fn.glVertexAttrib2fFn;
5874 fn.glVertexAttrib2fFn = Debug_glVertexAttrib2f;
5876 if (!debug_fn.glVertexAttrib2fvFn) {
5877 debug_fn.glVertexAttrib2fvFn = fn.glVertexAttrib2fvFn;
5878 fn.glVertexAttrib2fvFn = Debug_glVertexAttrib2fv;
5880 if (!debug_fn.glVertexAttrib3fFn) {
5881 debug_fn.glVertexAttrib3fFn = fn.glVertexAttrib3fFn;
5882 fn.glVertexAttrib3fFn = Debug_glVertexAttrib3f;
5884 if (!debug_fn.glVertexAttrib3fvFn) {
5885 debug_fn.glVertexAttrib3fvFn = fn.glVertexAttrib3fvFn;
5886 fn.glVertexAttrib3fvFn = Debug_glVertexAttrib3fv;
5888 if (!debug_fn.glVertexAttrib4fFn) {
5889 debug_fn.glVertexAttrib4fFn = fn.glVertexAttrib4fFn;
5890 fn.glVertexAttrib4fFn = Debug_glVertexAttrib4f;
5892 if (!debug_fn.glVertexAttrib4fvFn) {
5893 debug_fn.glVertexAttrib4fvFn = fn.glVertexAttrib4fvFn;
5894 fn.glVertexAttrib4fvFn = Debug_glVertexAttrib4fv;
5896 if (!debug_fn.glVertexAttribDivisorANGLEFn) {
5897 debug_fn.glVertexAttribDivisorANGLEFn = fn.glVertexAttribDivisorANGLEFn;
5898 fn.glVertexAttribDivisorANGLEFn = Debug_glVertexAttribDivisorANGLE;
5900 if (!debug_fn.glVertexAttribI4iFn) {
5901 debug_fn.glVertexAttribI4iFn = fn.glVertexAttribI4iFn;
5902 fn.glVertexAttribI4iFn = Debug_glVertexAttribI4i;
5904 if (!debug_fn.glVertexAttribI4ivFn) {
5905 debug_fn.glVertexAttribI4ivFn = fn.glVertexAttribI4ivFn;
5906 fn.glVertexAttribI4ivFn = Debug_glVertexAttribI4iv;
5908 if (!debug_fn.glVertexAttribI4uiFn) {
5909 debug_fn.glVertexAttribI4uiFn = fn.glVertexAttribI4uiFn;
5910 fn.glVertexAttribI4uiFn = Debug_glVertexAttribI4ui;
5912 if (!debug_fn.glVertexAttribI4uivFn) {
5913 debug_fn.glVertexAttribI4uivFn = fn.glVertexAttribI4uivFn;
5914 fn.glVertexAttribI4uivFn = Debug_glVertexAttribI4uiv;
5916 if (!debug_fn.glVertexAttribIPointerFn) {
5917 debug_fn.glVertexAttribIPointerFn = fn.glVertexAttribIPointerFn;
5918 fn.glVertexAttribIPointerFn = Debug_glVertexAttribIPointer;
5920 if (!debug_fn.glVertexAttribPointerFn) {
5921 debug_fn.glVertexAttribPointerFn = fn.glVertexAttribPointerFn;
5922 fn.glVertexAttribPointerFn = Debug_glVertexAttribPointer;
5924 if (!debug_fn.glViewportFn) {
5925 debug_fn.glViewportFn = fn.glViewportFn;
5926 fn.glViewportFn = Debug_glViewport;
5928 if (!debug_fn.glWaitSyncFn) {
5929 debug_fn.glWaitSyncFn = fn.glWaitSyncFn;
5930 fn.glWaitSyncFn = Debug_glWaitSync;
5932 g_debugBindingsInitialized = true;
5935 void DriverGL::ClearBindings() {
5936 memset(this, 0, sizeof(*this));
5939 void GLApiBase::glActiveTextureFn(GLenum texture) {
5940 driver_->fn.glActiveTextureFn(texture);
5943 void GLApiBase::glAttachShaderFn(GLuint program, GLuint shader) {
5944 driver_->fn.glAttachShaderFn(program, shader);
5947 void GLApiBase::glBeginQueryFn(GLenum target, GLuint id) {
5948 driver_->fn.glBeginQueryFn(target, id);
5951 void GLApiBase::glBeginQueryARBFn(GLenum target, GLuint id) {
5952 driver_->fn.glBeginQueryARBFn(target, id);
5955 void GLApiBase::glBeginTransformFeedbackFn(GLenum primitiveMode) {
5956 driver_->fn.glBeginTransformFeedbackFn(primitiveMode);
5959 void GLApiBase::glBindAttribLocationFn(GLuint program,
5960 GLuint index,
5961 const char* name) {
5962 driver_->fn.glBindAttribLocationFn(program, index, name);
5965 void GLApiBase::glBindBufferFn(GLenum target, GLuint buffer) {
5966 driver_->fn.glBindBufferFn(target, buffer);
5969 void GLApiBase::glBindBufferBaseFn(GLenum target, GLuint index, GLuint buffer) {
5970 driver_->fn.glBindBufferBaseFn(target, index, buffer);
5973 void GLApiBase::glBindBufferRangeFn(GLenum target,
5974 GLuint index,
5975 GLuint buffer,
5976 GLintptr offset,
5977 GLsizeiptr size) {
5978 driver_->fn.glBindBufferRangeFn(target, index, buffer, offset, size);
5981 void GLApiBase::glBindFragDataLocationFn(GLuint program,
5982 GLuint colorNumber,
5983 const char* name) {
5984 driver_->fn.glBindFragDataLocationFn(program, colorNumber, name);
5987 void GLApiBase::glBindFragDataLocationIndexedFn(GLuint program,
5988 GLuint colorNumber,
5989 GLuint index,
5990 const char* name) {
5991 driver_->fn.glBindFragDataLocationIndexedFn(program, colorNumber, index,
5992 name);
5995 void GLApiBase::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
5996 driver_->fn.glBindFramebufferEXTFn(target, framebuffer);
5999 void GLApiBase::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
6000 driver_->fn.glBindRenderbufferEXTFn(target, renderbuffer);
6003 void GLApiBase::glBindSamplerFn(GLuint unit, GLuint sampler) {
6004 driver_->fn.glBindSamplerFn(unit, sampler);
6007 void GLApiBase::glBindTextureFn(GLenum target, GLuint texture) {
6008 driver_->fn.glBindTextureFn(target, texture);
6011 void GLApiBase::glBindTransformFeedbackFn(GLenum target, GLuint id) {
6012 driver_->fn.glBindTransformFeedbackFn(target, id);
6015 void GLApiBase::glBindVertexArrayOESFn(GLuint array) {
6016 driver_->fn.glBindVertexArrayOESFn(array);
6019 void GLApiBase::glBlendBarrierKHRFn(void) {
6020 driver_->fn.glBlendBarrierKHRFn();
6023 void GLApiBase::glBlendColorFn(GLclampf red,
6024 GLclampf green,
6025 GLclampf blue,
6026 GLclampf alpha) {
6027 driver_->fn.glBlendColorFn(red, green, blue, alpha);
6030 void GLApiBase::glBlendEquationFn(GLenum mode) {
6031 driver_->fn.glBlendEquationFn(mode);
6034 void GLApiBase::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
6035 driver_->fn.glBlendEquationSeparateFn(modeRGB, modeAlpha);
6038 void GLApiBase::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
6039 driver_->fn.glBlendFuncFn(sfactor, dfactor);
6042 void GLApiBase::glBlendFuncSeparateFn(GLenum srcRGB,
6043 GLenum dstRGB,
6044 GLenum srcAlpha,
6045 GLenum dstAlpha) {
6046 driver_->fn.glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
6049 void GLApiBase::glBlitFramebufferFn(GLint srcX0,
6050 GLint srcY0,
6051 GLint srcX1,
6052 GLint srcY1,
6053 GLint dstX0,
6054 GLint dstY0,
6055 GLint dstX1,
6056 GLint dstY1,
6057 GLbitfield mask,
6058 GLenum filter) {
6059 driver_->fn.glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6060 dstX1, dstY1, mask, filter);
6063 void GLApiBase::glBlitFramebufferANGLEFn(GLint srcX0,
6064 GLint srcY0,
6065 GLint srcX1,
6066 GLint srcY1,
6067 GLint dstX0,
6068 GLint dstY0,
6069 GLint dstX1,
6070 GLint dstY1,
6071 GLbitfield mask,
6072 GLenum filter) {
6073 driver_->fn.glBlitFramebufferANGLEFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6074 dstX1, dstY1, mask, filter);
6077 void GLApiBase::glBlitFramebufferEXTFn(GLint srcX0,
6078 GLint srcY0,
6079 GLint srcX1,
6080 GLint srcY1,
6081 GLint dstX0,
6082 GLint dstY0,
6083 GLint dstX1,
6084 GLint dstY1,
6085 GLbitfield mask,
6086 GLenum filter) {
6087 driver_->fn.glBlitFramebufferEXTFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
6088 dstX1, dstY1, mask, filter);
6091 void GLApiBase::glBufferDataFn(GLenum target,
6092 GLsizeiptr size,
6093 const void* data,
6094 GLenum usage) {
6095 driver_->fn.glBufferDataFn(target, size, data, usage);
6098 void GLApiBase::glBufferSubDataFn(GLenum target,
6099 GLintptr offset,
6100 GLsizeiptr size,
6101 const void* data) {
6102 driver_->fn.glBufferSubDataFn(target, offset, size, data);
6105 GLenum GLApiBase::glCheckFramebufferStatusEXTFn(GLenum target) {
6106 return driver_->fn.glCheckFramebufferStatusEXTFn(target);
6109 void GLApiBase::glClearFn(GLbitfield mask) {
6110 driver_->fn.glClearFn(mask);
6113 void GLApiBase::glClearBufferfiFn(GLenum buffer,
6114 GLint drawbuffer,
6115 const GLfloat depth,
6116 GLint stencil) {
6117 driver_->fn.glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
6120 void GLApiBase::glClearBufferfvFn(GLenum buffer,
6121 GLint drawbuffer,
6122 const GLfloat* value) {
6123 driver_->fn.glClearBufferfvFn(buffer, drawbuffer, value);
6126 void GLApiBase::glClearBufferivFn(GLenum buffer,
6127 GLint drawbuffer,
6128 const GLint* value) {
6129 driver_->fn.glClearBufferivFn(buffer, drawbuffer, value);
6132 void GLApiBase::glClearBufferuivFn(GLenum buffer,
6133 GLint drawbuffer,
6134 const GLuint* value) {
6135 driver_->fn.glClearBufferuivFn(buffer, drawbuffer, value);
6138 void GLApiBase::glClearColorFn(GLclampf red,
6139 GLclampf green,
6140 GLclampf blue,
6141 GLclampf alpha) {
6142 driver_->fn.glClearColorFn(red, green, blue, alpha);
6145 void GLApiBase::glClearDepthFn(GLclampd depth) {
6146 driver_->fn.glClearDepthFn(depth);
6149 void GLApiBase::glClearDepthfFn(GLclampf depth) {
6150 driver_->fn.glClearDepthfFn(depth);
6153 void GLApiBase::glClearStencilFn(GLint s) {
6154 driver_->fn.glClearStencilFn(s);
6157 GLenum GLApiBase::glClientWaitSyncFn(GLsync sync,
6158 GLbitfield flags,
6159 GLuint64 timeout) {
6160 return driver_->fn.glClientWaitSyncFn(sync, flags, timeout);
6163 void GLApiBase::glColorMaskFn(GLboolean red,
6164 GLboolean green,
6165 GLboolean blue,
6166 GLboolean alpha) {
6167 driver_->fn.glColorMaskFn(red, green, blue, alpha);
6170 void GLApiBase::glCompileShaderFn(GLuint shader) {
6171 driver_->fn.glCompileShaderFn(shader);
6174 void GLApiBase::glCompressedTexImage2DFn(GLenum target,
6175 GLint level,
6176 GLenum internalformat,
6177 GLsizei width,
6178 GLsizei height,
6179 GLint border,
6180 GLsizei imageSize,
6181 const void* data) {
6182 driver_->fn.glCompressedTexImage2DFn(target, level, internalformat, width,
6183 height, border, imageSize, data);
6186 void GLApiBase::glCompressedTexImage3DFn(GLenum target,
6187 GLint level,
6188 GLenum internalformat,
6189 GLsizei width,
6190 GLsizei height,
6191 GLsizei depth,
6192 GLint border,
6193 GLsizei imageSize,
6194 const void* data) {
6195 driver_->fn.glCompressedTexImage3DFn(target, level, internalformat, width,
6196 height, depth, border, imageSize, data);
6199 void GLApiBase::glCompressedTexSubImage2DFn(GLenum target,
6200 GLint level,
6201 GLint xoffset,
6202 GLint yoffset,
6203 GLsizei width,
6204 GLsizei height,
6205 GLenum format,
6206 GLsizei imageSize,
6207 const void* data) {
6208 driver_->fn.glCompressedTexSubImage2DFn(
6209 target, level, xoffset, yoffset, width, height, format, imageSize, data);
6212 void GLApiBase::glCopyBufferSubDataFn(GLenum readTarget,
6213 GLenum writeTarget,
6214 GLintptr readOffset,
6215 GLintptr writeOffset,
6216 GLsizeiptr size) {
6217 driver_->fn.glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
6218 writeOffset, size);
6221 void GLApiBase::glCopyTexImage2DFn(GLenum target,
6222 GLint level,
6223 GLenum internalformat,
6224 GLint x,
6225 GLint y,
6226 GLsizei width,
6227 GLsizei height,
6228 GLint border) {
6229 driver_->fn.glCopyTexImage2DFn(target, level, internalformat, x, y, width,
6230 height, border);
6233 void GLApiBase::glCopyTexSubImage2DFn(GLenum target,
6234 GLint level,
6235 GLint xoffset,
6236 GLint yoffset,
6237 GLint x,
6238 GLint y,
6239 GLsizei width,
6240 GLsizei height) {
6241 driver_->fn.glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y,
6242 width, height);
6245 void GLApiBase::glCopyTexSubImage3DFn(GLenum target,
6246 GLint level,
6247 GLint xoffset,
6248 GLint yoffset,
6249 GLint zoffset,
6250 GLint x,
6251 GLint y,
6252 GLsizei width,
6253 GLsizei height) {
6254 driver_->fn.glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x,
6255 y, width, height);
6258 GLuint GLApiBase::glCreateProgramFn(void) {
6259 return driver_->fn.glCreateProgramFn();
6262 GLuint GLApiBase::glCreateShaderFn(GLenum type) {
6263 return driver_->fn.glCreateShaderFn(type);
6266 void GLApiBase::glCullFaceFn(GLenum mode) {
6267 driver_->fn.glCullFaceFn(mode);
6270 void GLApiBase::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
6271 driver_->fn.glDeleteBuffersARBFn(n, buffers);
6274 void GLApiBase::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
6275 driver_->fn.glDeleteFencesAPPLEFn(n, fences);
6278 void GLApiBase::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
6279 driver_->fn.glDeleteFencesNVFn(n, fences);
6282 void GLApiBase::glDeleteFramebuffersEXTFn(GLsizei n,
6283 const GLuint* framebuffers) {
6284 driver_->fn.glDeleteFramebuffersEXTFn(n, framebuffers);
6287 void GLApiBase::glDeleteProgramFn(GLuint program) {
6288 driver_->fn.glDeleteProgramFn(program);
6291 void GLApiBase::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
6292 driver_->fn.glDeleteQueriesFn(n, ids);
6295 void GLApiBase::glDeleteQueriesARBFn(GLsizei n, const GLuint* ids) {
6296 driver_->fn.glDeleteQueriesARBFn(n, ids);
6299 void GLApiBase::glDeleteRenderbuffersEXTFn(GLsizei n,
6300 const GLuint* renderbuffers) {
6301 driver_->fn.glDeleteRenderbuffersEXTFn(n, renderbuffers);
6304 void GLApiBase::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
6305 driver_->fn.glDeleteSamplersFn(n, samplers);
6308 void GLApiBase::glDeleteShaderFn(GLuint shader) {
6309 driver_->fn.glDeleteShaderFn(shader);
6312 void GLApiBase::glDeleteSyncFn(GLsync sync) {
6313 driver_->fn.glDeleteSyncFn(sync);
6316 void GLApiBase::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
6317 driver_->fn.glDeleteTexturesFn(n, textures);
6320 void GLApiBase::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
6321 driver_->fn.glDeleteTransformFeedbacksFn(n, ids);
6324 void GLApiBase::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
6325 driver_->fn.glDeleteVertexArraysOESFn(n, arrays);
6328 void GLApiBase::glDepthFuncFn(GLenum func) {
6329 driver_->fn.glDepthFuncFn(func);
6332 void GLApiBase::glDepthMaskFn(GLboolean flag) {
6333 driver_->fn.glDepthMaskFn(flag);
6336 void GLApiBase::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
6337 driver_->fn.glDepthRangeFn(zNear, zFar);
6340 void GLApiBase::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
6341 driver_->fn.glDepthRangefFn(zNear, zFar);
6344 void GLApiBase::glDetachShaderFn(GLuint program, GLuint shader) {
6345 driver_->fn.glDetachShaderFn(program, shader);
6348 void GLApiBase::glDisableFn(GLenum cap) {
6349 driver_->fn.glDisableFn(cap);
6352 void GLApiBase::glDisableVertexAttribArrayFn(GLuint index) {
6353 driver_->fn.glDisableVertexAttribArrayFn(index);
6356 void GLApiBase::glDiscardFramebufferEXTFn(GLenum target,
6357 GLsizei numAttachments,
6358 const GLenum* attachments) {
6359 driver_->fn.glDiscardFramebufferEXTFn(target, numAttachments, attachments);
6362 void GLApiBase::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
6363 driver_->fn.glDrawArraysFn(mode, first, count);
6366 void GLApiBase::glDrawArraysInstancedANGLEFn(GLenum mode,
6367 GLint first,
6368 GLsizei count,
6369 GLsizei primcount) {
6370 driver_->fn.glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
6373 void GLApiBase::glDrawBufferFn(GLenum mode) {
6374 driver_->fn.glDrawBufferFn(mode);
6377 void GLApiBase::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
6378 driver_->fn.glDrawBuffersARBFn(n, bufs);
6381 void GLApiBase::glDrawElementsFn(GLenum mode,
6382 GLsizei count,
6383 GLenum type,
6384 const void* indices) {
6385 driver_->fn.glDrawElementsFn(mode, count, type, indices);
6388 void GLApiBase::glDrawElementsInstancedANGLEFn(GLenum mode,
6389 GLsizei count,
6390 GLenum type,
6391 const void* indices,
6392 GLsizei primcount) {
6393 driver_->fn.glDrawElementsInstancedANGLEFn(mode, count, type, indices,
6394 primcount);
6397 void GLApiBase::glDrawRangeElementsFn(GLenum mode,
6398 GLuint start,
6399 GLuint end,
6400 GLsizei count,
6401 GLenum type,
6402 const void* indices) {
6403 driver_->fn.glDrawRangeElementsFn(mode, start, end, count, type, indices);
6406 void GLApiBase::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
6407 GLeglImageOES image) {
6408 driver_->fn.glEGLImageTargetRenderbufferStorageOESFn(target, image);
6411 void GLApiBase::glEGLImageTargetTexture2DOESFn(GLenum target,
6412 GLeglImageOES image) {
6413 driver_->fn.glEGLImageTargetTexture2DOESFn(target, image);
6416 void GLApiBase::glEnableFn(GLenum cap) {
6417 driver_->fn.glEnableFn(cap);
6420 void GLApiBase::glEnableVertexAttribArrayFn(GLuint index) {
6421 driver_->fn.glEnableVertexAttribArrayFn(index);
6424 void GLApiBase::glEndQueryFn(GLenum target) {
6425 driver_->fn.glEndQueryFn(target);
6428 void GLApiBase::glEndQueryARBFn(GLenum target) {
6429 driver_->fn.glEndQueryARBFn(target);
6432 void GLApiBase::glEndTransformFeedbackFn(void) {
6433 driver_->fn.glEndTransformFeedbackFn();
6436 GLsync GLApiBase::glFenceSyncFn(GLenum condition, GLbitfield flags) {
6437 return driver_->fn.glFenceSyncFn(condition, flags);
6440 void GLApiBase::glFinishFn(void) {
6441 driver_->fn.glFinishFn();
6444 void GLApiBase::glFinishFenceAPPLEFn(GLuint fence) {
6445 driver_->fn.glFinishFenceAPPLEFn(fence);
6448 void GLApiBase::glFinishFenceNVFn(GLuint fence) {
6449 driver_->fn.glFinishFenceNVFn(fence);
6452 void GLApiBase::glFlushFn(void) {
6453 driver_->fn.glFlushFn();
6456 void GLApiBase::glFlushMappedBufferRangeFn(GLenum target,
6457 GLintptr offset,
6458 GLsizeiptr length) {
6459 driver_->fn.glFlushMappedBufferRangeFn(target, offset, length);
6462 void GLApiBase::glFramebufferRenderbufferEXTFn(GLenum target,
6463 GLenum attachment,
6464 GLenum renderbuffertarget,
6465 GLuint renderbuffer) {
6466 driver_->fn.glFramebufferRenderbufferEXTFn(target, attachment,
6467 renderbuffertarget, renderbuffer);
6470 void GLApiBase::glFramebufferTexture2DEXTFn(GLenum target,
6471 GLenum attachment,
6472 GLenum textarget,
6473 GLuint texture,
6474 GLint level) {
6475 driver_->fn.glFramebufferTexture2DEXTFn(target, attachment, textarget,
6476 texture, level);
6479 void GLApiBase::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
6480 GLenum attachment,
6481 GLenum textarget,
6482 GLuint texture,
6483 GLint level,
6484 GLsizei samples) {
6485 driver_->fn.glFramebufferTexture2DMultisampleEXTFn(
6486 target, attachment, textarget, texture, level, samples);
6489 void GLApiBase::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
6490 GLenum attachment,
6491 GLenum textarget,
6492 GLuint texture,
6493 GLint level,
6494 GLsizei samples) {
6495 driver_->fn.glFramebufferTexture2DMultisampleIMGFn(
6496 target, attachment, textarget, texture, level, samples);
6499 void GLApiBase::glFramebufferTextureLayerFn(GLenum target,
6500 GLenum attachment,
6501 GLuint texture,
6502 GLint level,
6503 GLint layer) {
6504 driver_->fn.glFramebufferTextureLayerFn(target, attachment, texture, level,
6505 layer);
6508 void GLApiBase::glFrontFaceFn(GLenum mode) {
6509 driver_->fn.glFrontFaceFn(mode);
6512 void GLApiBase::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
6513 driver_->fn.glGenBuffersARBFn(n, buffers);
6516 void GLApiBase::glGenerateMipmapEXTFn(GLenum target) {
6517 driver_->fn.glGenerateMipmapEXTFn(target);
6520 void GLApiBase::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
6521 driver_->fn.glGenFencesAPPLEFn(n, fences);
6524 void GLApiBase::glGenFencesNVFn(GLsizei n, GLuint* fences) {
6525 driver_->fn.glGenFencesNVFn(n, fences);
6528 void GLApiBase::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
6529 driver_->fn.glGenFramebuffersEXTFn(n, framebuffers);
6532 void GLApiBase::glGenQueriesFn(GLsizei n, GLuint* ids) {
6533 driver_->fn.glGenQueriesFn(n, ids);
6536 void GLApiBase::glGenQueriesARBFn(GLsizei n, GLuint* ids) {
6537 driver_->fn.glGenQueriesARBFn(n, ids);
6540 void GLApiBase::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
6541 driver_->fn.glGenRenderbuffersEXTFn(n, renderbuffers);
6544 void GLApiBase::glGenSamplersFn(GLsizei n, GLuint* samplers) {
6545 driver_->fn.glGenSamplersFn(n, samplers);
6548 void GLApiBase::glGenTexturesFn(GLsizei n, GLuint* textures) {
6549 driver_->fn.glGenTexturesFn(n, textures);
6552 void GLApiBase::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
6553 driver_->fn.glGenTransformFeedbacksFn(n, ids);
6556 void GLApiBase::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
6557 driver_->fn.glGenVertexArraysOESFn(n, arrays);
6560 void GLApiBase::glGetActiveAttribFn(GLuint program,
6561 GLuint index,
6562 GLsizei bufsize,
6563 GLsizei* length,
6564 GLint* size,
6565 GLenum* type,
6566 char* name) {
6567 driver_->fn.glGetActiveAttribFn(program, index, bufsize, length, size, type,
6568 name);
6571 void GLApiBase::glGetActiveUniformFn(GLuint program,
6572 GLuint index,
6573 GLsizei bufsize,
6574 GLsizei* length,
6575 GLint* size,
6576 GLenum* type,
6577 char* name) {
6578 driver_->fn.glGetActiveUniformFn(program, index, bufsize, length, size, type,
6579 name);
6582 void GLApiBase::glGetActiveUniformBlockivFn(GLuint program,
6583 GLuint uniformBlockIndex,
6584 GLenum pname,
6585 GLint* params) {
6586 driver_->fn.glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
6587 params);
6590 void GLApiBase::glGetActiveUniformBlockNameFn(GLuint program,
6591 GLuint uniformBlockIndex,
6592 GLsizei bufSize,
6593 GLsizei* length,
6594 char* uniformBlockName) {
6595 driver_->fn.glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
6596 length, uniformBlockName);
6599 void GLApiBase::glGetActiveUniformsivFn(GLuint program,
6600 GLsizei uniformCount,
6601 const GLuint* uniformIndices,
6602 GLenum pname,
6603 GLint* params) {
6604 driver_->fn.glGetActiveUniformsivFn(program, uniformCount, uniformIndices,
6605 pname, params);
6608 void GLApiBase::glGetAttachedShadersFn(GLuint program,
6609 GLsizei maxcount,
6610 GLsizei* count,
6611 GLuint* shaders) {
6612 driver_->fn.glGetAttachedShadersFn(program, maxcount, count, shaders);
6615 GLint GLApiBase::glGetAttribLocationFn(GLuint program, const char* name) {
6616 return driver_->fn.glGetAttribLocationFn(program, name);
6619 void GLApiBase::glGetBooleanvFn(GLenum pname, GLboolean* params) {
6620 driver_->fn.glGetBooleanvFn(pname, params);
6623 void GLApiBase::glGetBufferParameterivFn(GLenum target,
6624 GLenum pname,
6625 GLint* params) {
6626 driver_->fn.glGetBufferParameterivFn(target, pname, params);
6629 GLenum GLApiBase::glGetErrorFn(void) {
6630 return driver_->fn.glGetErrorFn();
6633 void GLApiBase::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
6634 driver_->fn.glGetFenceivNVFn(fence, pname, params);
6637 void GLApiBase::glGetFloatvFn(GLenum pname, GLfloat* params) {
6638 driver_->fn.glGetFloatvFn(pname, params);
6641 GLint GLApiBase::glGetFragDataLocationFn(GLuint program, const char* name) {
6642 return driver_->fn.glGetFragDataLocationFn(program, name);
6645 void GLApiBase::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
6646 GLenum attachment,
6647 GLenum pname,
6648 GLint* params) {
6649 driver_->fn.glGetFramebufferAttachmentParameterivEXTFn(target, attachment,
6650 pname, params);
6653 GLenum GLApiBase::glGetGraphicsResetStatusARBFn(void) {
6654 return driver_->fn.glGetGraphicsResetStatusARBFn();
6657 void GLApiBase::glGetInteger64i_vFn(GLenum target,
6658 GLuint index,
6659 GLint64* data) {
6660 driver_->fn.glGetInteger64i_vFn(target, index, data);
6663 void GLApiBase::glGetInteger64vFn(GLenum pname, GLint64* params) {
6664 driver_->fn.glGetInteger64vFn(pname, params);
6667 void GLApiBase::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
6668 driver_->fn.glGetIntegeri_vFn(target, index, data);
6671 void GLApiBase::glGetIntegervFn(GLenum pname, GLint* params) {
6672 driver_->fn.glGetIntegervFn(pname, params);
6675 void GLApiBase::glGetInternalformativFn(GLenum target,
6676 GLenum internalformat,
6677 GLenum pname,
6678 GLsizei bufSize,
6679 GLint* params) {
6680 driver_->fn.glGetInternalformativFn(target, internalformat, pname, bufSize,
6681 params);
6684 void GLApiBase::glGetProgramBinaryFn(GLuint program,
6685 GLsizei bufSize,
6686 GLsizei* length,
6687 GLenum* binaryFormat,
6688 GLvoid* binary) {
6689 driver_->fn.glGetProgramBinaryFn(program, bufSize, length, binaryFormat,
6690 binary);
6693 void GLApiBase::glGetProgramInfoLogFn(GLuint program,
6694 GLsizei bufsize,
6695 GLsizei* length,
6696 char* infolog) {
6697 driver_->fn.glGetProgramInfoLogFn(program, bufsize, length, infolog);
6700 void GLApiBase::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
6701 driver_->fn.glGetProgramivFn(program, pname, params);
6704 GLint GLApiBase::glGetProgramResourceLocationFn(GLuint program,
6705 GLenum programInterface,
6706 const char* name) {
6707 return driver_->fn.glGetProgramResourceLocationFn(program, programInterface,
6708 name);
6711 void GLApiBase::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
6712 driver_->fn.glGetQueryivFn(target, pname, params);
6715 void GLApiBase::glGetQueryivARBFn(GLenum target, GLenum pname, GLint* params) {
6716 driver_->fn.glGetQueryivARBFn(target, pname, params);
6719 void GLApiBase::glGetQueryObjecti64vFn(GLuint id,
6720 GLenum pname,
6721 GLint64* params) {
6722 driver_->fn.glGetQueryObjecti64vFn(id, pname, params);
6725 void GLApiBase::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
6726 driver_->fn.glGetQueryObjectivFn(id, pname, params);
6729 void GLApiBase::glGetQueryObjectivARBFn(GLuint id,
6730 GLenum pname,
6731 GLint* params) {
6732 driver_->fn.glGetQueryObjectivARBFn(id, pname, params);
6735 void GLApiBase::glGetQueryObjectui64vFn(GLuint id,
6736 GLenum pname,
6737 GLuint64* params) {
6738 driver_->fn.glGetQueryObjectui64vFn(id, pname, params);
6741 void GLApiBase::glGetQueryObjectuivFn(GLuint id, GLenum pname, GLuint* params) {
6742 driver_->fn.glGetQueryObjectuivFn(id, pname, params);
6745 void GLApiBase::glGetQueryObjectuivARBFn(GLuint id,
6746 GLenum pname,
6747 GLuint* params) {
6748 driver_->fn.glGetQueryObjectuivARBFn(id, pname, params);
6751 void GLApiBase::glGetRenderbufferParameterivEXTFn(GLenum target,
6752 GLenum pname,
6753 GLint* params) {
6754 driver_->fn.glGetRenderbufferParameterivEXTFn(target, pname, params);
6757 void GLApiBase::glGetSamplerParameterfvFn(GLuint sampler,
6758 GLenum pname,
6759 GLfloat* params) {
6760 driver_->fn.glGetSamplerParameterfvFn(sampler, pname, params);
6763 void GLApiBase::glGetSamplerParameterivFn(GLuint sampler,
6764 GLenum pname,
6765 GLint* params) {
6766 driver_->fn.glGetSamplerParameterivFn(sampler, pname, params);
6769 void GLApiBase::glGetShaderInfoLogFn(GLuint shader,
6770 GLsizei bufsize,
6771 GLsizei* length,
6772 char* infolog) {
6773 driver_->fn.glGetShaderInfoLogFn(shader, bufsize, length, infolog);
6776 void GLApiBase::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
6777 driver_->fn.glGetShaderivFn(shader, pname, params);
6780 void GLApiBase::glGetShaderPrecisionFormatFn(GLenum shadertype,
6781 GLenum precisiontype,
6782 GLint* range,
6783 GLint* precision) {
6784 driver_->fn.glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
6785 precision);
6788 void GLApiBase::glGetShaderSourceFn(GLuint shader,
6789 GLsizei bufsize,
6790 GLsizei* length,
6791 char* source) {
6792 driver_->fn.glGetShaderSourceFn(shader, bufsize, length, source);
6795 const GLubyte* GLApiBase::glGetStringFn(GLenum name) {
6796 return driver_->fn.glGetStringFn(name);
6799 const GLubyte* GLApiBase::glGetStringiFn(GLenum name, GLuint index) {
6800 return driver_->fn.glGetStringiFn(name, index);
6803 void GLApiBase::glGetSyncivFn(GLsync sync,
6804 GLenum pname,
6805 GLsizei bufSize,
6806 GLsizei* length,
6807 GLint* values) {
6808 driver_->fn.glGetSyncivFn(sync, pname, bufSize, length, values);
6811 void GLApiBase::glGetTexLevelParameterfvFn(GLenum target,
6812 GLint level,
6813 GLenum pname,
6814 GLfloat* params) {
6815 driver_->fn.glGetTexLevelParameterfvFn(target, level, pname, params);
6818 void GLApiBase::glGetTexLevelParameterivFn(GLenum target,
6819 GLint level,
6820 GLenum pname,
6821 GLint* params) {
6822 driver_->fn.glGetTexLevelParameterivFn(target, level, pname, params);
6825 void GLApiBase::glGetTexParameterfvFn(GLenum target,
6826 GLenum pname,
6827 GLfloat* params) {
6828 driver_->fn.glGetTexParameterfvFn(target, pname, params);
6831 void GLApiBase::glGetTexParameterivFn(GLenum target,
6832 GLenum pname,
6833 GLint* params) {
6834 driver_->fn.glGetTexParameterivFn(target, pname, params);
6837 void GLApiBase::glGetTransformFeedbackVaryingFn(GLuint program,
6838 GLuint index,
6839 GLsizei bufSize,
6840 GLsizei* length,
6841 GLsizei* size,
6842 GLenum* type,
6843 char* name) {
6844 driver_->fn.glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
6845 size, type, name);
6848 void GLApiBase::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
6849 GLsizei bufsize,
6850 GLsizei* length,
6851 char* source) {
6852 driver_->fn.glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length,
6853 source);
6856 GLuint GLApiBase::glGetUniformBlockIndexFn(GLuint program,
6857 const char* uniformBlockName) {
6858 return driver_->fn.glGetUniformBlockIndexFn(program, uniformBlockName);
6861 void GLApiBase::glGetUniformfvFn(GLuint program,
6862 GLint location,
6863 GLfloat* params) {
6864 driver_->fn.glGetUniformfvFn(program, location, params);
6867 void GLApiBase::glGetUniformIndicesFn(GLuint program,
6868 GLsizei uniformCount,
6869 const char* const* uniformNames,
6870 GLuint* uniformIndices) {
6871 driver_->fn.glGetUniformIndicesFn(program, uniformCount, uniformNames,
6872 uniformIndices);
6875 void GLApiBase::glGetUniformivFn(GLuint program,
6876 GLint location,
6877 GLint* params) {
6878 driver_->fn.glGetUniformivFn(program, location, params);
6881 GLint GLApiBase::glGetUniformLocationFn(GLuint program, const char* name) {
6882 return driver_->fn.glGetUniformLocationFn(program, name);
6885 void GLApiBase::glGetVertexAttribfvFn(GLuint index,
6886 GLenum pname,
6887 GLfloat* params) {
6888 driver_->fn.glGetVertexAttribfvFn(index, pname, params);
6891 void GLApiBase::glGetVertexAttribivFn(GLuint index,
6892 GLenum pname,
6893 GLint* params) {
6894 driver_->fn.glGetVertexAttribivFn(index, pname, params);
6897 void GLApiBase::glGetVertexAttribPointervFn(GLuint index,
6898 GLenum pname,
6899 void** pointer) {
6900 driver_->fn.glGetVertexAttribPointervFn(index, pname, pointer);
6903 void GLApiBase::glHintFn(GLenum target, GLenum mode) {
6904 driver_->fn.glHintFn(target, mode);
6907 void GLApiBase::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
6908 driver_->fn.glInsertEventMarkerEXTFn(length, marker);
6911 void GLApiBase::glInvalidateFramebufferFn(GLenum target,
6912 GLsizei numAttachments,
6913 const GLenum* attachments) {
6914 driver_->fn.glInvalidateFramebufferFn(target, numAttachments, attachments);
6917 void GLApiBase::glInvalidateSubFramebufferFn(GLenum target,
6918 GLsizei numAttachments,
6919 const GLenum* attachments,
6920 GLint x,
6921 GLint y,
6922 GLint width,
6923 GLint height) {
6924 driver_->fn.glInvalidateSubFramebufferFn(target, numAttachments, attachments,
6925 x, y, width, height);
6928 GLboolean GLApiBase::glIsBufferFn(GLuint buffer) {
6929 return driver_->fn.glIsBufferFn(buffer);
6932 GLboolean GLApiBase::glIsEnabledFn(GLenum cap) {
6933 return driver_->fn.glIsEnabledFn(cap);
6936 GLboolean GLApiBase::glIsFenceAPPLEFn(GLuint fence) {
6937 return driver_->fn.glIsFenceAPPLEFn(fence);
6940 GLboolean GLApiBase::glIsFenceNVFn(GLuint fence) {
6941 return driver_->fn.glIsFenceNVFn(fence);
6944 GLboolean GLApiBase::glIsFramebufferEXTFn(GLuint framebuffer) {
6945 return driver_->fn.glIsFramebufferEXTFn(framebuffer);
6948 GLboolean GLApiBase::glIsProgramFn(GLuint program) {
6949 return driver_->fn.glIsProgramFn(program);
6952 GLboolean GLApiBase::glIsQueryFn(GLuint query) {
6953 return driver_->fn.glIsQueryFn(query);
6956 GLboolean GLApiBase::glIsQueryARBFn(GLuint query) {
6957 return driver_->fn.glIsQueryARBFn(query);
6960 GLboolean GLApiBase::glIsRenderbufferEXTFn(GLuint renderbuffer) {
6961 return driver_->fn.glIsRenderbufferEXTFn(renderbuffer);
6964 GLboolean GLApiBase::glIsSamplerFn(GLuint sampler) {
6965 return driver_->fn.glIsSamplerFn(sampler);
6968 GLboolean GLApiBase::glIsShaderFn(GLuint shader) {
6969 return driver_->fn.glIsShaderFn(shader);
6972 GLboolean GLApiBase::glIsSyncFn(GLsync sync) {
6973 return driver_->fn.glIsSyncFn(sync);
6976 GLboolean GLApiBase::glIsTextureFn(GLuint texture) {
6977 return driver_->fn.glIsTextureFn(texture);
6980 GLboolean GLApiBase::glIsTransformFeedbackFn(GLuint id) {
6981 return driver_->fn.glIsTransformFeedbackFn(id);
6984 GLboolean GLApiBase::glIsVertexArrayOESFn(GLuint array) {
6985 return driver_->fn.glIsVertexArrayOESFn(array);
6988 void GLApiBase::glLineWidthFn(GLfloat width) {
6989 driver_->fn.glLineWidthFn(width);
6992 void GLApiBase::glLinkProgramFn(GLuint program) {
6993 driver_->fn.glLinkProgramFn(program);
6996 void* GLApiBase::glMapBufferFn(GLenum target, GLenum access) {
6997 return driver_->fn.glMapBufferFn(target, access);
7000 void* GLApiBase::glMapBufferRangeFn(GLenum target,
7001 GLintptr offset,
7002 GLsizeiptr length,
7003 GLbitfield access) {
7004 return driver_->fn.glMapBufferRangeFn(target, offset, length, access);
7007 void GLApiBase::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
7008 driver_->fn.glMatrixLoadfEXTFn(matrixMode, m);
7011 void GLApiBase::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
7012 driver_->fn.glMatrixLoadIdentityEXTFn(matrixMode);
7015 void GLApiBase::glPauseTransformFeedbackFn(void) {
7016 driver_->fn.glPauseTransformFeedbackFn();
7019 void GLApiBase::glPixelStoreiFn(GLenum pname, GLint param) {
7020 driver_->fn.glPixelStoreiFn(pname, param);
7023 void GLApiBase::glPointParameteriFn(GLenum pname, GLint param) {
7024 driver_->fn.glPointParameteriFn(pname, param);
7027 void GLApiBase::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
7028 driver_->fn.glPolygonOffsetFn(factor, units);
7031 void GLApiBase::glPopGroupMarkerEXTFn(void) {
7032 driver_->fn.glPopGroupMarkerEXTFn();
7035 void GLApiBase::glProgramBinaryFn(GLuint program,
7036 GLenum binaryFormat,
7037 const GLvoid* binary,
7038 GLsizei length) {
7039 driver_->fn.glProgramBinaryFn(program, binaryFormat, binary, length);
7042 void GLApiBase::glProgramParameteriFn(GLuint program,
7043 GLenum pname,
7044 GLint value) {
7045 driver_->fn.glProgramParameteriFn(program, pname, value);
7048 void GLApiBase::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
7049 driver_->fn.glPushGroupMarkerEXTFn(length, marker);
7052 void GLApiBase::glQueryCounterFn(GLuint id, GLenum target) {
7053 driver_->fn.glQueryCounterFn(id, target);
7056 void GLApiBase::glReadBufferFn(GLenum src) {
7057 driver_->fn.glReadBufferFn(src);
7060 void GLApiBase::glReadPixelsFn(GLint x,
7061 GLint y,
7062 GLsizei width,
7063 GLsizei height,
7064 GLenum format,
7065 GLenum type,
7066 void* pixels) {
7067 driver_->fn.glReadPixelsFn(x, y, width, height, format, type, pixels);
7070 void GLApiBase::glReleaseShaderCompilerFn(void) {
7071 driver_->fn.glReleaseShaderCompilerFn();
7074 void GLApiBase::glRenderbufferStorageEXTFn(GLenum target,
7075 GLenum internalformat,
7076 GLsizei width,
7077 GLsizei height) {
7078 driver_->fn.glRenderbufferStorageEXTFn(target, internalformat, width, height);
7081 void GLApiBase::glRenderbufferStorageMultisampleFn(GLenum target,
7082 GLsizei samples,
7083 GLenum internalformat,
7084 GLsizei width,
7085 GLsizei height) {
7086 driver_->fn.glRenderbufferStorageMultisampleFn(target, samples,
7087 internalformat, width, height);
7090 void GLApiBase::glRenderbufferStorageMultisampleANGLEFn(GLenum target,
7091 GLsizei samples,
7092 GLenum internalformat,
7093 GLsizei width,
7094 GLsizei height) {
7095 driver_->fn.glRenderbufferStorageMultisampleANGLEFn(
7096 target, samples, internalformat, width, height);
7099 void GLApiBase::glRenderbufferStorageMultisampleEXTFn(GLenum target,
7100 GLsizei samples,
7101 GLenum internalformat,
7102 GLsizei width,
7103 GLsizei height) {
7104 driver_->fn.glRenderbufferStorageMultisampleEXTFn(
7105 target, samples, internalformat, width, height);
7108 void GLApiBase::glRenderbufferStorageMultisampleIMGFn(GLenum target,
7109 GLsizei samples,
7110 GLenum internalformat,
7111 GLsizei width,
7112 GLsizei height) {
7113 driver_->fn.glRenderbufferStorageMultisampleIMGFn(
7114 target, samples, internalformat, width, height);
7117 void GLApiBase::glResumeTransformFeedbackFn(void) {
7118 driver_->fn.glResumeTransformFeedbackFn();
7121 void GLApiBase::glSampleCoverageFn(GLclampf value, GLboolean invert) {
7122 driver_->fn.glSampleCoverageFn(value, invert);
7125 void GLApiBase::glSamplerParameterfFn(GLuint sampler,
7126 GLenum pname,
7127 GLfloat param) {
7128 driver_->fn.glSamplerParameterfFn(sampler, pname, param);
7131 void GLApiBase::glSamplerParameterfvFn(GLuint sampler,
7132 GLenum pname,
7133 const GLfloat* params) {
7134 driver_->fn.glSamplerParameterfvFn(sampler, pname, params);
7137 void GLApiBase::glSamplerParameteriFn(GLuint sampler,
7138 GLenum pname,
7139 GLint param) {
7140 driver_->fn.glSamplerParameteriFn(sampler, pname, param);
7143 void GLApiBase::glSamplerParameterivFn(GLuint sampler,
7144 GLenum pname,
7145 const GLint* params) {
7146 driver_->fn.glSamplerParameterivFn(sampler, pname, params);
7149 void GLApiBase::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
7150 driver_->fn.glScissorFn(x, y, width, height);
7153 void GLApiBase::glSetFenceAPPLEFn(GLuint fence) {
7154 driver_->fn.glSetFenceAPPLEFn(fence);
7157 void GLApiBase::glSetFenceNVFn(GLuint fence, GLenum condition) {
7158 driver_->fn.glSetFenceNVFn(fence, condition);
7161 void GLApiBase::glShaderBinaryFn(GLsizei n,
7162 const GLuint* shaders,
7163 GLenum binaryformat,
7164 const void* binary,
7165 GLsizei length) {
7166 driver_->fn.glShaderBinaryFn(n, shaders, binaryformat, binary, length);
7169 void GLApiBase::glShaderSourceFn(GLuint shader,
7170 GLsizei count,
7171 const char* const* str,
7172 const GLint* length) {
7173 driver_->fn.glShaderSourceFn(shader, count, str, length);
7176 void GLApiBase::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
7177 driver_->fn.glStencilFuncFn(func, ref, mask);
7180 void GLApiBase::glStencilFuncSeparateFn(GLenum face,
7181 GLenum func,
7182 GLint ref,
7183 GLuint mask) {
7184 driver_->fn.glStencilFuncSeparateFn(face, func, ref, mask);
7187 void GLApiBase::glStencilMaskFn(GLuint mask) {
7188 driver_->fn.glStencilMaskFn(mask);
7191 void GLApiBase::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
7192 driver_->fn.glStencilMaskSeparateFn(face, mask);
7195 void GLApiBase::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
7196 driver_->fn.glStencilOpFn(fail, zfail, zpass);
7199 void GLApiBase::glStencilOpSeparateFn(GLenum face,
7200 GLenum fail,
7201 GLenum zfail,
7202 GLenum zpass) {
7203 driver_->fn.glStencilOpSeparateFn(face, fail, zfail, zpass);
7206 GLboolean GLApiBase::glTestFenceAPPLEFn(GLuint fence) {
7207 return driver_->fn.glTestFenceAPPLEFn(fence);
7210 GLboolean GLApiBase::glTestFenceNVFn(GLuint fence) {
7211 return driver_->fn.glTestFenceNVFn(fence);
7214 void GLApiBase::glTexImage2DFn(GLenum target,
7215 GLint level,
7216 GLint internalformat,
7217 GLsizei width,
7218 GLsizei height,
7219 GLint border,
7220 GLenum format,
7221 GLenum type,
7222 const void* pixels) {
7223 driver_->fn.glTexImage2DFn(target, level, internalformat, width, height,
7224 border, format, type, pixels);
7227 void GLApiBase::glTexImage3DFn(GLenum target,
7228 GLint level,
7229 GLint internalformat,
7230 GLsizei width,
7231 GLsizei height,
7232 GLsizei depth,
7233 GLint border,
7234 GLenum format,
7235 GLenum type,
7236 const void* pixels) {
7237 driver_->fn.glTexImage3DFn(target, level, internalformat, width, height,
7238 depth, border, format, type, pixels);
7241 void GLApiBase::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
7242 driver_->fn.glTexParameterfFn(target, pname, param);
7245 void GLApiBase::glTexParameterfvFn(GLenum target,
7246 GLenum pname,
7247 const GLfloat* params) {
7248 driver_->fn.glTexParameterfvFn(target, pname, params);
7251 void GLApiBase::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
7252 driver_->fn.glTexParameteriFn(target, pname, param);
7255 void GLApiBase::glTexParameterivFn(GLenum target,
7256 GLenum pname,
7257 const GLint* params) {
7258 driver_->fn.glTexParameterivFn(target, pname, params);
7261 void GLApiBase::glTexStorage2DEXTFn(GLenum target,
7262 GLsizei levels,
7263 GLenum internalformat,
7264 GLsizei width,
7265 GLsizei height) {
7266 driver_->fn.glTexStorage2DEXTFn(target, levels, internalformat, width,
7267 height);
7270 void GLApiBase::glTexStorage3DFn(GLenum target,
7271 GLsizei levels,
7272 GLenum internalformat,
7273 GLsizei width,
7274 GLsizei height,
7275 GLsizei depth) {
7276 driver_->fn.glTexStorage3DFn(target, levels, internalformat, width, height,
7277 depth);
7280 void GLApiBase::glTexSubImage2DFn(GLenum target,
7281 GLint level,
7282 GLint xoffset,
7283 GLint yoffset,
7284 GLsizei width,
7285 GLsizei height,
7286 GLenum format,
7287 GLenum type,
7288 const void* pixels) {
7289 driver_->fn.glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
7290 format, type, pixels);
7293 void GLApiBase::glTransformFeedbackVaryingsFn(GLuint program,
7294 GLsizei count,
7295 const char* const* varyings,
7296 GLenum bufferMode) {
7297 driver_->fn.glTransformFeedbackVaryingsFn(program, count, varyings,
7298 bufferMode);
7301 void GLApiBase::glUniform1fFn(GLint location, GLfloat x) {
7302 driver_->fn.glUniform1fFn(location, x);
7305 void GLApiBase::glUniform1fvFn(GLint location,
7306 GLsizei count,
7307 const GLfloat* v) {
7308 driver_->fn.glUniform1fvFn(location, count, v);
7311 void GLApiBase::glUniform1iFn(GLint location, GLint x) {
7312 driver_->fn.glUniform1iFn(location, x);
7315 void GLApiBase::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
7316 driver_->fn.glUniform1ivFn(location, count, v);
7319 void GLApiBase::glUniform1uiFn(GLint location, GLuint v0) {
7320 driver_->fn.glUniform1uiFn(location, v0);
7323 void GLApiBase::glUniform1uivFn(GLint location,
7324 GLsizei count,
7325 const GLuint* v) {
7326 driver_->fn.glUniform1uivFn(location, count, v);
7329 void GLApiBase::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
7330 driver_->fn.glUniform2fFn(location, x, y);
7333 void GLApiBase::glUniform2fvFn(GLint location,
7334 GLsizei count,
7335 const GLfloat* v) {
7336 driver_->fn.glUniform2fvFn(location, count, v);
7339 void GLApiBase::glUniform2iFn(GLint location, GLint x, GLint y) {
7340 driver_->fn.glUniform2iFn(location, x, y);
7343 void GLApiBase::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
7344 driver_->fn.glUniform2ivFn(location, count, v);
7347 void GLApiBase::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
7348 driver_->fn.glUniform2uiFn(location, v0, v1);
7351 void GLApiBase::glUniform2uivFn(GLint location,
7352 GLsizei count,
7353 const GLuint* v) {
7354 driver_->fn.glUniform2uivFn(location, count, v);
7357 void GLApiBase::glUniform3fFn(GLint location, GLfloat x, GLfloat y, GLfloat z) {
7358 driver_->fn.glUniform3fFn(location, x, y, z);
7361 void GLApiBase::glUniform3fvFn(GLint location,
7362 GLsizei count,
7363 const GLfloat* v) {
7364 driver_->fn.glUniform3fvFn(location, count, v);
7367 void GLApiBase::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
7368 driver_->fn.glUniform3iFn(location, x, y, z);
7371 void GLApiBase::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
7372 driver_->fn.glUniform3ivFn(location, count, v);
7375 void GLApiBase::glUniform3uiFn(GLint location,
7376 GLuint v0,
7377 GLuint v1,
7378 GLuint v2) {
7379 driver_->fn.glUniform3uiFn(location, v0, v1, v2);
7382 void GLApiBase::glUniform3uivFn(GLint location,
7383 GLsizei count,
7384 const GLuint* v) {
7385 driver_->fn.glUniform3uivFn(location, count, v);
7388 void GLApiBase::glUniform4fFn(GLint location,
7389 GLfloat x,
7390 GLfloat y,
7391 GLfloat z,
7392 GLfloat w) {
7393 driver_->fn.glUniform4fFn(location, x, y, z, w);
7396 void GLApiBase::glUniform4fvFn(GLint location,
7397 GLsizei count,
7398 const GLfloat* v) {
7399 driver_->fn.glUniform4fvFn(location, count, v);
7402 void GLApiBase::glUniform4iFn(GLint location,
7403 GLint x,
7404 GLint y,
7405 GLint z,
7406 GLint w) {
7407 driver_->fn.glUniform4iFn(location, x, y, z, w);
7410 void GLApiBase::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
7411 driver_->fn.glUniform4ivFn(location, count, v);
7414 void GLApiBase::glUniform4uiFn(GLint location,
7415 GLuint v0,
7416 GLuint v1,
7417 GLuint v2,
7418 GLuint v3) {
7419 driver_->fn.glUniform4uiFn(location, v0, v1, v2, v3);
7422 void GLApiBase::glUniform4uivFn(GLint location,
7423 GLsizei count,
7424 const GLuint* v) {
7425 driver_->fn.glUniform4uivFn(location, count, v);
7428 void GLApiBase::glUniformBlockBindingFn(GLuint program,
7429 GLuint uniformBlockIndex,
7430 GLuint uniformBlockBinding) {
7431 driver_->fn.glUniformBlockBindingFn(program, uniformBlockIndex,
7432 uniformBlockBinding);
7435 void GLApiBase::glUniformMatrix2fvFn(GLint location,
7436 GLsizei count,
7437 GLboolean transpose,
7438 const GLfloat* value) {
7439 driver_->fn.glUniformMatrix2fvFn(location, count, transpose, value);
7442 void GLApiBase::glUniformMatrix2x3fvFn(GLint location,
7443 GLsizei count,
7444 GLboolean transpose,
7445 const GLfloat* value) {
7446 driver_->fn.glUniformMatrix2x3fvFn(location, count, transpose, value);
7449 void GLApiBase::glUniformMatrix2x4fvFn(GLint location,
7450 GLsizei count,
7451 GLboolean transpose,
7452 const GLfloat* value) {
7453 driver_->fn.glUniformMatrix2x4fvFn(location, count, transpose, value);
7456 void GLApiBase::glUniformMatrix3fvFn(GLint location,
7457 GLsizei count,
7458 GLboolean transpose,
7459 const GLfloat* value) {
7460 driver_->fn.glUniformMatrix3fvFn(location, count, transpose, value);
7463 void GLApiBase::glUniformMatrix3x2fvFn(GLint location,
7464 GLsizei count,
7465 GLboolean transpose,
7466 const GLfloat* value) {
7467 driver_->fn.glUniformMatrix3x2fvFn(location, count, transpose, value);
7470 void GLApiBase::glUniformMatrix3x4fvFn(GLint location,
7471 GLsizei count,
7472 GLboolean transpose,
7473 const GLfloat* value) {
7474 driver_->fn.glUniformMatrix3x4fvFn(location, count, transpose, value);
7477 void GLApiBase::glUniformMatrix4fvFn(GLint location,
7478 GLsizei count,
7479 GLboolean transpose,
7480 const GLfloat* value) {
7481 driver_->fn.glUniformMatrix4fvFn(location, count, transpose, value);
7484 void GLApiBase::glUniformMatrix4x2fvFn(GLint location,
7485 GLsizei count,
7486 GLboolean transpose,
7487 const GLfloat* value) {
7488 driver_->fn.glUniformMatrix4x2fvFn(location, count, transpose, value);
7491 void GLApiBase::glUniformMatrix4x3fvFn(GLint location,
7492 GLsizei count,
7493 GLboolean transpose,
7494 const GLfloat* value) {
7495 driver_->fn.glUniformMatrix4x3fvFn(location, count, transpose, value);
7498 GLboolean GLApiBase::glUnmapBufferFn(GLenum target) {
7499 return driver_->fn.glUnmapBufferFn(target);
7502 void GLApiBase::glUseProgramFn(GLuint program) {
7503 driver_->fn.glUseProgramFn(program);
7506 void GLApiBase::glValidateProgramFn(GLuint program) {
7507 driver_->fn.glValidateProgramFn(program);
7510 void GLApiBase::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
7511 driver_->fn.glVertexAttrib1fFn(indx, x);
7514 void GLApiBase::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
7515 driver_->fn.glVertexAttrib1fvFn(indx, values);
7518 void GLApiBase::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
7519 driver_->fn.glVertexAttrib2fFn(indx, x, y);
7522 void GLApiBase::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
7523 driver_->fn.glVertexAttrib2fvFn(indx, values);
7526 void GLApiBase::glVertexAttrib3fFn(GLuint indx,
7527 GLfloat x,
7528 GLfloat y,
7529 GLfloat z) {
7530 driver_->fn.glVertexAttrib3fFn(indx, x, y, z);
7533 void GLApiBase::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
7534 driver_->fn.glVertexAttrib3fvFn(indx, values);
7537 void GLApiBase::glVertexAttrib4fFn(GLuint indx,
7538 GLfloat x,
7539 GLfloat y,
7540 GLfloat z,
7541 GLfloat w) {
7542 driver_->fn.glVertexAttrib4fFn(indx, x, y, z, w);
7545 void GLApiBase::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
7546 driver_->fn.glVertexAttrib4fvFn(indx, values);
7549 void GLApiBase::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
7550 driver_->fn.glVertexAttribDivisorANGLEFn(index, divisor);
7553 void GLApiBase::glVertexAttribI4iFn(GLuint indx,
7554 GLint x,
7555 GLint y,
7556 GLint z,
7557 GLint w) {
7558 driver_->fn.glVertexAttribI4iFn(indx, x, y, z, w);
7561 void GLApiBase::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
7562 driver_->fn.glVertexAttribI4ivFn(indx, values);
7565 void GLApiBase::glVertexAttribI4uiFn(GLuint indx,
7566 GLuint x,
7567 GLuint y,
7568 GLuint z,
7569 GLuint w) {
7570 driver_->fn.glVertexAttribI4uiFn(indx, x, y, z, w);
7573 void GLApiBase::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
7574 driver_->fn.glVertexAttribI4uivFn(indx, values);
7577 void GLApiBase::glVertexAttribIPointerFn(GLuint indx,
7578 GLint size,
7579 GLenum type,
7580 GLsizei stride,
7581 const void* ptr) {
7582 driver_->fn.glVertexAttribIPointerFn(indx, size, type, stride, ptr);
7585 void GLApiBase::glVertexAttribPointerFn(GLuint indx,
7586 GLint size,
7587 GLenum type,
7588 GLboolean normalized,
7589 GLsizei stride,
7590 const void* ptr) {
7591 driver_->fn.glVertexAttribPointerFn(indx, size, type, normalized, stride,
7592 ptr);
7595 void GLApiBase::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
7596 driver_->fn.glViewportFn(x, y, width, height);
7599 GLenum GLApiBase::glWaitSyncFn(GLsync sync,
7600 GLbitfield flags,
7601 GLuint64 timeout) {
7602 return driver_->fn.glWaitSyncFn(sync, flags, timeout);
7605 void TraceGLApi::glActiveTextureFn(GLenum texture) {
7606 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glActiveTexture")
7607 gl_api_->glActiveTextureFn(texture);
7610 void TraceGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
7611 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glAttachShader")
7612 gl_api_->glAttachShaderFn(program, shader);
7615 void TraceGLApi::glBeginQueryFn(GLenum target, GLuint id) {
7616 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginQuery")
7617 gl_api_->glBeginQueryFn(target, id);
7620 void TraceGLApi::glBeginQueryARBFn(GLenum target, GLuint id) {
7621 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginQueryARB")
7622 gl_api_->glBeginQueryARBFn(target, id);
7625 void TraceGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
7626 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBeginTransformFeedback")
7627 gl_api_->glBeginTransformFeedbackFn(primitiveMode);
7630 void TraceGLApi::glBindAttribLocationFn(GLuint program,
7631 GLuint index,
7632 const char* name) {
7633 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindAttribLocation")
7634 gl_api_->glBindAttribLocationFn(program, index, name);
7637 void TraceGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
7638 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBuffer")
7639 gl_api_->glBindBufferFn(target, buffer);
7642 void TraceGLApi::glBindBufferBaseFn(GLenum target,
7643 GLuint index,
7644 GLuint buffer) {
7645 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferBase")
7646 gl_api_->glBindBufferBaseFn(target, index, buffer);
7649 void TraceGLApi::glBindBufferRangeFn(GLenum target,
7650 GLuint index,
7651 GLuint buffer,
7652 GLintptr offset,
7653 GLsizeiptr size) {
7654 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindBufferRange")
7655 gl_api_->glBindBufferRangeFn(target, index, buffer, offset, size);
7658 void TraceGLApi::glBindFragDataLocationFn(GLuint program,
7659 GLuint colorNumber,
7660 const char* name) {
7661 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFragDataLocation")
7662 gl_api_->glBindFragDataLocationFn(program, colorNumber, name);
7665 void TraceGLApi::glBindFragDataLocationIndexedFn(GLuint program,
7666 GLuint colorNumber,
7667 GLuint index,
7668 const char* name) {
7669 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
7670 "TraceGLAPI::glBindFragDataLocationIndexed")
7671 gl_api_->glBindFragDataLocationIndexedFn(program, colorNumber, index, name);
7674 void TraceGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
7675 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindFramebufferEXT")
7676 gl_api_->glBindFramebufferEXTFn(target, framebuffer);
7679 void TraceGLApi::glBindRenderbufferEXTFn(GLenum target, GLuint renderbuffer) {
7680 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindRenderbufferEXT")
7681 gl_api_->glBindRenderbufferEXTFn(target, renderbuffer);
7684 void TraceGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
7685 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindSampler")
7686 gl_api_->glBindSamplerFn(unit, sampler);
7689 void TraceGLApi::glBindTextureFn(GLenum target, GLuint texture) {
7690 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTexture")
7691 gl_api_->glBindTextureFn(target, texture);
7694 void TraceGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
7695 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindTransformFeedback")
7696 gl_api_->glBindTransformFeedbackFn(target, id);
7699 void TraceGLApi::glBindVertexArrayOESFn(GLuint array) {
7700 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBindVertexArrayOES")
7701 gl_api_->glBindVertexArrayOESFn(array);
7704 void TraceGLApi::glBlendBarrierKHRFn(void) {
7705 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendBarrierKHR")
7706 gl_api_->glBlendBarrierKHRFn();
7709 void TraceGLApi::glBlendColorFn(GLclampf red,
7710 GLclampf green,
7711 GLclampf blue,
7712 GLclampf alpha) {
7713 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendColor")
7714 gl_api_->glBlendColorFn(red, green, blue, alpha);
7717 void TraceGLApi::glBlendEquationFn(GLenum mode) {
7718 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquation")
7719 gl_api_->glBlendEquationFn(mode);
7722 void TraceGLApi::glBlendEquationSeparateFn(GLenum modeRGB, GLenum modeAlpha) {
7723 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendEquationSeparate")
7724 gl_api_->glBlendEquationSeparateFn(modeRGB, modeAlpha);
7727 void TraceGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
7728 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFunc")
7729 gl_api_->glBlendFuncFn(sfactor, dfactor);
7732 void TraceGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
7733 GLenum dstRGB,
7734 GLenum srcAlpha,
7735 GLenum dstAlpha) {
7736 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlendFuncSeparate")
7737 gl_api_->glBlendFuncSeparateFn(srcRGB, dstRGB, srcAlpha, dstAlpha);
7740 void TraceGLApi::glBlitFramebufferFn(GLint srcX0,
7741 GLint srcY0,
7742 GLint srcX1,
7743 GLint srcY1,
7744 GLint dstX0,
7745 GLint dstY0,
7746 GLint dstX1,
7747 GLint dstY1,
7748 GLbitfield mask,
7749 GLenum filter) {
7750 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebuffer")
7751 gl_api_->glBlitFramebufferFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
7752 dstY1, mask, filter);
7755 void TraceGLApi::glBlitFramebufferANGLEFn(GLint srcX0,
7756 GLint srcY0,
7757 GLint srcX1,
7758 GLint srcY1,
7759 GLint dstX0,
7760 GLint dstY0,
7761 GLint dstX1,
7762 GLint dstY1,
7763 GLbitfield mask,
7764 GLenum filter) {
7765 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferANGLE")
7766 gl_api_->glBlitFramebufferANGLEFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
7767 dstX1, dstY1, mask, filter);
7770 void TraceGLApi::glBlitFramebufferEXTFn(GLint srcX0,
7771 GLint srcY0,
7772 GLint srcX1,
7773 GLint srcY1,
7774 GLint dstX0,
7775 GLint dstY0,
7776 GLint dstX1,
7777 GLint dstY1,
7778 GLbitfield mask,
7779 GLenum filter) {
7780 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBlitFramebufferEXT")
7781 gl_api_->glBlitFramebufferEXTFn(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0,
7782 dstX1, dstY1, mask, filter);
7785 void TraceGLApi::glBufferDataFn(GLenum target,
7786 GLsizeiptr size,
7787 const void* data,
7788 GLenum usage) {
7789 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferData")
7790 gl_api_->glBufferDataFn(target, size, data, usage);
7793 void TraceGLApi::glBufferSubDataFn(GLenum target,
7794 GLintptr offset,
7795 GLsizeiptr size,
7796 const void* data) {
7797 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glBufferSubData")
7798 gl_api_->glBufferSubDataFn(target, offset, size, data);
7801 GLenum TraceGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
7802 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
7803 "TraceGLAPI::glCheckFramebufferStatusEXT")
7804 return gl_api_->glCheckFramebufferStatusEXTFn(target);
7807 void TraceGLApi::glClearFn(GLbitfield mask) {
7808 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClear")
7809 gl_api_->glClearFn(mask);
7812 void TraceGLApi::glClearBufferfiFn(GLenum buffer,
7813 GLint drawbuffer,
7814 const GLfloat depth,
7815 GLint stencil) {
7816 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfi")
7817 gl_api_->glClearBufferfiFn(buffer, drawbuffer, depth, stencil);
7820 void TraceGLApi::glClearBufferfvFn(GLenum buffer,
7821 GLint drawbuffer,
7822 const GLfloat* value) {
7823 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferfv")
7824 gl_api_->glClearBufferfvFn(buffer, drawbuffer, value);
7827 void TraceGLApi::glClearBufferivFn(GLenum buffer,
7828 GLint drawbuffer,
7829 const GLint* value) {
7830 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferiv")
7831 gl_api_->glClearBufferivFn(buffer, drawbuffer, value);
7834 void TraceGLApi::glClearBufferuivFn(GLenum buffer,
7835 GLint drawbuffer,
7836 const GLuint* value) {
7837 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearBufferuiv")
7838 gl_api_->glClearBufferuivFn(buffer, drawbuffer, value);
7841 void TraceGLApi::glClearColorFn(GLclampf red,
7842 GLclampf green,
7843 GLclampf blue,
7844 GLclampf alpha) {
7845 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearColor")
7846 gl_api_->glClearColorFn(red, green, blue, alpha);
7849 void TraceGLApi::glClearDepthFn(GLclampd depth) {
7850 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepth")
7851 gl_api_->glClearDepthFn(depth);
7854 void TraceGLApi::glClearDepthfFn(GLclampf depth) {
7855 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearDepthf")
7856 gl_api_->glClearDepthfFn(depth);
7859 void TraceGLApi::glClearStencilFn(GLint s) {
7860 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClearStencil")
7861 gl_api_->glClearStencilFn(s);
7864 GLenum TraceGLApi::glClientWaitSyncFn(GLsync sync,
7865 GLbitfield flags,
7866 GLuint64 timeout) {
7867 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glClientWaitSync")
7868 return gl_api_->glClientWaitSyncFn(sync, flags, timeout);
7871 void TraceGLApi::glColorMaskFn(GLboolean red,
7872 GLboolean green,
7873 GLboolean blue,
7874 GLboolean alpha) {
7875 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glColorMask")
7876 gl_api_->glColorMaskFn(red, green, blue, alpha);
7879 void TraceGLApi::glCompileShaderFn(GLuint shader) {
7880 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompileShader")
7881 gl_api_->glCompileShaderFn(shader);
7884 void TraceGLApi::glCompressedTexImage2DFn(GLenum target,
7885 GLint level,
7886 GLenum internalformat,
7887 GLsizei width,
7888 GLsizei height,
7889 GLint border,
7890 GLsizei imageSize,
7891 const void* data) {
7892 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage2D")
7893 gl_api_->glCompressedTexImage2DFn(target, level, internalformat, width,
7894 height, border, imageSize, data);
7897 void TraceGLApi::glCompressedTexImage3DFn(GLenum target,
7898 GLint level,
7899 GLenum internalformat,
7900 GLsizei width,
7901 GLsizei height,
7902 GLsizei depth,
7903 GLint border,
7904 GLsizei imageSize,
7905 const void* data) {
7906 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexImage3D")
7907 gl_api_->glCompressedTexImage3DFn(target, level, internalformat, width,
7908 height, depth, border, imageSize, data);
7911 void TraceGLApi::glCompressedTexSubImage2DFn(GLenum target,
7912 GLint level,
7913 GLint xoffset,
7914 GLint yoffset,
7915 GLsizei width,
7916 GLsizei height,
7917 GLenum format,
7918 GLsizei imageSize,
7919 const void* data) {
7920 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCompressedTexSubImage2D")
7921 gl_api_->glCompressedTexSubImage2DFn(target, level, xoffset, yoffset, width,
7922 height, format, imageSize, data);
7925 void TraceGLApi::glCopyBufferSubDataFn(GLenum readTarget,
7926 GLenum writeTarget,
7927 GLintptr readOffset,
7928 GLintptr writeOffset,
7929 GLsizeiptr size) {
7930 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyBufferSubData")
7931 gl_api_->glCopyBufferSubDataFn(readTarget, writeTarget, readOffset,
7932 writeOffset, size);
7935 void TraceGLApi::glCopyTexImage2DFn(GLenum target,
7936 GLint level,
7937 GLenum internalformat,
7938 GLint x,
7939 GLint y,
7940 GLsizei width,
7941 GLsizei height,
7942 GLint border) {
7943 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexImage2D")
7944 gl_api_->glCopyTexImage2DFn(target, level, internalformat, x, y, width,
7945 height, border);
7948 void TraceGLApi::glCopyTexSubImage2DFn(GLenum target,
7949 GLint level,
7950 GLint xoffset,
7951 GLint yoffset,
7952 GLint x,
7953 GLint y,
7954 GLsizei width,
7955 GLsizei height) {
7956 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage2D")
7957 gl_api_->glCopyTexSubImage2DFn(target, level, xoffset, yoffset, x, y, width,
7958 height);
7961 void TraceGLApi::glCopyTexSubImage3DFn(GLenum target,
7962 GLint level,
7963 GLint xoffset,
7964 GLint yoffset,
7965 GLint zoffset,
7966 GLint x,
7967 GLint y,
7968 GLsizei width,
7969 GLsizei height) {
7970 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCopyTexSubImage3D")
7971 gl_api_->glCopyTexSubImage3DFn(target, level, xoffset, yoffset, zoffset, x, y,
7972 width, height);
7975 GLuint TraceGLApi::glCreateProgramFn(void) {
7976 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateProgram")
7977 return gl_api_->glCreateProgramFn();
7980 GLuint TraceGLApi::glCreateShaderFn(GLenum type) {
7981 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCreateShader")
7982 return gl_api_->glCreateShaderFn(type);
7985 void TraceGLApi::glCullFaceFn(GLenum mode) {
7986 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glCullFace")
7987 gl_api_->glCullFaceFn(mode);
7990 void TraceGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
7991 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteBuffersARB")
7992 gl_api_->glDeleteBuffersARBFn(n, buffers);
7995 void TraceGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
7996 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesAPPLE")
7997 gl_api_->glDeleteFencesAPPLEFn(n, fences);
8000 void TraceGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
8001 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFencesNV")
8002 gl_api_->glDeleteFencesNVFn(n, fences);
8005 void TraceGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
8006 const GLuint* framebuffers) {
8007 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteFramebuffersEXT")
8008 gl_api_->glDeleteFramebuffersEXTFn(n, framebuffers);
8011 void TraceGLApi::glDeleteProgramFn(GLuint program) {
8012 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteProgram")
8013 gl_api_->glDeleteProgramFn(program);
8016 void TraceGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
8017 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteQueries")
8018 gl_api_->glDeleteQueriesFn(n, ids);
8021 void TraceGLApi::glDeleteQueriesARBFn(GLsizei n, const GLuint* ids) {
8022 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteQueriesARB")
8023 gl_api_->glDeleteQueriesARBFn(n, ids);
8026 void TraceGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
8027 const GLuint* renderbuffers) {
8028 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteRenderbuffersEXT")
8029 gl_api_->glDeleteRenderbuffersEXTFn(n, renderbuffers);
8032 void TraceGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
8033 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSamplers")
8034 gl_api_->glDeleteSamplersFn(n, samplers);
8037 void TraceGLApi::glDeleteShaderFn(GLuint shader) {
8038 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteShader")
8039 gl_api_->glDeleteShaderFn(shader);
8042 void TraceGLApi::glDeleteSyncFn(GLsync sync) {
8043 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteSync")
8044 gl_api_->glDeleteSyncFn(sync);
8047 void TraceGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
8048 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTextures")
8049 gl_api_->glDeleteTexturesFn(n, textures);
8052 void TraceGLApi::glDeleteTransformFeedbacksFn(GLsizei n, const GLuint* ids) {
8053 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteTransformFeedbacks")
8054 gl_api_->glDeleteTransformFeedbacksFn(n, ids);
8057 void TraceGLApi::glDeleteVertexArraysOESFn(GLsizei n, const GLuint* arrays) {
8058 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDeleteVertexArraysOES")
8059 gl_api_->glDeleteVertexArraysOESFn(n, arrays);
8062 void TraceGLApi::glDepthFuncFn(GLenum func) {
8063 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthFunc")
8064 gl_api_->glDepthFuncFn(func);
8067 void TraceGLApi::glDepthMaskFn(GLboolean flag) {
8068 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthMask")
8069 gl_api_->glDepthMaskFn(flag);
8072 void TraceGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
8073 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRange")
8074 gl_api_->glDepthRangeFn(zNear, zFar);
8077 void TraceGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
8078 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDepthRangef")
8079 gl_api_->glDepthRangefFn(zNear, zFar);
8082 void TraceGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
8083 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDetachShader")
8084 gl_api_->glDetachShaderFn(program, shader);
8087 void TraceGLApi::glDisableFn(GLenum cap) {
8088 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisable")
8089 gl_api_->glDisableFn(cap);
8092 void TraceGLApi::glDisableVertexAttribArrayFn(GLuint index) {
8093 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDisableVertexAttribArray")
8094 gl_api_->glDisableVertexAttribArrayFn(index);
8097 void TraceGLApi::glDiscardFramebufferEXTFn(GLenum target,
8098 GLsizei numAttachments,
8099 const GLenum* attachments) {
8100 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDiscardFramebufferEXT")
8101 gl_api_->glDiscardFramebufferEXTFn(target, numAttachments, attachments);
8104 void TraceGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
8105 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArrays")
8106 gl_api_->glDrawArraysFn(mode, first, count);
8109 void TraceGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
8110 GLint first,
8111 GLsizei count,
8112 GLsizei primcount) {
8113 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawArraysInstancedANGLE")
8114 gl_api_->glDrawArraysInstancedANGLEFn(mode, first, count, primcount);
8117 void TraceGLApi::glDrawBufferFn(GLenum mode) {
8118 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffer")
8119 gl_api_->glDrawBufferFn(mode);
8122 void TraceGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
8123 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawBuffersARB")
8124 gl_api_->glDrawBuffersARBFn(n, bufs);
8127 void TraceGLApi::glDrawElementsFn(GLenum mode,
8128 GLsizei count,
8129 GLenum type,
8130 const void* indices) {
8131 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawElements")
8132 gl_api_->glDrawElementsFn(mode, count, type, indices);
8135 void TraceGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
8136 GLsizei count,
8137 GLenum type,
8138 const void* indices,
8139 GLsizei primcount) {
8140 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8141 "TraceGLAPI::glDrawElementsInstancedANGLE")
8142 gl_api_->glDrawElementsInstancedANGLEFn(mode, count, type, indices,
8143 primcount);
8146 void TraceGLApi::glDrawRangeElementsFn(GLenum mode,
8147 GLuint start,
8148 GLuint end,
8149 GLsizei count,
8150 GLenum type,
8151 const void* indices) {
8152 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glDrawRangeElements")
8153 gl_api_->glDrawRangeElementsFn(mode, start, end, count, type, indices);
8156 void TraceGLApi::glEGLImageTargetRenderbufferStorageOESFn(GLenum target,
8157 GLeglImageOES image) {
8158 TRACE_EVENT_BINARY_EFFICIENT0(
8159 "gpu", "TraceGLAPI::glEGLImageTargetRenderbufferStorageOES")
8160 gl_api_->glEGLImageTargetRenderbufferStorageOESFn(target, image);
8163 void TraceGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
8164 GLeglImageOES image) {
8165 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8166 "TraceGLAPI::glEGLImageTargetTexture2DOES")
8167 gl_api_->glEGLImageTargetTexture2DOESFn(target, image);
8170 void TraceGLApi::glEnableFn(GLenum cap) {
8171 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnable")
8172 gl_api_->glEnableFn(cap);
8175 void TraceGLApi::glEnableVertexAttribArrayFn(GLuint index) {
8176 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEnableVertexAttribArray")
8177 gl_api_->glEnableVertexAttribArrayFn(index);
8180 void TraceGLApi::glEndQueryFn(GLenum target) {
8181 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndQuery")
8182 gl_api_->glEndQueryFn(target);
8185 void TraceGLApi::glEndQueryARBFn(GLenum target) {
8186 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndQueryARB")
8187 gl_api_->glEndQueryARBFn(target);
8190 void TraceGLApi::glEndTransformFeedbackFn(void) {
8191 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glEndTransformFeedback")
8192 gl_api_->glEndTransformFeedbackFn();
8195 GLsync TraceGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
8196 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFenceSync")
8197 return gl_api_->glFenceSyncFn(condition, flags);
8200 void TraceGLApi::glFinishFn(void) {
8201 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinish")
8202 gl_api_->glFinishFn();
8205 void TraceGLApi::glFinishFenceAPPLEFn(GLuint fence) {
8206 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceAPPLE")
8207 gl_api_->glFinishFenceAPPLEFn(fence);
8210 void TraceGLApi::glFinishFenceNVFn(GLuint fence) {
8211 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFinishFenceNV")
8212 gl_api_->glFinishFenceNVFn(fence);
8215 void TraceGLApi::glFlushFn(void) {
8216 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlush")
8217 gl_api_->glFlushFn();
8220 void TraceGLApi::glFlushMappedBufferRangeFn(GLenum target,
8221 GLintptr offset,
8222 GLsizeiptr length) {
8223 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFlushMappedBufferRange")
8224 gl_api_->glFlushMappedBufferRangeFn(target, offset, length);
8227 void TraceGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
8228 GLenum attachment,
8229 GLenum renderbuffertarget,
8230 GLuint renderbuffer) {
8231 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8232 "TraceGLAPI::glFramebufferRenderbufferEXT")
8233 gl_api_->glFramebufferRenderbufferEXTFn(target, attachment,
8234 renderbuffertarget, renderbuffer);
8237 void TraceGLApi::glFramebufferTexture2DEXTFn(GLenum target,
8238 GLenum attachment,
8239 GLenum textarget,
8240 GLuint texture,
8241 GLint level) {
8242 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTexture2DEXT")
8243 gl_api_->glFramebufferTexture2DEXTFn(target, attachment, textarget, texture,
8244 level);
8247 void TraceGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
8248 GLenum attachment,
8249 GLenum textarget,
8250 GLuint texture,
8251 GLint level,
8252 GLsizei samples) {
8253 TRACE_EVENT_BINARY_EFFICIENT0(
8254 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleEXT")
8255 gl_api_->glFramebufferTexture2DMultisampleEXTFn(target, attachment, textarget,
8256 texture, level, samples);
8259 void TraceGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
8260 GLenum attachment,
8261 GLenum textarget,
8262 GLuint texture,
8263 GLint level,
8264 GLsizei samples) {
8265 TRACE_EVENT_BINARY_EFFICIENT0(
8266 "gpu", "TraceGLAPI::glFramebufferTexture2DMultisampleIMG")
8267 gl_api_->glFramebufferTexture2DMultisampleIMGFn(target, attachment, textarget,
8268 texture, level, samples);
8271 void TraceGLApi::glFramebufferTextureLayerFn(GLenum target,
8272 GLenum attachment,
8273 GLuint texture,
8274 GLint level,
8275 GLint layer) {
8276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFramebufferTextureLayer")
8277 gl_api_->glFramebufferTextureLayerFn(target, attachment, texture, level,
8278 layer);
8281 void TraceGLApi::glFrontFaceFn(GLenum mode) {
8282 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glFrontFace")
8283 gl_api_->glFrontFaceFn(mode);
8286 void TraceGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
8287 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenBuffersARB")
8288 gl_api_->glGenBuffersARBFn(n, buffers);
8291 void TraceGLApi::glGenerateMipmapEXTFn(GLenum target) {
8292 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenerateMipmapEXT")
8293 gl_api_->glGenerateMipmapEXTFn(target);
8296 void TraceGLApi::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
8297 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesAPPLE")
8298 gl_api_->glGenFencesAPPLEFn(n, fences);
8301 void TraceGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
8302 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFencesNV")
8303 gl_api_->glGenFencesNVFn(n, fences);
8306 void TraceGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
8307 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenFramebuffersEXT")
8308 gl_api_->glGenFramebuffersEXTFn(n, framebuffers);
8311 void TraceGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
8312 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenQueries")
8313 gl_api_->glGenQueriesFn(n, ids);
8316 void TraceGLApi::glGenQueriesARBFn(GLsizei n, GLuint* ids) {
8317 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenQueriesARB")
8318 gl_api_->glGenQueriesARBFn(n, ids);
8321 void TraceGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
8322 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenRenderbuffersEXT")
8323 gl_api_->glGenRenderbuffersEXTFn(n, renderbuffers);
8326 void TraceGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
8327 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenSamplers")
8328 gl_api_->glGenSamplersFn(n, samplers);
8331 void TraceGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
8332 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTextures")
8333 gl_api_->glGenTexturesFn(n, textures);
8336 void TraceGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
8337 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenTransformFeedbacks")
8338 gl_api_->glGenTransformFeedbacksFn(n, ids);
8341 void TraceGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
8342 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGenVertexArraysOES")
8343 gl_api_->glGenVertexArraysOESFn(n, arrays);
8346 void TraceGLApi::glGetActiveAttribFn(GLuint program,
8347 GLuint index,
8348 GLsizei bufsize,
8349 GLsizei* length,
8350 GLint* size,
8351 GLenum* type,
8352 char* name) {
8353 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveAttrib")
8354 gl_api_->glGetActiveAttribFn(program, index, bufsize, length, size, type,
8355 name);
8358 void TraceGLApi::glGetActiveUniformFn(GLuint program,
8359 GLuint index,
8360 GLsizei bufsize,
8361 GLsizei* length,
8362 GLint* size,
8363 GLenum* type,
8364 char* name) {
8365 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniform")
8366 gl_api_->glGetActiveUniformFn(program, index, bufsize, length, size, type,
8367 name);
8370 void TraceGLApi::glGetActiveUniformBlockivFn(GLuint program,
8371 GLuint uniformBlockIndex,
8372 GLenum pname,
8373 GLint* params) {
8374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformBlockiv")
8375 gl_api_->glGetActiveUniformBlockivFn(program, uniformBlockIndex, pname,
8376 params);
8379 void TraceGLApi::glGetActiveUniformBlockNameFn(GLuint program,
8380 GLuint uniformBlockIndex,
8381 GLsizei bufSize,
8382 GLsizei* length,
8383 char* uniformBlockName) {
8384 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8385 "TraceGLAPI::glGetActiveUniformBlockName")
8386 gl_api_->glGetActiveUniformBlockNameFn(program, uniformBlockIndex, bufSize,
8387 length, uniformBlockName);
8390 void TraceGLApi::glGetActiveUniformsivFn(GLuint program,
8391 GLsizei uniformCount,
8392 const GLuint* uniformIndices,
8393 GLenum pname,
8394 GLint* params) {
8395 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetActiveUniformsiv")
8396 gl_api_->glGetActiveUniformsivFn(program, uniformCount, uniformIndices, pname,
8397 params);
8400 void TraceGLApi::glGetAttachedShadersFn(GLuint program,
8401 GLsizei maxcount,
8402 GLsizei* count,
8403 GLuint* shaders) {
8404 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttachedShaders")
8405 gl_api_->glGetAttachedShadersFn(program, maxcount, count, shaders);
8408 GLint TraceGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
8409 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetAttribLocation")
8410 return gl_api_->glGetAttribLocationFn(program, name);
8413 void TraceGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
8414 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBooleanv")
8415 gl_api_->glGetBooleanvFn(pname, params);
8418 void TraceGLApi::glGetBufferParameterivFn(GLenum target,
8419 GLenum pname,
8420 GLint* params) {
8421 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetBufferParameteriv")
8422 gl_api_->glGetBufferParameterivFn(target, pname, params);
8425 GLenum TraceGLApi::glGetErrorFn(void) {
8426 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetError")
8427 return gl_api_->glGetErrorFn();
8430 void TraceGLApi::glGetFenceivNVFn(GLuint fence, GLenum pname, GLint* params) {
8431 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFenceivNV")
8432 gl_api_->glGetFenceivNVFn(fence, pname, params);
8435 void TraceGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
8436 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFloatv")
8437 gl_api_->glGetFloatvFn(pname, params);
8440 GLint TraceGLApi::glGetFragDataLocationFn(GLuint program, const char* name) {
8441 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetFragDataLocation")
8442 return gl_api_->glGetFragDataLocationFn(program, name);
8445 void TraceGLApi::glGetFramebufferAttachmentParameterivEXTFn(GLenum target,
8446 GLenum attachment,
8447 GLenum pname,
8448 GLint* params) {
8449 TRACE_EVENT_BINARY_EFFICIENT0(
8450 "gpu", "TraceGLAPI::glGetFramebufferAttachmentParameterivEXT")
8451 gl_api_->glGetFramebufferAttachmentParameterivEXTFn(target, attachment, pname,
8452 params);
8455 GLenum TraceGLApi::glGetGraphicsResetStatusARBFn(void) {
8456 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8457 "TraceGLAPI::glGetGraphicsResetStatusARB")
8458 return gl_api_->glGetGraphicsResetStatusARBFn();
8461 void TraceGLApi::glGetInteger64i_vFn(GLenum target,
8462 GLuint index,
8463 GLint64* data) {
8464 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64i_v")
8465 gl_api_->glGetInteger64i_vFn(target, index, data);
8468 void TraceGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
8469 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInteger64v")
8470 gl_api_->glGetInteger64vFn(pname, params);
8473 void TraceGLApi::glGetIntegeri_vFn(GLenum target, GLuint index, GLint* data) {
8474 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegeri_v")
8475 gl_api_->glGetIntegeri_vFn(target, index, data);
8478 void TraceGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
8479 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetIntegerv")
8480 gl_api_->glGetIntegervFn(pname, params);
8483 void TraceGLApi::glGetInternalformativFn(GLenum target,
8484 GLenum internalformat,
8485 GLenum pname,
8486 GLsizei bufSize,
8487 GLint* params) {
8488 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetInternalformativ")
8489 gl_api_->glGetInternalformativFn(target, internalformat, pname, bufSize,
8490 params);
8493 void TraceGLApi::glGetProgramBinaryFn(GLuint program,
8494 GLsizei bufSize,
8495 GLsizei* length,
8496 GLenum* binaryFormat,
8497 GLvoid* binary) {
8498 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramBinary")
8499 gl_api_->glGetProgramBinaryFn(program, bufSize, length, binaryFormat, binary);
8502 void TraceGLApi::glGetProgramInfoLogFn(GLuint program,
8503 GLsizei bufsize,
8504 GLsizei* length,
8505 char* infolog) {
8506 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramInfoLog")
8507 gl_api_->glGetProgramInfoLogFn(program, bufsize, length, infolog);
8510 void TraceGLApi::glGetProgramivFn(GLuint program, GLenum pname, GLint* params) {
8511 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetProgramiv")
8512 gl_api_->glGetProgramivFn(program, pname, params);
8515 GLint TraceGLApi::glGetProgramResourceLocationFn(GLuint program,
8516 GLenum programInterface,
8517 const char* name) {
8518 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8519 "TraceGLAPI::glGetProgramResourceLocation")
8520 return gl_api_->glGetProgramResourceLocationFn(program, programInterface,
8521 name);
8524 void TraceGLApi::glGetQueryivFn(GLenum target, GLenum pname, GLint* params) {
8525 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryiv")
8526 gl_api_->glGetQueryivFn(target, pname, params);
8529 void TraceGLApi::glGetQueryivARBFn(GLenum target, GLenum pname, GLint* params) {
8530 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryivARB")
8531 gl_api_->glGetQueryivARBFn(target, pname, params);
8534 void TraceGLApi::glGetQueryObjecti64vFn(GLuint id,
8535 GLenum pname,
8536 GLint64* params) {
8537 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjecti64v")
8538 gl_api_->glGetQueryObjecti64vFn(id, pname, params);
8541 void TraceGLApi::glGetQueryObjectivFn(GLuint id, GLenum pname, GLint* params) {
8542 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectiv")
8543 gl_api_->glGetQueryObjectivFn(id, pname, params);
8546 void TraceGLApi::glGetQueryObjectivARBFn(GLuint id,
8547 GLenum pname,
8548 GLint* params) {
8549 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectivARB")
8550 gl_api_->glGetQueryObjectivARBFn(id, pname, params);
8553 void TraceGLApi::glGetQueryObjectui64vFn(GLuint id,
8554 GLenum pname,
8555 GLuint64* params) {
8556 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectui64v")
8557 gl_api_->glGetQueryObjectui64vFn(id, pname, params);
8560 void TraceGLApi::glGetQueryObjectuivFn(GLuint id,
8561 GLenum pname,
8562 GLuint* params) {
8563 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectuiv")
8564 gl_api_->glGetQueryObjectuivFn(id, pname, params);
8567 void TraceGLApi::glGetQueryObjectuivARBFn(GLuint id,
8568 GLenum pname,
8569 GLuint* params) {
8570 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetQueryObjectuivARB")
8571 gl_api_->glGetQueryObjectuivARBFn(id, pname, params);
8574 void TraceGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
8575 GLenum pname,
8576 GLint* params) {
8577 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8578 "TraceGLAPI::glGetRenderbufferParameterivEXT")
8579 gl_api_->glGetRenderbufferParameterivEXTFn(target, pname, params);
8582 void TraceGLApi::glGetSamplerParameterfvFn(GLuint sampler,
8583 GLenum pname,
8584 GLfloat* params) {
8585 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameterfv")
8586 gl_api_->glGetSamplerParameterfvFn(sampler, pname, params);
8589 void TraceGLApi::glGetSamplerParameterivFn(GLuint sampler,
8590 GLenum pname,
8591 GLint* params) {
8592 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSamplerParameteriv")
8593 gl_api_->glGetSamplerParameterivFn(sampler, pname, params);
8596 void TraceGLApi::glGetShaderInfoLogFn(GLuint shader,
8597 GLsizei bufsize,
8598 GLsizei* length,
8599 char* infolog) {
8600 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderInfoLog")
8601 gl_api_->glGetShaderInfoLogFn(shader, bufsize, length, infolog);
8604 void TraceGLApi::glGetShaderivFn(GLuint shader, GLenum pname, GLint* params) {
8605 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderiv")
8606 gl_api_->glGetShaderivFn(shader, pname, params);
8609 void TraceGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
8610 GLenum precisiontype,
8611 GLint* range,
8612 GLint* precision) {
8613 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderPrecisionFormat")
8614 gl_api_->glGetShaderPrecisionFormatFn(shadertype, precisiontype, range,
8615 precision);
8618 void TraceGLApi::glGetShaderSourceFn(GLuint shader,
8619 GLsizei bufsize,
8620 GLsizei* length,
8621 char* source) {
8622 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetShaderSource")
8623 gl_api_->glGetShaderSourceFn(shader, bufsize, length, source);
8626 const GLubyte* TraceGLApi::glGetStringFn(GLenum name) {
8627 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetString")
8628 return gl_api_->glGetStringFn(name);
8631 const GLubyte* TraceGLApi::glGetStringiFn(GLenum name, GLuint index) {
8632 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetStringi")
8633 return gl_api_->glGetStringiFn(name, index);
8636 void TraceGLApi::glGetSyncivFn(GLsync sync,
8637 GLenum pname,
8638 GLsizei bufSize,
8639 GLsizei* length,
8640 GLint* values) {
8641 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetSynciv")
8642 gl_api_->glGetSyncivFn(sync, pname, bufSize, length, values);
8645 void TraceGLApi::glGetTexLevelParameterfvFn(GLenum target,
8646 GLint level,
8647 GLenum pname,
8648 GLfloat* params) {
8649 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameterfv")
8650 gl_api_->glGetTexLevelParameterfvFn(target, level, pname, params);
8653 void TraceGLApi::glGetTexLevelParameterivFn(GLenum target,
8654 GLint level,
8655 GLenum pname,
8656 GLint* params) {
8657 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexLevelParameteriv")
8658 gl_api_->glGetTexLevelParameterivFn(target, level, pname, params);
8661 void TraceGLApi::glGetTexParameterfvFn(GLenum target,
8662 GLenum pname,
8663 GLfloat* params) {
8664 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameterfv")
8665 gl_api_->glGetTexParameterfvFn(target, pname, params);
8668 void TraceGLApi::glGetTexParameterivFn(GLenum target,
8669 GLenum pname,
8670 GLint* params) {
8671 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetTexParameteriv")
8672 gl_api_->glGetTexParameterivFn(target, pname, params);
8675 void TraceGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
8676 GLuint index,
8677 GLsizei bufSize,
8678 GLsizei* length,
8679 GLsizei* size,
8680 GLenum* type,
8681 char* name) {
8682 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8683 "TraceGLAPI::glGetTransformFeedbackVarying")
8684 gl_api_->glGetTransformFeedbackVaryingFn(program, index, bufSize, length,
8685 size, type, name);
8688 void TraceGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
8689 GLsizei bufsize,
8690 GLsizei* length,
8691 char* source) {
8692 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8693 "TraceGLAPI::glGetTranslatedShaderSourceANGLE")
8694 gl_api_->glGetTranslatedShaderSourceANGLEFn(shader, bufsize, length, source);
8697 GLuint TraceGLApi::glGetUniformBlockIndexFn(GLuint program,
8698 const char* uniformBlockName) {
8699 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformBlockIndex")
8700 return gl_api_->glGetUniformBlockIndexFn(program, uniformBlockName);
8703 void TraceGLApi::glGetUniformfvFn(GLuint program,
8704 GLint location,
8705 GLfloat* params) {
8706 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformfv")
8707 gl_api_->glGetUniformfvFn(program, location, params);
8710 void TraceGLApi::glGetUniformIndicesFn(GLuint program,
8711 GLsizei uniformCount,
8712 const char* const* uniformNames,
8713 GLuint* uniformIndices) {
8714 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformIndices")
8715 gl_api_->glGetUniformIndicesFn(program, uniformCount, uniformNames,
8716 uniformIndices);
8719 void TraceGLApi::glGetUniformivFn(GLuint program,
8720 GLint location,
8721 GLint* params) {
8722 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformiv")
8723 gl_api_->glGetUniformivFn(program, location, params);
8726 GLint TraceGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
8727 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetUniformLocation")
8728 return gl_api_->glGetUniformLocationFn(program, name);
8731 void TraceGLApi::glGetVertexAttribfvFn(GLuint index,
8732 GLenum pname,
8733 GLfloat* params) {
8734 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribfv")
8735 gl_api_->glGetVertexAttribfvFn(index, pname, params);
8738 void TraceGLApi::glGetVertexAttribivFn(GLuint index,
8739 GLenum pname,
8740 GLint* params) {
8741 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribiv")
8742 gl_api_->glGetVertexAttribivFn(index, pname, params);
8745 void TraceGLApi::glGetVertexAttribPointervFn(GLuint index,
8746 GLenum pname,
8747 void** pointer) {
8748 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glGetVertexAttribPointerv")
8749 gl_api_->glGetVertexAttribPointervFn(index, pname, pointer);
8752 void TraceGLApi::glHintFn(GLenum target, GLenum mode) {
8753 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glHint")
8754 gl_api_->glHintFn(target, mode);
8757 void TraceGLApi::glInsertEventMarkerEXTFn(GLsizei length, const char* marker) {
8758 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInsertEventMarkerEXT")
8759 gl_api_->glInsertEventMarkerEXTFn(length, marker);
8762 void TraceGLApi::glInvalidateFramebufferFn(GLenum target,
8763 GLsizei numAttachments,
8764 const GLenum* attachments) {
8765 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateFramebuffer")
8766 gl_api_->glInvalidateFramebufferFn(target, numAttachments, attachments);
8769 void TraceGLApi::glInvalidateSubFramebufferFn(GLenum target,
8770 GLsizei numAttachments,
8771 const GLenum* attachments,
8772 GLint x,
8773 GLint y,
8774 GLint width,
8775 GLint height) {
8776 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glInvalidateSubFramebuffer")
8777 gl_api_->glInvalidateSubFramebufferFn(target, numAttachments, attachments, x,
8778 y, width, height);
8781 GLboolean TraceGLApi::glIsBufferFn(GLuint buffer) {
8782 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsBuffer")
8783 return gl_api_->glIsBufferFn(buffer);
8786 GLboolean TraceGLApi::glIsEnabledFn(GLenum cap) {
8787 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsEnabled")
8788 return gl_api_->glIsEnabledFn(cap);
8791 GLboolean TraceGLApi::glIsFenceAPPLEFn(GLuint fence) {
8792 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceAPPLE")
8793 return gl_api_->glIsFenceAPPLEFn(fence);
8796 GLboolean TraceGLApi::glIsFenceNVFn(GLuint fence) {
8797 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFenceNV")
8798 return gl_api_->glIsFenceNVFn(fence);
8801 GLboolean TraceGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
8802 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsFramebufferEXT")
8803 return gl_api_->glIsFramebufferEXTFn(framebuffer);
8806 GLboolean TraceGLApi::glIsProgramFn(GLuint program) {
8807 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsProgram")
8808 return gl_api_->glIsProgramFn(program);
8811 GLboolean TraceGLApi::glIsQueryFn(GLuint query) {
8812 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsQuery")
8813 return gl_api_->glIsQueryFn(query);
8816 GLboolean TraceGLApi::glIsQueryARBFn(GLuint query) {
8817 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsQueryARB")
8818 return gl_api_->glIsQueryARBFn(query);
8821 GLboolean TraceGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
8822 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsRenderbufferEXT")
8823 return gl_api_->glIsRenderbufferEXTFn(renderbuffer);
8826 GLboolean TraceGLApi::glIsSamplerFn(GLuint sampler) {
8827 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSampler")
8828 return gl_api_->glIsSamplerFn(sampler);
8831 GLboolean TraceGLApi::glIsShaderFn(GLuint shader) {
8832 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsShader")
8833 return gl_api_->glIsShaderFn(shader);
8836 GLboolean TraceGLApi::glIsSyncFn(GLsync sync) {
8837 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsSync")
8838 return gl_api_->glIsSyncFn(sync);
8841 GLboolean TraceGLApi::glIsTextureFn(GLuint texture) {
8842 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTexture")
8843 return gl_api_->glIsTextureFn(texture);
8846 GLboolean TraceGLApi::glIsTransformFeedbackFn(GLuint id) {
8847 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsTransformFeedback")
8848 return gl_api_->glIsTransformFeedbackFn(id);
8851 GLboolean TraceGLApi::glIsVertexArrayOESFn(GLuint array) {
8852 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glIsVertexArrayOES")
8853 return gl_api_->glIsVertexArrayOESFn(array);
8856 void TraceGLApi::glLineWidthFn(GLfloat width) {
8857 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLineWidth")
8858 gl_api_->glLineWidthFn(width);
8861 void TraceGLApi::glLinkProgramFn(GLuint program) {
8862 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glLinkProgram")
8863 gl_api_->glLinkProgramFn(program);
8866 void* TraceGLApi::glMapBufferFn(GLenum target, GLenum access) {
8867 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBuffer")
8868 return gl_api_->glMapBufferFn(target, access);
8871 void* TraceGLApi::glMapBufferRangeFn(GLenum target,
8872 GLintptr offset,
8873 GLsizeiptr length,
8874 GLbitfield access) {
8875 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMapBufferRange")
8876 return gl_api_->glMapBufferRangeFn(target, offset, length, access);
8879 void TraceGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
8880 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadfEXT")
8881 gl_api_->glMatrixLoadfEXTFn(matrixMode, m);
8884 void TraceGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
8885 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glMatrixLoadIdentityEXT")
8886 gl_api_->glMatrixLoadIdentityEXTFn(matrixMode);
8889 void TraceGLApi::glPauseTransformFeedbackFn(void) {
8890 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPauseTransformFeedback")
8891 gl_api_->glPauseTransformFeedbackFn();
8894 void TraceGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
8895 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPixelStorei")
8896 gl_api_->glPixelStoreiFn(pname, param);
8899 void TraceGLApi::glPointParameteriFn(GLenum pname, GLint param) {
8900 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPointParameteri")
8901 gl_api_->glPointParameteriFn(pname, param);
8904 void TraceGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
8905 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPolygonOffset")
8906 gl_api_->glPolygonOffsetFn(factor, units);
8909 void TraceGLApi::glPopGroupMarkerEXTFn(void) {
8910 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPopGroupMarkerEXT")
8911 gl_api_->glPopGroupMarkerEXTFn();
8914 void TraceGLApi::glProgramBinaryFn(GLuint program,
8915 GLenum binaryFormat,
8916 const GLvoid* binary,
8917 GLsizei length) {
8918 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramBinary")
8919 gl_api_->glProgramBinaryFn(program, binaryFormat, binary, length);
8922 void TraceGLApi::glProgramParameteriFn(GLuint program,
8923 GLenum pname,
8924 GLint value) {
8925 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glProgramParameteri")
8926 gl_api_->glProgramParameteriFn(program, pname, value);
8929 void TraceGLApi::glPushGroupMarkerEXTFn(GLsizei length, const char* marker) {
8930 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glPushGroupMarkerEXT")
8931 gl_api_->glPushGroupMarkerEXTFn(length, marker);
8934 void TraceGLApi::glQueryCounterFn(GLuint id, GLenum target) {
8935 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glQueryCounter")
8936 gl_api_->glQueryCounterFn(id, target);
8939 void TraceGLApi::glReadBufferFn(GLenum src) {
8940 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadBuffer")
8941 gl_api_->glReadBufferFn(src);
8944 void TraceGLApi::glReadPixelsFn(GLint x,
8945 GLint y,
8946 GLsizei width,
8947 GLsizei height,
8948 GLenum format,
8949 GLenum type,
8950 void* pixels) {
8951 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReadPixels")
8952 gl_api_->glReadPixelsFn(x, y, width, height, format, type, pixels);
8955 void TraceGLApi::glReleaseShaderCompilerFn(void) {
8956 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glReleaseShaderCompiler")
8957 gl_api_->glReleaseShaderCompilerFn();
8960 void TraceGLApi::glRenderbufferStorageEXTFn(GLenum target,
8961 GLenum internalformat,
8962 GLsizei width,
8963 GLsizei height) {
8964 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glRenderbufferStorageEXT")
8965 gl_api_->glRenderbufferStorageEXTFn(target, internalformat, width, height);
8968 void TraceGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
8969 GLsizei samples,
8970 GLenum internalformat,
8971 GLsizei width,
8972 GLsizei height) {
8973 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
8974 "TraceGLAPI::glRenderbufferStorageMultisample")
8975 gl_api_->glRenderbufferStorageMultisampleFn(target, samples, internalformat,
8976 width, height);
8979 void TraceGLApi::glRenderbufferStorageMultisampleANGLEFn(GLenum target,
8980 GLsizei samples,
8981 GLenum internalformat,
8982 GLsizei width,
8983 GLsizei height) {
8984 TRACE_EVENT_BINARY_EFFICIENT0(
8985 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleANGLE")
8986 gl_api_->glRenderbufferStorageMultisampleANGLEFn(
8987 target, samples, internalformat, width, height);
8990 void TraceGLApi::glRenderbufferStorageMultisampleEXTFn(GLenum target,
8991 GLsizei samples,
8992 GLenum internalformat,
8993 GLsizei width,
8994 GLsizei height) {
8995 TRACE_EVENT_BINARY_EFFICIENT0(
8996 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleEXT")
8997 gl_api_->glRenderbufferStorageMultisampleEXTFn(target, samples,
8998 internalformat, width, height);
9001 void TraceGLApi::glRenderbufferStorageMultisampleIMGFn(GLenum target,
9002 GLsizei samples,
9003 GLenum internalformat,
9004 GLsizei width,
9005 GLsizei height) {
9006 TRACE_EVENT_BINARY_EFFICIENT0(
9007 "gpu", "TraceGLAPI::glRenderbufferStorageMultisampleIMG")
9008 gl_api_->glRenderbufferStorageMultisampleIMGFn(target, samples,
9009 internalformat, width, height);
9012 void TraceGLApi::glResumeTransformFeedbackFn(void) {
9013 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glResumeTransformFeedback")
9014 gl_api_->glResumeTransformFeedbackFn();
9017 void TraceGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
9018 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSampleCoverage")
9019 gl_api_->glSampleCoverageFn(value, invert);
9022 void TraceGLApi::glSamplerParameterfFn(GLuint sampler,
9023 GLenum pname,
9024 GLfloat param) {
9025 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterf")
9026 gl_api_->glSamplerParameterfFn(sampler, pname, param);
9029 void TraceGLApi::glSamplerParameterfvFn(GLuint sampler,
9030 GLenum pname,
9031 const GLfloat* params) {
9032 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameterfv")
9033 gl_api_->glSamplerParameterfvFn(sampler, pname, params);
9036 void TraceGLApi::glSamplerParameteriFn(GLuint sampler,
9037 GLenum pname,
9038 GLint param) {
9039 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteri")
9040 gl_api_->glSamplerParameteriFn(sampler, pname, param);
9043 void TraceGLApi::glSamplerParameterivFn(GLuint sampler,
9044 GLenum pname,
9045 const GLint* params) {
9046 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSamplerParameteriv")
9047 gl_api_->glSamplerParameterivFn(sampler, pname, params);
9050 void TraceGLApi::glScissorFn(GLint x, GLint y, GLsizei width, GLsizei height) {
9051 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glScissor")
9052 gl_api_->glScissorFn(x, y, width, height);
9055 void TraceGLApi::glSetFenceAPPLEFn(GLuint fence) {
9056 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceAPPLE")
9057 gl_api_->glSetFenceAPPLEFn(fence);
9060 void TraceGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
9061 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glSetFenceNV")
9062 gl_api_->glSetFenceNVFn(fence, condition);
9065 void TraceGLApi::glShaderBinaryFn(GLsizei n,
9066 const GLuint* shaders,
9067 GLenum binaryformat,
9068 const void* binary,
9069 GLsizei length) {
9070 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderBinary")
9071 gl_api_->glShaderBinaryFn(n, shaders, binaryformat, binary, length);
9074 void TraceGLApi::glShaderSourceFn(GLuint shader,
9075 GLsizei count,
9076 const char* const* str,
9077 const GLint* length) {
9078 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glShaderSource")
9079 gl_api_->glShaderSourceFn(shader, count, str, length);
9082 void TraceGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
9083 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFunc")
9084 gl_api_->glStencilFuncFn(func, ref, mask);
9087 void TraceGLApi::glStencilFuncSeparateFn(GLenum face,
9088 GLenum func,
9089 GLint ref,
9090 GLuint mask) {
9091 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilFuncSeparate")
9092 gl_api_->glStencilFuncSeparateFn(face, func, ref, mask);
9095 void TraceGLApi::glStencilMaskFn(GLuint mask) {
9096 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMask")
9097 gl_api_->glStencilMaskFn(mask);
9100 void TraceGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
9101 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilMaskSeparate")
9102 gl_api_->glStencilMaskSeparateFn(face, mask);
9105 void TraceGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
9106 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOp")
9107 gl_api_->glStencilOpFn(fail, zfail, zpass);
9110 void TraceGLApi::glStencilOpSeparateFn(GLenum face,
9111 GLenum fail,
9112 GLenum zfail,
9113 GLenum zpass) {
9114 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glStencilOpSeparate")
9115 gl_api_->glStencilOpSeparateFn(face, fail, zfail, zpass);
9118 GLboolean TraceGLApi::glTestFenceAPPLEFn(GLuint fence) {
9119 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceAPPLE")
9120 return gl_api_->glTestFenceAPPLEFn(fence);
9123 GLboolean TraceGLApi::glTestFenceNVFn(GLuint fence) {
9124 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTestFenceNV")
9125 return gl_api_->glTestFenceNVFn(fence);
9128 void TraceGLApi::glTexImage2DFn(GLenum target,
9129 GLint level,
9130 GLint internalformat,
9131 GLsizei width,
9132 GLsizei height,
9133 GLint border,
9134 GLenum format,
9135 GLenum type,
9136 const void* pixels) {
9137 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage2D")
9138 gl_api_->glTexImage2DFn(target, level, internalformat, width, height, border,
9139 format, type, pixels);
9142 void TraceGLApi::glTexImage3DFn(GLenum target,
9143 GLint level,
9144 GLint internalformat,
9145 GLsizei width,
9146 GLsizei height,
9147 GLsizei depth,
9148 GLint border,
9149 GLenum format,
9150 GLenum type,
9151 const void* pixels) {
9152 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexImage3D")
9153 gl_api_->glTexImage3DFn(target, level, internalformat, width, height, depth,
9154 border, format, type, pixels);
9157 void TraceGLApi::glTexParameterfFn(GLenum target, GLenum pname, GLfloat param) {
9158 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterf")
9159 gl_api_->glTexParameterfFn(target, pname, param);
9162 void TraceGLApi::glTexParameterfvFn(GLenum target,
9163 GLenum pname,
9164 const GLfloat* params) {
9165 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameterfv")
9166 gl_api_->glTexParameterfvFn(target, pname, params);
9169 void TraceGLApi::glTexParameteriFn(GLenum target, GLenum pname, GLint param) {
9170 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteri")
9171 gl_api_->glTexParameteriFn(target, pname, param);
9174 void TraceGLApi::glTexParameterivFn(GLenum target,
9175 GLenum pname,
9176 const GLint* params) {
9177 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexParameteriv")
9178 gl_api_->glTexParameterivFn(target, pname, params);
9181 void TraceGLApi::glTexStorage2DEXTFn(GLenum target,
9182 GLsizei levels,
9183 GLenum internalformat,
9184 GLsizei width,
9185 GLsizei height) {
9186 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage2DEXT")
9187 gl_api_->glTexStorage2DEXTFn(target, levels, internalformat, width, height);
9190 void TraceGLApi::glTexStorage3DFn(GLenum target,
9191 GLsizei levels,
9192 GLenum internalformat,
9193 GLsizei width,
9194 GLsizei height,
9195 GLsizei depth) {
9196 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexStorage3D")
9197 gl_api_->glTexStorage3DFn(target, levels, internalformat, width, height,
9198 depth);
9201 void TraceGLApi::glTexSubImage2DFn(GLenum target,
9202 GLint level,
9203 GLint xoffset,
9204 GLint yoffset,
9205 GLsizei width,
9206 GLsizei height,
9207 GLenum format,
9208 GLenum type,
9209 const void* pixels) {
9210 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glTexSubImage2D")
9211 gl_api_->glTexSubImage2DFn(target, level, xoffset, yoffset, width, height,
9212 format, type, pixels);
9215 void TraceGLApi::glTransformFeedbackVaryingsFn(GLuint program,
9216 GLsizei count,
9217 const char* const* varyings,
9218 GLenum bufferMode) {
9219 TRACE_EVENT_BINARY_EFFICIENT0("gpu",
9220 "TraceGLAPI::glTransformFeedbackVaryings")
9221 gl_api_->glTransformFeedbackVaryingsFn(program, count, varyings, bufferMode);
9224 void TraceGLApi::glUniform1fFn(GLint location, GLfloat x) {
9225 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1f")
9226 gl_api_->glUniform1fFn(location, x);
9229 void TraceGLApi::glUniform1fvFn(GLint location,
9230 GLsizei count,
9231 const GLfloat* v) {
9232 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1fv")
9233 gl_api_->glUniform1fvFn(location, count, v);
9236 void TraceGLApi::glUniform1iFn(GLint location, GLint x) {
9237 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1i")
9238 gl_api_->glUniform1iFn(location, x);
9241 void TraceGLApi::glUniform1ivFn(GLint location, GLsizei count, const GLint* v) {
9242 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1iv")
9243 gl_api_->glUniform1ivFn(location, count, v);
9246 void TraceGLApi::glUniform1uiFn(GLint location, GLuint v0) {
9247 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1ui")
9248 gl_api_->glUniform1uiFn(location, v0);
9251 void TraceGLApi::glUniform1uivFn(GLint location,
9252 GLsizei count,
9253 const GLuint* v) {
9254 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform1uiv")
9255 gl_api_->glUniform1uivFn(location, count, v);
9258 void TraceGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
9259 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2f")
9260 gl_api_->glUniform2fFn(location, x, y);
9263 void TraceGLApi::glUniform2fvFn(GLint location,
9264 GLsizei count,
9265 const GLfloat* v) {
9266 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2fv")
9267 gl_api_->glUniform2fvFn(location, count, v);
9270 void TraceGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
9271 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2i")
9272 gl_api_->glUniform2iFn(location, x, y);
9275 void TraceGLApi::glUniform2ivFn(GLint location, GLsizei count, const GLint* v) {
9276 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2iv")
9277 gl_api_->glUniform2ivFn(location, count, v);
9280 void TraceGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
9281 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2ui")
9282 gl_api_->glUniform2uiFn(location, v0, v1);
9285 void TraceGLApi::glUniform2uivFn(GLint location,
9286 GLsizei count,
9287 const GLuint* v) {
9288 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform2uiv")
9289 gl_api_->glUniform2uivFn(location, count, v);
9292 void TraceGLApi::glUniform3fFn(GLint location,
9293 GLfloat x,
9294 GLfloat y,
9295 GLfloat z) {
9296 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3f")
9297 gl_api_->glUniform3fFn(location, x, y, z);
9300 void TraceGLApi::glUniform3fvFn(GLint location,
9301 GLsizei count,
9302 const GLfloat* v) {
9303 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3fv")
9304 gl_api_->glUniform3fvFn(location, count, v);
9307 void TraceGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
9308 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3i")
9309 gl_api_->glUniform3iFn(location, x, y, z);
9312 void TraceGLApi::glUniform3ivFn(GLint location, GLsizei count, const GLint* v) {
9313 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3iv")
9314 gl_api_->glUniform3ivFn(location, count, v);
9317 void TraceGLApi::glUniform3uiFn(GLint location,
9318 GLuint v0,
9319 GLuint v1,
9320 GLuint v2) {
9321 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3ui")
9322 gl_api_->glUniform3uiFn(location, v0, v1, v2);
9325 void TraceGLApi::glUniform3uivFn(GLint location,
9326 GLsizei count,
9327 const GLuint* v) {
9328 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform3uiv")
9329 gl_api_->glUniform3uivFn(location, count, v);
9332 void TraceGLApi::glUniform4fFn(GLint location,
9333 GLfloat x,
9334 GLfloat y,
9335 GLfloat z,
9336 GLfloat w) {
9337 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4f")
9338 gl_api_->glUniform4fFn(location, x, y, z, w);
9341 void TraceGLApi::glUniform4fvFn(GLint location,
9342 GLsizei count,
9343 const GLfloat* v) {
9344 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4fv")
9345 gl_api_->glUniform4fvFn(location, count, v);
9348 void TraceGLApi::glUniform4iFn(GLint location,
9349 GLint x,
9350 GLint y,
9351 GLint z,
9352 GLint w) {
9353 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4i")
9354 gl_api_->glUniform4iFn(location, x, y, z, w);
9357 void TraceGLApi::glUniform4ivFn(GLint location, GLsizei count, const GLint* v) {
9358 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4iv")
9359 gl_api_->glUniform4ivFn(location, count, v);
9362 void TraceGLApi::glUniform4uiFn(GLint location,
9363 GLuint v0,
9364 GLuint v1,
9365 GLuint v2,
9366 GLuint v3) {
9367 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4ui")
9368 gl_api_->glUniform4uiFn(location, v0, v1, v2, v3);
9371 void TraceGLApi::glUniform4uivFn(GLint location,
9372 GLsizei count,
9373 const GLuint* v) {
9374 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniform4uiv")
9375 gl_api_->glUniform4uivFn(location, count, v);
9378 void TraceGLApi::glUniformBlockBindingFn(GLuint program,
9379 GLuint uniformBlockIndex,
9380 GLuint uniformBlockBinding) {
9381 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformBlockBinding")
9382 gl_api_->glUniformBlockBindingFn(program, uniformBlockIndex,
9383 uniformBlockBinding);
9386 void TraceGLApi::glUniformMatrix2fvFn(GLint location,
9387 GLsizei count,
9388 GLboolean transpose,
9389 const GLfloat* value) {
9390 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2fv")
9391 gl_api_->glUniformMatrix2fvFn(location, count, transpose, value);
9394 void TraceGLApi::glUniformMatrix2x3fvFn(GLint location,
9395 GLsizei count,
9396 GLboolean transpose,
9397 const GLfloat* value) {
9398 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x3fv")
9399 gl_api_->glUniformMatrix2x3fvFn(location, count, transpose, value);
9402 void TraceGLApi::glUniformMatrix2x4fvFn(GLint location,
9403 GLsizei count,
9404 GLboolean transpose,
9405 const GLfloat* value) {
9406 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix2x4fv")
9407 gl_api_->glUniformMatrix2x4fvFn(location, count, transpose, value);
9410 void TraceGLApi::glUniformMatrix3fvFn(GLint location,
9411 GLsizei count,
9412 GLboolean transpose,
9413 const GLfloat* value) {
9414 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3fv")
9415 gl_api_->glUniformMatrix3fvFn(location, count, transpose, value);
9418 void TraceGLApi::glUniformMatrix3x2fvFn(GLint location,
9419 GLsizei count,
9420 GLboolean transpose,
9421 const GLfloat* value) {
9422 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x2fv")
9423 gl_api_->glUniformMatrix3x2fvFn(location, count, transpose, value);
9426 void TraceGLApi::glUniformMatrix3x4fvFn(GLint location,
9427 GLsizei count,
9428 GLboolean transpose,
9429 const GLfloat* value) {
9430 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix3x4fv")
9431 gl_api_->glUniformMatrix3x4fvFn(location, count, transpose, value);
9434 void TraceGLApi::glUniformMatrix4fvFn(GLint location,
9435 GLsizei count,
9436 GLboolean transpose,
9437 const GLfloat* value) {
9438 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4fv")
9439 gl_api_->glUniformMatrix4fvFn(location, count, transpose, value);
9442 void TraceGLApi::glUniformMatrix4x2fvFn(GLint location,
9443 GLsizei count,
9444 GLboolean transpose,
9445 const GLfloat* value) {
9446 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x2fv")
9447 gl_api_->glUniformMatrix4x2fvFn(location, count, transpose, value);
9450 void TraceGLApi::glUniformMatrix4x3fvFn(GLint location,
9451 GLsizei count,
9452 GLboolean transpose,
9453 const GLfloat* value) {
9454 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUniformMatrix4x3fv")
9455 gl_api_->glUniformMatrix4x3fvFn(location, count, transpose, value);
9458 GLboolean TraceGLApi::glUnmapBufferFn(GLenum target) {
9459 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUnmapBuffer")
9460 return gl_api_->glUnmapBufferFn(target);
9463 void TraceGLApi::glUseProgramFn(GLuint program) {
9464 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glUseProgram")
9465 gl_api_->glUseProgramFn(program);
9468 void TraceGLApi::glValidateProgramFn(GLuint program) {
9469 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glValidateProgram")
9470 gl_api_->glValidateProgramFn(program);
9473 void TraceGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
9474 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1f")
9475 gl_api_->glVertexAttrib1fFn(indx, x);
9478 void TraceGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
9479 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib1fv")
9480 gl_api_->glVertexAttrib1fvFn(indx, values);
9483 void TraceGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
9484 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2f")
9485 gl_api_->glVertexAttrib2fFn(indx, x, y);
9488 void TraceGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
9489 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib2fv")
9490 gl_api_->glVertexAttrib2fvFn(indx, values);
9493 void TraceGLApi::glVertexAttrib3fFn(GLuint indx,
9494 GLfloat x,
9495 GLfloat y,
9496 GLfloat z) {
9497 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3f")
9498 gl_api_->glVertexAttrib3fFn(indx, x, y, z);
9501 void TraceGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
9502 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib3fv")
9503 gl_api_->glVertexAttrib3fvFn(indx, values);
9506 void TraceGLApi::glVertexAttrib4fFn(GLuint indx,
9507 GLfloat x,
9508 GLfloat y,
9509 GLfloat z,
9510 GLfloat w) {
9511 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4f")
9512 gl_api_->glVertexAttrib4fFn(indx, x, y, z, w);
9515 void TraceGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
9516 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttrib4fv")
9517 gl_api_->glVertexAttrib4fvFn(indx, values);
9520 void TraceGLApi::glVertexAttribDivisorANGLEFn(GLuint index, GLuint divisor) {
9521 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribDivisorANGLE")
9522 gl_api_->glVertexAttribDivisorANGLEFn(index, divisor);
9525 void TraceGLApi::glVertexAttribI4iFn(GLuint indx,
9526 GLint x,
9527 GLint y,
9528 GLint z,
9529 GLint w) {
9530 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4i")
9531 gl_api_->glVertexAttribI4iFn(indx, x, y, z, w);
9534 void TraceGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
9535 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4iv")
9536 gl_api_->glVertexAttribI4ivFn(indx, values);
9539 void TraceGLApi::glVertexAttribI4uiFn(GLuint indx,
9540 GLuint x,
9541 GLuint y,
9542 GLuint z,
9543 GLuint w) {
9544 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4ui")
9545 gl_api_->glVertexAttribI4uiFn(indx, x, y, z, w);
9548 void TraceGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
9549 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribI4uiv")
9550 gl_api_->glVertexAttribI4uivFn(indx, values);
9553 void TraceGLApi::glVertexAttribIPointerFn(GLuint indx,
9554 GLint size,
9555 GLenum type,
9556 GLsizei stride,
9557 const void* ptr) {
9558 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribIPointer")
9559 gl_api_->glVertexAttribIPointerFn(indx, size, type, stride, ptr);
9562 void TraceGLApi::glVertexAttribPointerFn(GLuint indx,
9563 GLint size,
9564 GLenum type,
9565 GLboolean normalized,
9566 GLsizei stride,
9567 const void* ptr) {
9568 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glVertexAttribPointer")
9569 gl_api_->glVertexAttribPointerFn(indx, size, type, normalized, stride, ptr);
9572 void TraceGLApi::glViewportFn(GLint x, GLint y, GLsizei width, GLsizei height) {
9573 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glViewport")
9574 gl_api_->glViewportFn(x, y, width, height);
9577 GLenum TraceGLApi::glWaitSyncFn(GLsync sync,
9578 GLbitfield flags,
9579 GLuint64 timeout) {
9580 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::glWaitSync")
9581 return gl_api_->glWaitSyncFn(sync, flags, timeout);
9584 void NoContextGLApi::glActiveTextureFn(GLenum texture) {
9585 NOTREACHED() << "Trying to call glActiveTexture() without current GL context";
9586 LOG(ERROR) << "Trying to call glActiveTexture() without current GL context";
9589 void NoContextGLApi::glAttachShaderFn(GLuint program, GLuint shader) {
9590 NOTREACHED() << "Trying to call glAttachShader() without current GL context";
9591 LOG(ERROR) << "Trying to call glAttachShader() without current GL context";
9594 void NoContextGLApi::glBeginQueryFn(GLenum target, GLuint id) {
9595 NOTREACHED() << "Trying to call glBeginQuery() without current GL context";
9596 LOG(ERROR) << "Trying to call glBeginQuery() without current GL context";
9599 void NoContextGLApi::glBeginQueryARBFn(GLenum target, GLuint id) {
9600 NOTREACHED() << "Trying to call glBeginQueryARB() without current GL context";
9601 LOG(ERROR) << "Trying to call glBeginQueryARB() without current GL context";
9604 void NoContextGLApi::glBeginTransformFeedbackFn(GLenum primitiveMode) {
9605 NOTREACHED()
9606 << "Trying to call glBeginTransformFeedback() without current GL context";
9607 LOG(ERROR)
9608 << "Trying to call glBeginTransformFeedback() without current GL context";
9611 void NoContextGLApi::glBindAttribLocationFn(GLuint program,
9612 GLuint index,
9613 const char* name) {
9614 NOTREACHED()
9615 << "Trying to call glBindAttribLocation() without current GL context";
9616 LOG(ERROR)
9617 << "Trying to call glBindAttribLocation() without current GL context";
9620 void NoContextGLApi::glBindBufferFn(GLenum target, GLuint buffer) {
9621 NOTREACHED() << "Trying to call glBindBuffer() without current GL context";
9622 LOG(ERROR) << "Trying to call glBindBuffer() without current GL context";
9625 void NoContextGLApi::glBindBufferBaseFn(GLenum target,
9626 GLuint index,
9627 GLuint buffer) {
9628 NOTREACHED()
9629 << "Trying to call glBindBufferBase() without current GL context";
9630 LOG(ERROR) << "Trying to call glBindBufferBase() without current GL context";
9633 void NoContextGLApi::glBindBufferRangeFn(GLenum target,
9634 GLuint index,
9635 GLuint buffer,
9636 GLintptr offset,
9637 GLsizeiptr size) {
9638 NOTREACHED()
9639 << "Trying to call glBindBufferRange() without current GL context";
9640 LOG(ERROR) << "Trying to call glBindBufferRange() without current GL context";
9643 void NoContextGLApi::glBindFragDataLocationFn(GLuint program,
9644 GLuint colorNumber,
9645 const char* name) {
9646 NOTREACHED()
9647 << "Trying to call glBindFragDataLocation() without current GL context";
9648 LOG(ERROR)
9649 << "Trying to call glBindFragDataLocation() without current GL context";
9652 void NoContextGLApi::glBindFragDataLocationIndexedFn(GLuint program,
9653 GLuint colorNumber,
9654 GLuint index,
9655 const char* name) {
9656 NOTREACHED() << "Trying to call glBindFragDataLocationIndexed() without "
9657 "current GL context";
9658 LOG(ERROR) << "Trying to call glBindFragDataLocationIndexed() without "
9659 "current GL context";
9662 void NoContextGLApi::glBindFramebufferEXTFn(GLenum target, GLuint framebuffer) {
9663 NOTREACHED()
9664 << "Trying to call glBindFramebufferEXT() without current GL context";
9665 LOG(ERROR)
9666 << "Trying to call glBindFramebufferEXT() without current GL context";
9669 void NoContextGLApi::glBindRenderbufferEXTFn(GLenum target,
9670 GLuint renderbuffer) {
9671 NOTREACHED()
9672 << "Trying to call glBindRenderbufferEXT() without current GL context";
9673 LOG(ERROR)
9674 << "Trying to call glBindRenderbufferEXT() without current GL context";
9677 void NoContextGLApi::glBindSamplerFn(GLuint unit, GLuint sampler) {
9678 NOTREACHED() << "Trying to call glBindSampler() without current GL context";
9679 LOG(ERROR) << "Trying to call glBindSampler() without current GL context";
9682 void NoContextGLApi::glBindTextureFn(GLenum target, GLuint texture) {
9683 NOTREACHED() << "Trying to call glBindTexture() without current GL context";
9684 LOG(ERROR) << "Trying to call glBindTexture() without current GL context";
9687 void NoContextGLApi::glBindTransformFeedbackFn(GLenum target, GLuint id) {
9688 NOTREACHED()
9689 << "Trying to call glBindTransformFeedback() without current GL context";
9690 LOG(ERROR)
9691 << "Trying to call glBindTransformFeedback() without current GL context";
9694 void NoContextGLApi::glBindVertexArrayOESFn(GLuint array) {
9695 NOTREACHED()
9696 << "Trying to call glBindVertexArrayOES() without current GL context";
9697 LOG(ERROR)
9698 << "Trying to call glBindVertexArrayOES() without current GL context";
9701 void NoContextGLApi::glBlendBarrierKHRFn(void) {
9702 NOTREACHED()
9703 << "Trying to call glBlendBarrierKHR() without current GL context";
9704 LOG(ERROR) << "Trying to call glBlendBarrierKHR() without current GL context";
9707 void NoContextGLApi::glBlendColorFn(GLclampf red,
9708 GLclampf green,
9709 GLclampf blue,
9710 GLclampf alpha) {
9711 NOTREACHED() << "Trying to call glBlendColor() without current GL context";
9712 LOG(ERROR) << "Trying to call glBlendColor() without current GL context";
9715 void NoContextGLApi::glBlendEquationFn(GLenum mode) {
9716 NOTREACHED() << "Trying to call glBlendEquation() without current GL context";
9717 LOG(ERROR) << "Trying to call glBlendEquation() without current GL context";
9720 void NoContextGLApi::glBlendEquationSeparateFn(GLenum modeRGB,
9721 GLenum modeAlpha) {
9722 NOTREACHED()
9723 << "Trying to call glBlendEquationSeparate() without current GL context";
9724 LOG(ERROR)
9725 << "Trying to call glBlendEquationSeparate() without current GL context";
9728 void NoContextGLApi::glBlendFuncFn(GLenum sfactor, GLenum dfactor) {
9729 NOTREACHED() << "Trying to call glBlendFunc() without current GL context";
9730 LOG(ERROR) << "Trying to call glBlendFunc() without current GL context";
9733 void NoContextGLApi::glBlendFuncSeparateFn(GLenum srcRGB,
9734 GLenum dstRGB,
9735 GLenum srcAlpha,
9736 GLenum dstAlpha) {
9737 NOTREACHED()
9738 << "Trying to call glBlendFuncSeparate() without current GL context";
9739 LOG(ERROR)
9740 << "Trying to call glBlendFuncSeparate() without current GL context";
9743 void NoContextGLApi::glBlitFramebufferFn(GLint srcX0,
9744 GLint srcY0,
9745 GLint srcX1,
9746 GLint srcY1,
9747 GLint dstX0,
9748 GLint dstY0,
9749 GLint dstX1,
9750 GLint dstY1,
9751 GLbitfield mask,
9752 GLenum filter) {
9753 NOTREACHED()
9754 << "Trying to call glBlitFramebuffer() without current GL context";
9755 LOG(ERROR) << "Trying to call glBlitFramebuffer() without current GL context";
9758 void NoContextGLApi::glBlitFramebufferANGLEFn(GLint srcX0,
9759 GLint srcY0,
9760 GLint srcX1,
9761 GLint srcY1,
9762 GLint dstX0,
9763 GLint dstY0,
9764 GLint dstX1,
9765 GLint dstY1,
9766 GLbitfield mask,
9767 GLenum filter) {
9768 NOTREACHED()
9769 << "Trying to call glBlitFramebufferANGLE() without current GL context";
9770 LOG(ERROR)
9771 << "Trying to call glBlitFramebufferANGLE() without current GL context";
9774 void NoContextGLApi::glBlitFramebufferEXTFn(GLint srcX0,
9775 GLint srcY0,
9776 GLint srcX1,
9777 GLint srcY1,
9778 GLint dstX0,
9779 GLint dstY0,
9780 GLint dstX1,
9781 GLint dstY1,
9782 GLbitfield mask,
9783 GLenum filter) {
9784 NOTREACHED()
9785 << "Trying to call glBlitFramebufferEXT() without current GL context";
9786 LOG(ERROR)
9787 << "Trying to call glBlitFramebufferEXT() without current GL context";
9790 void NoContextGLApi::glBufferDataFn(GLenum target,
9791 GLsizeiptr size,
9792 const void* data,
9793 GLenum usage) {
9794 NOTREACHED() << "Trying to call glBufferData() without current GL context";
9795 LOG(ERROR) << "Trying to call glBufferData() without current GL context";
9798 void NoContextGLApi::glBufferSubDataFn(GLenum target,
9799 GLintptr offset,
9800 GLsizeiptr size,
9801 const void* data) {
9802 NOTREACHED() << "Trying to call glBufferSubData() without current GL context";
9803 LOG(ERROR) << "Trying to call glBufferSubData() without current GL context";
9806 GLenum NoContextGLApi::glCheckFramebufferStatusEXTFn(GLenum target) {
9807 NOTREACHED() << "Trying to call glCheckFramebufferStatusEXT() without "
9808 "current GL context";
9809 LOG(ERROR) << "Trying to call glCheckFramebufferStatusEXT() without current "
9810 "GL context";
9811 return static_cast<GLenum>(0);
9814 void NoContextGLApi::glClearFn(GLbitfield mask) {
9815 NOTREACHED() << "Trying to call glClear() without current GL context";
9816 LOG(ERROR) << "Trying to call glClear() without current GL context";
9819 void NoContextGLApi::glClearBufferfiFn(GLenum buffer,
9820 GLint drawbuffer,
9821 const GLfloat depth,
9822 GLint stencil) {
9823 NOTREACHED() << "Trying to call glClearBufferfi() without current GL context";
9824 LOG(ERROR) << "Trying to call glClearBufferfi() without current GL context";
9827 void NoContextGLApi::glClearBufferfvFn(GLenum buffer,
9828 GLint drawbuffer,
9829 const GLfloat* value) {
9830 NOTREACHED() << "Trying to call glClearBufferfv() without current GL context";
9831 LOG(ERROR) << "Trying to call glClearBufferfv() without current GL context";
9834 void NoContextGLApi::glClearBufferivFn(GLenum buffer,
9835 GLint drawbuffer,
9836 const GLint* value) {
9837 NOTREACHED() << "Trying to call glClearBufferiv() without current GL context";
9838 LOG(ERROR) << "Trying to call glClearBufferiv() without current GL context";
9841 void NoContextGLApi::glClearBufferuivFn(GLenum buffer,
9842 GLint drawbuffer,
9843 const GLuint* value) {
9844 NOTREACHED()
9845 << "Trying to call glClearBufferuiv() without current GL context";
9846 LOG(ERROR) << "Trying to call glClearBufferuiv() without current GL context";
9849 void NoContextGLApi::glClearColorFn(GLclampf red,
9850 GLclampf green,
9851 GLclampf blue,
9852 GLclampf alpha) {
9853 NOTREACHED() << "Trying to call glClearColor() without current GL context";
9854 LOG(ERROR) << "Trying to call glClearColor() without current GL context";
9857 void NoContextGLApi::glClearDepthFn(GLclampd depth) {
9858 NOTREACHED() << "Trying to call glClearDepth() without current GL context";
9859 LOG(ERROR) << "Trying to call glClearDepth() without current GL context";
9862 void NoContextGLApi::glClearDepthfFn(GLclampf depth) {
9863 NOTREACHED() << "Trying to call glClearDepthf() without current GL context";
9864 LOG(ERROR) << "Trying to call glClearDepthf() without current GL context";
9867 void NoContextGLApi::glClearStencilFn(GLint s) {
9868 NOTREACHED() << "Trying to call glClearStencil() without current GL context";
9869 LOG(ERROR) << "Trying to call glClearStencil() without current GL context";
9872 GLenum NoContextGLApi::glClientWaitSyncFn(GLsync sync,
9873 GLbitfield flags,
9874 GLuint64 timeout) {
9875 NOTREACHED()
9876 << "Trying to call glClientWaitSync() without current GL context";
9877 LOG(ERROR) << "Trying to call glClientWaitSync() without current GL context";
9878 return static_cast<GLenum>(0);
9881 void NoContextGLApi::glColorMaskFn(GLboolean red,
9882 GLboolean green,
9883 GLboolean blue,
9884 GLboolean alpha) {
9885 NOTREACHED() << "Trying to call glColorMask() without current GL context";
9886 LOG(ERROR) << "Trying to call glColorMask() without current GL context";
9889 void NoContextGLApi::glCompileShaderFn(GLuint shader) {
9890 NOTREACHED() << "Trying to call glCompileShader() without current GL context";
9891 LOG(ERROR) << "Trying to call glCompileShader() without current GL context";
9894 void NoContextGLApi::glCompressedTexImage2DFn(GLenum target,
9895 GLint level,
9896 GLenum internalformat,
9897 GLsizei width,
9898 GLsizei height,
9899 GLint border,
9900 GLsizei imageSize,
9901 const void* data) {
9902 NOTREACHED()
9903 << "Trying to call glCompressedTexImage2D() without current GL context";
9904 LOG(ERROR)
9905 << "Trying to call glCompressedTexImage2D() without current GL context";
9908 void NoContextGLApi::glCompressedTexImage3DFn(GLenum target,
9909 GLint level,
9910 GLenum internalformat,
9911 GLsizei width,
9912 GLsizei height,
9913 GLsizei depth,
9914 GLint border,
9915 GLsizei imageSize,
9916 const void* data) {
9917 NOTREACHED()
9918 << "Trying to call glCompressedTexImage3D() without current GL context";
9919 LOG(ERROR)
9920 << "Trying to call glCompressedTexImage3D() without current GL context";
9923 void NoContextGLApi::glCompressedTexSubImage2DFn(GLenum target,
9924 GLint level,
9925 GLint xoffset,
9926 GLint yoffset,
9927 GLsizei width,
9928 GLsizei height,
9929 GLenum format,
9930 GLsizei imageSize,
9931 const void* data) {
9932 NOTREACHED() << "Trying to call glCompressedTexSubImage2D() without current "
9933 "GL context";
9934 LOG(ERROR) << "Trying to call glCompressedTexSubImage2D() without current GL "
9935 "context";
9938 void NoContextGLApi::glCopyBufferSubDataFn(GLenum readTarget,
9939 GLenum writeTarget,
9940 GLintptr readOffset,
9941 GLintptr writeOffset,
9942 GLsizeiptr size) {
9943 NOTREACHED()
9944 << "Trying to call glCopyBufferSubData() without current GL context";
9945 LOG(ERROR)
9946 << "Trying to call glCopyBufferSubData() without current GL context";
9949 void NoContextGLApi::glCopyTexImage2DFn(GLenum target,
9950 GLint level,
9951 GLenum internalformat,
9952 GLint x,
9953 GLint y,
9954 GLsizei width,
9955 GLsizei height,
9956 GLint border) {
9957 NOTREACHED()
9958 << "Trying to call glCopyTexImage2D() without current GL context";
9959 LOG(ERROR) << "Trying to call glCopyTexImage2D() without current GL context";
9962 void NoContextGLApi::glCopyTexSubImage2DFn(GLenum target,
9963 GLint level,
9964 GLint xoffset,
9965 GLint yoffset,
9966 GLint x,
9967 GLint y,
9968 GLsizei width,
9969 GLsizei height) {
9970 NOTREACHED()
9971 << "Trying to call glCopyTexSubImage2D() without current GL context";
9972 LOG(ERROR)
9973 << "Trying to call glCopyTexSubImage2D() without current GL context";
9976 void NoContextGLApi::glCopyTexSubImage3DFn(GLenum target,
9977 GLint level,
9978 GLint xoffset,
9979 GLint yoffset,
9980 GLint zoffset,
9981 GLint x,
9982 GLint y,
9983 GLsizei width,
9984 GLsizei height) {
9985 NOTREACHED()
9986 << "Trying to call glCopyTexSubImage3D() without current GL context";
9987 LOG(ERROR)
9988 << "Trying to call glCopyTexSubImage3D() without current GL context";
9991 GLuint NoContextGLApi::glCreateProgramFn(void) {
9992 NOTREACHED() << "Trying to call glCreateProgram() without current GL context";
9993 LOG(ERROR) << "Trying to call glCreateProgram() without current GL context";
9994 return 0U;
9997 GLuint NoContextGLApi::glCreateShaderFn(GLenum type) {
9998 NOTREACHED() << "Trying to call glCreateShader() without current GL context";
9999 LOG(ERROR) << "Trying to call glCreateShader() without current GL context";
10000 return 0U;
10003 void NoContextGLApi::glCullFaceFn(GLenum mode) {
10004 NOTREACHED() << "Trying to call glCullFace() without current GL context";
10005 LOG(ERROR) << "Trying to call glCullFace() without current GL context";
10008 void NoContextGLApi::glDeleteBuffersARBFn(GLsizei n, const GLuint* buffers) {
10009 NOTREACHED()
10010 << "Trying to call glDeleteBuffersARB() without current GL context";
10011 LOG(ERROR)
10012 << "Trying to call glDeleteBuffersARB() without current GL context";
10015 void NoContextGLApi::glDeleteFencesAPPLEFn(GLsizei n, const GLuint* fences) {
10016 NOTREACHED()
10017 << "Trying to call glDeleteFencesAPPLE() without current GL context";
10018 LOG(ERROR)
10019 << "Trying to call glDeleteFencesAPPLE() without current GL context";
10022 void NoContextGLApi::glDeleteFencesNVFn(GLsizei n, const GLuint* fences) {
10023 NOTREACHED()
10024 << "Trying to call glDeleteFencesNV() without current GL context";
10025 LOG(ERROR) << "Trying to call glDeleteFencesNV() without current GL context";
10028 void NoContextGLApi::glDeleteFramebuffersEXTFn(GLsizei n,
10029 const GLuint* framebuffers) {
10030 NOTREACHED()
10031 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
10032 LOG(ERROR)
10033 << "Trying to call glDeleteFramebuffersEXT() without current GL context";
10036 void NoContextGLApi::glDeleteProgramFn(GLuint program) {
10037 NOTREACHED() << "Trying to call glDeleteProgram() without current GL context";
10038 LOG(ERROR) << "Trying to call glDeleteProgram() without current GL context";
10041 void NoContextGLApi::glDeleteQueriesFn(GLsizei n, const GLuint* ids) {
10042 NOTREACHED() << "Trying to call glDeleteQueries() without current GL context";
10043 LOG(ERROR) << "Trying to call glDeleteQueries() without current GL context";
10046 void NoContextGLApi::glDeleteQueriesARBFn(GLsizei n, const GLuint* ids) {
10047 NOTREACHED()
10048 << "Trying to call glDeleteQueriesARB() without current GL context";
10049 LOG(ERROR)
10050 << "Trying to call glDeleteQueriesARB() without current GL context";
10053 void NoContextGLApi::glDeleteRenderbuffersEXTFn(GLsizei n,
10054 const GLuint* renderbuffers) {
10055 NOTREACHED()
10056 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
10057 LOG(ERROR)
10058 << "Trying to call glDeleteRenderbuffersEXT() without current GL context";
10061 void NoContextGLApi::glDeleteSamplersFn(GLsizei n, const GLuint* samplers) {
10062 NOTREACHED()
10063 << "Trying to call glDeleteSamplers() without current GL context";
10064 LOG(ERROR) << "Trying to call glDeleteSamplers() without current GL context";
10067 void NoContextGLApi::glDeleteShaderFn(GLuint shader) {
10068 NOTREACHED() << "Trying to call glDeleteShader() without current GL context";
10069 LOG(ERROR) << "Trying to call glDeleteShader() without current GL context";
10072 void NoContextGLApi::glDeleteSyncFn(GLsync sync) {
10073 NOTREACHED() << "Trying to call glDeleteSync() without current GL context";
10074 LOG(ERROR) << "Trying to call glDeleteSync() without current GL context";
10077 void NoContextGLApi::glDeleteTexturesFn(GLsizei n, const GLuint* textures) {
10078 NOTREACHED()
10079 << "Trying to call glDeleteTextures() without current GL context";
10080 LOG(ERROR) << "Trying to call glDeleteTextures() without current GL context";
10083 void NoContextGLApi::glDeleteTransformFeedbacksFn(GLsizei n,
10084 const GLuint* ids) {
10085 NOTREACHED() << "Trying to call glDeleteTransformFeedbacks() without current "
10086 "GL context";
10087 LOG(ERROR) << "Trying to call glDeleteTransformFeedbacks() without current "
10088 "GL context";
10091 void NoContextGLApi::glDeleteVertexArraysOESFn(GLsizei n,
10092 const GLuint* arrays) {
10093 NOTREACHED()
10094 << "Trying to call glDeleteVertexArraysOES() without current GL context";
10095 LOG(ERROR)
10096 << "Trying to call glDeleteVertexArraysOES() without current GL context";
10099 void NoContextGLApi::glDepthFuncFn(GLenum func) {
10100 NOTREACHED() << "Trying to call glDepthFunc() without current GL context";
10101 LOG(ERROR) << "Trying to call glDepthFunc() without current GL context";
10104 void NoContextGLApi::glDepthMaskFn(GLboolean flag) {
10105 NOTREACHED() << "Trying to call glDepthMask() without current GL context";
10106 LOG(ERROR) << "Trying to call glDepthMask() without current GL context";
10109 void NoContextGLApi::glDepthRangeFn(GLclampd zNear, GLclampd zFar) {
10110 NOTREACHED() << "Trying to call glDepthRange() without current GL context";
10111 LOG(ERROR) << "Trying to call glDepthRange() without current GL context";
10114 void NoContextGLApi::glDepthRangefFn(GLclampf zNear, GLclampf zFar) {
10115 NOTREACHED() << "Trying to call glDepthRangef() without current GL context";
10116 LOG(ERROR) << "Trying to call glDepthRangef() without current GL context";
10119 void NoContextGLApi::glDetachShaderFn(GLuint program, GLuint shader) {
10120 NOTREACHED() << "Trying to call glDetachShader() without current GL context";
10121 LOG(ERROR) << "Trying to call glDetachShader() without current GL context";
10124 void NoContextGLApi::glDisableFn(GLenum cap) {
10125 NOTREACHED() << "Trying to call glDisable() without current GL context";
10126 LOG(ERROR) << "Trying to call glDisable() without current GL context";
10129 void NoContextGLApi::glDisableVertexAttribArrayFn(GLuint index) {
10130 NOTREACHED() << "Trying to call glDisableVertexAttribArray() without current "
10131 "GL context";
10132 LOG(ERROR) << "Trying to call glDisableVertexAttribArray() without current "
10133 "GL context";
10136 void NoContextGLApi::glDiscardFramebufferEXTFn(GLenum target,
10137 GLsizei numAttachments,
10138 const GLenum* attachments) {
10139 NOTREACHED()
10140 << "Trying to call glDiscardFramebufferEXT() without current GL context";
10141 LOG(ERROR)
10142 << "Trying to call glDiscardFramebufferEXT() without current GL context";
10145 void NoContextGLApi::glDrawArraysFn(GLenum mode, GLint first, GLsizei count) {
10146 NOTREACHED() << "Trying to call glDrawArrays() without current GL context";
10147 LOG(ERROR) << "Trying to call glDrawArrays() without current GL context";
10150 void NoContextGLApi::glDrawArraysInstancedANGLEFn(GLenum mode,
10151 GLint first,
10152 GLsizei count,
10153 GLsizei primcount) {
10154 NOTREACHED() << "Trying to call glDrawArraysInstancedANGLE() without current "
10155 "GL context";
10156 LOG(ERROR) << "Trying to call glDrawArraysInstancedANGLE() without current "
10157 "GL context";
10160 void NoContextGLApi::glDrawBufferFn(GLenum mode) {
10161 NOTREACHED() << "Trying to call glDrawBuffer() without current GL context";
10162 LOG(ERROR) << "Trying to call glDrawBuffer() without current GL context";
10165 void NoContextGLApi::glDrawBuffersARBFn(GLsizei n, const GLenum* bufs) {
10166 NOTREACHED()
10167 << "Trying to call glDrawBuffersARB() without current GL context";
10168 LOG(ERROR) << "Trying to call glDrawBuffersARB() without current GL context";
10171 void NoContextGLApi::glDrawElementsFn(GLenum mode,
10172 GLsizei count,
10173 GLenum type,
10174 const void* indices) {
10175 NOTREACHED() << "Trying to call glDrawElements() without current GL context";
10176 LOG(ERROR) << "Trying to call glDrawElements() without current GL context";
10179 void NoContextGLApi::glDrawElementsInstancedANGLEFn(GLenum mode,
10180 GLsizei count,
10181 GLenum type,
10182 const void* indices,
10183 GLsizei primcount) {
10184 NOTREACHED() << "Trying to call glDrawElementsInstancedANGLE() without "
10185 "current GL context";
10186 LOG(ERROR) << "Trying to call glDrawElementsInstancedANGLE() without current "
10187 "GL context";
10190 void NoContextGLApi::glDrawRangeElementsFn(GLenum mode,
10191 GLuint start,
10192 GLuint end,
10193 GLsizei count,
10194 GLenum type,
10195 const void* indices) {
10196 NOTREACHED()
10197 << "Trying to call glDrawRangeElements() without current GL context";
10198 LOG(ERROR)
10199 << "Trying to call glDrawRangeElements() without current GL context";
10202 void NoContextGLApi::glEGLImageTargetRenderbufferStorageOESFn(
10203 GLenum target,
10204 GLeglImageOES image) {
10205 NOTREACHED() << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
10206 "without current GL context";
10207 LOG(ERROR) << "Trying to call glEGLImageTargetRenderbufferStorageOES() "
10208 "without current GL context";
10211 void NoContextGLApi::glEGLImageTargetTexture2DOESFn(GLenum target,
10212 GLeglImageOES image) {
10213 NOTREACHED() << "Trying to call glEGLImageTargetTexture2DOES() without "
10214 "current GL context";
10215 LOG(ERROR) << "Trying to call glEGLImageTargetTexture2DOES() without current "
10216 "GL context";
10219 void NoContextGLApi::glEnableFn(GLenum cap) {
10220 NOTREACHED() << "Trying to call glEnable() without current GL context";
10221 LOG(ERROR) << "Trying to call glEnable() without current GL context";
10224 void NoContextGLApi::glEnableVertexAttribArrayFn(GLuint index) {
10225 NOTREACHED() << "Trying to call glEnableVertexAttribArray() without current "
10226 "GL context";
10227 LOG(ERROR) << "Trying to call glEnableVertexAttribArray() without current GL "
10228 "context";
10231 void NoContextGLApi::glEndQueryFn(GLenum target) {
10232 NOTREACHED() << "Trying to call glEndQuery() without current GL context";
10233 LOG(ERROR) << "Trying to call glEndQuery() without current GL context";
10236 void NoContextGLApi::glEndQueryARBFn(GLenum target) {
10237 NOTREACHED() << "Trying to call glEndQueryARB() without current GL context";
10238 LOG(ERROR) << "Trying to call glEndQueryARB() without current GL context";
10241 void NoContextGLApi::glEndTransformFeedbackFn(void) {
10242 NOTREACHED()
10243 << "Trying to call glEndTransformFeedback() without current GL context";
10244 LOG(ERROR)
10245 << "Trying to call glEndTransformFeedback() without current GL context";
10248 GLsync NoContextGLApi::glFenceSyncFn(GLenum condition, GLbitfield flags) {
10249 NOTREACHED() << "Trying to call glFenceSync() without current GL context";
10250 LOG(ERROR) << "Trying to call glFenceSync() without current GL context";
10251 return NULL;
10254 void NoContextGLApi::glFinishFn(void) {
10255 NOTREACHED() << "Trying to call glFinish() without current GL context";
10256 LOG(ERROR) << "Trying to call glFinish() without current GL context";
10259 void NoContextGLApi::glFinishFenceAPPLEFn(GLuint fence) {
10260 NOTREACHED()
10261 << "Trying to call glFinishFenceAPPLE() without current GL context";
10262 LOG(ERROR)
10263 << "Trying to call glFinishFenceAPPLE() without current GL context";
10266 void NoContextGLApi::glFinishFenceNVFn(GLuint fence) {
10267 NOTREACHED() << "Trying to call glFinishFenceNV() without current GL context";
10268 LOG(ERROR) << "Trying to call glFinishFenceNV() without current GL context";
10271 void NoContextGLApi::glFlushFn(void) {
10272 NOTREACHED() << "Trying to call glFlush() without current GL context";
10273 LOG(ERROR) << "Trying to call glFlush() without current GL context";
10276 void NoContextGLApi::glFlushMappedBufferRangeFn(GLenum target,
10277 GLintptr offset,
10278 GLsizeiptr length) {
10279 NOTREACHED()
10280 << "Trying to call glFlushMappedBufferRange() without current GL context";
10281 LOG(ERROR)
10282 << "Trying to call glFlushMappedBufferRange() without current GL context";
10285 void NoContextGLApi::glFramebufferRenderbufferEXTFn(GLenum target,
10286 GLenum attachment,
10287 GLenum renderbuffertarget,
10288 GLuint renderbuffer) {
10289 NOTREACHED() << "Trying to call glFramebufferRenderbufferEXT() without "
10290 "current GL context";
10291 LOG(ERROR) << "Trying to call glFramebufferRenderbufferEXT() without current "
10292 "GL context";
10295 void NoContextGLApi::glFramebufferTexture2DEXTFn(GLenum target,
10296 GLenum attachment,
10297 GLenum textarget,
10298 GLuint texture,
10299 GLint level) {
10300 NOTREACHED() << "Trying to call glFramebufferTexture2DEXT() without current "
10301 "GL context";
10302 LOG(ERROR) << "Trying to call glFramebufferTexture2DEXT() without current GL "
10303 "context";
10306 void NoContextGLApi::glFramebufferTexture2DMultisampleEXTFn(GLenum target,
10307 GLenum attachment,
10308 GLenum textarget,
10309 GLuint texture,
10310 GLint level,
10311 GLsizei samples) {
10312 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleEXT() "
10313 "without current GL context";
10314 LOG(ERROR) << "Trying to call glFramebufferTexture2DMultisampleEXT() without "
10315 "current GL context";
10318 void NoContextGLApi::glFramebufferTexture2DMultisampleIMGFn(GLenum target,
10319 GLenum attachment,
10320 GLenum textarget,
10321 GLuint texture,
10322 GLint level,
10323 GLsizei samples) {
10324 NOTREACHED() << "Trying to call glFramebufferTexture2DMultisampleIMG() "
10325 "without current GL context";
10326 LOG(ERROR) << "Trying to call glFramebufferTexture2DMultisampleIMG() without "
10327 "current GL context";
10330 void NoContextGLApi::glFramebufferTextureLayerFn(GLenum target,
10331 GLenum attachment,
10332 GLuint texture,
10333 GLint level,
10334 GLint layer) {
10335 NOTREACHED() << "Trying to call glFramebufferTextureLayer() without current "
10336 "GL context";
10337 LOG(ERROR) << "Trying to call glFramebufferTextureLayer() without current GL "
10338 "context";
10341 void NoContextGLApi::glFrontFaceFn(GLenum mode) {
10342 NOTREACHED() << "Trying to call glFrontFace() without current GL context";
10343 LOG(ERROR) << "Trying to call glFrontFace() without current GL context";
10346 void NoContextGLApi::glGenBuffersARBFn(GLsizei n, GLuint* buffers) {
10347 NOTREACHED() << "Trying to call glGenBuffersARB() without current GL context";
10348 LOG(ERROR) << "Trying to call glGenBuffersARB() without current GL context";
10351 void NoContextGLApi::glGenerateMipmapEXTFn(GLenum target) {
10352 NOTREACHED()
10353 << "Trying to call glGenerateMipmapEXT() without current GL context";
10354 LOG(ERROR)
10355 << "Trying to call glGenerateMipmapEXT() without current GL context";
10358 void NoContextGLApi::glGenFencesAPPLEFn(GLsizei n, GLuint* fences) {
10359 NOTREACHED()
10360 << "Trying to call glGenFencesAPPLE() without current GL context";
10361 LOG(ERROR) << "Trying to call glGenFencesAPPLE() without current GL context";
10364 void NoContextGLApi::glGenFencesNVFn(GLsizei n, GLuint* fences) {
10365 NOTREACHED() << "Trying to call glGenFencesNV() without current GL context";
10366 LOG(ERROR) << "Trying to call glGenFencesNV() without current GL context";
10369 void NoContextGLApi::glGenFramebuffersEXTFn(GLsizei n, GLuint* framebuffers) {
10370 NOTREACHED()
10371 << "Trying to call glGenFramebuffersEXT() without current GL context";
10372 LOG(ERROR)
10373 << "Trying to call glGenFramebuffersEXT() without current GL context";
10376 void NoContextGLApi::glGenQueriesFn(GLsizei n, GLuint* ids) {
10377 NOTREACHED() << "Trying to call glGenQueries() without current GL context";
10378 LOG(ERROR) << "Trying to call glGenQueries() without current GL context";
10381 void NoContextGLApi::glGenQueriesARBFn(GLsizei n, GLuint* ids) {
10382 NOTREACHED() << "Trying to call glGenQueriesARB() without current GL context";
10383 LOG(ERROR) << "Trying to call glGenQueriesARB() without current GL context";
10386 void NoContextGLApi::glGenRenderbuffersEXTFn(GLsizei n, GLuint* renderbuffers) {
10387 NOTREACHED()
10388 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10389 LOG(ERROR)
10390 << "Trying to call glGenRenderbuffersEXT() without current GL context";
10393 void NoContextGLApi::glGenSamplersFn(GLsizei n, GLuint* samplers) {
10394 NOTREACHED() << "Trying to call glGenSamplers() without current GL context";
10395 LOG(ERROR) << "Trying to call glGenSamplers() without current GL context";
10398 void NoContextGLApi::glGenTexturesFn(GLsizei n, GLuint* textures) {
10399 NOTREACHED() << "Trying to call glGenTextures() without current GL context";
10400 LOG(ERROR) << "Trying to call glGenTextures() without current GL context";
10403 void NoContextGLApi::glGenTransformFeedbacksFn(GLsizei n, GLuint* ids) {
10404 NOTREACHED()
10405 << "Trying to call glGenTransformFeedbacks() without current GL context";
10406 LOG(ERROR)
10407 << "Trying to call glGenTransformFeedbacks() without current GL context";
10410 void NoContextGLApi::glGenVertexArraysOESFn(GLsizei n, GLuint* arrays) {
10411 NOTREACHED()
10412 << "Trying to call glGenVertexArraysOES() without current GL context";
10413 LOG(ERROR)
10414 << "Trying to call glGenVertexArraysOES() without current GL context";
10417 void NoContextGLApi::glGetActiveAttribFn(GLuint program,
10418 GLuint index,
10419 GLsizei bufsize,
10420 GLsizei* length,
10421 GLint* size,
10422 GLenum* type,
10423 char* name) {
10424 NOTREACHED()
10425 << "Trying to call glGetActiveAttrib() without current GL context";
10426 LOG(ERROR) << "Trying to call glGetActiveAttrib() without current GL context";
10429 void NoContextGLApi::glGetActiveUniformFn(GLuint program,
10430 GLuint index,
10431 GLsizei bufsize,
10432 GLsizei* length,
10433 GLint* size,
10434 GLenum* type,
10435 char* name) {
10436 NOTREACHED()
10437 << "Trying to call glGetActiveUniform() without current GL context";
10438 LOG(ERROR)
10439 << "Trying to call glGetActiveUniform() without current GL context";
10442 void NoContextGLApi::glGetActiveUniformBlockivFn(GLuint program,
10443 GLuint uniformBlockIndex,
10444 GLenum pname,
10445 GLint* params) {
10446 NOTREACHED() << "Trying to call glGetActiveUniformBlockiv() without current "
10447 "GL context";
10448 LOG(ERROR) << "Trying to call glGetActiveUniformBlockiv() without current GL "
10449 "context";
10452 void NoContextGLApi::glGetActiveUniformBlockNameFn(GLuint program,
10453 GLuint uniformBlockIndex,
10454 GLsizei bufSize,
10455 GLsizei* length,
10456 char* uniformBlockName) {
10457 NOTREACHED() << "Trying to call glGetActiveUniformBlockName() without "
10458 "current GL context";
10459 LOG(ERROR) << "Trying to call glGetActiveUniformBlockName() without current "
10460 "GL context";
10463 void NoContextGLApi::glGetActiveUniformsivFn(GLuint program,
10464 GLsizei uniformCount,
10465 const GLuint* uniformIndices,
10466 GLenum pname,
10467 GLint* params) {
10468 NOTREACHED()
10469 << "Trying to call glGetActiveUniformsiv() without current GL context";
10470 LOG(ERROR)
10471 << "Trying to call glGetActiveUniformsiv() without current GL context";
10474 void NoContextGLApi::glGetAttachedShadersFn(GLuint program,
10475 GLsizei maxcount,
10476 GLsizei* count,
10477 GLuint* shaders) {
10478 NOTREACHED()
10479 << "Trying to call glGetAttachedShaders() without current GL context";
10480 LOG(ERROR)
10481 << "Trying to call glGetAttachedShaders() without current GL context";
10484 GLint NoContextGLApi::glGetAttribLocationFn(GLuint program, const char* name) {
10485 NOTREACHED()
10486 << "Trying to call glGetAttribLocation() without current GL context";
10487 LOG(ERROR)
10488 << "Trying to call glGetAttribLocation() without current GL context";
10489 return 0;
10492 void NoContextGLApi::glGetBooleanvFn(GLenum pname, GLboolean* params) {
10493 NOTREACHED() << "Trying to call glGetBooleanv() without current GL context";
10494 LOG(ERROR) << "Trying to call glGetBooleanv() without current GL context";
10497 void NoContextGLApi::glGetBufferParameterivFn(GLenum target,
10498 GLenum pname,
10499 GLint* params) {
10500 NOTREACHED()
10501 << "Trying to call glGetBufferParameteriv() without current GL context";
10502 LOG(ERROR)
10503 << "Trying to call glGetBufferParameteriv() without current GL context";
10506 GLenum NoContextGLApi::glGetErrorFn(void) {
10507 NOTREACHED() << "Trying to call glGetError() without current GL context";
10508 LOG(ERROR) << "Trying to call glGetError() without current GL context";
10509 return static_cast<GLenum>(0);
10512 void NoContextGLApi::glGetFenceivNVFn(GLuint fence,
10513 GLenum pname,
10514 GLint* params) {
10515 NOTREACHED() << "Trying to call glGetFenceivNV() without current GL context";
10516 LOG(ERROR) << "Trying to call glGetFenceivNV() without current GL context";
10519 void NoContextGLApi::glGetFloatvFn(GLenum pname, GLfloat* params) {
10520 NOTREACHED() << "Trying to call glGetFloatv() without current GL context";
10521 LOG(ERROR) << "Trying to call glGetFloatv() without current GL context";
10524 GLint NoContextGLApi::glGetFragDataLocationFn(GLuint program,
10525 const char* name) {
10526 NOTREACHED()
10527 << "Trying to call glGetFragDataLocation() without current GL context";
10528 LOG(ERROR)
10529 << "Trying to call glGetFragDataLocation() without current GL context";
10530 return 0;
10533 void NoContextGLApi::glGetFramebufferAttachmentParameterivEXTFn(
10534 GLenum target,
10535 GLenum attachment,
10536 GLenum pname,
10537 GLint* params) {
10538 NOTREACHED() << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
10539 "without current GL context";
10540 LOG(ERROR) << "Trying to call glGetFramebufferAttachmentParameterivEXT() "
10541 "without current GL context";
10544 GLenum NoContextGLApi::glGetGraphicsResetStatusARBFn(void) {
10545 NOTREACHED() << "Trying to call glGetGraphicsResetStatusARB() without "
10546 "current GL context";
10547 LOG(ERROR) << "Trying to call glGetGraphicsResetStatusARB() without current "
10548 "GL context";
10549 return static_cast<GLenum>(0);
10552 void NoContextGLApi::glGetInteger64i_vFn(GLenum target,
10553 GLuint index,
10554 GLint64* data) {
10555 NOTREACHED()
10556 << "Trying to call glGetInteger64i_v() without current GL context";
10557 LOG(ERROR) << "Trying to call glGetInteger64i_v() without current GL context";
10560 void NoContextGLApi::glGetInteger64vFn(GLenum pname, GLint64* params) {
10561 NOTREACHED() << "Trying to call glGetInteger64v() without current GL context";
10562 LOG(ERROR) << "Trying to call glGetInteger64v() without current GL context";
10565 void NoContextGLApi::glGetIntegeri_vFn(GLenum target,
10566 GLuint index,
10567 GLint* data) {
10568 NOTREACHED() << "Trying to call glGetIntegeri_v() without current GL context";
10569 LOG(ERROR) << "Trying to call glGetIntegeri_v() without current GL context";
10572 void NoContextGLApi::glGetIntegervFn(GLenum pname, GLint* params) {
10573 NOTREACHED() << "Trying to call glGetIntegerv() without current GL context";
10574 LOG(ERROR) << "Trying to call glGetIntegerv() without current GL context";
10577 void NoContextGLApi::glGetInternalformativFn(GLenum target,
10578 GLenum internalformat,
10579 GLenum pname,
10580 GLsizei bufSize,
10581 GLint* params) {
10582 NOTREACHED()
10583 << "Trying to call glGetInternalformativ() without current GL context";
10584 LOG(ERROR)
10585 << "Trying to call glGetInternalformativ() without current GL context";
10588 void NoContextGLApi::glGetProgramBinaryFn(GLuint program,
10589 GLsizei bufSize,
10590 GLsizei* length,
10591 GLenum* binaryFormat,
10592 GLvoid* binary) {
10593 NOTREACHED()
10594 << "Trying to call glGetProgramBinary() without current GL context";
10595 LOG(ERROR)
10596 << "Trying to call glGetProgramBinary() without current GL context";
10599 void NoContextGLApi::glGetProgramInfoLogFn(GLuint program,
10600 GLsizei bufsize,
10601 GLsizei* length,
10602 char* infolog) {
10603 NOTREACHED()
10604 << "Trying to call glGetProgramInfoLog() without current GL context";
10605 LOG(ERROR)
10606 << "Trying to call glGetProgramInfoLog() without current GL context";
10609 void NoContextGLApi::glGetProgramivFn(GLuint program,
10610 GLenum pname,
10611 GLint* params) {
10612 NOTREACHED() << "Trying to call glGetProgramiv() without current GL context";
10613 LOG(ERROR) << "Trying to call glGetProgramiv() without current GL context";
10616 GLint NoContextGLApi::glGetProgramResourceLocationFn(GLuint program,
10617 GLenum programInterface,
10618 const char* name) {
10619 NOTREACHED() << "Trying to call glGetProgramResourceLocation() without "
10620 "current GL context";
10621 LOG(ERROR) << "Trying to call glGetProgramResourceLocation() without current "
10622 "GL context";
10623 return 0;
10626 void NoContextGLApi::glGetQueryivFn(GLenum target,
10627 GLenum pname,
10628 GLint* params) {
10629 NOTREACHED() << "Trying to call glGetQueryiv() without current GL context";
10630 LOG(ERROR) << "Trying to call glGetQueryiv() without current GL context";
10633 void NoContextGLApi::glGetQueryivARBFn(GLenum target,
10634 GLenum pname,
10635 GLint* params) {
10636 NOTREACHED() << "Trying to call glGetQueryivARB() without current GL context";
10637 LOG(ERROR) << "Trying to call glGetQueryivARB() without current GL context";
10640 void NoContextGLApi::glGetQueryObjecti64vFn(GLuint id,
10641 GLenum pname,
10642 GLint64* params) {
10643 NOTREACHED()
10644 << "Trying to call glGetQueryObjecti64v() without current GL context";
10645 LOG(ERROR)
10646 << "Trying to call glGetQueryObjecti64v() without current GL context";
10649 void NoContextGLApi::glGetQueryObjectivFn(GLuint id,
10650 GLenum pname,
10651 GLint* params) {
10652 NOTREACHED()
10653 << "Trying to call glGetQueryObjectiv() without current GL context";
10654 LOG(ERROR)
10655 << "Trying to call glGetQueryObjectiv() without current GL context";
10658 void NoContextGLApi::glGetQueryObjectivARBFn(GLuint id,
10659 GLenum pname,
10660 GLint* params) {
10661 NOTREACHED()
10662 << "Trying to call glGetQueryObjectivARB() without current GL context";
10663 LOG(ERROR)
10664 << "Trying to call glGetQueryObjectivARB() without current GL context";
10667 void NoContextGLApi::glGetQueryObjectui64vFn(GLuint id,
10668 GLenum pname,
10669 GLuint64* params) {
10670 NOTREACHED()
10671 << "Trying to call glGetQueryObjectui64v() without current GL context";
10672 LOG(ERROR)
10673 << "Trying to call glGetQueryObjectui64v() without current GL context";
10676 void NoContextGLApi::glGetQueryObjectuivFn(GLuint id,
10677 GLenum pname,
10678 GLuint* params) {
10679 NOTREACHED()
10680 << "Trying to call glGetQueryObjectuiv() without current GL context";
10681 LOG(ERROR)
10682 << "Trying to call glGetQueryObjectuiv() without current GL context";
10685 void NoContextGLApi::glGetQueryObjectuivARBFn(GLuint id,
10686 GLenum pname,
10687 GLuint* params) {
10688 NOTREACHED()
10689 << "Trying to call glGetQueryObjectuivARB() without current GL context";
10690 LOG(ERROR)
10691 << "Trying to call glGetQueryObjectuivARB() without current GL context";
10694 void NoContextGLApi::glGetRenderbufferParameterivEXTFn(GLenum target,
10695 GLenum pname,
10696 GLint* params) {
10697 NOTREACHED() << "Trying to call glGetRenderbufferParameterivEXT() without "
10698 "current GL context";
10699 LOG(ERROR) << "Trying to call glGetRenderbufferParameterivEXT() without "
10700 "current GL context";
10703 void NoContextGLApi::glGetSamplerParameterfvFn(GLuint sampler,
10704 GLenum pname,
10705 GLfloat* params) {
10706 NOTREACHED()
10707 << "Trying to call glGetSamplerParameterfv() without current GL context";
10708 LOG(ERROR)
10709 << "Trying to call glGetSamplerParameterfv() without current GL context";
10712 void NoContextGLApi::glGetSamplerParameterivFn(GLuint sampler,
10713 GLenum pname,
10714 GLint* params) {
10715 NOTREACHED()
10716 << "Trying to call glGetSamplerParameteriv() without current GL context";
10717 LOG(ERROR)
10718 << "Trying to call glGetSamplerParameteriv() without current GL context";
10721 void NoContextGLApi::glGetShaderInfoLogFn(GLuint shader,
10722 GLsizei bufsize,
10723 GLsizei* length,
10724 char* infolog) {
10725 NOTREACHED()
10726 << "Trying to call glGetShaderInfoLog() without current GL context";
10727 LOG(ERROR)
10728 << "Trying to call glGetShaderInfoLog() without current GL context";
10731 void NoContextGLApi::glGetShaderivFn(GLuint shader,
10732 GLenum pname,
10733 GLint* params) {
10734 NOTREACHED() << "Trying to call glGetShaderiv() without current GL context";
10735 LOG(ERROR) << "Trying to call glGetShaderiv() without current GL context";
10738 void NoContextGLApi::glGetShaderPrecisionFormatFn(GLenum shadertype,
10739 GLenum precisiontype,
10740 GLint* range,
10741 GLint* precision) {
10742 NOTREACHED() << "Trying to call glGetShaderPrecisionFormat() without current "
10743 "GL context";
10744 LOG(ERROR) << "Trying to call glGetShaderPrecisionFormat() without current "
10745 "GL context";
10748 void NoContextGLApi::glGetShaderSourceFn(GLuint shader,
10749 GLsizei bufsize,
10750 GLsizei* length,
10751 char* source) {
10752 NOTREACHED()
10753 << "Trying to call glGetShaderSource() without current GL context";
10754 LOG(ERROR) << "Trying to call glGetShaderSource() without current GL context";
10757 const GLubyte* NoContextGLApi::glGetStringFn(GLenum name) {
10758 NOTREACHED() << "Trying to call glGetString() without current GL context";
10759 LOG(ERROR) << "Trying to call glGetString() without current GL context";
10760 return NULL;
10763 const GLubyte* NoContextGLApi::glGetStringiFn(GLenum name, GLuint index) {
10764 NOTREACHED() << "Trying to call glGetStringi() without current GL context";
10765 LOG(ERROR) << "Trying to call glGetStringi() without current GL context";
10766 return NULL;
10769 void NoContextGLApi::glGetSyncivFn(GLsync sync,
10770 GLenum pname,
10771 GLsizei bufSize,
10772 GLsizei* length,
10773 GLint* values) {
10774 NOTREACHED() << "Trying to call glGetSynciv() without current GL context";
10775 LOG(ERROR) << "Trying to call glGetSynciv() without current GL context";
10778 void NoContextGLApi::glGetTexLevelParameterfvFn(GLenum target,
10779 GLint level,
10780 GLenum pname,
10781 GLfloat* params) {
10782 NOTREACHED()
10783 << "Trying to call glGetTexLevelParameterfv() without current GL context";
10784 LOG(ERROR)
10785 << "Trying to call glGetTexLevelParameterfv() without current GL context";
10788 void NoContextGLApi::glGetTexLevelParameterivFn(GLenum target,
10789 GLint level,
10790 GLenum pname,
10791 GLint* params) {
10792 NOTREACHED()
10793 << "Trying to call glGetTexLevelParameteriv() without current GL context";
10794 LOG(ERROR)
10795 << "Trying to call glGetTexLevelParameteriv() without current GL context";
10798 void NoContextGLApi::glGetTexParameterfvFn(GLenum target,
10799 GLenum pname,
10800 GLfloat* params) {
10801 NOTREACHED()
10802 << "Trying to call glGetTexParameterfv() without current GL context";
10803 LOG(ERROR)
10804 << "Trying to call glGetTexParameterfv() without current GL context";
10807 void NoContextGLApi::glGetTexParameterivFn(GLenum target,
10808 GLenum pname,
10809 GLint* params) {
10810 NOTREACHED()
10811 << "Trying to call glGetTexParameteriv() without current GL context";
10812 LOG(ERROR)
10813 << "Trying to call glGetTexParameteriv() without current GL context";
10816 void NoContextGLApi::glGetTransformFeedbackVaryingFn(GLuint program,
10817 GLuint index,
10818 GLsizei bufSize,
10819 GLsizei* length,
10820 GLsizei* size,
10821 GLenum* type,
10822 char* name) {
10823 NOTREACHED() << "Trying to call glGetTransformFeedbackVarying() without "
10824 "current GL context";
10825 LOG(ERROR) << "Trying to call glGetTransformFeedbackVarying() without "
10826 "current GL context";
10829 void NoContextGLApi::glGetTranslatedShaderSourceANGLEFn(GLuint shader,
10830 GLsizei bufsize,
10831 GLsizei* length,
10832 char* source) {
10833 NOTREACHED() << "Trying to call glGetTranslatedShaderSourceANGLE() without "
10834 "current GL context";
10835 LOG(ERROR) << "Trying to call glGetTranslatedShaderSourceANGLE() without "
10836 "current GL context";
10839 GLuint NoContextGLApi::glGetUniformBlockIndexFn(GLuint program,
10840 const char* uniformBlockName) {
10841 NOTREACHED()
10842 << "Trying to call glGetUniformBlockIndex() without current GL context";
10843 LOG(ERROR)
10844 << "Trying to call glGetUniformBlockIndex() without current GL context";
10845 return 0U;
10848 void NoContextGLApi::glGetUniformfvFn(GLuint program,
10849 GLint location,
10850 GLfloat* params) {
10851 NOTREACHED() << "Trying to call glGetUniformfv() without current GL context";
10852 LOG(ERROR) << "Trying to call glGetUniformfv() without current GL context";
10855 void NoContextGLApi::glGetUniformIndicesFn(GLuint program,
10856 GLsizei uniformCount,
10857 const char* const* uniformNames,
10858 GLuint* uniformIndices) {
10859 NOTREACHED()
10860 << "Trying to call glGetUniformIndices() without current GL context";
10861 LOG(ERROR)
10862 << "Trying to call glGetUniformIndices() without current GL context";
10865 void NoContextGLApi::glGetUniformivFn(GLuint program,
10866 GLint location,
10867 GLint* params) {
10868 NOTREACHED() << "Trying to call glGetUniformiv() without current GL context";
10869 LOG(ERROR) << "Trying to call glGetUniformiv() without current GL context";
10872 GLint NoContextGLApi::glGetUniformLocationFn(GLuint program, const char* name) {
10873 NOTREACHED()
10874 << "Trying to call glGetUniformLocation() without current GL context";
10875 LOG(ERROR)
10876 << "Trying to call glGetUniformLocation() without current GL context";
10877 return 0;
10880 void NoContextGLApi::glGetVertexAttribfvFn(GLuint index,
10881 GLenum pname,
10882 GLfloat* params) {
10883 NOTREACHED()
10884 << "Trying to call glGetVertexAttribfv() without current GL context";
10885 LOG(ERROR)
10886 << "Trying to call glGetVertexAttribfv() without current GL context";
10889 void NoContextGLApi::glGetVertexAttribivFn(GLuint index,
10890 GLenum pname,
10891 GLint* params) {
10892 NOTREACHED()
10893 << "Trying to call glGetVertexAttribiv() without current GL context";
10894 LOG(ERROR)
10895 << "Trying to call glGetVertexAttribiv() without current GL context";
10898 void NoContextGLApi::glGetVertexAttribPointervFn(GLuint index,
10899 GLenum pname,
10900 void** pointer) {
10901 NOTREACHED() << "Trying to call glGetVertexAttribPointerv() without current "
10902 "GL context";
10903 LOG(ERROR) << "Trying to call glGetVertexAttribPointerv() without current GL "
10904 "context";
10907 void NoContextGLApi::glHintFn(GLenum target, GLenum mode) {
10908 NOTREACHED() << "Trying to call glHint() without current GL context";
10909 LOG(ERROR) << "Trying to call glHint() without current GL context";
10912 void NoContextGLApi::glInsertEventMarkerEXTFn(GLsizei length,
10913 const char* marker) {
10914 NOTREACHED()
10915 << "Trying to call glInsertEventMarkerEXT() without current GL context";
10916 LOG(ERROR)
10917 << "Trying to call glInsertEventMarkerEXT() without current GL context";
10920 void NoContextGLApi::glInvalidateFramebufferFn(GLenum target,
10921 GLsizei numAttachments,
10922 const GLenum* attachments) {
10923 NOTREACHED()
10924 << "Trying to call glInvalidateFramebuffer() without current GL context";
10925 LOG(ERROR)
10926 << "Trying to call glInvalidateFramebuffer() without current GL context";
10929 void NoContextGLApi::glInvalidateSubFramebufferFn(GLenum target,
10930 GLsizei numAttachments,
10931 const GLenum* attachments,
10932 GLint x,
10933 GLint y,
10934 GLint width,
10935 GLint height) {
10936 NOTREACHED() << "Trying to call glInvalidateSubFramebuffer() without current "
10937 "GL context";
10938 LOG(ERROR) << "Trying to call glInvalidateSubFramebuffer() without current "
10939 "GL context";
10942 GLboolean NoContextGLApi::glIsBufferFn(GLuint buffer) {
10943 NOTREACHED() << "Trying to call glIsBuffer() without current GL context";
10944 LOG(ERROR) << "Trying to call glIsBuffer() without current GL context";
10945 return GL_FALSE;
10948 GLboolean NoContextGLApi::glIsEnabledFn(GLenum cap) {
10949 NOTREACHED() << "Trying to call glIsEnabled() without current GL context";
10950 LOG(ERROR) << "Trying to call glIsEnabled() without current GL context";
10951 return GL_FALSE;
10954 GLboolean NoContextGLApi::glIsFenceAPPLEFn(GLuint fence) {
10955 NOTREACHED() << "Trying to call glIsFenceAPPLE() without current GL context";
10956 LOG(ERROR) << "Trying to call glIsFenceAPPLE() without current GL context";
10957 return GL_FALSE;
10960 GLboolean NoContextGLApi::glIsFenceNVFn(GLuint fence) {
10961 NOTREACHED() << "Trying to call glIsFenceNV() without current GL context";
10962 LOG(ERROR) << "Trying to call glIsFenceNV() without current GL context";
10963 return GL_FALSE;
10966 GLboolean NoContextGLApi::glIsFramebufferEXTFn(GLuint framebuffer) {
10967 NOTREACHED()
10968 << "Trying to call glIsFramebufferEXT() without current GL context";
10969 LOG(ERROR)
10970 << "Trying to call glIsFramebufferEXT() without current GL context";
10971 return GL_FALSE;
10974 GLboolean NoContextGLApi::glIsProgramFn(GLuint program) {
10975 NOTREACHED() << "Trying to call glIsProgram() without current GL context";
10976 LOG(ERROR) << "Trying to call glIsProgram() without current GL context";
10977 return GL_FALSE;
10980 GLboolean NoContextGLApi::glIsQueryFn(GLuint query) {
10981 NOTREACHED() << "Trying to call glIsQuery() without current GL context";
10982 LOG(ERROR) << "Trying to call glIsQuery() without current GL context";
10983 return GL_FALSE;
10986 GLboolean NoContextGLApi::glIsQueryARBFn(GLuint query) {
10987 NOTREACHED() << "Trying to call glIsQueryARB() without current GL context";
10988 LOG(ERROR) << "Trying to call glIsQueryARB() without current GL context";
10989 return GL_FALSE;
10992 GLboolean NoContextGLApi::glIsRenderbufferEXTFn(GLuint renderbuffer) {
10993 NOTREACHED()
10994 << "Trying to call glIsRenderbufferEXT() without current GL context";
10995 LOG(ERROR)
10996 << "Trying to call glIsRenderbufferEXT() without current GL context";
10997 return GL_FALSE;
11000 GLboolean NoContextGLApi::glIsSamplerFn(GLuint sampler) {
11001 NOTREACHED() << "Trying to call glIsSampler() without current GL context";
11002 LOG(ERROR) << "Trying to call glIsSampler() without current GL context";
11003 return GL_FALSE;
11006 GLboolean NoContextGLApi::glIsShaderFn(GLuint shader) {
11007 NOTREACHED() << "Trying to call glIsShader() without current GL context";
11008 LOG(ERROR) << "Trying to call glIsShader() without current GL context";
11009 return GL_FALSE;
11012 GLboolean NoContextGLApi::glIsSyncFn(GLsync sync) {
11013 NOTREACHED() << "Trying to call glIsSync() without current GL context";
11014 LOG(ERROR) << "Trying to call glIsSync() without current GL context";
11015 return GL_FALSE;
11018 GLboolean NoContextGLApi::glIsTextureFn(GLuint texture) {
11019 NOTREACHED() << "Trying to call glIsTexture() without current GL context";
11020 LOG(ERROR) << "Trying to call glIsTexture() without current GL context";
11021 return GL_FALSE;
11024 GLboolean NoContextGLApi::glIsTransformFeedbackFn(GLuint id) {
11025 NOTREACHED()
11026 << "Trying to call glIsTransformFeedback() without current GL context";
11027 LOG(ERROR)
11028 << "Trying to call glIsTransformFeedback() without current GL context";
11029 return GL_FALSE;
11032 GLboolean NoContextGLApi::glIsVertexArrayOESFn(GLuint array) {
11033 NOTREACHED()
11034 << "Trying to call glIsVertexArrayOES() without current GL context";
11035 LOG(ERROR)
11036 << "Trying to call glIsVertexArrayOES() without current GL context";
11037 return GL_FALSE;
11040 void NoContextGLApi::glLineWidthFn(GLfloat width) {
11041 NOTREACHED() << "Trying to call glLineWidth() without current GL context";
11042 LOG(ERROR) << "Trying to call glLineWidth() without current GL context";
11045 void NoContextGLApi::glLinkProgramFn(GLuint program) {
11046 NOTREACHED() << "Trying to call glLinkProgram() without current GL context";
11047 LOG(ERROR) << "Trying to call glLinkProgram() without current GL context";
11050 void* NoContextGLApi::glMapBufferFn(GLenum target, GLenum access) {
11051 NOTREACHED() << "Trying to call glMapBuffer() without current GL context";
11052 LOG(ERROR) << "Trying to call glMapBuffer() without current GL context";
11053 return NULL;
11056 void* NoContextGLApi::glMapBufferRangeFn(GLenum target,
11057 GLintptr offset,
11058 GLsizeiptr length,
11059 GLbitfield access) {
11060 NOTREACHED()
11061 << "Trying to call glMapBufferRange() without current GL context";
11062 LOG(ERROR) << "Trying to call glMapBufferRange() without current GL context";
11063 return NULL;
11066 void NoContextGLApi::glMatrixLoadfEXTFn(GLenum matrixMode, const GLfloat* m) {
11067 NOTREACHED()
11068 << "Trying to call glMatrixLoadfEXT() without current GL context";
11069 LOG(ERROR) << "Trying to call glMatrixLoadfEXT() without current GL context";
11072 void NoContextGLApi::glMatrixLoadIdentityEXTFn(GLenum matrixMode) {
11073 NOTREACHED()
11074 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
11075 LOG(ERROR)
11076 << "Trying to call glMatrixLoadIdentityEXT() without current GL context";
11079 void NoContextGLApi::glPauseTransformFeedbackFn(void) {
11080 NOTREACHED()
11081 << "Trying to call glPauseTransformFeedback() without current GL context";
11082 LOG(ERROR)
11083 << "Trying to call glPauseTransformFeedback() without current GL context";
11086 void NoContextGLApi::glPixelStoreiFn(GLenum pname, GLint param) {
11087 NOTREACHED() << "Trying to call glPixelStorei() without current GL context";
11088 LOG(ERROR) << "Trying to call glPixelStorei() without current GL context";
11091 void NoContextGLApi::glPointParameteriFn(GLenum pname, GLint param) {
11092 NOTREACHED()
11093 << "Trying to call glPointParameteri() without current GL context";
11094 LOG(ERROR) << "Trying to call glPointParameteri() without current GL context";
11097 void NoContextGLApi::glPolygonOffsetFn(GLfloat factor, GLfloat units) {
11098 NOTREACHED() << "Trying to call glPolygonOffset() without current GL context";
11099 LOG(ERROR) << "Trying to call glPolygonOffset() without current GL context";
11102 void NoContextGLApi::glPopGroupMarkerEXTFn(void) {
11103 NOTREACHED()
11104 << "Trying to call glPopGroupMarkerEXT() without current GL context";
11105 LOG(ERROR)
11106 << "Trying to call glPopGroupMarkerEXT() without current GL context";
11109 void NoContextGLApi::glProgramBinaryFn(GLuint program,
11110 GLenum binaryFormat,
11111 const GLvoid* binary,
11112 GLsizei length) {
11113 NOTREACHED() << "Trying to call glProgramBinary() without current GL context";
11114 LOG(ERROR) << "Trying to call glProgramBinary() without current GL context";
11117 void NoContextGLApi::glProgramParameteriFn(GLuint program,
11118 GLenum pname,
11119 GLint value) {
11120 NOTREACHED()
11121 << "Trying to call glProgramParameteri() without current GL context";
11122 LOG(ERROR)
11123 << "Trying to call glProgramParameteri() without current GL context";
11126 void NoContextGLApi::glPushGroupMarkerEXTFn(GLsizei length,
11127 const char* marker) {
11128 NOTREACHED()
11129 << "Trying to call glPushGroupMarkerEXT() without current GL context";
11130 LOG(ERROR)
11131 << "Trying to call glPushGroupMarkerEXT() without current GL context";
11134 void NoContextGLApi::glQueryCounterFn(GLuint id, GLenum target) {
11135 NOTREACHED() << "Trying to call glQueryCounter() without current GL context";
11136 LOG(ERROR) << "Trying to call glQueryCounter() without current GL context";
11139 void NoContextGLApi::glReadBufferFn(GLenum src) {
11140 NOTREACHED() << "Trying to call glReadBuffer() without current GL context";
11141 LOG(ERROR) << "Trying to call glReadBuffer() without current GL context";
11144 void NoContextGLApi::glReadPixelsFn(GLint x,
11145 GLint y,
11146 GLsizei width,
11147 GLsizei height,
11148 GLenum format,
11149 GLenum type,
11150 void* pixels) {
11151 NOTREACHED() << "Trying to call glReadPixels() without current GL context";
11152 LOG(ERROR) << "Trying to call glReadPixels() without current GL context";
11155 void NoContextGLApi::glReleaseShaderCompilerFn(void) {
11156 NOTREACHED()
11157 << "Trying to call glReleaseShaderCompiler() without current GL context";
11158 LOG(ERROR)
11159 << "Trying to call glReleaseShaderCompiler() without current GL context";
11162 void NoContextGLApi::glRenderbufferStorageEXTFn(GLenum target,
11163 GLenum internalformat,
11164 GLsizei width,
11165 GLsizei height) {
11166 NOTREACHED()
11167 << "Trying to call glRenderbufferStorageEXT() without current GL context";
11168 LOG(ERROR)
11169 << "Trying to call glRenderbufferStorageEXT() without current GL context";
11172 void NoContextGLApi::glRenderbufferStorageMultisampleFn(GLenum target,
11173 GLsizei samples,
11174 GLenum internalformat,
11175 GLsizei width,
11176 GLsizei height) {
11177 NOTREACHED() << "Trying to call glRenderbufferStorageMultisample() without "
11178 "current GL context";
11179 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisample() without "
11180 "current GL context";
11183 void NoContextGLApi::glRenderbufferStorageMultisampleANGLEFn(
11184 GLenum target,
11185 GLsizei samples,
11186 GLenum internalformat,
11187 GLsizei width,
11188 GLsizei height) {
11189 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleANGLE() "
11190 "without current GL context";
11191 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleANGLE() "
11192 "without current GL context";
11195 void NoContextGLApi::glRenderbufferStorageMultisampleEXTFn(
11196 GLenum target,
11197 GLsizei samples,
11198 GLenum internalformat,
11199 GLsizei width,
11200 GLsizei height) {
11201 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleEXT() "
11202 "without current GL context";
11203 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleEXT() without "
11204 "current GL context";
11207 void NoContextGLApi::glRenderbufferStorageMultisampleIMGFn(
11208 GLenum target,
11209 GLsizei samples,
11210 GLenum internalformat,
11211 GLsizei width,
11212 GLsizei height) {
11213 NOTREACHED() << "Trying to call glRenderbufferStorageMultisampleIMG() "
11214 "without current GL context";
11215 LOG(ERROR) << "Trying to call glRenderbufferStorageMultisampleIMG() without "
11216 "current GL context";
11219 void NoContextGLApi::glResumeTransformFeedbackFn(void) {
11220 NOTREACHED() << "Trying to call glResumeTransformFeedback() without current "
11221 "GL context";
11222 LOG(ERROR) << "Trying to call glResumeTransformFeedback() without current GL "
11223 "context";
11226 void NoContextGLApi::glSampleCoverageFn(GLclampf value, GLboolean invert) {
11227 NOTREACHED()
11228 << "Trying to call glSampleCoverage() without current GL context";
11229 LOG(ERROR) << "Trying to call glSampleCoverage() without current GL context";
11232 void NoContextGLApi::glSamplerParameterfFn(GLuint sampler,
11233 GLenum pname,
11234 GLfloat param) {
11235 NOTREACHED()
11236 << "Trying to call glSamplerParameterf() without current GL context";
11237 LOG(ERROR)
11238 << "Trying to call glSamplerParameterf() without current GL context";
11241 void NoContextGLApi::glSamplerParameterfvFn(GLuint sampler,
11242 GLenum pname,
11243 const GLfloat* params) {
11244 NOTREACHED()
11245 << "Trying to call glSamplerParameterfv() without current GL context";
11246 LOG(ERROR)
11247 << "Trying to call glSamplerParameterfv() without current GL context";
11250 void NoContextGLApi::glSamplerParameteriFn(GLuint sampler,
11251 GLenum pname,
11252 GLint param) {
11253 NOTREACHED()
11254 << "Trying to call glSamplerParameteri() without current GL context";
11255 LOG(ERROR)
11256 << "Trying to call glSamplerParameteri() without current GL context";
11259 void NoContextGLApi::glSamplerParameterivFn(GLuint sampler,
11260 GLenum pname,
11261 const GLint* params) {
11262 NOTREACHED()
11263 << "Trying to call glSamplerParameteriv() without current GL context";
11264 LOG(ERROR)
11265 << "Trying to call glSamplerParameteriv() without current GL context";
11268 void NoContextGLApi::glScissorFn(GLint x,
11269 GLint y,
11270 GLsizei width,
11271 GLsizei height) {
11272 NOTREACHED() << "Trying to call glScissor() without current GL context";
11273 LOG(ERROR) << "Trying to call glScissor() without current GL context";
11276 void NoContextGLApi::glSetFenceAPPLEFn(GLuint fence) {
11277 NOTREACHED() << "Trying to call glSetFenceAPPLE() without current GL context";
11278 LOG(ERROR) << "Trying to call glSetFenceAPPLE() without current GL context";
11281 void NoContextGLApi::glSetFenceNVFn(GLuint fence, GLenum condition) {
11282 NOTREACHED() << "Trying to call glSetFenceNV() without current GL context";
11283 LOG(ERROR) << "Trying to call glSetFenceNV() without current GL context";
11286 void NoContextGLApi::glShaderBinaryFn(GLsizei n,
11287 const GLuint* shaders,
11288 GLenum binaryformat,
11289 const void* binary,
11290 GLsizei length) {
11291 NOTREACHED() << "Trying to call glShaderBinary() without current GL context";
11292 LOG(ERROR) << "Trying to call glShaderBinary() without current GL context";
11295 void NoContextGLApi::glShaderSourceFn(GLuint shader,
11296 GLsizei count,
11297 const char* const* str,
11298 const GLint* length) {
11299 NOTREACHED() << "Trying to call glShaderSource() without current GL context";
11300 LOG(ERROR) << "Trying to call glShaderSource() without current GL context";
11303 void NoContextGLApi::glStencilFuncFn(GLenum func, GLint ref, GLuint mask) {
11304 NOTREACHED() << "Trying to call glStencilFunc() without current GL context";
11305 LOG(ERROR) << "Trying to call glStencilFunc() without current GL context";
11308 void NoContextGLApi::glStencilFuncSeparateFn(GLenum face,
11309 GLenum func,
11310 GLint ref,
11311 GLuint mask) {
11312 NOTREACHED()
11313 << "Trying to call glStencilFuncSeparate() without current GL context";
11314 LOG(ERROR)
11315 << "Trying to call glStencilFuncSeparate() without current GL context";
11318 void NoContextGLApi::glStencilMaskFn(GLuint mask) {
11319 NOTREACHED() << "Trying to call glStencilMask() without current GL context";
11320 LOG(ERROR) << "Trying to call glStencilMask() without current GL context";
11323 void NoContextGLApi::glStencilMaskSeparateFn(GLenum face, GLuint mask) {
11324 NOTREACHED()
11325 << "Trying to call glStencilMaskSeparate() without current GL context";
11326 LOG(ERROR)
11327 << "Trying to call glStencilMaskSeparate() without current GL context";
11330 void NoContextGLApi::glStencilOpFn(GLenum fail, GLenum zfail, GLenum zpass) {
11331 NOTREACHED() << "Trying to call glStencilOp() without current GL context";
11332 LOG(ERROR) << "Trying to call glStencilOp() without current GL context";
11335 void NoContextGLApi::glStencilOpSeparateFn(GLenum face,
11336 GLenum fail,
11337 GLenum zfail,
11338 GLenum zpass) {
11339 NOTREACHED()
11340 << "Trying to call glStencilOpSeparate() without current GL context";
11341 LOG(ERROR)
11342 << "Trying to call glStencilOpSeparate() without current GL context";
11345 GLboolean NoContextGLApi::glTestFenceAPPLEFn(GLuint fence) {
11346 NOTREACHED()
11347 << "Trying to call glTestFenceAPPLE() without current GL context";
11348 LOG(ERROR) << "Trying to call glTestFenceAPPLE() without current GL context";
11349 return GL_FALSE;
11352 GLboolean NoContextGLApi::glTestFenceNVFn(GLuint fence) {
11353 NOTREACHED() << "Trying to call glTestFenceNV() without current GL context";
11354 LOG(ERROR) << "Trying to call glTestFenceNV() without current GL context";
11355 return GL_FALSE;
11358 void NoContextGLApi::glTexImage2DFn(GLenum target,
11359 GLint level,
11360 GLint internalformat,
11361 GLsizei width,
11362 GLsizei height,
11363 GLint border,
11364 GLenum format,
11365 GLenum type,
11366 const void* pixels) {
11367 NOTREACHED() << "Trying to call glTexImage2D() without current GL context";
11368 LOG(ERROR) << "Trying to call glTexImage2D() without current GL context";
11371 void NoContextGLApi::glTexImage3DFn(GLenum target,
11372 GLint level,
11373 GLint internalformat,
11374 GLsizei width,
11375 GLsizei height,
11376 GLsizei depth,
11377 GLint border,
11378 GLenum format,
11379 GLenum type,
11380 const void* pixels) {
11381 NOTREACHED() << "Trying to call glTexImage3D() without current GL context";
11382 LOG(ERROR) << "Trying to call glTexImage3D() without current GL context";
11385 void NoContextGLApi::glTexParameterfFn(GLenum target,
11386 GLenum pname,
11387 GLfloat param) {
11388 NOTREACHED() << "Trying to call glTexParameterf() without current GL context";
11389 LOG(ERROR) << "Trying to call glTexParameterf() without current GL context";
11392 void NoContextGLApi::glTexParameterfvFn(GLenum target,
11393 GLenum pname,
11394 const GLfloat* params) {
11395 NOTREACHED()
11396 << "Trying to call glTexParameterfv() without current GL context";
11397 LOG(ERROR) << "Trying to call glTexParameterfv() without current GL context";
11400 void NoContextGLApi::glTexParameteriFn(GLenum target,
11401 GLenum pname,
11402 GLint param) {
11403 NOTREACHED() << "Trying to call glTexParameteri() without current GL context";
11404 LOG(ERROR) << "Trying to call glTexParameteri() without current GL context";
11407 void NoContextGLApi::glTexParameterivFn(GLenum target,
11408 GLenum pname,
11409 const GLint* params) {
11410 NOTREACHED()
11411 << "Trying to call glTexParameteriv() without current GL context";
11412 LOG(ERROR) << "Trying to call glTexParameteriv() without current GL context";
11415 void NoContextGLApi::glTexStorage2DEXTFn(GLenum target,
11416 GLsizei levels,
11417 GLenum internalformat,
11418 GLsizei width,
11419 GLsizei height) {
11420 NOTREACHED()
11421 << "Trying to call glTexStorage2DEXT() without current GL context";
11422 LOG(ERROR) << "Trying to call glTexStorage2DEXT() without current GL context";
11425 void NoContextGLApi::glTexStorage3DFn(GLenum target,
11426 GLsizei levels,
11427 GLenum internalformat,
11428 GLsizei width,
11429 GLsizei height,
11430 GLsizei depth) {
11431 NOTREACHED() << "Trying to call glTexStorage3D() without current GL context";
11432 LOG(ERROR) << "Trying to call glTexStorage3D() without current GL context";
11435 void NoContextGLApi::glTexSubImage2DFn(GLenum target,
11436 GLint level,
11437 GLint xoffset,
11438 GLint yoffset,
11439 GLsizei width,
11440 GLsizei height,
11441 GLenum format,
11442 GLenum type,
11443 const void* pixels) {
11444 NOTREACHED() << "Trying to call glTexSubImage2D() without current GL context";
11445 LOG(ERROR) << "Trying to call glTexSubImage2D() without current GL context";
11448 void NoContextGLApi::glTransformFeedbackVaryingsFn(GLuint program,
11449 GLsizei count,
11450 const char* const* varyings,
11451 GLenum bufferMode) {
11452 NOTREACHED() << "Trying to call glTransformFeedbackVaryings() without "
11453 "current GL context";
11454 LOG(ERROR) << "Trying to call glTransformFeedbackVaryings() without current "
11455 "GL context";
11458 void NoContextGLApi::glUniform1fFn(GLint location, GLfloat x) {
11459 NOTREACHED() << "Trying to call glUniform1f() without current GL context";
11460 LOG(ERROR) << "Trying to call glUniform1f() without current GL context";
11463 void NoContextGLApi::glUniform1fvFn(GLint location,
11464 GLsizei count,
11465 const GLfloat* v) {
11466 NOTREACHED() << "Trying to call glUniform1fv() without current GL context";
11467 LOG(ERROR) << "Trying to call glUniform1fv() without current GL context";
11470 void NoContextGLApi::glUniform1iFn(GLint location, GLint x) {
11471 NOTREACHED() << "Trying to call glUniform1i() without current GL context";
11472 LOG(ERROR) << "Trying to call glUniform1i() without current GL context";
11475 void NoContextGLApi::glUniform1ivFn(GLint location,
11476 GLsizei count,
11477 const GLint* v) {
11478 NOTREACHED() << "Trying to call glUniform1iv() without current GL context";
11479 LOG(ERROR) << "Trying to call glUniform1iv() without current GL context";
11482 void NoContextGLApi::glUniform1uiFn(GLint location, GLuint v0) {
11483 NOTREACHED() << "Trying to call glUniform1ui() without current GL context";
11484 LOG(ERROR) << "Trying to call glUniform1ui() without current GL context";
11487 void NoContextGLApi::glUniform1uivFn(GLint location,
11488 GLsizei count,
11489 const GLuint* v) {
11490 NOTREACHED() << "Trying to call glUniform1uiv() without current GL context";
11491 LOG(ERROR) << "Trying to call glUniform1uiv() without current GL context";
11494 void NoContextGLApi::glUniform2fFn(GLint location, GLfloat x, GLfloat y) {
11495 NOTREACHED() << "Trying to call glUniform2f() without current GL context";
11496 LOG(ERROR) << "Trying to call glUniform2f() without current GL context";
11499 void NoContextGLApi::glUniform2fvFn(GLint location,
11500 GLsizei count,
11501 const GLfloat* v) {
11502 NOTREACHED() << "Trying to call glUniform2fv() without current GL context";
11503 LOG(ERROR) << "Trying to call glUniform2fv() without current GL context";
11506 void NoContextGLApi::glUniform2iFn(GLint location, GLint x, GLint y) {
11507 NOTREACHED() << "Trying to call glUniform2i() without current GL context";
11508 LOG(ERROR) << "Trying to call glUniform2i() without current GL context";
11511 void NoContextGLApi::glUniform2ivFn(GLint location,
11512 GLsizei count,
11513 const GLint* v) {
11514 NOTREACHED() << "Trying to call glUniform2iv() without current GL context";
11515 LOG(ERROR) << "Trying to call glUniform2iv() without current GL context";
11518 void NoContextGLApi::glUniform2uiFn(GLint location, GLuint v0, GLuint v1) {
11519 NOTREACHED() << "Trying to call glUniform2ui() without current GL context";
11520 LOG(ERROR) << "Trying to call glUniform2ui() without current GL context";
11523 void NoContextGLApi::glUniform2uivFn(GLint location,
11524 GLsizei count,
11525 const GLuint* v) {
11526 NOTREACHED() << "Trying to call glUniform2uiv() without current GL context";
11527 LOG(ERROR) << "Trying to call glUniform2uiv() without current GL context";
11530 void NoContextGLApi::glUniform3fFn(GLint location,
11531 GLfloat x,
11532 GLfloat y,
11533 GLfloat z) {
11534 NOTREACHED() << "Trying to call glUniform3f() without current GL context";
11535 LOG(ERROR) << "Trying to call glUniform3f() without current GL context";
11538 void NoContextGLApi::glUniform3fvFn(GLint location,
11539 GLsizei count,
11540 const GLfloat* v) {
11541 NOTREACHED() << "Trying to call glUniform3fv() without current GL context";
11542 LOG(ERROR) << "Trying to call glUniform3fv() without current GL context";
11545 void NoContextGLApi::glUniform3iFn(GLint location, GLint x, GLint y, GLint z) {
11546 NOTREACHED() << "Trying to call glUniform3i() without current GL context";
11547 LOG(ERROR) << "Trying to call glUniform3i() without current GL context";
11550 void NoContextGLApi::glUniform3ivFn(GLint location,
11551 GLsizei count,
11552 const GLint* v) {
11553 NOTREACHED() << "Trying to call glUniform3iv() without current GL context";
11554 LOG(ERROR) << "Trying to call glUniform3iv() without current GL context";
11557 void NoContextGLApi::glUniform3uiFn(GLint location,
11558 GLuint v0,
11559 GLuint v1,
11560 GLuint v2) {
11561 NOTREACHED() << "Trying to call glUniform3ui() without current GL context";
11562 LOG(ERROR) << "Trying to call glUniform3ui() without current GL context";
11565 void NoContextGLApi::glUniform3uivFn(GLint location,
11566 GLsizei count,
11567 const GLuint* v) {
11568 NOTREACHED() << "Trying to call glUniform3uiv() without current GL context";
11569 LOG(ERROR) << "Trying to call glUniform3uiv() without current GL context";
11572 void NoContextGLApi::glUniform4fFn(GLint location,
11573 GLfloat x,
11574 GLfloat y,
11575 GLfloat z,
11576 GLfloat w) {
11577 NOTREACHED() << "Trying to call glUniform4f() without current GL context";
11578 LOG(ERROR) << "Trying to call glUniform4f() without current GL context";
11581 void NoContextGLApi::glUniform4fvFn(GLint location,
11582 GLsizei count,
11583 const GLfloat* v) {
11584 NOTREACHED() << "Trying to call glUniform4fv() without current GL context";
11585 LOG(ERROR) << "Trying to call glUniform4fv() without current GL context";
11588 void NoContextGLApi::glUniform4iFn(GLint location,
11589 GLint x,
11590 GLint y,
11591 GLint z,
11592 GLint w) {
11593 NOTREACHED() << "Trying to call glUniform4i() without current GL context";
11594 LOG(ERROR) << "Trying to call glUniform4i() without current GL context";
11597 void NoContextGLApi::glUniform4ivFn(GLint location,
11598 GLsizei count,
11599 const GLint* v) {
11600 NOTREACHED() << "Trying to call glUniform4iv() without current GL context";
11601 LOG(ERROR) << "Trying to call glUniform4iv() without current GL context";
11604 void NoContextGLApi::glUniform4uiFn(GLint location,
11605 GLuint v0,
11606 GLuint v1,
11607 GLuint v2,
11608 GLuint v3) {
11609 NOTREACHED() << "Trying to call glUniform4ui() without current GL context";
11610 LOG(ERROR) << "Trying to call glUniform4ui() without current GL context";
11613 void NoContextGLApi::glUniform4uivFn(GLint location,
11614 GLsizei count,
11615 const GLuint* v) {
11616 NOTREACHED() << "Trying to call glUniform4uiv() without current GL context";
11617 LOG(ERROR) << "Trying to call glUniform4uiv() without current GL context";
11620 void NoContextGLApi::glUniformBlockBindingFn(GLuint program,
11621 GLuint uniformBlockIndex,
11622 GLuint uniformBlockBinding) {
11623 NOTREACHED()
11624 << "Trying to call glUniformBlockBinding() without current GL context";
11625 LOG(ERROR)
11626 << "Trying to call glUniformBlockBinding() without current GL context";
11629 void NoContextGLApi::glUniformMatrix2fvFn(GLint location,
11630 GLsizei count,
11631 GLboolean transpose,
11632 const GLfloat* value) {
11633 NOTREACHED()
11634 << "Trying to call glUniformMatrix2fv() without current GL context";
11635 LOG(ERROR)
11636 << "Trying to call glUniformMatrix2fv() without current GL context";
11639 void NoContextGLApi::glUniformMatrix2x3fvFn(GLint location,
11640 GLsizei count,
11641 GLboolean transpose,
11642 const GLfloat* value) {
11643 NOTREACHED()
11644 << "Trying to call glUniformMatrix2x3fv() without current GL context";
11645 LOG(ERROR)
11646 << "Trying to call glUniformMatrix2x3fv() without current GL context";
11649 void NoContextGLApi::glUniformMatrix2x4fvFn(GLint location,
11650 GLsizei count,
11651 GLboolean transpose,
11652 const GLfloat* value) {
11653 NOTREACHED()
11654 << "Trying to call glUniformMatrix2x4fv() without current GL context";
11655 LOG(ERROR)
11656 << "Trying to call glUniformMatrix2x4fv() without current GL context";
11659 void NoContextGLApi::glUniformMatrix3fvFn(GLint location,
11660 GLsizei count,
11661 GLboolean transpose,
11662 const GLfloat* value) {
11663 NOTREACHED()
11664 << "Trying to call glUniformMatrix3fv() without current GL context";
11665 LOG(ERROR)
11666 << "Trying to call glUniformMatrix3fv() without current GL context";
11669 void NoContextGLApi::glUniformMatrix3x2fvFn(GLint location,
11670 GLsizei count,
11671 GLboolean transpose,
11672 const GLfloat* value) {
11673 NOTREACHED()
11674 << "Trying to call glUniformMatrix3x2fv() without current GL context";
11675 LOG(ERROR)
11676 << "Trying to call glUniformMatrix3x2fv() without current GL context";
11679 void NoContextGLApi::glUniformMatrix3x4fvFn(GLint location,
11680 GLsizei count,
11681 GLboolean transpose,
11682 const GLfloat* value) {
11683 NOTREACHED()
11684 << "Trying to call glUniformMatrix3x4fv() without current GL context";
11685 LOG(ERROR)
11686 << "Trying to call glUniformMatrix3x4fv() without current GL context";
11689 void NoContextGLApi::glUniformMatrix4fvFn(GLint location,
11690 GLsizei count,
11691 GLboolean transpose,
11692 const GLfloat* value) {
11693 NOTREACHED()
11694 << "Trying to call glUniformMatrix4fv() without current GL context";
11695 LOG(ERROR)
11696 << "Trying to call glUniformMatrix4fv() without current GL context";
11699 void NoContextGLApi::glUniformMatrix4x2fvFn(GLint location,
11700 GLsizei count,
11701 GLboolean transpose,
11702 const GLfloat* value) {
11703 NOTREACHED()
11704 << "Trying to call glUniformMatrix4x2fv() without current GL context";
11705 LOG(ERROR)
11706 << "Trying to call glUniformMatrix4x2fv() without current GL context";
11709 void NoContextGLApi::glUniformMatrix4x3fvFn(GLint location,
11710 GLsizei count,
11711 GLboolean transpose,
11712 const GLfloat* value) {
11713 NOTREACHED()
11714 << "Trying to call glUniformMatrix4x3fv() without current GL context";
11715 LOG(ERROR)
11716 << "Trying to call glUniformMatrix4x3fv() without current GL context";
11719 GLboolean NoContextGLApi::glUnmapBufferFn(GLenum target) {
11720 NOTREACHED() << "Trying to call glUnmapBuffer() without current GL context";
11721 LOG(ERROR) << "Trying to call glUnmapBuffer() without current GL context";
11722 return GL_FALSE;
11725 void NoContextGLApi::glUseProgramFn(GLuint program) {
11726 NOTREACHED() << "Trying to call glUseProgram() without current GL context";
11727 LOG(ERROR) << "Trying to call glUseProgram() without current GL context";
11730 void NoContextGLApi::glValidateProgramFn(GLuint program) {
11731 NOTREACHED()
11732 << "Trying to call glValidateProgram() without current GL context";
11733 LOG(ERROR) << "Trying to call glValidateProgram() without current GL context";
11736 void NoContextGLApi::glVertexAttrib1fFn(GLuint indx, GLfloat x) {
11737 NOTREACHED()
11738 << "Trying to call glVertexAttrib1f() without current GL context";
11739 LOG(ERROR) << "Trying to call glVertexAttrib1f() without current GL context";
11742 void NoContextGLApi::glVertexAttrib1fvFn(GLuint indx, const GLfloat* values) {
11743 NOTREACHED()
11744 << "Trying to call glVertexAttrib1fv() without current GL context";
11745 LOG(ERROR) << "Trying to call glVertexAttrib1fv() without current GL context";
11748 void NoContextGLApi::glVertexAttrib2fFn(GLuint indx, GLfloat x, GLfloat y) {
11749 NOTREACHED()
11750 << "Trying to call glVertexAttrib2f() without current GL context";
11751 LOG(ERROR) << "Trying to call glVertexAttrib2f() without current GL context";
11754 void NoContextGLApi::glVertexAttrib2fvFn(GLuint indx, const GLfloat* values) {
11755 NOTREACHED()
11756 << "Trying to call glVertexAttrib2fv() without current GL context";
11757 LOG(ERROR) << "Trying to call glVertexAttrib2fv() without current GL context";
11760 void NoContextGLApi::glVertexAttrib3fFn(GLuint indx,
11761 GLfloat x,
11762 GLfloat y,
11763 GLfloat z) {
11764 NOTREACHED()
11765 << "Trying to call glVertexAttrib3f() without current GL context";
11766 LOG(ERROR) << "Trying to call glVertexAttrib3f() without current GL context";
11769 void NoContextGLApi::glVertexAttrib3fvFn(GLuint indx, const GLfloat* values) {
11770 NOTREACHED()
11771 << "Trying to call glVertexAttrib3fv() without current GL context";
11772 LOG(ERROR) << "Trying to call glVertexAttrib3fv() without current GL context";
11775 void NoContextGLApi::glVertexAttrib4fFn(GLuint indx,
11776 GLfloat x,
11777 GLfloat y,
11778 GLfloat z,
11779 GLfloat w) {
11780 NOTREACHED()
11781 << "Trying to call glVertexAttrib4f() without current GL context";
11782 LOG(ERROR) << "Trying to call glVertexAttrib4f() without current GL context";
11785 void NoContextGLApi::glVertexAttrib4fvFn(GLuint indx, const GLfloat* values) {
11786 NOTREACHED()
11787 << "Trying to call glVertexAttrib4fv() without current GL context";
11788 LOG(ERROR) << "Trying to call glVertexAttrib4fv() without current GL context";
11791 void NoContextGLApi::glVertexAttribDivisorANGLEFn(GLuint index,
11792 GLuint divisor) {
11793 NOTREACHED() << "Trying to call glVertexAttribDivisorANGLE() without current "
11794 "GL context";
11795 LOG(ERROR) << "Trying to call glVertexAttribDivisorANGLE() without current "
11796 "GL context";
11799 void NoContextGLApi::glVertexAttribI4iFn(GLuint indx,
11800 GLint x,
11801 GLint y,
11802 GLint z,
11803 GLint w) {
11804 NOTREACHED()
11805 << "Trying to call glVertexAttribI4i() without current GL context";
11806 LOG(ERROR) << "Trying to call glVertexAttribI4i() without current GL context";
11809 void NoContextGLApi::glVertexAttribI4ivFn(GLuint indx, const GLint* values) {
11810 NOTREACHED()
11811 << "Trying to call glVertexAttribI4iv() without current GL context";
11812 LOG(ERROR)
11813 << "Trying to call glVertexAttribI4iv() without current GL context";
11816 void NoContextGLApi::glVertexAttribI4uiFn(GLuint indx,
11817 GLuint x,
11818 GLuint y,
11819 GLuint z,
11820 GLuint w) {
11821 NOTREACHED()
11822 << "Trying to call glVertexAttribI4ui() without current GL context";
11823 LOG(ERROR)
11824 << "Trying to call glVertexAttribI4ui() without current GL context";
11827 void NoContextGLApi::glVertexAttribI4uivFn(GLuint indx, const GLuint* values) {
11828 NOTREACHED()
11829 << "Trying to call glVertexAttribI4uiv() without current GL context";
11830 LOG(ERROR)
11831 << "Trying to call glVertexAttribI4uiv() without current GL context";
11834 void NoContextGLApi::glVertexAttribIPointerFn(GLuint indx,
11835 GLint size,
11836 GLenum type,
11837 GLsizei stride,
11838 const void* ptr) {
11839 NOTREACHED()
11840 << "Trying to call glVertexAttribIPointer() without current GL context";
11841 LOG(ERROR)
11842 << "Trying to call glVertexAttribIPointer() without current GL context";
11845 void NoContextGLApi::glVertexAttribPointerFn(GLuint indx,
11846 GLint size,
11847 GLenum type,
11848 GLboolean normalized,
11849 GLsizei stride,
11850 const void* ptr) {
11851 NOTREACHED()
11852 << "Trying to call glVertexAttribPointer() without current GL context";
11853 LOG(ERROR)
11854 << "Trying to call glVertexAttribPointer() without current GL context";
11857 void NoContextGLApi::glViewportFn(GLint x,
11858 GLint y,
11859 GLsizei width,
11860 GLsizei height) {
11861 NOTREACHED() << "Trying to call glViewport() without current GL context";
11862 LOG(ERROR) << "Trying to call glViewport() without current GL context";
11865 GLenum NoContextGLApi::glWaitSyncFn(GLsync sync,
11866 GLbitfield flags,
11867 GLuint64 timeout) {
11868 NOTREACHED() << "Trying to call glWaitSync() without current GL context";
11869 LOG(ERROR) << "Trying to call glWaitSync() without current GL context";
11870 return static_cast<GLenum>(0);
11873 } // namespace gfx