1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // 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
,
231 (GLenum pname
, GLfloat
* params
),
233 VISIT_GL_CALL(GetFramebufferAttachmentParameteriv
,
235 (GLenum target
, GLenum attachment
, GLenum pname
, GLint
* params
),
236 (target
, attachment
, pname
, params
))
237 VISIT_GL_CALL(GetIntegerv
,
239 (GLenum pname
, GLint
* params
),
241 VISIT_GL_CALL(GetProgramiv
,
243 (GLuint program
, GLenum pname
, GLint
* params
),
244 (program
, pname
, params
))
248 (GLuint program
, GLsizei bufsize
, GLsizei
* length
, char* infolog
),
249 (program
, bufsize
, length
, infolog
))
250 VISIT_GL_CALL(GetRenderbufferParameteriv
,
252 (GLenum target
, GLenum pname
, GLint
* params
),
253 (target
, pname
, params
))
254 VISIT_GL_CALL(GetShaderiv
,
256 (GLuint shader
, GLenum pname
, GLint
* params
),
257 (shader
, pname
, params
))
258 VISIT_GL_CALL(GetShaderInfoLog
,
260 (GLuint shader
, GLsizei bufsize
, GLsizei
* length
, char* infolog
),
261 (shader
, bufsize
, length
, infolog
))
263 GetShaderPrecisionFormat
,
265 (GLenum shadertype
, GLenum precisiontype
, GLint
* range
, GLint
* precision
),
266 (shadertype
, precisiontype
, range
, precision
))
267 VISIT_GL_CALL(GetShaderSource
,
269 (GLuint shader
, GLsizei bufsize
, GLsizei
* length
, char* source
),
270 (shader
, bufsize
, length
, source
))
271 VISIT_GL_CALL(GetString
, const GLubyte
*, (GLenum name
), (name
))
272 VISIT_GL_CALL(GetTexParameterfv
,
274 (GLenum target
, GLenum pname
, GLfloat
* params
),
275 (target
, pname
, params
))
276 VISIT_GL_CALL(GetTexParameteriv
,
278 (GLenum target
, GLenum pname
, GLint
* params
),
279 (target
, pname
, params
))
280 VISIT_GL_CALL(GetUniformfv
,
282 (GLuint program
, GLint location
, GLfloat
* params
),
283 (program
, location
, params
))
284 VISIT_GL_CALL(GetUniformiv
,
286 (GLuint program
, GLint location
, GLint
* params
),
287 (program
, location
, params
))
288 VISIT_GL_CALL(GetUniformLocation
,
290 (GLuint program
, const char* name
),
292 VISIT_GL_CALL(GetVertexAttribfv
,
294 (GLuint index
, GLenum pname
, GLfloat
* params
),
295 (index
, pname
, params
))
296 VISIT_GL_CALL(GetVertexAttribiv
,
298 (GLuint index
, GLenum pname
, GLint
* params
),
299 (index
, pname
, params
))
300 VISIT_GL_CALL(GetVertexAttribPointerv
,
302 (GLuint index
, GLenum pname
, void** pointer
),
303 (index
, pname
, pointer
))
304 VISIT_GL_CALL(Hint
, void, (GLenum target
, GLenum mode
), (target
, mode
))
305 VISIT_GL_CALL(IsBuffer
, GLboolean
, (GLuint buffer
), (buffer
))
306 VISIT_GL_CALL(IsEnabled
, GLboolean
, (GLenum cap
), (cap
))
307 VISIT_GL_CALL(IsFramebuffer
, GLboolean
, (GLuint framebuffer
), (framebuffer
))
308 VISIT_GL_CALL(IsProgram
, GLboolean
, (GLuint program
), (program
))
309 VISIT_GL_CALL(IsRenderbuffer
, GLboolean
, (GLuint renderbuffer
), (renderbuffer
))
310 VISIT_GL_CALL(IsShader
, GLboolean
, (GLuint shader
), (shader
))
311 VISIT_GL_CALL(IsTexture
, GLboolean
, (GLuint texture
), (texture
))
312 VISIT_GL_CALL(LineWidth
, void, (GLfloat width
), (width
))
313 VISIT_GL_CALL(LinkProgram
, void, (GLuint program
), (program
))
314 VISIT_GL_CALL(PixelStorei
, void, (GLenum pname
, GLint param
), (pname
, param
))
315 VISIT_GL_CALL(PolygonOffset
,
317 (GLfloat factor
, GLfloat units
),
319 VISIT_GL_CALL(ReadPixels
,
328 (x
, y
, width
, height
, format
, type
, pixels
))
329 VISIT_GL_CALL(ReleaseShaderCompiler
, void, (), ())
333 (GLenum target
, GLenum internalformat
, GLsizei width
, GLsizei height
),
334 (target
, internalformat
, width
, height
))
335 VISIT_GL_CALL(SampleCoverage
,
337 (GLclampf value
, GLboolean invert
),
339 VISIT_GL_CALL(Scissor
,
341 (GLint x
, GLint y
, GLsizei width
, GLsizei height
),
342 (x
, y
, width
, height
))
343 VISIT_GL_CALL(ShaderBinary
,
346 const GLuint
* shaders
,
350 (n
, shaders
, binaryformat
, binary
, length
))
351 VISIT_GL_CALL(ShaderSource
,
355 const GLchar
* const* str
,
356 const GLint
* length
),
357 (shader
, count
, str
, length
))
358 VISIT_GL_CALL(StencilFunc
,
360 (GLenum func
, GLint ref
, GLuint mask
),
362 VISIT_GL_CALL(StencilFuncSeparate
,
364 (GLenum face
, GLenum func
, GLint ref
, GLuint mask
),
365 (face
, func
, ref
, mask
))
366 VISIT_GL_CALL(StencilMask
, void, (GLuint mask
), (mask
))
367 VISIT_GL_CALL(StencilMaskSeparate
,
369 (GLenum face
, GLuint mask
),
371 VISIT_GL_CALL(StencilOp
,
373 (GLenum fail
, GLenum zfail
, GLenum zpass
),
374 (fail
, zfail
, zpass
))
375 VISIT_GL_CALL(StencilOpSeparate
,
377 (GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
),
378 (face
, fail
, zfail
, zpass
))
379 VISIT_GL_CALL(TexImage2D
,
383 GLint internalformat
,
399 VISIT_GL_CALL(TexParameterf
,
401 (GLenum target
, GLenum pname
, GLfloat param
),
402 (target
, pname
, param
))
403 VISIT_GL_CALL(TexParameterfv
,
405 (GLenum target
, GLenum pname
, const GLfloat
* params
),
406 (target
, pname
, params
))
407 VISIT_GL_CALL(TexParameteri
,
409 (GLenum target
, GLenum pname
, GLint param
),
410 (target
, pname
, param
))
411 VISIT_GL_CALL(TexParameteriv
,
413 (GLenum target
, GLenum pname
, const GLint
* params
),
414 (target
, pname
, params
))
427 (target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, pixels
))
428 VISIT_GL_CALL(Uniform1f
, void, (GLint location
, GLfloat x
), (location
, x
))
429 VISIT_GL_CALL(Uniform1fv
,
431 (GLint location
, GLsizei count
, const GLfloat
* v
),
432 (location
, count
, v
))
433 VISIT_GL_CALL(Uniform1i
, void, (GLint location
, GLint x
), (location
, x
))
434 VISIT_GL_CALL(Uniform1iv
,
436 (GLint location
, GLsizei count
, const GLint
* v
),
437 (location
, count
, v
))
438 VISIT_GL_CALL(Uniform2f
,
440 (GLint location
, GLfloat x
, GLfloat y
),
442 VISIT_GL_CALL(Uniform2fv
,
444 (GLint location
, GLsizei count
, const GLfloat
* v
),
445 (location
, count
, v
))
446 VISIT_GL_CALL(Uniform2i
,
448 (GLint location
, GLint x
, GLint y
),
450 VISIT_GL_CALL(Uniform2iv
,
452 (GLint location
, GLsizei count
, const GLint
* v
),
453 (location
, count
, v
))
454 VISIT_GL_CALL(Uniform3f
,
456 (GLint location
, GLfloat x
, GLfloat y
, GLfloat z
),
458 VISIT_GL_CALL(Uniform3fv
,
460 (GLint location
, GLsizei count
, const GLfloat
* v
),
461 (location
, count
, v
))
462 VISIT_GL_CALL(Uniform3i
,
464 (GLint location
, GLint x
, GLint y
, GLint z
),
466 VISIT_GL_CALL(Uniform3iv
,
468 (GLint location
, GLsizei count
, const GLint
* v
),
469 (location
, count
, v
))
470 VISIT_GL_CALL(Uniform4f
,
472 (GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
),
473 (location
, x
, y
, z
, w
))
474 VISIT_GL_CALL(Uniform4fv
,
476 (GLint location
, GLsizei count
, const GLfloat
* v
),
477 (location
, count
, v
))
478 VISIT_GL_CALL(Uniform4i
,
480 (GLint location
, GLint x
, GLint y
, GLint z
, GLint w
),
481 (location
, x
, y
, z
, w
))
482 VISIT_GL_CALL(Uniform4iv
,
484 (GLint location
, GLsizei count
, const GLint
* v
),
485 (location
, count
, v
))
489 (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
),
490 (location
, count
, transpose
, value
))
494 (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
),
495 (location
, count
, transpose
, value
))
499 (GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
),
500 (location
, count
, transpose
, value
))
501 VISIT_GL_CALL(UseProgram
, void, (GLuint program
), (program
))
502 VISIT_GL_CALL(ValidateProgram
, void, (GLuint program
), (program
))
503 VISIT_GL_CALL(VertexAttrib1f
, void, (GLuint indx
, GLfloat x
), (indx
, x
))
504 VISIT_GL_CALL(VertexAttrib1fv
,
506 (GLuint indx
, const GLfloat
* values
),
508 VISIT_GL_CALL(VertexAttrib2f
,
510 (GLuint indx
, GLfloat x
, GLfloat y
),
512 VISIT_GL_CALL(VertexAttrib2fv
,
514 (GLuint indx
, const GLfloat
* values
),
516 VISIT_GL_CALL(VertexAttrib3f
,
518 (GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
),
520 VISIT_GL_CALL(VertexAttrib3fv
,
522 (GLuint indx
, const GLfloat
* values
),
524 VISIT_GL_CALL(VertexAttrib4f
,
526 (GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
),
528 VISIT_GL_CALL(VertexAttrib4fv
,
530 (GLuint indx
, const GLfloat
* values
),
532 VISIT_GL_CALL(VertexAttribPointer
,
537 GLboolean normalized
,
540 (indx
, size
, type
, normalized
, stride
, ptr
))
541 VISIT_GL_CALL(Viewport
,
543 (GLint x
, GLint y
, GLsizei width
, GLsizei height
),
544 (x
, y
, width
, height
))