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 GLES2BindBufferBase(GLenum target
, GLuint index
, GLuint buffer
) {
28 gles2::GetGLContext()->BindBufferBase(target
, index
, buffer
);
30 void GLES2BindBufferRange(GLenum target
,
35 gles2::GetGLContext()->BindBufferRange(target
, index
, buffer
, offset
, size
);
37 void GLES2BindFramebuffer(GLenum target
, GLuint framebuffer
) {
38 gles2::GetGLContext()->BindFramebuffer(target
, framebuffer
);
40 void GLES2BindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
41 gles2::GetGLContext()->BindRenderbuffer(target
, renderbuffer
);
43 void GLES2BindSampler(GLuint unit
, GLuint sampler
) {
44 gles2::GetGLContext()->BindSampler(unit
, sampler
);
46 void GLES2BindTexture(GLenum target
, GLuint texture
) {
47 gles2::GetGLContext()->BindTexture(target
, texture
);
49 void GLES2BindTransformFeedback(GLenum target
, GLuint transformfeedback
) {
50 gles2::GetGLContext()->BindTransformFeedback(target
, transformfeedback
);
52 void GLES2BlendColor(GLclampf red
,
56 gles2::GetGLContext()->BlendColor(red
, green
, blue
, alpha
);
58 void GLES2BlendEquation(GLenum mode
) {
59 gles2::GetGLContext()->BlendEquation(mode
);
61 void GLES2BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
62 gles2::GetGLContext()->BlendEquationSeparate(modeRGB
, modeAlpha
);
64 void GLES2BlendFunc(GLenum sfactor
, GLenum dfactor
) {
65 gles2::GetGLContext()->BlendFunc(sfactor
, dfactor
);
67 void GLES2BlendFuncSeparate(GLenum srcRGB
,
71 gles2::GetGLContext()->BlendFuncSeparate(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
73 void GLES2BufferData(GLenum target
,
77 gles2::GetGLContext()->BufferData(target
, size
, data
, usage
);
79 void GLES2BufferSubData(GLenum target
,
83 gles2::GetGLContext()->BufferSubData(target
, offset
, size
, data
);
85 GLenum
GLES2CheckFramebufferStatus(GLenum target
) {
86 return gles2::GetGLContext()->CheckFramebufferStatus(target
);
88 void GLES2Clear(GLbitfield mask
) {
89 gles2::GetGLContext()->Clear(mask
);
91 void GLES2ClearBufferfi(GLenum buffer
,
95 gles2::GetGLContext()->ClearBufferfi(buffer
, drawbuffers
, depth
, stencil
);
97 void GLES2ClearBufferfv(GLenum buffer
,
99 const GLfloat
* value
) {
100 gles2::GetGLContext()->ClearBufferfv(buffer
, drawbuffers
, value
);
102 void GLES2ClearBufferiv(GLenum buffer
, GLint drawbuffers
, const GLint
* value
) {
103 gles2::GetGLContext()->ClearBufferiv(buffer
, drawbuffers
, value
);
105 void GLES2ClearBufferuiv(GLenum buffer
,
107 const GLuint
* value
) {
108 gles2::GetGLContext()->ClearBufferuiv(buffer
, drawbuffers
, value
);
110 void GLES2ClearColor(GLclampf red
,
114 gles2::GetGLContext()->ClearColor(red
, green
, blue
, alpha
);
116 void GLES2ClearDepthf(GLclampf depth
) {
117 gles2::GetGLContext()->ClearDepthf(depth
);
119 void GLES2ClearStencil(GLint s
) {
120 gles2::GetGLContext()->ClearStencil(s
);
122 GLenum
GLES2ClientWaitSync(GLsync sync
, GLbitfield flags
, GLuint64 timeout
) {
123 return gles2::GetGLContext()->ClientWaitSync(sync
, flags
, timeout
);
125 void GLES2ColorMask(GLboolean red
,
129 gles2::GetGLContext()->ColorMask(red
, green
, blue
, alpha
);
131 void GLES2CompileShader(GLuint shader
) {
132 gles2::GetGLContext()->CompileShader(shader
);
134 void GLES2CompressedTexImage2D(GLenum target
,
136 GLenum internalformat
,
142 gles2::GetGLContext()->CompressedTexImage2D(
143 target
, level
, internalformat
, width
, height
, border
, imageSize
, data
);
145 void GLES2CompressedTexSubImage2D(GLenum target
,
154 gles2::GetGLContext()->CompressedTexSubImage2D(
155 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
157 void GLES2CompressedTexImage3D(GLenum target
,
159 GLenum internalformat
,
166 gles2::GetGLContext()->CompressedTexImage3D(target
, level
, internalformat
,
167 width
, height
, depth
, border
,
170 void GLES2CompressedTexSubImage3D(GLenum target
,
181 gles2::GetGLContext()->CompressedTexSubImage3D(
182 target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
, format
,
185 void GLES2CopyBufferSubData(GLenum readtarget
,
188 GLintptr writeoffset
,
190 gles2::GetGLContext()->CopyBufferSubData(readtarget
, writetarget
, readoffset
,
193 void GLES2CopyTexImage2D(GLenum target
,
195 GLenum internalformat
,
201 gles2::GetGLContext()->CopyTexImage2D(target
, level
, internalformat
, x
, y
,
202 width
, height
, border
);
204 void GLES2CopyTexSubImage2D(GLenum target
,
212 gles2::GetGLContext()->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
,
215 void GLES2CopyTexSubImage3D(GLenum target
,
224 gles2::GetGLContext()->CopyTexSubImage3D(target
, level
, xoffset
, yoffset
,
225 zoffset
, x
, y
, width
, height
);
227 GLuint
GLES2CreateProgram() {
228 return gles2::GetGLContext()->CreateProgram();
230 GLuint
GLES2CreateShader(GLenum type
) {
231 return gles2::GetGLContext()->CreateShader(type
);
233 void GLES2CullFace(GLenum mode
) {
234 gles2::GetGLContext()->CullFace(mode
);
236 void GLES2DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
237 gles2::GetGLContext()->DeleteBuffers(n
, buffers
);
239 void GLES2DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) {
240 gles2::GetGLContext()->DeleteFramebuffers(n
, framebuffers
);
242 void GLES2DeleteProgram(GLuint program
) {
243 gles2::GetGLContext()->DeleteProgram(program
);
245 void GLES2DeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) {
246 gles2::GetGLContext()->DeleteRenderbuffers(n
, renderbuffers
);
248 void GLES2DeleteSamplers(GLsizei n
, const GLuint
* samplers
) {
249 gles2::GetGLContext()->DeleteSamplers(n
, samplers
);
251 void GLES2DeleteSync(GLsync sync
) {
252 gles2::GetGLContext()->DeleteSync(sync
);
254 void GLES2DeleteShader(GLuint shader
) {
255 gles2::GetGLContext()->DeleteShader(shader
);
257 void GLES2DeleteTextures(GLsizei n
, const GLuint
* textures
) {
258 gles2::GetGLContext()->DeleteTextures(n
, textures
);
260 void GLES2DeleteTransformFeedbacks(GLsizei n
, const GLuint
* ids
) {
261 gles2::GetGLContext()->DeleteTransformFeedbacks(n
, ids
);
263 void GLES2DepthFunc(GLenum func
) {
264 gles2::GetGLContext()->DepthFunc(func
);
266 void GLES2DepthMask(GLboolean flag
) {
267 gles2::GetGLContext()->DepthMask(flag
);
269 void GLES2DepthRangef(GLclampf zNear
, GLclampf zFar
) {
270 gles2::GetGLContext()->DepthRangef(zNear
, zFar
);
272 void GLES2DetachShader(GLuint program
, GLuint shader
) {
273 gles2::GetGLContext()->DetachShader(program
, shader
);
275 void GLES2Disable(GLenum cap
) {
276 gles2::GetGLContext()->Disable(cap
);
278 void GLES2DisableVertexAttribArray(GLuint index
) {
279 gles2::GetGLContext()->DisableVertexAttribArray(index
);
281 void GLES2DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
282 gles2::GetGLContext()->DrawArrays(mode
, first
, count
);
284 void GLES2DrawElements(GLenum mode
,
287 const void* indices
) {
288 gles2::GetGLContext()->DrawElements(mode
, count
, type
, indices
);
290 void GLES2DrawRangeElements(GLenum mode
,
295 const void* indices
) {
296 gles2::GetGLContext()->DrawRangeElements(mode
, start
, end
, count
, type
,
299 void GLES2Enable(GLenum cap
) {
300 gles2::GetGLContext()->Enable(cap
);
302 void GLES2EnableVertexAttribArray(GLuint index
) {
303 gles2::GetGLContext()->EnableVertexAttribArray(index
);
305 GLsync
GLES2FenceSync(GLenum condition
, GLbitfield flags
) {
306 return gles2::GetGLContext()->FenceSync(condition
, flags
);
309 gles2::GetGLContext()->Finish();
312 gles2::GetGLContext()->Flush();
314 void GLES2FramebufferRenderbuffer(GLenum target
,
316 GLenum renderbuffertarget
,
317 GLuint renderbuffer
) {
318 gles2::GetGLContext()->FramebufferRenderbuffer(
319 target
, attachment
, renderbuffertarget
, renderbuffer
);
321 void GLES2FramebufferTexture2D(GLenum target
,
326 gles2::GetGLContext()->FramebufferTexture2D(target
, attachment
, textarget
,
329 void GLES2FramebufferTextureLayer(GLenum target
,
334 gles2::GetGLContext()->FramebufferTextureLayer(target
, attachment
, texture
,
337 void GLES2FrontFace(GLenum mode
) {
338 gles2::GetGLContext()->FrontFace(mode
);
340 void GLES2GenBuffers(GLsizei n
, GLuint
* buffers
) {
341 gles2::GetGLContext()->GenBuffers(n
, buffers
);
343 void GLES2GenerateMipmap(GLenum target
) {
344 gles2::GetGLContext()->GenerateMipmap(target
);
346 void GLES2GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
347 gles2::GetGLContext()->GenFramebuffers(n
, framebuffers
);
349 void GLES2GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
350 gles2::GetGLContext()->GenRenderbuffers(n
, renderbuffers
);
352 void GLES2GenSamplers(GLsizei n
, GLuint
* samplers
) {
353 gles2::GetGLContext()->GenSamplers(n
, samplers
);
355 void GLES2GenTextures(GLsizei n
, GLuint
* textures
) {
356 gles2::GetGLContext()->GenTextures(n
, textures
);
358 void GLES2GenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
359 gles2::GetGLContext()->GenTransformFeedbacks(n
, ids
);
361 void GLES2GetActiveAttrib(GLuint program
,
368 gles2::GetGLContext()->GetActiveAttrib(program
, index
, bufsize
, length
, size
,
371 void GLES2GetActiveUniform(GLuint program
,
378 gles2::GetGLContext()->GetActiveUniform(program
, index
, bufsize
, length
, size
,
381 void GLES2GetActiveUniformBlockiv(GLuint program
,
385 gles2::GetGLContext()->GetActiveUniformBlockiv(program
, index
, pname
, params
);
387 void GLES2GetActiveUniformBlockName(GLuint program
,
392 gles2::GetGLContext()->GetActiveUniformBlockName(program
, index
, bufsize
,
395 void GLES2GetActiveUniformsiv(GLuint program
,
397 const GLuint
* indices
,
400 gles2::GetGLContext()->GetActiveUniformsiv(program
, count
, indices
, pname
,
403 void GLES2GetAttachedShaders(GLuint program
,
407 gles2::GetGLContext()->GetAttachedShaders(program
, maxcount
, count
, shaders
);
409 GLint
GLES2GetAttribLocation(GLuint program
, const char* name
) {
410 return gles2::GetGLContext()->GetAttribLocation(program
, name
);
412 void GLES2GetBooleanv(GLenum pname
, GLboolean
* params
) {
413 gles2::GetGLContext()->GetBooleanv(pname
, params
);
415 void GLES2GetBufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
416 gles2::GetGLContext()->GetBufferParameteriv(target
, pname
, params
);
418 GLenum
GLES2GetError() {
419 return gles2::GetGLContext()->GetError();
421 void GLES2GetFloatv(GLenum pname
, GLfloat
* params
) {
422 gles2::GetGLContext()->GetFloatv(pname
, params
);
424 GLint
GLES2GetFragDataLocation(GLuint program
, const char* name
) {
425 return gles2::GetGLContext()->GetFragDataLocation(program
, name
);
427 void GLES2GetFramebufferAttachmentParameteriv(GLenum target
,
431 gles2::GetGLContext()->GetFramebufferAttachmentParameteriv(target
, attachment
,
434 void GLES2GetInteger64v(GLenum pname
, GLint64
* params
) {
435 gles2::GetGLContext()->GetInteger64v(pname
, params
);
437 void GLES2GetIntegeri_v(GLenum pname
, GLuint index
, GLint
* data
) {
438 gles2::GetGLContext()->GetIntegeri_v(pname
, index
, data
);
440 void GLES2GetInteger64i_v(GLenum pname
, GLuint index
, GLint64
* data
) {
441 gles2::GetGLContext()->GetInteger64i_v(pname
, index
, data
);
443 void GLES2GetIntegerv(GLenum pname
, GLint
* params
) {
444 gles2::GetGLContext()->GetIntegerv(pname
, params
);
446 void GLES2GetInternalformativ(GLenum target
,
451 gles2::GetGLContext()->GetInternalformativ(target
, format
, pname
, bufSize
,
454 void GLES2GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
455 gles2::GetGLContext()->GetProgramiv(program
, pname
, params
);
457 void GLES2GetProgramInfoLog(GLuint program
,
461 gles2::GetGLContext()->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
463 void GLES2GetRenderbufferParameteriv(GLenum target
,
466 gles2::GetGLContext()->GetRenderbufferParameteriv(target
, pname
, params
);
468 void GLES2GetSamplerParameterfv(GLuint sampler
, GLenum pname
, GLfloat
* params
) {
469 gles2::GetGLContext()->GetSamplerParameterfv(sampler
, pname
, params
);
471 void GLES2GetSamplerParameteriv(GLuint sampler
, GLenum pname
, GLint
* params
) {
472 gles2::GetGLContext()->GetSamplerParameteriv(sampler
, pname
, params
);
474 void GLES2GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
475 gles2::GetGLContext()->GetShaderiv(shader
, pname
, params
);
477 void GLES2GetShaderInfoLog(GLuint shader
,
481 gles2::GetGLContext()->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
483 void GLES2GetShaderPrecisionFormat(GLenum shadertype
,
484 GLenum precisiontype
,
487 gles2::GetGLContext()->GetShaderPrecisionFormat(shadertype
, precisiontype
,
490 void GLES2GetShaderSource(GLuint shader
,
494 gles2::GetGLContext()->GetShaderSource(shader
, bufsize
, length
, source
);
496 const GLubyte
* GLES2GetString(GLenum name
) {
497 return gles2::GetGLContext()->GetString(name
);
499 void GLES2GetSynciv(GLsync sync
,
504 gles2::GetGLContext()->GetSynciv(sync
, pname
, bufsize
, length
, values
);
506 void GLES2GetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
) {
507 gles2::GetGLContext()->GetTexParameterfv(target
, pname
, params
);
509 void GLES2GetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
510 gles2::GetGLContext()->GetTexParameteriv(target
, pname
, params
);
512 void GLES2GetTransformFeedbackVarying(GLuint program
,
519 gles2::GetGLContext()->GetTransformFeedbackVarying(program
, index
, bufsize
,
520 length
, size
, type
, name
);
522 GLuint
GLES2GetUniformBlockIndex(GLuint program
, const char* name
) {
523 return gles2::GetGLContext()->GetUniformBlockIndex(program
, name
);
525 void GLES2GetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) {
526 gles2::GetGLContext()->GetUniformfv(program
, location
, params
);
528 void GLES2GetUniformiv(GLuint program
, GLint location
, GLint
* params
) {
529 gles2::GetGLContext()->GetUniformiv(program
, location
, params
);
531 void GLES2GetUniformuiv(GLuint program
, GLint location
, GLuint
* params
) {
532 gles2::GetGLContext()->GetUniformuiv(program
, location
, params
);
534 void GLES2GetUniformIndices(GLuint program
,
536 const char* const* names
,
538 gles2::GetGLContext()->GetUniformIndices(program
, count
, names
, indices
);
540 GLint
GLES2GetUniformLocation(GLuint program
, const char* name
) {
541 return gles2::GetGLContext()->GetUniformLocation(program
, name
);
543 void GLES2GetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
* params
) {
544 gles2::GetGLContext()->GetVertexAttribfv(index
, pname
, params
);
546 void GLES2GetVertexAttribiv(GLuint index
, GLenum pname
, GLint
* params
) {
547 gles2::GetGLContext()->GetVertexAttribiv(index
, pname
, params
);
549 void GLES2GetVertexAttribIiv(GLuint index
, GLenum pname
, GLint
* params
) {
550 gles2::GetGLContext()->GetVertexAttribIiv(index
, pname
, params
);
552 void GLES2GetVertexAttribIuiv(GLuint index
, GLenum pname
, GLuint
* params
) {
553 gles2::GetGLContext()->GetVertexAttribIuiv(index
, pname
, params
);
555 void GLES2GetVertexAttribPointerv(GLuint index
, GLenum pname
, void** pointer
) {
556 gles2::GetGLContext()->GetVertexAttribPointerv(index
, pname
, pointer
);
558 void GLES2Hint(GLenum target
, GLenum mode
) {
559 gles2::GetGLContext()->Hint(target
, mode
);
561 void GLES2InvalidateFramebuffer(GLenum target
,
563 const GLenum
* attachments
) {
564 gles2::GetGLContext()->InvalidateFramebuffer(target
, count
, attachments
);
566 void GLES2InvalidateSubFramebuffer(GLenum target
,
568 const GLenum
* attachments
,
573 gles2::GetGLContext()->InvalidateSubFramebuffer(target
, count
, attachments
, x
,
576 GLboolean
GLES2IsBuffer(GLuint buffer
) {
577 return gles2::GetGLContext()->IsBuffer(buffer
);
579 GLboolean
GLES2IsEnabled(GLenum cap
) {
580 return gles2::GetGLContext()->IsEnabled(cap
);
582 GLboolean
GLES2IsFramebuffer(GLuint framebuffer
) {
583 return gles2::GetGLContext()->IsFramebuffer(framebuffer
);
585 GLboolean
GLES2IsProgram(GLuint program
) {
586 return gles2::GetGLContext()->IsProgram(program
);
588 GLboolean
GLES2IsRenderbuffer(GLuint renderbuffer
) {
589 return gles2::GetGLContext()->IsRenderbuffer(renderbuffer
);
591 GLboolean
GLES2IsSampler(GLuint sampler
) {
592 return gles2::GetGLContext()->IsSampler(sampler
);
594 GLboolean
GLES2IsShader(GLuint shader
) {
595 return gles2::GetGLContext()->IsShader(shader
);
597 GLboolean
GLES2IsSync(GLsync sync
) {
598 return gles2::GetGLContext()->IsSync(sync
);
600 GLboolean
GLES2IsTexture(GLuint texture
) {
601 return gles2::GetGLContext()->IsTexture(texture
);
603 GLboolean
GLES2IsTransformFeedback(GLuint transformfeedback
) {
604 return gles2::GetGLContext()->IsTransformFeedback(transformfeedback
);
606 void GLES2LineWidth(GLfloat width
) {
607 gles2::GetGLContext()->LineWidth(width
);
609 void GLES2LinkProgram(GLuint program
) {
610 gles2::GetGLContext()->LinkProgram(program
);
612 void GLES2PauseTransformFeedback() {
613 gles2::GetGLContext()->PauseTransformFeedback();
615 void GLES2PixelStorei(GLenum pname
, GLint param
) {
616 gles2::GetGLContext()->PixelStorei(pname
, param
);
618 void GLES2PolygonOffset(GLfloat factor
, GLfloat units
) {
619 gles2::GetGLContext()->PolygonOffset(factor
, units
);
621 void GLES2ReadBuffer(GLenum src
) {
622 gles2::GetGLContext()->ReadBuffer(src
);
624 void GLES2ReadPixels(GLint x
,
631 gles2::GetGLContext()->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
633 void GLES2ReleaseShaderCompiler() {
634 gles2::GetGLContext()->ReleaseShaderCompiler();
636 void GLES2RenderbufferStorage(GLenum target
,
637 GLenum internalformat
,
640 gles2::GetGLContext()->RenderbufferStorage(target
, internalformat
, width
,
643 void GLES2ResumeTransformFeedback() {
644 gles2::GetGLContext()->ResumeTransformFeedback();
646 void GLES2SampleCoverage(GLclampf value
, GLboolean invert
) {
647 gles2::GetGLContext()->SampleCoverage(value
, invert
);
649 void GLES2SamplerParameterf(GLuint sampler
, GLenum pname
, GLfloat param
) {
650 gles2::GetGLContext()->SamplerParameterf(sampler
, pname
, param
);
652 void GLES2SamplerParameterfv(GLuint sampler
,
654 const GLfloat
* params
) {
655 gles2::GetGLContext()->SamplerParameterfv(sampler
, pname
, params
);
657 void GLES2SamplerParameteri(GLuint sampler
, GLenum pname
, GLint param
) {
658 gles2::GetGLContext()->SamplerParameteri(sampler
, pname
, param
);
660 void GLES2SamplerParameteriv(GLuint sampler
,
662 const GLint
* params
) {
663 gles2::GetGLContext()->SamplerParameteriv(sampler
, pname
, params
);
665 void GLES2Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
666 gles2::GetGLContext()->Scissor(x
, y
, width
, height
);
668 void GLES2ShaderBinary(GLsizei n
,
669 const GLuint
* shaders
,
673 gles2::GetGLContext()->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
675 void GLES2ShaderSource(GLuint shader
,
677 const GLchar
* const* str
,
678 const GLint
* length
) {
679 gles2::GetGLContext()->ShaderSource(shader
, count
, str
, length
);
681 void GLES2ShallowFinishCHROMIUM() {
682 gles2::GetGLContext()->ShallowFinishCHROMIUM();
684 void GLES2ShallowFlushCHROMIUM() {
685 gles2::GetGLContext()->ShallowFlushCHROMIUM();
687 void GLES2OrderingBarrierCHROMIUM() {
688 gles2::GetGLContext()->OrderingBarrierCHROMIUM();
690 void GLES2StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
691 gles2::GetGLContext()->StencilFunc(func
, ref
, mask
);
693 void GLES2StencilFuncSeparate(GLenum face
,
697 gles2::GetGLContext()->StencilFuncSeparate(face
, func
, ref
, mask
);
699 void GLES2StencilMask(GLuint mask
) {
700 gles2::GetGLContext()->StencilMask(mask
);
702 void GLES2StencilMaskSeparate(GLenum face
, GLuint mask
) {
703 gles2::GetGLContext()->StencilMaskSeparate(face
, mask
);
705 void GLES2StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
706 gles2::GetGLContext()->StencilOp(fail
, zfail
, zpass
);
708 void GLES2StencilOpSeparate(GLenum face
,
712 gles2::GetGLContext()->StencilOpSeparate(face
, fail
, zfail
, zpass
);
714 void GLES2TexImage2D(GLenum target
,
716 GLint internalformat
,
722 const void* pixels
) {
723 gles2::GetGLContext()->TexImage2D(target
, level
, internalformat
, width
,
724 height
, border
, format
, type
, pixels
);
726 void GLES2TexImage3D(GLenum target
,
728 GLint internalformat
,
735 const void* pixels
) {
736 gles2::GetGLContext()->TexImage3D(target
, level
, internalformat
, width
,
737 height
, depth
, border
, format
, type
,
740 void GLES2TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
741 gles2::GetGLContext()->TexParameterf(target
, pname
, param
);
743 void GLES2TexParameterfv(GLenum target
, GLenum pname
, const GLfloat
* params
) {
744 gles2::GetGLContext()->TexParameterfv(target
, pname
, params
);
746 void GLES2TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
747 gles2::GetGLContext()->TexParameteri(target
, pname
, param
);
749 void GLES2TexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
) {
750 gles2::GetGLContext()->TexParameteriv(target
, pname
, params
);
752 void GLES2TexStorage3D(GLenum target
,
754 GLenum internalFormat
,
758 gles2::GetGLContext()->TexStorage3D(target
, levels
, internalFormat
, width
,
761 void GLES2TexSubImage2D(GLenum target
,
769 const void* pixels
) {
770 gles2::GetGLContext()->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
,
771 height
, format
, type
, pixels
);
773 void GLES2TexSubImage3D(GLenum target
,
783 const void* pixels
) {
784 gles2::GetGLContext()->TexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
,
785 width
, height
, depth
, format
, type
,
788 void GLES2TransformFeedbackVaryings(GLuint program
,
790 const char* const* varyings
,
792 gles2::GetGLContext()->TransformFeedbackVaryings(program
, count
, varyings
,
795 void GLES2Uniform1f(GLint location
, GLfloat x
) {
796 gles2::GetGLContext()->Uniform1f(location
, x
);
798 void GLES2Uniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
799 gles2::GetGLContext()->Uniform1fv(location
, count
, v
);
801 void GLES2Uniform1i(GLint location
, GLint x
) {
802 gles2::GetGLContext()->Uniform1i(location
, x
);
804 void GLES2Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
805 gles2::GetGLContext()->Uniform1iv(location
, count
, v
);
807 void GLES2Uniform1ui(GLint location
, GLuint x
) {
808 gles2::GetGLContext()->Uniform1ui(location
, x
);
810 void GLES2Uniform1uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
811 gles2::GetGLContext()->Uniform1uiv(location
, count
, v
);
813 void GLES2Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
814 gles2::GetGLContext()->Uniform2f(location
, x
, y
);
816 void GLES2Uniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
817 gles2::GetGLContext()->Uniform2fv(location
, count
, v
);
819 void GLES2Uniform2i(GLint location
, GLint x
, GLint y
) {
820 gles2::GetGLContext()->Uniform2i(location
, x
, y
);
822 void GLES2Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
823 gles2::GetGLContext()->Uniform2iv(location
, count
, v
);
825 void GLES2Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
826 gles2::GetGLContext()->Uniform2ui(location
, x
, y
);
828 void GLES2Uniform2uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
829 gles2::GetGLContext()->Uniform2uiv(location
, count
, v
);
831 void GLES2Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
832 gles2::GetGLContext()->Uniform3f(location
, x
, y
, z
);
834 void GLES2Uniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
835 gles2::GetGLContext()->Uniform3fv(location
, count
, v
);
837 void GLES2Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
838 gles2::GetGLContext()->Uniform3i(location
, x
, y
, z
);
840 void GLES2Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
841 gles2::GetGLContext()->Uniform3iv(location
, count
, v
);
843 void GLES2Uniform3ui(GLint location
, GLuint x
, GLuint y
, GLuint z
) {
844 gles2::GetGLContext()->Uniform3ui(location
, x
, y
, z
);
846 void GLES2Uniform3uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
847 gles2::GetGLContext()->Uniform3uiv(location
, count
, v
);
849 void GLES2Uniform4f(GLint location
,
854 gles2::GetGLContext()->Uniform4f(location
, x
, y
, z
, w
);
856 void GLES2Uniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
857 gles2::GetGLContext()->Uniform4fv(location
, count
, v
);
859 void GLES2Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
860 gles2::GetGLContext()->Uniform4i(location
, x
, y
, z
, w
);
862 void GLES2Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
863 gles2::GetGLContext()->Uniform4iv(location
, count
, v
);
865 void GLES2Uniform4ui(GLint location
, GLuint x
, GLuint y
, GLuint z
, GLuint w
) {
866 gles2::GetGLContext()->Uniform4ui(location
, x
, y
, z
, w
);
868 void GLES2Uniform4uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
869 gles2::GetGLContext()->Uniform4uiv(location
, count
, v
);
871 void GLES2UniformBlockBinding(GLuint program
, GLuint index
, GLuint binding
) {
872 gles2::GetGLContext()->UniformBlockBinding(program
, index
, binding
);
874 void GLES2UniformMatrix2fv(GLint location
,
877 const GLfloat
* value
) {
878 gles2::GetGLContext()->UniformMatrix2fv(location
, count
, transpose
, value
);
880 void GLES2UniformMatrix2x3fv(GLint location
,
883 const GLfloat
* value
) {
884 gles2::GetGLContext()->UniformMatrix2x3fv(location
, count
, transpose
, value
);
886 void GLES2UniformMatrix2x4fv(GLint location
,
889 const GLfloat
* value
) {
890 gles2::GetGLContext()->UniformMatrix2x4fv(location
, count
, transpose
, value
);
892 void GLES2UniformMatrix3fv(GLint location
,
895 const GLfloat
* value
) {
896 gles2::GetGLContext()->UniformMatrix3fv(location
, count
, transpose
, value
);
898 void GLES2UniformMatrix3x2fv(GLint location
,
901 const GLfloat
* value
) {
902 gles2::GetGLContext()->UniformMatrix3x2fv(location
, count
, transpose
, value
);
904 void GLES2UniformMatrix3x4fv(GLint location
,
907 const GLfloat
* value
) {
908 gles2::GetGLContext()->UniformMatrix3x4fv(location
, count
, transpose
, value
);
910 void GLES2UniformMatrix4fv(GLint location
,
913 const GLfloat
* value
) {
914 gles2::GetGLContext()->UniformMatrix4fv(location
, count
, transpose
, value
);
916 void GLES2UniformMatrix4x2fv(GLint location
,
919 const GLfloat
* value
) {
920 gles2::GetGLContext()->UniformMatrix4x2fv(location
, count
, transpose
, value
);
922 void GLES2UniformMatrix4x3fv(GLint location
,
925 const GLfloat
* value
) {
926 gles2::GetGLContext()->UniformMatrix4x3fv(location
, count
, transpose
, value
);
928 void GLES2UseProgram(GLuint program
) {
929 gles2::GetGLContext()->UseProgram(program
);
931 void GLES2ValidateProgram(GLuint program
) {
932 gles2::GetGLContext()->ValidateProgram(program
);
934 void GLES2VertexAttrib1f(GLuint indx
, GLfloat x
) {
935 gles2::GetGLContext()->VertexAttrib1f(indx
, x
);
937 void GLES2VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
938 gles2::GetGLContext()->VertexAttrib1fv(indx
, values
);
940 void GLES2VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
941 gles2::GetGLContext()->VertexAttrib2f(indx
, x
, y
);
943 void GLES2VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
944 gles2::GetGLContext()->VertexAttrib2fv(indx
, values
);
946 void GLES2VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
947 gles2::GetGLContext()->VertexAttrib3f(indx
, x
, y
, z
);
949 void GLES2VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
950 gles2::GetGLContext()->VertexAttrib3fv(indx
, values
);
952 void GLES2VertexAttrib4f(GLuint indx
,
957 gles2::GetGLContext()->VertexAttrib4f(indx
, x
, y
, z
, w
);
959 void GLES2VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
960 gles2::GetGLContext()->VertexAttrib4fv(indx
, values
);
962 void GLES2VertexAttribI4i(GLuint indx
, GLint x
, GLint y
, GLint z
, GLint w
) {
963 gles2::GetGLContext()->VertexAttribI4i(indx
, x
, y
, z
, w
);
965 void GLES2VertexAttribI4iv(GLuint indx
, const GLint
* values
) {
966 gles2::GetGLContext()->VertexAttribI4iv(indx
, values
);
968 void GLES2VertexAttribI4ui(GLuint indx
,
973 gles2::GetGLContext()->VertexAttribI4ui(indx
, x
, y
, z
, w
);
975 void GLES2VertexAttribI4uiv(GLuint indx
, const GLuint
* values
) {
976 gles2::GetGLContext()->VertexAttribI4uiv(indx
, values
);
978 void GLES2VertexAttribIPointer(GLuint indx
,
983 gles2::GetGLContext()->VertexAttribIPointer(indx
, size
, type
, stride
, ptr
);
985 void GLES2VertexAttribPointer(GLuint indx
,
988 GLboolean normalized
,
991 gles2::GetGLContext()->VertexAttribPointer(indx
, size
, type
, normalized
,
994 void GLES2Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
995 gles2::GetGLContext()->Viewport(x
, y
, width
, height
);
997 void GLES2WaitSync(GLsync sync
, GLbitfield flags
, GLuint64 timeout
) {
998 gles2::GetGLContext()->WaitSync(sync
, flags
, timeout
);
1000 void GLES2BlitFramebufferCHROMIUM(GLint srcX0
,
1010 gles2::GetGLContext()->BlitFramebufferCHROMIUM(
1011 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
1013 void GLES2RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
1015 GLenum internalformat
,
1018 gles2::GetGLContext()->RenderbufferStorageMultisampleCHROMIUM(
1019 target
, samples
, internalformat
, width
, height
);
1021 void GLES2RenderbufferStorageMultisampleEXT(GLenum target
,
1023 GLenum internalformat
,
1026 gles2::GetGLContext()->RenderbufferStorageMultisampleEXT(
1027 target
, samples
, internalformat
, width
, height
);
1029 void GLES2FramebufferTexture2DMultisampleEXT(GLenum target
,
1035 gles2::GetGLContext()->FramebufferTexture2DMultisampleEXT(
1036 target
, attachment
, textarget
, texture
, level
, samples
);
1038 void GLES2TexStorage2DEXT(GLenum target
,
1040 GLenum internalFormat
,
1043 gles2::GetGLContext()->TexStorage2DEXT(target
, levels
, internalFormat
, width
,
1046 void GLES2GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
1047 gles2::GetGLContext()->GenQueriesEXT(n
, queries
);
1049 void GLES2DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
1050 gles2::GetGLContext()->DeleteQueriesEXT(n
, queries
);
1052 GLboolean
GLES2IsQueryEXT(GLuint id
) {
1053 return gles2::GetGLContext()->IsQueryEXT(id
);
1055 void GLES2BeginQueryEXT(GLenum target
, GLuint id
) {
1056 gles2::GetGLContext()->BeginQueryEXT(target
, id
);
1058 void GLES2BeginTransformFeedback(GLenum primitivemode
) {
1059 gles2::GetGLContext()->BeginTransformFeedback(primitivemode
);
1061 void GLES2EndQueryEXT(GLenum target
) {
1062 gles2::GetGLContext()->EndQueryEXT(target
);
1064 void GLES2EndTransformFeedback() {
1065 gles2::GetGLContext()->EndTransformFeedback();
1067 void GLES2GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
1068 gles2::GetGLContext()->GetQueryivEXT(target
, pname
, params
);
1070 void GLES2GetQueryObjectuivEXT(GLuint id
, GLenum pname
, GLuint
* params
) {
1071 gles2::GetGLContext()->GetQueryObjectuivEXT(id
, pname
, params
);
1073 void GLES2InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1074 gles2::GetGLContext()->InsertEventMarkerEXT(length
, marker
);
1076 void GLES2PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1077 gles2::GetGLContext()->PushGroupMarkerEXT(length
, marker
);
1079 void GLES2PopGroupMarkerEXT() {
1080 gles2::GetGLContext()->PopGroupMarkerEXT();
1082 void GLES2GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1083 gles2::GetGLContext()->GenVertexArraysOES(n
, arrays
);
1085 void GLES2DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
1086 gles2::GetGLContext()->DeleteVertexArraysOES(n
, arrays
);
1088 GLboolean
GLES2IsVertexArrayOES(GLuint array
) {
1089 return gles2::GetGLContext()->IsVertexArrayOES(array
);
1091 void GLES2BindVertexArrayOES(GLuint array
) {
1092 gles2::GetGLContext()->BindVertexArrayOES(array
);
1094 void GLES2SwapBuffers() {
1095 gles2::GetGLContext()->SwapBuffers();
1097 GLuint
GLES2GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1101 return gles2::GetGLContext()->GetMaxValueInBufferCHROMIUM(buffer_id
, count
,
1104 GLboolean
GLES2EnableFeatureCHROMIUM(const char* feature
) {
1105 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature
);
1107 void* GLES2MapBufferCHROMIUM(GLuint target
, GLenum access
) {
1108 return gles2::GetGLContext()->MapBufferCHROMIUM(target
, access
);
1110 GLboolean
GLES2UnmapBufferCHROMIUM(GLuint target
) {
1111 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target
);
1113 void* GLES2MapBufferSubDataCHROMIUM(GLuint target
,
1117 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(target
, offset
, size
,
1120 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem
) {
1121 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem
);
1123 void* GLES2MapBufferRange(GLenum target
,
1126 GLbitfield access
) {
1127 return gles2::GetGLContext()->MapBufferRange(target
, offset
, size
, access
);
1129 GLboolean
GLES2UnmapBuffer(GLenum target
) {
1130 return gles2::GetGLContext()->UnmapBuffer(target
);
1132 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target
,
1141 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM(
1142 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, access
);
1144 void GLES2UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1145 gles2::GetGLContext()->UnmapTexSubImage2DCHROMIUM(mem
);
1147 void GLES2ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) {
1148 gles2::GetGLContext()->ResizeCHROMIUM(width
, height
, scale_factor
);
1150 const GLchar
* GLES2GetRequestableExtensionsCHROMIUM() {
1151 return gles2::GetGLContext()->GetRequestableExtensionsCHROMIUM();
1153 void GLES2RequestExtensionCHROMIUM(const char* extension
) {
1154 gles2::GetGLContext()->RequestExtensionCHROMIUM(extension
);
1156 void GLES2RateLimitOffscreenContextCHROMIUM() {
1157 gles2::GetGLContext()->RateLimitOffscreenContextCHROMIUM();
1159 void GLES2GetProgramInfoCHROMIUM(GLuint program
,
1163 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
1165 void GLES2GetUniformBlocksCHROMIUM(GLuint program
,
1169 gles2::GetGLContext()->GetUniformBlocksCHROMIUM(program
, bufsize
, size
, info
);
1171 void GLES2GetTransformFeedbackVaryingsCHROMIUM(GLuint program
,
1175 gles2::GetGLContext()->GetTransformFeedbackVaryingsCHROMIUM(program
, bufsize
,
1178 void GLES2GetUniformsES3CHROMIUM(GLuint program
,
1182 gles2::GetGLContext()->GetUniformsES3CHROMIUM(program
, bufsize
, size
, info
);
1184 GLuint
GLES2CreateStreamTextureCHROMIUM(GLuint texture
) {
1185 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture
);
1187 GLuint
GLES2CreateImageCHROMIUM(ClientBuffer buffer
,
1190 GLenum internalformat
) {
1191 return gles2::GetGLContext()->CreateImageCHROMIUM(buffer
, width
, height
,
1194 void GLES2DestroyImageCHROMIUM(GLuint image_id
) {
1195 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id
);
1197 GLuint
GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
1199 GLenum internalformat
,
1201 return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM(
1202 width
, height
, internalformat
, usage
);
1204 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader
,
1208 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
,
1211 void GLES2PostSubBufferCHROMIUM(GLint x
, GLint y
, GLint width
, GLint height
) {
1212 gles2::GetGLContext()->PostSubBufferCHROMIUM(x
, y
, width
, height
);
1214 void GLES2TexImageIOSurface2DCHROMIUM(GLenum target
,
1219 gles2::GetGLContext()->TexImageIOSurface2DCHROMIUM(target
, width
, height
,
1220 ioSurfaceId
, plane
);
1222 void GLES2CopyTextureCHROMIUM(GLenum target
,
1225 GLint internalformat
,
1227 gles2::GetGLContext()->CopyTextureCHROMIUM(target
, source_id
, dest_id
,
1228 internalformat
, dest_type
);
1230 void GLES2CopySubTextureCHROMIUM(GLenum target
,
1239 gles2::GetGLContext()->CopySubTextureCHROMIUM(
1240 target
, source_id
, dest_id
, xoffset
, yoffset
, x
, y
, width
, height
);
1242 void GLES2CompressedCopyTextureCHROMIUM(GLenum target
,
1245 gles2::GetGLContext()->CompressedCopyTextureCHROMIUM(target
, source_id
,
1248 void GLES2DrawArraysInstancedANGLE(GLenum mode
,
1251 GLsizei primcount
) {
1252 gles2::GetGLContext()->DrawArraysInstancedANGLE(mode
, first
, count
,
1255 void GLES2DrawElementsInstancedANGLE(GLenum mode
,
1258 const void* indices
,
1259 GLsizei primcount
) {
1260 gles2::GetGLContext()->DrawElementsInstancedANGLE(mode
, count
, type
, indices
,
1263 void GLES2VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1264 gles2::GetGLContext()->VertexAttribDivisorANGLE(index
, divisor
);
1266 void GLES2GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1267 gles2::GetGLContext()->GenMailboxCHROMIUM(mailbox
);
1269 void GLES2ProduceTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) {
1270 gles2::GetGLContext()->ProduceTextureCHROMIUM(target
, mailbox
);
1272 void GLES2ProduceTextureDirectCHROMIUM(GLuint texture
,
1274 const GLbyte
* mailbox
) {
1275 gles2::GetGLContext()->ProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
1277 void GLES2ConsumeTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) {
1278 gles2::GetGLContext()->ConsumeTextureCHROMIUM(target
, mailbox
);
1280 GLuint
GLES2CreateAndConsumeTextureCHROMIUM(GLenum target
,
1281 const GLbyte
* mailbox
) {
1282 return gles2::GetGLContext()->CreateAndConsumeTextureCHROMIUM(target
,
1285 void GLES2BindUniformLocationCHROMIUM(GLuint program
,
1288 gles2::GetGLContext()->BindUniformLocationCHROMIUM(program
, location
, name
);
1290 void GLES2GenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
) {
1291 gles2::GetGLContext()->GenValuebuffersCHROMIUM(n
, buffers
);
1293 void GLES2DeleteValuebuffersCHROMIUM(GLsizei n
, const GLuint
* valuebuffers
) {
1294 gles2::GetGLContext()->DeleteValuebuffersCHROMIUM(n
, valuebuffers
);
1296 GLboolean
GLES2IsValuebufferCHROMIUM(GLuint valuebuffer
) {
1297 return gles2::GetGLContext()->IsValuebufferCHROMIUM(valuebuffer
);
1299 void GLES2BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) {
1300 gles2::GetGLContext()->BindValuebufferCHROMIUM(target
, valuebuffer
);
1302 void GLES2SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) {
1303 gles2::GetGLContext()->SubscribeValueCHROMIUM(target
, subscription
);
1305 void GLES2PopulateSubscribedValuesCHROMIUM(GLenum target
) {
1306 gles2::GetGLContext()->PopulateSubscribedValuesCHROMIUM(target
);
1308 void GLES2UniformValuebufferCHROMIUM(GLint location
,
1310 GLenum subscription
) {
1311 gles2::GetGLContext()->UniformValuebufferCHROMIUM(location
, target
,
1314 void GLES2BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1315 gles2::GetGLContext()->BindTexImage2DCHROMIUM(target
, imageId
);
1317 void GLES2ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1318 gles2::GetGLContext()->ReleaseTexImage2DCHROMIUM(target
, imageId
);
1320 void GLES2TraceBeginCHROMIUM(const char* category_name
,
1321 const char* trace_name
) {
1322 gles2::GetGLContext()->TraceBeginCHROMIUM(category_name
, trace_name
);
1324 void GLES2TraceEndCHROMIUM() {
1325 gles2::GetGLContext()->TraceEndCHROMIUM();
1327 void GLES2AsyncTexSubImage2DCHROMIUM(GLenum target
,
1336 gles2::GetGLContext()->AsyncTexSubImage2DCHROMIUM(
1337 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, data
);
1339 void GLES2AsyncTexImage2DCHROMIUM(GLenum target
,
1341 GLenum internalformat
,
1347 const void* pixels
) {
1348 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(target
, level
, internalformat
,
1349 width
, height
, border
, format
,
1352 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1353 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target
);
1355 void GLES2WaitAllAsyncTexImage2DCHROMIUM() {
1356 gles2::GetGLContext()->WaitAllAsyncTexImage2DCHROMIUM();
1358 void GLES2DiscardFramebufferEXT(GLenum target
,
1360 const GLenum
* attachments
) {
1361 gles2::GetGLContext()->DiscardFramebufferEXT(target
, count
, attachments
);
1363 void GLES2LoseContextCHROMIUM(GLenum current
, GLenum other
) {
1364 gles2::GetGLContext()->LoseContextCHROMIUM(current
, other
);
1366 GLuint
GLES2InsertSyncPointCHROMIUM() {
1367 return gles2::GetGLContext()->InsertSyncPointCHROMIUM();
1369 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point
) {
1370 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point
);
1372 void GLES2DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
1373 gles2::GetGLContext()->DrawBuffersEXT(count
, bufs
);
1375 void GLES2DiscardBackbufferCHROMIUM() {
1376 gles2::GetGLContext()->DiscardBackbufferCHROMIUM();
1378 void GLES2ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
1379 GLenum plane_transform
,
1380 GLuint overlay_texture_id
,
1384 GLint bounds_height
,
1388 GLfloat uv_height
) {
1389 gles2::GetGLContext()->ScheduleOverlayPlaneCHROMIUM(
1390 plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
, bounds_y
,
1391 bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
, uv_height
);
1393 void GLES2SwapInterval(GLint interval
) {
1394 gles2::GetGLContext()->SwapInterval(interval
);
1396 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) {
1397 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode
, m
);
1399 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
1400 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode
);
1402 GLenum
GLES2GetGraphicsResetStatusKHR() {
1403 return gles2::GetGLContext()->GetGraphicsResetStatusKHR();
1405 void GLES2BlendBarrierKHR() {
1406 gles2::GetGLContext()->BlendBarrierKHR();
1411 extern const NameToFunc g_gles2_function_table
[] = {
1414 reinterpret_cast<GLES2FunctionPointer
>(glActiveTexture
),
1418 reinterpret_cast<GLES2FunctionPointer
>(glAttachShader
),
1421 "glBindAttribLocation",
1422 reinterpret_cast<GLES2FunctionPointer
>(glBindAttribLocation
),
1426 reinterpret_cast<GLES2FunctionPointer
>(glBindBuffer
),
1430 reinterpret_cast<GLES2FunctionPointer
>(glBindBufferBase
),
1433 "glBindBufferRange",
1434 reinterpret_cast<GLES2FunctionPointer
>(glBindBufferRange
),
1437 "glBindFramebuffer",
1438 reinterpret_cast<GLES2FunctionPointer
>(glBindFramebuffer
),
1441 "glBindRenderbuffer",
1442 reinterpret_cast<GLES2FunctionPointer
>(glBindRenderbuffer
),
1446 reinterpret_cast<GLES2FunctionPointer
>(glBindSampler
),
1450 reinterpret_cast<GLES2FunctionPointer
>(glBindTexture
),
1453 "glBindTransformFeedback",
1454 reinterpret_cast<GLES2FunctionPointer
>(glBindTransformFeedback
),
1458 reinterpret_cast<GLES2FunctionPointer
>(glBlendColor
),
1462 reinterpret_cast<GLES2FunctionPointer
>(glBlendEquation
),
1465 "glBlendEquationSeparate",
1466 reinterpret_cast<GLES2FunctionPointer
>(glBlendEquationSeparate
),
1470 reinterpret_cast<GLES2FunctionPointer
>(glBlendFunc
),
1473 "glBlendFuncSeparate",
1474 reinterpret_cast<GLES2FunctionPointer
>(glBlendFuncSeparate
),
1478 reinterpret_cast<GLES2FunctionPointer
>(glBufferData
),
1482 reinterpret_cast<GLES2FunctionPointer
>(glBufferSubData
),
1485 "glCheckFramebufferStatus",
1486 reinterpret_cast<GLES2FunctionPointer
>(glCheckFramebufferStatus
),
1490 reinterpret_cast<GLES2FunctionPointer
>(glClear
),
1494 reinterpret_cast<GLES2FunctionPointer
>(glClearBufferfi
),
1498 reinterpret_cast<GLES2FunctionPointer
>(glClearBufferfv
),
1502 reinterpret_cast<GLES2FunctionPointer
>(glClearBufferiv
),
1506 reinterpret_cast<GLES2FunctionPointer
>(glClearBufferuiv
),
1510 reinterpret_cast<GLES2FunctionPointer
>(glClearColor
),
1514 reinterpret_cast<GLES2FunctionPointer
>(glClearDepthf
),
1518 reinterpret_cast<GLES2FunctionPointer
>(glClearStencil
),
1522 reinterpret_cast<GLES2FunctionPointer
>(glClientWaitSync
),
1526 reinterpret_cast<GLES2FunctionPointer
>(glColorMask
),
1530 reinterpret_cast<GLES2FunctionPointer
>(glCompileShader
),
1533 "glCompressedTexImage2D",
1534 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexImage2D
),
1537 "glCompressedTexSubImage2D",
1538 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexSubImage2D
),
1541 "glCompressedTexImage3D",
1542 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexImage3D
),
1545 "glCompressedTexSubImage3D",
1546 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexSubImage3D
),
1549 "glCopyBufferSubData",
1550 reinterpret_cast<GLES2FunctionPointer
>(glCopyBufferSubData
),
1554 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexImage2D
),
1557 "glCopyTexSubImage2D",
1558 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexSubImage2D
),
1561 "glCopyTexSubImage3D",
1562 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexSubImage3D
),
1566 reinterpret_cast<GLES2FunctionPointer
>(glCreateProgram
),
1570 reinterpret_cast<GLES2FunctionPointer
>(glCreateShader
),
1574 reinterpret_cast<GLES2FunctionPointer
>(glCullFace
),
1578 reinterpret_cast<GLES2FunctionPointer
>(glDeleteBuffers
),
1581 "glDeleteFramebuffers",
1582 reinterpret_cast<GLES2FunctionPointer
>(glDeleteFramebuffers
),
1586 reinterpret_cast<GLES2FunctionPointer
>(glDeleteProgram
),
1589 "glDeleteRenderbuffers",
1590 reinterpret_cast<GLES2FunctionPointer
>(glDeleteRenderbuffers
),
1594 reinterpret_cast<GLES2FunctionPointer
>(glDeleteSamplers
),
1598 reinterpret_cast<GLES2FunctionPointer
>(glDeleteSync
),
1602 reinterpret_cast<GLES2FunctionPointer
>(glDeleteShader
),
1606 reinterpret_cast<GLES2FunctionPointer
>(glDeleteTextures
),
1609 "glDeleteTransformFeedbacks",
1610 reinterpret_cast<GLES2FunctionPointer
>(glDeleteTransformFeedbacks
),
1614 reinterpret_cast<GLES2FunctionPointer
>(glDepthFunc
),
1618 reinterpret_cast<GLES2FunctionPointer
>(glDepthMask
),
1622 reinterpret_cast<GLES2FunctionPointer
>(glDepthRangef
),
1626 reinterpret_cast<GLES2FunctionPointer
>(glDetachShader
),
1630 reinterpret_cast<GLES2FunctionPointer
>(glDisable
),
1633 "glDisableVertexAttribArray",
1634 reinterpret_cast<GLES2FunctionPointer
>(glDisableVertexAttribArray
),
1638 reinterpret_cast<GLES2FunctionPointer
>(glDrawArrays
),
1642 reinterpret_cast<GLES2FunctionPointer
>(glDrawElements
),
1645 "glDrawRangeElements",
1646 reinterpret_cast<GLES2FunctionPointer
>(glDrawRangeElements
),
1650 reinterpret_cast<GLES2FunctionPointer
>(glEnable
),
1653 "glEnableVertexAttribArray",
1654 reinterpret_cast<GLES2FunctionPointer
>(glEnableVertexAttribArray
),
1658 reinterpret_cast<GLES2FunctionPointer
>(glFenceSync
),
1662 reinterpret_cast<GLES2FunctionPointer
>(glFinish
),
1666 reinterpret_cast<GLES2FunctionPointer
>(glFlush
),
1669 "glFramebufferRenderbuffer",
1670 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferRenderbuffer
),
1673 "glFramebufferTexture2D",
1674 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferTexture2D
),
1677 "glFramebufferTextureLayer",
1678 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferTextureLayer
),
1682 reinterpret_cast<GLES2FunctionPointer
>(glFrontFace
),
1686 reinterpret_cast<GLES2FunctionPointer
>(glGenBuffers
),
1690 reinterpret_cast<GLES2FunctionPointer
>(glGenerateMipmap
),
1693 "glGenFramebuffers",
1694 reinterpret_cast<GLES2FunctionPointer
>(glGenFramebuffers
),
1697 "glGenRenderbuffers",
1698 reinterpret_cast<GLES2FunctionPointer
>(glGenRenderbuffers
),
1702 reinterpret_cast<GLES2FunctionPointer
>(glGenSamplers
),
1706 reinterpret_cast<GLES2FunctionPointer
>(glGenTextures
),
1709 "glGenTransformFeedbacks",
1710 reinterpret_cast<GLES2FunctionPointer
>(glGenTransformFeedbacks
),
1713 "glGetActiveAttrib",
1714 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveAttrib
),
1717 "glGetActiveUniform",
1718 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniform
),
1721 "glGetActiveUniformBlockiv",
1722 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniformBlockiv
),
1725 "glGetActiveUniformBlockName",
1726 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniformBlockName
),
1729 "glGetActiveUniformsiv",
1730 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniformsiv
),
1733 "glGetAttachedShaders",
1734 reinterpret_cast<GLES2FunctionPointer
>(glGetAttachedShaders
),
1737 "glGetAttribLocation",
1738 reinterpret_cast<GLES2FunctionPointer
>(glGetAttribLocation
),
1742 reinterpret_cast<GLES2FunctionPointer
>(glGetBooleanv
),
1745 "glGetBufferParameteriv",
1746 reinterpret_cast<GLES2FunctionPointer
>(glGetBufferParameteriv
),
1750 reinterpret_cast<GLES2FunctionPointer
>(glGetError
),
1754 reinterpret_cast<GLES2FunctionPointer
>(glGetFloatv
),
1757 "glGetFragDataLocation",
1758 reinterpret_cast<GLES2FunctionPointer
>(glGetFragDataLocation
),
1761 "glGetFramebufferAttachmentParameteriv",
1762 reinterpret_cast<GLES2FunctionPointer
>(
1763 glGetFramebufferAttachmentParameteriv
),
1767 reinterpret_cast<GLES2FunctionPointer
>(glGetInteger64v
),
1771 reinterpret_cast<GLES2FunctionPointer
>(glGetIntegeri_v
),
1774 "glGetInteger64i_v",
1775 reinterpret_cast<GLES2FunctionPointer
>(glGetInteger64i_v
),
1779 reinterpret_cast<GLES2FunctionPointer
>(glGetIntegerv
),
1782 "glGetInternalformativ",
1783 reinterpret_cast<GLES2FunctionPointer
>(glGetInternalformativ
),
1787 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramiv
),
1790 "glGetProgramInfoLog",
1791 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramInfoLog
),
1794 "glGetRenderbufferParameteriv",
1795 reinterpret_cast<GLES2FunctionPointer
>(glGetRenderbufferParameteriv
),
1798 "glGetSamplerParameterfv",
1799 reinterpret_cast<GLES2FunctionPointer
>(glGetSamplerParameterfv
),
1802 "glGetSamplerParameteriv",
1803 reinterpret_cast<GLES2FunctionPointer
>(glGetSamplerParameteriv
),
1807 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderiv
),
1810 "glGetShaderInfoLog",
1811 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderInfoLog
),
1814 "glGetShaderPrecisionFormat",
1815 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderPrecisionFormat
),
1818 "glGetShaderSource",
1819 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderSource
),
1823 reinterpret_cast<GLES2FunctionPointer
>(glGetString
),
1827 reinterpret_cast<GLES2FunctionPointer
>(glGetSynciv
),
1830 "glGetTexParameterfv",
1831 reinterpret_cast<GLES2FunctionPointer
>(glGetTexParameterfv
),
1834 "glGetTexParameteriv",
1835 reinterpret_cast<GLES2FunctionPointer
>(glGetTexParameteriv
),
1838 "glGetTransformFeedbackVarying",
1839 reinterpret_cast<GLES2FunctionPointer
>(glGetTransformFeedbackVarying
),
1842 "glGetUniformBlockIndex",
1843 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformBlockIndex
),
1847 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformfv
),
1851 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformiv
),
1855 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformuiv
),
1858 "glGetUniformIndices",
1859 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformIndices
),
1862 "glGetUniformLocation",
1863 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformLocation
),
1866 "glGetVertexAttribfv",
1867 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribfv
),
1870 "glGetVertexAttribiv",
1871 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribiv
),
1874 "glGetVertexAttribIiv",
1875 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribIiv
),
1878 "glGetVertexAttribIuiv",
1879 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribIuiv
),
1882 "glGetVertexAttribPointerv",
1883 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribPointerv
),
1887 reinterpret_cast<GLES2FunctionPointer
>(glHint
),
1890 "glInvalidateFramebuffer",
1891 reinterpret_cast<GLES2FunctionPointer
>(glInvalidateFramebuffer
),
1894 "glInvalidateSubFramebuffer",
1895 reinterpret_cast<GLES2FunctionPointer
>(glInvalidateSubFramebuffer
),
1899 reinterpret_cast<GLES2FunctionPointer
>(glIsBuffer
),
1903 reinterpret_cast<GLES2FunctionPointer
>(glIsEnabled
),
1907 reinterpret_cast<GLES2FunctionPointer
>(glIsFramebuffer
),
1911 reinterpret_cast<GLES2FunctionPointer
>(glIsProgram
),
1915 reinterpret_cast<GLES2FunctionPointer
>(glIsRenderbuffer
),
1919 reinterpret_cast<GLES2FunctionPointer
>(glIsSampler
),
1923 reinterpret_cast<GLES2FunctionPointer
>(glIsShader
),
1927 reinterpret_cast<GLES2FunctionPointer
>(glIsSync
),
1931 reinterpret_cast<GLES2FunctionPointer
>(glIsTexture
),
1934 "glIsTransformFeedback",
1935 reinterpret_cast<GLES2FunctionPointer
>(glIsTransformFeedback
),
1939 reinterpret_cast<GLES2FunctionPointer
>(glLineWidth
),
1943 reinterpret_cast<GLES2FunctionPointer
>(glLinkProgram
),
1946 "glPauseTransformFeedback",
1947 reinterpret_cast<GLES2FunctionPointer
>(glPauseTransformFeedback
),
1951 reinterpret_cast<GLES2FunctionPointer
>(glPixelStorei
),
1955 reinterpret_cast<GLES2FunctionPointer
>(glPolygonOffset
),
1959 reinterpret_cast<GLES2FunctionPointer
>(glReadBuffer
),
1963 reinterpret_cast<GLES2FunctionPointer
>(glReadPixels
),
1966 "glReleaseShaderCompiler",
1967 reinterpret_cast<GLES2FunctionPointer
>(glReleaseShaderCompiler
),
1970 "glRenderbufferStorage",
1971 reinterpret_cast<GLES2FunctionPointer
>(glRenderbufferStorage
),
1974 "glResumeTransformFeedback",
1975 reinterpret_cast<GLES2FunctionPointer
>(glResumeTransformFeedback
),
1979 reinterpret_cast<GLES2FunctionPointer
>(glSampleCoverage
),
1982 "glSamplerParameterf",
1983 reinterpret_cast<GLES2FunctionPointer
>(glSamplerParameterf
),
1986 "glSamplerParameterfv",
1987 reinterpret_cast<GLES2FunctionPointer
>(glSamplerParameterfv
),
1990 "glSamplerParameteri",
1991 reinterpret_cast<GLES2FunctionPointer
>(glSamplerParameteri
),
1994 "glSamplerParameteriv",
1995 reinterpret_cast<GLES2FunctionPointer
>(glSamplerParameteriv
),
1999 reinterpret_cast<GLES2FunctionPointer
>(glScissor
),
2003 reinterpret_cast<GLES2FunctionPointer
>(glShaderBinary
),
2007 reinterpret_cast<GLES2FunctionPointer
>(glShaderSource
),
2010 "glShallowFinishCHROMIUM",
2011 reinterpret_cast<GLES2FunctionPointer
>(glShallowFinishCHROMIUM
),
2014 "glShallowFlushCHROMIUM",
2015 reinterpret_cast<GLES2FunctionPointer
>(glShallowFlushCHROMIUM
),
2018 "glOrderingBarrierCHROMIUM",
2019 reinterpret_cast<GLES2FunctionPointer
>(glOrderingBarrierCHROMIUM
),
2023 reinterpret_cast<GLES2FunctionPointer
>(glStencilFunc
),
2026 "glStencilFuncSeparate",
2027 reinterpret_cast<GLES2FunctionPointer
>(glStencilFuncSeparate
),
2031 reinterpret_cast<GLES2FunctionPointer
>(glStencilMask
),
2034 "glStencilMaskSeparate",
2035 reinterpret_cast<GLES2FunctionPointer
>(glStencilMaskSeparate
),
2039 reinterpret_cast<GLES2FunctionPointer
>(glStencilOp
),
2042 "glStencilOpSeparate",
2043 reinterpret_cast<GLES2FunctionPointer
>(glStencilOpSeparate
),
2047 reinterpret_cast<GLES2FunctionPointer
>(glTexImage2D
),
2051 reinterpret_cast<GLES2FunctionPointer
>(glTexImage3D
),
2055 reinterpret_cast<GLES2FunctionPointer
>(glTexParameterf
),
2059 reinterpret_cast<GLES2FunctionPointer
>(glTexParameterfv
),
2063 reinterpret_cast<GLES2FunctionPointer
>(glTexParameteri
),
2067 reinterpret_cast<GLES2FunctionPointer
>(glTexParameteriv
),
2071 reinterpret_cast<GLES2FunctionPointer
>(glTexStorage3D
),
2075 reinterpret_cast<GLES2FunctionPointer
>(glTexSubImage2D
),
2079 reinterpret_cast<GLES2FunctionPointer
>(glTexSubImage3D
),
2082 "glTransformFeedbackVaryings",
2083 reinterpret_cast<GLES2FunctionPointer
>(glTransformFeedbackVaryings
),
2087 reinterpret_cast<GLES2FunctionPointer
>(glUniform1f
),
2091 reinterpret_cast<GLES2FunctionPointer
>(glUniform1fv
),
2095 reinterpret_cast<GLES2FunctionPointer
>(glUniform1i
),
2099 reinterpret_cast<GLES2FunctionPointer
>(glUniform1iv
),
2103 reinterpret_cast<GLES2FunctionPointer
>(glUniform1ui
),
2107 reinterpret_cast<GLES2FunctionPointer
>(glUniform1uiv
),
2111 reinterpret_cast<GLES2FunctionPointer
>(glUniform2f
),
2115 reinterpret_cast<GLES2FunctionPointer
>(glUniform2fv
),
2119 reinterpret_cast<GLES2FunctionPointer
>(glUniform2i
),
2123 reinterpret_cast<GLES2FunctionPointer
>(glUniform2iv
),
2127 reinterpret_cast<GLES2FunctionPointer
>(glUniform2ui
),
2131 reinterpret_cast<GLES2FunctionPointer
>(glUniform2uiv
),
2135 reinterpret_cast<GLES2FunctionPointer
>(glUniform3f
),
2139 reinterpret_cast<GLES2FunctionPointer
>(glUniform3fv
),
2143 reinterpret_cast<GLES2FunctionPointer
>(glUniform3i
),
2147 reinterpret_cast<GLES2FunctionPointer
>(glUniform3iv
),
2151 reinterpret_cast<GLES2FunctionPointer
>(glUniform3ui
),
2155 reinterpret_cast<GLES2FunctionPointer
>(glUniform3uiv
),
2159 reinterpret_cast<GLES2FunctionPointer
>(glUniform4f
),
2163 reinterpret_cast<GLES2FunctionPointer
>(glUniform4fv
),
2167 reinterpret_cast<GLES2FunctionPointer
>(glUniform4i
),
2171 reinterpret_cast<GLES2FunctionPointer
>(glUniform4iv
),
2175 reinterpret_cast<GLES2FunctionPointer
>(glUniform4ui
),
2179 reinterpret_cast<GLES2FunctionPointer
>(glUniform4uiv
),
2182 "glUniformBlockBinding",
2183 reinterpret_cast<GLES2FunctionPointer
>(glUniformBlockBinding
),
2186 "glUniformMatrix2fv",
2187 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix2fv
),
2190 "glUniformMatrix2x3fv",
2191 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix2x3fv
),
2194 "glUniformMatrix2x4fv",
2195 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix2x4fv
),
2198 "glUniformMatrix3fv",
2199 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix3fv
),
2202 "glUniformMatrix3x2fv",
2203 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix3x2fv
),
2206 "glUniformMatrix3x4fv",
2207 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix3x4fv
),
2210 "glUniformMatrix4fv",
2211 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix4fv
),
2214 "glUniformMatrix4x2fv",
2215 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix4x2fv
),
2218 "glUniformMatrix4x3fv",
2219 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix4x3fv
),
2223 reinterpret_cast<GLES2FunctionPointer
>(glUseProgram
),
2226 "glValidateProgram",
2227 reinterpret_cast<GLES2FunctionPointer
>(glValidateProgram
),
2231 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib1f
),
2234 "glVertexAttrib1fv",
2235 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib1fv
),
2239 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib2f
),
2242 "glVertexAttrib2fv",
2243 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib2fv
),
2247 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib3f
),
2250 "glVertexAttrib3fv",
2251 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib3fv
),
2255 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib4f
),
2258 "glVertexAttrib4fv",
2259 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib4fv
),
2262 "glVertexAttribI4i",
2263 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribI4i
),
2266 "glVertexAttribI4iv",
2267 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribI4iv
),
2270 "glVertexAttribI4ui",
2271 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribI4ui
),
2274 "glVertexAttribI4uiv",
2275 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribI4uiv
),
2278 "glVertexAttribIPointer",
2279 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribIPointer
),
2282 "glVertexAttribPointer",
2283 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribPointer
),
2287 reinterpret_cast<GLES2FunctionPointer
>(glViewport
),
2291 reinterpret_cast<GLES2FunctionPointer
>(glWaitSync
),
2294 "glBlitFramebufferCHROMIUM",
2295 reinterpret_cast<GLES2FunctionPointer
>(glBlitFramebufferCHROMIUM
),
2298 "glRenderbufferStorageMultisampleCHROMIUM",
2299 reinterpret_cast<GLES2FunctionPointer
>(
2300 glRenderbufferStorageMultisampleCHROMIUM
),
2303 "glRenderbufferStorageMultisampleEXT",
2304 reinterpret_cast<GLES2FunctionPointer
>(
2305 glRenderbufferStorageMultisampleEXT
),
2308 "glFramebufferTexture2DMultisampleEXT",
2309 reinterpret_cast<GLES2FunctionPointer
>(
2310 glFramebufferTexture2DMultisampleEXT
),
2313 "glTexStorage2DEXT",
2314 reinterpret_cast<GLES2FunctionPointer
>(glTexStorage2DEXT
),
2318 reinterpret_cast<GLES2FunctionPointer
>(glGenQueriesEXT
),
2321 "glDeleteQueriesEXT",
2322 reinterpret_cast<GLES2FunctionPointer
>(glDeleteQueriesEXT
),
2326 reinterpret_cast<GLES2FunctionPointer
>(glIsQueryEXT
),
2330 reinterpret_cast<GLES2FunctionPointer
>(glBeginQueryEXT
),
2333 "glBeginTransformFeedback",
2334 reinterpret_cast<GLES2FunctionPointer
>(glBeginTransformFeedback
),
2338 reinterpret_cast<GLES2FunctionPointer
>(glEndQueryEXT
),
2341 "glEndTransformFeedback",
2342 reinterpret_cast<GLES2FunctionPointer
>(glEndTransformFeedback
),
2346 reinterpret_cast<GLES2FunctionPointer
>(glGetQueryivEXT
),
2349 "glGetQueryObjectuivEXT",
2350 reinterpret_cast<GLES2FunctionPointer
>(glGetQueryObjectuivEXT
),
2353 "glInsertEventMarkerEXT",
2354 reinterpret_cast<GLES2FunctionPointer
>(glInsertEventMarkerEXT
),
2357 "glPushGroupMarkerEXT",
2358 reinterpret_cast<GLES2FunctionPointer
>(glPushGroupMarkerEXT
),
2361 "glPopGroupMarkerEXT",
2362 reinterpret_cast<GLES2FunctionPointer
>(glPopGroupMarkerEXT
),
2365 "glGenVertexArraysOES",
2366 reinterpret_cast<GLES2FunctionPointer
>(glGenVertexArraysOES
),
2369 "glDeleteVertexArraysOES",
2370 reinterpret_cast<GLES2FunctionPointer
>(glDeleteVertexArraysOES
),
2373 "glIsVertexArrayOES",
2374 reinterpret_cast<GLES2FunctionPointer
>(glIsVertexArrayOES
),
2377 "glBindVertexArrayOES",
2378 reinterpret_cast<GLES2FunctionPointer
>(glBindVertexArrayOES
),
2382 reinterpret_cast<GLES2FunctionPointer
>(glSwapBuffers
),
2385 "glGetMaxValueInBufferCHROMIUM",
2386 reinterpret_cast<GLES2FunctionPointer
>(glGetMaxValueInBufferCHROMIUM
),
2389 "glEnableFeatureCHROMIUM",
2390 reinterpret_cast<GLES2FunctionPointer
>(glEnableFeatureCHROMIUM
),
2393 "glMapBufferCHROMIUM",
2394 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferCHROMIUM
),
2397 "glUnmapBufferCHROMIUM",
2398 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBufferCHROMIUM
),
2401 "glMapBufferSubDataCHROMIUM",
2402 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferSubDataCHROMIUM
),
2405 "glUnmapBufferSubDataCHROMIUM",
2406 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBufferSubDataCHROMIUM
),
2410 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferRange
),
2414 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBuffer
),
2417 "glMapTexSubImage2DCHROMIUM",
2418 reinterpret_cast<GLES2FunctionPointer
>(glMapTexSubImage2DCHROMIUM
),
2421 "glUnmapTexSubImage2DCHROMIUM",
2422 reinterpret_cast<GLES2FunctionPointer
>(glUnmapTexSubImage2DCHROMIUM
),
2426 reinterpret_cast<GLES2FunctionPointer
>(glResizeCHROMIUM
),
2429 "glGetRequestableExtensionsCHROMIUM",
2430 reinterpret_cast<GLES2FunctionPointer
>(glGetRequestableExtensionsCHROMIUM
),
2433 "glRequestExtensionCHROMIUM",
2434 reinterpret_cast<GLES2FunctionPointer
>(glRequestExtensionCHROMIUM
),
2437 "glRateLimitOffscreenContextCHROMIUM",
2438 reinterpret_cast<GLES2FunctionPointer
>(
2439 glRateLimitOffscreenContextCHROMIUM
),
2442 "glGetProgramInfoCHROMIUM",
2443 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramInfoCHROMIUM
),
2446 "glGetUniformBlocksCHROMIUM",
2447 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformBlocksCHROMIUM
),
2450 "glGetTransformFeedbackVaryingsCHROMIUM",
2451 reinterpret_cast<GLES2FunctionPointer
>(
2452 glGetTransformFeedbackVaryingsCHROMIUM
),
2455 "glGetUniformsES3CHROMIUM",
2456 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformsES3CHROMIUM
),
2459 "glCreateStreamTextureCHROMIUM",
2460 reinterpret_cast<GLES2FunctionPointer
>(glCreateStreamTextureCHROMIUM
),
2463 "glCreateImageCHROMIUM",
2464 reinterpret_cast<GLES2FunctionPointer
>(glCreateImageCHROMIUM
),
2467 "glDestroyImageCHROMIUM",
2468 reinterpret_cast<GLES2FunctionPointer
>(glDestroyImageCHROMIUM
),
2471 "glCreateGpuMemoryBufferImageCHROMIUM",
2472 reinterpret_cast<GLES2FunctionPointer
>(
2473 glCreateGpuMemoryBufferImageCHROMIUM
),
2476 "glGetTranslatedShaderSourceANGLE",
2477 reinterpret_cast<GLES2FunctionPointer
>(glGetTranslatedShaderSourceANGLE
),
2480 "glPostSubBufferCHROMIUM",
2481 reinterpret_cast<GLES2FunctionPointer
>(glPostSubBufferCHROMIUM
),
2484 "glTexImageIOSurface2DCHROMIUM",
2485 reinterpret_cast<GLES2FunctionPointer
>(glTexImageIOSurface2DCHROMIUM
),
2488 "glCopyTextureCHROMIUM",
2489 reinterpret_cast<GLES2FunctionPointer
>(glCopyTextureCHROMIUM
),
2492 "glCopySubTextureCHROMIUM",
2493 reinterpret_cast<GLES2FunctionPointer
>(glCopySubTextureCHROMIUM
),
2496 "glCompressedCopyTextureCHROMIUM",
2497 reinterpret_cast<GLES2FunctionPointer
>(glCompressedCopyTextureCHROMIUM
),
2500 "glDrawArraysInstancedANGLE",
2501 reinterpret_cast<GLES2FunctionPointer
>(glDrawArraysInstancedANGLE
),
2504 "glDrawElementsInstancedANGLE",
2505 reinterpret_cast<GLES2FunctionPointer
>(glDrawElementsInstancedANGLE
),
2508 "glVertexAttribDivisorANGLE",
2509 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribDivisorANGLE
),
2512 "glGenMailboxCHROMIUM",
2513 reinterpret_cast<GLES2FunctionPointer
>(glGenMailboxCHROMIUM
),
2516 "glProduceTextureCHROMIUM",
2517 reinterpret_cast<GLES2FunctionPointer
>(glProduceTextureCHROMIUM
),
2520 "glProduceTextureDirectCHROMIUM",
2521 reinterpret_cast<GLES2FunctionPointer
>(glProduceTextureDirectCHROMIUM
),
2524 "glConsumeTextureCHROMIUM",
2525 reinterpret_cast<GLES2FunctionPointer
>(glConsumeTextureCHROMIUM
),
2528 "glCreateAndConsumeTextureCHROMIUM",
2529 reinterpret_cast<GLES2FunctionPointer
>(glCreateAndConsumeTextureCHROMIUM
),
2532 "glBindUniformLocationCHROMIUM",
2533 reinterpret_cast<GLES2FunctionPointer
>(glBindUniformLocationCHROMIUM
),
2536 "glGenValuebuffersCHROMIUM",
2537 reinterpret_cast<GLES2FunctionPointer
>(glGenValuebuffersCHROMIUM
),
2540 "glDeleteValuebuffersCHROMIUM",
2541 reinterpret_cast<GLES2FunctionPointer
>(glDeleteValuebuffersCHROMIUM
),
2544 "glIsValuebufferCHROMIUM",
2545 reinterpret_cast<GLES2FunctionPointer
>(glIsValuebufferCHROMIUM
),
2548 "glBindValuebufferCHROMIUM",
2549 reinterpret_cast<GLES2FunctionPointer
>(glBindValuebufferCHROMIUM
),
2552 "glSubscribeValueCHROMIUM",
2553 reinterpret_cast<GLES2FunctionPointer
>(glSubscribeValueCHROMIUM
),
2556 "glPopulateSubscribedValuesCHROMIUM",
2557 reinterpret_cast<GLES2FunctionPointer
>(glPopulateSubscribedValuesCHROMIUM
),
2560 "glUniformValuebufferCHROMIUM",
2561 reinterpret_cast<GLES2FunctionPointer
>(glUniformValuebufferCHROMIUM
),
2564 "glBindTexImage2DCHROMIUM",
2565 reinterpret_cast<GLES2FunctionPointer
>(glBindTexImage2DCHROMIUM
),
2568 "glReleaseTexImage2DCHROMIUM",
2569 reinterpret_cast<GLES2FunctionPointer
>(glReleaseTexImage2DCHROMIUM
),
2572 "glTraceBeginCHROMIUM",
2573 reinterpret_cast<GLES2FunctionPointer
>(glTraceBeginCHROMIUM
),
2576 "glTraceEndCHROMIUM",
2577 reinterpret_cast<GLES2FunctionPointer
>(glTraceEndCHROMIUM
),
2580 "glAsyncTexSubImage2DCHROMIUM",
2581 reinterpret_cast<GLES2FunctionPointer
>(glAsyncTexSubImage2DCHROMIUM
),
2584 "glAsyncTexImage2DCHROMIUM",
2585 reinterpret_cast<GLES2FunctionPointer
>(glAsyncTexImage2DCHROMIUM
),
2588 "glWaitAsyncTexImage2DCHROMIUM",
2589 reinterpret_cast<GLES2FunctionPointer
>(glWaitAsyncTexImage2DCHROMIUM
),
2592 "glWaitAllAsyncTexImage2DCHROMIUM",
2593 reinterpret_cast<GLES2FunctionPointer
>(glWaitAllAsyncTexImage2DCHROMIUM
),
2596 "glDiscardFramebufferEXT",
2597 reinterpret_cast<GLES2FunctionPointer
>(glDiscardFramebufferEXT
),
2600 "glLoseContextCHROMIUM",
2601 reinterpret_cast<GLES2FunctionPointer
>(glLoseContextCHROMIUM
),
2604 "glInsertSyncPointCHROMIUM",
2605 reinterpret_cast<GLES2FunctionPointer
>(glInsertSyncPointCHROMIUM
),
2608 "glWaitSyncPointCHROMIUM",
2609 reinterpret_cast<GLES2FunctionPointer
>(glWaitSyncPointCHROMIUM
),
2613 reinterpret_cast<GLES2FunctionPointer
>(glDrawBuffersEXT
),
2616 "glDiscardBackbufferCHROMIUM",
2617 reinterpret_cast<GLES2FunctionPointer
>(glDiscardBackbufferCHROMIUM
),
2620 "glScheduleOverlayPlaneCHROMIUM",
2621 reinterpret_cast<GLES2FunctionPointer
>(glScheduleOverlayPlaneCHROMIUM
),
2625 reinterpret_cast<GLES2FunctionPointer
>(glSwapInterval
),
2628 "glMatrixLoadfCHROMIUM",
2629 reinterpret_cast<GLES2FunctionPointer
>(glMatrixLoadfCHROMIUM
),
2632 "glMatrixLoadIdentityCHROMIUM",
2633 reinterpret_cast<GLES2FunctionPointer
>(glMatrixLoadIdentityCHROMIUM
),
2636 "glGetGraphicsResetStatusKHR",
2637 reinterpret_cast<GLES2FunctionPointer
>(glGetGraphicsResetStatusKHR
),
2640 "glBlendBarrierKHR",
2641 reinterpret_cast<GLES2FunctionPointer
>(glBlendBarrierKHR
),
2649 } // namespace gles2
2650 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_