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_interface.h to declare the
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
,
20 const char* name
) = 0;
21 virtual void BindBuffer(GLenum target
, GLuint buffer
) = 0;
22 virtual void BindFramebuffer(GLenum target
, GLuint framebuffer
) = 0;
23 virtual void BindRenderbuffer(GLenum target
, GLuint renderbuffer
) = 0;
24 virtual void BindTexture(GLenum target
, GLuint texture
) = 0;
25 virtual void BlendColor(GLclampf red
,
29 virtual void BlendEquation(GLenum mode
) = 0;
30 virtual void BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) = 0;
31 virtual void BlendFunc(GLenum sfactor
, GLenum dfactor
) = 0;
32 virtual void BlendFuncSeparate(GLenum srcRGB
,
36 virtual void BufferData(GLenum target
,
40 virtual void BufferSubData(GLenum target
,
43 const void* data
) = 0;
44 virtual GLenum
CheckFramebufferStatus(GLenum target
) = 0;
45 virtual void Clear(GLbitfield mask
) = 0;
46 virtual void ClearColor(GLclampf red
,
50 virtual void ClearDepthf(GLclampf depth
) = 0;
51 virtual void ClearStencil(GLint s
) = 0;
52 virtual void ColorMask(GLboolean red
,
56 virtual void CompileShader(GLuint shader
) = 0;
57 virtual void CompressedTexImage2D(GLenum target
,
59 GLenum internalformat
,
64 const void* data
) = 0;
65 virtual void CompressedTexSubImage2D(GLenum target
,
73 const void* data
) = 0;
74 virtual void CopyTexImage2D(GLenum target
,
76 GLenum internalformat
,
82 virtual void CopyTexSubImage2D(GLenum target
,
90 virtual GLuint
CreateProgram() = 0;
91 virtual GLuint
CreateShader(GLenum type
) = 0;
92 virtual void CullFace(GLenum mode
) = 0;
93 virtual void DeleteBuffers(GLsizei n
, const GLuint
* buffers
) = 0;
94 virtual void DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) = 0;
95 virtual void DeleteProgram(GLuint program
) = 0;
96 virtual void DeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) = 0;
97 virtual void DeleteShader(GLuint shader
) = 0;
98 virtual void DeleteTextures(GLsizei n
, const GLuint
* textures
) = 0;
99 virtual void DepthFunc(GLenum func
) = 0;
100 virtual void DepthMask(GLboolean flag
) = 0;
101 virtual void DepthRangef(GLclampf zNear
, GLclampf zFar
) = 0;
102 virtual void DetachShader(GLuint program
, GLuint shader
) = 0;
103 virtual void Disable(GLenum cap
) = 0;
104 virtual void DisableVertexAttribArray(GLuint index
) = 0;
105 virtual void DrawArrays(GLenum mode
, GLint first
, GLsizei count
) = 0;
106 virtual void DrawElements(GLenum mode
,
109 const void* indices
) = 0;
110 virtual void Enable(GLenum cap
) = 0;
111 virtual void EnableVertexAttribArray(GLuint index
) = 0;
112 virtual void Finish() = 0;
113 virtual void Flush() = 0;
114 virtual void FramebufferRenderbuffer(GLenum target
,
116 GLenum renderbuffertarget
,
117 GLuint renderbuffer
) = 0;
118 virtual void FramebufferTexture2D(GLenum target
,
123 virtual void FrontFace(GLenum mode
) = 0;
124 virtual void GenBuffers(GLsizei n
, GLuint
* buffers
) = 0;
125 virtual void GenerateMipmap(GLenum target
) = 0;
126 virtual void GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) = 0;
127 virtual void GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) = 0;
128 virtual void GenTextures(GLsizei n
, GLuint
* textures
) = 0;
129 virtual void GetActiveAttrib(GLuint program
,
136 virtual void GetActiveUniform(GLuint program
,
143 virtual void GetAttachedShaders(GLuint program
,
146 GLuint
* shaders
) = 0;
147 virtual GLint
GetAttribLocation(GLuint program
, const char* name
) = 0;
148 virtual void GetBooleanv(GLenum pname
, GLboolean
* params
) = 0;
149 virtual void GetBufferParameteriv(GLenum target
,
152 virtual GLenum
GetError() = 0;
153 virtual void GetFloatv(GLenum pname
, GLfloat
* params
) = 0;
154 virtual void GetFramebufferAttachmentParameteriv(GLenum target
,
158 virtual void GetIntegerv(GLenum pname
, GLint
* params
) = 0;
159 virtual void GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) = 0;
160 virtual void GetProgramInfoLog(GLuint program
,
164 virtual void GetRenderbufferParameteriv(GLenum target
,
167 virtual void GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) = 0;
168 virtual void GetShaderInfoLog(GLuint shader
,
172 virtual void GetShaderPrecisionFormat(GLenum shadertype
,
173 GLenum precisiontype
,
175 GLint
* precision
) = 0;
176 virtual void GetShaderSource(GLuint shader
,
180 virtual const GLubyte
* GetString(GLenum name
) = 0;
181 virtual void GetTexParameterfv(GLenum target
,
183 GLfloat
* params
) = 0;
184 virtual void GetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) = 0;
185 virtual void GetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) = 0;
186 virtual void GetUniformiv(GLuint program
, GLint location
, GLint
* params
) = 0;
187 virtual GLint
GetUniformLocation(GLuint program
, const char* name
) = 0;
188 virtual void GetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
* params
) = 0;
189 virtual void GetVertexAttribiv(GLuint index
, GLenum pname
, GLint
* params
) = 0;
190 virtual void GetVertexAttribPointerv(GLuint index
,
193 virtual void Hint(GLenum target
, GLenum mode
) = 0;
194 virtual GLboolean
IsBuffer(GLuint buffer
) = 0;
195 virtual GLboolean
IsEnabled(GLenum cap
) = 0;
196 virtual GLboolean
IsFramebuffer(GLuint framebuffer
) = 0;
197 virtual GLboolean
IsProgram(GLuint program
) = 0;
198 virtual GLboolean
IsRenderbuffer(GLuint renderbuffer
) = 0;
199 virtual GLboolean
IsShader(GLuint shader
) = 0;
200 virtual GLboolean
IsTexture(GLuint texture
) = 0;
201 virtual void LineWidth(GLfloat width
) = 0;
202 virtual void LinkProgram(GLuint program
) = 0;
203 virtual void PixelStorei(GLenum pname
, GLint param
) = 0;
204 virtual void PolygonOffset(GLfloat factor
, GLfloat units
) = 0;
205 virtual void ReadPixels(GLint x
,
212 virtual void ReleaseShaderCompiler() = 0;
213 virtual void RenderbufferStorage(GLenum target
,
214 GLenum internalformat
,
217 virtual void SampleCoverage(GLclampf value
, GLboolean invert
) = 0;
218 virtual void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) = 0;
219 virtual void ShaderBinary(GLsizei n
,
220 const GLuint
* shaders
,
224 virtual void ShaderSource(GLuint shader
,
226 const GLchar
* const* str
,
227 const GLint
* length
) = 0;
228 virtual void ShallowFinishCHROMIUM() = 0;
229 virtual void ShallowFlushCHROMIUM() = 0;
230 virtual void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) = 0;
231 virtual void StencilFuncSeparate(GLenum face
,
235 virtual void StencilMask(GLuint mask
) = 0;
236 virtual void StencilMaskSeparate(GLenum face
, GLuint mask
) = 0;
237 virtual void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) = 0;
238 virtual void StencilOpSeparate(GLenum face
,
242 virtual void TexImage2D(GLenum target
,
244 GLint internalformat
,
250 const void* pixels
) = 0;
251 virtual void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) = 0;
252 virtual void TexParameterfv(GLenum target
,
254 const GLfloat
* params
) = 0;
255 virtual void TexParameteri(GLenum target
, GLenum pname
, GLint param
) = 0;
256 virtual void TexParameteriv(GLenum target
,
258 const GLint
* params
) = 0;
259 virtual void TexSubImage2D(GLenum target
,
267 const void* pixels
) = 0;
268 virtual void Uniform1f(GLint location
, GLfloat x
) = 0;
269 virtual void Uniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) = 0;
270 virtual void Uniform1i(GLint location
, GLint x
) = 0;
271 virtual void Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) = 0;
272 virtual void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) = 0;
273 virtual void Uniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) = 0;
274 virtual void Uniform2i(GLint location
, GLint x
, GLint y
) = 0;
275 virtual void Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) = 0;
276 virtual void Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) = 0;
277 virtual void Uniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) = 0;
278 virtual void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) = 0;
279 virtual void Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) = 0;
280 virtual void Uniform4f(GLint location
,
285 virtual void Uniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) = 0;
286 virtual void Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) = 0;
287 virtual void Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) = 0;
288 virtual void UniformMatrix2fv(GLint location
,
291 const GLfloat
* value
) = 0;
292 virtual void UniformMatrix3fv(GLint location
,
295 const GLfloat
* value
) = 0;
296 virtual void UniformMatrix4fv(GLint location
,
299 const GLfloat
* value
) = 0;
300 virtual void UseProgram(GLuint program
) = 0;
301 virtual void ValidateProgram(GLuint program
) = 0;
302 virtual void VertexAttrib1f(GLuint indx
, GLfloat x
) = 0;
303 virtual void VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) = 0;
304 virtual void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) = 0;
305 virtual void VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) = 0;
306 virtual void VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) = 0;
307 virtual void VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) = 0;
308 virtual void VertexAttrib4f(GLuint indx
,
313 virtual void VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) = 0;
314 virtual void VertexAttribPointer(GLuint indx
,
317 GLboolean normalized
,
319 const void* ptr
) = 0;
320 virtual void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) = 0;
321 virtual void BlitFramebufferCHROMIUM(GLint srcX0
,
331 virtual void RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
333 GLenum internalformat
,
336 virtual void RenderbufferStorageMultisampleEXT(GLenum target
,
338 GLenum internalformat
,
341 virtual void FramebufferTexture2DMultisampleEXT(GLenum target
,
346 GLsizei samples
) = 0;
347 virtual void TexStorage2DEXT(GLenum target
,
349 GLenum internalFormat
,
352 virtual void GenQueriesEXT(GLsizei n
, GLuint
* queries
) = 0;
353 virtual void DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) = 0;
354 virtual GLboolean
IsQueryEXT(GLuint id
) = 0;
355 virtual void BeginQueryEXT(GLenum target
, GLuint id
) = 0;
356 virtual void EndQueryEXT(GLenum target
) = 0;
357 virtual void GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) = 0;
358 virtual void GetQueryObjectuivEXT(GLuint id
, GLenum pname
, GLuint
* params
) = 0;
359 virtual void InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) = 0;
360 virtual void PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) = 0;
361 virtual void PopGroupMarkerEXT() = 0;
362 virtual void GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) = 0;
363 virtual void DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) = 0;
364 virtual GLboolean
IsVertexArrayOES(GLuint array
) = 0;
365 virtual void BindVertexArrayOES(GLuint array
) = 0;
366 virtual void SwapBuffers() = 0;
367 virtual GLuint
GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
371 virtual GLboolean
EnableFeatureCHROMIUM(const char* feature
) = 0;
372 virtual void* MapBufferCHROMIUM(GLuint target
, GLenum access
) = 0;
373 virtual GLboolean
UnmapBufferCHROMIUM(GLuint target
) = 0;
374 virtual void* MapBufferSubDataCHROMIUM(GLuint target
,
378 virtual void UnmapBufferSubDataCHROMIUM(const void* mem
) = 0;
379 virtual void* MapTexSubImage2DCHROMIUM(GLenum target
,
388 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem
) = 0;
389 virtual void ResizeCHROMIUM(GLuint width
,
391 GLfloat scale_factor
) = 0;
392 virtual const GLchar
* GetRequestableExtensionsCHROMIUM() = 0;
393 virtual void RequestExtensionCHROMIUM(const char* extension
) = 0;
394 virtual void RateLimitOffscreenContextCHROMIUM() = 0;
395 virtual void GetMultipleIntegervCHROMIUM(const GLenum
* pnames
,
398 GLsizeiptr size
) = 0;
399 virtual void GetProgramInfoCHROMIUM(GLuint program
,
403 virtual GLuint
CreateStreamTextureCHROMIUM(GLuint texture
) = 0;
404 virtual GLuint
CreateImageCHROMIUM(ClientBuffer buffer
,
407 GLenum internalformat
) = 0;
408 virtual void DestroyImageCHROMIUM(GLuint image_id
) = 0;
409 virtual GLuint
CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
411 GLenum internalformat
,
413 virtual void GetTranslatedShaderSourceANGLE(GLuint shader
,
417 virtual void PostSubBufferCHROMIUM(GLint x
,
421 virtual void TexImageIOSurface2DCHROMIUM(GLenum target
,
426 virtual void CopyTextureCHROMIUM(GLenum target
,
430 GLint internalformat
,
431 GLenum dest_type
) = 0;
432 virtual void DrawArraysInstancedANGLE(GLenum mode
,
435 GLsizei primcount
) = 0;
436 virtual void DrawElementsInstancedANGLE(GLenum mode
,
440 GLsizei primcount
) = 0;
441 virtual void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) = 0;
442 virtual void GenMailboxCHROMIUM(GLbyte
* mailbox
) = 0;
443 virtual void ProduceTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) = 0;
444 virtual void ProduceTextureDirectCHROMIUM(GLuint texture
,
446 const GLbyte
* mailbox
) = 0;
447 virtual void ConsumeTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) = 0;
448 virtual GLuint
CreateAndConsumeTextureCHROMIUM(GLenum target
,
449 const GLbyte
* mailbox
) = 0;
450 virtual void BindUniformLocationCHROMIUM(GLuint program
,
452 const char* name
) = 0;
453 virtual void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) = 0;
454 virtual void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) = 0;
455 virtual void TraceBeginCHROMIUM(const char* name
) = 0;
456 virtual void TraceEndCHROMIUM() = 0;
457 virtual void AsyncTexSubImage2DCHROMIUM(GLenum target
,
465 const void* data
) = 0;
466 virtual void AsyncTexImage2DCHROMIUM(GLenum target
,
468 GLenum internalformat
,
474 const void* pixels
) = 0;
475 virtual void WaitAsyncTexImage2DCHROMIUM(GLenum target
) = 0;
476 virtual void WaitAllAsyncTexImage2DCHROMIUM() = 0;
477 virtual void DiscardFramebufferEXT(GLenum target
,
479 const GLenum
* attachments
) = 0;
480 virtual void LoseContextCHROMIUM(GLenum current
, GLenum other
) = 0;
481 virtual GLuint
InsertSyncPointCHROMIUM() = 0;
482 virtual void WaitSyncPointCHROMIUM(GLuint sync_point
) = 0;
483 virtual void DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) = 0;
484 virtual void DiscardBackbufferCHROMIUM() = 0;
485 virtual void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
486 GLenum plane_transform
,
487 GLuint overlay_texture_id
,
495 GLfloat uv_height
) = 0;
496 virtual void MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) = 0;
497 virtual void MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) = 0;
498 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_AUTOGEN_H_