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 // These functions emulate GLES2 over command buffers.
12 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
15 void GLES2ActiveTexture(GLenum texture
) {
16 gles2::GetGLContext()->ActiveTexture(texture
);
18 void GLES2AttachShader(GLuint program
, GLuint shader
) {
19 gles2::GetGLContext()->AttachShader(program
, shader
);
21 void GLES2BindAttribLocation(GLuint program
, GLuint index
, const char* name
) {
22 gles2::GetGLContext()->BindAttribLocation(program
, index
, name
);
24 void GLES2BindBuffer(GLenum target
, GLuint buffer
) {
25 gles2::GetGLContext()->BindBuffer(target
, buffer
);
27 void GLES2BindFramebuffer(GLenum target
, GLuint framebuffer
) {
28 gles2::GetGLContext()->BindFramebuffer(target
, framebuffer
);
30 void GLES2BindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
31 gles2::GetGLContext()->BindRenderbuffer(target
, renderbuffer
);
33 void GLES2BindTexture(GLenum target
, GLuint texture
) {
34 gles2::GetGLContext()->BindTexture(target
, texture
);
36 void GLES2BlendColor(GLclampf red
,
40 gles2::GetGLContext()->BlendColor(red
, green
, blue
, alpha
);
42 void GLES2BlendEquation(GLenum mode
) {
43 gles2::GetGLContext()->BlendEquation(mode
);
45 void GLES2BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
46 gles2::GetGLContext()->BlendEquationSeparate(modeRGB
, modeAlpha
);
48 void GLES2BlendFunc(GLenum sfactor
, GLenum dfactor
) {
49 gles2::GetGLContext()->BlendFunc(sfactor
, dfactor
);
51 void GLES2BlendFuncSeparate(GLenum srcRGB
,
55 gles2::GetGLContext()->BlendFuncSeparate(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
57 void GLES2BufferData(GLenum target
,
61 gles2::GetGLContext()->BufferData(target
, size
, data
, usage
);
63 void GLES2BufferSubData(GLenum target
,
67 gles2::GetGLContext()->BufferSubData(target
, offset
, size
, data
);
69 GLenum
GLES2CheckFramebufferStatus(GLenum target
) {
70 return gles2::GetGLContext()->CheckFramebufferStatus(target
);
72 void GLES2Clear(GLbitfield mask
) {
73 gles2::GetGLContext()->Clear(mask
);
75 void GLES2ClearColor(GLclampf red
,
79 gles2::GetGLContext()->ClearColor(red
, green
, blue
, alpha
);
81 void GLES2ClearDepthf(GLclampf depth
) {
82 gles2::GetGLContext()->ClearDepthf(depth
);
84 void GLES2ClearStencil(GLint s
) {
85 gles2::GetGLContext()->ClearStencil(s
);
87 void GLES2ColorMask(GLboolean red
,
91 gles2::GetGLContext()->ColorMask(red
, green
, blue
, alpha
);
93 void GLES2CompileShader(GLuint shader
) {
94 gles2::GetGLContext()->CompileShader(shader
);
96 void GLES2CompressedTexImage2D(GLenum target
,
98 GLenum internalformat
,
104 gles2::GetGLContext()->CompressedTexImage2D(
105 target
, level
, internalformat
, width
, height
, border
, imageSize
, data
);
107 void GLES2CompressedTexSubImage2D(GLenum target
,
116 gles2::GetGLContext()->CompressedTexSubImage2D(
117 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
119 void GLES2CopyTexImage2D(GLenum target
,
121 GLenum internalformat
,
127 gles2::GetGLContext()->CopyTexImage2D(target
, level
, internalformat
, x
, y
,
128 width
, height
, border
);
130 void GLES2CopyTexSubImage2D(GLenum target
,
138 gles2::GetGLContext()->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
,
141 GLuint
GLES2CreateProgram() {
142 return gles2::GetGLContext()->CreateProgram();
144 GLuint
GLES2CreateShader(GLenum type
) {
145 return gles2::GetGLContext()->CreateShader(type
);
147 void GLES2CullFace(GLenum mode
) {
148 gles2::GetGLContext()->CullFace(mode
);
150 void GLES2DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
151 gles2::GetGLContext()->DeleteBuffers(n
, buffers
);
153 void GLES2DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) {
154 gles2::GetGLContext()->DeleteFramebuffers(n
, framebuffers
);
156 void GLES2DeleteProgram(GLuint program
) {
157 gles2::GetGLContext()->DeleteProgram(program
);
159 void GLES2DeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) {
160 gles2::GetGLContext()->DeleteRenderbuffers(n
, renderbuffers
);
162 void GLES2DeleteShader(GLuint shader
) {
163 gles2::GetGLContext()->DeleteShader(shader
);
165 void GLES2DeleteTextures(GLsizei n
, const GLuint
* textures
) {
166 gles2::GetGLContext()->DeleteTextures(n
, textures
);
168 void GLES2DepthFunc(GLenum func
) {
169 gles2::GetGLContext()->DepthFunc(func
);
171 void GLES2DepthMask(GLboolean flag
) {
172 gles2::GetGLContext()->DepthMask(flag
);
174 void GLES2DepthRangef(GLclampf zNear
, GLclampf zFar
) {
175 gles2::GetGLContext()->DepthRangef(zNear
, zFar
);
177 void GLES2DetachShader(GLuint program
, GLuint shader
) {
178 gles2::GetGLContext()->DetachShader(program
, shader
);
180 void GLES2Disable(GLenum cap
) {
181 gles2::GetGLContext()->Disable(cap
);
183 void GLES2DisableVertexAttribArray(GLuint index
) {
184 gles2::GetGLContext()->DisableVertexAttribArray(index
);
186 void GLES2DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
187 gles2::GetGLContext()->DrawArrays(mode
, first
, count
);
189 void GLES2DrawElements(GLenum mode
,
192 const void* indices
) {
193 gles2::GetGLContext()->DrawElements(mode
, count
, type
, indices
);
195 void GLES2Enable(GLenum cap
) {
196 gles2::GetGLContext()->Enable(cap
);
198 void GLES2EnableVertexAttribArray(GLuint index
) {
199 gles2::GetGLContext()->EnableVertexAttribArray(index
);
202 gles2::GetGLContext()->Finish();
205 gles2::GetGLContext()->Flush();
207 void GLES2FramebufferRenderbuffer(GLenum target
,
209 GLenum renderbuffertarget
,
210 GLuint renderbuffer
) {
211 gles2::GetGLContext()->FramebufferRenderbuffer(
212 target
, attachment
, renderbuffertarget
, renderbuffer
);
214 void GLES2FramebufferTexture2D(GLenum target
,
219 gles2::GetGLContext()->FramebufferTexture2D(target
, attachment
, textarget
,
222 void GLES2FrontFace(GLenum mode
) {
223 gles2::GetGLContext()->FrontFace(mode
);
225 void GLES2GenBuffers(GLsizei n
, GLuint
* buffers
) {
226 gles2::GetGLContext()->GenBuffers(n
, buffers
);
228 void GLES2GenerateMipmap(GLenum target
) {
229 gles2::GetGLContext()->GenerateMipmap(target
);
231 void GLES2GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
232 gles2::GetGLContext()->GenFramebuffers(n
, framebuffers
);
234 void GLES2GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
235 gles2::GetGLContext()->GenRenderbuffers(n
, renderbuffers
);
237 void GLES2GenTextures(GLsizei n
, GLuint
* textures
) {
238 gles2::GetGLContext()->GenTextures(n
, textures
);
240 void GLES2GetActiveAttrib(GLuint program
,
247 gles2::GetGLContext()->GetActiveAttrib(program
, index
, bufsize
, length
, size
,
250 void GLES2GetActiveUniform(GLuint program
,
257 gles2::GetGLContext()->GetActiveUniform(program
, index
, bufsize
, length
, size
,
260 void GLES2GetAttachedShaders(GLuint program
,
264 gles2::GetGLContext()->GetAttachedShaders(program
, maxcount
, count
, shaders
);
266 GLint
GLES2GetAttribLocation(GLuint program
, const char* name
) {
267 return gles2::GetGLContext()->GetAttribLocation(program
, name
);
269 void GLES2GetBooleanv(GLenum pname
, GLboolean
* params
) {
270 gles2::GetGLContext()->GetBooleanv(pname
, params
);
272 void GLES2GetBufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
273 gles2::GetGLContext()->GetBufferParameteriv(target
, pname
, params
);
275 GLenum
GLES2GetError() {
276 return gles2::GetGLContext()->GetError();
278 void GLES2GetFloatv(GLenum pname
, GLfloat
* params
) {
279 gles2::GetGLContext()->GetFloatv(pname
, params
);
281 void GLES2GetFramebufferAttachmentParameteriv(GLenum target
,
285 gles2::GetGLContext()->GetFramebufferAttachmentParameteriv(target
, attachment
,
288 void GLES2GetIntegerv(GLenum pname
, GLint
* params
) {
289 gles2::GetGLContext()->GetIntegerv(pname
, params
);
291 void GLES2GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
292 gles2::GetGLContext()->GetProgramiv(program
, pname
, params
);
294 void GLES2GetProgramInfoLog(GLuint program
,
298 gles2::GetGLContext()->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
300 void GLES2GetRenderbufferParameteriv(GLenum target
,
303 gles2::GetGLContext()->GetRenderbufferParameteriv(target
, pname
, params
);
305 void GLES2GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
306 gles2::GetGLContext()->GetShaderiv(shader
, pname
, params
);
308 void GLES2GetShaderInfoLog(GLuint shader
,
312 gles2::GetGLContext()->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
314 void GLES2GetShaderPrecisionFormat(GLenum shadertype
,
315 GLenum precisiontype
,
318 gles2::GetGLContext()->GetShaderPrecisionFormat(shadertype
, precisiontype
,
321 void GLES2GetShaderSource(GLuint shader
,
325 gles2::GetGLContext()->GetShaderSource(shader
, bufsize
, length
, source
);
327 const GLubyte
* GLES2GetString(GLenum name
) {
328 return gles2::GetGLContext()->GetString(name
);
330 void GLES2GetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
) {
331 gles2::GetGLContext()->GetTexParameterfv(target
, pname
, params
);
333 void GLES2GetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
334 gles2::GetGLContext()->GetTexParameteriv(target
, pname
, params
);
336 void GLES2GetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) {
337 gles2::GetGLContext()->GetUniformfv(program
, location
, params
);
339 void GLES2GetUniformiv(GLuint program
, GLint location
, GLint
* params
) {
340 gles2::GetGLContext()->GetUniformiv(program
, location
, params
);
342 GLint
GLES2GetUniformLocation(GLuint program
, const char* name
) {
343 return gles2::GetGLContext()->GetUniformLocation(program
, name
);
345 void GLES2GetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
* params
) {
346 gles2::GetGLContext()->GetVertexAttribfv(index
, pname
, params
);
348 void GLES2GetVertexAttribiv(GLuint index
, GLenum pname
, GLint
* params
) {
349 gles2::GetGLContext()->GetVertexAttribiv(index
, pname
, params
);
351 void GLES2GetVertexAttribPointerv(GLuint index
, GLenum pname
, void** pointer
) {
352 gles2::GetGLContext()->GetVertexAttribPointerv(index
, pname
, pointer
);
354 void GLES2Hint(GLenum target
, GLenum mode
) {
355 gles2::GetGLContext()->Hint(target
, mode
);
357 GLboolean
GLES2IsBuffer(GLuint buffer
) {
358 return gles2::GetGLContext()->IsBuffer(buffer
);
360 GLboolean
GLES2IsEnabled(GLenum cap
) {
361 return gles2::GetGLContext()->IsEnabled(cap
);
363 GLboolean
GLES2IsFramebuffer(GLuint framebuffer
) {
364 return gles2::GetGLContext()->IsFramebuffer(framebuffer
);
366 GLboolean
GLES2IsProgram(GLuint program
) {
367 return gles2::GetGLContext()->IsProgram(program
);
369 GLboolean
GLES2IsRenderbuffer(GLuint renderbuffer
) {
370 return gles2::GetGLContext()->IsRenderbuffer(renderbuffer
);
372 GLboolean
GLES2IsShader(GLuint shader
) {
373 return gles2::GetGLContext()->IsShader(shader
);
375 GLboolean
GLES2IsTexture(GLuint texture
) {
376 return gles2::GetGLContext()->IsTexture(texture
);
378 void GLES2LineWidth(GLfloat width
) {
379 gles2::GetGLContext()->LineWidth(width
);
381 void GLES2LinkProgram(GLuint program
) {
382 gles2::GetGLContext()->LinkProgram(program
);
384 void GLES2PixelStorei(GLenum pname
, GLint param
) {
385 gles2::GetGLContext()->PixelStorei(pname
, param
);
387 void GLES2PolygonOffset(GLfloat factor
, GLfloat units
) {
388 gles2::GetGLContext()->PolygonOffset(factor
, units
);
390 void GLES2ReadPixels(GLint x
,
397 gles2::GetGLContext()->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
399 void GLES2ReleaseShaderCompiler() {
400 gles2::GetGLContext()->ReleaseShaderCompiler();
402 void GLES2RenderbufferStorage(GLenum target
,
403 GLenum internalformat
,
406 gles2::GetGLContext()->RenderbufferStorage(target
, internalformat
, width
,
409 void GLES2SampleCoverage(GLclampf value
, GLboolean invert
) {
410 gles2::GetGLContext()->SampleCoverage(value
, invert
);
412 void GLES2Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
413 gles2::GetGLContext()->Scissor(x
, y
, width
, height
);
415 void GLES2ShaderBinary(GLsizei n
,
416 const GLuint
* shaders
,
420 gles2::GetGLContext()->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
422 void GLES2ShaderSource(GLuint shader
,
424 const GLchar
* const* str
,
425 const GLint
* length
) {
426 gles2::GetGLContext()->ShaderSource(shader
, count
, str
, length
);
428 void GLES2ShallowFinishCHROMIUM() {
429 gles2::GetGLContext()->ShallowFinishCHROMIUM();
431 void GLES2ShallowFlushCHROMIUM() {
432 gles2::GetGLContext()->ShallowFlushCHROMIUM();
434 void GLES2StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
435 gles2::GetGLContext()->StencilFunc(func
, ref
, mask
);
437 void GLES2StencilFuncSeparate(GLenum face
,
441 gles2::GetGLContext()->StencilFuncSeparate(face
, func
, ref
, mask
);
443 void GLES2StencilMask(GLuint mask
) {
444 gles2::GetGLContext()->StencilMask(mask
);
446 void GLES2StencilMaskSeparate(GLenum face
, GLuint mask
) {
447 gles2::GetGLContext()->StencilMaskSeparate(face
, mask
);
449 void GLES2StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
450 gles2::GetGLContext()->StencilOp(fail
, zfail
, zpass
);
452 void GLES2StencilOpSeparate(GLenum face
,
456 gles2::GetGLContext()->StencilOpSeparate(face
, fail
, zfail
, zpass
);
458 void GLES2TexImage2D(GLenum target
,
460 GLint internalformat
,
466 const void* pixels
) {
467 gles2::GetGLContext()->TexImage2D(target
, level
, internalformat
, width
,
468 height
, border
, format
, type
, pixels
);
470 void GLES2TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
471 gles2::GetGLContext()->TexParameterf(target
, pname
, param
);
473 void GLES2TexParameterfv(GLenum target
, GLenum pname
, const GLfloat
* params
) {
474 gles2::GetGLContext()->TexParameterfv(target
, pname
, params
);
476 void GLES2TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
477 gles2::GetGLContext()->TexParameteri(target
, pname
, param
);
479 void GLES2TexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
) {
480 gles2::GetGLContext()->TexParameteriv(target
, pname
, params
);
482 void GLES2TexSubImage2D(GLenum target
,
490 const void* pixels
) {
491 gles2::GetGLContext()->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
,
492 height
, format
, type
, pixels
);
494 void GLES2Uniform1f(GLint location
, GLfloat x
) {
495 gles2::GetGLContext()->Uniform1f(location
, x
);
497 void GLES2Uniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
498 gles2::GetGLContext()->Uniform1fv(location
, count
, v
);
500 void GLES2Uniform1i(GLint location
, GLint x
) {
501 gles2::GetGLContext()->Uniform1i(location
, x
);
503 void GLES2Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
504 gles2::GetGLContext()->Uniform1iv(location
, count
, v
);
506 void GLES2Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
507 gles2::GetGLContext()->Uniform2f(location
, x
, y
);
509 void GLES2Uniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
510 gles2::GetGLContext()->Uniform2fv(location
, count
, v
);
512 void GLES2Uniform2i(GLint location
, GLint x
, GLint y
) {
513 gles2::GetGLContext()->Uniform2i(location
, x
, y
);
515 void GLES2Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
516 gles2::GetGLContext()->Uniform2iv(location
, count
, v
);
518 void GLES2Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
519 gles2::GetGLContext()->Uniform3f(location
, x
, y
, z
);
521 void GLES2Uniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
522 gles2::GetGLContext()->Uniform3fv(location
, count
, v
);
524 void GLES2Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
525 gles2::GetGLContext()->Uniform3i(location
, x
, y
, z
);
527 void GLES2Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
528 gles2::GetGLContext()->Uniform3iv(location
, count
, v
);
530 void GLES2Uniform4f(GLint location
,
535 gles2::GetGLContext()->Uniform4f(location
, x
, y
, z
, w
);
537 void GLES2Uniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
538 gles2::GetGLContext()->Uniform4fv(location
, count
, v
);
540 void GLES2Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
541 gles2::GetGLContext()->Uniform4i(location
, x
, y
, z
, w
);
543 void GLES2Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
544 gles2::GetGLContext()->Uniform4iv(location
, count
, v
);
546 void GLES2UniformMatrix2fv(GLint location
,
549 const GLfloat
* value
) {
550 gles2::GetGLContext()->UniformMatrix2fv(location
, count
, transpose
, value
);
552 void GLES2UniformMatrix3fv(GLint location
,
555 const GLfloat
* value
) {
556 gles2::GetGLContext()->UniformMatrix3fv(location
, count
, transpose
, value
);
558 void GLES2UniformMatrix4fv(GLint location
,
561 const GLfloat
* value
) {
562 gles2::GetGLContext()->UniformMatrix4fv(location
, count
, transpose
, value
);
564 void GLES2UseProgram(GLuint program
) {
565 gles2::GetGLContext()->UseProgram(program
);
567 void GLES2ValidateProgram(GLuint program
) {
568 gles2::GetGLContext()->ValidateProgram(program
);
570 void GLES2VertexAttrib1f(GLuint indx
, GLfloat x
) {
571 gles2::GetGLContext()->VertexAttrib1f(indx
, x
);
573 void GLES2VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
574 gles2::GetGLContext()->VertexAttrib1fv(indx
, values
);
576 void GLES2VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
577 gles2::GetGLContext()->VertexAttrib2f(indx
, x
, y
);
579 void GLES2VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
580 gles2::GetGLContext()->VertexAttrib2fv(indx
, values
);
582 void GLES2VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
583 gles2::GetGLContext()->VertexAttrib3f(indx
, x
, y
, z
);
585 void GLES2VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
586 gles2::GetGLContext()->VertexAttrib3fv(indx
, values
);
588 void GLES2VertexAttrib4f(GLuint indx
,
593 gles2::GetGLContext()->VertexAttrib4f(indx
, x
, y
, z
, w
);
595 void GLES2VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
596 gles2::GetGLContext()->VertexAttrib4fv(indx
, values
);
598 void GLES2VertexAttribPointer(GLuint indx
,
601 GLboolean normalized
,
604 gles2::GetGLContext()->VertexAttribPointer(indx
, size
, type
, normalized
,
607 void GLES2Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
608 gles2::GetGLContext()->Viewport(x
, y
, width
, height
);
610 void GLES2BlitFramebufferCHROMIUM(GLint srcX0
,
620 gles2::GetGLContext()->BlitFramebufferCHROMIUM(
621 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
623 void GLES2RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
625 GLenum internalformat
,
628 gles2::GetGLContext()->RenderbufferStorageMultisampleCHROMIUM(
629 target
, samples
, internalformat
, width
, height
);
631 void GLES2RenderbufferStorageMultisampleEXT(GLenum target
,
633 GLenum internalformat
,
636 gles2::GetGLContext()->RenderbufferStorageMultisampleEXT(
637 target
, samples
, internalformat
, width
, height
);
639 void GLES2FramebufferTexture2DMultisampleEXT(GLenum target
,
645 gles2::GetGLContext()->FramebufferTexture2DMultisampleEXT(
646 target
, attachment
, textarget
, texture
, level
, samples
);
648 void GLES2TexStorage2DEXT(GLenum target
,
650 GLenum internalFormat
,
653 gles2::GetGLContext()->TexStorage2DEXT(target
, levels
, internalFormat
, width
,
656 void GLES2GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
657 gles2::GetGLContext()->GenQueriesEXT(n
, queries
);
659 void GLES2DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
660 gles2::GetGLContext()->DeleteQueriesEXT(n
, queries
);
662 GLboolean
GLES2IsQueryEXT(GLuint id
) {
663 return gles2::GetGLContext()->IsQueryEXT(id
);
665 void GLES2BeginQueryEXT(GLenum target
, GLuint id
) {
666 gles2::GetGLContext()->BeginQueryEXT(target
, id
);
668 void GLES2EndQueryEXT(GLenum target
) {
669 gles2::GetGLContext()->EndQueryEXT(target
);
671 void GLES2GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
672 gles2::GetGLContext()->GetQueryivEXT(target
, pname
, params
);
674 void GLES2GetQueryObjectuivEXT(GLuint id
, GLenum pname
, GLuint
* params
) {
675 gles2::GetGLContext()->GetQueryObjectuivEXT(id
, pname
, params
);
677 void GLES2InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) {
678 gles2::GetGLContext()->InsertEventMarkerEXT(length
, marker
);
680 void GLES2PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) {
681 gles2::GetGLContext()->PushGroupMarkerEXT(length
, marker
);
683 void GLES2PopGroupMarkerEXT() {
684 gles2::GetGLContext()->PopGroupMarkerEXT();
686 void GLES2GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
687 gles2::GetGLContext()->GenVertexArraysOES(n
, arrays
);
689 void GLES2DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
690 gles2::GetGLContext()->DeleteVertexArraysOES(n
, arrays
);
692 GLboolean
GLES2IsVertexArrayOES(GLuint array
) {
693 return gles2::GetGLContext()->IsVertexArrayOES(array
);
695 void GLES2BindVertexArrayOES(GLuint array
) {
696 gles2::GetGLContext()->BindVertexArrayOES(array
);
698 void GLES2SwapBuffers() {
699 gles2::GetGLContext()->SwapBuffers();
701 GLuint
GLES2GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
705 return gles2::GetGLContext()->GetMaxValueInBufferCHROMIUM(buffer_id
, count
,
708 GLboolean
GLES2EnableFeatureCHROMIUM(const char* feature
) {
709 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature
);
711 void* GLES2MapBufferCHROMIUM(GLuint target
, GLenum access
) {
712 return gles2::GetGLContext()->MapBufferCHROMIUM(target
, access
);
714 GLboolean
GLES2UnmapBufferCHROMIUM(GLuint target
) {
715 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target
);
717 void* GLES2MapBufferSubDataCHROMIUM(GLuint target
,
721 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(target
, offset
, size
,
724 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem
) {
725 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem
);
727 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target
,
736 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM(
737 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, access
);
739 void GLES2UnmapTexSubImage2DCHROMIUM(const void* mem
) {
740 gles2::GetGLContext()->UnmapTexSubImage2DCHROMIUM(mem
);
742 void GLES2ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) {
743 gles2::GetGLContext()->ResizeCHROMIUM(width
, height
, scale_factor
);
745 const GLchar
* GLES2GetRequestableExtensionsCHROMIUM() {
746 return gles2::GetGLContext()->GetRequestableExtensionsCHROMIUM();
748 void GLES2RequestExtensionCHROMIUM(const char* extension
) {
749 gles2::GetGLContext()->RequestExtensionCHROMIUM(extension
);
751 void GLES2RateLimitOffscreenContextCHROMIUM() {
752 gles2::GetGLContext()->RateLimitOffscreenContextCHROMIUM();
754 void GLES2GetProgramInfoCHROMIUM(GLuint program
,
758 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
760 GLuint
GLES2CreateStreamTextureCHROMIUM(GLuint texture
) {
761 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture
);
763 GLuint
GLES2CreateImageCHROMIUM(ClientBuffer buffer
,
766 GLenum internalformat
) {
767 return gles2::GetGLContext()->CreateImageCHROMIUM(buffer
, width
, height
,
770 void GLES2DestroyImageCHROMIUM(GLuint image_id
) {
771 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id
);
773 GLuint
GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
775 GLenum internalformat
,
777 return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM(
778 width
, height
, internalformat
, usage
);
780 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader
,
784 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
,
787 void GLES2PostSubBufferCHROMIUM(GLint x
, GLint y
, GLint width
, GLint height
) {
788 gles2::GetGLContext()->PostSubBufferCHROMIUM(x
, y
, width
, height
);
790 void GLES2TexImageIOSurface2DCHROMIUM(GLenum target
,
795 gles2::GetGLContext()->TexImageIOSurface2DCHROMIUM(target
, width
, height
,
798 void GLES2CopyTextureCHROMIUM(GLenum target
,
802 GLint internalformat
,
804 gles2::GetGLContext()->CopyTextureCHROMIUM(target
, source_id
, dest_id
, level
,
805 internalformat
, dest_type
);
807 void GLES2DrawArraysInstancedANGLE(GLenum mode
,
811 gles2::GetGLContext()->DrawArraysInstancedANGLE(mode
, first
, count
,
814 void GLES2DrawElementsInstancedANGLE(GLenum mode
,
819 gles2::GetGLContext()->DrawElementsInstancedANGLE(mode
, count
, type
, indices
,
822 void GLES2VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
823 gles2::GetGLContext()->VertexAttribDivisorANGLE(index
, divisor
);
825 void GLES2GenMailboxCHROMIUM(GLbyte
* mailbox
) {
826 gles2::GetGLContext()->GenMailboxCHROMIUM(mailbox
);
828 void GLES2ProduceTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) {
829 gles2::GetGLContext()->ProduceTextureCHROMIUM(target
, mailbox
);
831 void GLES2ProduceTextureDirectCHROMIUM(GLuint texture
,
833 const GLbyte
* mailbox
) {
834 gles2::GetGLContext()->ProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
836 void GLES2ConsumeTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) {
837 gles2::GetGLContext()->ConsumeTextureCHROMIUM(target
, mailbox
);
839 GLuint
GLES2CreateAndConsumeTextureCHROMIUM(GLenum target
,
840 const GLbyte
* mailbox
) {
841 return gles2::GetGLContext()->CreateAndConsumeTextureCHROMIUM(target
,
844 void GLES2BindUniformLocationCHROMIUM(GLuint program
,
847 gles2::GetGLContext()->BindUniformLocationCHROMIUM(program
, location
, name
);
849 void GLES2GenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
) {
850 gles2::GetGLContext()->GenValuebuffersCHROMIUM(n
, buffers
);
852 void GLES2DeleteValuebuffersCHROMIUM(GLsizei n
, const GLuint
* valuebuffers
) {
853 gles2::GetGLContext()->DeleteValuebuffersCHROMIUM(n
, valuebuffers
);
855 GLboolean
GLES2IsValuebufferCHROMIUM(GLuint valuebuffer
) {
856 return gles2::GetGLContext()->IsValuebufferCHROMIUM(valuebuffer
);
858 void GLES2BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) {
859 gles2::GetGLContext()->BindValuebufferCHROMIUM(target
, valuebuffer
);
861 void GLES2SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) {
862 gles2::GetGLContext()->SubscribeValueCHROMIUM(target
, subscription
);
864 void GLES2PopulateSubscribedValuesCHROMIUM(GLenum target
) {
865 gles2::GetGLContext()->PopulateSubscribedValuesCHROMIUM(target
);
867 void GLES2UniformValuebufferCHROMIUM(GLint location
,
869 GLenum subscription
) {
870 gles2::GetGLContext()->UniformValuebufferCHROMIUM(location
, target
,
873 void GLES2BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
874 gles2::GetGLContext()->BindTexImage2DCHROMIUM(target
, imageId
);
876 void GLES2ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
877 gles2::GetGLContext()->ReleaseTexImage2DCHROMIUM(target
, imageId
);
879 void GLES2TraceBeginCHROMIUM(const char* name
) {
880 gles2::GetGLContext()->TraceBeginCHROMIUM(name
);
882 void GLES2TraceEndCHROMIUM() {
883 gles2::GetGLContext()->TraceEndCHROMIUM();
885 void GLES2AsyncTexSubImage2DCHROMIUM(GLenum target
,
894 gles2::GetGLContext()->AsyncTexSubImage2DCHROMIUM(
895 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, data
);
897 void GLES2AsyncTexImage2DCHROMIUM(GLenum target
,
899 GLenum internalformat
,
905 const void* pixels
) {
906 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(target
, level
, internalformat
,
907 width
, height
, border
, format
,
910 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
911 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target
);
913 void GLES2WaitAllAsyncTexImage2DCHROMIUM() {
914 gles2::GetGLContext()->WaitAllAsyncTexImage2DCHROMIUM();
916 void GLES2DiscardFramebufferEXT(GLenum target
,
918 const GLenum
* attachments
) {
919 gles2::GetGLContext()->DiscardFramebufferEXT(target
, count
, attachments
);
921 void GLES2LoseContextCHROMIUM(GLenum current
, GLenum other
) {
922 gles2::GetGLContext()->LoseContextCHROMIUM(current
, other
);
924 GLuint
GLES2InsertSyncPointCHROMIUM() {
925 return gles2::GetGLContext()->InsertSyncPointCHROMIUM();
927 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point
) {
928 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point
);
930 void GLES2DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
931 gles2::GetGLContext()->DrawBuffersEXT(count
, bufs
);
933 void GLES2DiscardBackbufferCHROMIUM() {
934 gles2::GetGLContext()->DiscardBackbufferCHROMIUM();
936 void GLES2ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
937 GLenum plane_transform
,
938 GLuint overlay_texture_id
,
947 gles2::GetGLContext()->ScheduleOverlayPlaneCHROMIUM(
948 plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
, bounds_y
,
949 bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
, uv_height
);
951 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) {
952 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode
, m
);
954 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
955 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode
);
957 void GLES2BlendBarrierKHR() {
958 gles2::GetGLContext()->BlendBarrierKHR();
963 extern const NameToFunc g_gles2_function_table
[] = {
966 reinterpret_cast<GLES2FunctionPointer
>(glActiveTexture
),
970 reinterpret_cast<GLES2FunctionPointer
>(glAttachShader
),
973 "glBindAttribLocation",
974 reinterpret_cast<GLES2FunctionPointer
>(glBindAttribLocation
),
978 reinterpret_cast<GLES2FunctionPointer
>(glBindBuffer
),
982 reinterpret_cast<GLES2FunctionPointer
>(glBindFramebuffer
),
985 "glBindRenderbuffer",
986 reinterpret_cast<GLES2FunctionPointer
>(glBindRenderbuffer
),
990 reinterpret_cast<GLES2FunctionPointer
>(glBindTexture
),
994 reinterpret_cast<GLES2FunctionPointer
>(glBlendColor
),
998 reinterpret_cast<GLES2FunctionPointer
>(glBlendEquation
),
1001 "glBlendEquationSeparate",
1002 reinterpret_cast<GLES2FunctionPointer
>(glBlendEquationSeparate
),
1006 reinterpret_cast<GLES2FunctionPointer
>(glBlendFunc
),
1009 "glBlendFuncSeparate",
1010 reinterpret_cast<GLES2FunctionPointer
>(glBlendFuncSeparate
),
1014 reinterpret_cast<GLES2FunctionPointer
>(glBufferData
),
1018 reinterpret_cast<GLES2FunctionPointer
>(glBufferSubData
),
1021 "glCheckFramebufferStatus",
1022 reinterpret_cast<GLES2FunctionPointer
>(glCheckFramebufferStatus
),
1026 reinterpret_cast<GLES2FunctionPointer
>(glClear
),
1030 reinterpret_cast<GLES2FunctionPointer
>(glClearColor
),
1034 reinterpret_cast<GLES2FunctionPointer
>(glClearDepthf
),
1038 reinterpret_cast<GLES2FunctionPointer
>(glClearStencil
),
1042 reinterpret_cast<GLES2FunctionPointer
>(glColorMask
),
1046 reinterpret_cast<GLES2FunctionPointer
>(glCompileShader
),
1049 "glCompressedTexImage2D",
1050 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexImage2D
),
1053 "glCompressedTexSubImage2D",
1054 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexSubImage2D
),
1058 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexImage2D
),
1061 "glCopyTexSubImage2D",
1062 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexSubImage2D
),
1066 reinterpret_cast<GLES2FunctionPointer
>(glCreateProgram
),
1070 reinterpret_cast<GLES2FunctionPointer
>(glCreateShader
),
1074 reinterpret_cast<GLES2FunctionPointer
>(glCullFace
),
1078 reinterpret_cast<GLES2FunctionPointer
>(glDeleteBuffers
),
1081 "glDeleteFramebuffers",
1082 reinterpret_cast<GLES2FunctionPointer
>(glDeleteFramebuffers
),
1086 reinterpret_cast<GLES2FunctionPointer
>(glDeleteProgram
),
1089 "glDeleteRenderbuffers",
1090 reinterpret_cast<GLES2FunctionPointer
>(glDeleteRenderbuffers
),
1094 reinterpret_cast<GLES2FunctionPointer
>(glDeleteShader
),
1098 reinterpret_cast<GLES2FunctionPointer
>(glDeleteTextures
),
1102 reinterpret_cast<GLES2FunctionPointer
>(glDepthFunc
),
1106 reinterpret_cast<GLES2FunctionPointer
>(glDepthMask
),
1110 reinterpret_cast<GLES2FunctionPointer
>(glDepthRangef
),
1114 reinterpret_cast<GLES2FunctionPointer
>(glDetachShader
),
1118 reinterpret_cast<GLES2FunctionPointer
>(glDisable
),
1121 "glDisableVertexAttribArray",
1122 reinterpret_cast<GLES2FunctionPointer
>(glDisableVertexAttribArray
),
1126 reinterpret_cast<GLES2FunctionPointer
>(glDrawArrays
),
1130 reinterpret_cast<GLES2FunctionPointer
>(glDrawElements
),
1134 reinterpret_cast<GLES2FunctionPointer
>(glEnable
),
1137 "glEnableVertexAttribArray",
1138 reinterpret_cast<GLES2FunctionPointer
>(glEnableVertexAttribArray
),
1142 reinterpret_cast<GLES2FunctionPointer
>(glFinish
),
1146 reinterpret_cast<GLES2FunctionPointer
>(glFlush
),
1149 "glFramebufferRenderbuffer",
1150 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferRenderbuffer
),
1153 "glFramebufferTexture2D",
1154 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferTexture2D
),
1158 reinterpret_cast<GLES2FunctionPointer
>(glFrontFace
),
1162 reinterpret_cast<GLES2FunctionPointer
>(glGenBuffers
),
1166 reinterpret_cast<GLES2FunctionPointer
>(glGenerateMipmap
),
1169 "glGenFramebuffers",
1170 reinterpret_cast<GLES2FunctionPointer
>(glGenFramebuffers
),
1173 "glGenRenderbuffers",
1174 reinterpret_cast<GLES2FunctionPointer
>(glGenRenderbuffers
),
1178 reinterpret_cast<GLES2FunctionPointer
>(glGenTextures
),
1181 "glGetActiveAttrib",
1182 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveAttrib
),
1185 "glGetActiveUniform",
1186 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniform
),
1189 "glGetAttachedShaders",
1190 reinterpret_cast<GLES2FunctionPointer
>(glGetAttachedShaders
),
1193 "glGetAttribLocation",
1194 reinterpret_cast<GLES2FunctionPointer
>(glGetAttribLocation
),
1198 reinterpret_cast<GLES2FunctionPointer
>(glGetBooleanv
),
1201 "glGetBufferParameteriv",
1202 reinterpret_cast<GLES2FunctionPointer
>(glGetBufferParameteriv
),
1206 reinterpret_cast<GLES2FunctionPointer
>(glGetError
),
1210 reinterpret_cast<GLES2FunctionPointer
>(glGetFloatv
),
1213 "glGetFramebufferAttachmentParameteriv",
1214 reinterpret_cast<GLES2FunctionPointer
>(
1215 glGetFramebufferAttachmentParameteriv
),
1219 reinterpret_cast<GLES2FunctionPointer
>(glGetIntegerv
),
1223 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramiv
),
1226 "glGetProgramInfoLog",
1227 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramInfoLog
),
1230 "glGetRenderbufferParameteriv",
1231 reinterpret_cast<GLES2FunctionPointer
>(glGetRenderbufferParameteriv
),
1235 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderiv
),
1238 "glGetShaderInfoLog",
1239 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderInfoLog
),
1242 "glGetShaderPrecisionFormat",
1243 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderPrecisionFormat
),
1246 "glGetShaderSource",
1247 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderSource
),
1251 reinterpret_cast<GLES2FunctionPointer
>(glGetString
),
1254 "glGetTexParameterfv",
1255 reinterpret_cast<GLES2FunctionPointer
>(glGetTexParameterfv
),
1258 "glGetTexParameteriv",
1259 reinterpret_cast<GLES2FunctionPointer
>(glGetTexParameteriv
),
1263 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformfv
),
1267 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformiv
),
1270 "glGetUniformLocation",
1271 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformLocation
),
1274 "glGetVertexAttribfv",
1275 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribfv
),
1278 "glGetVertexAttribiv",
1279 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribiv
),
1282 "glGetVertexAttribPointerv",
1283 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribPointerv
),
1287 reinterpret_cast<GLES2FunctionPointer
>(glHint
),
1291 reinterpret_cast<GLES2FunctionPointer
>(glIsBuffer
),
1295 reinterpret_cast<GLES2FunctionPointer
>(glIsEnabled
),
1299 reinterpret_cast<GLES2FunctionPointer
>(glIsFramebuffer
),
1303 reinterpret_cast<GLES2FunctionPointer
>(glIsProgram
),
1307 reinterpret_cast<GLES2FunctionPointer
>(glIsRenderbuffer
),
1311 reinterpret_cast<GLES2FunctionPointer
>(glIsShader
),
1315 reinterpret_cast<GLES2FunctionPointer
>(glIsTexture
),
1319 reinterpret_cast<GLES2FunctionPointer
>(glLineWidth
),
1323 reinterpret_cast<GLES2FunctionPointer
>(glLinkProgram
),
1327 reinterpret_cast<GLES2FunctionPointer
>(glPixelStorei
),
1331 reinterpret_cast<GLES2FunctionPointer
>(glPolygonOffset
),
1335 reinterpret_cast<GLES2FunctionPointer
>(glReadPixels
),
1338 "glReleaseShaderCompiler",
1339 reinterpret_cast<GLES2FunctionPointer
>(glReleaseShaderCompiler
),
1342 "glRenderbufferStorage",
1343 reinterpret_cast<GLES2FunctionPointer
>(glRenderbufferStorage
),
1347 reinterpret_cast<GLES2FunctionPointer
>(glSampleCoverage
),
1351 reinterpret_cast<GLES2FunctionPointer
>(glScissor
),
1355 reinterpret_cast<GLES2FunctionPointer
>(glShaderBinary
),
1359 reinterpret_cast<GLES2FunctionPointer
>(glShaderSource
),
1362 "glShallowFinishCHROMIUM",
1363 reinterpret_cast<GLES2FunctionPointer
>(glShallowFinishCHROMIUM
),
1366 "glShallowFlushCHROMIUM",
1367 reinterpret_cast<GLES2FunctionPointer
>(glShallowFlushCHROMIUM
),
1371 reinterpret_cast<GLES2FunctionPointer
>(glStencilFunc
),
1374 "glStencilFuncSeparate",
1375 reinterpret_cast<GLES2FunctionPointer
>(glStencilFuncSeparate
),
1379 reinterpret_cast<GLES2FunctionPointer
>(glStencilMask
),
1382 "glStencilMaskSeparate",
1383 reinterpret_cast<GLES2FunctionPointer
>(glStencilMaskSeparate
),
1387 reinterpret_cast<GLES2FunctionPointer
>(glStencilOp
),
1390 "glStencilOpSeparate",
1391 reinterpret_cast<GLES2FunctionPointer
>(glStencilOpSeparate
),
1395 reinterpret_cast<GLES2FunctionPointer
>(glTexImage2D
),
1399 reinterpret_cast<GLES2FunctionPointer
>(glTexParameterf
),
1403 reinterpret_cast<GLES2FunctionPointer
>(glTexParameterfv
),
1407 reinterpret_cast<GLES2FunctionPointer
>(glTexParameteri
),
1411 reinterpret_cast<GLES2FunctionPointer
>(glTexParameteriv
),
1415 reinterpret_cast<GLES2FunctionPointer
>(glTexSubImage2D
),
1419 reinterpret_cast<GLES2FunctionPointer
>(glUniform1f
),
1423 reinterpret_cast<GLES2FunctionPointer
>(glUniform1fv
),
1427 reinterpret_cast<GLES2FunctionPointer
>(glUniform1i
),
1431 reinterpret_cast<GLES2FunctionPointer
>(glUniform1iv
),
1435 reinterpret_cast<GLES2FunctionPointer
>(glUniform2f
),
1439 reinterpret_cast<GLES2FunctionPointer
>(glUniform2fv
),
1443 reinterpret_cast<GLES2FunctionPointer
>(glUniform2i
),
1447 reinterpret_cast<GLES2FunctionPointer
>(glUniform2iv
),
1451 reinterpret_cast<GLES2FunctionPointer
>(glUniform3f
),
1455 reinterpret_cast<GLES2FunctionPointer
>(glUniform3fv
),
1459 reinterpret_cast<GLES2FunctionPointer
>(glUniform3i
),
1463 reinterpret_cast<GLES2FunctionPointer
>(glUniform3iv
),
1467 reinterpret_cast<GLES2FunctionPointer
>(glUniform4f
),
1471 reinterpret_cast<GLES2FunctionPointer
>(glUniform4fv
),
1475 reinterpret_cast<GLES2FunctionPointer
>(glUniform4i
),
1479 reinterpret_cast<GLES2FunctionPointer
>(glUniform4iv
),
1482 "glUniformMatrix2fv",
1483 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix2fv
),
1486 "glUniformMatrix3fv",
1487 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix3fv
),
1490 "glUniformMatrix4fv",
1491 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix4fv
),
1495 reinterpret_cast<GLES2FunctionPointer
>(glUseProgram
),
1498 "glValidateProgram",
1499 reinterpret_cast<GLES2FunctionPointer
>(glValidateProgram
),
1503 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib1f
),
1506 "glVertexAttrib1fv",
1507 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib1fv
),
1511 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib2f
),
1514 "glVertexAttrib2fv",
1515 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib2fv
),
1519 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib3f
),
1522 "glVertexAttrib3fv",
1523 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib3fv
),
1527 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib4f
),
1530 "glVertexAttrib4fv",
1531 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib4fv
),
1534 "glVertexAttribPointer",
1535 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribPointer
),
1539 reinterpret_cast<GLES2FunctionPointer
>(glViewport
),
1542 "glBlitFramebufferCHROMIUM",
1543 reinterpret_cast<GLES2FunctionPointer
>(glBlitFramebufferCHROMIUM
),
1546 "glRenderbufferStorageMultisampleCHROMIUM",
1547 reinterpret_cast<GLES2FunctionPointer
>(
1548 glRenderbufferStorageMultisampleCHROMIUM
),
1551 "glRenderbufferStorageMultisampleEXT",
1552 reinterpret_cast<GLES2FunctionPointer
>(
1553 glRenderbufferStorageMultisampleEXT
),
1556 "glFramebufferTexture2DMultisampleEXT",
1557 reinterpret_cast<GLES2FunctionPointer
>(
1558 glFramebufferTexture2DMultisampleEXT
),
1561 "glTexStorage2DEXT",
1562 reinterpret_cast<GLES2FunctionPointer
>(glTexStorage2DEXT
),
1566 reinterpret_cast<GLES2FunctionPointer
>(glGenQueriesEXT
),
1569 "glDeleteQueriesEXT",
1570 reinterpret_cast<GLES2FunctionPointer
>(glDeleteQueriesEXT
),
1574 reinterpret_cast<GLES2FunctionPointer
>(glIsQueryEXT
),
1578 reinterpret_cast<GLES2FunctionPointer
>(glBeginQueryEXT
),
1582 reinterpret_cast<GLES2FunctionPointer
>(glEndQueryEXT
),
1586 reinterpret_cast<GLES2FunctionPointer
>(glGetQueryivEXT
),
1589 "glGetQueryObjectuivEXT",
1590 reinterpret_cast<GLES2FunctionPointer
>(glGetQueryObjectuivEXT
),
1593 "glInsertEventMarkerEXT",
1594 reinterpret_cast<GLES2FunctionPointer
>(glInsertEventMarkerEXT
),
1597 "glPushGroupMarkerEXT",
1598 reinterpret_cast<GLES2FunctionPointer
>(glPushGroupMarkerEXT
),
1601 "glPopGroupMarkerEXT",
1602 reinterpret_cast<GLES2FunctionPointer
>(glPopGroupMarkerEXT
),
1605 "glGenVertexArraysOES",
1606 reinterpret_cast<GLES2FunctionPointer
>(glGenVertexArraysOES
),
1609 "glDeleteVertexArraysOES",
1610 reinterpret_cast<GLES2FunctionPointer
>(glDeleteVertexArraysOES
),
1613 "glIsVertexArrayOES",
1614 reinterpret_cast<GLES2FunctionPointer
>(glIsVertexArrayOES
),
1617 "glBindVertexArrayOES",
1618 reinterpret_cast<GLES2FunctionPointer
>(glBindVertexArrayOES
),
1622 reinterpret_cast<GLES2FunctionPointer
>(glSwapBuffers
),
1625 "glGetMaxValueInBufferCHROMIUM",
1626 reinterpret_cast<GLES2FunctionPointer
>(glGetMaxValueInBufferCHROMIUM
),
1629 "glEnableFeatureCHROMIUM",
1630 reinterpret_cast<GLES2FunctionPointer
>(glEnableFeatureCHROMIUM
),
1633 "glMapBufferCHROMIUM",
1634 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferCHROMIUM
),
1637 "glUnmapBufferCHROMIUM",
1638 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBufferCHROMIUM
),
1641 "glMapBufferSubDataCHROMIUM",
1642 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferSubDataCHROMIUM
),
1645 "glUnmapBufferSubDataCHROMIUM",
1646 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBufferSubDataCHROMIUM
),
1649 "glMapTexSubImage2DCHROMIUM",
1650 reinterpret_cast<GLES2FunctionPointer
>(glMapTexSubImage2DCHROMIUM
),
1653 "glUnmapTexSubImage2DCHROMIUM",
1654 reinterpret_cast<GLES2FunctionPointer
>(glUnmapTexSubImage2DCHROMIUM
),
1658 reinterpret_cast<GLES2FunctionPointer
>(glResizeCHROMIUM
),
1661 "glGetRequestableExtensionsCHROMIUM",
1662 reinterpret_cast<GLES2FunctionPointer
>(glGetRequestableExtensionsCHROMIUM
),
1665 "glRequestExtensionCHROMIUM",
1666 reinterpret_cast<GLES2FunctionPointer
>(glRequestExtensionCHROMIUM
),
1669 "glRateLimitOffscreenContextCHROMIUM",
1670 reinterpret_cast<GLES2FunctionPointer
>(
1671 glRateLimitOffscreenContextCHROMIUM
),
1674 "glGetProgramInfoCHROMIUM",
1675 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramInfoCHROMIUM
),
1678 "glCreateStreamTextureCHROMIUM",
1679 reinterpret_cast<GLES2FunctionPointer
>(glCreateStreamTextureCHROMIUM
),
1682 "glCreateImageCHROMIUM",
1683 reinterpret_cast<GLES2FunctionPointer
>(glCreateImageCHROMIUM
),
1686 "glDestroyImageCHROMIUM",
1687 reinterpret_cast<GLES2FunctionPointer
>(glDestroyImageCHROMIUM
),
1690 "glCreateGpuMemoryBufferImageCHROMIUM",
1691 reinterpret_cast<GLES2FunctionPointer
>(
1692 glCreateGpuMemoryBufferImageCHROMIUM
),
1695 "glGetTranslatedShaderSourceANGLE",
1696 reinterpret_cast<GLES2FunctionPointer
>(glGetTranslatedShaderSourceANGLE
),
1699 "glPostSubBufferCHROMIUM",
1700 reinterpret_cast<GLES2FunctionPointer
>(glPostSubBufferCHROMIUM
),
1703 "glTexImageIOSurface2DCHROMIUM",
1704 reinterpret_cast<GLES2FunctionPointer
>(glTexImageIOSurface2DCHROMIUM
),
1707 "glCopyTextureCHROMIUM",
1708 reinterpret_cast<GLES2FunctionPointer
>(glCopyTextureCHROMIUM
),
1711 "glDrawArraysInstancedANGLE",
1712 reinterpret_cast<GLES2FunctionPointer
>(glDrawArraysInstancedANGLE
),
1715 "glDrawElementsInstancedANGLE",
1716 reinterpret_cast<GLES2FunctionPointer
>(glDrawElementsInstancedANGLE
),
1719 "glVertexAttribDivisorANGLE",
1720 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribDivisorANGLE
),
1723 "glGenMailboxCHROMIUM",
1724 reinterpret_cast<GLES2FunctionPointer
>(glGenMailboxCHROMIUM
),
1727 "glProduceTextureCHROMIUM",
1728 reinterpret_cast<GLES2FunctionPointer
>(glProduceTextureCHROMIUM
),
1731 "glProduceTextureDirectCHROMIUM",
1732 reinterpret_cast<GLES2FunctionPointer
>(glProduceTextureDirectCHROMIUM
),
1735 "glConsumeTextureCHROMIUM",
1736 reinterpret_cast<GLES2FunctionPointer
>(glConsumeTextureCHROMIUM
),
1739 "glCreateAndConsumeTextureCHROMIUM",
1740 reinterpret_cast<GLES2FunctionPointer
>(glCreateAndConsumeTextureCHROMIUM
),
1743 "glBindUniformLocationCHROMIUM",
1744 reinterpret_cast<GLES2FunctionPointer
>(glBindUniformLocationCHROMIUM
),
1747 "glGenValuebuffersCHROMIUM",
1748 reinterpret_cast<GLES2FunctionPointer
>(glGenValuebuffersCHROMIUM
),
1751 "glDeleteValuebuffersCHROMIUM",
1752 reinterpret_cast<GLES2FunctionPointer
>(glDeleteValuebuffersCHROMIUM
),
1755 "glIsValuebufferCHROMIUM",
1756 reinterpret_cast<GLES2FunctionPointer
>(glIsValuebufferCHROMIUM
),
1759 "glBindValuebufferCHROMIUM",
1760 reinterpret_cast<GLES2FunctionPointer
>(glBindValuebufferCHROMIUM
),
1763 "glSubscribeValueCHROMIUM",
1764 reinterpret_cast<GLES2FunctionPointer
>(glSubscribeValueCHROMIUM
),
1767 "glPopulateSubscribedValuesCHROMIUM",
1768 reinterpret_cast<GLES2FunctionPointer
>(glPopulateSubscribedValuesCHROMIUM
),
1771 "glUniformValuebufferCHROMIUM",
1772 reinterpret_cast<GLES2FunctionPointer
>(glUniformValuebufferCHROMIUM
),
1775 "glBindTexImage2DCHROMIUM",
1776 reinterpret_cast<GLES2FunctionPointer
>(glBindTexImage2DCHROMIUM
),
1779 "glReleaseTexImage2DCHROMIUM",
1780 reinterpret_cast<GLES2FunctionPointer
>(glReleaseTexImage2DCHROMIUM
),
1783 "glTraceBeginCHROMIUM",
1784 reinterpret_cast<GLES2FunctionPointer
>(glTraceBeginCHROMIUM
),
1787 "glTraceEndCHROMIUM",
1788 reinterpret_cast<GLES2FunctionPointer
>(glTraceEndCHROMIUM
),
1791 "glAsyncTexSubImage2DCHROMIUM",
1792 reinterpret_cast<GLES2FunctionPointer
>(glAsyncTexSubImage2DCHROMIUM
),
1795 "glAsyncTexImage2DCHROMIUM",
1796 reinterpret_cast<GLES2FunctionPointer
>(glAsyncTexImage2DCHROMIUM
),
1799 "glWaitAsyncTexImage2DCHROMIUM",
1800 reinterpret_cast<GLES2FunctionPointer
>(glWaitAsyncTexImage2DCHROMIUM
),
1803 "glWaitAllAsyncTexImage2DCHROMIUM",
1804 reinterpret_cast<GLES2FunctionPointer
>(glWaitAllAsyncTexImage2DCHROMIUM
),
1807 "glDiscardFramebufferEXT",
1808 reinterpret_cast<GLES2FunctionPointer
>(glDiscardFramebufferEXT
),
1811 "glLoseContextCHROMIUM",
1812 reinterpret_cast<GLES2FunctionPointer
>(glLoseContextCHROMIUM
),
1815 "glInsertSyncPointCHROMIUM",
1816 reinterpret_cast<GLES2FunctionPointer
>(glInsertSyncPointCHROMIUM
),
1819 "glWaitSyncPointCHROMIUM",
1820 reinterpret_cast<GLES2FunctionPointer
>(glWaitSyncPointCHROMIUM
),
1824 reinterpret_cast<GLES2FunctionPointer
>(glDrawBuffersEXT
),
1827 "glDiscardBackbufferCHROMIUM",
1828 reinterpret_cast<GLES2FunctionPointer
>(glDiscardBackbufferCHROMIUM
),
1831 "glScheduleOverlayPlaneCHROMIUM",
1832 reinterpret_cast<GLES2FunctionPointer
>(glScheduleOverlayPlaneCHROMIUM
),
1835 "glMatrixLoadfCHROMIUM",
1836 reinterpret_cast<GLES2FunctionPointer
>(glMatrixLoadfCHROMIUM
),
1839 "glMatrixLoadIdentityCHROMIUM",
1840 reinterpret_cast<GLES2FunctionPointer
>(glMatrixLoadIdentityCHROMIUM
),
1843 "glBlendBarrierKHR",
1844 reinterpret_cast<GLES2FunctionPointer
>(glBlendBarrierKHR
),
1852 } // namespace gles2
1853 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_