1 // Copyright (c) 2012 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
9 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
10 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
12 void ActiveTexture(GLenum texture
) {
13 gles2::cmds::ActiveTexture
* c
= GetCmdSpace
<gles2::cmds::ActiveTexture
>();
19 void AttachShader(GLuint program
, GLuint shader
) {
20 gles2::cmds::AttachShader
* c
= GetCmdSpace
<gles2::cmds::AttachShader
>();
22 c
->Init(program
, shader
);
26 void BindAttribLocation(
27 GLuint program
, GLuint index
, uint32 name_shm_id
, uint32 name_shm_offset
,
29 gles2::cmds::BindAttribLocation
* c
=
30 GetCmdSpace
<gles2::cmds::BindAttribLocation
>();
32 c
->Init(program
, index
, name_shm_id
, name_shm_offset
, data_size
);
36 void BindAttribLocationBucket(
37 GLuint program
, GLuint index
, uint32 name_bucket_id
) {
38 gles2::cmds::BindAttribLocationBucket
* c
=
39 GetCmdSpace
<gles2::cmds::BindAttribLocationBucket
>();
41 c
->Init(program
, index
, name_bucket_id
);
45 void BindBuffer(GLenum target
, GLuint buffer
) {
46 gles2::cmds::BindBuffer
* c
= GetCmdSpace
<gles2::cmds::BindBuffer
>();
48 c
->Init(target
, buffer
);
52 void BindFramebuffer(GLenum target
, GLuint framebuffer
) {
53 gles2::cmds::BindFramebuffer
* c
=
54 GetCmdSpace
<gles2::cmds::BindFramebuffer
>();
56 c
->Init(target
, framebuffer
);
60 void BindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
61 gles2::cmds::BindRenderbuffer
* c
=
62 GetCmdSpace
<gles2::cmds::BindRenderbuffer
>();
64 c
->Init(target
, renderbuffer
);
68 void BindTexture(GLenum target
, GLuint texture
) {
69 gles2::cmds::BindTexture
* c
= GetCmdSpace
<gles2::cmds::BindTexture
>();
71 c
->Init(target
, texture
);
76 GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
77 gles2::cmds::BlendColor
* c
= GetCmdSpace
<gles2::cmds::BlendColor
>();
79 c
->Init(red
, green
, blue
, alpha
);
83 void BlendEquation(GLenum mode
) {
84 gles2::cmds::BlendEquation
* c
= GetCmdSpace
<gles2::cmds::BlendEquation
>();
90 void BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
91 gles2::cmds::BlendEquationSeparate
* c
=
92 GetCmdSpace
<gles2::cmds::BlendEquationSeparate
>();
94 c
->Init(modeRGB
, modeAlpha
);
98 void BlendFunc(GLenum sfactor
, GLenum dfactor
) {
99 gles2::cmds::BlendFunc
* c
= GetCmdSpace
<gles2::cmds::BlendFunc
>();
101 c
->Init(sfactor
, dfactor
);
105 void BlendFuncSeparate(
106 GLenum srcRGB
, GLenum dstRGB
, GLenum srcAlpha
, GLenum dstAlpha
) {
107 gles2::cmds::BlendFuncSeparate
* c
=
108 GetCmdSpace
<gles2::cmds::BlendFuncSeparate
>();
110 c
->Init(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
115 GLenum target
, GLsizeiptr size
, uint32 data_shm_id
,
116 uint32 data_shm_offset
, GLenum usage
) {
117 gles2::cmds::BufferData
* c
= GetCmdSpace
<gles2::cmds::BufferData
>();
119 c
->Init(target
, size
, data_shm_id
, data_shm_offset
, usage
);
124 GLenum target
, GLintptr offset
, GLsizeiptr size
, uint32 data_shm_id
,
125 uint32 data_shm_offset
) {
126 gles2::cmds::BufferSubData
* c
= GetCmdSpace
<gles2::cmds::BufferSubData
>();
128 c
->Init(target
, offset
, size
, data_shm_id
, data_shm_offset
);
132 void CheckFramebufferStatus(
133 GLenum target
, uint32 result_shm_id
, uint32 result_shm_offset
) {
134 gles2::cmds::CheckFramebufferStatus
* c
=
135 GetCmdSpace
<gles2::cmds::CheckFramebufferStatus
>();
137 c
->Init(target
, result_shm_id
, result_shm_offset
);
141 void Clear(GLbitfield mask
) {
142 gles2::cmds::Clear
* c
= GetCmdSpace
<gles2::cmds::Clear
>();
149 GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
150 gles2::cmds::ClearColor
* c
= GetCmdSpace
<gles2::cmds::ClearColor
>();
152 c
->Init(red
, green
, blue
, alpha
);
156 void ClearDepthf(GLclampf depth
) {
157 gles2::cmds::ClearDepthf
* c
= GetCmdSpace
<gles2::cmds::ClearDepthf
>();
163 void ClearStencil(GLint s
) {
164 gles2::cmds::ClearStencil
* c
= GetCmdSpace
<gles2::cmds::ClearStencil
>();
171 GLboolean red
, GLboolean green
, GLboolean blue
, GLboolean alpha
) {
172 gles2::cmds::ColorMask
* c
= GetCmdSpace
<gles2::cmds::ColorMask
>();
174 c
->Init(red
, green
, blue
, alpha
);
178 void CompileShader(GLuint shader
) {
179 gles2::cmds::CompileShader
* c
= GetCmdSpace
<gles2::cmds::CompileShader
>();
185 void CompressedTexImage2D(
186 GLenum target
, GLint level
, GLenum internalformat
, GLsizei width
,
187 GLsizei height
, GLint border
, GLsizei imageSize
, uint32 data_shm_id
,
188 uint32 data_shm_offset
) {
189 gles2::cmds::CompressedTexImage2D
* c
=
190 GetCmdSpace
<gles2::cmds::CompressedTexImage2D
>();
193 target
, level
, internalformat
, width
, height
, border
, imageSize
,
194 data_shm_id
, data_shm_offset
);
198 void CompressedTexImage2DBucket(
199 GLenum target
, GLint level
, GLenum internalformat
, GLsizei width
,
200 GLsizei height
, GLint border
, GLuint bucket_id
) {
201 gles2::cmds::CompressedTexImage2DBucket
* c
=
202 GetCmdSpace
<gles2::cmds::CompressedTexImage2DBucket
>();
204 c
->Init(target
, level
, internalformat
, width
, height
, border
, bucket_id
);
208 void CompressedTexSubImage2D(
209 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
210 GLsizei height
, GLenum format
, GLsizei imageSize
, uint32 data_shm_id
,
211 uint32 data_shm_offset
) {
212 gles2::cmds::CompressedTexSubImage2D
* c
=
213 GetCmdSpace
<gles2::cmds::CompressedTexSubImage2D
>();
216 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
,
217 data_shm_id
, data_shm_offset
);
221 void CompressedTexSubImage2DBucket(
222 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
223 GLsizei height
, GLenum format
, GLuint bucket_id
) {
224 gles2::cmds::CompressedTexSubImage2DBucket
* c
=
225 GetCmdSpace
<gles2::cmds::CompressedTexSubImage2DBucket
>();
228 target
, level
, xoffset
, yoffset
, width
, height
, format
, bucket_id
);
233 GLenum target
, GLint level
, GLenum internalformat
, GLint x
, GLint y
,
234 GLsizei width
, GLsizei height
, GLint border
) {
235 gles2::cmds::CopyTexImage2D
* c
=
236 GetCmdSpace
<gles2::cmds::CopyTexImage2D
>();
238 c
->Init(target
, level
, internalformat
, x
, y
, width
, height
, border
);
242 void CopyTexSubImage2D(
243 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint x
,
244 GLint y
, GLsizei width
, GLsizei height
) {
245 gles2::cmds::CopyTexSubImage2D
* c
=
246 GetCmdSpace
<gles2::cmds::CopyTexSubImage2D
>();
248 c
->Init(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
252 void CreateProgram(uint32 client_id
) {
253 gles2::cmds::CreateProgram
* c
= GetCmdSpace
<gles2::cmds::CreateProgram
>();
259 void CreateShader(GLenum type
, uint32 client_id
) {
260 gles2::cmds::CreateShader
* c
= GetCmdSpace
<gles2::cmds::CreateShader
>();
262 c
->Init(type
, client_id
);
266 void CullFace(GLenum mode
) {
267 gles2::cmds::CullFace
* c
= GetCmdSpace
<gles2::cmds::CullFace
>();
274 GLsizei n
, uint32 buffers_shm_id
, uint32 buffers_shm_offset
) {
275 gles2::cmds::DeleteBuffers
* c
= GetCmdSpace
<gles2::cmds::DeleteBuffers
>();
277 c
->Init(n
, buffers_shm_id
, buffers_shm_offset
);
281 void DeleteBuffersImmediate(GLsizei n
, const GLuint
* buffers
) {
282 const uint32 size
= gles2::cmds::DeleteBuffersImmediate::ComputeSize(n
);
283 gles2::cmds::DeleteBuffersImmediate
* c
=
284 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteBuffersImmediate
>(
291 void DeleteFramebuffers(
292 GLsizei n
, uint32 framebuffers_shm_id
, uint32 framebuffers_shm_offset
) {
293 gles2::cmds::DeleteFramebuffers
* c
=
294 GetCmdSpace
<gles2::cmds::DeleteFramebuffers
>();
296 c
->Init(n
, framebuffers_shm_id
, framebuffers_shm_offset
);
300 void DeleteFramebuffersImmediate(GLsizei n
, const GLuint
* framebuffers
) {
302 gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n
);
303 gles2::cmds::DeleteFramebuffersImmediate
* c
=
304 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteFramebuffersImmediate
>(
307 c
->Init(n
, framebuffers
);
311 void DeleteProgram(GLuint program
) {
312 gles2::cmds::DeleteProgram
* c
= GetCmdSpace
<gles2::cmds::DeleteProgram
>();
318 void DeleteRenderbuffers(
319 GLsizei n
, uint32 renderbuffers_shm_id
,
320 uint32 renderbuffers_shm_offset
) {
321 gles2::cmds::DeleteRenderbuffers
* c
=
322 GetCmdSpace
<gles2::cmds::DeleteRenderbuffers
>();
324 c
->Init(n
, renderbuffers_shm_id
, renderbuffers_shm_offset
);
328 void DeleteRenderbuffersImmediate(GLsizei n
, const GLuint
* renderbuffers
) {
330 gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n
);
331 gles2::cmds::DeleteRenderbuffersImmediate
* c
=
332 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteRenderbuffersImmediate
>(size
); // NOLINT
334 c
->Init(n
, renderbuffers
);
338 void DeleteShader(GLuint shader
) {
339 gles2::cmds::DeleteShader
* c
= GetCmdSpace
<gles2::cmds::DeleteShader
>();
346 GLsizei n
, uint32 textures_shm_id
, uint32 textures_shm_offset
) {
347 gles2::cmds::DeleteTextures
* c
=
348 GetCmdSpace
<gles2::cmds::DeleteTextures
>();
350 c
->Init(n
, textures_shm_id
, textures_shm_offset
);
354 void DeleteTexturesImmediate(GLsizei n
, const GLuint
* textures
) {
355 const uint32 size
= gles2::cmds::DeleteTexturesImmediate::ComputeSize(n
);
356 gles2::cmds::DeleteTexturesImmediate
* c
=
357 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteTexturesImmediate
>(
360 c
->Init(n
, textures
);
364 void DepthFunc(GLenum func
) {
365 gles2::cmds::DepthFunc
* c
= GetCmdSpace
<gles2::cmds::DepthFunc
>();
371 void DepthMask(GLboolean flag
) {
372 gles2::cmds::DepthMask
* c
= GetCmdSpace
<gles2::cmds::DepthMask
>();
378 void DepthRangef(GLclampf zNear
, GLclampf zFar
) {
379 gles2::cmds::DepthRangef
* c
= GetCmdSpace
<gles2::cmds::DepthRangef
>();
381 c
->Init(zNear
, zFar
);
385 void DetachShader(GLuint program
, GLuint shader
) {
386 gles2::cmds::DetachShader
* c
= GetCmdSpace
<gles2::cmds::DetachShader
>();
388 c
->Init(program
, shader
);
392 void Disable(GLenum cap
) {
393 gles2::cmds::Disable
* c
= GetCmdSpace
<gles2::cmds::Disable
>();
399 void DisableVertexAttribArray(GLuint index
) {
400 gles2::cmds::DisableVertexAttribArray
* c
=
401 GetCmdSpace
<gles2::cmds::DisableVertexAttribArray
>();
407 void DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
408 gles2::cmds::DrawArrays
* c
= GetCmdSpace
<gles2::cmds::DrawArrays
>();
410 c
->Init(mode
, first
, count
);
415 GLenum mode
, GLsizei count
, GLenum type
, GLuint index_offset
) {
416 gles2::cmds::DrawElements
* c
= GetCmdSpace
<gles2::cmds::DrawElements
>();
418 c
->Init(mode
, count
, type
, index_offset
);
422 void Enable(GLenum cap
) {
423 gles2::cmds::Enable
* c
= GetCmdSpace
<gles2::cmds::Enable
>();
429 void EnableVertexAttribArray(GLuint index
) {
430 gles2::cmds::EnableVertexAttribArray
* c
=
431 GetCmdSpace
<gles2::cmds::EnableVertexAttribArray
>();
438 gles2::cmds::Finish
* c
= GetCmdSpace
<gles2::cmds::Finish
>();
445 gles2::cmds::Flush
* c
= GetCmdSpace
<gles2::cmds::Flush
>();
451 void FramebufferRenderbuffer(
452 GLenum target
, GLenum attachment
, GLenum renderbuffertarget
,
453 GLuint renderbuffer
) {
454 gles2::cmds::FramebufferRenderbuffer
* c
=
455 GetCmdSpace
<gles2::cmds::FramebufferRenderbuffer
>();
457 c
->Init(target
, attachment
, renderbuffertarget
, renderbuffer
);
461 void FramebufferTexture2D(
462 GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
,
464 gles2::cmds::FramebufferTexture2D
* c
=
465 GetCmdSpace
<gles2::cmds::FramebufferTexture2D
>();
467 c
->Init(target
, attachment
, textarget
, texture
, level
);
471 void FrontFace(GLenum mode
) {
472 gles2::cmds::FrontFace
* c
= GetCmdSpace
<gles2::cmds::FrontFace
>();
479 GLsizei n
, uint32 buffers_shm_id
, uint32 buffers_shm_offset
) {
480 gles2::cmds::GenBuffers
* c
= GetCmdSpace
<gles2::cmds::GenBuffers
>();
482 c
->Init(n
, buffers_shm_id
, buffers_shm_offset
);
486 void GenBuffersImmediate(GLsizei n
, GLuint
* buffers
) {
487 const uint32 size
= gles2::cmds::GenBuffersImmediate::ComputeSize(n
);
488 gles2::cmds::GenBuffersImmediate
* c
=
489 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenBuffersImmediate
>(size
);
495 void GenerateMipmap(GLenum target
) {
496 gles2::cmds::GenerateMipmap
* c
=
497 GetCmdSpace
<gles2::cmds::GenerateMipmap
>();
503 void GenFramebuffers(
504 GLsizei n
, uint32 framebuffers_shm_id
, uint32 framebuffers_shm_offset
) {
505 gles2::cmds::GenFramebuffers
* c
=
506 GetCmdSpace
<gles2::cmds::GenFramebuffers
>();
508 c
->Init(n
, framebuffers_shm_id
, framebuffers_shm_offset
);
512 void GenFramebuffersImmediate(GLsizei n
, GLuint
* framebuffers
) {
513 const uint32 size
= gles2::cmds::GenFramebuffersImmediate::ComputeSize(n
);
514 gles2::cmds::GenFramebuffersImmediate
* c
=
515 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenFramebuffersImmediate
>(
518 c
->Init(n
, framebuffers
);
522 void GenRenderbuffers(
523 GLsizei n
, uint32 renderbuffers_shm_id
,
524 uint32 renderbuffers_shm_offset
) {
525 gles2::cmds::GenRenderbuffers
* c
=
526 GetCmdSpace
<gles2::cmds::GenRenderbuffers
>();
528 c
->Init(n
, renderbuffers_shm_id
, renderbuffers_shm_offset
);
532 void GenRenderbuffersImmediate(GLsizei n
, GLuint
* renderbuffers
) {
533 const uint32 size
= gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n
);
534 gles2::cmds::GenRenderbuffersImmediate
* c
=
535 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenRenderbuffersImmediate
>(
538 c
->Init(n
, renderbuffers
);
543 GLsizei n
, uint32 textures_shm_id
, uint32 textures_shm_offset
) {
544 gles2::cmds::GenTextures
* c
= GetCmdSpace
<gles2::cmds::GenTextures
>();
546 c
->Init(n
, textures_shm_id
, textures_shm_offset
);
550 void GenTexturesImmediate(GLsizei n
, GLuint
* textures
) {
551 const uint32 size
= gles2::cmds::GenTexturesImmediate::ComputeSize(n
);
552 gles2::cmds::GenTexturesImmediate
* c
=
553 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenTexturesImmediate
>(size
);
555 c
->Init(n
, textures
);
559 void GetActiveAttrib(
560 GLuint program
, GLuint index
, uint32 name_bucket_id
, uint32 result_shm_id
,
561 uint32 result_shm_offset
) {
562 gles2::cmds::GetActiveAttrib
* c
=
563 GetCmdSpace
<gles2::cmds::GetActiveAttrib
>();
566 program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
570 void GetActiveUniform(
571 GLuint program
, GLuint index
, uint32 name_bucket_id
, uint32 result_shm_id
,
572 uint32 result_shm_offset
) {
573 gles2::cmds::GetActiveUniform
* c
=
574 GetCmdSpace
<gles2::cmds::GetActiveUniform
>();
577 program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
581 void GetAttachedShaders(
582 GLuint program
, uint32 result_shm_id
, uint32 result_shm_offset
,
583 uint32 result_size
) {
584 gles2::cmds::GetAttachedShaders
* c
=
585 GetCmdSpace
<gles2::cmds::GetAttachedShaders
>();
587 c
->Init(program
, result_shm_id
, result_shm_offset
, result_size
);
592 GLenum pname
, uint32 params_shm_id
, uint32 params_shm_offset
) {
593 gles2::cmds::GetBooleanv
* c
= GetCmdSpace
<gles2::cmds::GetBooleanv
>();
595 c
->Init(pname
, params_shm_id
, params_shm_offset
);
599 void GetBufferParameteriv(
600 GLenum target
, GLenum pname
, uint32 params_shm_id
,
601 uint32 params_shm_offset
) {
602 gles2::cmds::GetBufferParameteriv
* c
=
603 GetCmdSpace
<gles2::cmds::GetBufferParameteriv
>();
605 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
609 void GetError(uint32 result_shm_id
, uint32 result_shm_offset
) {
610 gles2::cmds::GetError
* c
= GetCmdSpace
<gles2::cmds::GetError
>();
612 c
->Init(result_shm_id
, result_shm_offset
);
617 GLenum pname
, uint32 params_shm_id
, uint32 params_shm_offset
) {
618 gles2::cmds::GetFloatv
* c
= GetCmdSpace
<gles2::cmds::GetFloatv
>();
620 c
->Init(pname
, params_shm_id
, params_shm_offset
);
624 void GetFramebufferAttachmentParameteriv(
625 GLenum target
, GLenum attachment
, GLenum pname
, uint32 params_shm_id
,
626 uint32 params_shm_offset
) {
627 gles2::cmds::GetFramebufferAttachmentParameteriv
* c
=
628 GetCmdSpace
<gles2::cmds::GetFramebufferAttachmentParameteriv
>();
630 c
->Init(target
, attachment
, pname
, params_shm_id
, params_shm_offset
);
635 GLenum pname
, uint32 params_shm_id
, uint32 params_shm_offset
) {
636 gles2::cmds::GetIntegerv
* c
= GetCmdSpace
<gles2::cmds::GetIntegerv
>();
638 c
->Init(pname
, params_shm_id
, params_shm_offset
);
643 GLuint program
, GLenum pname
, uint32 params_shm_id
,
644 uint32 params_shm_offset
) {
645 gles2::cmds::GetProgramiv
* c
= GetCmdSpace
<gles2::cmds::GetProgramiv
>();
647 c
->Init(program
, pname
, params_shm_id
, params_shm_offset
);
651 void GetProgramInfoLog(GLuint program
, uint32 bucket_id
) {
652 gles2::cmds::GetProgramInfoLog
* c
=
653 GetCmdSpace
<gles2::cmds::GetProgramInfoLog
>();
655 c
->Init(program
, bucket_id
);
659 void GetRenderbufferParameteriv(
660 GLenum target
, GLenum pname
, uint32 params_shm_id
,
661 uint32 params_shm_offset
) {
662 gles2::cmds::GetRenderbufferParameteriv
* c
=
663 GetCmdSpace
<gles2::cmds::GetRenderbufferParameteriv
>();
665 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
670 GLuint shader
, GLenum pname
, uint32 params_shm_id
,
671 uint32 params_shm_offset
) {
672 gles2::cmds::GetShaderiv
* c
= GetCmdSpace
<gles2::cmds::GetShaderiv
>();
674 c
->Init(shader
, pname
, params_shm_id
, params_shm_offset
);
678 void GetShaderInfoLog(GLuint shader
, uint32 bucket_id
) {
679 gles2::cmds::GetShaderInfoLog
* c
=
680 GetCmdSpace
<gles2::cmds::GetShaderInfoLog
>();
682 c
->Init(shader
, bucket_id
);
686 void GetShaderPrecisionFormat(
687 GLenum shadertype
, GLenum precisiontype
, uint32 result_shm_id
,
688 uint32 result_shm_offset
) {
689 gles2::cmds::GetShaderPrecisionFormat
* c
=
690 GetCmdSpace
<gles2::cmds::GetShaderPrecisionFormat
>();
692 c
->Init(shadertype
, precisiontype
, result_shm_id
, result_shm_offset
);
696 void GetShaderSource(GLuint shader
, uint32 bucket_id
) {
697 gles2::cmds::GetShaderSource
* c
=
698 GetCmdSpace
<gles2::cmds::GetShaderSource
>();
700 c
->Init(shader
, bucket_id
);
704 void GetString(GLenum name
, uint32 bucket_id
) {
705 gles2::cmds::GetString
* c
= GetCmdSpace
<gles2::cmds::GetString
>();
707 c
->Init(name
, bucket_id
);
711 void GetTexParameterfv(
712 GLenum target
, GLenum pname
, uint32 params_shm_id
,
713 uint32 params_shm_offset
) {
714 gles2::cmds::GetTexParameterfv
* c
=
715 GetCmdSpace
<gles2::cmds::GetTexParameterfv
>();
717 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
721 void GetTexParameteriv(
722 GLenum target
, GLenum pname
, uint32 params_shm_id
,
723 uint32 params_shm_offset
) {
724 gles2::cmds::GetTexParameteriv
* c
=
725 GetCmdSpace
<gles2::cmds::GetTexParameteriv
>();
727 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
732 GLuint program
, GLint location
, uint32 params_shm_id
,
733 uint32 params_shm_offset
) {
734 gles2::cmds::GetUniformfv
* c
= GetCmdSpace
<gles2::cmds::GetUniformfv
>();
736 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
741 GLuint program
, GLint location
, uint32 params_shm_id
,
742 uint32 params_shm_offset
) {
743 gles2::cmds::GetUniformiv
* c
= GetCmdSpace
<gles2::cmds::GetUniformiv
>();
745 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
749 void GetVertexAttribfv(
750 GLuint index
, GLenum pname
, uint32 params_shm_id
,
751 uint32 params_shm_offset
) {
752 gles2::cmds::GetVertexAttribfv
* c
=
753 GetCmdSpace
<gles2::cmds::GetVertexAttribfv
>();
755 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
759 void GetVertexAttribiv(
760 GLuint index
, GLenum pname
, uint32 params_shm_id
,
761 uint32 params_shm_offset
) {
762 gles2::cmds::GetVertexAttribiv
* c
=
763 GetCmdSpace
<gles2::cmds::GetVertexAttribiv
>();
765 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
769 void GetVertexAttribPointerv(
770 GLuint index
, GLenum pname
, uint32 pointer_shm_id
,
771 uint32 pointer_shm_offset
) {
772 gles2::cmds::GetVertexAttribPointerv
* c
=
773 GetCmdSpace
<gles2::cmds::GetVertexAttribPointerv
>();
775 c
->Init(index
, pname
, pointer_shm_id
, pointer_shm_offset
);
779 void Hint(GLenum target
, GLenum mode
) {
780 gles2::cmds::Hint
* c
= GetCmdSpace
<gles2::cmds::Hint
>();
782 c
->Init(target
, mode
);
787 GLuint buffer
, uint32 result_shm_id
, uint32 result_shm_offset
) {
788 gles2::cmds::IsBuffer
* c
= GetCmdSpace
<gles2::cmds::IsBuffer
>();
790 c
->Init(buffer
, result_shm_id
, result_shm_offset
);
794 void IsEnabled(GLenum cap
, uint32 result_shm_id
, uint32 result_shm_offset
) {
795 gles2::cmds::IsEnabled
* c
= GetCmdSpace
<gles2::cmds::IsEnabled
>();
797 c
->Init(cap
, result_shm_id
, result_shm_offset
);
802 GLuint framebuffer
, uint32 result_shm_id
, uint32 result_shm_offset
) {
803 gles2::cmds::IsFramebuffer
* c
= GetCmdSpace
<gles2::cmds::IsFramebuffer
>();
805 c
->Init(framebuffer
, result_shm_id
, result_shm_offset
);
810 GLuint program
, uint32 result_shm_id
, uint32 result_shm_offset
) {
811 gles2::cmds::IsProgram
* c
= GetCmdSpace
<gles2::cmds::IsProgram
>();
813 c
->Init(program
, result_shm_id
, result_shm_offset
);
818 GLuint renderbuffer
, uint32 result_shm_id
, uint32 result_shm_offset
) {
819 gles2::cmds::IsRenderbuffer
* c
=
820 GetCmdSpace
<gles2::cmds::IsRenderbuffer
>();
822 c
->Init(renderbuffer
, result_shm_id
, result_shm_offset
);
827 GLuint shader
, uint32 result_shm_id
, uint32 result_shm_offset
) {
828 gles2::cmds::IsShader
* c
= GetCmdSpace
<gles2::cmds::IsShader
>();
830 c
->Init(shader
, result_shm_id
, result_shm_offset
);
835 GLuint texture
, uint32 result_shm_id
, uint32 result_shm_offset
) {
836 gles2::cmds::IsTexture
* c
= GetCmdSpace
<gles2::cmds::IsTexture
>();
838 c
->Init(texture
, result_shm_id
, result_shm_offset
);
842 void LineWidth(GLfloat width
) {
843 gles2::cmds::LineWidth
* c
= GetCmdSpace
<gles2::cmds::LineWidth
>();
849 void LinkProgram(GLuint program
) {
850 gles2::cmds::LinkProgram
* c
= GetCmdSpace
<gles2::cmds::LinkProgram
>();
856 void PixelStorei(GLenum pname
, GLint param
) {
857 gles2::cmds::PixelStorei
* c
= GetCmdSpace
<gles2::cmds::PixelStorei
>();
859 c
->Init(pname
, param
);
863 void PolygonOffset(GLfloat factor
, GLfloat units
) {
864 gles2::cmds::PolygonOffset
* c
= GetCmdSpace
<gles2::cmds::PolygonOffset
>();
866 c
->Init(factor
, units
);
871 GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLenum format
,
872 GLenum type
, uint32 pixels_shm_id
, uint32 pixels_shm_offset
,
873 uint32 result_shm_id
, uint32 result_shm_offset
, GLboolean async
) {
874 gles2::cmds::ReadPixels
* c
= GetCmdSpace
<gles2::cmds::ReadPixels
>();
877 x
, y
, width
, height
, format
, type
, pixels_shm_id
, pixels_shm_offset
,
878 result_shm_id
, result_shm_offset
, async
);
882 void ReleaseShaderCompiler() {
883 gles2::cmds::ReleaseShaderCompiler
* c
=
884 GetCmdSpace
<gles2::cmds::ReleaseShaderCompiler
>();
890 void RenderbufferStorage(
891 GLenum target
, GLenum internalformat
, GLsizei width
, GLsizei height
) {
892 gles2::cmds::RenderbufferStorage
* c
=
893 GetCmdSpace
<gles2::cmds::RenderbufferStorage
>();
895 c
->Init(target
, internalformat
, width
, height
);
899 void SampleCoverage(GLclampf value
, GLboolean invert
) {
900 gles2::cmds::SampleCoverage
* c
=
901 GetCmdSpace
<gles2::cmds::SampleCoverage
>();
903 c
->Init(value
, invert
);
907 void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
908 gles2::cmds::Scissor
* c
= GetCmdSpace
<gles2::cmds::Scissor
>();
910 c
->Init(x
, y
, width
, height
);
915 GLsizei n
, uint32 shaders_shm_id
, uint32 shaders_shm_offset
,
916 GLenum binaryformat
, uint32 binary_shm_id
, uint32 binary_shm_offset
,
918 gles2::cmds::ShaderBinary
* c
= GetCmdSpace
<gles2::cmds::ShaderBinary
>();
921 n
, shaders_shm_id
, shaders_shm_offset
, binaryformat
, binary_shm_id
,
922 binary_shm_offset
, length
);
927 GLuint shader
, uint32 data_shm_id
, uint32 data_shm_offset
,
929 gles2::cmds::ShaderSource
* c
= GetCmdSpace
<gles2::cmds::ShaderSource
>();
931 c
->Init(shader
, data_shm_id
, data_shm_offset
, data_size
);
935 void ShaderSourceBucket(GLuint shader
, uint32 data_bucket_id
) {
936 gles2::cmds::ShaderSourceBucket
* c
=
937 GetCmdSpace
<gles2::cmds::ShaderSourceBucket
>();
939 c
->Init(shader
, data_bucket_id
);
943 void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
944 gles2::cmds::StencilFunc
* c
= GetCmdSpace
<gles2::cmds::StencilFunc
>();
946 c
->Init(func
, ref
, mask
);
950 void StencilFuncSeparate(GLenum face
, GLenum func
, GLint ref
, GLuint mask
) {
951 gles2::cmds::StencilFuncSeparate
* c
=
952 GetCmdSpace
<gles2::cmds::StencilFuncSeparate
>();
954 c
->Init(face
, func
, ref
, mask
);
958 void StencilMask(GLuint mask
) {
959 gles2::cmds::StencilMask
* c
= GetCmdSpace
<gles2::cmds::StencilMask
>();
965 void StencilMaskSeparate(GLenum face
, GLuint mask
) {
966 gles2::cmds::StencilMaskSeparate
* c
=
967 GetCmdSpace
<gles2::cmds::StencilMaskSeparate
>();
973 void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
974 gles2::cmds::StencilOp
* c
= GetCmdSpace
<gles2::cmds::StencilOp
>();
976 c
->Init(fail
, zfail
, zpass
);
980 void StencilOpSeparate(
981 GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
) {
982 gles2::cmds::StencilOpSeparate
* c
=
983 GetCmdSpace
<gles2::cmds::StencilOpSeparate
>();
985 c
->Init(face
, fail
, zfail
, zpass
);
990 GLenum target
, GLint level
, GLint internalformat
, GLsizei width
,
991 GLsizei height
, GLint border
, GLenum format
, GLenum type
,
992 uint32 pixels_shm_id
, uint32 pixels_shm_offset
) {
993 gles2::cmds::TexImage2D
* c
= GetCmdSpace
<gles2::cmds::TexImage2D
>();
996 target
, level
, internalformat
, width
, height
, border
, format
, type
,
997 pixels_shm_id
, pixels_shm_offset
);
1001 void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
1002 gles2::cmds::TexParameterf
* c
= GetCmdSpace
<gles2::cmds::TexParameterf
>();
1004 c
->Init(target
, pname
, param
);
1008 void TexParameterfv(
1009 GLenum target
, GLenum pname
, uint32 params_shm_id
,
1010 uint32 params_shm_offset
) {
1011 gles2::cmds::TexParameterfv
* c
=
1012 GetCmdSpace
<gles2::cmds::TexParameterfv
>();
1014 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
1018 void TexParameterfvImmediate(
1019 GLenum target
, GLenum pname
, const GLfloat
* params
) {
1020 const uint32 size
= gles2::cmds::TexParameterfvImmediate::ComputeSize();
1021 gles2::cmds::TexParameterfvImmediate
* c
=
1022 GetImmediateCmdSpaceTotalSize
<gles2::cmds::TexParameterfvImmediate
>(
1025 c
->Init(target
, pname
, params
);
1029 void TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
1030 gles2::cmds::TexParameteri
* c
= GetCmdSpace
<gles2::cmds::TexParameteri
>();
1032 c
->Init(target
, pname
, param
);
1036 void TexParameteriv(
1037 GLenum target
, GLenum pname
, uint32 params_shm_id
,
1038 uint32 params_shm_offset
) {
1039 gles2::cmds::TexParameteriv
* c
=
1040 GetCmdSpace
<gles2::cmds::TexParameteriv
>();
1042 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
1046 void TexParameterivImmediate(
1047 GLenum target
, GLenum pname
, const GLint
* params
) {
1048 const uint32 size
= gles2::cmds::TexParameterivImmediate::ComputeSize();
1049 gles2::cmds::TexParameterivImmediate
* c
=
1050 GetImmediateCmdSpaceTotalSize
<gles2::cmds::TexParameterivImmediate
>(
1053 c
->Init(target
, pname
, params
);
1058 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
1059 GLsizei height
, GLenum format
, GLenum type
, uint32 pixels_shm_id
,
1060 uint32 pixels_shm_offset
, GLboolean internal
) {
1061 gles2::cmds::TexSubImage2D
* c
= GetCmdSpace
<gles2::cmds::TexSubImage2D
>();
1064 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
1065 pixels_shm_id
, pixels_shm_offset
, internal
);
1069 void Uniform1f(GLint location
, GLfloat x
) {
1070 gles2::cmds::Uniform1f
* c
= GetCmdSpace
<gles2::cmds::Uniform1f
>();
1072 c
->Init(location
, x
);
1077 GLint location
, GLsizei count
, uint32 v_shm_id
, uint32 v_shm_offset
) {
1078 gles2::cmds::Uniform1fv
* c
= GetCmdSpace
<gles2::cmds::Uniform1fv
>();
1080 c
->Init(location
, count
, v_shm_id
, v_shm_offset
);
1084 void Uniform1fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1085 const uint32 size
= gles2::cmds::Uniform1fvImmediate::ComputeSize(count
);
1086 gles2::cmds::Uniform1fvImmediate
* c
=
1087 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1fvImmediate
>(size
);
1089 c
->Init(location
, count
, v
);
1093 void Uniform1i(GLint location
, GLint x
) {
1094 gles2::cmds::Uniform1i
* c
= GetCmdSpace
<gles2::cmds::Uniform1i
>();
1096 c
->Init(location
, x
);
1101 GLint location
, GLsizei count
, uint32 v_shm_id
, uint32 v_shm_offset
) {
1102 gles2::cmds::Uniform1iv
* c
= GetCmdSpace
<gles2::cmds::Uniform1iv
>();
1104 c
->Init(location
, count
, v_shm_id
, v_shm_offset
);
1108 void Uniform1ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1109 const uint32 size
= gles2::cmds::Uniform1ivImmediate::ComputeSize(count
);
1110 gles2::cmds::Uniform1ivImmediate
* c
=
1111 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1ivImmediate
>(size
);
1113 c
->Init(location
, count
, v
);
1117 void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
1118 gles2::cmds::Uniform2f
* c
= GetCmdSpace
<gles2::cmds::Uniform2f
>();
1120 c
->Init(location
, x
, y
);
1125 GLint location
, GLsizei count
, uint32 v_shm_id
, uint32 v_shm_offset
) {
1126 gles2::cmds::Uniform2fv
* c
= GetCmdSpace
<gles2::cmds::Uniform2fv
>();
1128 c
->Init(location
, count
, v_shm_id
, v_shm_offset
);
1132 void Uniform2fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1133 const uint32 size
= gles2::cmds::Uniform2fvImmediate::ComputeSize(count
);
1134 gles2::cmds::Uniform2fvImmediate
* c
=
1135 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2fvImmediate
>(size
);
1137 c
->Init(location
, count
, v
);
1141 void Uniform2i(GLint location
, GLint x
, GLint y
) {
1142 gles2::cmds::Uniform2i
* c
= GetCmdSpace
<gles2::cmds::Uniform2i
>();
1144 c
->Init(location
, x
, y
);
1149 GLint location
, GLsizei count
, uint32 v_shm_id
, uint32 v_shm_offset
) {
1150 gles2::cmds::Uniform2iv
* c
= GetCmdSpace
<gles2::cmds::Uniform2iv
>();
1152 c
->Init(location
, count
, v_shm_id
, v_shm_offset
);
1156 void Uniform2ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1157 const uint32 size
= gles2::cmds::Uniform2ivImmediate::ComputeSize(count
);
1158 gles2::cmds::Uniform2ivImmediate
* c
=
1159 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2ivImmediate
>(size
);
1161 c
->Init(location
, count
, v
);
1165 void Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
1166 gles2::cmds::Uniform3f
* c
= GetCmdSpace
<gles2::cmds::Uniform3f
>();
1168 c
->Init(location
, x
, y
, z
);
1173 GLint location
, GLsizei count
, uint32 v_shm_id
, uint32 v_shm_offset
) {
1174 gles2::cmds::Uniform3fv
* c
= GetCmdSpace
<gles2::cmds::Uniform3fv
>();
1176 c
->Init(location
, count
, v_shm_id
, v_shm_offset
);
1180 void Uniform3fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1181 const uint32 size
= gles2::cmds::Uniform3fvImmediate::ComputeSize(count
);
1182 gles2::cmds::Uniform3fvImmediate
* c
=
1183 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3fvImmediate
>(size
);
1185 c
->Init(location
, count
, v
);
1189 void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
1190 gles2::cmds::Uniform3i
* c
= GetCmdSpace
<gles2::cmds::Uniform3i
>();
1192 c
->Init(location
, x
, y
, z
);
1197 GLint location
, GLsizei count
, uint32 v_shm_id
, uint32 v_shm_offset
) {
1198 gles2::cmds::Uniform3iv
* c
= GetCmdSpace
<gles2::cmds::Uniform3iv
>();
1200 c
->Init(location
, count
, v_shm_id
, v_shm_offset
);
1204 void Uniform3ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1205 const uint32 size
= gles2::cmds::Uniform3ivImmediate::ComputeSize(count
);
1206 gles2::cmds::Uniform3ivImmediate
* c
=
1207 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3ivImmediate
>(size
);
1209 c
->Init(location
, count
, v
);
1213 void Uniform4f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
1214 gles2::cmds::Uniform4f
* c
= GetCmdSpace
<gles2::cmds::Uniform4f
>();
1216 c
->Init(location
, x
, y
, z
, w
);
1221 GLint location
, GLsizei count
, uint32 v_shm_id
, uint32 v_shm_offset
) {
1222 gles2::cmds::Uniform4fv
* c
= GetCmdSpace
<gles2::cmds::Uniform4fv
>();
1224 c
->Init(location
, count
, v_shm_id
, v_shm_offset
);
1228 void Uniform4fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1229 const uint32 size
= gles2::cmds::Uniform4fvImmediate::ComputeSize(count
);
1230 gles2::cmds::Uniform4fvImmediate
* c
=
1231 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4fvImmediate
>(size
);
1233 c
->Init(location
, count
, v
);
1237 void Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
1238 gles2::cmds::Uniform4i
* c
= GetCmdSpace
<gles2::cmds::Uniform4i
>();
1240 c
->Init(location
, x
, y
, z
, w
);
1245 GLint location
, GLsizei count
, uint32 v_shm_id
, uint32 v_shm_offset
) {
1246 gles2::cmds::Uniform4iv
* c
= GetCmdSpace
<gles2::cmds::Uniform4iv
>();
1248 c
->Init(location
, count
, v_shm_id
, v_shm_offset
);
1252 void Uniform4ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1253 const uint32 size
= gles2::cmds::Uniform4ivImmediate::ComputeSize(count
);
1254 gles2::cmds::Uniform4ivImmediate
* c
=
1255 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4ivImmediate
>(size
);
1257 c
->Init(location
, count
, v
);
1261 void UniformMatrix2fv(
1262 GLint location
, GLsizei count
, GLboolean transpose
, uint32 value_shm_id
,
1263 uint32 value_shm_offset
) {
1264 gles2::cmds::UniformMatrix2fv
* c
=
1265 GetCmdSpace
<gles2::cmds::UniformMatrix2fv
>();
1267 c
->Init(location
, count
, transpose
, value_shm_id
, value_shm_offset
);
1271 void UniformMatrix2fvImmediate(
1272 GLint location
, GLsizei count
, GLboolean transpose
,
1273 const GLfloat
* value
) {
1275 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count
);
1276 gles2::cmds::UniformMatrix2fvImmediate
* c
=
1277 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix2fvImmediate
>(
1280 c
->Init(location
, count
, transpose
, value
);
1284 void UniformMatrix3fv(
1285 GLint location
, GLsizei count
, GLboolean transpose
, uint32 value_shm_id
,
1286 uint32 value_shm_offset
) {
1287 gles2::cmds::UniformMatrix3fv
* c
=
1288 GetCmdSpace
<gles2::cmds::UniformMatrix3fv
>();
1290 c
->Init(location
, count
, transpose
, value_shm_id
, value_shm_offset
);
1294 void UniformMatrix3fvImmediate(
1295 GLint location
, GLsizei count
, GLboolean transpose
,
1296 const GLfloat
* value
) {
1298 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count
);
1299 gles2::cmds::UniformMatrix3fvImmediate
* c
=
1300 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix3fvImmediate
>(
1303 c
->Init(location
, count
, transpose
, value
);
1307 void UniformMatrix4fv(
1308 GLint location
, GLsizei count
, GLboolean transpose
, uint32 value_shm_id
,
1309 uint32 value_shm_offset
) {
1310 gles2::cmds::UniformMatrix4fv
* c
=
1311 GetCmdSpace
<gles2::cmds::UniformMatrix4fv
>();
1313 c
->Init(location
, count
, transpose
, value_shm_id
, value_shm_offset
);
1317 void UniformMatrix4fvImmediate(
1318 GLint location
, GLsizei count
, GLboolean transpose
,
1319 const GLfloat
* value
) {
1321 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count
);
1322 gles2::cmds::UniformMatrix4fvImmediate
* c
=
1323 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix4fvImmediate
>(
1326 c
->Init(location
, count
, transpose
, value
);
1330 void UseProgram(GLuint program
) {
1331 gles2::cmds::UseProgram
* c
= GetCmdSpace
<gles2::cmds::UseProgram
>();
1337 void ValidateProgram(GLuint program
) {
1338 gles2::cmds::ValidateProgram
* c
=
1339 GetCmdSpace
<gles2::cmds::ValidateProgram
>();
1345 void VertexAttrib1f(GLuint indx
, GLfloat x
) {
1346 gles2::cmds::VertexAttrib1f
* c
=
1347 GetCmdSpace
<gles2::cmds::VertexAttrib1f
>();
1353 void VertexAttrib1fv(
1354 GLuint indx
, uint32 values_shm_id
, uint32 values_shm_offset
) {
1355 gles2::cmds::VertexAttrib1fv
* c
=
1356 GetCmdSpace
<gles2::cmds::VertexAttrib1fv
>();
1358 c
->Init(indx
, values_shm_id
, values_shm_offset
);
1362 void VertexAttrib1fvImmediate(GLuint indx
, const GLfloat
* values
) {
1363 const uint32 size
= gles2::cmds::VertexAttrib1fvImmediate::ComputeSize();
1364 gles2::cmds::VertexAttrib1fvImmediate
* c
=
1365 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib1fvImmediate
>(
1368 c
->Init(indx
, values
);
1372 void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
1373 gles2::cmds::VertexAttrib2f
* c
=
1374 GetCmdSpace
<gles2::cmds::VertexAttrib2f
>();
1376 c
->Init(indx
, x
, y
);
1380 void VertexAttrib2fv(
1381 GLuint indx
, uint32 values_shm_id
, uint32 values_shm_offset
) {
1382 gles2::cmds::VertexAttrib2fv
* c
=
1383 GetCmdSpace
<gles2::cmds::VertexAttrib2fv
>();
1385 c
->Init(indx
, values_shm_id
, values_shm_offset
);
1389 void VertexAttrib2fvImmediate(GLuint indx
, const GLfloat
* values
) {
1390 const uint32 size
= gles2::cmds::VertexAttrib2fvImmediate::ComputeSize();
1391 gles2::cmds::VertexAttrib2fvImmediate
* c
=
1392 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib2fvImmediate
>(
1395 c
->Init(indx
, values
);
1399 void VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
1400 gles2::cmds::VertexAttrib3f
* c
=
1401 GetCmdSpace
<gles2::cmds::VertexAttrib3f
>();
1403 c
->Init(indx
, x
, y
, z
);
1407 void VertexAttrib3fv(
1408 GLuint indx
, uint32 values_shm_id
, uint32 values_shm_offset
) {
1409 gles2::cmds::VertexAttrib3fv
* c
=
1410 GetCmdSpace
<gles2::cmds::VertexAttrib3fv
>();
1412 c
->Init(indx
, values_shm_id
, values_shm_offset
);
1416 void VertexAttrib3fvImmediate(GLuint indx
, const GLfloat
* values
) {
1417 const uint32 size
= gles2::cmds::VertexAttrib3fvImmediate::ComputeSize();
1418 gles2::cmds::VertexAttrib3fvImmediate
* c
=
1419 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib3fvImmediate
>(
1422 c
->Init(indx
, values
);
1426 void VertexAttrib4f(
1427 GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
1428 gles2::cmds::VertexAttrib4f
* c
=
1429 GetCmdSpace
<gles2::cmds::VertexAttrib4f
>();
1431 c
->Init(indx
, x
, y
, z
, w
);
1435 void VertexAttrib4fv(
1436 GLuint indx
, uint32 values_shm_id
, uint32 values_shm_offset
) {
1437 gles2::cmds::VertexAttrib4fv
* c
=
1438 GetCmdSpace
<gles2::cmds::VertexAttrib4fv
>();
1440 c
->Init(indx
, values_shm_id
, values_shm_offset
);
1444 void VertexAttrib4fvImmediate(GLuint indx
, const GLfloat
* values
) {
1445 const uint32 size
= gles2::cmds::VertexAttrib4fvImmediate::ComputeSize();
1446 gles2::cmds::VertexAttrib4fvImmediate
* c
=
1447 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib4fvImmediate
>(
1450 c
->Init(indx
, values
);
1454 void VertexAttribPointer(
1455 GLuint indx
, GLint size
, GLenum type
, GLboolean normalized
,
1456 GLsizei stride
, GLuint offset
) {
1457 gles2::cmds::VertexAttribPointer
* c
=
1458 GetCmdSpace
<gles2::cmds::VertexAttribPointer
>();
1460 c
->Init(indx
, size
, type
, normalized
, stride
, offset
);
1464 void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
1465 gles2::cmds::Viewport
* c
= GetCmdSpace
<gles2::cmds::Viewport
>();
1467 c
->Init(x
, y
, width
, height
);
1471 void BlitFramebufferCHROMIUM(
1472 GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
, GLint dstX0
,
1473 GLint dstY0
, GLint dstX1
, GLint dstY1
, GLbitfield mask
, GLenum filter
) {
1474 gles2::cmds::BlitFramebufferCHROMIUM
* c
=
1475 GetCmdSpace
<gles2::cmds::BlitFramebufferCHROMIUM
>();
1478 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
,
1483 void RenderbufferStorageMultisampleCHROMIUM(
1484 GLenum target
, GLsizei samples
, GLenum internalformat
, GLsizei width
,
1486 gles2::cmds::RenderbufferStorageMultisampleCHROMIUM
* c
=
1487 GetCmdSpace
<gles2::cmds::RenderbufferStorageMultisampleCHROMIUM
>();
1489 c
->Init(target
, samples
, internalformat
, width
, height
);
1493 void RenderbufferStorageMultisampleEXT(
1494 GLenum target
, GLsizei samples
, GLenum internalformat
, GLsizei width
,
1496 gles2::cmds::RenderbufferStorageMultisampleEXT
* c
=
1497 GetCmdSpace
<gles2::cmds::RenderbufferStorageMultisampleEXT
>();
1499 c
->Init(target
, samples
, internalformat
, width
, height
);
1503 void FramebufferTexture2DMultisampleEXT(
1504 GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
,
1505 GLint level
, GLsizei samples
) {
1506 gles2::cmds::FramebufferTexture2DMultisampleEXT
* c
=
1507 GetCmdSpace
<gles2::cmds::FramebufferTexture2DMultisampleEXT
>();
1509 c
->Init(target
, attachment
, textarget
, texture
, level
, samples
);
1513 void TexStorage2DEXT(
1514 GLenum target
, GLsizei levels
, GLenum internalFormat
, GLsizei width
,
1516 gles2::cmds::TexStorage2DEXT
* c
=
1517 GetCmdSpace
<gles2::cmds::TexStorage2DEXT
>();
1519 c
->Init(target
, levels
, internalFormat
, width
, height
);
1524 GLsizei n
, uint32 queries_shm_id
, uint32 queries_shm_offset
) {
1525 gles2::cmds::GenQueriesEXT
* c
= GetCmdSpace
<gles2::cmds::GenQueriesEXT
>();
1527 c
->Init(n
, queries_shm_id
, queries_shm_offset
);
1531 void GenQueriesEXTImmediate(GLsizei n
, GLuint
* queries
) {
1532 const uint32 size
= gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n
);
1533 gles2::cmds::GenQueriesEXTImmediate
* c
=
1534 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenQueriesEXTImmediate
>(
1537 c
->Init(n
, queries
);
1541 void DeleteQueriesEXT(
1542 GLsizei n
, uint32 queries_shm_id
, uint32 queries_shm_offset
) {
1543 gles2::cmds::DeleteQueriesEXT
* c
=
1544 GetCmdSpace
<gles2::cmds::DeleteQueriesEXT
>();
1546 c
->Init(n
, queries_shm_id
, queries_shm_offset
);
1550 void DeleteQueriesEXTImmediate(GLsizei n
, const GLuint
* queries
) {
1551 const uint32 size
= gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n
);
1552 gles2::cmds::DeleteQueriesEXTImmediate
* c
=
1553 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteQueriesEXTImmediate
>(
1556 c
->Init(n
, queries
);
1561 GLenum target
, GLuint id
, uint32 sync_data_shm_id
,
1562 uint32 sync_data_shm_offset
) {
1563 gles2::cmds::BeginQueryEXT
* c
= GetCmdSpace
<gles2::cmds::BeginQueryEXT
>();
1565 c
->Init(target
, id
, sync_data_shm_id
, sync_data_shm_offset
);
1569 void EndQueryEXT(GLenum target
, GLuint submit_count
) {
1570 gles2::cmds::EndQueryEXT
* c
= GetCmdSpace
<gles2::cmds::EndQueryEXT
>();
1572 c
->Init(target
, submit_count
);
1576 void InsertEventMarkerEXT(GLuint bucket_id
) {
1577 gles2::cmds::InsertEventMarkerEXT
* c
=
1578 GetCmdSpace
<gles2::cmds::InsertEventMarkerEXT
>();
1584 void PushGroupMarkerEXT(GLuint bucket_id
) {
1585 gles2::cmds::PushGroupMarkerEXT
* c
=
1586 GetCmdSpace
<gles2::cmds::PushGroupMarkerEXT
>();
1592 void PopGroupMarkerEXT() {
1593 gles2::cmds::PopGroupMarkerEXT
* c
=
1594 GetCmdSpace
<gles2::cmds::PopGroupMarkerEXT
>();
1600 void GenVertexArraysOES(
1601 GLsizei n
, uint32 arrays_shm_id
, uint32 arrays_shm_offset
) {
1602 gles2::cmds::GenVertexArraysOES
* c
=
1603 GetCmdSpace
<gles2::cmds::GenVertexArraysOES
>();
1605 c
->Init(n
, arrays_shm_id
, arrays_shm_offset
);
1609 void GenVertexArraysOESImmediate(GLsizei n
, GLuint
* arrays
) {
1611 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n
);
1612 gles2::cmds::GenVertexArraysOESImmediate
* c
=
1613 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenVertexArraysOESImmediate
>(
1620 void DeleteVertexArraysOES(
1621 GLsizei n
, uint32 arrays_shm_id
, uint32 arrays_shm_offset
) {
1622 gles2::cmds::DeleteVertexArraysOES
* c
=
1623 GetCmdSpace
<gles2::cmds::DeleteVertexArraysOES
>();
1625 c
->Init(n
, arrays_shm_id
, arrays_shm_offset
);
1629 void DeleteVertexArraysOESImmediate(GLsizei n
, const GLuint
* arrays
) {
1631 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n
);
1632 gles2::cmds::DeleteVertexArraysOESImmediate
* c
=
1633 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteVertexArraysOESImmediate
>(size
); // NOLINT
1639 void IsVertexArrayOES(
1640 GLuint array
, uint32 result_shm_id
, uint32 result_shm_offset
) {
1641 gles2::cmds::IsVertexArrayOES
* c
=
1642 GetCmdSpace
<gles2::cmds::IsVertexArrayOES
>();
1644 c
->Init(array
, result_shm_id
, result_shm_offset
);
1648 void BindVertexArrayOES(GLuint array
) {
1649 gles2::cmds::BindVertexArrayOES
* c
=
1650 GetCmdSpace
<gles2::cmds::BindVertexArrayOES
>();
1656 void SwapBuffers() {
1657 gles2::cmds::SwapBuffers
* c
= GetCmdSpace
<gles2::cmds::SwapBuffers
>();
1663 void GetMaxValueInBufferCHROMIUM(
1664 GLuint buffer_id
, GLsizei count
, GLenum type
, GLuint offset
,
1665 uint32 result_shm_id
, uint32 result_shm_offset
) {
1666 gles2::cmds::GetMaxValueInBufferCHROMIUM
* c
=
1667 GetCmdSpace
<gles2::cmds::GetMaxValueInBufferCHROMIUM
>();
1670 buffer_id
, count
, type
, offset
, result_shm_id
, result_shm_offset
);
1674 void GenSharedIdsCHROMIUM(
1675 GLuint namespace_id
, GLuint id_offset
, GLsizei n
, uint32 ids_shm_id
,
1676 uint32 ids_shm_offset
) {
1677 gles2::cmds::GenSharedIdsCHROMIUM
* c
=
1678 GetCmdSpace
<gles2::cmds::GenSharedIdsCHROMIUM
>();
1680 c
->Init(namespace_id
, id_offset
, n
, ids_shm_id
, ids_shm_offset
);
1684 void DeleteSharedIdsCHROMIUM(
1685 GLuint namespace_id
, GLsizei n
, uint32 ids_shm_id
,
1686 uint32 ids_shm_offset
) {
1687 gles2::cmds::DeleteSharedIdsCHROMIUM
* c
=
1688 GetCmdSpace
<gles2::cmds::DeleteSharedIdsCHROMIUM
>();
1690 c
->Init(namespace_id
, n
, ids_shm_id
, ids_shm_offset
);
1694 void RegisterSharedIdsCHROMIUM(
1695 GLuint namespace_id
, GLsizei n
, uint32 ids_shm_id
,
1696 uint32 ids_shm_offset
) {
1697 gles2::cmds::RegisterSharedIdsCHROMIUM
* c
=
1698 GetCmdSpace
<gles2::cmds::RegisterSharedIdsCHROMIUM
>();
1700 c
->Init(namespace_id
, n
, ids_shm_id
, ids_shm_offset
);
1704 void EnableFeatureCHROMIUM(
1705 GLuint bucket_id
, uint32 result_shm_id
, uint32 result_shm_offset
) {
1706 gles2::cmds::EnableFeatureCHROMIUM
* c
=
1707 GetCmdSpace
<gles2::cmds::EnableFeatureCHROMIUM
>();
1709 c
->Init(bucket_id
, result_shm_id
, result_shm_offset
);
1713 void ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) {
1714 gles2::cmds::ResizeCHROMIUM
* c
=
1715 GetCmdSpace
<gles2::cmds::ResizeCHROMIUM
>();
1717 c
->Init(width
, height
, scale_factor
);
1721 void GetRequestableExtensionsCHROMIUM(uint32 bucket_id
) {
1722 gles2::cmds::GetRequestableExtensionsCHROMIUM
* c
=
1723 GetCmdSpace
<gles2::cmds::GetRequestableExtensionsCHROMIUM
>();
1729 void RequestExtensionCHROMIUM(uint32 bucket_id
) {
1730 gles2::cmds::RequestExtensionCHROMIUM
* c
=
1731 GetCmdSpace
<gles2::cmds::RequestExtensionCHROMIUM
>();
1737 void GetMultipleIntegervCHROMIUM(
1738 uint32 pnames_shm_id
, uint32 pnames_shm_offset
, GLuint count
,
1739 uint32 results_shm_id
, uint32 results_shm_offset
, GLsizeiptr size
) {
1740 gles2::cmds::GetMultipleIntegervCHROMIUM
* c
=
1741 GetCmdSpace
<gles2::cmds::GetMultipleIntegervCHROMIUM
>();
1744 pnames_shm_id
, pnames_shm_offset
, count
, results_shm_id
,
1745 results_shm_offset
, size
);
1749 void GetProgramInfoCHROMIUM(GLuint program
, uint32 bucket_id
) {
1750 gles2::cmds::GetProgramInfoCHROMIUM
* c
=
1751 GetCmdSpace
<gles2::cmds::GetProgramInfoCHROMIUM
>();
1753 c
->Init(program
, bucket_id
);
1757 void CreateStreamTextureCHROMIUM(
1758 GLuint client_id
, uint32 result_shm_id
, uint32 result_shm_offset
) {
1759 gles2::cmds::CreateStreamTextureCHROMIUM
* c
=
1760 GetCmdSpace
<gles2::cmds::CreateStreamTextureCHROMIUM
>();
1762 c
->Init(client_id
, result_shm_id
, result_shm_offset
);
1766 void DestroyStreamTextureCHROMIUM(GLuint texture
) {
1767 gles2::cmds::DestroyStreamTextureCHROMIUM
* c
=
1768 GetCmdSpace
<gles2::cmds::DestroyStreamTextureCHROMIUM
>();
1774 void GetTranslatedShaderSourceANGLE(GLuint shader
, uint32 bucket_id
) {
1775 gles2::cmds::GetTranslatedShaderSourceANGLE
* c
=
1776 GetCmdSpace
<gles2::cmds::GetTranslatedShaderSourceANGLE
>();
1778 c
->Init(shader
, bucket_id
);
1782 void PostSubBufferCHROMIUM(GLint x
, GLint y
, GLint width
, GLint height
) {
1783 gles2::cmds::PostSubBufferCHROMIUM
* c
=
1784 GetCmdSpace
<gles2::cmds::PostSubBufferCHROMIUM
>();
1786 c
->Init(x
, y
, width
, height
);
1790 void TexImageIOSurface2DCHROMIUM(
1791 GLenum target
, GLsizei width
, GLsizei height
, GLuint ioSurfaceId
,
1793 gles2::cmds::TexImageIOSurface2DCHROMIUM
* c
=
1794 GetCmdSpace
<gles2::cmds::TexImageIOSurface2DCHROMIUM
>();
1796 c
->Init(target
, width
, height
, ioSurfaceId
, plane
);
1800 void CopyTextureCHROMIUM(
1801 GLenum target
, GLenum source_id
, GLenum dest_id
, GLint level
,
1802 GLint internalformat
, GLenum dest_type
) {
1803 gles2::cmds::CopyTextureCHROMIUM
* c
=
1804 GetCmdSpace
<gles2::cmds::CopyTextureCHROMIUM
>();
1806 c
->Init(target
, source_id
, dest_id
, level
, internalformat
, dest_type
);
1810 void DrawArraysInstancedANGLE(
1811 GLenum mode
, GLint first
, GLsizei count
, GLsizei primcount
) {
1812 gles2::cmds::DrawArraysInstancedANGLE
* c
=
1813 GetCmdSpace
<gles2::cmds::DrawArraysInstancedANGLE
>();
1815 c
->Init(mode
, first
, count
, primcount
);
1819 void DrawElementsInstancedANGLE(
1820 GLenum mode
, GLsizei count
, GLenum type
, GLuint index_offset
,
1821 GLsizei primcount
) {
1822 gles2::cmds::DrawElementsInstancedANGLE
* c
=
1823 GetCmdSpace
<gles2::cmds::DrawElementsInstancedANGLE
>();
1825 c
->Init(mode
, count
, type
, index_offset
, primcount
);
1829 void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1830 gles2::cmds::VertexAttribDivisorANGLE
* c
=
1831 GetCmdSpace
<gles2::cmds::VertexAttribDivisorANGLE
>();
1833 c
->Init(index
, divisor
);
1837 void ProduceTextureCHROMIUM(
1838 GLenum target
, uint32 mailbox_shm_id
, uint32 mailbox_shm_offset
) {
1839 gles2::cmds::ProduceTextureCHROMIUM
* c
=
1840 GetCmdSpace
<gles2::cmds::ProduceTextureCHROMIUM
>();
1842 c
->Init(target
, mailbox_shm_id
, mailbox_shm_offset
);
1846 void ProduceTextureCHROMIUMImmediate(GLenum target
, const GLbyte
* mailbox
) {
1848 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
1849 gles2::cmds::ProduceTextureCHROMIUMImmediate
* c
=
1850 GetImmediateCmdSpaceTotalSize
<gles2::cmds::ProduceTextureCHROMIUMImmediate
>(size
); // NOLINT
1852 c
->Init(target
, mailbox
);
1856 void ConsumeTextureCHROMIUM(
1857 GLenum target
, uint32 mailbox_shm_id
, uint32 mailbox_shm_offset
) {
1858 gles2::cmds::ConsumeTextureCHROMIUM
* c
=
1859 GetCmdSpace
<gles2::cmds::ConsumeTextureCHROMIUM
>();
1861 c
->Init(target
, mailbox_shm_id
, mailbox_shm_offset
);
1865 void ConsumeTextureCHROMIUMImmediate(GLenum target
, const GLbyte
* mailbox
) {
1867 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
1868 gles2::cmds::ConsumeTextureCHROMIUMImmediate
* c
=
1869 GetImmediateCmdSpaceTotalSize
<gles2::cmds::ConsumeTextureCHROMIUMImmediate
>(size
); // NOLINT
1871 c
->Init(target
, mailbox
);
1875 void BindUniformLocationCHROMIUM(
1876 GLuint program
, GLint location
, uint32 name_shm_id
,
1877 uint32 name_shm_offset
, uint32 data_size
) {
1878 gles2::cmds::BindUniformLocationCHROMIUM
* c
=
1879 GetCmdSpace
<gles2::cmds::BindUniformLocationCHROMIUM
>();
1881 c
->Init(program
, location
, name_shm_id
, name_shm_offset
, data_size
);
1885 void BindUniformLocationCHROMIUMBucket(
1886 GLuint program
, GLint location
, uint32 name_bucket_id
) {
1887 gles2::cmds::BindUniformLocationCHROMIUMBucket
* c
=
1888 GetCmdSpace
<gles2::cmds::BindUniformLocationCHROMIUMBucket
>();
1890 c
->Init(program
, location
, name_bucket_id
);
1894 void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1895 gles2::cmds::BindTexImage2DCHROMIUM
* c
=
1896 GetCmdSpace
<gles2::cmds::BindTexImage2DCHROMIUM
>();
1898 c
->Init(target
, imageId
);
1902 void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1903 gles2::cmds::ReleaseTexImage2DCHROMIUM
* c
=
1904 GetCmdSpace
<gles2::cmds::ReleaseTexImage2DCHROMIUM
>();
1906 c
->Init(target
, imageId
);
1910 void TraceBeginCHROMIUM(GLuint bucket_id
) {
1911 gles2::cmds::TraceBeginCHROMIUM
* c
=
1912 GetCmdSpace
<gles2::cmds::TraceBeginCHROMIUM
>();
1918 void TraceEndCHROMIUM() {
1919 gles2::cmds::TraceEndCHROMIUM
* c
=
1920 GetCmdSpace
<gles2::cmds::TraceEndCHROMIUM
>();
1926 void AsyncTexSubImage2DCHROMIUM(
1927 GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
,
1928 GLsizei height
, GLenum format
, GLenum type
, uint32 data_shm_id
,
1929 uint32 data_shm_offset
) {
1930 gles2::cmds::AsyncTexSubImage2DCHROMIUM
* c
=
1931 GetCmdSpace
<gles2::cmds::AsyncTexSubImage2DCHROMIUM
>();
1934 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
1935 data_shm_id
, data_shm_offset
);
1939 void AsyncTexImage2DCHROMIUM(
1940 GLenum target
, GLint level
, GLint internalformat
, GLsizei width
,
1941 GLsizei height
, GLint border
, GLenum format
, GLenum type
,
1942 uint32 pixels_shm_id
, uint32 pixels_shm_offset
) {
1943 gles2::cmds::AsyncTexImage2DCHROMIUM
* c
=
1944 GetCmdSpace
<gles2::cmds::AsyncTexImage2DCHROMIUM
>();
1947 target
, level
, internalformat
, width
, height
, border
, format
, type
,
1948 pixels_shm_id
, pixels_shm_offset
);
1952 void WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1953 gles2::cmds::WaitAsyncTexImage2DCHROMIUM
* c
=
1954 GetCmdSpace
<gles2::cmds::WaitAsyncTexImage2DCHROMIUM
>();
1960 void DiscardFramebufferEXT(
1961 GLenum target
, GLsizei count
, uint32 attachments_shm_id
,
1962 uint32 attachments_shm_offset
) {
1963 gles2::cmds::DiscardFramebufferEXT
* c
=
1964 GetCmdSpace
<gles2::cmds::DiscardFramebufferEXT
>();
1966 c
->Init(target
, count
, attachments_shm_id
, attachments_shm_offset
);
1970 void DiscardFramebufferEXTImmediate(
1971 GLenum target
, GLsizei count
, const GLenum
* attachments
) {
1973 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count
);
1974 gles2::cmds::DiscardFramebufferEXTImmediate
* c
=
1975 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DiscardFramebufferEXTImmediate
>(size
); // NOLINT
1977 c
->Init(target
, count
, attachments
);
1981 void LoseContextCHROMIUM(GLenum current
, GLenum other
) {
1982 gles2::cmds::LoseContextCHROMIUM
* c
=
1983 GetCmdSpace
<gles2::cmds::LoseContextCHROMIUM
>();
1985 c
->Init(current
, other
);
1989 void WaitSyncPointCHROMIUM(GLuint sync_point
) {
1990 gles2::cmds::WaitSyncPointCHROMIUM
* c
=
1991 GetCmdSpace
<gles2::cmds::WaitSyncPointCHROMIUM
>();
1993 c
->Init(sync_point
);
1997 void DrawBuffersEXT(
1998 GLsizei count
, uint32 bufs_shm_id
, uint32 bufs_shm_offset
) {
1999 gles2::cmds::DrawBuffersEXT
* c
=
2000 GetCmdSpace
<gles2::cmds::DrawBuffersEXT
>();
2002 c
->Init(count
, bufs_shm_id
, bufs_shm_offset
);
2006 void DrawBuffersEXTImmediate(GLsizei count
, const GLenum
* bufs
) {
2008 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count
);
2009 gles2::cmds::DrawBuffersEXTImmediate
* c
=
2010 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DrawBuffersEXTImmediate
>(
2013 c
->Init(count
, bufs
);
2017 void DiscardBackbufferCHROMIUM() {
2018 gles2::cmds::DiscardBackbufferCHROMIUM
* c
=
2019 GetCmdSpace
<gles2::cmds::DiscardBackbufferCHROMIUM
>();
2025 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_