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 GLES2CopyBufferSubData(GLenum readtarget
,
160 GLintptr writeoffset
,
162 gles2::GetGLContext()->CopyBufferSubData(readtarget
, writetarget
, readoffset
,
165 void GLES2CopyTexImage2D(GLenum target
,
167 GLenum internalformat
,
173 gles2::GetGLContext()->CopyTexImage2D(target
, level
, internalformat
, x
, y
,
174 width
, height
, border
);
176 void GLES2CopyTexSubImage2D(GLenum target
,
184 gles2::GetGLContext()->CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
,
187 void GLES2CopyTexSubImage3D(GLenum target
,
196 gles2::GetGLContext()->CopyTexSubImage3D(target
, level
, xoffset
, yoffset
,
197 zoffset
, x
, y
, width
, height
);
199 GLuint
GLES2CreateProgram() {
200 return gles2::GetGLContext()->CreateProgram();
202 GLuint
GLES2CreateShader(GLenum type
) {
203 return gles2::GetGLContext()->CreateShader(type
);
205 void GLES2CullFace(GLenum mode
) {
206 gles2::GetGLContext()->CullFace(mode
);
208 void GLES2DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
209 gles2::GetGLContext()->DeleteBuffers(n
, buffers
);
211 void GLES2DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) {
212 gles2::GetGLContext()->DeleteFramebuffers(n
, framebuffers
);
214 void GLES2DeleteProgram(GLuint program
) {
215 gles2::GetGLContext()->DeleteProgram(program
);
217 void GLES2DeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) {
218 gles2::GetGLContext()->DeleteRenderbuffers(n
, renderbuffers
);
220 void GLES2DeleteSamplers(GLsizei n
, const GLuint
* samplers
) {
221 gles2::GetGLContext()->DeleteSamplers(n
, samplers
);
223 void GLES2DeleteSync(GLsync sync
) {
224 gles2::GetGLContext()->DeleteSync(sync
);
226 void GLES2DeleteShader(GLuint shader
) {
227 gles2::GetGLContext()->DeleteShader(shader
);
229 void GLES2DeleteTextures(GLsizei n
, const GLuint
* textures
) {
230 gles2::GetGLContext()->DeleteTextures(n
, textures
);
232 void GLES2DeleteTransformFeedbacks(GLsizei n
, const GLuint
* ids
) {
233 gles2::GetGLContext()->DeleteTransformFeedbacks(n
, ids
);
235 void GLES2DepthFunc(GLenum func
) {
236 gles2::GetGLContext()->DepthFunc(func
);
238 void GLES2DepthMask(GLboolean flag
) {
239 gles2::GetGLContext()->DepthMask(flag
);
241 void GLES2DepthRangef(GLclampf zNear
, GLclampf zFar
) {
242 gles2::GetGLContext()->DepthRangef(zNear
, zFar
);
244 void GLES2DetachShader(GLuint program
, GLuint shader
) {
245 gles2::GetGLContext()->DetachShader(program
, shader
);
247 void GLES2Disable(GLenum cap
) {
248 gles2::GetGLContext()->Disable(cap
);
250 void GLES2DisableVertexAttribArray(GLuint index
) {
251 gles2::GetGLContext()->DisableVertexAttribArray(index
);
253 void GLES2DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
254 gles2::GetGLContext()->DrawArrays(mode
, first
, count
);
256 void GLES2DrawElements(GLenum mode
,
259 const void* indices
) {
260 gles2::GetGLContext()->DrawElements(mode
, count
, type
, indices
);
262 void GLES2Enable(GLenum cap
) {
263 gles2::GetGLContext()->Enable(cap
);
265 void GLES2EnableVertexAttribArray(GLuint index
) {
266 gles2::GetGLContext()->EnableVertexAttribArray(index
);
268 GLsync
GLES2FenceSync(GLenum condition
, GLbitfield flags
) {
269 return gles2::GetGLContext()->FenceSync(condition
, flags
);
272 gles2::GetGLContext()->Finish();
275 gles2::GetGLContext()->Flush();
277 void GLES2FramebufferRenderbuffer(GLenum target
,
279 GLenum renderbuffertarget
,
280 GLuint renderbuffer
) {
281 gles2::GetGLContext()->FramebufferRenderbuffer(
282 target
, attachment
, renderbuffertarget
, renderbuffer
);
284 void GLES2FramebufferTexture2D(GLenum target
,
289 gles2::GetGLContext()->FramebufferTexture2D(target
, attachment
, textarget
,
292 void GLES2FramebufferTextureLayer(GLenum target
,
297 gles2::GetGLContext()->FramebufferTextureLayer(target
, attachment
, texture
,
300 void GLES2FrontFace(GLenum mode
) {
301 gles2::GetGLContext()->FrontFace(mode
);
303 void GLES2GenBuffers(GLsizei n
, GLuint
* buffers
) {
304 gles2::GetGLContext()->GenBuffers(n
, buffers
);
306 void GLES2GenerateMipmap(GLenum target
) {
307 gles2::GetGLContext()->GenerateMipmap(target
);
309 void GLES2GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
310 gles2::GetGLContext()->GenFramebuffers(n
, framebuffers
);
312 void GLES2GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
313 gles2::GetGLContext()->GenRenderbuffers(n
, renderbuffers
);
315 void GLES2GenSamplers(GLsizei n
, GLuint
* samplers
) {
316 gles2::GetGLContext()->GenSamplers(n
, samplers
);
318 void GLES2GenTextures(GLsizei n
, GLuint
* textures
) {
319 gles2::GetGLContext()->GenTextures(n
, textures
);
321 void GLES2GenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
322 gles2::GetGLContext()->GenTransformFeedbacks(n
, ids
);
324 void GLES2GetActiveAttrib(GLuint program
,
331 gles2::GetGLContext()->GetActiveAttrib(program
, index
, bufsize
, length
, size
,
334 void GLES2GetActiveUniform(GLuint program
,
341 gles2::GetGLContext()->GetActiveUniform(program
, index
, bufsize
, length
, size
,
344 void GLES2GetActiveUniformBlockiv(GLuint program
,
348 gles2::GetGLContext()->GetActiveUniformBlockiv(program
, index
, pname
, params
);
350 void GLES2GetActiveUniformBlockName(GLuint program
,
355 gles2::GetGLContext()->GetActiveUniformBlockName(program
, index
, bufsize
,
358 void GLES2GetActiveUniformsiv(GLuint program
,
360 const GLuint
* indices
,
363 gles2::GetGLContext()->GetActiveUniformsiv(program
, count
, indices
, pname
,
366 void GLES2GetAttachedShaders(GLuint program
,
370 gles2::GetGLContext()->GetAttachedShaders(program
, maxcount
, count
, shaders
);
372 GLint
GLES2GetAttribLocation(GLuint program
, const char* name
) {
373 return gles2::GetGLContext()->GetAttribLocation(program
, name
);
375 void GLES2GetBooleanv(GLenum pname
, GLboolean
* params
) {
376 gles2::GetGLContext()->GetBooleanv(pname
, params
);
378 void GLES2GetBufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
379 gles2::GetGLContext()->GetBufferParameteriv(target
, pname
, params
);
381 GLenum
GLES2GetError() {
382 return gles2::GetGLContext()->GetError();
384 void GLES2GetFloatv(GLenum pname
, GLfloat
* params
) {
385 gles2::GetGLContext()->GetFloatv(pname
, params
);
387 GLint
GLES2GetFragDataLocation(GLuint program
, const char* name
) {
388 return gles2::GetGLContext()->GetFragDataLocation(program
, name
);
390 void GLES2GetFramebufferAttachmentParameteriv(GLenum target
,
394 gles2::GetGLContext()->GetFramebufferAttachmentParameteriv(target
, attachment
,
397 void GLES2GetIntegerv(GLenum pname
, GLint
* params
) {
398 gles2::GetGLContext()->GetIntegerv(pname
, params
);
400 void GLES2GetInternalformativ(GLenum target
,
405 gles2::GetGLContext()->GetInternalformativ(target
, format
, pname
, bufSize
,
408 void GLES2GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
409 gles2::GetGLContext()->GetProgramiv(program
, pname
, params
);
411 void GLES2GetProgramInfoLog(GLuint program
,
415 gles2::GetGLContext()->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
417 void GLES2GetRenderbufferParameteriv(GLenum target
,
420 gles2::GetGLContext()->GetRenderbufferParameteriv(target
, pname
, params
);
422 void GLES2GetSamplerParameterfv(GLuint sampler
, GLenum pname
, GLfloat
* params
) {
423 gles2::GetGLContext()->GetSamplerParameterfv(sampler
, pname
, params
);
425 void GLES2GetSamplerParameteriv(GLuint sampler
, GLenum pname
, GLint
* params
) {
426 gles2::GetGLContext()->GetSamplerParameteriv(sampler
, pname
, params
);
428 void GLES2GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
429 gles2::GetGLContext()->GetShaderiv(shader
, pname
, params
);
431 void GLES2GetShaderInfoLog(GLuint shader
,
435 gles2::GetGLContext()->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
437 void GLES2GetShaderPrecisionFormat(GLenum shadertype
,
438 GLenum precisiontype
,
441 gles2::GetGLContext()->GetShaderPrecisionFormat(shadertype
, precisiontype
,
444 void GLES2GetShaderSource(GLuint shader
,
448 gles2::GetGLContext()->GetShaderSource(shader
, bufsize
, length
, source
);
450 const GLubyte
* GLES2GetString(GLenum name
) {
451 return gles2::GetGLContext()->GetString(name
);
453 void GLES2GetSynciv(GLsync sync
,
458 gles2::GetGLContext()->GetSynciv(sync
, pname
, bufsize
, length
, values
);
460 void GLES2GetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
) {
461 gles2::GetGLContext()->GetTexParameterfv(target
, pname
, params
);
463 void GLES2GetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
464 gles2::GetGLContext()->GetTexParameteriv(target
, pname
, params
);
466 void GLES2GetTransformFeedbackVarying(GLuint program
,
473 gles2::GetGLContext()->GetTransformFeedbackVarying(program
, index
, bufsize
,
474 length
, size
, type
, name
);
476 GLuint
GLES2GetUniformBlockIndex(GLuint program
, const char* name
) {
477 return gles2::GetGLContext()->GetUniformBlockIndex(program
, name
);
479 void GLES2GetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) {
480 gles2::GetGLContext()->GetUniformfv(program
, location
, params
);
482 void GLES2GetUniformiv(GLuint program
, GLint location
, GLint
* params
) {
483 gles2::GetGLContext()->GetUniformiv(program
, location
, params
);
485 void GLES2GetUniformIndices(GLuint program
,
487 const char* const* names
,
489 gles2::GetGLContext()->GetUniformIndices(program
, count
, names
, indices
);
491 GLint
GLES2GetUniformLocation(GLuint program
, const char* name
) {
492 return gles2::GetGLContext()->GetUniformLocation(program
, name
);
494 void GLES2GetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
* params
) {
495 gles2::GetGLContext()->GetVertexAttribfv(index
, pname
, params
);
497 void GLES2GetVertexAttribiv(GLuint index
, GLenum pname
, GLint
* params
) {
498 gles2::GetGLContext()->GetVertexAttribiv(index
, pname
, params
);
500 void GLES2GetVertexAttribPointerv(GLuint index
, GLenum pname
, void** pointer
) {
501 gles2::GetGLContext()->GetVertexAttribPointerv(index
, pname
, pointer
);
503 void GLES2Hint(GLenum target
, GLenum mode
) {
504 gles2::GetGLContext()->Hint(target
, mode
);
506 void GLES2InvalidateFramebuffer(GLenum target
,
508 const GLenum
* attachments
) {
509 gles2::GetGLContext()->InvalidateFramebuffer(target
, count
, attachments
);
511 void GLES2InvalidateSubFramebuffer(GLenum target
,
513 const GLenum
* attachments
,
518 gles2::GetGLContext()->InvalidateSubFramebuffer(target
, count
, attachments
, x
,
521 GLboolean
GLES2IsBuffer(GLuint buffer
) {
522 return gles2::GetGLContext()->IsBuffer(buffer
);
524 GLboolean
GLES2IsEnabled(GLenum cap
) {
525 return gles2::GetGLContext()->IsEnabled(cap
);
527 GLboolean
GLES2IsFramebuffer(GLuint framebuffer
) {
528 return gles2::GetGLContext()->IsFramebuffer(framebuffer
);
530 GLboolean
GLES2IsProgram(GLuint program
) {
531 return gles2::GetGLContext()->IsProgram(program
);
533 GLboolean
GLES2IsRenderbuffer(GLuint renderbuffer
) {
534 return gles2::GetGLContext()->IsRenderbuffer(renderbuffer
);
536 GLboolean
GLES2IsSampler(GLuint sampler
) {
537 return gles2::GetGLContext()->IsSampler(sampler
);
539 GLboolean
GLES2IsShader(GLuint shader
) {
540 return gles2::GetGLContext()->IsShader(shader
);
542 GLboolean
GLES2IsSync(GLsync sync
) {
543 return gles2::GetGLContext()->IsSync(sync
);
545 GLboolean
GLES2IsTexture(GLuint texture
) {
546 return gles2::GetGLContext()->IsTexture(texture
);
548 GLboolean
GLES2IsTransformFeedback(GLuint transformfeedback
) {
549 return gles2::GetGLContext()->IsTransformFeedback(transformfeedback
);
551 void GLES2LineWidth(GLfloat width
) {
552 gles2::GetGLContext()->LineWidth(width
);
554 void GLES2LinkProgram(GLuint program
) {
555 gles2::GetGLContext()->LinkProgram(program
);
557 void GLES2PauseTransformFeedback() {
558 gles2::GetGLContext()->PauseTransformFeedback();
560 void GLES2PixelStorei(GLenum pname
, GLint param
) {
561 gles2::GetGLContext()->PixelStorei(pname
, param
);
563 void GLES2PolygonOffset(GLfloat factor
, GLfloat units
) {
564 gles2::GetGLContext()->PolygonOffset(factor
, units
);
566 void GLES2ReadBuffer(GLenum src
) {
567 gles2::GetGLContext()->ReadBuffer(src
);
569 void GLES2ReadPixels(GLint x
,
576 gles2::GetGLContext()->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
578 void GLES2ReleaseShaderCompiler() {
579 gles2::GetGLContext()->ReleaseShaderCompiler();
581 void GLES2RenderbufferStorage(GLenum target
,
582 GLenum internalformat
,
585 gles2::GetGLContext()->RenderbufferStorage(target
, internalformat
, width
,
588 void GLES2ResumeTransformFeedback() {
589 gles2::GetGLContext()->ResumeTransformFeedback();
591 void GLES2SampleCoverage(GLclampf value
, GLboolean invert
) {
592 gles2::GetGLContext()->SampleCoverage(value
, invert
);
594 void GLES2SamplerParameterf(GLuint sampler
, GLenum pname
, GLfloat param
) {
595 gles2::GetGLContext()->SamplerParameterf(sampler
, pname
, param
);
597 void GLES2SamplerParameterfv(GLuint sampler
,
599 const GLfloat
* params
) {
600 gles2::GetGLContext()->SamplerParameterfv(sampler
, pname
, params
);
602 void GLES2SamplerParameteri(GLuint sampler
, GLenum pname
, GLint param
) {
603 gles2::GetGLContext()->SamplerParameteri(sampler
, pname
, param
);
605 void GLES2SamplerParameteriv(GLuint sampler
,
607 const GLint
* params
) {
608 gles2::GetGLContext()->SamplerParameteriv(sampler
, pname
, params
);
610 void GLES2Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
611 gles2::GetGLContext()->Scissor(x
, y
, width
, height
);
613 void GLES2ShaderBinary(GLsizei n
,
614 const GLuint
* shaders
,
618 gles2::GetGLContext()->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
620 void GLES2ShaderSource(GLuint shader
,
622 const GLchar
* const* str
,
623 const GLint
* length
) {
624 gles2::GetGLContext()->ShaderSource(shader
, count
, str
, length
);
626 void GLES2ShallowFinishCHROMIUM() {
627 gles2::GetGLContext()->ShallowFinishCHROMIUM();
629 void GLES2ShallowFlushCHROMIUM() {
630 gles2::GetGLContext()->ShallowFlushCHROMIUM();
632 void GLES2OrderingBarrierCHROMIUM() {
633 gles2::GetGLContext()->OrderingBarrierCHROMIUM();
635 void GLES2StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
636 gles2::GetGLContext()->StencilFunc(func
, ref
, mask
);
638 void GLES2StencilFuncSeparate(GLenum face
,
642 gles2::GetGLContext()->StencilFuncSeparate(face
, func
, ref
, mask
);
644 void GLES2StencilMask(GLuint mask
) {
645 gles2::GetGLContext()->StencilMask(mask
);
647 void GLES2StencilMaskSeparate(GLenum face
, GLuint mask
) {
648 gles2::GetGLContext()->StencilMaskSeparate(face
, mask
);
650 void GLES2StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
651 gles2::GetGLContext()->StencilOp(fail
, zfail
, zpass
);
653 void GLES2StencilOpSeparate(GLenum face
,
657 gles2::GetGLContext()->StencilOpSeparate(face
, fail
, zfail
, zpass
);
659 void GLES2TexImage2D(GLenum target
,
661 GLint internalformat
,
667 const void* pixels
) {
668 gles2::GetGLContext()->TexImage2D(target
, level
, internalformat
, width
,
669 height
, border
, format
, type
, pixels
);
671 void GLES2TexImage3D(GLenum target
,
673 GLint internalformat
,
680 const void* pixels
) {
681 gles2::GetGLContext()->TexImage3D(target
, level
, internalformat
, width
,
682 height
, depth
, border
, format
, type
,
685 void GLES2TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
686 gles2::GetGLContext()->TexParameterf(target
, pname
, param
);
688 void GLES2TexParameterfv(GLenum target
, GLenum pname
, const GLfloat
* params
) {
689 gles2::GetGLContext()->TexParameterfv(target
, pname
, params
);
691 void GLES2TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
692 gles2::GetGLContext()->TexParameteri(target
, pname
, param
);
694 void GLES2TexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
) {
695 gles2::GetGLContext()->TexParameteriv(target
, pname
, params
);
697 void GLES2TexStorage3D(GLenum target
,
699 GLenum internalFormat
,
703 gles2::GetGLContext()->TexStorage3D(target
, levels
, internalFormat
, width
,
706 void GLES2TexSubImage2D(GLenum target
,
714 const void* pixels
) {
715 gles2::GetGLContext()->TexSubImage2D(target
, level
, xoffset
, yoffset
, width
,
716 height
, format
, type
, pixels
);
718 void GLES2TexSubImage3D(GLenum target
,
728 const void* pixels
) {
729 gles2::GetGLContext()->TexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
,
730 width
, height
, depth
, format
, type
,
733 void GLES2TransformFeedbackVaryings(GLuint program
,
735 const char* const* varyings
,
737 gles2::GetGLContext()->TransformFeedbackVaryings(program
, count
, varyings
,
740 void GLES2Uniform1f(GLint location
, GLfloat x
) {
741 gles2::GetGLContext()->Uniform1f(location
, x
);
743 void GLES2Uniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
744 gles2::GetGLContext()->Uniform1fv(location
, count
, v
);
746 void GLES2Uniform1i(GLint location
, GLint x
) {
747 gles2::GetGLContext()->Uniform1i(location
, x
);
749 void GLES2Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
750 gles2::GetGLContext()->Uniform1iv(location
, count
, v
);
752 void GLES2Uniform1ui(GLint location
, GLuint x
) {
753 gles2::GetGLContext()->Uniform1ui(location
, x
);
755 void GLES2Uniform1uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
756 gles2::GetGLContext()->Uniform1uiv(location
, count
, v
);
758 void GLES2Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
759 gles2::GetGLContext()->Uniform2f(location
, x
, y
);
761 void GLES2Uniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
762 gles2::GetGLContext()->Uniform2fv(location
, count
, v
);
764 void GLES2Uniform2i(GLint location
, GLint x
, GLint y
) {
765 gles2::GetGLContext()->Uniform2i(location
, x
, y
);
767 void GLES2Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
768 gles2::GetGLContext()->Uniform2iv(location
, count
, v
);
770 void GLES2Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
771 gles2::GetGLContext()->Uniform2ui(location
, x
, y
);
773 void GLES2Uniform2uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
774 gles2::GetGLContext()->Uniform2uiv(location
, count
, v
);
776 void GLES2Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
777 gles2::GetGLContext()->Uniform3f(location
, x
, y
, z
);
779 void GLES2Uniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
780 gles2::GetGLContext()->Uniform3fv(location
, count
, v
);
782 void GLES2Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
783 gles2::GetGLContext()->Uniform3i(location
, x
, y
, z
);
785 void GLES2Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
786 gles2::GetGLContext()->Uniform3iv(location
, count
, v
);
788 void GLES2Uniform3ui(GLint location
, GLuint x
, GLuint y
, GLuint z
) {
789 gles2::GetGLContext()->Uniform3ui(location
, x
, y
, z
);
791 void GLES2Uniform3uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
792 gles2::GetGLContext()->Uniform3uiv(location
, count
, v
);
794 void GLES2Uniform4f(GLint location
,
799 gles2::GetGLContext()->Uniform4f(location
, x
, y
, z
, w
);
801 void GLES2Uniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
802 gles2::GetGLContext()->Uniform4fv(location
, count
, v
);
804 void GLES2Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
805 gles2::GetGLContext()->Uniform4i(location
, x
, y
, z
, w
);
807 void GLES2Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
808 gles2::GetGLContext()->Uniform4iv(location
, count
, v
);
810 void GLES2Uniform4ui(GLint location
, GLuint x
, GLuint y
, GLuint z
, GLuint w
) {
811 gles2::GetGLContext()->Uniform4ui(location
, x
, y
, z
, w
);
813 void GLES2Uniform4uiv(GLint location
, GLsizei count
, const GLuint
* v
) {
814 gles2::GetGLContext()->Uniform4uiv(location
, count
, v
);
816 void GLES2UniformBlockBinding(GLuint program
, GLuint index
, GLuint binding
) {
817 gles2::GetGLContext()->UniformBlockBinding(program
, index
, binding
);
819 void GLES2UniformMatrix2fv(GLint location
,
822 const GLfloat
* value
) {
823 gles2::GetGLContext()->UniformMatrix2fv(location
, count
, transpose
, value
);
825 void GLES2UniformMatrix2x3fv(GLint location
,
828 const GLfloat
* value
) {
829 gles2::GetGLContext()->UniformMatrix2x3fv(location
, count
, transpose
, value
);
831 void GLES2UniformMatrix2x4fv(GLint location
,
834 const GLfloat
* value
) {
835 gles2::GetGLContext()->UniformMatrix2x4fv(location
, count
, transpose
, value
);
837 void GLES2UniformMatrix3fv(GLint location
,
840 const GLfloat
* value
) {
841 gles2::GetGLContext()->UniformMatrix3fv(location
, count
, transpose
, value
);
843 void GLES2UniformMatrix3x2fv(GLint location
,
846 const GLfloat
* value
) {
847 gles2::GetGLContext()->UniformMatrix3x2fv(location
, count
, transpose
, value
);
849 void GLES2UniformMatrix3x4fv(GLint location
,
852 const GLfloat
* value
) {
853 gles2::GetGLContext()->UniformMatrix3x4fv(location
, count
, transpose
, value
);
855 void GLES2UniformMatrix4fv(GLint location
,
858 const GLfloat
* value
) {
859 gles2::GetGLContext()->UniformMatrix4fv(location
, count
, transpose
, value
);
861 void GLES2UniformMatrix4x2fv(GLint location
,
864 const GLfloat
* value
) {
865 gles2::GetGLContext()->UniformMatrix4x2fv(location
, count
, transpose
, value
);
867 void GLES2UniformMatrix4x3fv(GLint location
,
870 const GLfloat
* value
) {
871 gles2::GetGLContext()->UniformMatrix4x3fv(location
, count
, transpose
, value
);
873 void GLES2UseProgram(GLuint program
) {
874 gles2::GetGLContext()->UseProgram(program
);
876 void GLES2ValidateProgram(GLuint program
) {
877 gles2::GetGLContext()->ValidateProgram(program
);
879 void GLES2VertexAttrib1f(GLuint indx
, GLfloat x
) {
880 gles2::GetGLContext()->VertexAttrib1f(indx
, x
);
882 void GLES2VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
883 gles2::GetGLContext()->VertexAttrib1fv(indx
, values
);
885 void GLES2VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
886 gles2::GetGLContext()->VertexAttrib2f(indx
, x
, y
);
888 void GLES2VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
889 gles2::GetGLContext()->VertexAttrib2fv(indx
, values
);
891 void GLES2VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
892 gles2::GetGLContext()->VertexAttrib3f(indx
, x
, y
, z
);
894 void GLES2VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
895 gles2::GetGLContext()->VertexAttrib3fv(indx
, values
);
897 void GLES2VertexAttrib4f(GLuint indx
,
902 gles2::GetGLContext()->VertexAttrib4f(indx
, x
, y
, z
, w
);
904 void GLES2VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
905 gles2::GetGLContext()->VertexAttrib4fv(indx
, values
);
907 void GLES2VertexAttribI4i(GLuint indx
, GLint x
, GLint y
, GLint z
, GLint w
) {
908 gles2::GetGLContext()->VertexAttribI4i(indx
, x
, y
, z
, w
);
910 void GLES2VertexAttribI4iv(GLuint indx
, const GLint
* values
) {
911 gles2::GetGLContext()->VertexAttribI4iv(indx
, values
);
913 void GLES2VertexAttribI4ui(GLuint indx
,
918 gles2::GetGLContext()->VertexAttribI4ui(indx
, x
, y
, z
, w
);
920 void GLES2VertexAttribI4uiv(GLuint indx
, const GLuint
* values
) {
921 gles2::GetGLContext()->VertexAttribI4uiv(indx
, values
);
923 void GLES2VertexAttribIPointer(GLuint indx
,
928 gles2::GetGLContext()->VertexAttribIPointer(indx
, size
, type
, stride
, ptr
);
930 void GLES2VertexAttribPointer(GLuint indx
,
933 GLboolean normalized
,
936 gles2::GetGLContext()->VertexAttribPointer(indx
, size
, type
, normalized
,
939 void GLES2Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
940 gles2::GetGLContext()->Viewport(x
, y
, width
, height
);
942 void GLES2WaitSync(GLsync sync
, GLbitfield flags
, GLuint64 timeout
) {
943 gles2::GetGLContext()->WaitSync(sync
, flags
, timeout
);
945 void GLES2BlitFramebufferCHROMIUM(GLint srcX0
,
955 gles2::GetGLContext()->BlitFramebufferCHROMIUM(
956 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
958 void GLES2RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
960 GLenum internalformat
,
963 gles2::GetGLContext()->RenderbufferStorageMultisampleCHROMIUM(
964 target
, samples
, internalformat
, width
, height
);
966 void GLES2RenderbufferStorageMultisampleEXT(GLenum target
,
968 GLenum internalformat
,
971 gles2::GetGLContext()->RenderbufferStorageMultisampleEXT(
972 target
, samples
, internalformat
, width
, height
);
974 void GLES2FramebufferTexture2DMultisampleEXT(GLenum target
,
980 gles2::GetGLContext()->FramebufferTexture2DMultisampleEXT(
981 target
, attachment
, textarget
, texture
, level
, samples
);
983 void GLES2TexStorage2DEXT(GLenum target
,
985 GLenum internalFormat
,
988 gles2::GetGLContext()->TexStorage2DEXT(target
, levels
, internalFormat
, width
,
991 void GLES2GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
992 gles2::GetGLContext()->GenQueriesEXT(n
, queries
);
994 void GLES2DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
995 gles2::GetGLContext()->DeleteQueriesEXT(n
, queries
);
997 GLboolean
GLES2IsQueryEXT(GLuint id
) {
998 return gles2::GetGLContext()->IsQueryEXT(id
);
1000 void GLES2BeginQueryEXT(GLenum target
, GLuint id
) {
1001 gles2::GetGLContext()->BeginQueryEXT(target
, id
);
1003 void GLES2BeginTransformFeedback(GLenum primitivemode
) {
1004 gles2::GetGLContext()->BeginTransformFeedback(primitivemode
);
1006 void GLES2EndQueryEXT(GLenum target
) {
1007 gles2::GetGLContext()->EndQueryEXT(target
);
1009 void GLES2EndTransformFeedback() {
1010 gles2::GetGLContext()->EndTransformFeedback();
1012 void GLES2GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
1013 gles2::GetGLContext()->GetQueryivEXT(target
, pname
, params
);
1015 void GLES2GetQueryObjectuivEXT(GLuint id
, GLenum pname
, GLuint
* params
) {
1016 gles2::GetGLContext()->GetQueryObjectuivEXT(id
, pname
, params
);
1018 void GLES2InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1019 gles2::GetGLContext()->InsertEventMarkerEXT(length
, marker
);
1021 void GLES2PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1022 gles2::GetGLContext()->PushGroupMarkerEXT(length
, marker
);
1024 void GLES2PopGroupMarkerEXT() {
1025 gles2::GetGLContext()->PopGroupMarkerEXT();
1027 void GLES2GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1028 gles2::GetGLContext()->GenVertexArraysOES(n
, arrays
);
1030 void GLES2DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
1031 gles2::GetGLContext()->DeleteVertexArraysOES(n
, arrays
);
1033 GLboolean
GLES2IsVertexArrayOES(GLuint array
) {
1034 return gles2::GetGLContext()->IsVertexArrayOES(array
);
1036 void GLES2BindVertexArrayOES(GLuint array
) {
1037 gles2::GetGLContext()->BindVertexArrayOES(array
);
1039 void GLES2SwapBuffers() {
1040 gles2::GetGLContext()->SwapBuffers();
1042 GLuint
GLES2GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1046 return gles2::GetGLContext()->GetMaxValueInBufferCHROMIUM(buffer_id
, count
,
1049 GLboolean
GLES2EnableFeatureCHROMIUM(const char* feature
) {
1050 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature
);
1052 void* GLES2MapBufferCHROMIUM(GLuint target
, GLenum access
) {
1053 return gles2::GetGLContext()->MapBufferCHROMIUM(target
, access
);
1055 GLboolean
GLES2UnmapBufferCHROMIUM(GLuint target
) {
1056 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target
);
1058 void* GLES2MapBufferSubDataCHROMIUM(GLuint target
,
1062 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(target
, offset
, size
,
1065 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem
) {
1066 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem
);
1068 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target
,
1077 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM(
1078 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, access
);
1080 void GLES2UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1081 gles2::GetGLContext()->UnmapTexSubImage2DCHROMIUM(mem
);
1083 void GLES2ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) {
1084 gles2::GetGLContext()->ResizeCHROMIUM(width
, height
, scale_factor
);
1086 const GLchar
* GLES2GetRequestableExtensionsCHROMIUM() {
1087 return gles2::GetGLContext()->GetRequestableExtensionsCHROMIUM();
1089 void GLES2RequestExtensionCHROMIUM(const char* extension
) {
1090 gles2::GetGLContext()->RequestExtensionCHROMIUM(extension
);
1092 void GLES2RateLimitOffscreenContextCHROMIUM() {
1093 gles2::GetGLContext()->RateLimitOffscreenContextCHROMIUM();
1095 void GLES2GetProgramInfoCHROMIUM(GLuint program
,
1099 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
1101 void GLES2GetUniformBlocksCHROMIUM(GLuint program
,
1105 gles2::GetGLContext()->GetUniformBlocksCHROMIUM(program
, bufsize
, size
, info
);
1107 void GLES2GetTransformFeedbackVaryingsCHROMIUM(GLuint program
,
1111 gles2::GetGLContext()->GetTransformFeedbackVaryingsCHROMIUM(program
, bufsize
,
1114 void GLES2GetUniformsES3CHROMIUM(GLuint program
,
1118 gles2::GetGLContext()->GetUniformsES3CHROMIUM(program
, bufsize
, size
, info
);
1120 GLuint
GLES2CreateStreamTextureCHROMIUM(GLuint texture
) {
1121 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture
);
1123 GLuint
GLES2CreateImageCHROMIUM(ClientBuffer buffer
,
1126 GLenum internalformat
) {
1127 return gles2::GetGLContext()->CreateImageCHROMIUM(buffer
, width
, height
,
1130 void GLES2DestroyImageCHROMIUM(GLuint image_id
) {
1131 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id
);
1133 GLuint
GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
1135 GLenum internalformat
,
1137 return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM(
1138 width
, height
, internalformat
, usage
);
1140 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader
,
1144 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(shader
, bufsize
, length
,
1147 void GLES2PostSubBufferCHROMIUM(GLint x
, GLint y
, GLint width
, GLint height
) {
1148 gles2::GetGLContext()->PostSubBufferCHROMIUM(x
, y
, width
, height
);
1150 void GLES2TexImageIOSurface2DCHROMIUM(GLenum target
,
1155 gles2::GetGLContext()->TexImageIOSurface2DCHROMIUM(target
, width
, height
,
1156 ioSurfaceId
, plane
);
1158 void GLES2CopyTextureCHROMIUM(GLenum target
,
1162 GLint internalformat
,
1164 gles2::GetGLContext()->CopyTextureCHROMIUM(target
, source_id
, dest_id
, level
,
1165 internalformat
, dest_type
);
1167 void GLES2DrawArraysInstancedANGLE(GLenum mode
,
1170 GLsizei primcount
) {
1171 gles2::GetGLContext()->DrawArraysInstancedANGLE(mode
, first
, count
,
1174 void GLES2DrawElementsInstancedANGLE(GLenum mode
,
1177 const void* indices
,
1178 GLsizei primcount
) {
1179 gles2::GetGLContext()->DrawElementsInstancedANGLE(mode
, count
, type
, indices
,
1182 void GLES2VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1183 gles2::GetGLContext()->VertexAttribDivisorANGLE(index
, divisor
);
1185 void GLES2GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1186 gles2::GetGLContext()->GenMailboxCHROMIUM(mailbox
);
1188 void GLES2ProduceTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) {
1189 gles2::GetGLContext()->ProduceTextureCHROMIUM(target
, mailbox
);
1191 void GLES2ProduceTextureDirectCHROMIUM(GLuint texture
,
1193 const GLbyte
* mailbox
) {
1194 gles2::GetGLContext()->ProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
1196 void GLES2ConsumeTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) {
1197 gles2::GetGLContext()->ConsumeTextureCHROMIUM(target
, mailbox
);
1199 GLuint
GLES2CreateAndConsumeTextureCHROMIUM(GLenum target
,
1200 const GLbyte
* mailbox
) {
1201 return gles2::GetGLContext()->CreateAndConsumeTextureCHROMIUM(target
,
1204 void GLES2BindUniformLocationCHROMIUM(GLuint program
,
1207 gles2::GetGLContext()->BindUniformLocationCHROMIUM(program
, location
, name
);
1209 void GLES2GenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
) {
1210 gles2::GetGLContext()->GenValuebuffersCHROMIUM(n
, buffers
);
1212 void GLES2DeleteValuebuffersCHROMIUM(GLsizei n
, const GLuint
* valuebuffers
) {
1213 gles2::GetGLContext()->DeleteValuebuffersCHROMIUM(n
, valuebuffers
);
1215 GLboolean
GLES2IsValuebufferCHROMIUM(GLuint valuebuffer
) {
1216 return gles2::GetGLContext()->IsValuebufferCHROMIUM(valuebuffer
);
1218 void GLES2BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) {
1219 gles2::GetGLContext()->BindValuebufferCHROMIUM(target
, valuebuffer
);
1221 void GLES2SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) {
1222 gles2::GetGLContext()->SubscribeValueCHROMIUM(target
, subscription
);
1224 void GLES2PopulateSubscribedValuesCHROMIUM(GLenum target
) {
1225 gles2::GetGLContext()->PopulateSubscribedValuesCHROMIUM(target
);
1227 void GLES2UniformValuebufferCHROMIUM(GLint location
,
1229 GLenum subscription
) {
1230 gles2::GetGLContext()->UniformValuebufferCHROMIUM(location
, target
,
1233 void GLES2BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1234 gles2::GetGLContext()->BindTexImage2DCHROMIUM(target
, imageId
);
1236 void GLES2ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1237 gles2::GetGLContext()->ReleaseTexImage2DCHROMIUM(target
, imageId
);
1239 void GLES2TraceBeginCHROMIUM(const char* category_name
,
1240 const char* trace_name
) {
1241 gles2::GetGLContext()->TraceBeginCHROMIUM(category_name
, trace_name
);
1243 void GLES2TraceEndCHROMIUM() {
1244 gles2::GetGLContext()->TraceEndCHROMIUM();
1246 void GLES2AsyncTexSubImage2DCHROMIUM(GLenum target
,
1255 gles2::GetGLContext()->AsyncTexSubImage2DCHROMIUM(
1256 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, data
);
1258 void GLES2AsyncTexImage2DCHROMIUM(GLenum target
,
1260 GLenum internalformat
,
1266 const void* pixels
) {
1267 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(target
, level
, internalformat
,
1268 width
, height
, border
, format
,
1271 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1272 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target
);
1274 void GLES2WaitAllAsyncTexImage2DCHROMIUM() {
1275 gles2::GetGLContext()->WaitAllAsyncTexImage2DCHROMIUM();
1277 void GLES2DiscardFramebufferEXT(GLenum target
,
1279 const GLenum
* attachments
) {
1280 gles2::GetGLContext()->DiscardFramebufferEXT(target
, count
, attachments
);
1282 void GLES2LoseContextCHROMIUM(GLenum current
, GLenum other
) {
1283 gles2::GetGLContext()->LoseContextCHROMIUM(current
, other
);
1285 GLuint
GLES2InsertSyncPointCHROMIUM() {
1286 return gles2::GetGLContext()->InsertSyncPointCHROMIUM();
1288 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point
) {
1289 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point
);
1291 void GLES2DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
1292 gles2::GetGLContext()->DrawBuffersEXT(count
, bufs
);
1294 void GLES2DiscardBackbufferCHROMIUM() {
1295 gles2::GetGLContext()->DiscardBackbufferCHROMIUM();
1297 void GLES2ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
1298 GLenum plane_transform
,
1299 GLuint overlay_texture_id
,
1303 GLint bounds_height
,
1307 GLfloat uv_height
) {
1308 gles2::GetGLContext()->ScheduleOverlayPlaneCHROMIUM(
1309 plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
, bounds_y
,
1310 bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
, uv_height
);
1312 void GLES2SwapInterval(GLint interval
) {
1313 gles2::GetGLContext()->SwapInterval(interval
);
1315 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) {
1316 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode
, m
);
1318 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
1319 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode
);
1321 void GLES2BlendBarrierKHR() {
1322 gles2::GetGLContext()->BlendBarrierKHR();
1327 extern const NameToFunc g_gles2_function_table
[] = {
1330 reinterpret_cast<GLES2FunctionPointer
>(glActiveTexture
),
1334 reinterpret_cast<GLES2FunctionPointer
>(glAttachShader
),
1337 "glBindAttribLocation",
1338 reinterpret_cast<GLES2FunctionPointer
>(glBindAttribLocation
),
1342 reinterpret_cast<GLES2FunctionPointer
>(glBindBuffer
),
1346 reinterpret_cast<GLES2FunctionPointer
>(glBindBufferBase
),
1349 "glBindBufferRange",
1350 reinterpret_cast<GLES2FunctionPointer
>(glBindBufferRange
),
1353 "glBindFramebuffer",
1354 reinterpret_cast<GLES2FunctionPointer
>(glBindFramebuffer
),
1357 "glBindRenderbuffer",
1358 reinterpret_cast<GLES2FunctionPointer
>(glBindRenderbuffer
),
1362 reinterpret_cast<GLES2FunctionPointer
>(glBindSampler
),
1366 reinterpret_cast<GLES2FunctionPointer
>(glBindTexture
),
1369 "glBindTransformFeedback",
1370 reinterpret_cast<GLES2FunctionPointer
>(glBindTransformFeedback
),
1374 reinterpret_cast<GLES2FunctionPointer
>(glBlendColor
),
1378 reinterpret_cast<GLES2FunctionPointer
>(glBlendEquation
),
1381 "glBlendEquationSeparate",
1382 reinterpret_cast<GLES2FunctionPointer
>(glBlendEquationSeparate
),
1386 reinterpret_cast<GLES2FunctionPointer
>(glBlendFunc
),
1389 "glBlendFuncSeparate",
1390 reinterpret_cast<GLES2FunctionPointer
>(glBlendFuncSeparate
),
1394 reinterpret_cast<GLES2FunctionPointer
>(glBufferData
),
1398 reinterpret_cast<GLES2FunctionPointer
>(glBufferSubData
),
1401 "glCheckFramebufferStatus",
1402 reinterpret_cast<GLES2FunctionPointer
>(glCheckFramebufferStatus
),
1406 reinterpret_cast<GLES2FunctionPointer
>(glClear
),
1410 reinterpret_cast<GLES2FunctionPointer
>(glClearBufferfi
),
1414 reinterpret_cast<GLES2FunctionPointer
>(glClearBufferfv
),
1418 reinterpret_cast<GLES2FunctionPointer
>(glClearBufferiv
),
1422 reinterpret_cast<GLES2FunctionPointer
>(glClearBufferuiv
),
1426 reinterpret_cast<GLES2FunctionPointer
>(glClearColor
),
1430 reinterpret_cast<GLES2FunctionPointer
>(glClearDepthf
),
1434 reinterpret_cast<GLES2FunctionPointer
>(glClearStencil
),
1438 reinterpret_cast<GLES2FunctionPointer
>(glClientWaitSync
),
1442 reinterpret_cast<GLES2FunctionPointer
>(glColorMask
),
1446 reinterpret_cast<GLES2FunctionPointer
>(glCompileShader
),
1449 "glCompressedTexImage2D",
1450 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexImage2D
),
1453 "glCompressedTexSubImage2D",
1454 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexSubImage2D
),
1457 "glCopyBufferSubData",
1458 reinterpret_cast<GLES2FunctionPointer
>(glCopyBufferSubData
),
1462 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexImage2D
),
1465 "glCopyTexSubImage2D",
1466 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexSubImage2D
),
1469 "glCopyTexSubImage3D",
1470 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexSubImage3D
),
1474 reinterpret_cast<GLES2FunctionPointer
>(glCreateProgram
),
1478 reinterpret_cast<GLES2FunctionPointer
>(glCreateShader
),
1482 reinterpret_cast<GLES2FunctionPointer
>(glCullFace
),
1486 reinterpret_cast<GLES2FunctionPointer
>(glDeleteBuffers
),
1489 "glDeleteFramebuffers",
1490 reinterpret_cast<GLES2FunctionPointer
>(glDeleteFramebuffers
),
1494 reinterpret_cast<GLES2FunctionPointer
>(glDeleteProgram
),
1497 "glDeleteRenderbuffers",
1498 reinterpret_cast<GLES2FunctionPointer
>(glDeleteRenderbuffers
),
1502 reinterpret_cast<GLES2FunctionPointer
>(glDeleteSamplers
),
1506 reinterpret_cast<GLES2FunctionPointer
>(glDeleteSync
),
1510 reinterpret_cast<GLES2FunctionPointer
>(glDeleteShader
),
1514 reinterpret_cast<GLES2FunctionPointer
>(glDeleteTextures
),
1517 "glDeleteTransformFeedbacks",
1518 reinterpret_cast<GLES2FunctionPointer
>(glDeleteTransformFeedbacks
),
1522 reinterpret_cast<GLES2FunctionPointer
>(glDepthFunc
),
1526 reinterpret_cast<GLES2FunctionPointer
>(glDepthMask
),
1530 reinterpret_cast<GLES2FunctionPointer
>(glDepthRangef
),
1534 reinterpret_cast<GLES2FunctionPointer
>(glDetachShader
),
1538 reinterpret_cast<GLES2FunctionPointer
>(glDisable
),
1541 "glDisableVertexAttribArray",
1542 reinterpret_cast<GLES2FunctionPointer
>(glDisableVertexAttribArray
),
1546 reinterpret_cast<GLES2FunctionPointer
>(glDrawArrays
),
1550 reinterpret_cast<GLES2FunctionPointer
>(glDrawElements
),
1554 reinterpret_cast<GLES2FunctionPointer
>(glEnable
),
1557 "glEnableVertexAttribArray",
1558 reinterpret_cast<GLES2FunctionPointer
>(glEnableVertexAttribArray
),
1562 reinterpret_cast<GLES2FunctionPointer
>(glFenceSync
),
1566 reinterpret_cast<GLES2FunctionPointer
>(glFinish
),
1570 reinterpret_cast<GLES2FunctionPointer
>(glFlush
),
1573 "glFramebufferRenderbuffer",
1574 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferRenderbuffer
),
1577 "glFramebufferTexture2D",
1578 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferTexture2D
),
1581 "glFramebufferTextureLayer",
1582 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferTextureLayer
),
1586 reinterpret_cast<GLES2FunctionPointer
>(glFrontFace
),
1590 reinterpret_cast<GLES2FunctionPointer
>(glGenBuffers
),
1594 reinterpret_cast<GLES2FunctionPointer
>(glGenerateMipmap
),
1597 "glGenFramebuffers",
1598 reinterpret_cast<GLES2FunctionPointer
>(glGenFramebuffers
),
1601 "glGenRenderbuffers",
1602 reinterpret_cast<GLES2FunctionPointer
>(glGenRenderbuffers
),
1606 reinterpret_cast<GLES2FunctionPointer
>(glGenSamplers
),
1610 reinterpret_cast<GLES2FunctionPointer
>(glGenTextures
),
1613 "glGenTransformFeedbacks",
1614 reinterpret_cast<GLES2FunctionPointer
>(glGenTransformFeedbacks
),
1617 "glGetActiveAttrib",
1618 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveAttrib
),
1621 "glGetActiveUniform",
1622 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniform
),
1625 "glGetActiveUniformBlockiv",
1626 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniformBlockiv
),
1629 "glGetActiveUniformBlockName",
1630 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniformBlockName
),
1633 "glGetActiveUniformsiv",
1634 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniformsiv
),
1637 "glGetAttachedShaders",
1638 reinterpret_cast<GLES2FunctionPointer
>(glGetAttachedShaders
),
1641 "glGetAttribLocation",
1642 reinterpret_cast<GLES2FunctionPointer
>(glGetAttribLocation
),
1646 reinterpret_cast<GLES2FunctionPointer
>(glGetBooleanv
),
1649 "glGetBufferParameteriv",
1650 reinterpret_cast<GLES2FunctionPointer
>(glGetBufferParameteriv
),
1654 reinterpret_cast<GLES2FunctionPointer
>(glGetError
),
1658 reinterpret_cast<GLES2FunctionPointer
>(glGetFloatv
),
1661 "glGetFragDataLocation",
1662 reinterpret_cast<GLES2FunctionPointer
>(glGetFragDataLocation
),
1665 "glGetFramebufferAttachmentParameteriv",
1666 reinterpret_cast<GLES2FunctionPointer
>(
1667 glGetFramebufferAttachmentParameteriv
),
1671 reinterpret_cast<GLES2FunctionPointer
>(glGetIntegerv
),
1674 "glGetInternalformativ",
1675 reinterpret_cast<GLES2FunctionPointer
>(glGetInternalformativ
),
1679 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramiv
),
1682 "glGetProgramInfoLog",
1683 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramInfoLog
),
1686 "glGetRenderbufferParameteriv",
1687 reinterpret_cast<GLES2FunctionPointer
>(glGetRenderbufferParameteriv
),
1690 "glGetSamplerParameterfv",
1691 reinterpret_cast<GLES2FunctionPointer
>(glGetSamplerParameterfv
),
1694 "glGetSamplerParameteriv",
1695 reinterpret_cast<GLES2FunctionPointer
>(glGetSamplerParameteriv
),
1699 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderiv
),
1702 "glGetShaderInfoLog",
1703 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderInfoLog
),
1706 "glGetShaderPrecisionFormat",
1707 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderPrecisionFormat
),
1710 "glGetShaderSource",
1711 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderSource
),
1715 reinterpret_cast<GLES2FunctionPointer
>(glGetString
),
1719 reinterpret_cast<GLES2FunctionPointer
>(glGetSynciv
),
1722 "glGetTexParameterfv",
1723 reinterpret_cast<GLES2FunctionPointer
>(glGetTexParameterfv
),
1726 "glGetTexParameteriv",
1727 reinterpret_cast<GLES2FunctionPointer
>(glGetTexParameteriv
),
1730 "glGetTransformFeedbackVarying",
1731 reinterpret_cast<GLES2FunctionPointer
>(glGetTransformFeedbackVarying
),
1734 "glGetUniformBlockIndex",
1735 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformBlockIndex
),
1739 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformfv
),
1743 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformiv
),
1746 "glGetUniformIndices",
1747 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformIndices
),
1750 "glGetUniformLocation",
1751 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformLocation
),
1754 "glGetVertexAttribfv",
1755 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribfv
),
1758 "glGetVertexAttribiv",
1759 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribiv
),
1762 "glGetVertexAttribPointerv",
1763 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribPointerv
),
1767 reinterpret_cast<GLES2FunctionPointer
>(glHint
),
1770 "glInvalidateFramebuffer",
1771 reinterpret_cast<GLES2FunctionPointer
>(glInvalidateFramebuffer
),
1774 "glInvalidateSubFramebuffer",
1775 reinterpret_cast<GLES2FunctionPointer
>(glInvalidateSubFramebuffer
),
1779 reinterpret_cast<GLES2FunctionPointer
>(glIsBuffer
),
1783 reinterpret_cast<GLES2FunctionPointer
>(glIsEnabled
),
1787 reinterpret_cast<GLES2FunctionPointer
>(glIsFramebuffer
),
1791 reinterpret_cast<GLES2FunctionPointer
>(glIsProgram
),
1795 reinterpret_cast<GLES2FunctionPointer
>(glIsRenderbuffer
),
1799 reinterpret_cast<GLES2FunctionPointer
>(glIsSampler
),
1803 reinterpret_cast<GLES2FunctionPointer
>(glIsShader
),
1807 reinterpret_cast<GLES2FunctionPointer
>(glIsSync
),
1811 reinterpret_cast<GLES2FunctionPointer
>(glIsTexture
),
1814 "glIsTransformFeedback",
1815 reinterpret_cast<GLES2FunctionPointer
>(glIsTransformFeedback
),
1819 reinterpret_cast<GLES2FunctionPointer
>(glLineWidth
),
1823 reinterpret_cast<GLES2FunctionPointer
>(glLinkProgram
),
1826 "glPauseTransformFeedback",
1827 reinterpret_cast<GLES2FunctionPointer
>(glPauseTransformFeedback
),
1831 reinterpret_cast<GLES2FunctionPointer
>(glPixelStorei
),
1835 reinterpret_cast<GLES2FunctionPointer
>(glPolygonOffset
),
1839 reinterpret_cast<GLES2FunctionPointer
>(glReadBuffer
),
1843 reinterpret_cast<GLES2FunctionPointer
>(glReadPixels
),
1846 "glReleaseShaderCompiler",
1847 reinterpret_cast<GLES2FunctionPointer
>(glReleaseShaderCompiler
),
1850 "glRenderbufferStorage",
1851 reinterpret_cast<GLES2FunctionPointer
>(glRenderbufferStorage
),
1854 "glResumeTransformFeedback",
1855 reinterpret_cast<GLES2FunctionPointer
>(glResumeTransformFeedback
),
1859 reinterpret_cast<GLES2FunctionPointer
>(glSampleCoverage
),
1862 "glSamplerParameterf",
1863 reinterpret_cast<GLES2FunctionPointer
>(glSamplerParameterf
),
1866 "glSamplerParameterfv",
1867 reinterpret_cast<GLES2FunctionPointer
>(glSamplerParameterfv
),
1870 "glSamplerParameteri",
1871 reinterpret_cast<GLES2FunctionPointer
>(glSamplerParameteri
),
1874 "glSamplerParameteriv",
1875 reinterpret_cast<GLES2FunctionPointer
>(glSamplerParameteriv
),
1879 reinterpret_cast<GLES2FunctionPointer
>(glScissor
),
1883 reinterpret_cast<GLES2FunctionPointer
>(glShaderBinary
),
1887 reinterpret_cast<GLES2FunctionPointer
>(glShaderSource
),
1890 "glShallowFinishCHROMIUM",
1891 reinterpret_cast<GLES2FunctionPointer
>(glShallowFinishCHROMIUM
),
1894 "glShallowFlushCHROMIUM",
1895 reinterpret_cast<GLES2FunctionPointer
>(glShallowFlushCHROMIUM
),
1898 "glOrderingBarrierCHROMIUM",
1899 reinterpret_cast<GLES2FunctionPointer
>(glOrderingBarrierCHROMIUM
),
1903 reinterpret_cast<GLES2FunctionPointer
>(glStencilFunc
),
1906 "glStencilFuncSeparate",
1907 reinterpret_cast<GLES2FunctionPointer
>(glStencilFuncSeparate
),
1911 reinterpret_cast<GLES2FunctionPointer
>(glStencilMask
),
1914 "glStencilMaskSeparate",
1915 reinterpret_cast<GLES2FunctionPointer
>(glStencilMaskSeparate
),
1919 reinterpret_cast<GLES2FunctionPointer
>(glStencilOp
),
1922 "glStencilOpSeparate",
1923 reinterpret_cast<GLES2FunctionPointer
>(glStencilOpSeparate
),
1927 reinterpret_cast<GLES2FunctionPointer
>(glTexImage2D
),
1931 reinterpret_cast<GLES2FunctionPointer
>(glTexImage3D
),
1935 reinterpret_cast<GLES2FunctionPointer
>(glTexParameterf
),
1939 reinterpret_cast<GLES2FunctionPointer
>(glTexParameterfv
),
1943 reinterpret_cast<GLES2FunctionPointer
>(glTexParameteri
),
1947 reinterpret_cast<GLES2FunctionPointer
>(glTexParameteriv
),
1951 reinterpret_cast<GLES2FunctionPointer
>(glTexStorage3D
),
1955 reinterpret_cast<GLES2FunctionPointer
>(glTexSubImage2D
),
1959 reinterpret_cast<GLES2FunctionPointer
>(glTexSubImage3D
),
1962 "glTransformFeedbackVaryings",
1963 reinterpret_cast<GLES2FunctionPointer
>(glTransformFeedbackVaryings
),
1967 reinterpret_cast<GLES2FunctionPointer
>(glUniform1f
),
1971 reinterpret_cast<GLES2FunctionPointer
>(glUniform1fv
),
1975 reinterpret_cast<GLES2FunctionPointer
>(glUniform1i
),
1979 reinterpret_cast<GLES2FunctionPointer
>(glUniform1iv
),
1983 reinterpret_cast<GLES2FunctionPointer
>(glUniform1ui
),
1987 reinterpret_cast<GLES2FunctionPointer
>(glUniform1uiv
),
1991 reinterpret_cast<GLES2FunctionPointer
>(glUniform2f
),
1995 reinterpret_cast<GLES2FunctionPointer
>(glUniform2fv
),
1999 reinterpret_cast<GLES2FunctionPointer
>(glUniform2i
),
2003 reinterpret_cast<GLES2FunctionPointer
>(glUniform2iv
),
2007 reinterpret_cast<GLES2FunctionPointer
>(glUniform2ui
),
2011 reinterpret_cast<GLES2FunctionPointer
>(glUniform2uiv
),
2015 reinterpret_cast<GLES2FunctionPointer
>(glUniform3f
),
2019 reinterpret_cast<GLES2FunctionPointer
>(glUniform3fv
),
2023 reinterpret_cast<GLES2FunctionPointer
>(glUniform3i
),
2027 reinterpret_cast<GLES2FunctionPointer
>(glUniform3iv
),
2031 reinterpret_cast<GLES2FunctionPointer
>(glUniform3ui
),
2035 reinterpret_cast<GLES2FunctionPointer
>(glUniform3uiv
),
2039 reinterpret_cast<GLES2FunctionPointer
>(glUniform4f
),
2043 reinterpret_cast<GLES2FunctionPointer
>(glUniform4fv
),
2047 reinterpret_cast<GLES2FunctionPointer
>(glUniform4i
),
2051 reinterpret_cast<GLES2FunctionPointer
>(glUniform4iv
),
2055 reinterpret_cast<GLES2FunctionPointer
>(glUniform4ui
),
2059 reinterpret_cast<GLES2FunctionPointer
>(glUniform4uiv
),
2062 "glUniformBlockBinding",
2063 reinterpret_cast<GLES2FunctionPointer
>(glUniformBlockBinding
),
2066 "glUniformMatrix2fv",
2067 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix2fv
),
2070 "glUniformMatrix2x3fv",
2071 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix2x3fv
),
2074 "glUniformMatrix2x4fv",
2075 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix2x4fv
),
2078 "glUniformMatrix3fv",
2079 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix3fv
),
2082 "glUniformMatrix3x2fv",
2083 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix3x2fv
),
2086 "glUniformMatrix3x4fv",
2087 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix3x4fv
),
2090 "glUniformMatrix4fv",
2091 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix4fv
),
2094 "glUniformMatrix4x2fv",
2095 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix4x2fv
),
2098 "glUniformMatrix4x3fv",
2099 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix4x3fv
),
2103 reinterpret_cast<GLES2FunctionPointer
>(glUseProgram
),
2106 "glValidateProgram",
2107 reinterpret_cast<GLES2FunctionPointer
>(glValidateProgram
),
2111 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib1f
),
2114 "glVertexAttrib1fv",
2115 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib1fv
),
2119 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib2f
),
2122 "glVertexAttrib2fv",
2123 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib2fv
),
2127 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib3f
),
2130 "glVertexAttrib3fv",
2131 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib3fv
),
2135 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib4f
),
2138 "glVertexAttrib4fv",
2139 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib4fv
),
2142 "glVertexAttribI4i",
2143 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribI4i
),
2146 "glVertexAttribI4iv",
2147 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribI4iv
),
2150 "glVertexAttribI4ui",
2151 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribI4ui
),
2154 "glVertexAttribI4uiv",
2155 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribI4uiv
),
2158 "glVertexAttribIPointer",
2159 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribIPointer
),
2162 "glVertexAttribPointer",
2163 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribPointer
),
2167 reinterpret_cast<GLES2FunctionPointer
>(glViewport
),
2171 reinterpret_cast<GLES2FunctionPointer
>(glWaitSync
),
2174 "glBlitFramebufferCHROMIUM",
2175 reinterpret_cast<GLES2FunctionPointer
>(glBlitFramebufferCHROMIUM
),
2178 "glRenderbufferStorageMultisampleCHROMIUM",
2179 reinterpret_cast<GLES2FunctionPointer
>(
2180 glRenderbufferStorageMultisampleCHROMIUM
),
2183 "glRenderbufferStorageMultisampleEXT",
2184 reinterpret_cast<GLES2FunctionPointer
>(
2185 glRenderbufferStorageMultisampleEXT
),
2188 "glFramebufferTexture2DMultisampleEXT",
2189 reinterpret_cast<GLES2FunctionPointer
>(
2190 glFramebufferTexture2DMultisampleEXT
),
2193 "glTexStorage2DEXT",
2194 reinterpret_cast<GLES2FunctionPointer
>(glTexStorage2DEXT
),
2198 reinterpret_cast<GLES2FunctionPointer
>(glGenQueriesEXT
),
2201 "glDeleteQueriesEXT",
2202 reinterpret_cast<GLES2FunctionPointer
>(glDeleteQueriesEXT
),
2206 reinterpret_cast<GLES2FunctionPointer
>(glIsQueryEXT
),
2210 reinterpret_cast<GLES2FunctionPointer
>(glBeginQueryEXT
),
2213 "glBeginTransformFeedback",
2214 reinterpret_cast<GLES2FunctionPointer
>(glBeginTransformFeedback
),
2218 reinterpret_cast<GLES2FunctionPointer
>(glEndQueryEXT
),
2221 "glEndTransformFeedback",
2222 reinterpret_cast<GLES2FunctionPointer
>(glEndTransformFeedback
),
2226 reinterpret_cast<GLES2FunctionPointer
>(glGetQueryivEXT
),
2229 "glGetQueryObjectuivEXT",
2230 reinterpret_cast<GLES2FunctionPointer
>(glGetQueryObjectuivEXT
),
2233 "glInsertEventMarkerEXT",
2234 reinterpret_cast<GLES2FunctionPointer
>(glInsertEventMarkerEXT
),
2237 "glPushGroupMarkerEXT",
2238 reinterpret_cast<GLES2FunctionPointer
>(glPushGroupMarkerEXT
),
2241 "glPopGroupMarkerEXT",
2242 reinterpret_cast<GLES2FunctionPointer
>(glPopGroupMarkerEXT
),
2245 "glGenVertexArraysOES",
2246 reinterpret_cast<GLES2FunctionPointer
>(glGenVertexArraysOES
),
2249 "glDeleteVertexArraysOES",
2250 reinterpret_cast<GLES2FunctionPointer
>(glDeleteVertexArraysOES
),
2253 "glIsVertexArrayOES",
2254 reinterpret_cast<GLES2FunctionPointer
>(glIsVertexArrayOES
),
2257 "glBindVertexArrayOES",
2258 reinterpret_cast<GLES2FunctionPointer
>(glBindVertexArrayOES
),
2262 reinterpret_cast<GLES2FunctionPointer
>(glSwapBuffers
),
2265 "glGetMaxValueInBufferCHROMIUM",
2266 reinterpret_cast<GLES2FunctionPointer
>(glGetMaxValueInBufferCHROMIUM
),
2269 "glEnableFeatureCHROMIUM",
2270 reinterpret_cast<GLES2FunctionPointer
>(glEnableFeatureCHROMIUM
),
2273 "glMapBufferCHROMIUM",
2274 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferCHROMIUM
),
2277 "glUnmapBufferCHROMIUM",
2278 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBufferCHROMIUM
),
2281 "glMapBufferSubDataCHROMIUM",
2282 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferSubDataCHROMIUM
),
2285 "glUnmapBufferSubDataCHROMIUM",
2286 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBufferSubDataCHROMIUM
),
2289 "glMapTexSubImage2DCHROMIUM",
2290 reinterpret_cast<GLES2FunctionPointer
>(glMapTexSubImage2DCHROMIUM
),
2293 "glUnmapTexSubImage2DCHROMIUM",
2294 reinterpret_cast<GLES2FunctionPointer
>(glUnmapTexSubImage2DCHROMIUM
),
2298 reinterpret_cast<GLES2FunctionPointer
>(glResizeCHROMIUM
),
2301 "glGetRequestableExtensionsCHROMIUM",
2302 reinterpret_cast<GLES2FunctionPointer
>(glGetRequestableExtensionsCHROMIUM
),
2305 "glRequestExtensionCHROMIUM",
2306 reinterpret_cast<GLES2FunctionPointer
>(glRequestExtensionCHROMIUM
),
2309 "glRateLimitOffscreenContextCHROMIUM",
2310 reinterpret_cast<GLES2FunctionPointer
>(
2311 glRateLimitOffscreenContextCHROMIUM
),
2314 "glGetProgramInfoCHROMIUM",
2315 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramInfoCHROMIUM
),
2318 "glGetUniformBlocksCHROMIUM",
2319 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformBlocksCHROMIUM
),
2322 "glGetTransformFeedbackVaryingsCHROMIUM",
2323 reinterpret_cast<GLES2FunctionPointer
>(
2324 glGetTransformFeedbackVaryingsCHROMIUM
),
2327 "glGetUniformsES3CHROMIUM",
2328 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformsES3CHROMIUM
),
2331 "glCreateStreamTextureCHROMIUM",
2332 reinterpret_cast<GLES2FunctionPointer
>(glCreateStreamTextureCHROMIUM
),
2335 "glCreateImageCHROMIUM",
2336 reinterpret_cast<GLES2FunctionPointer
>(glCreateImageCHROMIUM
),
2339 "glDestroyImageCHROMIUM",
2340 reinterpret_cast<GLES2FunctionPointer
>(glDestroyImageCHROMIUM
),
2343 "glCreateGpuMemoryBufferImageCHROMIUM",
2344 reinterpret_cast<GLES2FunctionPointer
>(
2345 glCreateGpuMemoryBufferImageCHROMIUM
),
2348 "glGetTranslatedShaderSourceANGLE",
2349 reinterpret_cast<GLES2FunctionPointer
>(glGetTranslatedShaderSourceANGLE
),
2352 "glPostSubBufferCHROMIUM",
2353 reinterpret_cast<GLES2FunctionPointer
>(glPostSubBufferCHROMIUM
),
2356 "glTexImageIOSurface2DCHROMIUM",
2357 reinterpret_cast<GLES2FunctionPointer
>(glTexImageIOSurface2DCHROMIUM
),
2360 "glCopyTextureCHROMIUM",
2361 reinterpret_cast<GLES2FunctionPointer
>(glCopyTextureCHROMIUM
),
2364 "glDrawArraysInstancedANGLE",
2365 reinterpret_cast<GLES2FunctionPointer
>(glDrawArraysInstancedANGLE
),
2368 "glDrawElementsInstancedANGLE",
2369 reinterpret_cast<GLES2FunctionPointer
>(glDrawElementsInstancedANGLE
),
2372 "glVertexAttribDivisorANGLE",
2373 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribDivisorANGLE
),
2376 "glGenMailboxCHROMIUM",
2377 reinterpret_cast<GLES2FunctionPointer
>(glGenMailboxCHROMIUM
),
2380 "glProduceTextureCHROMIUM",
2381 reinterpret_cast<GLES2FunctionPointer
>(glProduceTextureCHROMIUM
),
2384 "glProduceTextureDirectCHROMIUM",
2385 reinterpret_cast<GLES2FunctionPointer
>(glProduceTextureDirectCHROMIUM
),
2388 "glConsumeTextureCHROMIUM",
2389 reinterpret_cast<GLES2FunctionPointer
>(glConsumeTextureCHROMIUM
),
2392 "glCreateAndConsumeTextureCHROMIUM",
2393 reinterpret_cast<GLES2FunctionPointer
>(glCreateAndConsumeTextureCHROMIUM
),
2396 "glBindUniformLocationCHROMIUM",
2397 reinterpret_cast<GLES2FunctionPointer
>(glBindUniformLocationCHROMIUM
),
2400 "glGenValuebuffersCHROMIUM",
2401 reinterpret_cast<GLES2FunctionPointer
>(glGenValuebuffersCHROMIUM
),
2404 "glDeleteValuebuffersCHROMIUM",
2405 reinterpret_cast<GLES2FunctionPointer
>(glDeleteValuebuffersCHROMIUM
),
2408 "glIsValuebufferCHROMIUM",
2409 reinterpret_cast<GLES2FunctionPointer
>(glIsValuebufferCHROMIUM
),
2412 "glBindValuebufferCHROMIUM",
2413 reinterpret_cast<GLES2FunctionPointer
>(glBindValuebufferCHROMIUM
),
2416 "glSubscribeValueCHROMIUM",
2417 reinterpret_cast<GLES2FunctionPointer
>(glSubscribeValueCHROMIUM
),
2420 "glPopulateSubscribedValuesCHROMIUM",
2421 reinterpret_cast<GLES2FunctionPointer
>(glPopulateSubscribedValuesCHROMIUM
),
2424 "glUniformValuebufferCHROMIUM",
2425 reinterpret_cast<GLES2FunctionPointer
>(glUniformValuebufferCHROMIUM
),
2428 "glBindTexImage2DCHROMIUM",
2429 reinterpret_cast<GLES2FunctionPointer
>(glBindTexImage2DCHROMIUM
),
2432 "glReleaseTexImage2DCHROMIUM",
2433 reinterpret_cast<GLES2FunctionPointer
>(glReleaseTexImage2DCHROMIUM
),
2436 "glTraceBeginCHROMIUM",
2437 reinterpret_cast<GLES2FunctionPointer
>(glTraceBeginCHROMIUM
),
2440 "glTraceEndCHROMIUM",
2441 reinterpret_cast<GLES2FunctionPointer
>(glTraceEndCHROMIUM
),
2444 "glAsyncTexSubImage2DCHROMIUM",
2445 reinterpret_cast<GLES2FunctionPointer
>(glAsyncTexSubImage2DCHROMIUM
),
2448 "glAsyncTexImage2DCHROMIUM",
2449 reinterpret_cast<GLES2FunctionPointer
>(glAsyncTexImage2DCHROMIUM
),
2452 "glWaitAsyncTexImage2DCHROMIUM",
2453 reinterpret_cast<GLES2FunctionPointer
>(glWaitAsyncTexImage2DCHROMIUM
),
2456 "glWaitAllAsyncTexImage2DCHROMIUM",
2457 reinterpret_cast<GLES2FunctionPointer
>(glWaitAllAsyncTexImage2DCHROMIUM
),
2460 "glDiscardFramebufferEXT",
2461 reinterpret_cast<GLES2FunctionPointer
>(glDiscardFramebufferEXT
),
2464 "glLoseContextCHROMIUM",
2465 reinterpret_cast<GLES2FunctionPointer
>(glLoseContextCHROMIUM
),
2468 "glInsertSyncPointCHROMIUM",
2469 reinterpret_cast<GLES2FunctionPointer
>(glInsertSyncPointCHROMIUM
),
2472 "glWaitSyncPointCHROMIUM",
2473 reinterpret_cast<GLES2FunctionPointer
>(glWaitSyncPointCHROMIUM
),
2477 reinterpret_cast<GLES2FunctionPointer
>(glDrawBuffersEXT
),
2480 "glDiscardBackbufferCHROMIUM",
2481 reinterpret_cast<GLES2FunctionPointer
>(glDiscardBackbufferCHROMIUM
),
2484 "glScheduleOverlayPlaneCHROMIUM",
2485 reinterpret_cast<GLES2FunctionPointer
>(glScheduleOverlayPlaneCHROMIUM
),
2489 reinterpret_cast<GLES2FunctionPointer
>(glSwapInterval
),
2492 "glMatrixLoadfCHROMIUM",
2493 reinterpret_cast<GLES2FunctionPointer
>(glMatrixLoadfCHROMIUM
),
2496 "glMatrixLoadIdentityCHROMIUM",
2497 reinterpret_cast<GLES2FunctionPointer
>(glMatrixLoadIdentityCHROMIUM
),
2500 "glBlendBarrierKHR",
2501 reinterpret_cast<GLES2FunctionPointer
>(glBlendBarrierKHR
),
2509 } // namespace gles2
2510 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_