1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
11 VISIT_GL_CALL(ActiveTexture, void, (GLenum texture), (texture))
12 VISIT_GL_CALL(AttachShader,
14 (GLuint program, GLuint shader),
16 VISIT_GL_CALL(BindAttribLocation,
18 (GLuint program, GLuint index, const char* name),
19 (program, index, name))
20 VISIT_GL_CALL(BindBuffer,
22 (GLenum target, GLuint buffer),
24 VISIT_GL_CALL(BindFramebuffer,
26 (GLenum target, GLuint framebuffer),
27 (target, framebuffer))
28 VISIT_GL_CALL(BindRenderbuffer,
30 (GLenum target, GLuint renderbuffer),
31 (target, renderbuffer))
32 VISIT_GL_CALL(BindTexture,
34 (GLenum target, GLuint texture),
36 VISIT_GL_CALL(BlendColor,
38 (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha),
39 (red, green, blue, alpha))
40 VISIT_GL_CALL(BlendEquation, void, (GLenum mode), (mode))
41 VISIT_GL_CALL(BlendEquationSeparate,
43 (GLenum modeRGB, GLenum modeAlpha),
45 VISIT_GL_CALL(BlendFunc,
47 (GLenum sfactor, GLenum dfactor),
49 VISIT_GL_CALL(BlendFuncSeparate,
51 (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha),
52 (srcRGB, dstRGB, srcAlpha, dstAlpha))
53 VISIT_GL_CALL(BufferData,
55 (GLenum target, GLsizeiptr size, const void* data, GLenum usage),
56 (target, size, data, usage))
60 (GLenum target, GLintptr offset, GLsizeiptr size, const void* data),
61 (target, offset, size, data))
62 VISIT_GL_CALL(CheckFramebufferStatus, GLenum, (GLenum target), (target))
63 VISIT_GL_CALL(Clear, void, (GLbitfield mask), (mask))
64 VISIT_GL_CALL(ClearColor,
66 (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha),
67 (red, green, blue, alpha))
68 VISIT_GL_CALL(ClearDepthf, void, (GLclampf depth), (depth))
69 VISIT_GL_CALL(ClearStencil, void, (GLint s), (s))
70 VISIT_GL_CALL(ColorMask,
72 (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha),
73 (red, green, blue, alpha))
74 VISIT_GL_CALL(CompileShader, void, (GLuint shader), (shader))
80 GLenum internalformat,
86 (target, level, internalformat, width, height, border, imageSize, data))
88 CompressedTexSubImage2D,
99 (target, level, xoffset, yoffset, width, height, format, imageSize, data))
100 VISIT_GL_CALL(CopyTexImage2D,
104 GLenum internalformat,
110 (target, level, internalformat, x, y, width, height, border))
111 VISIT_GL_CALL(CopyTexSubImage2D,
121 (target, level, xoffset, yoffset, x, y, width, height))
122 VISIT_GL_CALL(CreateProgram, GLuint, (), ())
123 VISIT_GL_CALL(CreateShader, GLuint, (GLenum type), (type))
124 VISIT_GL_CALL(CullFace, void, (GLenum mode), (mode))
125 VISIT_GL_CALL(DeleteBuffers,
127 (GLsizei n, const GLuint* buffers),
129 VISIT_GL_CALL(DeleteFramebuffers,
131 (GLsizei n, const GLuint* framebuffers),
133 VISIT_GL_CALL(DeleteProgram, void, (GLuint program), (program))
134 VISIT_GL_CALL(DeleteRenderbuffers,
136 (GLsizei n, const GLuint* renderbuffers),
138 VISIT_GL_CALL(DeleteShader, void, (GLuint shader), (shader))
139 VISIT_GL_CALL(DeleteTextures,
141 (GLsizei n, const GLuint* textures),
143 VISIT_GL_CALL(DepthFunc, void, (GLenum func), (func))
144 VISIT_GL_CALL(DepthMask, void, (GLboolean flag), (flag))
145 VISIT_GL_CALL(DepthRangef, void, (GLclampf zNear, GLclampf zFar), (zNear, zFar))
146 VISIT_GL_CALL(DetachShader,
148 (GLuint program, GLuint shader),
150 VISIT_GL_CALL(Disable, void, (GLenum cap), (cap))
151 VISIT_GL_CALL(DisableVertexAttribArray, void, (GLuint index), (index))
152 VISIT_GL_CALL(DrawArrays,
154 (GLenum mode, GLint first, GLsizei count),
155 (mode, first, count))
156 VISIT_GL_CALL(DrawElements,
158 (GLenum mode, GLsizei count, GLenum type, const void* indices),
159 (mode, count, type, indices))
160 VISIT_GL_CALL(Enable, void, (GLenum cap), (cap))
161 VISIT_GL_CALL(EnableVertexAttribArray, void, (GLuint index), (index))
162 VISIT_GL_CALL(Finish, void, (), ())
163 VISIT_GL_CALL(Flush, void, (), ())
164 VISIT_GL_CALL(FramebufferRenderbuffer,
168 GLenum renderbuffertarget,
169 GLuint renderbuffer),
170 (target, attachment, renderbuffertarget, renderbuffer))
171 VISIT_GL_CALL(FramebufferTexture2D,
178 (target, attachment, textarget, texture, level))
179 VISIT_GL_CALL(FrontFace, void, (GLenum mode), (mode))
180 VISIT_GL_CALL(GenBuffers, void, (GLsizei n, GLuint* buffers), (n, buffers))
181 VISIT_GL_CALL(GenerateMipmap, void, (GLenum target), (target))
182 VISIT_GL_CALL(GenFramebuffers,
184 (GLsizei n, GLuint* framebuffers),
186 VISIT_GL_CALL(GenRenderbuffers,
188 (GLsizei n, GLuint* renderbuffers),
190 VISIT_GL_CALL(GenTextures, void, (GLsizei n, GLuint* textures), (n, textures))
191 VISIT_GL_CALL(GetActiveAttrib,
200 (program, index, bufsize, length, size, type, name))
201 VISIT_GL_CALL(GetActiveUniform,
210 (program, index, bufsize, length, size, type, name))
214 (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders),
215 (program, maxcount, count, shaders))
216 VISIT_GL_CALL(GetAttribLocation,
218 (GLuint program, const char* name),
220 VISIT_GL_CALL(GetBooleanv,
222 (GLenum pname, GLboolean* params),
224 VISIT_GL_CALL(GetBufferParameteriv,
226 (GLenum target, GLenum pname, GLint* params),
227 (target, pname, params))
228 VISIT_GL_CALL(GetError, GLenum, (), ())
229 VISIT_GL_CALL(GetFloatv, void, (GLenum pname, GLfloat* params), (pname, params))
230 VISIT_GL_CALL(GetFramebufferAttachmentParameteriv,
232 (GLenum target, GLenum attachment, GLenum pname, GLint* params),
233 (target, attachment, pname, params))
234 VISIT_GL_CALL(GetIntegerv, void, (GLenum pname, GLint* params), (pname, params))
235 VISIT_GL_CALL(GetProgramiv,
237 (GLuint program, GLenum pname, GLint* params),
238 (program, pname, params))
239 VISIT_GL_CALL(GetProgramInfoLog,
241 (GLuint program, GLsizei bufsize, GLsizei* length, char* infolog),
242 (program, bufsize, length, infolog))
243 VISIT_GL_CALL(GetRenderbufferParameteriv,
245 (GLenum target, GLenum pname, GLint* params),
246 (target, pname, params))
247 VISIT_GL_CALL(GetShaderiv,
249 (GLuint shader, GLenum pname, GLint* params),
250 (shader, pname, params))
251 VISIT_GL_CALL(GetShaderInfoLog,
253 (GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog),
254 (shader, bufsize, length, infolog))
256 GetShaderPrecisionFormat,
258 (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision),
259 (shadertype, precisiontype, range, precision))
260 VISIT_GL_CALL(GetShaderSource,
262 (GLuint shader, GLsizei bufsize, GLsizei* length, char* source),
263 (shader, bufsize, length, source))
264 VISIT_GL_CALL(GetString, const GLubyte*, (GLenum name), (name))
265 VISIT_GL_CALL(GetTexParameterfv,
267 (GLenum target, GLenum pname, GLfloat* params),
268 (target, pname, params))
269 VISIT_GL_CALL(GetTexParameteriv,
271 (GLenum target, GLenum pname, GLint* params),
272 (target, pname, params))
273 VISIT_GL_CALL(GetUniformfv,
275 (GLuint program, GLint location, GLfloat* params),
276 (program, location, params))
277 VISIT_GL_CALL(GetUniformiv,
279 (GLuint program, GLint location, GLint* params),
280 (program, location, params))
281 VISIT_GL_CALL(GetUniformLocation,
283 (GLuint program, const char* name),
285 VISIT_GL_CALL(GetVertexAttribfv,
287 (GLuint index, GLenum pname, GLfloat* params),
288 (index, pname, params))
289 VISIT_GL_CALL(GetVertexAttribiv,
291 (GLuint index, GLenum pname, GLint* params),
292 (index, pname, params))
293 VISIT_GL_CALL(GetVertexAttribPointerv,
295 (GLuint index, GLenum pname, void** pointer),
296 (index, pname, pointer))
297 VISIT_GL_CALL(Hint, void, (GLenum target, GLenum mode), (target, mode))
298 VISIT_GL_CALL(IsBuffer, GLboolean, (GLuint buffer), (buffer))
299 VISIT_GL_CALL(IsEnabled, GLboolean, (GLenum cap), (cap))
300 VISIT_GL_CALL(IsFramebuffer, GLboolean, (GLuint framebuffer), (framebuffer))
301 VISIT_GL_CALL(IsProgram, GLboolean, (GLuint program), (program))
302 VISIT_GL_CALL(IsRenderbuffer, GLboolean, (GLuint renderbuffer), (renderbuffer))
303 VISIT_GL_CALL(IsShader, GLboolean, (GLuint shader), (shader))
304 VISIT_GL_CALL(IsTexture, GLboolean, (GLuint texture), (texture))
305 VISIT_GL_CALL(LineWidth, void, (GLfloat width), (width))
306 VISIT_GL_CALL(LinkProgram, void, (GLuint program), (program))
307 VISIT_GL_CALL(PixelStorei, void, (GLenum pname, GLint param), (pname, param))
308 VISIT_GL_CALL(PolygonOffset,
310 (GLfloat factor, GLfloat units),
312 VISIT_GL_CALL(ReadPixels,
321 (x, y, width, height, format, type, pixels))
322 VISIT_GL_CALL(ReleaseShaderCompiler, void, (), ())
326 (GLenum target, GLenum internalformat, GLsizei width, GLsizei height),
327 (target, internalformat, width, height))
328 VISIT_GL_CALL(SampleCoverage,
330 (GLclampf value, GLboolean invert),
332 VISIT_GL_CALL(Scissor,
334 (GLint x, GLint y, GLsizei width, GLsizei height),
335 (x, y, width, height))
336 VISIT_GL_CALL(ShaderBinary,
339 const GLuint* shaders,
343 (n, shaders, binaryformat, binary, length))
344 VISIT_GL_CALL(ShaderSource,
348 const GLchar* const* str,
349 const GLint* length),
350 (shader, count, str, length))
351 VISIT_GL_CALL(StencilFunc,
353 (GLenum func, GLint ref, GLuint mask),
355 VISIT_GL_CALL(StencilFuncSeparate,
357 (GLenum face, GLenum func, GLint ref, GLuint mask),
358 (face, func, ref, mask))
359 VISIT_GL_CALL(StencilMask, void, (GLuint mask), (mask))
360 VISIT_GL_CALL(StencilMaskSeparate,
362 (GLenum face, GLuint mask),
364 VISIT_GL_CALL(StencilOp,
366 (GLenum fail, GLenum zfail, GLenum zpass),
367 (fail, zfail, zpass))
368 VISIT_GL_CALL(StencilOpSeparate,
370 (GLenum face, GLenum fail, GLenum zfail, GLenum zpass),
371 (face, fail, zfail, zpass))
372 VISIT_GL_CALL(TexImage2D,
376 GLint internalformat,
392 VISIT_GL_CALL(TexParameterf,
394 (GLenum target, GLenum pname, GLfloat param),
395 (target, pname, param))
396 VISIT_GL_CALL(TexParameterfv,
398 (GLenum target, GLenum pname, const GLfloat* params),
399 (target, pname, params))
400 VISIT_GL_CALL(TexParameteri,
402 (GLenum target, GLenum pname, GLint param),
403 (target, pname, param))
404 VISIT_GL_CALL(TexParameteriv,
406 (GLenum target, GLenum pname, const GLint* params),
407 (target, pname, params))
420 (target, level, xoffset, yoffset, width, height, format, type, pixels))
421 VISIT_GL_CALL(Uniform1f, void, (GLint location, GLfloat x), (location, x))
422 VISIT_GL_CALL(Uniform1fv,
424 (GLint location, GLsizei count, const GLfloat* v),
425 (location, count, v))
426 VISIT_GL_CALL(Uniform1i, void, (GLint location, GLint x), (location, x))
427 VISIT_GL_CALL(Uniform1iv,
429 (GLint location, GLsizei count, const GLint* v),
430 (location, count, v))
431 VISIT_GL_CALL(Uniform2f,
433 (GLint location, GLfloat x, GLfloat y),
435 VISIT_GL_CALL(Uniform2fv,
437 (GLint location, GLsizei count, const GLfloat* v),
438 (location, count, v))
439 VISIT_GL_CALL(Uniform2i,
441 (GLint location, GLint x, GLint y),
443 VISIT_GL_CALL(Uniform2iv,
445 (GLint location, GLsizei count, const GLint* v),
446 (location, count, v))
447 VISIT_GL_CALL(Uniform3f,
449 (GLint location, GLfloat x, GLfloat y, GLfloat z),
451 VISIT_GL_CALL(Uniform3fv,
453 (GLint location, GLsizei count, const GLfloat* v),
454 (location, count, v))
455 VISIT_GL_CALL(Uniform3i,
457 (GLint location, GLint x, GLint y, GLint z),
459 VISIT_GL_CALL(Uniform3iv,
461 (GLint location, GLsizei count, const GLint* v),
462 (location, count, v))
463 VISIT_GL_CALL(Uniform4f,
465 (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w),
466 (location, x, y, z, w))
467 VISIT_GL_CALL(Uniform4fv,
469 (GLint location, GLsizei count, const GLfloat* v),
470 (location, count, v))
471 VISIT_GL_CALL(Uniform4i,
473 (GLint location, GLint x, GLint y, GLint z, GLint w),
474 (location, x, y, z, w))
475 VISIT_GL_CALL(Uniform4iv,
477 (GLint location, GLsizei count, const GLint* v),
478 (location, count, v))
482 (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
483 (location, count, transpose, value))
487 (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
488 (location, count, transpose, value))
492 (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value),
493 (location, count, transpose, value))
494 VISIT_GL_CALL(UseProgram, void, (GLuint program), (program))
495 VISIT_GL_CALL(ValidateProgram, void, (GLuint program), (program))
496 VISIT_GL_CALL(VertexAttrib1f, void, (GLuint indx, GLfloat x), (indx, x))
497 VISIT_GL_CALL(VertexAttrib1fv,
499 (GLuint indx, const GLfloat* values),
501 VISIT_GL_CALL(VertexAttrib2f,
503 (GLuint indx, GLfloat x, GLfloat y),
505 VISIT_GL_CALL(VertexAttrib2fv,
507 (GLuint indx, const GLfloat* values),
509 VISIT_GL_CALL(VertexAttrib3f,
511 (GLuint indx, GLfloat x, GLfloat y, GLfloat z),
513 VISIT_GL_CALL(VertexAttrib3fv,
515 (GLuint indx, const GLfloat* values),
517 VISIT_GL_CALL(VertexAttrib4f,
519 (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w),
521 VISIT_GL_CALL(VertexAttrib4fv,
523 (GLuint indx, const GLfloat* values),
525 VISIT_GL_CALL(VertexAttribPointer,
530 GLboolean normalized,
533 (indx, size, type, normalized, stride, ptr))
534 VISIT_GL_CALL(Viewport,
536 (GLint x, GLint y, GLsizei width, GLsizei height),
537 (x, y, width, height))