We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_interface_autogen.h
blob3da9e224d3226abb45267d58bfd393dba02ce6e4
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_interface.h to declare the
12 // GL api functions.
13 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_AUTOGEN_H_
14 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_AUTOGEN_H_
16 virtual void ActiveTexture(GLenum texture) = 0;
17 virtual void AttachShader(GLuint program, GLuint shader) = 0;
18 virtual void BindAttribLocation(GLuint program,
19 GLuint index,
20 const char* name) = 0;
21 virtual void BindBuffer(GLenum target, GLuint buffer) = 0;
22 virtual void BindBufferBase(GLenum target, GLuint index, GLuint buffer) = 0;
23 virtual void BindBufferRange(GLenum target,
24 GLuint index,
25 GLuint buffer,
26 GLintptr offset,
27 GLsizeiptr size) = 0;
28 virtual void BindFramebuffer(GLenum target, GLuint framebuffer) = 0;
29 virtual void BindRenderbuffer(GLenum target, GLuint renderbuffer) = 0;
30 virtual void BindSampler(GLuint unit, GLuint sampler) = 0;
31 virtual void BindTexture(GLenum target, GLuint texture) = 0;
32 virtual void BindTransformFeedback(GLenum target, GLuint transformfeedback) = 0;
33 virtual void BlendColor(GLclampf red,
34 GLclampf green,
35 GLclampf blue,
36 GLclampf alpha) = 0;
37 virtual void BlendEquation(GLenum mode) = 0;
38 virtual void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) = 0;
39 virtual void BlendFunc(GLenum sfactor, GLenum dfactor) = 0;
40 virtual void BlendFuncSeparate(GLenum srcRGB,
41 GLenum dstRGB,
42 GLenum srcAlpha,
43 GLenum dstAlpha) = 0;
44 virtual void BufferData(GLenum target,
45 GLsizeiptr size,
46 const void* data,
47 GLenum usage) = 0;
48 virtual void BufferSubData(GLenum target,
49 GLintptr offset,
50 GLsizeiptr size,
51 const void* data) = 0;
52 virtual GLenum CheckFramebufferStatus(GLenum target) = 0;
53 virtual void Clear(GLbitfield mask) = 0;
54 virtual void ClearBufferfi(GLenum buffer,
55 GLint drawbuffers,
56 GLfloat depth,
57 GLint stencil) = 0;
58 virtual void ClearBufferfv(GLenum buffer,
59 GLint drawbuffers,
60 const GLfloat* value) = 0;
61 virtual void ClearBufferiv(GLenum buffer,
62 GLint drawbuffers,
63 const GLint* value) = 0;
64 virtual void ClearBufferuiv(GLenum buffer,
65 GLint drawbuffers,
66 const GLuint* value) = 0;
67 virtual void ClearColor(GLclampf red,
68 GLclampf green,
69 GLclampf blue,
70 GLclampf alpha) = 0;
71 virtual void ClearDepthf(GLclampf depth) = 0;
72 virtual void ClearStencil(GLint s) = 0;
73 virtual GLenum ClientWaitSync(GLsync sync,
74 GLbitfield flags,
75 GLuint64 timeout) = 0;
76 virtual void ColorMask(GLboolean red,
77 GLboolean green,
78 GLboolean blue,
79 GLboolean alpha) = 0;
80 virtual void CompileShader(GLuint shader) = 0;
81 virtual void CompressedTexImage2D(GLenum target,
82 GLint level,
83 GLenum internalformat,
84 GLsizei width,
85 GLsizei height,
86 GLint border,
87 GLsizei imageSize,
88 const void* data) = 0;
89 virtual void CompressedTexSubImage2D(GLenum target,
90 GLint level,
91 GLint xoffset,
92 GLint yoffset,
93 GLsizei width,
94 GLsizei height,
95 GLenum format,
96 GLsizei imageSize,
97 const void* data) = 0;
98 virtual void CopyBufferSubData(GLenum readtarget,
99 GLenum writetarget,
100 GLintptr readoffset,
101 GLintptr writeoffset,
102 GLsizeiptr size) = 0;
103 virtual void CopyTexImage2D(GLenum target,
104 GLint level,
105 GLenum internalformat,
106 GLint x,
107 GLint y,
108 GLsizei width,
109 GLsizei height,
110 GLint border) = 0;
111 virtual void CopyTexSubImage2D(GLenum target,
112 GLint level,
113 GLint xoffset,
114 GLint yoffset,
115 GLint x,
116 GLint y,
117 GLsizei width,
118 GLsizei height) = 0;
119 virtual void CopyTexSubImage3D(GLenum target,
120 GLint level,
121 GLint xoffset,
122 GLint yoffset,
123 GLint zoffset,
124 GLint x,
125 GLint y,
126 GLsizei width,
127 GLsizei height) = 0;
128 virtual GLuint CreateProgram() = 0;
129 virtual GLuint CreateShader(GLenum type) = 0;
130 virtual void CullFace(GLenum mode) = 0;
131 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) = 0;
132 virtual void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) = 0;
133 virtual void DeleteProgram(GLuint program) = 0;
134 virtual void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) = 0;
135 virtual void DeleteSamplers(GLsizei n, const GLuint* samplers) = 0;
136 virtual void DeleteSync(GLsync sync) = 0;
137 virtual void DeleteShader(GLuint shader) = 0;
138 virtual void DeleteTextures(GLsizei n, const GLuint* textures) = 0;
139 virtual void DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) = 0;
140 virtual void DepthFunc(GLenum func) = 0;
141 virtual void DepthMask(GLboolean flag) = 0;
142 virtual void DepthRangef(GLclampf zNear, GLclampf zFar) = 0;
143 virtual void DetachShader(GLuint program, GLuint shader) = 0;
144 virtual void Disable(GLenum cap) = 0;
145 virtual void DisableVertexAttribArray(GLuint index) = 0;
146 virtual void DrawArrays(GLenum mode, GLint first, GLsizei count) = 0;
147 virtual void DrawElements(GLenum mode,
148 GLsizei count,
149 GLenum type,
150 const void* indices) = 0;
151 virtual void DrawRangeElements(GLenum mode,
152 GLuint start,
153 GLuint end,
154 GLsizei count,
155 GLenum type,
156 const void* indices) = 0;
157 virtual void Enable(GLenum cap) = 0;
158 virtual void EnableVertexAttribArray(GLuint index) = 0;
159 virtual GLsync FenceSync(GLenum condition, GLbitfield flags) = 0;
160 virtual void Finish() = 0;
161 virtual void Flush() = 0;
162 virtual void FramebufferRenderbuffer(GLenum target,
163 GLenum attachment,
164 GLenum renderbuffertarget,
165 GLuint renderbuffer) = 0;
166 virtual void FramebufferTexture2D(GLenum target,
167 GLenum attachment,
168 GLenum textarget,
169 GLuint texture,
170 GLint level) = 0;
171 virtual void FramebufferTextureLayer(GLenum target,
172 GLenum attachment,
173 GLuint texture,
174 GLint level,
175 GLint layer) = 0;
176 virtual void FrontFace(GLenum mode) = 0;
177 virtual void GenBuffers(GLsizei n, GLuint* buffers) = 0;
178 virtual void GenerateMipmap(GLenum target) = 0;
179 virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) = 0;
180 virtual void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) = 0;
181 virtual void GenSamplers(GLsizei n, GLuint* samplers) = 0;
182 virtual void GenTextures(GLsizei n, GLuint* textures) = 0;
183 virtual void GenTransformFeedbacks(GLsizei n, GLuint* ids) = 0;
184 virtual void GetActiveAttrib(GLuint program,
185 GLuint index,
186 GLsizei bufsize,
187 GLsizei* length,
188 GLint* size,
189 GLenum* type,
190 char* name) = 0;
191 virtual void GetActiveUniform(GLuint program,
192 GLuint index,
193 GLsizei bufsize,
194 GLsizei* length,
195 GLint* size,
196 GLenum* type,
197 char* name) = 0;
198 virtual void GetActiveUniformBlockiv(GLuint program,
199 GLuint index,
200 GLenum pname,
201 GLint* params) = 0;
202 virtual void GetActiveUniformBlockName(GLuint program,
203 GLuint index,
204 GLsizei bufsize,
205 GLsizei* length,
206 char* name) = 0;
207 virtual void GetActiveUniformsiv(GLuint program,
208 GLsizei count,
209 const GLuint* indices,
210 GLenum pname,
211 GLint* params) = 0;
212 virtual void GetAttachedShaders(GLuint program,
213 GLsizei maxcount,
214 GLsizei* count,
215 GLuint* shaders) = 0;
216 virtual GLint GetAttribLocation(GLuint program, const char* name) = 0;
217 virtual void GetBooleanv(GLenum pname, GLboolean* params) = 0;
218 virtual void GetBufferParameteriv(GLenum target,
219 GLenum pname,
220 GLint* params) = 0;
221 virtual GLenum GetError() = 0;
222 virtual void GetFloatv(GLenum pname, GLfloat* params) = 0;
223 virtual GLint GetFragDataLocation(GLuint program, const char* name) = 0;
224 virtual void GetFramebufferAttachmentParameteriv(GLenum target,
225 GLenum attachment,
226 GLenum pname,
227 GLint* params) = 0;
228 virtual void GetIntegerv(GLenum pname, GLint* params) = 0;
229 virtual void GetInternalformativ(GLenum target,
230 GLenum format,
231 GLenum pname,
232 GLsizei bufSize,
233 GLint* params) = 0;
234 virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0;
235 virtual void GetProgramInfoLog(GLuint program,
236 GLsizei bufsize,
237 GLsizei* length,
238 char* infolog) = 0;
239 virtual void GetRenderbufferParameteriv(GLenum target,
240 GLenum pname,
241 GLint* params) = 0;
242 virtual void GetSamplerParameterfv(GLuint sampler,
243 GLenum pname,
244 GLfloat* params) = 0;
245 virtual void GetSamplerParameteriv(GLuint sampler,
246 GLenum pname,
247 GLint* params) = 0;
248 virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) = 0;
249 virtual void GetShaderInfoLog(GLuint shader,
250 GLsizei bufsize,
251 GLsizei* length,
252 char* infolog) = 0;
253 virtual void GetShaderPrecisionFormat(GLenum shadertype,
254 GLenum precisiontype,
255 GLint* range,
256 GLint* precision) = 0;
257 virtual void GetShaderSource(GLuint shader,
258 GLsizei bufsize,
259 GLsizei* length,
260 char* source) = 0;
261 virtual const GLubyte* GetString(GLenum name) = 0;
262 virtual void GetSynciv(GLsync sync,
263 GLenum pname,
264 GLsizei bufsize,
265 GLsizei* length,
266 GLint* values) = 0;
267 virtual void GetTexParameterfv(GLenum target,
268 GLenum pname,
269 GLfloat* params) = 0;
270 virtual void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) = 0;
271 virtual void GetTransformFeedbackVarying(GLuint program,
272 GLuint index,
273 GLsizei bufsize,
274 GLsizei* length,
275 GLsizei* size,
276 GLenum* type,
277 char* name) = 0;
278 virtual GLuint GetUniformBlockIndex(GLuint program, const char* name) = 0;
279 virtual void GetUniformfv(GLuint program, GLint location, GLfloat* params) = 0;
280 virtual void GetUniformiv(GLuint program, GLint location, GLint* params) = 0;
281 virtual void GetUniformIndices(GLuint program,
282 GLsizei count,
283 const char* const* names,
284 GLuint* indices) = 0;
285 virtual GLint GetUniformLocation(GLuint program, const char* name) = 0;
286 virtual void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) = 0;
287 virtual void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) = 0;
288 virtual void GetVertexAttribPointerv(GLuint index,
289 GLenum pname,
290 void** pointer) = 0;
291 virtual void Hint(GLenum target, GLenum mode) = 0;
292 virtual void InvalidateFramebuffer(GLenum target,
293 GLsizei count,
294 const GLenum* attachments) = 0;
295 virtual void InvalidateSubFramebuffer(GLenum target,
296 GLsizei count,
297 const GLenum* attachments,
298 GLint x,
299 GLint y,
300 GLsizei width,
301 GLsizei height) = 0;
302 virtual GLboolean IsBuffer(GLuint buffer) = 0;
303 virtual GLboolean IsEnabled(GLenum cap) = 0;
304 virtual GLboolean IsFramebuffer(GLuint framebuffer) = 0;
305 virtual GLboolean IsProgram(GLuint program) = 0;
306 virtual GLboolean IsRenderbuffer(GLuint renderbuffer) = 0;
307 virtual GLboolean IsSampler(GLuint sampler) = 0;
308 virtual GLboolean IsShader(GLuint shader) = 0;
309 virtual GLboolean IsSync(GLsync sync) = 0;
310 virtual GLboolean IsTexture(GLuint texture) = 0;
311 virtual GLboolean IsTransformFeedback(GLuint transformfeedback) = 0;
312 virtual void LineWidth(GLfloat width) = 0;
313 virtual void LinkProgram(GLuint program) = 0;
314 virtual void PauseTransformFeedback() = 0;
315 virtual void PixelStorei(GLenum pname, GLint param) = 0;
316 virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0;
317 virtual void ReadBuffer(GLenum src) = 0;
318 virtual void ReadPixels(GLint x,
319 GLint y,
320 GLsizei width,
321 GLsizei height,
322 GLenum format,
323 GLenum type,
324 void* pixels) = 0;
325 virtual void ReleaseShaderCompiler() = 0;
326 virtual void RenderbufferStorage(GLenum target,
327 GLenum internalformat,
328 GLsizei width,
329 GLsizei height) = 0;
330 virtual void ResumeTransformFeedback() = 0;
331 virtual void SampleCoverage(GLclampf value, GLboolean invert) = 0;
332 virtual void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) = 0;
333 virtual void SamplerParameterfv(GLuint sampler,
334 GLenum pname,
335 const GLfloat* params) = 0;
336 virtual void SamplerParameteri(GLuint sampler, GLenum pname, GLint param) = 0;
337 virtual void SamplerParameteriv(GLuint sampler,
338 GLenum pname,
339 const GLint* params) = 0;
340 virtual void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) = 0;
341 virtual void ShaderBinary(GLsizei n,
342 const GLuint* shaders,
343 GLenum binaryformat,
344 const void* binary,
345 GLsizei length) = 0;
346 virtual void ShaderSource(GLuint shader,
347 GLsizei count,
348 const GLchar* const* str,
349 const GLint* length) = 0;
350 virtual void ShallowFinishCHROMIUM() = 0;
351 virtual void ShallowFlushCHROMIUM() = 0;
352 virtual void OrderingBarrierCHROMIUM() = 0;
353 virtual void StencilFunc(GLenum func, GLint ref, GLuint mask) = 0;
354 virtual void StencilFuncSeparate(GLenum face,
355 GLenum func,
356 GLint ref,
357 GLuint mask) = 0;
358 virtual void StencilMask(GLuint mask) = 0;
359 virtual void StencilMaskSeparate(GLenum face, GLuint mask) = 0;
360 virtual void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) = 0;
361 virtual void StencilOpSeparate(GLenum face,
362 GLenum fail,
363 GLenum zfail,
364 GLenum zpass) = 0;
365 virtual void TexImage2D(GLenum target,
366 GLint level,
367 GLint internalformat,
368 GLsizei width,
369 GLsizei height,
370 GLint border,
371 GLenum format,
372 GLenum type,
373 const void* pixels) = 0;
374 virtual void TexImage3D(GLenum target,
375 GLint level,
376 GLint internalformat,
377 GLsizei width,
378 GLsizei height,
379 GLsizei depth,
380 GLint border,
381 GLenum format,
382 GLenum type,
383 const void* pixels) = 0;
384 virtual void TexParameterf(GLenum target, GLenum pname, GLfloat param) = 0;
385 virtual void TexParameterfv(GLenum target,
386 GLenum pname,
387 const GLfloat* params) = 0;
388 virtual void TexParameteri(GLenum target, GLenum pname, GLint param) = 0;
389 virtual void TexParameteriv(GLenum target,
390 GLenum pname,
391 const GLint* params) = 0;
392 virtual void TexStorage3D(GLenum target,
393 GLsizei levels,
394 GLenum internalFormat,
395 GLsizei width,
396 GLsizei height,
397 GLsizei depth) = 0;
398 virtual void TexSubImage2D(GLenum target,
399 GLint level,
400 GLint xoffset,
401 GLint yoffset,
402 GLsizei width,
403 GLsizei height,
404 GLenum format,
405 GLenum type,
406 const void* pixels) = 0;
407 virtual void TexSubImage3D(GLenum target,
408 GLint level,
409 GLint xoffset,
410 GLint yoffset,
411 GLint zoffset,
412 GLsizei width,
413 GLsizei height,
414 GLsizei depth,
415 GLenum format,
416 GLenum type,
417 const void* pixels) = 0;
418 virtual void TransformFeedbackVaryings(GLuint program,
419 GLsizei count,
420 const char* const* varyings,
421 GLenum buffermode) = 0;
422 virtual void Uniform1f(GLint location, GLfloat x) = 0;
423 virtual void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) = 0;
424 virtual void Uniform1i(GLint location, GLint x) = 0;
425 virtual void Uniform1iv(GLint location, GLsizei count, const GLint* v) = 0;
426 virtual void Uniform1ui(GLint location, GLuint x) = 0;
427 virtual void Uniform1uiv(GLint location, GLsizei count, const GLuint* v) = 0;
428 virtual void Uniform2f(GLint location, GLfloat x, GLfloat y) = 0;
429 virtual void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) = 0;
430 virtual void Uniform2i(GLint location, GLint x, GLint y) = 0;
431 virtual void Uniform2iv(GLint location, GLsizei count, const GLint* v) = 0;
432 virtual void Uniform2ui(GLint location, GLuint x, GLuint y) = 0;
433 virtual void Uniform2uiv(GLint location, GLsizei count, const GLuint* v) = 0;
434 virtual void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) = 0;
435 virtual void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) = 0;
436 virtual void Uniform3i(GLint location, GLint x, GLint y, GLint z) = 0;
437 virtual void Uniform3iv(GLint location, GLsizei count, const GLint* v) = 0;
438 virtual void Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) = 0;
439 virtual void Uniform3uiv(GLint location, GLsizei count, const GLuint* v) = 0;
440 virtual void Uniform4f(GLint location,
441 GLfloat x,
442 GLfloat y,
443 GLfloat z,
444 GLfloat w) = 0;
445 virtual void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) = 0;
446 virtual void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) = 0;
447 virtual void Uniform4iv(GLint location, GLsizei count, const GLint* v) = 0;
448 virtual void Uniform4ui(GLint location,
449 GLuint x,
450 GLuint y,
451 GLuint z,
452 GLuint w) = 0;
453 virtual void Uniform4uiv(GLint location, GLsizei count, const GLuint* v) = 0;
454 virtual void UniformBlockBinding(GLuint program,
455 GLuint index,
456 GLuint binding) = 0;
457 virtual void UniformMatrix2fv(GLint location,
458 GLsizei count,
459 GLboolean transpose,
460 const GLfloat* value) = 0;
461 virtual void UniformMatrix2x3fv(GLint location,
462 GLsizei count,
463 GLboolean transpose,
464 const GLfloat* value) = 0;
465 virtual void UniformMatrix2x4fv(GLint location,
466 GLsizei count,
467 GLboolean transpose,
468 const GLfloat* value) = 0;
469 virtual void UniformMatrix3fv(GLint location,
470 GLsizei count,
471 GLboolean transpose,
472 const GLfloat* value) = 0;
473 virtual void UniformMatrix3x2fv(GLint location,
474 GLsizei count,
475 GLboolean transpose,
476 const GLfloat* value) = 0;
477 virtual void UniformMatrix3x4fv(GLint location,
478 GLsizei count,
479 GLboolean transpose,
480 const GLfloat* value) = 0;
481 virtual void UniformMatrix4fv(GLint location,
482 GLsizei count,
483 GLboolean transpose,
484 const GLfloat* value) = 0;
485 virtual void UniformMatrix4x2fv(GLint location,
486 GLsizei count,
487 GLboolean transpose,
488 const GLfloat* value) = 0;
489 virtual void UniformMatrix4x3fv(GLint location,
490 GLsizei count,
491 GLboolean transpose,
492 const GLfloat* value) = 0;
493 virtual void UseProgram(GLuint program) = 0;
494 virtual void ValidateProgram(GLuint program) = 0;
495 virtual void VertexAttrib1f(GLuint indx, GLfloat x) = 0;
496 virtual void VertexAttrib1fv(GLuint indx, const GLfloat* values) = 0;
497 virtual void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) = 0;
498 virtual void VertexAttrib2fv(GLuint indx, const GLfloat* values) = 0;
499 virtual void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) = 0;
500 virtual void VertexAttrib3fv(GLuint indx, const GLfloat* values) = 0;
501 virtual void VertexAttrib4f(GLuint indx,
502 GLfloat x,
503 GLfloat y,
504 GLfloat z,
505 GLfloat w) = 0;
506 virtual void VertexAttrib4fv(GLuint indx, const GLfloat* values) = 0;
507 virtual void VertexAttribI4i(GLuint indx,
508 GLint x,
509 GLint y,
510 GLint z,
511 GLint w) = 0;
512 virtual void VertexAttribI4iv(GLuint indx, const GLint* values) = 0;
513 virtual void VertexAttribI4ui(GLuint indx,
514 GLuint x,
515 GLuint y,
516 GLuint z,
517 GLuint w) = 0;
518 virtual void VertexAttribI4uiv(GLuint indx, const GLuint* values) = 0;
519 virtual void VertexAttribIPointer(GLuint indx,
520 GLint size,
521 GLenum type,
522 GLsizei stride,
523 const void* ptr) = 0;
524 virtual void VertexAttribPointer(GLuint indx,
525 GLint size,
526 GLenum type,
527 GLboolean normalized,
528 GLsizei stride,
529 const void* ptr) = 0;
530 virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) = 0;
531 virtual void WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) = 0;
532 virtual void BlitFramebufferCHROMIUM(GLint srcX0,
533 GLint srcY0,
534 GLint srcX1,
535 GLint srcY1,
536 GLint dstX0,
537 GLint dstY0,
538 GLint dstX1,
539 GLint dstY1,
540 GLbitfield mask,
541 GLenum filter) = 0;
542 virtual void RenderbufferStorageMultisampleCHROMIUM(GLenum target,
543 GLsizei samples,
544 GLenum internalformat,
545 GLsizei width,
546 GLsizei height) = 0;
547 virtual void RenderbufferStorageMultisampleEXT(GLenum target,
548 GLsizei samples,
549 GLenum internalformat,
550 GLsizei width,
551 GLsizei height) = 0;
552 virtual void FramebufferTexture2DMultisampleEXT(GLenum target,
553 GLenum attachment,
554 GLenum textarget,
555 GLuint texture,
556 GLint level,
557 GLsizei samples) = 0;
558 virtual void TexStorage2DEXT(GLenum target,
559 GLsizei levels,
560 GLenum internalFormat,
561 GLsizei width,
562 GLsizei height) = 0;
563 virtual void GenQueriesEXT(GLsizei n, GLuint* queries) = 0;
564 virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) = 0;
565 virtual GLboolean IsQueryEXT(GLuint id) = 0;
566 virtual void BeginQueryEXT(GLenum target, GLuint id) = 0;
567 virtual void BeginTransformFeedback(GLenum primitivemode) = 0;
568 virtual void EndQueryEXT(GLenum target) = 0;
569 virtual void EndTransformFeedback() = 0;
570 virtual void GetQueryivEXT(GLenum target, GLenum pname, GLint* params) = 0;
571 virtual void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) = 0;
572 virtual void InsertEventMarkerEXT(GLsizei length, const GLchar* marker) = 0;
573 virtual void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) = 0;
574 virtual void PopGroupMarkerEXT() = 0;
575 virtual void GenVertexArraysOES(GLsizei n, GLuint* arrays) = 0;
576 virtual void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) = 0;
577 virtual GLboolean IsVertexArrayOES(GLuint array) = 0;
578 virtual void BindVertexArrayOES(GLuint array) = 0;
579 virtual void SwapBuffers() = 0;
580 virtual GLuint GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
581 GLsizei count,
582 GLenum type,
583 GLuint offset) = 0;
584 virtual GLboolean EnableFeatureCHROMIUM(const char* feature) = 0;
585 virtual void* MapBufferCHROMIUM(GLuint target, GLenum access) = 0;
586 virtual GLboolean UnmapBufferCHROMIUM(GLuint target) = 0;
587 virtual void* MapBufferSubDataCHROMIUM(GLuint target,
588 GLintptr offset,
589 GLsizeiptr size,
590 GLenum access) = 0;
591 virtual void UnmapBufferSubDataCHROMIUM(const void* mem) = 0;
592 virtual void* MapBufferRange(GLenum target,
593 GLintptr offset,
594 GLsizeiptr size,
595 GLbitfield access) = 0;
596 virtual GLboolean UnmapBuffer(GLenum target) = 0;
597 virtual void* MapTexSubImage2DCHROMIUM(GLenum target,
598 GLint level,
599 GLint xoffset,
600 GLint yoffset,
601 GLsizei width,
602 GLsizei height,
603 GLenum format,
604 GLenum type,
605 GLenum access) = 0;
606 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) = 0;
607 virtual void ResizeCHROMIUM(GLuint width,
608 GLuint height,
609 GLfloat scale_factor) = 0;
610 virtual const GLchar* GetRequestableExtensionsCHROMIUM() = 0;
611 virtual void RequestExtensionCHROMIUM(const char* extension) = 0;
612 virtual void RateLimitOffscreenContextCHROMIUM() = 0;
613 virtual void GetProgramInfoCHROMIUM(GLuint program,
614 GLsizei bufsize,
615 GLsizei* size,
616 void* info) = 0;
617 virtual void GetUniformBlocksCHROMIUM(GLuint program,
618 GLsizei bufsize,
619 GLsizei* size,
620 void* info) = 0;
621 virtual void GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
622 GLsizei bufsize,
623 GLsizei* size,
624 void* info) = 0;
625 virtual void GetUniformsES3CHROMIUM(GLuint program,
626 GLsizei bufsize,
627 GLsizei* size,
628 void* info) = 0;
629 virtual GLuint CreateStreamTextureCHROMIUM(GLuint texture) = 0;
630 virtual GLuint CreateImageCHROMIUM(ClientBuffer buffer,
631 GLsizei width,
632 GLsizei height,
633 GLenum internalformat) = 0;
634 virtual void DestroyImageCHROMIUM(GLuint image_id) = 0;
635 virtual GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
636 GLsizei height,
637 GLenum internalformat,
638 GLenum usage) = 0;
639 virtual void GetTranslatedShaderSourceANGLE(GLuint shader,
640 GLsizei bufsize,
641 GLsizei* length,
642 char* source) = 0;
643 virtual void PostSubBufferCHROMIUM(GLint x,
644 GLint y,
645 GLint width,
646 GLint height) = 0;
647 virtual void TexImageIOSurface2DCHROMIUM(GLenum target,
648 GLsizei width,
649 GLsizei height,
650 GLuint ioSurfaceId,
651 GLuint plane) = 0;
652 virtual void CopyTextureCHROMIUM(GLenum target,
653 GLenum source_id,
654 GLenum dest_id,
655 GLint internalformat,
656 GLenum dest_type) = 0;
657 virtual void CopySubTextureCHROMIUM(GLenum target,
658 GLenum source_id,
659 GLenum dest_id,
660 GLint xoffset,
661 GLint yoffset) = 0;
662 virtual void DrawArraysInstancedANGLE(GLenum mode,
663 GLint first,
664 GLsizei count,
665 GLsizei primcount) = 0;
666 virtual void DrawElementsInstancedANGLE(GLenum mode,
667 GLsizei count,
668 GLenum type,
669 const void* indices,
670 GLsizei primcount) = 0;
671 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) = 0;
672 virtual void GenMailboxCHROMIUM(GLbyte* mailbox) = 0;
673 virtual void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) = 0;
674 virtual void ProduceTextureDirectCHROMIUM(GLuint texture,
675 GLenum target,
676 const GLbyte* mailbox) = 0;
677 virtual void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) = 0;
678 virtual GLuint CreateAndConsumeTextureCHROMIUM(GLenum target,
679 const GLbyte* mailbox) = 0;
680 virtual void BindUniformLocationCHROMIUM(GLuint program,
681 GLint location,
682 const char* name) = 0;
683 virtual void GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) = 0;
684 virtual void DeleteValuebuffersCHROMIUM(GLsizei n,
685 const GLuint* valuebuffers) = 0;
686 virtual GLboolean IsValuebufferCHROMIUM(GLuint valuebuffer) = 0;
687 virtual void BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) = 0;
688 virtual void SubscribeValueCHROMIUM(GLenum target, GLenum subscription) = 0;
689 virtual void PopulateSubscribedValuesCHROMIUM(GLenum target) = 0;
690 virtual void UniformValuebufferCHROMIUM(GLint location,
691 GLenum target,
692 GLenum subscription) = 0;
693 virtual void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) = 0;
694 virtual void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) = 0;
695 virtual void TraceBeginCHROMIUM(const char* category_name,
696 const char* trace_name) = 0;
697 virtual void TraceEndCHROMIUM() = 0;
698 virtual void AsyncTexSubImage2DCHROMIUM(GLenum target,
699 GLint level,
700 GLint xoffset,
701 GLint yoffset,
702 GLsizei width,
703 GLsizei height,
704 GLenum format,
705 GLenum type,
706 const void* data) = 0;
707 virtual void AsyncTexImage2DCHROMIUM(GLenum target,
708 GLint level,
709 GLenum internalformat,
710 GLsizei width,
711 GLsizei height,
712 GLint border,
713 GLenum format,
714 GLenum type,
715 const void* pixels) = 0;
716 virtual void WaitAsyncTexImage2DCHROMIUM(GLenum target) = 0;
717 virtual void WaitAllAsyncTexImage2DCHROMIUM() = 0;
718 virtual void DiscardFramebufferEXT(GLenum target,
719 GLsizei count,
720 const GLenum* attachments) = 0;
721 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) = 0;
722 virtual GLuint InsertSyncPointCHROMIUM() = 0;
723 virtual void WaitSyncPointCHROMIUM(GLuint sync_point) = 0;
724 virtual void DrawBuffersEXT(GLsizei count, const GLenum* bufs) = 0;
725 virtual void DiscardBackbufferCHROMIUM() = 0;
726 virtual void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
727 GLenum plane_transform,
728 GLuint overlay_texture_id,
729 GLint bounds_x,
730 GLint bounds_y,
731 GLint bounds_width,
732 GLint bounds_height,
733 GLfloat uv_x,
734 GLfloat uv_y,
735 GLfloat uv_width,
736 GLfloat uv_height) = 0;
737 virtual void SwapInterval(GLint interval) = 0;
738 virtual void MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) = 0;
739 virtual void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) = 0;
740 virtual void BlendBarrierKHR() = 0;
741 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_AUTOGEN_H_