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 // This file is included by gles2_implementation.h to declare the
13 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_
14 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_
16 void ActiveTexture(GLenum texture
) override
;
18 void AttachShader(GLuint program
, GLuint shader
) override
;
20 void BindAttribLocation(GLuint program
,
22 const char* name
) override
;
24 void BindBuffer(GLenum target
, GLuint buffer
) override
;
26 void BindFramebuffer(GLenum target
, GLuint framebuffer
) override
;
28 void BindRenderbuffer(GLenum target
, GLuint renderbuffer
) override
;
30 void BindTexture(GLenum target
, GLuint texture
) override
;
32 void BlendColor(GLclampf red
,
35 GLclampf alpha
) override
;
37 void BlendEquation(GLenum mode
) override
;
39 void BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) override
;
41 void BlendFunc(GLenum sfactor
, GLenum dfactor
) override
;
43 void BlendFuncSeparate(GLenum srcRGB
,
46 GLenum dstAlpha
) override
;
48 void BufferData(GLenum target
,
51 GLenum usage
) override
;
53 void BufferSubData(GLenum target
,
56 const void* data
) override
;
58 GLenum
CheckFramebufferStatus(GLenum target
) override
;
60 void Clear(GLbitfield mask
) override
;
62 void ClearColor(GLclampf red
,
65 GLclampf alpha
) override
;
67 void ClearDepthf(GLclampf depth
) override
;
69 void ClearStencil(GLint s
) override
;
71 void ColorMask(GLboolean red
,
74 GLboolean alpha
) override
;
76 void CompileShader(GLuint shader
) override
;
78 void CompressedTexImage2D(GLenum target
,
80 GLenum internalformat
,
85 const void* data
) override
;
87 void CompressedTexSubImage2D(GLenum target
,
95 const void* data
) override
;
97 void CopyTexImage2D(GLenum target
,
99 GLenum internalformat
,
104 GLint border
) override
;
106 void CopyTexSubImage2D(GLenum target
,
113 GLsizei height
) override
;
115 GLuint
CreateProgram() override
;
117 GLuint
CreateShader(GLenum type
) override
;
119 void CullFace(GLenum mode
) override
;
121 void DeleteBuffers(GLsizei n
, const GLuint
* buffers
) override
;
123 void DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) override
;
125 void DeleteProgram(GLuint program
) override
;
127 void DeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) override
;
129 void DeleteShader(GLuint shader
) override
;
131 void DeleteTextures(GLsizei n
, const GLuint
* textures
) override
;
133 void DepthFunc(GLenum func
) override
;
135 void DepthMask(GLboolean flag
) override
;
137 void DepthRangef(GLclampf zNear
, GLclampf zFar
) override
;
139 void DetachShader(GLuint program
, GLuint shader
) override
;
141 void Disable(GLenum cap
) override
;
143 void DrawArrays(GLenum mode
, GLint first
, GLsizei count
) override
;
145 void DrawElements(GLenum mode
,
148 const void* indices
) override
;
150 void Enable(GLenum cap
) override
;
152 void Finish() override
;
154 void Flush() override
;
156 void FramebufferRenderbuffer(GLenum target
,
158 GLenum renderbuffertarget
,
159 GLuint renderbuffer
) override
;
161 void FramebufferTexture2D(GLenum target
,
165 GLint level
) override
;
167 void FrontFace(GLenum mode
) override
;
169 void GenBuffers(GLsizei n
, GLuint
* buffers
) override
;
171 void GenerateMipmap(GLenum target
) override
;
173 void GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) override
;
175 void GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) override
;
177 void GenTextures(GLsizei n
, GLuint
* textures
) override
;
179 void GetActiveAttrib(GLuint program
,
185 char* name
) override
;
187 void GetActiveUniform(GLuint program
,
193 char* name
) override
;
195 void GetAttachedShaders(GLuint program
,
198 GLuint
* shaders
) override
;
200 GLint
GetAttribLocation(GLuint program
, const char* name
) override
;
202 void GetBooleanv(GLenum pname
, GLboolean
* params
) override
;
204 void GetBufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) override
;
206 GLenum
GetError() override
;
208 void GetFloatv(GLenum pname
, GLfloat
* params
) override
;
210 void GetFramebufferAttachmentParameteriv(GLenum target
,
213 GLint
* params
) override
;
215 void GetIntegerv(GLenum pname
, GLint
* params
) override
;
217 void GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) override
;
219 void GetProgramInfoLog(GLuint program
,
222 char* infolog
) override
;
224 void GetRenderbufferParameteriv(GLenum target
,
226 GLint
* params
) override
;
228 void GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) override
;
230 void GetShaderInfoLog(GLuint shader
,
233 char* infolog
) override
;
235 void GetShaderPrecisionFormat(GLenum shadertype
,
236 GLenum precisiontype
,
238 GLint
* precision
) override
;
240 void GetShaderSource(GLuint shader
,
243 char* source
) override
;
245 const GLubyte
* GetString(GLenum name
) override
;
247 void GetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
) override
;
249 void GetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) override
;
251 void GetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) override
;
253 void GetUniformiv(GLuint program
, GLint location
, GLint
* params
) override
;
255 GLint
GetUniformLocation(GLuint program
, const char* name
) override
;
257 void GetVertexAttribPointerv(GLuint index
,
259 void** pointer
) override
;
261 void Hint(GLenum target
, GLenum mode
) override
;
263 GLboolean
IsBuffer(GLuint buffer
) override
;
265 GLboolean
IsEnabled(GLenum cap
) override
;
267 GLboolean
IsFramebuffer(GLuint framebuffer
) override
;
269 GLboolean
IsProgram(GLuint program
) override
;
271 GLboolean
IsRenderbuffer(GLuint renderbuffer
) override
;
273 GLboolean
IsShader(GLuint shader
) override
;
275 GLboolean
IsTexture(GLuint texture
) override
;
277 void LineWidth(GLfloat width
) override
;
279 void LinkProgram(GLuint program
) override
;
281 void PixelStorei(GLenum pname
, GLint param
) override
;
283 void PolygonOffset(GLfloat factor
, GLfloat units
) override
;
285 void ReadPixels(GLint x
,
291 void* pixels
) override
;
293 void ReleaseShaderCompiler() override
;
295 void RenderbufferStorage(GLenum target
,
296 GLenum internalformat
,
298 GLsizei height
) override
;
300 void SampleCoverage(GLclampf value
, GLboolean invert
) override
;
302 void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) override
;
304 void ShaderBinary(GLsizei n
,
305 const GLuint
* shaders
,
308 GLsizei length
) override
;
310 void ShaderSource(GLuint shader
,
312 const GLchar
* const* str
,
313 const GLint
* length
) override
;
315 void ShallowFinishCHROMIUM() override
;
317 void ShallowFlushCHROMIUM() override
;
319 void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) override
;
321 void StencilFuncSeparate(GLenum face
,
324 GLuint mask
) override
;
326 void StencilMask(GLuint mask
) override
;
328 void StencilMaskSeparate(GLenum face
, GLuint mask
) override
;
330 void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) override
;
332 void StencilOpSeparate(GLenum face
,
335 GLenum zpass
) override
;
337 void TexImage2D(GLenum target
,
339 GLint internalformat
,
345 const void* pixels
) override
;
347 void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) override
;
349 void TexParameterfv(GLenum target
,
351 const GLfloat
* params
) override
;
353 void TexParameteri(GLenum target
, GLenum pname
, GLint param
) override
;
355 void TexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
) override
;
357 void TexSubImage2D(GLenum target
,
365 const void* pixels
) override
;
367 void Uniform1f(GLint location
, GLfloat x
) override
;
369 void Uniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) override
;
371 void Uniform1i(GLint location
, GLint x
) override
;
373 void Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) override
;
375 void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) override
;
377 void Uniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) override
;
379 void Uniform2i(GLint location
, GLint x
, GLint y
) override
;
381 void Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) override
;
383 void Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) override
;
385 void Uniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) override
;
387 void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) override
;
389 void Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) override
;
391 void Uniform4f(GLint location
,
397 void Uniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) override
;
399 void Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) override
;
401 void Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) override
;
403 void UniformMatrix2fv(GLint location
,
406 const GLfloat
* value
) override
;
408 void UniformMatrix3fv(GLint location
,
411 const GLfloat
* value
) override
;
413 void UniformMatrix4fv(GLint location
,
416 const GLfloat
* value
) override
;
418 void UseProgram(GLuint program
) override
;
420 void ValidateProgram(GLuint program
) override
;
422 void VertexAttrib1f(GLuint indx
, GLfloat x
) override
;
424 void VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) override
;
426 void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) override
;
428 void VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) override
;
430 void VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) override
;
432 void VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) override
;
434 void VertexAttrib4f(GLuint indx
,
440 void VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) override
;
442 void VertexAttribPointer(GLuint indx
,
445 GLboolean normalized
,
447 const void* ptr
) override
;
449 void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) override
;
451 void BlitFramebufferCHROMIUM(GLint srcX0
,
460 GLenum filter
) override
;
462 void RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
464 GLenum internalformat
,
466 GLsizei height
) override
;
468 void RenderbufferStorageMultisampleEXT(GLenum target
,
470 GLenum internalformat
,
472 GLsizei height
) override
;
474 void FramebufferTexture2DMultisampleEXT(GLenum target
,
479 GLsizei samples
) override
;
481 void TexStorage2DEXT(GLenum target
,
483 GLenum internalFormat
,
485 GLsizei height
) override
;
487 void GenQueriesEXT(GLsizei n
, GLuint
* queries
) override
;
489 void DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) override
;
491 GLboolean
IsQueryEXT(GLuint id
) override
;
493 void BeginQueryEXT(GLenum target
, GLuint id
) override
;
495 void EndQueryEXT(GLenum target
) override
;
497 void GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) override
;
499 void GetQueryObjectuivEXT(GLuint id
, GLenum pname
, GLuint
* params
) override
;
501 void InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) override
;
503 void PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) override
;
505 void PopGroupMarkerEXT() override
;
507 void GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) override
;
509 void DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) override
;
511 GLboolean
IsVertexArrayOES(GLuint array
) override
;
513 void BindVertexArrayOES(GLuint array
) override
;
515 void SwapBuffers() override
;
517 GLuint
GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
520 GLuint offset
) override
;
522 GLboolean
EnableFeatureCHROMIUM(const char* feature
) override
;
524 void* MapBufferCHROMIUM(GLuint target
, GLenum access
) override
;
526 GLboolean
UnmapBufferCHROMIUM(GLuint target
) override
;
528 void* MapBufferSubDataCHROMIUM(GLuint target
,
531 GLenum access
) override
;
533 void UnmapBufferSubDataCHROMIUM(const void* mem
) override
;
535 void* MapTexSubImage2DCHROMIUM(GLenum target
,
543 GLenum access
) override
;
545 void UnmapTexSubImage2DCHROMIUM(const void* mem
) override
;
547 void ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) override
;
549 const GLchar
* GetRequestableExtensionsCHROMIUM() override
;
551 void RequestExtensionCHROMIUM(const char* extension
) override
;
553 void RateLimitOffscreenContextCHROMIUM() override
;
555 void GetProgramInfoCHROMIUM(GLuint program
,
558 void* info
) override
;
560 GLuint
CreateStreamTextureCHROMIUM(GLuint texture
) override
;
562 GLuint
CreateImageCHROMIUM(ClientBuffer buffer
,
565 GLenum internalformat
) override
;
567 void DestroyImageCHROMIUM(GLuint image_id
) override
;
569 GLuint
CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
571 GLenum internalformat
,
572 GLenum usage
) override
;
574 void GetTranslatedShaderSourceANGLE(GLuint shader
,
577 char* source
) override
;
579 void PostSubBufferCHROMIUM(GLint x
,
582 GLint height
) override
;
584 void TexImageIOSurface2DCHROMIUM(GLenum target
,
588 GLuint plane
) override
;
590 void CopyTextureCHROMIUM(GLenum target
,
594 GLint internalformat
,
595 GLenum dest_type
) override
;
597 void DrawArraysInstancedANGLE(GLenum mode
,
600 GLsizei primcount
) override
;
602 void DrawElementsInstancedANGLE(GLenum mode
,
606 GLsizei primcount
) override
;
608 void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) override
;
610 void GenMailboxCHROMIUM(GLbyte
* mailbox
) override
;
612 void ProduceTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) override
;
614 void ProduceTextureDirectCHROMIUM(GLuint texture
,
616 const GLbyte
* mailbox
) override
;
618 void ConsumeTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) override
;
620 GLuint
CreateAndConsumeTextureCHROMIUM(GLenum target
,
621 const GLbyte
* mailbox
) override
;
623 void BindUniformLocationCHROMIUM(GLuint program
,
625 const char* name
) override
;
627 void GenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
) override
;
629 void DeleteValuebuffersCHROMIUM(GLsizei n
, const GLuint
* valuebuffers
) override
;
631 GLboolean
IsValuebufferCHROMIUM(GLuint valuebuffer
) override
;
633 void BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) override
;
635 void SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) override
;
637 void PopulateSubscribedValuesCHROMIUM(GLenum target
) override
;
639 void UniformValuebufferCHROMIUM(GLint location
,
641 GLenum subscription
) override
;
643 void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) override
;
645 void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) override
;
647 void TraceBeginCHROMIUM(const char* name
) override
;
649 void TraceEndCHROMIUM() override
;
651 void AsyncTexSubImage2DCHROMIUM(GLenum target
,
659 const void* data
) override
;
661 void AsyncTexImage2DCHROMIUM(GLenum target
,
663 GLenum internalformat
,
669 const void* pixels
) override
;
671 void WaitAsyncTexImage2DCHROMIUM(GLenum target
) override
;
673 void WaitAllAsyncTexImage2DCHROMIUM() override
;
675 void DiscardFramebufferEXT(GLenum target
,
677 const GLenum
* attachments
) override
;
679 void LoseContextCHROMIUM(GLenum current
, GLenum other
) override
;
681 GLuint
InsertSyncPointCHROMIUM() override
;
683 void WaitSyncPointCHROMIUM(GLuint sync_point
) override
;
685 void DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) override
;
687 void DiscardBackbufferCHROMIUM() override
;
689 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
690 GLenum plane_transform
,
691 GLuint overlay_texture_id
,
699 GLfloat uv_height
) override
;
701 void MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) override
;
703 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) override
;
705 void BlendBarrierKHR() override
;
707 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_