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 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
14 void ActiveTexture(GLenum texture
) {
15 gles2::cmds::ActiveTexture
* c
= GetCmdSpace
<gles2::cmds::ActiveTexture
>();
21 void AttachShader(GLuint program
, GLuint shader
) {
22 gles2::cmds::AttachShader
* c
= GetCmdSpace
<gles2::cmds::AttachShader
>();
24 c
->Init(program
, shader
);
28 void BindAttribLocationBucket(GLuint program
,
30 uint32_t name_bucket_id
) {
31 gles2::cmds::BindAttribLocationBucket
* c
=
32 GetCmdSpace
<gles2::cmds::BindAttribLocationBucket
>();
34 c
->Init(program
, index
, name_bucket_id
);
38 void BindBuffer(GLenum target
, GLuint buffer
) {
39 gles2::cmds::BindBuffer
* c
= GetCmdSpace
<gles2::cmds::BindBuffer
>();
41 c
->Init(target
, buffer
);
45 void BindFramebuffer(GLenum target
, GLuint framebuffer
) {
46 gles2::cmds::BindFramebuffer
* c
= GetCmdSpace
<gles2::cmds::BindFramebuffer
>();
48 c
->Init(target
, framebuffer
);
52 void BindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
53 gles2::cmds::BindRenderbuffer
* c
=
54 GetCmdSpace
<gles2::cmds::BindRenderbuffer
>();
56 c
->Init(target
, renderbuffer
);
60 void BindTexture(GLenum target
, GLuint texture
) {
61 gles2::cmds::BindTexture
* c
= GetCmdSpace
<gles2::cmds::BindTexture
>();
63 c
->Init(target
, texture
);
67 void BlendColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
68 gles2::cmds::BlendColor
* c
= GetCmdSpace
<gles2::cmds::BlendColor
>();
70 c
->Init(red
, green
, blue
, alpha
);
74 void BlendEquation(GLenum mode
) {
75 gles2::cmds::BlendEquation
* c
= GetCmdSpace
<gles2::cmds::BlendEquation
>();
81 void BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
82 gles2::cmds::BlendEquationSeparate
* c
=
83 GetCmdSpace
<gles2::cmds::BlendEquationSeparate
>();
85 c
->Init(modeRGB
, modeAlpha
);
89 void BlendFunc(GLenum sfactor
, GLenum dfactor
) {
90 gles2::cmds::BlendFunc
* c
= GetCmdSpace
<gles2::cmds::BlendFunc
>();
92 c
->Init(sfactor
, dfactor
);
96 void BlendFuncSeparate(GLenum srcRGB
,
100 gles2::cmds::BlendFuncSeparate
* c
=
101 GetCmdSpace
<gles2::cmds::BlendFuncSeparate
>();
103 c
->Init(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
107 void BufferData(GLenum target
,
109 uint32_t data_shm_id
,
110 uint32_t data_shm_offset
,
112 gles2::cmds::BufferData
* c
= GetCmdSpace
<gles2::cmds::BufferData
>();
114 c
->Init(target
, size
, data_shm_id
, data_shm_offset
, usage
);
118 void BufferSubData(GLenum target
,
121 uint32_t data_shm_id
,
122 uint32_t data_shm_offset
) {
123 gles2::cmds::BufferSubData
* c
= GetCmdSpace
<gles2::cmds::BufferSubData
>();
125 c
->Init(target
, offset
, size
, data_shm_id
, data_shm_offset
);
129 void CheckFramebufferStatus(GLenum target
,
130 uint32_t result_shm_id
,
131 uint32_t result_shm_offset
) {
132 gles2::cmds::CheckFramebufferStatus
* c
=
133 GetCmdSpace
<gles2::cmds::CheckFramebufferStatus
>();
135 c
->Init(target
, result_shm_id
, result_shm_offset
);
139 void Clear(GLbitfield mask
) {
140 gles2::cmds::Clear
* c
= GetCmdSpace
<gles2::cmds::Clear
>();
146 void ClearColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
147 gles2::cmds::ClearColor
* c
= GetCmdSpace
<gles2::cmds::ClearColor
>();
149 c
->Init(red
, green
, blue
, alpha
);
153 void ClearDepthf(GLclampf depth
) {
154 gles2::cmds::ClearDepthf
* c
= GetCmdSpace
<gles2::cmds::ClearDepthf
>();
160 void ClearStencil(GLint s
) {
161 gles2::cmds::ClearStencil
* c
= GetCmdSpace
<gles2::cmds::ClearStencil
>();
167 void ColorMask(GLboolean red
,
171 gles2::cmds::ColorMask
* c
= GetCmdSpace
<gles2::cmds::ColorMask
>();
173 c
->Init(red
, green
, blue
, alpha
);
177 void CompileShader(GLuint shader
) {
178 gles2::cmds::CompileShader
* c
= GetCmdSpace
<gles2::cmds::CompileShader
>();
184 void CompressedTexImage2DBucket(GLenum target
,
186 GLenum internalformat
,
190 gles2::cmds::CompressedTexImage2DBucket
* c
=
191 GetCmdSpace
<gles2::cmds::CompressedTexImage2DBucket
>();
193 c
->Init(target
, level
, internalformat
, width
, height
, bucket_id
);
197 void CompressedTexImage2D(GLenum target
,
199 GLenum internalformat
,
203 uint32_t data_shm_id
,
204 uint32_t data_shm_offset
) {
205 gles2::cmds::CompressedTexImage2D
* c
=
206 GetCmdSpace
<gles2::cmds::CompressedTexImage2D
>();
219 void CompressedTexSubImage2DBucket(GLenum target
,
227 gles2::cmds::CompressedTexSubImage2DBucket
* c
=
228 GetCmdSpace
<gles2::cmds::CompressedTexSubImage2DBucket
>();
230 c
->Init(target
, level
, xoffset
, yoffset
, width
, height
, format
, bucket_id
);
234 void CompressedTexSubImage2D(GLenum target
,
242 uint32_t data_shm_id
,
243 uint32_t data_shm_offset
) {
244 gles2::cmds::CompressedTexSubImage2D
* c
=
245 GetCmdSpace
<gles2::cmds::CompressedTexSubImage2D
>();
260 void CopyTexImage2D(GLenum target
,
262 GLenum internalformat
,
267 gles2::cmds::CopyTexImage2D
* c
= GetCmdSpace
<gles2::cmds::CopyTexImage2D
>();
269 c
->Init(target
, level
, internalformat
, x
, y
, width
, height
);
273 void CopyTexSubImage2D(GLenum target
,
281 gles2::cmds::CopyTexSubImage2D
* c
=
282 GetCmdSpace
<gles2::cmds::CopyTexSubImage2D
>();
284 c
->Init(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
288 void CreateProgram(uint32_t client_id
) {
289 gles2::cmds::CreateProgram
* c
= GetCmdSpace
<gles2::cmds::CreateProgram
>();
295 void CreateShader(GLenum type
, uint32_t client_id
) {
296 gles2::cmds::CreateShader
* c
= GetCmdSpace
<gles2::cmds::CreateShader
>();
298 c
->Init(type
, client_id
);
302 void CullFace(GLenum mode
) {
303 gles2::cmds::CullFace
* c
= GetCmdSpace
<gles2::cmds::CullFace
>();
309 void DeleteBuffersImmediate(GLsizei n
, const GLuint
* buffers
) {
310 const uint32_t size
= gles2::cmds::DeleteBuffersImmediate::ComputeSize(n
);
311 gles2::cmds::DeleteBuffersImmediate
* c
=
312 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteBuffersImmediate
>(size
);
318 void DeleteFramebuffersImmediate(GLsizei n
, const GLuint
* framebuffers
) {
319 const uint32_t size
=
320 gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n
);
321 gles2::cmds::DeleteFramebuffersImmediate
* c
=
322 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteFramebuffersImmediate
>(
325 c
->Init(n
, framebuffers
);
329 void DeleteProgram(GLuint program
) {
330 gles2::cmds::DeleteProgram
* c
= GetCmdSpace
<gles2::cmds::DeleteProgram
>();
336 void DeleteRenderbuffersImmediate(GLsizei n
, const GLuint
* renderbuffers
) {
337 const uint32_t size
=
338 gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n
);
339 gles2::cmds::DeleteRenderbuffersImmediate
* c
=
340 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteRenderbuffersImmediate
>(
343 c
->Init(n
, renderbuffers
);
347 void DeleteShader(GLuint shader
) {
348 gles2::cmds::DeleteShader
* c
= GetCmdSpace
<gles2::cmds::DeleteShader
>();
354 void DeleteTexturesImmediate(GLsizei n
, const GLuint
* textures
) {
355 const uint32_t size
= gles2::cmds::DeleteTexturesImmediate::ComputeSize(n
);
356 gles2::cmds::DeleteTexturesImmediate
* c
=
357 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteTexturesImmediate
>(size
);
359 c
->Init(n
, textures
);
363 void DepthFunc(GLenum func
) {
364 gles2::cmds::DepthFunc
* c
= GetCmdSpace
<gles2::cmds::DepthFunc
>();
370 void DepthMask(GLboolean flag
) {
371 gles2::cmds::DepthMask
* c
= GetCmdSpace
<gles2::cmds::DepthMask
>();
377 void DepthRangef(GLclampf zNear
, GLclampf zFar
) {
378 gles2::cmds::DepthRangef
* c
= GetCmdSpace
<gles2::cmds::DepthRangef
>();
380 c
->Init(zNear
, zFar
);
384 void DetachShader(GLuint program
, GLuint shader
) {
385 gles2::cmds::DetachShader
* c
= GetCmdSpace
<gles2::cmds::DetachShader
>();
387 c
->Init(program
, shader
);
391 void Disable(GLenum cap
) {
392 gles2::cmds::Disable
* c
= GetCmdSpace
<gles2::cmds::Disable
>();
398 void DisableVertexAttribArray(GLuint index
) {
399 gles2::cmds::DisableVertexAttribArray
* c
=
400 GetCmdSpace
<gles2::cmds::DisableVertexAttribArray
>();
406 void DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
407 gles2::cmds::DrawArrays
* c
= GetCmdSpace
<gles2::cmds::DrawArrays
>();
409 c
->Init(mode
, first
, count
);
413 void DrawElements(GLenum mode
,
416 GLuint index_offset
) {
417 gles2::cmds::DrawElements
* c
= GetCmdSpace
<gles2::cmds::DrawElements
>();
419 c
->Init(mode
, count
, type
, index_offset
);
423 void Enable(GLenum cap
) {
424 gles2::cmds::Enable
* c
= GetCmdSpace
<gles2::cmds::Enable
>();
430 void EnableVertexAttribArray(GLuint index
) {
431 gles2::cmds::EnableVertexAttribArray
* c
=
432 GetCmdSpace
<gles2::cmds::EnableVertexAttribArray
>();
439 gles2::cmds::Finish
* c
= GetCmdSpace
<gles2::cmds::Finish
>();
446 gles2::cmds::Flush
* c
= GetCmdSpace
<gles2::cmds::Flush
>();
452 void FramebufferRenderbuffer(GLenum target
,
454 GLenum renderbuffertarget
,
455 GLuint renderbuffer
) {
456 gles2::cmds::FramebufferRenderbuffer
* c
=
457 GetCmdSpace
<gles2::cmds::FramebufferRenderbuffer
>();
459 c
->Init(target
, attachment
, renderbuffertarget
, renderbuffer
);
463 void FramebufferTexture2D(GLenum target
,
467 gles2::cmds::FramebufferTexture2D
* c
=
468 GetCmdSpace
<gles2::cmds::FramebufferTexture2D
>();
470 c
->Init(target
, attachment
, textarget
, texture
);
474 void FrontFace(GLenum mode
) {
475 gles2::cmds::FrontFace
* c
= GetCmdSpace
<gles2::cmds::FrontFace
>();
481 void GenBuffersImmediate(GLsizei n
, GLuint
* buffers
) {
482 const uint32_t size
= gles2::cmds::GenBuffersImmediate::ComputeSize(n
);
483 gles2::cmds::GenBuffersImmediate
* c
=
484 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenBuffersImmediate
>(size
);
490 void GenerateMipmap(GLenum target
) {
491 gles2::cmds::GenerateMipmap
* c
= GetCmdSpace
<gles2::cmds::GenerateMipmap
>();
497 void GenFramebuffersImmediate(GLsizei n
, GLuint
* framebuffers
) {
498 const uint32_t size
= gles2::cmds::GenFramebuffersImmediate::ComputeSize(n
);
499 gles2::cmds::GenFramebuffersImmediate
* c
=
500 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenFramebuffersImmediate
>(
503 c
->Init(n
, framebuffers
);
507 void GenRenderbuffersImmediate(GLsizei n
, GLuint
* renderbuffers
) {
508 const uint32_t size
= gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n
);
509 gles2::cmds::GenRenderbuffersImmediate
* c
=
510 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenRenderbuffersImmediate
>(
513 c
->Init(n
, renderbuffers
);
517 void GenTexturesImmediate(GLsizei n
, GLuint
* textures
) {
518 const uint32_t size
= gles2::cmds::GenTexturesImmediate::ComputeSize(n
);
519 gles2::cmds::GenTexturesImmediate
* c
=
520 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenTexturesImmediate
>(size
);
522 c
->Init(n
, textures
);
526 void GetActiveAttrib(GLuint program
,
528 uint32_t name_bucket_id
,
529 uint32_t result_shm_id
,
530 uint32_t result_shm_offset
) {
531 gles2::cmds::GetActiveAttrib
* c
= GetCmdSpace
<gles2::cmds::GetActiveAttrib
>();
533 c
->Init(program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
537 void GetActiveUniform(GLuint program
,
539 uint32_t name_bucket_id
,
540 uint32_t result_shm_id
,
541 uint32_t result_shm_offset
) {
542 gles2::cmds::GetActiveUniform
* c
=
543 GetCmdSpace
<gles2::cmds::GetActiveUniform
>();
545 c
->Init(program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
549 void GetAttachedShaders(GLuint program
,
550 uint32_t result_shm_id
,
551 uint32_t result_shm_offset
,
552 uint32_t result_size
) {
553 gles2::cmds::GetAttachedShaders
* c
=
554 GetCmdSpace
<gles2::cmds::GetAttachedShaders
>();
556 c
->Init(program
, result_shm_id
, result_shm_offset
, result_size
);
560 void GetAttribLocation(GLuint program
,
561 uint32_t name_bucket_id
,
562 uint32_t location_shm_id
,
563 uint32_t location_shm_offset
) {
564 gles2::cmds::GetAttribLocation
* c
=
565 GetCmdSpace
<gles2::cmds::GetAttribLocation
>();
567 c
->Init(program
, name_bucket_id
, location_shm_id
, location_shm_offset
);
571 void GetBooleanv(GLenum pname
,
572 uint32_t params_shm_id
,
573 uint32_t params_shm_offset
) {
574 gles2::cmds::GetBooleanv
* c
= GetCmdSpace
<gles2::cmds::GetBooleanv
>();
576 c
->Init(pname
, params_shm_id
, params_shm_offset
);
580 void GetBufferParameteriv(GLenum target
,
582 uint32_t params_shm_id
,
583 uint32_t params_shm_offset
) {
584 gles2::cmds::GetBufferParameteriv
* c
=
585 GetCmdSpace
<gles2::cmds::GetBufferParameteriv
>();
587 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
591 void GetError(uint32_t result_shm_id
, uint32_t result_shm_offset
) {
592 gles2::cmds::GetError
* c
= GetCmdSpace
<gles2::cmds::GetError
>();
594 c
->Init(result_shm_id
, result_shm_offset
);
598 void GetFloatv(GLenum pname
,
599 uint32_t params_shm_id
,
600 uint32_t params_shm_offset
) {
601 gles2::cmds::GetFloatv
* c
= GetCmdSpace
<gles2::cmds::GetFloatv
>();
603 c
->Init(pname
, params_shm_id
, params_shm_offset
);
607 void GetFramebufferAttachmentParameteriv(GLenum target
,
610 uint32_t params_shm_id
,
611 uint32_t params_shm_offset
) {
612 gles2::cmds::GetFramebufferAttachmentParameteriv
* c
=
613 GetCmdSpace
<gles2::cmds::GetFramebufferAttachmentParameteriv
>();
615 c
->Init(target
, attachment
, pname
, params_shm_id
, params_shm_offset
);
619 void GetIntegerv(GLenum pname
,
620 uint32_t params_shm_id
,
621 uint32_t params_shm_offset
) {
622 gles2::cmds::GetIntegerv
* c
= GetCmdSpace
<gles2::cmds::GetIntegerv
>();
624 c
->Init(pname
, params_shm_id
, params_shm_offset
);
628 void GetProgramiv(GLuint program
,
630 uint32_t params_shm_id
,
631 uint32_t params_shm_offset
) {
632 gles2::cmds::GetProgramiv
* c
= GetCmdSpace
<gles2::cmds::GetProgramiv
>();
634 c
->Init(program
, pname
, params_shm_id
, params_shm_offset
);
638 void GetProgramInfoLog(GLuint program
, uint32_t bucket_id
) {
639 gles2::cmds::GetProgramInfoLog
* c
=
640 GetCmdSpace
<gles2::cmds::GetProgramInfoLog
>();
642 c
->Init(program
, bucket_id
);
646 void GetRenderbufferParameteriv(GLenum target
,
648 uint32_t params_shm_id
,
649 uint32_t params_shm_offset
) {
650 gles2::cmds::GetRenderbufferParameteriv
* c
=
651 GetCmdSpace
<gles2::cmds::GetRenderbufferParameteriv
>();
653 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
657 void GetShaderiv(GLuint shader
,
659 uint32_t params_shm_id
,
660 uint32_t params_shm_offset
) {
661 gles2::cmds::GetShaderiv
* c
= GetCmdSpace
<gles2::cmds::GetShaderiv
>();
663 c
->Init(shader
, pname
, params_shm_id
, params_shm_offset
);
667 void GetShaderInfoLog(GLuint shader
, uint32_t bucket_id
) {
668 gles2::cmds::GetShaderInfoLog
* c
=
669 GetCmdSpace
<gles2::cmds::GetShaderInfoLog
>();
671 c
->Init(shader
, bucket_id
);
675 void GetShaderPrecisionFormat(GLenum shadertype
,
676 GLenum precisiontype
,
677 uint32_t result_shm_id
,
678 uint32_t result_shm_offset
) {
679 gles2::cmds::GetShaderPrecisionFormat
* c
=
680 GetCmdSpace
<gles2::cmds::GetShaderPrecisionFormat
>();
682 c
->Init(shadertype
, precisiontype
, result_shm_id
, result_shm_offset
);
686 void GetShaderSource(GLuint shader
, uint32_t bucket_id
) {
687 gles2::cmds::GetShaderSource
* c
= GetCmdSpace
<gles2::cmds::GetShaderSource
>();
689 c
->Init(shader
, bucket_id
);
693 void GetString(GLenum name
, uint32_t bucket_id
) {
694 gles2::cmds::GetString
* c
= GetCmdSpace
<gles2::cmds::GetString
>();
696 c
->Init(name
, bucket_id
);
700 void GetTexParameterfv(GLenum target
,
702 uint32_t params_shm_id
,
703 uint32_t params_shm_offset
) {
704 gles2::cmds::GetTexParameterfv
* c
=
705 GetCmdSpace
<gles2::cmds::GetTexParameterfv
>();
707 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
711 void GetTexParameteriv(GLenum target
,
713 uint32_t params_shm_id
,
714 uint32_t params_shm_offset
) {
715 gles2::cmds::GetTexParameteriv
* c
=
716 GetCmdSpace
<gles2::cmds::GetTexParameteriv
>();
718 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
722 void GetUniformfv(GLuint program
,
724 uint32_t params_shm_id
,
725 uint32_t params_shm_offset
) {
726 gles2::cmds::GetUniformfv
* c
= GetCmdSpace
<gles2::cmds::GetUniformfv
>();
728 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
732 void GetUniformiv(GLuint program
,
734 uint32_t params_shm_id
,
735 uint32_t params_shm_offset
) {
736 gles2::cmds::GetUniformiv
* c
= GetCmdSpace
<gles2::cmds::GetUniformiv
>();
738 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
742 void GetUniformLocation(GLuint program
,
743 uint32_t name_bucket_id
,
744 uint32_t location_shm_id
,
745 uint32_t location_shm_offset
) {
746 gles2::cmds::GetUniformLocation
* c
=
747 GetCmdSpace
<gles2::cmds::GetUniformLocation
>();
749 c
->Init(program
, name_bucket_id
, location_shm_id
, location_shm_offset
);
753 void GetVertexAttribfv(GLuint index
,
755 uint32_t params_shm_id
,
756 uint32_t params_shm_offset
) {
757 gles2::cmds::GetVertexAttribfv
* c
=
758 GetCmdSpace
<gles2::cmds::GetVertexAttribfv
>();
760 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
764 void GetVertexAttribiv(GLuint index
,
766 uint32_t params_shm_id
,
767 uint32_t params_shm_offset
) {
768 gles2::cmds::GetVertexAttribiv
* c
=
769 GetCmdSpace
<gles2::cmds::GetVertexAttribiv
>();
771 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
775 void GetVertexAttribPointerv(GLuint index
,
777 uint32_t pointer_shm_id
,
778 uint32_t pointer_shm_offset
) {
779 gles2::cmds::GetVertexAttribPointerv
* c
=
780 GetCmdSpace
<gles2::cmds::GetVertexAttribPointerv
>();
782 c
->Init(index
, pname
, pointer_shm_id
, pointer_shm_offset
);
786 void Hint(GLenum target
, GLenum mode
) {
787 gles2::cmds::Hint
* c
= GetCmdSpace
<gles2::cmds::Hint
>();
789 c
->Init(target
, mode
);
793 void IsBuffer(GLuint buffer
,
794 uint32_t result_shm_id
,
795 uint32_t result_shm_offset
) {
796 gles2::cmds::IsBuffer
* c
= GetCmdSpace
<gles2::cmds::IsBuffer
>();
798 c
->Init(buffer
, result_shm_id
, result_shm_offset
);
802 void IsEnabled(GLenum cap
, uint32_t result_shm_id
, uint32_t result_shm_offset
) {
803 gles2::cmds::IsEnabled
* c
= GetCmdSpace
<gles2::cmds::IsEnabled
>();
805 c
->Init(cap
, result_shm_id
, result_shm_offset
);
809 void IsFramebuffer(GLuint framebuffer
,
810 uint32_t result_shm_id
,
811 uint32_t result_shm_offset
) {
812 gles2::cmds::IsFramebuffer
* c
= GetCmdSpace
<gles2::cmds::IsFramebuffer
>();
814 c
->Init(framebuffer
, result_shm_id
, result_shm_offset
);
818 void IsProgram(GLuint program
,
819 uint32_t result_shm_id
,
820 uint32_t result_shm_offset
) {
821 gles2::cmds::IsProgram
* c
= GetCmdSpace
<gles2::cmds::IsProgram
>();
823 c
->Init(program
, result_shm_id
, result_shm_offset
);
827 void IsRenderbuffer(GLuint renderbuffer
,
828 uint32_t result_shm_id
,
829 uint32_t result_shm_offset
) {
830 gles2::cmds::IsRenderbuffer
* c
= GetCmdSpace
<gles2::cmds::IsRenderbuffer
>();
832 c
->Init(renderbuffer
, result_shm_id
, result_shm_offset
);
836 void IsShader(GLuint shader
,
837 uint32_t result_shm_id
,
838 uint32_t result_shm_offset
) {
839 gles2::cmds::IsShader
* c
= GetCmdSpace
<gles2::cmds::IsShader
>();
841 c
->Init(shader
, result_shm_id
, result_shm_offset
);
845 void IsTexture(GLuint texture
,
846 uint32_t result_shm_id
,
847 uint32_t result_shm_offset
) {
848 gles2::cmds::IsTexture
* c
= GetCmdSpace
<gles2::cmds::IsTexture
>();
850 c
->Init(texture
, result_shm_id
, result_shm_offset
);
854 void LineWidth(GLfloat width
) {
855 gles2::cmds::LineWidth
* c
= GetCmdSpace
<gles2::cmds::LineWidth
>();
861 void LinkProgram(GLuint program
) {
862 gles2::cmds::LinkProgram
* c
= GetCmdSpace
<gles2::cmds::LinkProgram
>();
868 void PixelStorei(GLenum pname
, GLint param
) {
869 gles2::cmds::PixelStorei
* c
= GetCmdSpace
<gles2::cmds::PixelStorei
>();
871 c
->Init(pname
, param
);
875 void PolygonOffset(GLfloat factor
, GLfloat units
) {
876 gles2::cmds::PolygonOffset
* c
= GetCmdSpace
<gles2::cmds::PolygonOffset
>();
878 c
->Init(factor
, units
);
882 void ReadPixels(GLint x
,
888 uint32_t pixels_shm_id
,
889 uint32_t pixels_shm_offset
,
890 uint32_t result_shm_id
,
891 uint32_t result_shm_offset
,
893 gles2::cmds::ReadPixels
* c
= GetCmdSpace
<gles2::cmds::ReadPixels
>();
909 void ReleaseShaderCompiler() {
910 gles2::cmds::ReleaseShaderCompiler
* c
=
911 GetCmdSpace
<gles2::cmds::ReleaseShaderCompiler
>();
917 void RenderbufferStorage(GLenum target
,
918 GLenum internalformat
,
921 gles2::cmds::RenderbufferStorage
* c
=
922 GetCmdSpace
<gles2::cmds::RenderbufferStorage
>();
924 c
->Init(target
, internalformat
, width
, height
);
928 void SampleCoverage(GLclampf value
, GLboolean invert
) {
929 gles2::cmds::SampleCoverage
* c
= GetCmdSpace
<gles2::cmds::SampleCoverage
>();
931 c
->Init(value
, invert
);
935 void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
936 gles2::cmds::Scissor
* c
= GetCmdSpace
<gles2::cmds::Scissor
>();
938 c
->Init(x
, y
, width
, height
);
942 void ShaderBinary(GLsizei n
,
943 uint32_t shaders_shm_id
,
944 uint32_t shaders_shm_offset
,
946 uint32_t binary_shm_id
,
947 uint32_t binary_shm_offset
,
949 gles2::cmds::ShaderBinary
* c
= GetCmdSpace
<gles2::cmds::ShaderBinary
>();
961 void ShaderSourceBucket(GLuint shader
, uint32_t data_bucket_id
) {
962 gles2::cmds::ShaderSourceBucket
* c
=
963 GetCmdSpace
<gles2::cmds::ShaderSourceBucket
>();
965 c
->Init(shader
, data_bucket_id
);
969 void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
970 gles2::cmds::StencilFunc
* c
= GetCmdSpace
<gles2::cmds::StencilFunc
>();
972 c
->Init(func
, ref
, mask
);
976 void StencilFuncSeparate(GLenum face
, GLenum func
, GLint ref
, GLuint mask
) {
977 gles2::cmds::StencilFuncSeparate
* c
=
978 GetCmdSpace
<gles2::cmds::StencilFuncSeparate
>();
980 c
->Init(face
, func
, ref
, mask
);
984 void StencilMask(GLuint mask
) {
985 gles2::cmds::StencilMask
* c
= GetCmdSpace
<gles2::cmds::StencilMask
>();
991 void StencilMaskSeparate(GLenum face
, GLuint mask
) {
992 gles2::cmds::StencilMaskSeparate
* c
=
993 GetCmdSpace
<gles2::cmds::StencilMaskSeparate
>();
999 void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
1000 gles2::cmds::StencilOp
* c
= GetCmdSpace
<gles2::cmds::StencilOp
>();
1002 c
->Init(fail
, zfail
, zpass
);
1006 void StencilOpSeparate(GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
) {
1007 gles2::cmds::StencilOpSeparate
* c
=
1008 GetCmdSpace
<gles2::cmds::StencilOpSeparate
>();
1010 c
->Init(face
, fail
, zfail
, zpass
);
1014 void TexImage2D(GLenum target
,
1016 GLint internalformat
,
1021 uint32_t pixels_shm_id
,
1022 uint32_t pixels_shm_offset
) {
1023 gles2::cmds::TexImage2D
* c
= GetCmdSpace
<gles2::cmds::TexImage2D
>();
1037 void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
1038 gles2::cmds::TexParameterf
* c
= GetCmdSpace
<gles2::cmds::TexParameterf
>();
1040 c
->Init(target
, pname
, param
);
1044 void TexParameterfvImmediate(GLenum target
,
1046 const GLfloat
* params
) {
1047 const uint32_t size
= gles2::cmds::TexParameterfvImmediate::ComputeSize();
1048 gles2::cmds::TexParameterfvImmediate
* c
=
1049 GetImmediateCmdSpaceTotalSize
<gles2::cmds::TexParameterfvImmediate
>(size
);
1051 c
->Init(target
, pname
, params
);
1055 void TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
1056 gles2::cmds::TexParameteri
* c
= GetCmdSpace
<gles2::cmds::TexParameteri
>();
1058 c
->Init(target
, pname
, param
);
1062 void TexParameterivImmediate(GLenum target
, GLenum pname
, const GLint
* params
) {
1063 const uint32_t size
= gles2::cmds::TexParameterivImmediate::ComputeSize();
1064 gles2::cmds::TexParameterivImmediate
* c
=
1065 GetImmediateCmdSpaceTotalSize
<gles2::cmds::TexParameterivImmediate
>(size
);
1067 c
->Init(target
, pname
, params
);
1071 void TexSubImage2D(GLenum target
,
1079 uint32_t pixels_shm_id
,
1080 uint32_t pixels_shm_offset
,
1081 GLboolean internal
) {
1082 gles2::cmds::TexSubImage2D
* c
= GetCmdSpace
<gles2::cmds::TexSubImage2D
>();
1098 void Uniform1f(GLint location
, GLfloat x
) {
1099 gles2::cmds::Uniform1f
* c
= GetCmdSpace
<gles2::cmds::Uniform1f
>();
1101 c
->Init(location
, x
);
1105 void Uniform1fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1106 const uint32_t size
= gles2::cmds::Uniform1fvImmediate::ComputeSize(count
);
1107 gles2::cmds::Uniform1fvImmediate
* c
=
1108 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1fvImmediate
>(size
);
1110 c
->Init(location
, count
, v
);
1114 void Uniform1i(GLint location
, GLint x
) {
1115 gles2::cmds::Uniform1i
* c
= GetCmdSpace
<gles2::cmds::Uniform1i
>();
1117 c
->Init(location
, x
);
1121 void Uniform1ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1122 const uint32_t size
= gles2::cmds::Uniform1ivImmediate::ComputeSize(count
);
1123 gles2::cmds::Uniform1ivImmediate
* c
=
1124 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1ivImmediate
>(size
);
1126 c
->Init(location
, count
, v
);
1130 void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
1131 gles2::cmds::Uniform2f
* c
= GetCmdSpace
<gles2::cmds::Uniform2f
>();
1133 c
->Init(location
, x
, y
);
1137 void Uniform2fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1138 const uint32_t size
= gles2::cmds::Uniform2fvImmediate::ComputeSize(count
);
1139 gles2::cmds::Uniform2fvImmediate
* c
=
1140 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2fvImmediate
>(size
);
1142 c
->Init(location
, count
, v
);
1146 void Uniform2i(GLint location
, GLint x
, GLint y
) {
1147 gles2::cmds::Uniform2i
* c
= GetCmdSpace
<gles2::cmds::Uniform2i
>();
1149 c
->Init(location
, x
, y
);
1153 void Uniform2ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1154 const uint32_t size
= gles2::cmds::Uniform2ivImmediate::ComputeSize(count
);
1155 gles2::cmds::Uniform2ivImmediate
* c
=
1156 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2ivImmediate
>(size
);
1158 c
->Init(location
, count
, v
);
1162 void Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
1163 gles2::cmds::Uniform3f
* c
= GetCmdSpace
<gles2::cmds::Uniform3f
>();
1165 c
->Init(location
, x
, y
, z
);
1169 void Uniform3fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1170 const uint32_t size
= gles2::cmds::Uniform3fvImmediate::ComputeSize(count
);
1171 gles2::cmds::Uniform3fvImmediate
* c
=
1172 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3fvImmediate
>(size
);
1174 c
->Init(location
, count
, v
);
1178 void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
1179 gles2::cmds::Uniform3i
* c
= GetCmdSpace
<gles2::cmds::Uniform3i
>();
1181 c
->Init(location
, x
, y
, z
);
1185 void Uniform3ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1186 const uint32_t size
= gles2::cmds::Uniform3ivImmediate::ComputeSize(count
);
1187 gles2::cmds::Uniform3ivImmediate
* c
=
1188 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3ivImmediate
>(size
);
1190 c
->Init(location
, count
, v
);
1194 void Uniform4f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
1195 gles2::cmds::Uniform4f
* c
= GetCmdSpace
<gles2::cmds::Uniform4f
>();
1197 c
->Init(location
, x
, y
, z
, w
);
1201 void Uniform4fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1202 const uint32_t size
= gles2::cmds::Uniform4fvImmediate::ComputeSize(count
);
1203 gles2::cmds::Uniform4fvImmediate
* c
=
1204 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4fvImmediate
>(size
);
1206 c
->Init(location
, count
, v
);
1210 void Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
1211 gles2::cmds::Uniform4i
* c
= GetCmdSpace
<gles2::cmds::Uniform4i
>();
1213 c
->Init(location
, x
, y
, z
, w
);
1217 void Uniform4ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1218 const uint32_t size
= gles2::cmds::Uniform4ivImmediate::ComputeSize(count
);
1219 gles2::cmds::Uniform4ivImmediate
* c
=
1220 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4ivImmediate
>(size
);
1222 c
->Init(location
, count
, v
);
1226 void UniformMatrix2fvImmediate(GLint location
,
1228 const GLfloat
* value
) {
1229 const uint32_t size
=
1230 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count
);
1231 gles2::cmds::UniformMatrix2fvImmediate
* c
=
1232 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix2fvImmediate
>(
1235 c
->Init(location
, count
, value
);
1239 void UniformMatrix3fvImmediate(GLint location
,
1241 const GLfloat
* value
) {
1242 const uint32_t size
=
1243 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count
);
1244 gles2::cmds::UniformMatrix3fvImmediate
* c
=
1245 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix3fvImmediate
>(
1248 c
->Init(location
, count
, value
);
1252 void UniformMatrix4fvImmediate(GLint location
,
1254 const GLfloat
* value
) {
1255 const uint32_t size
=
1256 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count
);
1257 gles2::cmds::UniformMatrix4fvImmediate
* c
=
1258 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix4fvImmediate
>(
1261 c
->Init(location
, count
, value
);
1265 void UseProgram(GLuint program
) {
1266 gles2::cmds::UseProgram
* c
= GetCmdSpace
<gles2::cmds::UseProgram
>();
1272 void ValidateProgram(GLuint program
) {
1273 gles2::cmds::ValidateProgram
* c
= GetCmdSpace
<gles2::cmds::ValidateProgram
>();
1279 void VertexAttrib1f(GLuint indx
, GLfloat x
) {
1280 gles2::cmds::VertexAttrib1f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib1f
>();
1286 void VertexAttrib1fvImmediate(GLuint indx
, const GLfloat
* values
) {
1287 const uint32_t size
= gles2::cmds::VertexAttrib1fvImmediate::ComputeSize();
1288 gles2::cmds::VertexAttrib1fvImmediate
* c
=
1289 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib1fvImmediate
>(
1292 c
->Init(indx
, values
);
1296 void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
1297 gles2::cmds::VertexAttrib2f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib2f
>();
1299 c
->Init(indx
, x
, y
);
1303 void VertexAttrib2fvImmediate(GLuint indx
, const GLfloat
* values
) {
1304 const uint32_t size
= gles2::cmds::VertexAttrib2fvImmediate::ComputeSize();
1305 gles2::cmds::VertexAttrib2fvImmediate
* c
=
1306 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib2fvImmediate
>(
1309 c
->Init(indx
, values
);
1313 void VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
1314 gles2::cmds::VertexAttrib3f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib3f
>();
1316 c
->Init(indx
, x
, y
, z
);
1320 void VertexAttrib3fvImmediate(GLuint indx
, const GLfloat
* values
) {
1321 const uint32_t size
= gles2::cmds::VertexAttrib3fvImmediate::ComputeSize();
1322 gles2::cmds::VertexAttrib3fvImmediate
* c
=
1323 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib3fvImmediate
>(
1326 c
->Init(indx
, values
);
1330 void VertexAttrib4f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
1331 gles2::cmds::VertexAttrib4f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib4f
>();
1333 c
->Init(indx
, x
, y
, z
, w
);
1337 void VertexAttrib4fvImmediate(GLuint indx
, const GLfloat
* values
) {
1338 const uint32_t size
= gles2::cmds::VertexAttrib4fvImmediate::ComputeSize();
1339 gles2::cmds::VertexAttrib4fvImmediate
* c
=
1340 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib4fvImmediate
>(
1343 c
->Init(indx
, values
);
1347 void VertexAttribPointer(GLuint indx
,
1350 GLboolean normalized
,
1353 gles2::cmds::VertexAttribPointer
* c
=
1354 GetCmdSpace
<gles2::cmds::VertexAttribPointer
>();
1356 c
->Init(indx
, size
, type
, normalized
, stride
, offset
);
1360 void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
1361 gles2::cmds::Viewport
* c
= GetCmdSpace
<gles2::cmds::Viewport
>();
1363 c
->Init(x
, y
, width
, height
);
1367 void BlitFramebufferCHROMIUM(GLint srcX0
,
1377 gles2::cmds::BlitFramebufferCHROMIUM
* c
=
1378 GetCmdSpace
<gles2::cmds::BlitFramebufferCHROMIUM
>();
1381 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
1385 void RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
1387 GLenum internalformat
,
1390 gles2::cmds::RenderbufferStorageMultisampleCHROMIUM
* c
=
1391 GetCmdSpace
<gles2::cmds::RenderbufferStorageMultisampleCHROMIUM
>();
1393 c
->Init(target
, samples
, internalformat
, width
, height
);
1397 void RenderbufferStorageMultisampleEXT(GLenum target
,
1399 GLenum internalformat
,
1402 gles2::cmds::RenderbufferStorageMultisampleEXT
* c
=
1403 GetCmdSpace
<gles2::cmds::RenderbufferStorageMultisampleEXT
>();
1405 c
->Init(target
, samples
, internalformat
, width
, height
);
1409 void FramebufferTexture2DMultisampleEXT(GLenum target
,
1414 gles2::cmds::FramebufferTexture2DMultisampleEXT
* c
=
1415 GetCmdSpace
<gles2::cmds::FramebufferTexture2DMultisampleEXT
>();
1417 c
->Init(target
, attachment
, textarget
, texture
, samples
);
1421 void TexStorage2DEXT(GLenum target
,
1423 GLenum internalFormat
,
1426 gles2::cmds::TexStorage2DEXT
* c
= GetCmdSpace
<gles2::cmds::TexStorage2DEXT
>();
1428 c
->Init(target
, levels
, internalFormat
, width
, height
);
1432 void GenQueriesEXTImmediate(GLsizei n
, GLuint
* queries
) {
1433 const uint32_t size
= gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n
);
1434 gles2::cmds::GenQueriesEXTImmediate
* c
=
1435 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenQueriesEXTImmediate
>(size
);
1437 c
->Init(n
, queries
);
1441 void DeleteQueriesEXTImmediate(GLsizei n
, const GLuint
* queries
) {
1442 const uint32_t size
= gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n
);
1443 gles2::cmds::DeleteQueriesEXTImmediate
* c
=
1444 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteQueriesEXTImmediate
>(
1447 c
->Init(n
, queries
);
1451 void BeginQueryEXT(GLenum target
,
1453 uint32_t sync_data_shm_id
,
1454 uint32_t sync_data_shm_offset
) {
1455 gles2::cmds::BeginQueryEXT
* c
= GetCmdSpace
<gles2::cmds::BeginQueryEXT
>();
1457 c
->Init(target
, id
, sync_data_shm_id
, sync_data_shm_offset
);
1461 void EndQueryEXT(GLenum target
, GLuint submit_count
) {
1462 gles2::cmds::EndQueryEXT
* c
= GetCmdSpace
<gles2::cmds::EndQueryEXT
>();
1464 c
->Init(target
, submit_count
);
1468 void InsertEventMarkerEXT(GLuint bucket_id
) {
1469 gles2::cmds::InsertEventMarkerEXT
* c
=
1470 GetCmdSpace
<gles2::cmds::InsertEventMarkerEXT
>();
1476 void PushGroupMarkerEXT(GLuint bucket_id
) {
1477 gles2::cmds::PushGroupMarkerEXT
* c
=
1478 GetCmdSpace
<gles2::cmds::PushGroupMarkerEXT
>();
1484 void PopGroupMarkerEXT() {
1485 gles2::cmds::PopGroupMarkerEXT
* c
=
1486 GetCmdSpace
<gles2::cmds::PopGroupMarkerEXT
>();
1492 void GenVertexArraysOESImmediate(GLsizei n
, GLuint
* arrays
) {
1493 const uint32_t size
=
1494 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n
);
1495 gles2::cmds::GenVertexArraysOESImmediate
* c
=
1496 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenVertexArraysOESImmediate
>(
1503 void DeleteVertexArraysOESImmediate(GLsizei n
, const GLuint
* arrays
) {
1504 const uint32_t size
=
1505 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n
);
1506 gles2::cmds::DeleteVertexArraysOESImmediate
* c
=
1507 GetImmediateCmdSpaceTotalSize
<
1508 gles2::cmds::DeleteVertexArraysOESImmediate
>(size
);
1514 void IsVertexArrayOES(GLuint array
,
1515 uint32_t result_shm_id
,
1516 uint32_t result_shm_offset
) {
1517 gles2::cmds::IsVertexArrayOES
* c
=
1518 GetCmdSpace
<gles2::cmds::IsVertexArrayOES
>();
1520 c
->Init(array
, result_shm_id
, result_shm_offset
);
1524 void BindVertexArrayOES(GLuint array
) {
1525 gles2::cmds::BindVertexArrayOES
* c
=
1526 GetCmdSpace
<gles2::cmds::BindVertexArrayOES
>();
1532 void SwapBuffers() {
1533 gles2::cmds::SwapBuffers
* c
= GetCmdSpace
<gles2::cmds::SwapBuffers
>();
1539 void GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1543 uint32_t result_shm_id
,
1544 uint32_t result_shm_offset
) {
1545 gles2::cmds::GetMaxValueInBufferCHROMIUM
* c
=
1546 GetCmdSpace
<gles2::cmds::GetMaxValueInBufferCHROMIUM
>();
1548 c
->Init(buffer_id
, count
, type
, offset
, result_shm_id
, result_shm_offset
);
1552 void GenSharedIdsCHROMIUM(GLuint namespace_id
,
1555 uint32_t ids_shm_id
,
1556 uint32_t ids_shm_offset
) {
1557 gles2::cmds::GenSharedIdsCHROMIUM
* c
=
1558 GetCmdSpace
<gles2::cmds::GenSharedIdsCHROMIUM
>();
1560 c
->Init(namespace_id
, id_offset
, n
, ids_shm_id
, ids_shm_offset
);
1564 void DeleteSharedIdsCHROMIUM(GLuint namespace_id
,
1566 uint32_t ids_shm_id
,
1567 uint32_t ids_shm_offset
) {
1568 gles2::cmds::DeleteSharedIdsCHROMIUM
* c
=
1569 GetCmdSpace
<gles2::cmds::DeleteSharedIdsCHROMIUM
>();
1571 c
->Init(namespace_id
, n
, ids_shm_id
, ids_shm_offset
);
1575 void RegisterSharedIdsCHROMIUM(GLuint namespace_id
,
1577 uint32_t ids_shm_id
,
1578 uint32_t ids_shm_offset
) {
1579 gles2::cmds::RegisterSharedIdsCHROMIUM
* c
=
1580 GetCmdSpace
<gles2::cmds::RegisterSharedIdsCHROMIUM
>();
1582 c
->Init(namespace_id
, n
, ids_shm_id
, ids_shm_offset
);
1586 void EnableFeatureCHROMIUM(GLuint bucket_id
,
1587 uint32_t result_shm_id
,
1588 uint32_t result_shm_offset
) {
1589 gles2::cmds::EnableFeatureCHROMIUM
* c
=
1590 GetCmdSpace
<gles2::cmds::EnableFeatureCHROMIUM
>();
1592 c
->Init(bucket_id
, result_shm_id
, result_shm_offset
);
1596 void ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) {
1597 gles2::cmds::ResizeCHROMIUM
* c
= GetCmdSpace
<gles2::cmds::ResizeCHROMIUM
>();
1599 c
->Init(width
, height
, scale_factor
);
1603 void GetRequestableExtensionsCHROMIUM(uint32_t bucket_id
) {
1604 gles2::cmds::GetRequestableExtensionsCHROMIUM
* c
=
1605 GetCmdSpace
<gles2::cmds::GetRequestableExtensionsCHROMIUM
>();
1611 void RequestExtensionCHROMIUM(uint32_t bucket_id
) {
1612 gles2::cmds::RequestExtensionCHROMIUM
* c
=
1613 GetCmdSpace
<gles2::cmds::RequestExtensionCHROMIUM
>();
1619 void GetMultipleIntegervCHROMIUM(uint32_t pnames_shm_id
,
1620 uint32_t pnames_shm_offset
,
1622 uint32_t results_shm_id
,
1623 uint32_t results_shm_offset
,
1625 gles2::cmds::GetMultipleIntegervCHROMIUM
* c
=
1626 GetCmdSpace
<gles2::cmds::GetMultipleIntegervCHROMIUM
>();
1628 c
->Init(pnames_shm_id
,
1637 void GetProgramInfoCHROMIUM(GLuint program
, uint32_t bucket_id
) {
1638 gles2::cmds::GetProgramInfoCHROMIUM
* c
=
1639 GetCmdSpace
<gles2::cmds::GetProgramInfoCHROMIUM
>();
1641 c
->Init(program
, bucket_id
);
1645 void GetTranslatedShaderSourceANGLE(GLuint shader
, uint32_t bucket_id
) {
1646 gles2::cmds::GetTranslatedShaderSourceANGLE
* c
=
1647 GetCmdSpace
<gles2::cmds::GetTranslatedShaderSourceANGLE
>();
1649 c
->Init(shader
, bucket_id
);
1653 void PostSubBufferCHROMIUM(GLint x
, GLint y
, GLint width
, GLint height
) {
1654 gles2::cmds::PostSubBufferCHROMIUM
* c
=
1655 GetCmdSpace
<gles2::cmds::PostSubBufferCHROMIUM
>();
1657 c
->Init(x
, y
, width
, height
);
1661 void TexImageIOSurface2DCHROMIUM(GLenum target
,
1666 gles2::cmds::TexImageIOSurface2DCHROMIUM
* c
=
1667 GetCmdSpace
<gles2::cmds::TexImageIOSurface2DCHROMIUM
>();
1669 c
->Init(target
, width
, height
, ioSurfaceId
, plane
);
1673 void CopyTextureCHROMIUM(GLenum target
,
1677 GLint internalformat
,
1679 gles2::cmds::CopyTextureCHROMIUM
* c
=
1680 GetCmdSpace
<gles2::cmds::CopyTextureCHROMIUM
>();
1682 c
->Init(target
, source_id
, dest_id
, level
, internalformat
, dest_type
);
1686 void DrawArraysInstancedANGLE(GLenum mode
,
1689 GLsizei primcount
) {
1690 gles2::cmds::DrawArraysInstancedANGLE
* c
=
1691 GetCmdSpace
<gles2::cmds::DrawArraysInstancedANGLE
>();
1693 c
->Init(mode
, first
, count
, primcount
);
1697 void DrawElementsInstancedANGLE(GLenum mode
,
1700 GLuint index_offset
,
1701 GLsizei primcount
) {
1702 gles2::cmds::DrawElementsInstancedANGLE
* c
=
1703 GetCmdSpace
<gles2::cmds::DrawElementsInstancedANGLE
>();
1705 c
->Init(mode
, count
, type
, index_offset
, primcount
);
1709 void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1710 gles2::cmds::VertexAttribDivisorANGLE
* c
=
1711 GetCmdSpace
<gles2::cmds::VertexAttribDivisorANGLE
>();
1713 c
->Init(index
, divisor
);
1717 void ProduceTextureCHROMIUMImmediate(GLenum target
, const GLbyte
* mailbox
) {
1718 const uint32_t size
=
1719 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
1720 gles2::cmds::ProduceTextureCHROMIUMImmediate
* c
=
1721 GetImmediateCmdSpaceTotalSize
<
1722 gles2::cmds::ProduceTextureCHROMIUMImmediate
>(size
);
1724 c
->Init(target
, mailbox
);
1728 void ProduceTextureDirectCHROMIUMImmediate(GLuint texture
,
1730 const GLbyte
* mailbox
) {
1731 const uint32_t size
=
1732 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate::ComputeSize();
1733 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate
* c
=
1734 GetImmediateCmdSpaceTotalSize
<
1735 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate
>(size
);
1737 c
->Init(texture
, target
, mailbox
);
1741 void ConsumeTextureCHROMIUMImmediate(GLenum target
, const GLbyte
* mailbox
) {
1742 const uint32_t size
=
1743 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
1744 gles2::cmds::ConsumeTextureCHROMIUMImmediate
* c
=
1745 GetImmediateCmdSpaceTotalSize
<
1746 gles2::cmds::ConsumeTextureCHROMIUMImmediate
>(size
);
1748 c
->Init(target
, mailbox
);
1752 void BindUniformLocationCHROMIUMBucket(GLuint program
,
1754 uint32_t name_bucket_id
) {
1755 gles2::cmds::BindUniformLocationCHROMIUMBucket
* c
=
1756 GetCmdSpace
<gles2::cmds::BindUniformLocationCHROMIUMBucket
>();
1758 c
->Init(program
, location
, name_bucket_id
);
1762 void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1763 gles2::cmds::BindTexImage2DCHROMIUM
* c
=
1764 GetCmdSpace
<gles2::cmds::BindTexImage2DCHROMIUM
>();
1766 c
->Init(target
, imageId
);
1770 void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1771 gles2::cmds::ReleaseTexImage2DCHROMIUM
* c
=
1772 GetCmdSpace
<gles2::cmds::ReleaseTexImage2DCHROMIUM
>();
1774 c
->Init(target
, imageId
);
1778 void TraceBeginCHROMIUM(GLuint bucket_id
) {
1779 gles2::cmds::TraceBeginCHROMIUM
* c
=
1780 GetCmdSpace
<gles2::cmds::TraceBeginCHROMIUM
>();
1786 void TraceEndCHROMIUM() {
1787 gles2::cmds::TraceEndCHROMIUM
* c
=
1788 GetCmdSpace
<gles2::cmds::TraceEndCHROMIUM
>();
1794 void AsyncTexSubImage2DCHROMIUM(GLenum target
,
1802 uint32_t data_shm_id
,
1803 uint32_t data_shm_offset
,
1804 uint32_t async_upload_token
,
1805 uint32_t sync_data_shm_id
,
1806 uint32_t sync_data_shm_offset
) {
1807 gles2::cmds::AsyncTexSubImage2DCHROMIUM
* c
=
1808 GetCmdSpace
<gles2::cmds::AsyncTexSubImage2DCHROMIUM
>();
1822 sync_data_shm_offset
);
1826 void AsyncTexImage2DCHROMIUM(GLenum target
,
1828 GLint internalformat
,
1833 uint32_t pixels_shm_id
,
1834 uint32_t pixels_shm_offset
,
1835 uint32_t async_upload_token
,
1836 uint32_t sync_data_shm_id
,
1837 uint32_t sync_data_shm_offset
) {
1838 gles2::cmds::AsyncTexImage2DCHROMIUM
* c
=
1839 GetCmdSpace
<gles2::cmds::AsyncTexImage2DCHROMIUM
>();
1852 sync_data_shm_offset
);
1856 void WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1857 gles2::cmds::WaitAsyncTexImage2DCHROMIUM
* c
=
1858 GetCmdSpace
<gles2::cmds::WaitAsyncTexImage2DCHROMIUM
>();
1864 void WaitAllAsyncTexImage2DCHROMIUM() {
1865 gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM
* c
=
1866 GetCmdSpace
<gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM
>();
1872 void DiscardFramebufferEXTImmediate(GLenum target
,
1874 const GLenum
* attachments
) {
1875 const uint32_t size
=
1876 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count
);
1877 gles2::cmds::DiscardFramebufferEXTImmediate
* c
=
1878 GetImmediateCmdSpaceTotalSize
<
1879 gles2::cmds::DiscardFramebufferEXTImmediate
>(size
);
1881 c
->Init(target
, count
, attachments
);
1885 void LoseContextCHROMIUM(GLenum current
, GLenum other
) {
1886 gles2::cmds::LoseContextCHROMIUM
* c
=
1887 GetCmdSpace
<gles2::cmds::LoseContextCHROMIUM
>();
1889 c
->Init(current
, other
);
1893 void WaitSyncPointCHROMIUM(GLuint sync_point
) {
1894 gles2::cmds::WaitSyncPointCHROMIUM
* c
=
1895 GetCmdSpace
<gles2::cmds::WaitSyncPointCHROMIUM
>();
1897 c
->Init(sync_point
);
1901 void DrawBuffersEXTImmediate(GLsizei count
, const GLenum
* bufs
) {
1902 const uint32_t size
=
1903 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count
);
1904 gles2::cmds::DrawBuffersEXTImmediate
* c
=
1905 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DrawBuffersEXTImmediate
>(size
);
1907 c
->Init(count
, bufs
);
1911 void DiscardBackbufferCHROMIUM() {
1912 gles2::cmds::DiscardBackbufferCHROMIUM
* c
=
1913 GetCmdSpace
<gles2::cmds::DiscardBackbufferCHROMIUM
>();
1919 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
1920 GLenum plane_transform
,
1921 GLuint overlay_texture_id
,
1925 GLint bounds_height
,
1929 GLfloat uv_height
) {
1930 gles2::cmds::ScheduleOverlayPlaneCHROMIUM
* c
=
1931 GetCmdSpace
<gles2::cmds::ScheduleOverlayPlaneCHROMIUM
>();
1933 c
->Init(plane_z_order
,
1947 void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode
, const GLfloat
* m
) {
1948 const uint32_t size
=
1949 gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize();
1950 gles2::cmds::MatrixLoadfCHROMIUMImmediate
* c
=
1951 GetImmediateCmdSpaceTotalSize
<gles2::cmds::MatrixLoadfCHROMIUMImmediate
>(
1954 c
->Init(matrixMode
, m
);
1958 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
1959 gles2::cmds::MatrixLoadIdentityCHROMIUM
* c
=
1960 GetCmdSpace
<gles2::cmds::MatrixLoadIdentityCHROMIUM
>();
1962 c
->Init(matrixMode
);
1966 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_