Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_implementation_autogen.h
blobf58c0a80a81b75ed01eeb4c4a82f12e89ec45c5f
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
9 // DO NOT EDIT!
11 // This file is included by gles2_implementation.h to declare the
12 // GL api functions.
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,
21 GLuint index,
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,
33 GLclampf green,
34 GLclampf blue,
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,
44 GLenum dstRGB,
45 GLenum srcAlpha,
46 GLenum dstAlpha) override;
48 void BufferData(GLenum target,
49 GLsizeiptr size,
50 const void* data,
51 GLenum usage) override;
53 void BufferSubData(GLenum target,
54 GLintptr offset,
55 GLsizeiptr size,
56 const void* data) override;
58 GLenum CheckFramebufferStatus(GLenum target) override;
60 void Clear(GLbitfield mask) override;
62 void ClearColor(GLclampf red,
63 GLclampf green,
64 GLclampf blue,
65 GLclampf alpha) override;
67 void ClearDepthf(GLclampf depth) override;
69 void ClearStencil(GLint s) override;
71 void ColorMask(GLboolean red,
72 GLboolean green,
73 GLboolean blue,
74 GLboolean alpha) override;
76 void CompileShader(GLuint shader) override;
78 void CompressedTexImage2D(GLenum target,
79 GLint level,
80 GLenum internalformat,
81 GLsizei width,
82 GLsizei height,
83 GLint border,
84 GLsizei imageSize,
85 const void* data) override;
87 void CompressedTexSubImage2D(GLenum target,
88 GLint level,
89 GLint xoffset,
90 GLint yoffset,
91 GLsizei width,
92 GLsizei height,
93 GLenum format,
94 GLsizei imageSize,
95 const void* data) override;
97 void CopyTexImage2D(GLenum target,
98 GLint level,
99 GLenum internalformat,
100 GLint x,
101 GLint y,
102 GLsizei width,
103 GLsizei height,
104 GLint border) override;
106 void CopyTexSubImage2D(GLenum target,
107 GLint level,
108 GLint xoffset,
109 GLint yoffset,
110 GLint x,
111 GLint y,
112 GLsizei width,
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,
146 GLsizei count,
147 GLenum type,
148 const void* indices) override;
150 void Enable(GLenum cap) override;
152 void Finish() override;
154 void Flush() override;
156 void FramebufferRenderbuffer(GLenum target,
157 GLenum attachment,
158 GLenum renderbuffertarget,
159 GLuint renderbuffer) override;
161 void FramebufferTexture2D(GLenum target,
162 GLenum attachment,
163 GLenum textarget,
164 GLuint texture,
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,
180 GLuint index,
181 GLsizei bufsize,
182 GLsizei* length,
183 GLint* size,
184 GLenum* type,
185 char* name) override;
187 void GetActiveUniform(GLuint program,
188 GLuint index,
189 GLsizei bufsize,
190 GLsizei* length,
191 GLint* size,
192 GLenum* type,
193 char* name) override;
195 void GetAttachedShaders(GLuint program,
196 GLsizei maxcount,
197 GLsizei* count,
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,
211 GLenum attachment,
212 GLenum pname,
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,
220 GLsizei bufsize,
221 GLsizei* length,
222 char* infolog) override;
224 void GetRenderbufferParameteriv(GLenum target,
225 GLenum pname,
226 GLint* params) override;
228 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) override;
230 void GetShaderInfoLog(GLuint shader,
231 GLsizei bufsize,
232 GLsizei* length,
233 char* infolog) override;
235 void GetShaderPrecisionFormat(GLenum shadertype,
236 GLenum precisiontype,
237 GLint* range,
238 GLint* precision) override;
240 void GetShaderSource(GLuint shader,
241 GLsizei bufsize,
242 GLsizei* length,
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,
258 GLenum pname,
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,
286 GLint y,
287 GLsizei width,
288 GLsizei height,
289 GLenum format,
290 GLenum type,
291 void* pixels) override;
293 void ReleaseShaderCompiler() override;
295 void RenderbufferStorage(GLenum target,
296 GLenum internalformat,
297 GLsizei width,
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,
306 GLenum binaryformat,
307 const void* binary,
308 GLsizei length) override;
310 void ShaderSource(GLuint shader,
311 GLsizei count,
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,
322 GLenum func,
323 GLint ref,
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,
333 GLenum fail,
334 GLenum zfail,
335 GLenum zpass) override;
337 void TexImage2D(GLenum target,
338 GLint level,
339 GLint internalformat,
340 GLsizei width,
341 GLsizei height,
342 GLint border,
343 GLenum format,
344 GLenum type,
345 const void* pixels) override;
347 void TexParameterf(GLenum target, GLenum pname, GLfloat param) override;
349 void TexParameterfv(GLenum target,
350 GLenum pname,
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,
358 GLint level,
359 GLint xoffset,
360 GLint yoffset,
361 GLsizei width,
362 GLsizei height,
363 GLenum format,
364 GLenum type,
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,
392 GLfloat x,
393 GLfloat y,
394 GLfloat z,
395 GLfloat w) override;
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,
404 GLsizei count,
405 GLboolean transpose,
406 const GLfloat* value) override;
408 void UniformMatrix3fv(GLint location,
409 GLsizei count,
410 GLboolean transpose,
411 const GLfloat* value) override;
413 void UniformMatrix4fv(GLint location,
414 GLsizei count,
415 GLboolean transpose,
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,
435 GLfloat x,
436 GLfloat y,
437 GLfloat z,
438 GLfloat w) override;
440 void VertexAttrib4fv(GLuint indx, const GLfloat* values) override;
442 void VertexAttribPointer(GLuint indx,
443 GLint size,
444 GLenum type,
445 GLboolean normalized,
446 GLsizei stride,
447 const void* ptr) override;
449 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) override;
451 void BlitFramebufferCHROMIUM(GLint srcX0,
452 GLint srcY0,
453 GLint srcX1,
454 GLint srcY1,
455 GLint dstX0,
456 GLint dstY0,
457 GLint dstX1,
458 GLint dstY1,
459 GLbitfield mask,
460 GLenum filter) override;
462 void RenderbufferStorageMultisampleCHROMIUM(GLenum target,
463 GLsizei samples,
464 GLenum internalformat,
465 GLsizei width,
466 GLsizei height) override;
468 void RenderbufferStorageMultisampleEXT(GLenum target,
469 GLsizei samples,
470 GLenum internalformat,
471 GLsizei width,
472 GLsizei height) override;
474 void FramebufferTexture2DMultisampleEXT(GLenum target,
475 GLenum attachment,
476 GLenum textarget,
477 GLuint texture,
478 GLint level,
479 GLsizei samples) override;
481 void TexStorage2DEXT(GLenum target,
482 GLsizei levels,
483 GLenum internalFormat,
484 GLsizei width,
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,
518 GLsizei count,
519 GLenum type,
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,
529 GLintptr offset,
530 GLsizeiptr size,
531 GLenum access) override;
533 void UnmapBufferSubDataCHROMIUM(const void* mem) override;
535 void* MapTexSubImage2DCHROMIUM(GLenum target,
536 GLint level,
537 GLint xoffset,
538 GLint yoffset,
539 GLsizei width,
540 GLsizei height,
541 GLenum format,
542 GLenum type,
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,
556 GLsizei bufsize,
557 GLsizei* size,
558 void* info) override;
560 GLuint CreateStreamTextureCHROMIUM(GLuint texture) override;
562 GLuint CreateImageCHROMIUM(ClientBuffer buffer,
563 GLsizei width,
564 GLsizei height,
565 GLenum internalformat) override;
567 void DestroyImageCHROMIUM(GLuint image_id) override;
569 GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
570 GLsizei height,
571 GLenum internalformat,
572 GLenum usage) override;
574 void GetTranslatedShaderSourceANGLE(GLuint shader,
575 GLsizei bufsize,
576 GLsizei* length,
577 char* source) override;
579 void PostSubBufferCHROMIUM(GLint x,
580 GLint y,
581 GLint width,
582 GLint height) override;
584 void TexImageIOSurface2DCHROMIUM(GLenum target,
585 GLsizei width,
586 GLsizei height,
587 GLuint ioSurfaceId,
588 GLuint plane) override;
590 void CopyTextureCHROMIUM(GLenum target,
591 GLenum source_id,
592 GLenum dest_id,
593 GLint level,
594 GLint internalformat,
595 GLenum dest_type) override;
597 void DrawArraysInstancedANGLE(GLenum mode,
598 GLint first,
599 GLsizei count,
600 GLsizei primcount) override;
602 void DrawElementsInstancedANGLE(GLenum mode,
603 GLsizei count,
604 GLenum type,
605 const void* indices,
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,
615 GLenum target,
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,
624 GLint location,
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,
640 GLenum target,
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,
652 GLint level,
653 GLint xoffset,
654 GLint yoffset,
655 GLsizei width,
656 GLsizei height,
657 GLenum format,
658 GLenum type,
659 const void* data) override;
661 void AsyncTexImage2DCHROMIUM(GLenum target,
662 GLint level,
663 GLenum internalformat,
664 GLsizei width,
665 GLsizei height,
666 GLint border,
667 GLenum format,
668 GLenum type,
669 const void* pixels) override;
671 void WaitAsyncTexImage2DCHROMIUM(GLenum target) override;
673 void WaitAllAsyncTexImage2DCHROMIUM() override;
675 void DiscardFramebufferEXT(GLenum target,
676 GLsizei count,
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,
692 GLint bounds_x,
693 GLint bounds_y,
694 GLint bounds_width,
695 GLint bounds_height,
696 GLfloat uv_x,
697 GLfloat uv_y,
698 GLfloat uv_width,
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_