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 BindBufferBase(GLenum target
, GLuint index
, GLuint buffer
) {
46 gles2::cmds::BindBufferBase
* c
= GetCmdSpace
<gles2::cmds::BindBufferBase
>();
48 c
->Init(target
, index
, buffer
);
52 void BindBufferRange(GLenum target
,
57 gles2::cmds::BindBufferRange
* c
= GetCmdSpace
<gles2::cmds::BindBufferRange
>();
59 c
->Init(target
, index
, buffer
, offset
, size
);
63 void BindFramebuffer(GLenum target
, GLuint framebuffer
) {
64 gles2::cmds::BindFramebuffer
* c
= GetCmdSpace
<gles2::cmds::BindFramebuffer
>();
66 c
->Init(target
, framebuffer
);
70 void BindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
71 gles2::cmds::BindRenderbuffer
* c
=
72 GetCmdSpace
<gles2::cmds::BindRenderbuffer
>();
74 c
->Init(target
, renderbuffer
);
78 void BindSampler(GLuint unit
, GLuint sampler
) {
79 gles2::cmds::BindSampler
* c
= GetCmdSpace
<gles2::cmds::BindSampler
>();
81 c
->Init(unit
, sampler
);
85 void BindTexture(GLenum target
, GLuint texture
) {
86 gles2::cmds::BindTexture
* c
= GetCmdSpace
<gles2::cmds::BindTexture
>();
88 c
->Init(target
, texture
);
92 void BindTransformFeedback(GLenum target
, GLuint transformfeedback
) {
93 gles2::cmds::BindTransformFeedback
* c
=
94 GetCmdSpace
<gles2::cmds::BindTransformFeedback
>();
96 c
->Init(target
, transformfeedback
);
100 void BlendColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
101 gles2::cmds::BlendColor
* c
= GetCmdSpace
<gles2::cmds::BlendColor
>();
103 c
->Init(red
, green
, blue
, alpha
);
107 void BlendEquation(GLenum mode
) {
108 gles2::cmds::BlendEquation
* c
= GetCmdSpace
<gles2::cmds::BlendEquation
>();
114 void BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
115 gles2::cmds::BlendEquationSeparate
* c
=
116 GetCmdSpace
<gles2::cmds::BlendEquationSeparate
>();
118 c
->Init(modeRGB
, modeAlpha
);
122 void BlendFunc(GLenum sfactor
, GLenum dfactor
) {
123 gles2::cmds::BlendFunc
* c
= GetCmdSpace
<gles2::cmds::BlendFunc
>();
125 c
->Init(sfactor
, dfactor
);
129 void BlendFuncSeparate(GLenum srcRGB
,
133 gles2::cmds::BlendFuncSeparate
* c
=
134 GetCmdSpace
<gles2::cmds::BlendFuncSeparate
>();
136 c
->Init(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
140 void BufferData(GLenum target
,
142 uint32_t data_shm_id
,
143 uint32_t data_shm_offset
,
145 gles2::cmds::BufferData
* c
= GetCmdSpace
<gles2::cmds::BufferData
>();
147 c
->Init(target
, size
, data_shm_id
, data_shm_offset
, usage
);
151 void BufferSubData(GLenum target
,
154 uint32_t data_shm_id
,
155 uint32_t data_shm_offset
) {
156 gles2::cmds::BufferSubData
* c
= GetCmdSpace
<gles2::cmds::BufferSubData
>();
158 c
->Init(target
, offset
, size
, data_shm_id
, data_shm_offset
);
162 void CheckFramebufferStatus(GLenum target
,
163 uint32_t result_shm_id
,
164 uint32_t result_shm_offset
) {
165 gles2::cmds::CheckFramebufferStatus
* c
=
166 GetCmdSpace
<gles2::cmds::CheckFramebufferStatus
>();
168 c
->Init(target
, result_shm_id
, result_shm_offset
);
172 void Clear(GLbitfield mask
) {
173 gles2::cmds::Clear
* c
= GetCmdSpace
<gles2::cmds::Clear
>();
179 void ClearBufferfi(GLenum buffer
,
183 gles2::cmds::ClearBufferfi
* c
= GetCmdSpace
<gles2::cmds::ClearBufferfi
>();
185 c
->Init(buffer
, drawbuffers
, depth
, stencil
);
189 void ClearBufferfvImmediate(GLenum buffer
,
191 const GLfloat
* value
) {
192 const uint32_t size
= gles2::cmds::ClearBufferfvImmediate::ComputeSize();
193 gles2::cmds::ClearBufferfvImmediate
* c
=
194 GetImmediateCmdSpaceTotalSize
<gles2::cmds::ClearBufferfvImmediate
>(size
);
196 c
->Init(buffer
, drawbuffers
, value
);
200 void ClearBufferivImmediate(GLenum buffer
,
202 const GLint
* value
) {
203 const uint32_t size
= gles2::cmds::ClearBufferivImmediate::ComputeSize();
204 gles2::cmds::ClearBufferivImmediate
* c
=
205 GetImmediateCmdSpaceTotalSize
<gles2::cmds::ClearBufferivImmediate
>(size
);
207 c
->Init(buffer
, drawbuffers
, value
);
211 void ClearBufferuivImmediate(GLenum buffer
,
213 const GLuint
* value
) {
214 const uint32_t size
= gles2::cmds::ClearBufferuivImmediate::ComputeSize();
215 gles2::cmds::ClearBufferuivImmediate
* c
=
216 GetImmediateCmdSpaceTotalSize
<gles2::cmds::ClearBufferuivImmediate
>(size
);
218 c
->Init(buffer
, drawbuffers
, value
);
222 void ClearColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
223 gles2::cmds::ClearColor
* c
= GetCmdSpace
<gles2::cmds::ClearColor
>();
225 c
->Init(red
, green
, blue
, alpha
);
229 void ClearDepthf(GLclampf depth
) {
230 gles2::cmds::ClearDepthf
* c
= GetCmdSpace
<gles2::cmds::ClearDepthf
>();
236 void ClearStencil(GLint s
) {
237 gles2::cmds::ClearStencil
* c
= GetCmdSpace
<gles2::cmds::ClearStencil
>();
243 void ClientWaitSync(GLuint sync
,
247 uint32_t result_shm_id
,
248 uint32_t result_shm_offset
) {
249 gles2::cmds::ClientWaitSync
* c
= GetCmdSpace
<gles2::cmds::ClientWaitSync
>();
251 c
->Init(sync
, flags
, timeout_0
, timeout_1
, result_shm_id
,
256 void ColorMask(GLboolean red
,
260 gles2::cmds::ColorMask
* c
= GetCmdSpace
<gles2::cmds::ColorMask
>();
262 c
->Init(red
, green
, blue
, alpha
);
266 void CompileShader(GLuint shader
) {
267 gles2::cmds::CompileShader
* c
= GetCmdSpace
<gles2::cmds::CompileShader
>();
273 void CompressedTexImage2DBucket(GLenum target
,
275 GLenum internalformat
,
279 gles2::cmds::CompressedTexImage2DBucket
* c
=
280 GetCmdSpace
<gles2::cmds::CompressedTexImage2DBucket
>();
282 c
->Init(target
, level
, internalformat
, width
, height
, bucket_id
);
286 void CompressedTexImage2D(GLenum target
,
288 GLenum internalformat
,
292 uint32_t data_shm_id
,
293 uint32_t data_shm_offset
) {
294 gles2::cmds::CompressedTexImage2D
* c
=
295 GetCmdSpace
<gles2::cmds::CompressedTexImage2D
>();
297 c
->Init(target
, level
, internalformat
, width
, height
, imageSize
,
298 data_shm_id
, data_shm_offset
);
302 void CompressedTexSubImage2DBucket(GLenum target
,
310 gles2::cmds::CompressedTexSubImage2DBucket
* c
=
311 GetCmdSpace
<gles2::cmds::CompressedTexSubImage2DBucket
>();
313 c
->Init(target
, level
, xoffset
, yoffset
, width
, height
, format
, bucket_id
);
317 void CompressedTexSubImage2D(GLenum target
,
325 uint32_t data_shm_id
,
326 uint32_t data_shm_offset
) {
327 gles2::cmds::CompressedTexSubImage2D
* c
=
328 GetCmdSpace
<gles2::cmds::CompressedTexSubImage2D
>();
330 c
->Init(target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
,
331 data_shm_id
, data_shm_offset
);
335 void CompressedTexImage3DBucket(GLenum target
,
337 GLenum internalformat
,
342 gles2::cmds::CompressedTexImage3DBucket
* c
=
343 GetCmdSpace
<gles2::cmds::CompressedTexImage3DBucket
>();
345 c
->Init(target
, level
, internalformat
, width
, height
, depth
, bucket_id
);
349 void CompressedTexImage3D(GLenum target
,
351 GLenum internalformat
,
356 uint32_t data_shm_id
,
357 uint32_t data_shm_offset
) {
358 gles2::cmds::CompressedTexImage3D
* c
=
359 GetCmdSpace
<gles2::cmds::CompressedTexImage3D
>();
361 c
->Init(target
, level
, internalformat
, width
, height
, depth
, imageSize
,
362 data_shm_id
, data_shm_offset
);
366 void CompressedTexSubImage3DBucket(GLenum target
,
376 gles2::cmds::CompressedTexSubImage3DBucket
* c
=
377 GetCmdSpace
<gles2::cmds::CompressedTexSubImage3DBucket
>();
379 c
->Init(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
,
384 void CompressedTexSubImage3D(GLenum target
,
394 uint32_t data_shm_id
,
395 uint32_t data_shm_offset
) {
396 gles2::cmds::CompressedTexSubImage3D
* c
=
397 GetCmdSpace
<gles2::cmds::CompressedTexSubImage3D
>();
399 c
->Init(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
,
400 format
, imageSize
, data_shm_id
, data_shm_offset
);
404 void CopyBufferSubData(GLenum readtarget
,
407 GLintptr writeoffset
,
409 gles2::cmds::CopyBufferSubData
* c
=
410 GetCmdSpace
<gles2::cmds::CopyBufferSubData
>();
412 c
->Init(readtarget
, writetarget
, readoffset
, writeoffset
, size
);
416 void CopyTexImage2D(GLenum target
,
418 GLenum internalformat
,
423 gles2::cmds::CopyTexImage2D
* c
= GetCmdSpace
<gles2::cmds::CopyTexImage2D
>();
425 c
->Init(target
, level
, internalformat
, x
, y
, width
, height
);
429 void CopyTexSubImage2D(GLenum target
,
437 gles2::cmds::CopyTexSubImage2D
* c
=
438 GetCmdSpace
<gles2::cmds::CopyTexSubImage2D
>();
440 c
->Init(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
444 void CopyTexSubImage3D(GLenum target
,
453 gles2::cmds::CopyTexSubImage3D
* c
=
454 GetCmdSpace
<gles2::cmds::CopyTexSubImage3D
>();
456 c
->Init(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
, height
);
460 void CreateProgram(uint32_t client_id
) {
461 gles2::cmds::CreateProgram
* c
= GetCmdSpace
<gles2::cmds::CreateProgram
>();
467 void CreateShader(GLenum type
, uint32_t client_id
) {
468 gles2::cmds::CreateShader
* c
= GetCmdSpace
<gles2::cmds::CreateShader
>();
470 c
->Init(type
, client_id
);
474 void CullFace(GLenum mode
) {
475 gles2::cmds::CullFace
* c
= GetCmdSpace
<gles2::cmds::CullFace
>();
481 void DeleteBuffersImmediate(GLsizei n
, const GLuint
* buffers
) {
482 const uint32_t size
= gles2::cmds::DeleteBuffersImmediate::ComputeSize(n
);
483 gles2::cmds::DeleteBuffersImmediate
* c
=
484 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteBuffersImmediate
>(size
);
490 void DeleteFramebuffersImmediate(GLsizei n
, const GLuint
* framebuffers
) {
491 const uint32_t size
=
492 gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n
);
493 gles2::cmds::DeleteFramebuffersImmediate
* c
=
494 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteFramebuffersImmediate
>(
497 c
->Init(n
, framebuffers
);
501 void DeleteProgram(GLuint program
) {
502 gles2::cmds::DeleteProgram
* c
= GetCmdSpace
<gles2::cmds::DeleteProgram
>();
508 void DeleteRenderbuffersImmediate(GLsizei n
, const GLuint
* renderbuffers
) {
509 const uint32_t size
=
510 gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n
);
511 gles2::cmds::DeleteRenderbuffersImmediate
* c
=
512 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteRenderbuffersImmediate
>(
515 c
->Init(n
, renderbuffers
);
519 void DeleteSamplersImmediate(GLsizei n
, const GLuint
* samplers
) {
520 const uint32_t size
= gles2::cmds::DeleteSamplersImmediate::ComputeSize(n
);
521 gles2::cmds::DeleteSamplersImmediate
* c
=
522 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteSamplersImmediate
>(size
);
524 c
->Init(n
, samplers
);
528 void DeleteSync(GLuint sync
) {
529 gles2::cmds::DeleteSync
* c
= GetCmdSpace
<gles2::cmds::DeleteSync
>();
535 void DeleteShader(GLuint shader
) {
536 gles2::cmds::DeleteShader
* c
= GetCmdSpace
<gles2::cmds::DeleteShader
>();
542 void DeleteTexturesImmediate(GLsizei n
, const GLuint
* textures
) {
543 const uint32_t size
= gles2::cmds::DeleteTexturesImmediate::ComputeSize(n
);
544 gles2::cmds::DeleteTexturesImmediate
* c
=
545 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteTexturesImmediate
>(size
);
547 c
->Init(n
, textures
);
551 void DeleteTransformFeedbacksImmediate(GLsizei n
, const GLuint
* ids
) {
552 const uint32_t size
=
553 gles2::cmds::DeleteTransformFeedbacksImmediate::ComputeSize(n
);
554 gles2::cmds::DeleteTransformFeedbacksImmediate
* c
=
555 GetImmediateCmdSpaceTotalSize
<
556 gles2::cmds::DeleteTransformFeedbacksImmediate
>(size
);
562 void DepthFunc(GLenum func
) {
563 gles2::cmds::DepthFunc
* c
= GetCmdSpace
<gles2::cmds::DepthFunc
>();
569 void DepthMask(GLboolean flag
) {
570 gles2::cmds::DepthMask
* c
= GetCmdSpace
<gles2::cmds::DepthMask
>();
576 void DepthRangef(GLclampf zNear
, GLclampf zFar
) {
577 gles2::cmds::DepthRangef
* c
= GetCmdSpace
<gles2::cmds::DepthRangef
>();
579 c
->Init(zNear
, zFar
);
583 void DetachShader(GLuint program
, GLuint shader
) {
584 gles2::cmds::DetachShader
* c
= GetCmdSpace
<gles2::cmds::DetachShader
>();
586 c
->Init(program
, shader
);
590 void Disable(GLenum cap
) {
591 gles2::cmds::Disable
* c
= GetCmdSpace
<gles2::cmds::Disable
>();
597 void DisableVertexAttribArray(GLuint index
) {
598 gles2::cmds::DisableVertexAttribArray
* c
=
599 GetCmdSpace
<gles2::cmds::DisableVertexAttribArray
>();
605 void DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
606 gles2::cmds::DrawArrays
* c
= GetCmdSpace
<gles2::cmds::DrawArrays
>();
608 c
->Init(mode
, first
, count
);
612 void DrawElements(GLenum mode
,
615 GLuint index_offset
) {
616 gles2::cmds::DrawElements
* c
= GetCmdSpace
<gles2::cmds::DrawElements
>();
618 c
->Init(mode
, count
, type
, index_offset
);
622 void Enable(GLenum cap
) {
623 gles2::cmds::Enable
* c
= GetCmdSpace
<gles2::cmds::Enable
>();
629 void EnableVertexAttribArray(GLuint index
) {
630 gles2::cmds::EnableVertexAttribArray
* c
=
631 GetCmdSpace
<gles2::cmds::EnableVertexAttribArray
>();
637 void FenceSync(uint32_t client_id
) {
638 gles2::cmds::FenceSync
* c
= GetCmdSpace
<gles2::cmds::FenceSync
>();
645 gles2::cmds::Finish
* c
= GetCmdSpace
<gles2::cmds::Finish
>();
652 gles2::cmds::Flush
* c
= GetCmdSpace
<gles2::cmds::Flush
>();
658 void FramebufferRenderbuffer(GLenum target
,
660 GLenum renderbuffertarget
,
661 GLuint renderbuffer
) {
662 gles2::cmds::FramebufferRenderbuffer
* c
=
663 GetCmdSpace
<gles2::cmds::FramebufferRenderbuffer
>();
665 c
->Init(target
, attachment
, renderbuffertarget
, renderbuffer
);
669 void FramebufferTexture2D(GLenum target
,
673 gles2::cmds::FramebufferTexture2D
* c
=
674 GetCmdSpace
<gles2::cmds::FramebufferTexture2D
>();
676 c
->Init(target
, attachment
, textarget
, texture
);
680 void FramebufferTextureLayer(GLenum target
,
685 gles2::cmds::FramebufferTextureLayer
* c
=
686 GetCmdSpace
<gles2::cmds::FramebufferTextureLayer
>();
688 c
->Init(target
, attachment
, texture
, level
, layer
);
692 void FrontFace(GLenum mode
) {
693 gles2::cmds::FrontFace
* c
= GetCmdSpace
<gles2::cmds::FrontFace
>();
699 void GenBuffersImmediate(GLsizei n
, GLuint
* buffers
) {
700 const uint32_t size
= gles2::cmds::GenBuffersImmediate::ComputeSize(n
);
701 gles2::cmds::GenBuffersImmediate
* c
=
702 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenBuffersImmediate
>(size
);
708 void GenerateMipmap(GLenum target
) {
709 gles2::cmds::GenerateMipmap
* c
= GetCmdSpace
<gles2::cmds::GenerateMipmap
>();
715 void GenFramebuffersImmediate(GLsizei n
, GLuint
* framebuffers
) {
716 const uint32_t size
= gles2::cmds::GenFramebuffersImmediate::ComputeSize(n
);
717 gles2::cmds::GenFramebuffersImmediate
* c
=
718 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenFramebuffersImmediate
>(
721 c
->Init(n
, framebuffers
);
725 void GenRenderbuffersImmediate(GLsizei n
, GLuint
* renderbuffers
) {
726 const uint32_t size
= gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n
);
727 gles2::cmds::GenRenderbuffersImmediate
* c
=
728 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenRenderbuffersImmediate
>(
731 c
->Init(n
, renderbuffers
);
735 void GenSamplersImmediate(GLsizei n
, GLuint
* samplers
) {
736 const uint32_t size
= gles2::cmds::GenSamplersImmediate::ComputeSize(n
);
737 gles2::cmds::GenSamplersImmediate
* c
=
738 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenSamplersImmediate
>(size
);
740 c
->Init(n
, samplers
);
744 void GenTexturesImmediate(GLsizei n
, GLuint
* textures
) {
745 const uint32_t size
= gles2::cmds::GenTexturesImmediate::ComputeSize(n
);
746 gles2::cmds::GenTexturesImmediate
* c
=
747 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenTexturesImmediate
>(size
);
749 c
->Init(n
, textures
);
753 void GenTransformFeedbacksImmediate(GLsizei n
, GLuint
* ids
) {
754 const uint32_t size
=
755 gles2::cmds::GenTransformFeedbacksImmediate::ComputeSize(n
);
756 gles2::cmds::GenTransformFeedbacksImmediate
* c
=
757 GetImmediateCmdSpaceTotalSize
<
758 gles2::cmds::GenTransformFeedbacksImmediate
>(size
);
764 void GetActiveAttrib(GLuint program
,
766 uint32_t name_bucket_id
,
767 uint32_t result_shm_id
,
768 uint32_t result_shm_offset
) {
769 gles2::cmds::GetActiveAttrib
* c
= GetCmdSpace
<gles2::cmds::GetActiveAttrib
>();
771 c
->Init(program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
775 void GetActiveUniform(GLuint program
,
777 uint32_t name_bucket_id
,
778 uint32_t result_shm_id
,
779 uint32_t result_shm_offset
) {
780 gles2::cmds::GetActiveUniform
* c
=
781 GetCmdSpace
<gles2::cmds::GetActiveUniform
>();
783 c
->Init(program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
787 void GetActiveUniformBlockiv(GLuint program
,
790 uint32_t params_shm_id
,
791 uint32_t params_shm_offset
) {
792 gles2::cmds::GetActiveUniformBlockiv
* c
=
793 GetCmdSpace
<gles2::cmds::GetActiveUniformBlockiv
>();
795 c
->Init(program
, index
, pname
, params_shm_id
, params_shm_offset
);
799 void GetActiveUniformBlockName(GLuint program
,
801 uint32_t name_bucket_id
,
802 uint32_t result_shm_id
,
803 uint32_t result_shm_offset
) {
804 gles2::cmds::GetActiveUniformBlockName
* c
=
805 GetCmdSpace
<gles2::cmds::GetActiveUniformBlockName
>();
807 c
->Init(program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
811 void GetActiveUniformsiv(GLuint program
,
812 uint32_t indices_bucket_id
,
814 uint32_t params_shm_id
,
815 uint32_t params_shm_offset
) {
816 gles2::cmds::GetActiveUniformsiv
* c
=
817 GetCmdSpace
<gles2::cmds::GetActiveUniformsiv
>();
819 c
->Init(program
, indices_bucket_id
, pname
, params_shm_id
,
824 void GetAttachedShaders(GLuint program
,
825 uint32_t result_shm_id
,
826 uint32_t result_shm_offset
,
827 uint32_t result_size
) {
828 gles2::cmds::GetAttachedShaders
* c
=
829 GetCmdSpace
<gles2::cmds::GetAttachedShaders
>();
831 c
->Init(program
, result_shm_id
, result_shm_offset
, result_size
);
835 void GetAttribLocation(GLuint program
,
836 uint32_t name_bucket_id
,
837 uint32_t location_shm_id
,
838 uint32_t location_shm_offset
) {
839 gles2::cmds::GetAttribLocation
* c
=
840 GetCmdSpace
<gles2::cmds::GetAttribLocation
>();
842 c
->Init(program
, name_bucket_id
, location_shm_id
, location_shm_offset
);
846 void GetBooleanv(GLenum pname
,
847 uint32_t params_shm_id
,
848 uint32_t params_shm_offset
) {
849 gles2::cmds::GetBooleanv
* c
= GetCmdSpace
<gles2::cmds::GetBooleanv
>();
851 c
->Init(pname
, params_shm_id
, params_shm_offset
);
855 void GetBufferParameteriv(GLenum target
,
857 uint32_t params_shm_id
,
858 uint32_t params_shm_offset
) {
859 gles2::cmds::GetBufferParameteriv
* c
=
860 GetCmdSpace
<gles2::cmds::GetBufferParameteriv
>();
862 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
866 void GetError(uint32_t result_shm_id
, uint32_t result_shm_offset
) {
867 gles2::cmds::GetError
* c
= GetCmdSpace
<gles2::cmds::GetError
>();
869 c
->Init(result_shm_id
, result_shm_offset
);
873 void GetFloatv(GLenum pname
,
874 uint32_t params_shm_id
,
875 uint32_t params_shm_offset
) {
876 gles2::cmds::GetFloatv
* c
= GetCmdSpace
<gles2::cmds::GetFloatv
>();
878 c
->Init(pname
, params_shm_id
, params_shm_offset
);
882 void GetFragDataLocation(GLuint program
,
883 uint32_t name_bucket_id
,
884 uint32_t location_shm_id
,
885 uint32_t location_shm_offset
) {
886 gles2::cmds::GetFragDataLocation
* c
=
887 GetCmdSpace
<gles2::cmds::GetFragDataLocation
>();
889 c
->Init(program
, name_bucket_id
, location_shm_id
, location_shm_offset
);
893 void GetFramebufferAttachmentParameteriv(GLenum target
,
896 uint32_t params_shm_id
,
897 uint32_t params_shm_offset
) {
898 gles2::cmds::GetFramebufferAttachmentParameteriv
* c
=
899 GetCmdSpace
<gles2::cmds::GetFramebufferAttachmentParameteriv
>();
901 c
->Init(target
, attachment
, pname
, params_shm_id
, params_shm_offset
);
905 void GetInteger64v(GLenum pname
,
906 uint32_t params_shm_id
,
907 uint32_t params_shm_offset
) {
908 gles2::cmds::GetInteger64v
* c
= GetCmdSpace
<gles2::cmds::GetInteger64v
>();
910 c
->Init(pname
, params_shm_id
, params_shm_offset
);
914 void GetIntegeri_v(GLenum pname
,
916 uint32_t data_shm_id
,
917 uint32_t data_shm_offset
) {
918 gles2::cmds::GetIntegeri_v
* c
= GetCmdSpace
<gles2::cmds::GetIntegeri_v
>();
920 c
->Init(pname
, index
, data_shm_id
, data_shm_offset
);
924 void GetInteger64i_v(GLenum pname
,
926 uint32_t data_shm_id
,
927 uint32_t data_shm_offset
) {
928 gles2::cmds::GetInteger64i_v
* c
= GetCmdSpace
<gles2::cmds::GetInteger64i_v
>();
930 c
->Init(pname
, index
, data_shm_id
, data_shm_offset
);
934 void GetIntegerv(GLenum pname
,
935 uint32_t params_shm_id
,
936 uint32_t params_shm_offset
) {
937 gles2::cmds::GetIntegerv
* c
= GetCmdSpace
<gles2::cmds::GetIntegerv
>();
939 c
->Init(pname
, params_shm_id
, params_shm_offset
);
943 void GetInternalformativ(GLenum target
,
946 uint32_t params_shm_id
,
947 uint32_t params_shm_offset
) {
948 gles2::cmds::GetInternalformativ
* c
=
949 GetCmdSpace
<gles2::cmds::GetInternalformativ
>();
951 c
->Init(target
, format
, pname
, params_shm_id
, params_shm_offset
);
955 void GetProgramiv(GLuint program
,
957 uint32_t params_shm_id
,
958 uint32_t params_shm_offset
) {
959 gles2::cmds::GetProgramiv
* c
= GetCmdSpace
<gles2::cmds::GetProgramiv
>();
961 c
->Init(program
, pname
, params_shm_id
, params_shm_offset
);
965 void GetProgramInfoLog(GLuint program
, uint32_t bucket_id
) {
966 gles2::cmds::GetProgramInfoLog
* c
=
967 GetCmdSpace
<gles2::cmds::GetProgramInfoLog
>();
969 c
->Init(program
, bucket_id
);
973 void GetRenderbufferParameteriv(GLenum target
,
975 uint32_t params_shm_id
,
976 uint32_t params_shm_offset
) {
977 gles2::cmds::GetRenderbufferParameteriv
* c
=
978 GetCmdSpace
<gles2::cmds::GetRenderbufferParameteriv
>();
980 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
984 void GetSamplerParameterfv(GLuint sampler
,
986 uint32_t params_shm_id
,
987 uint32_t params_shm_offset
) {
988 gles2::cmds::GetSamplerParameterfv
* c
=
989 GetCmdSpace
<gles2::cmds::GetSamplerParameterfv
>();
991 c
->Init(sampler
, pname
, params_shm_id
, params_shm_offset
);
995 void GetSamplerParameteriv(GLuint sampler
,
997 uint32_t params_shm_id
,
998 uint32_t params_shm_offset
) {
999 gles2::cmds::GetSamplerParameteriv
* c
=
1000 GetCmdSpace
<gles2::cmds::GetSamplerParameteriv
>();
1002 c
->Init(sampler
, pname
, params_shm_id
, params_shm_offset
);
1006 void GetShaderiv(GLuint shader
,
1008 uint32_t params_shm_id
,
1009 uint32_t params_shm_offset
) {
1010 gles2::cmds::GetShaderiv
* c
= GetCmdSpace
<gles2::cmds::GetShaderiv
>();
1012 c
->Init(shader
, pname
, params_shm_id
, params_shm_offset
);
1016 void GetShaderInfoLog(GLuint shader
, uint32_t bucket_id
) {
1017 gles2::cmds::GetShaderInfoLog
* c
=
1018 GetCmdSpace
<gles2::cmds::GetShaderInfoLog
>();
1020 c
->Init(shader
, bucket_id
);
1024 void GetShaderPrecisionFormat(GLenum shadertype
,
1025 GLenum precisiontype
,
1026 uint32_t result_shm_id
,
1027 uint32_t result_shm_offset
) {
1028 gles2::cmds::GetShaderPrecisionFormat
* c
=
1029 GetCmdSpace
<gles2::cmds::GetShaderPrecisionFormat
>();
1031 c
->Init(shadertype
, precisiontype
, result_shm_id
, result_shm_offset
);
1035 void GetShaderSource(GLuint shader
, uint32_t bucket_id
) {
1036 gles2::cmds::GetShaderSource
* c
= GetCmdSpace
<gles2::cmds::GetShaderSource
>();
1038 c
->Init(shader
, bucket_id
);
1042 void GetString(GLenum name
, uint32_t bucket_id
) {
1043 gles2::cmds::GetString
* c
= GetCmdSpace
<gles2::cmds::GetString
>();
1045 c
->Init(name
, bucket_id
);
1049 void GetSynciv(GLuint sync
,
1051 uint32_t values_shm_id
,
1052 uint32_t values_shm_offset
) {
1053 gles2::cmds::GetSynciv
* c
= GetCmdSpace
<gles2::cmds::GetSynciv
>();
1055 c
->Init(sync
, pname
, values_shm_id
, values_shm_offset
);
1059 void GetTexParameterfv(GLenum target
,
1061 uint32_t params_shm_id
,
1062 uint32_t params_shm_offset
) {
1063 gles2::cmds::GetTexParameterfv
* c
=
1064 GetCmdSpace
<gles2::cmds::GetTexParameterfv
>();
1066 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
1070 void GetTexParameteriv(GLenum target
,
1072 uint32_t params_shm_id
,
1073 uint32_t params_shm_offset
) {
1074 gles2::cmds::GetTexParameteriv
* c
=
1075 GetCmdSpace
<gles2::cmds::GetTexParameteriv
>();
1077 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
1081 void GetTransformFeedbackVarying(GLuint program
,
1083 uint32_t name_bucket_id
,
1084 uint32_t result_shm_id
,
1085 uint32_t result_shm_offset
) {
1086 gles2::cmds::GetTransformFeedbackVarying
* c
=
1087 GetCmdSpace
<gles2::cmds::GetTransformFeedbackVarying
>();
1089 c
->Init(program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
1093 void GetUniformBlockIndex(GLuint program
,
1094 uint32_t name_bucket_id
,
1095 uint32_t index_shm_id
,
1096 uint32_t index_shm_offset
) {
1097 gles2::cmds::GetUniformBlockIndex
* c
=
1098 GetCmdSpace
<gles2::cmds::GetUniformBlockIndex
>();
1100 c
->Init(program
, name_bucket_id
, index_shm_id
, index_shm_offset
);
1104 void GetUniformfv(GLuint program
,
1106 uint32_t params_shm_id
,
1107 uint32_t params_shm_offset
) {
1108 gles2::cmds::GetUniformfv
* c
= GetCmdSpace
<gles2::cmds::GetUniformfv
>();
1110 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
1114 void GetUniformiv(GLuint program
,
1116 uint32_t params_shm_id
,
1117 uint32_t params_shm_offset
) {
1118 gles2::cmds::GetUniformiv
* c
= GetCmdSpace
<gles2::cmds::GetUniformiv
>();
1120 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
1124 void GetUniformuiv(GLuint program
,
1126 uint32_t params_shm_id
,
1127 uint32_t params_shm_offset
) {
1128 gles2::cmds::GetUniformuiv
* c
= GetCmdSpace
<gles2::cmds::GetUniformuiv
>();
1130 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
1134 void GetUniformIndices(GLuint program
,
1135 uint32_t names_bucket_id
,
1136 uint32_t indices_shm_id
,
1137 uint32_t indices_shm_offset
) {
1138 gles2::cmds::GetUniformIndices
* c
=
1139 GetCmdSpace
<gles2::cmds::GetUniformIndices
>();
1141 c
->Init(program
, names_bucket_id
, indices_shm_id
, indices_shm_offset
);
1145 void GetUniformLocation(GLuint program
,
1146 uint32_t name_bucket_id
,
1147 uint32_t location_shm_id
,
1148 uint32_t location_shm_offset
) {
1149 gles2::cmds::GetUniformLocation
* c
=
1150 GetCmdSpace
<gles2::cmds::GetUniformLocation
>();
1152 c
->Init(program
, name_bucket_id
, location_shm_id
, location_shm_offset
);
1156 void GetVertexAttribfv(GLuint index
,
1158 uint32_t params_shm_id
,
1159 uint32_t params_shm_offset
) {
1160 gles2::cmds::GetVertexAttribfv
* c
=
1161 GetCmdSpace
<gles2::cmds::GetVertexAttribfv
>();
1163 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
1167 void GetVertexAttribiv(GLuint index
,
1169 uint32_t params_shm_id
,
1170 uint32_t params_shm_offset
) {
1171 gles2::cmds::GetVertexAttribiv
* c
=
1172 GetCmdSpace
<gles2::cmds::GetVertexAttribiv
>();
1174 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
1178 void GetVertexAttribIiv(GLuint index
,
1180 uint32_t params_shm_id
,
1181 uint32_t params_shm_offset
) {
1182 gles2::cmds::GetVertexAttribIiv
* c
=
1183 GetCmdSpace
<gles2::cmds::GetVertexAttribIiv
>();
1185 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
1189 void GetVertexAttribIuiv(GLuint index
,
1191 uint32_t params_shm_id
,
1192 uint32_t params_shm_offset
) {
1193 gles2::cmds::GetVertexAttribIuiv
* c
=
1194 GetCmdSpace
<gles2::cmds::GetVertexAttribIuiv
>();
1196 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
1200 void GetVertexAttribPointerv(GLuint index
,
1202 uint32_t pointer_shm_id
,
1203 uint32_t pointer_shm_offset
) {
1204 gles2::cmds::GetVertexAttribPointerv
* c
=
1205 GetCmdSpace
<gles2::cmds::GetVertexAttribPointerv
>();
1207 c
->Init(index
, pname
, pointer_shm_id
, pointer_shm_offset
);
1211 void Hint(GLenum target
, GLenum mode
) {
1212 gles2::cmds::Hint
* c
= GetCmdSpace
<gles2::cmds::Hint
>();
1214 c
->Init(target
, mode
);
1218 void InvalidateFramebufferImmediate(GLenum target
,
1220 const GLenum
* attachments
) {
1221 const uint32_t size
=
1222 gles2::cmds::InvalidateFramebufferImmediate::ComputeSize(count
);
1223 gles2::cmds::InvalidateFramebufferImmediate
* c
=
1224 GetImmediateCmdSpaceTotalSize
<
1225 gles2::cmds::InvalidateFramebufferImmediate
>(size
);
1227 c
->Init(target
, count
, attachments
);
1231 void InvalidateSubFramebufferImmediate(GLenum target
,
1233 const GLenum
* attachments
,
1238 const uint32_t size
=
1239 gles2::cmds::InvalidateSubFramebufferImmediate::ComputeSize(count
);
1240 gles2::cmds::InvalidateSubFramebufferImmediate
* c
=
1241 GetImmediateCmdSpaceTotalSize
<
1242 gles2::cmds::InvalidateSubFramebufferImmediate
>(size
);
1244 c
->Init(target
, count
, attachments
, x
, y
, width
, height
);
1248 void IsBuffer(GLuint buffer
,
1249 uint32_t result_shm_id
,
1250 uint32_t result_shm_offset
) {
1251 gles2::cmds::IsBuffer
* c
= GetCmdSpace
<gles2::cmds::IsBuffer
>();
1253 c
->Init(buffer
, result_shm_id
, result_shm_offset
);
1257 void IsEnabled(GLenum cap
, uint32_t result_shm_id
, uint32_t result_shm_offset
) {
1258 gles2::cmds::IsEnabled
* c
= GetCmdSpace
<gles2::cmds::IsEnabled
>();
1260 c
->Init(cap
, result_shm_id
, result_shm_offset
);
1264 void IsFramebuffer(GLuint framebuffer
,
1265 uint32_t result_shm_id
,
1266 uint32_t result_shm_offset
) {
1267 gles2::cmds::IsFramebuffer
* c
= GetCmdSpace
<gles2::cmds::IsFramebuffer
>();
1269 c
->Init(framebuffer
, result_shm_id
, result_shm_offset
);
1273 void IsProgram(GLuint program
,
1274 uint32_t result_shm_id
,
1275 uint32_t result_shm_offset
) {
1276 gles2::cmds::IsProgram
* c
= GetCmdSpace
<gles2::cmds::IsProgram
>();
1278 c
->Init(program
, result_shm_id
, result_shm_offset
);
1282 void IsRenderbuffer(GLuint renderbuffer
,
1283 uint32_t result_shm_id
,
1284 uint32_t result_shm_offset
) {
1285 gles2::cmds::IsRenderbuffer
* c
= GetCmdSpace
<gles2::cmds::IsRenderbuffer
>();
1287 c
->Init(renderbuffer
, result_shm_id
, result_shm_offset
);
1291 void IsSampler(GLuint sampler
,
1292 uint32_t result_shm_id
,
1293 uint32_t result_shm_offset
) {
1294 gles2::cmds::IsSampler
* c
= GetCmdSpace
<gles2::cmds::IsSampler
>();
1296 c
->Init(sampler
, result_shm_id
, result_shm_offset
);
1300 void IsShader(GLuint shader
,
1301 uint32_t result_shm_id
,
1302 uint32_t result_shm_offset
) {
1303 gles2::cmds::IsShader
* c
= GetCmdSpace
<gles2::cmds::IsShader
>();
1305 c
->Init(shader
, result_shm_id
, result_shm_offset
);
1309 void IsSync(GLuint sync
, uint32_t result_shm_id
, uint32_t result_shm_offset
) {
1310 gles2::cmds::IsSync
* c
= GetCmdSpace
<gles2::cmds::IsSync
>();
1312 c
->Init(sync
, result_shm_id
, result_shm_offset
);
1316 void IsTexture(GLuint texture
,
1317 uint32_t result_shm_id
,
1318 uint32_t result_shm_offset
) {
1319 gles2::cmds::IsTexture
* c
= GetCmdSpace
<gles2::cmds::IsTexture
>();
1321 c
->Init(texture
, result_shm_id
, result_shm_offset
);
1325 void IsTransformFeedback(GLuint transformfeedback
,
1326 uint32_t result_shm_id
,
1327 uint32_t result_shm_offset
) {
1328 gles2::cmds::IsTransformFeedback
* c
=
1329 GetCmdSpace
<gles2::cmds::IsTransformFeedback
>();
1331 c
->Init(transformfeedback
, result_shm_id
, result_shm_offset
);
1335 void LineWidth(GLfloat width
) {
1336 gles2::cmds::LineWidth
* c
= GetCmdSpace
<gles2::cmds::LineWidth
>();
1342 void LinkProgram(GLuint program
) {
1343 gles2::cmds::LinkProgram
* c
= GetCmdSpace
<gles2::cmds::LinkProgram
>();
1349 void PauseTransformFeedback() {
1350 gles2::cmds::PauseTransformFeedback
* c
=
1351 GetCmdSpace
<gles2::cmds::PauseTransformFeedback
>();
1357 void PixelStorei(GLenum pname
, GLint param
) {
1358 gles2::cmds::PixelStorei
* c
= GetCmdSpace
<gles2::cmds::PixelStorei
>();
1360 c
->Init(pname
, param
);
1364 void PolygonOffset(GLfloat factor
, GLfloat units
) {
1365 gles2::cmds::PolygonOffset
* c
= GetCmdSpace
<gles2::cmds::PolygonOffset
>();
1367 c
->Init(factor
, units
);
1371 void ReadBuffer(GLenum src
) {
1372 gles2::cmds::ReadBuffer
* c
= GetCmdSpace
<gles2::cmds::ReadBuffer
>();
1378 void ReadPixels(GLint x
,
1384 uint32_t pixels_shm_id
,
1385 uint32_t pixels_shm_offset
,
1386 uint32_t result_shm_id
,
1387 uint32_t result_shm_offset
,
1389 gles2::cmds::ReadPixels
* c
= GetCmdSpace
<gles2::cmds::ReadPixels
>();
1391 c
->Init(x
, y
, width
, height
, format
, type
, pixels_shm_id
, pixels_shm_offset
,
1392 result_shm_id
, result_shm_offset
, async
);
1396 void ReleaseShaderCompiler() {
1397 gles2::cmds::ReleaseShaderCompiler
* c
=
1398 GetCmdSpace
<gles2::cmds::ReleaseShaderCompiler
>();
1404 void RenderbufferStorage(GLenum target
,
1405 GLenum internalformat
,
1408 gles2::cmds::RenderbufferStorage
* c
=
1409 GetCmdSpace
<gles2::cmds::RenderbufferStorage
>();
1411 c
->Init(target
, internalformat
, width
, height
);
1415 void ResumeTransformFeedback() {
1416 gles2::cmds::ResumeTransformFeedback
* c
=
1417 GetCmdSpace
<gles2::cmds::ResumeTransformFeedback
>();
1423 void SampleCoverage(GLclampf value
, GLboolean invert
) {
1424 gles2::cmds::SampleCoverage
* c
= GetCmdSpace
<gles2::cmds::SampleCoverage
>();
1426 c
->Init(value
, invert
);
1430 void SamplerParameterf(GLuint sampler
, GLenum pname
, GLfloat param
) {
1431 gles2::cmds::SamplerParameterf
* c
=
1432 GetCmdSpace
<gles2::cmds::SamplerParameterf
>();
1434 c
->Init(sampler
, pname
, param
);
1438 void SamplerParameterfvImmediate(GLuint sampler
,
1440 const GLfloat
* params
) {
1441 const uint32_t size
= gles2::cmds::SamplerParameterfvImmediate::ComputeSize();
1442 gles2::cmds::SamplerParameterfvImmediate
* c
=
1443 GetImmediateCmdSpaceTotalSize
<gles2::cmds::SamplerParameterfvImmediate
>(
1446 c
->Init(sampler
, pname
, params
);
1450 void SamplerParameteri(GLuint sampler
, GLenum pname
, GLint param
) {
1451 gles2::cmds::SamplerParameteri
* c
=
1452 GetCmdSpace
<gles2::cmds::SamplerParameteri
>();
1454 c
->Init(sampler
, pname
, param
);
1458 void SamplerParameterivImmediate(GLuint sampler
,
1460 const GLint
* params
) {
1461 const uint32_t size
= gles2::cmds::SamplerParameterivImmediate::ComputeSize();
1462 gles2::cmds::SamplerParameterivImmediate
* c
=
1463 GetImmediateCmdSpaceTotalSize
<gles2::cmds::SamplerParameterivImmediate
>(
1466 c
->Init(sampler
, pname
, params
);
1470 void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
1471 gles2::cmds::Scissor
* c
= GetCmdSpace
<gles2::cmds::Scissor
>();
1473 c
->Init(x
, y
, width
, height
);
1477 void ShaderBinary(GLsizei n
,
1478 uint32_t shaders_shm_id
,
1479 uint32_t shaders_shm_offset
,
1480 GLenum binaryformat
,
1481 uint32_t binary_shm_id
,
1482 uint32_t binary_shm_offset
,
1484 gles2::cmds::ShaderBinary
* c
= GetCmdSpace
<gles2::cmds::ShaderBinary
>();
1486 c
->Init(n
, shaders_shm_id
, shaders_shm_offset
, binaryformat
, binary_shm_id
,
1487 binary_shm_offset
, length
);
1491 void ShaderSourceBucket(GLuint shader
, uint32_t str_bucket_id
) {
1492 gles2::cmds::ShaderSourceBucket
* c
=
1493 GetCmdSpace
<gles2::cmds::ShaderSourceBucket
>();
1495 c
->Init(shader
, str_bucket_id
);
1499 void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
1500 gles2::cmds::StencilFunc
* c
= GetCmdSpace
<gles2::cmds::StencilFunc
>();
1502 c
->Init(func
, ref
, mask
);
1506 void StencilFuncSeparate(GLenum face
, GLenum func
, GLint ref
, GLuint mask
) {
1507 gles2::cmds::StencilFuncSeparate
* c
=
1508 GetCmdSpace
<gles2::cmds::StencilFuncSeparate
>();
1510 c
->Init(face
, func
, ref
, mask
);
1514 void StencilMask(GLuint mask
) {
1515 gles2::cmds::StencilMask
* c
= GetCmdSpace
<gles2::cmds::StencilMask
>();
1521 void StencilMaskSeparate(GLenum face
, GLuint mask
) {
1522 gles2::cmds::StencilMaskSeparate
* c
=
1523 GetCmdSpace
<gles2::cmds::StencilMaskSeparate
>();
1525 c
->Init(face
, mask
);
1529 void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
1530 gles2::cmds::StencilOp
* c
= GetCmdSpace
<gles2::cmds::StencilOp
>();
1532 c
->Init(fail
, zfail
, zpass
);
1536 void StencilOpSeparate(GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
) {
1537 gles2::cmds::StencilOpSeparate
* c
=
1538 GetCmdSpace
<gles2::cmds::StencilOpSeparate
>();
1540 c
->Init(face
, fail
, zfail
, zpass
);
1544 void TexImage2D(GLenum target
,
1546 GLint internalformat
,
1551 uint32_t pixels_shm_id
,
1552 uint32_t pixels_shm_offset
) {
1553 gles2::cmds::TexImage2D
* c
= GetCmdSpace
<gles2::cmds::TexImage2D
>();
1555 c
->Init(target
, level
, internalformat
, width
, height
, format
, type
,
1556 pixels_shm_id
, pixels_shm_offset
);
1560 void TexImage3D(GLenum target
,
1562 GLint internalformat
,
1568 uint32_t pixels_shm_id
,
1569 uint32_t pixels_shm_offset
) {
1570 gles2::cmds::TexImage3D
* c
= GetCmdSpace
<gles2::cmds::TexImage3D
>();
1572 c
->Init(target
, level
, internalformat
, width
, height
, depth
, format
, type
,
1573 pixels_shm_id
, pixels_shm_offset
);
1577 void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
1578 gles2::cmds::TexParameterf
* c
= GetCmdSpace
<gles2::cmds::TexParameterf
>();
1580 c
->Init(target
, pname
, param
);
1584 void TexParameterfvImmediate(GLenum target
,
1586 const GLfloat
* params
) {
1587 const uint32_t size
= gles2::cmds::TexParameterfvImmediate::ComputeSize();
1588 gles2::cmds::TexParameterfvImmediate
* c
=
1589 GetImmediateCmdSpaceTotalSize
<gles2::cmds::TexParameterfvImmediate
>(size
);
1591 c
->Init(target
, pname
, params
);
1595 void TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
1596 gles2::cmds::TexParameteri
* c
= GetCmdSpace
<gles2::cmds::TexParameteri
>();
1598 c
->Init(target
, pname
, param
);
1602 void TexParameterivImmediate(GLenum target
, GLenum pname
, const GLint
* params
) {
1603 const uint32_t size
= gles2::cmds::TexParameterivImmediate::ComputeSize();
1604 gles2::cmds::TexParameterivImmediate
* c
=
1605 GetImmediateCmdSpaceTotalSize
<gles2::cmds::TexParameterivImmediate
>(size
);
1607 c
->Init(target
, pname
, params
);
1611 void TexStorage3D(GLenum target
,
1613 GLenum internalFormat
,
1617 gles2::cmds::TexStorage3D
* c
= GetCmdSpace
<gles2::cmds::TexStorage3D
>();
1619 c
->Init(target
, levels
, internalFormat
, width
, height
, depth
);
1623 void TexSubImage2D(GLenum target
,
1631 uint32_t pixels_shm_id
,
1632 uint32_t pixels_shm_offset
,
1633 GLboolean internal
) {
1634 gles2::cmds::TexSubImage2D
* c
= GetCmdSpace
<gles2::cmds::TexSubImage2D
>();
1636 c
->Init(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
1637 pixels_shm_id
, pixels_shm_offset
, internal
);
1641 void TexSubImage3D(GLenum target
,
1651 uint32_t pixels_shm_id
,
1652 uint32_t pixels_shm_offset
,
1653 GLboolean internal
) {
1654 gles2::cmds::TexSubImage3D
* c
= GetCmdSpace
<gles2::cmds::TexSubImage3D
>();
1656 c
->Init(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
,
1657 format
, type
, pixels_shm_id
, pixels_shm_offset
, internal
);
1661 void TransformFeedbackVaryingsBucket(GLuint program
,
1662 uint32_t varyings_bucket_id
,
1663 GLenum buffermode
) {
1664 gles2::cmds::TransformFeedbackVaryingsBucket
* c
=
1665 GetCmdSpace
<gles2::cmds::TransformFeedbackVaryingsBucket
>();
1667 c
->Init(program
, varyings_bucket_id
, buffermode
);
1671 void Uniform1f(GLint location
, GLfloat x
) {
1672 gles2::cmds::Uniform1f
* c
= GetCmdSpace
<gles2::cmds::Uniform1f
>();
1674 c
->Init(location
, x
);
1678 void Uniform1fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1679 const uint32_t size
= gles2::cmds::Uniform1fvImmediate::ComputeSize(count
);
1680 gles2::cmds::Uniform1fvImmediate
* c
=
1681 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1fvImmediate
>(size
);
1683 c
->Init(location
, count
, v
);
1687 void Uniform1i(GLint location
, GLint x
) {
1688 gles2::cmds::Uniform1i
* c
= GetCmdSpace
<gles2::cmds::Uniform1i
>();
1690 c
->Init(location
, x
);
1694 void Uniform1ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1695 const uint32_t size
= gles2::cmds::Uniform1ivImmediate::ComputeSize(count
);
1696 gles2::cmds::Uniform1ivImmediate
* c
=
1697 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1ivImmediate
>(size
);
1699 c
->Init(location
, count
, v
);
1703 void Uniform1ui(GLint location
, GLuint x
) {
1704 gles2::cmds::Uniform1ui
* c
= GetCmdSpace
<gles2::cmds::Uniform1ui
>();
1706 c
->Init(location
, x
);
1710 void Uniform1uivImmediate(GLint location
, GLsizei count
, const GLuint
* v
) {
1711 const uint32_t size
= gles2::cmds::Uniform1uivImmediate::ComputeSize(count
);
1712 gles2::cmds::Uniform1uivImmediate
* c
=
1713 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1uivImmediate
>(size
);
1715 c
->Init(location
, count
, v
);
1719 void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
1720 gles2::cmds::Uniform2f
* c
= GetCmdSpace
<gles2::cmds::Uniform2f
>();
1722 c
->Init(location
, x
, y
);
1726 void Uniform2fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1727 const uint32_t size
= gles2::cmds::Uniform2fvImmediate::ComputeSize(count
);
1728 gles2::cmds::Uniform2fvImmediate
* c
=
1729 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2fvImmediate
>(size
);
1731 c
->Init(location
, count
, v
);
1735 void Uniform2i(GLint location
, GLint x
, GLint y
) {
1736 gles2::cmds::Uniform2i
* c
= GetCmdSpace
<gles2::cmds::Uniform2i
>();
1738 c
->Init(location
, x
, y
);
1742 void Uniform2ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1743 const uint32_t size
= gles2::cmds::Uniform2ivImmediate::ComputeSize(count
);
1744 gles2::cmds::Uniform2ivImmediate
* c
=
1745 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2ivImmediate
>(size
);
1747 c
->Init(location
, count
, v
);
1751 void Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
1752 gles2::cmds::Uniform2ui
* c
= GetCmdSpace
<gles2::cmds::Uniform2ui
>();
1754 c
->Init(location
, x
, y
);
1758 void Uniform2uivImmediate(GLint location
, GLsizei count
, const GLuint
* v
) {
1759 const uint32_t size
= gles2::cmds::Uniform2uivImmediate::ComputeSize(count
);
1760 gles2::cmds::Uniform2uivImmediate
* c
=
1761 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2uivImmediate
>(size
);
1763 c
->Init(location
, count
, v
);
1767 void Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
1768 gles2::cmds::Uniform3f
* c
= GetCmdSpace
<gles2::cmds::Uniform3f
>();
1770 c
->Init(location
, x
, y
, z
);
1774 void Uniform3fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1775 const uint32_t size
= gles2::cmds::Uniform3fvImmediate::ComputeSize(count
);
1776 gles2::cmds::Uniform3fvImmediate
* c
=
1777 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3fvImmediate
>(size
);
1779 c
->Init(location
, count
, v
);
1783 void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
1784 gles2::cmds::Uniform3i
* c
= GetCmdSpace
<gles2::cmds::Uniform3i
>();
1786 c
->Init(location
, x
, y
, z
);
1790 void Uniform3ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1791 const uint32_t size
= gles2::cmds::Uniform3ivImmediate::ComputeSize(count
);
1792 gles2::cmds::Uniform3ivImmediate
* c
=
1793 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3ivImmediate
>(size
);
1795 c
->Init(location
, count
, v
);
1799 void Uniform3ui(GLint location
, GLuint x
, GLuint y
, GLuint z
) {
1800 gles2::cmds::Uniform3ui
* c
= GetCmdSpace
<gles2::cmds::Uniform3ui
>();
1802 c
->Init(location
, x
, y
, z
);
1806 void Uniform3uivImmediate(GLint location
, GLsizei count
, const GLuint
* v
) {
1807 const uint32_t size
= gles2::cmds::Uniform3uivImmediate::ComputeSize(count
);
1808 gles2::cmds::Uniform3uivImmediate
* c
=
1809 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3uivImmediate
>(size
);
1811 c
->Init(location
, count
, v
);
1815 void Uniform4f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
1816 gles2::cmds::Uniform4f
* c
= GetCmdSpace
<gles2::cmds::Uniform4f
>();
1818 c
->Init(location
, x
, y
, z
, w
);
1822 void Uniform4fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1823 const uint32_t size
= gles2::cmds::Uniform4fvImmediate::ComputeSize(count
);
1824 gles2::cmds::Uniform4fvImmediate
* c
=
1825 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4fvImmediate
>(size
);
1827 c
->Init(location
, count
, v
);
1831 void Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
1832 gles2::cmds::Uniform4i
* c
= GetCmdSpace
<gles2::cmds::Uniform4i
>();
1834 c
->Init(location
, x
, y
, z
, w
);
1838 void Uniform4ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1839 const uint32_t size
= gles2::cmds::Uniform4ivImmediate::ComputeSize(count
);
1840 gles2::cmds::Uniform4ivImmediate
* c
=
1841 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4ivImmediate
>(size
);
1843 c
->Init(location
, count
, v
);
1847 void Uniform4ui(GLint location
, GLuint x
, GLuint y
, GLuint z
, GLuint w
) {
1848 gles2::cmds::Uniform4ui
* c
= GetCmdSpace
<gles2::cmds::Uniform4ui
>();
1850 c
->Init(location
, x
, y
, z
, w
);
1854 void Uniform4uivImmediate(GLint location
, GLsizei count
, const GLuint
* v
) {
1855 const uint32_t size
= gles2::cmds::Uniform4uivImmediate::ComputeSize(count
);
1856 gles2::cmds::Uniform4uivImmediate
* c
=
1857 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4uivImmediate
>(size
);
1859 c
->Init(location
, count
, v
);
1863 void UniformBlockBinding(GLuint program
, GLuint index
, GLuint binding
) {
1864 gles2::cmds::UniformBlockBinding
* c
=
1865 GetCmdSpace
<gles2::cmds::UniformBlockBinding
>();
1867 c
->Init(program
, index
, binding
);
1871 void UniformMatrix2fvImmediate(GLint location
,
1873 const GLfloat
* value
) {
1874 const uint32_t size
=
1875 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count
);
1876 gles2::cmds::UniformMatrix2fvImmediate
* c
=
1877 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix2fvImmediate
>(
1880 c
->Init(location
, count
, value
);
1884 void UniformMatrix2x3fvImmediate(GLint location
,
1886 const GLfloat
* value
) {
1887 const uint32_t size
=
1888 gles2::cmds::UniformMatrix2x3fvImmediate::ComputeSize(count
);
1889 gles2::cmds::UniformMatrix2x3fvImmediate
* c
=
1890 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix2x3fvImmediate
>(
1893 c
->Init(location
, count
, value
);
1897 void UniformMatrix2x4fvImmediate(GLint location
,
1899 const GLfloat
* value
) {
1900 const uint32_t size
=
1901 gles2::cmds::UniformMatrix2x4fvImmediate::ComputeSize(count
);
1902 gles2::cmds::UniformMatrix2x4fvImmediate
* c
=
1903 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix2x4fvImmediate
>(
1906 c
->Init(location
, count
, value
);
1910 void UniformMatrix3fvImmediate(GLint location
,
1912 const GLfloat
* value
) {
1913 const uint32_t size
=
1914 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count
);
1915 gles2::cmds::UniformMatrix3fvImmediate
* c
=
1916 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix3fvImmediate
>(
1919 c
->Init(location
, count
, value
);
1923 void UniformMatrix3x2fvImmediate(GLint location
,
1925 const GLfloat
* value
) {
1926 const uint32_t size
=
1927 gles2::cmds::UniformMatrix3x2fvImmediate::ComputeSize(count
);
1928 gles2::cmds::UniformMatrix3x2fvImmediate
* c
=
1929 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix3x2fvImmediate
>(
1932 c
->Init(location
, count
, value
);
1936 void UniformMatrix3x4fvImmediate(GLint location
,
1938 const GLfloat
* value
) {
1939 const uint32_t size
=
1940 gles2::cmds::UniformMatrix3x4fvImmediate::ComputeSize(count
);
1941 gles2::cmds::UniformMatrix3x4fvImmediate
* c
=
1942 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix3x4fvImmediate
>(
1945 c
->Init(location
, count
, value
);
1949 void UniformMatrix4fvImmediate(GLint location
,
1951 const GLfloat
* value
) {
1952 const uint32_t size
=
1953 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count
);
1954 gles2::cmds::UniformMatrix4fvImmediate
* c
=
1955 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix4fvImmediate
>(
1958 c
->Init(location
, count
, value
);
1962 void UniformMatrix4x2fvImmediate(GLint location
,
1964 const GLfloat
* value
) {
1965 const uint32_t size
=
1966 gles2::cmds::UniformMatrix4x2fvImmediate::ComputeSize(count
);
1967 gles2::cmds::UniformMatrix4x2fvImmediate
* c
=
1968 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix4x2fvImmediate
>(
1971 c
->Init(location
, count
, value
);
1975 void UniformMatrix4x3fvImmediate(GLint location
,
1977 const GLfloat
* value
) {
1978 const uint32_t size
=
1979 gles2::cmds::UniformMatrix4x3fvImmediate::ComputeSize(count
);
1980 gles2::cmds::UniformMatrix4x3fvImmediate
* c
=
1981 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix4x3fvImmediate
>(
1984 c
->Init(location
, count
, value
);
1988 void UseProgram(GLuint program
) {
1989 gles2::cmds::UseProgram
* c
= GetCmdSpace
<gles2::cmds::UseProgram
>();
1995 void ValidateProgram(GLuint program
) {
1996 gles2::cmds::ValidateProgram
* c
= GetCmdSpace
<gles2::cmds::ValidateProgram
>();
2002 void VertexAttrib1f(GLuint indx
, GLfloat x
) {
2003 gles2::cmds::VertexAttrib1f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib1f
>();
2009 void VertexAttrib1fvImmediate(GLuint indx
, const GLfloat
* values
) {
2010 const uint32_t size
= gles2::cmds::VertexAttrib1fvImmediate::ComputeSize();
2011 gles2::cmds::VertexAttrib1fvImmediate
* c
=
2012 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib1fvImmediate
>(
2015 c
->Init(indx
, values
);
2019 void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
2020 gles2::cmds::VertexAttrib2f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib2f
>();
2022 c
->Init(indx
, x
, y
);
2026 void VertexAttrib2fvImmediate(GLuint indx
, const GLfloat
* values
) {
2027 const uint32_t size
= gles2::cmds::VertexAttrib2fvImmediate::ComputeSize();
2028 gles2::cmds::VertexAttrib2fvImmediate
* c
=
2029 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib2fvImmediate
>(
2032 c
->Init(indx
, values
);
2036 void VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
2037 gles2::cmds::VertexAttrib3f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib3f
>();
2039 c
->Init(indx
, x
, y
, z
);
2043 void VertexAttrib3fvImmediate(GLuint indx
, const GLfloat
* values
) {
2044 const uint32_t size
= gles2::cmds::VertexAttrib3fvImmediate::ComputeSize();
2045 gles2::cmds::VertexAttrib3fvImmediate
* c
=
2046 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib3fvImmediate
>(
2049 c
->Init(indx
, values
);
2053 void VertexAttrib4f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
2054 gles2::cmds::VertexAttrib4f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib4f
>();
2056 c
->Init(indx
, x
, y
, z
, w
);
2060 void VertexAttrib4fvImmediate(GLuint indx
, const GLfloat
* values
) {
2061 const uint32_t size
= gles2::cmds::VertexAttrib4fvImmediate::ComputeSize();
2062 gles2::cmds::VertexAttrib4fvImmediate
* c
=
2063 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib4fvImmediate
>(
2066 c
->Init(indx
, values
);
2070 void VertexAttribI4i(GLuint indx
, GLint x
, GLint y
, GLint z
, GLint w
) {
2071 gles2::cmds::VertexAttribI4i
* c
= GetCmdSpace
<gles2::cmds::VertexAttribI4i
>();
2073 c
->Init(indx
, x
, y
, z
, w
);
2077 void VertexAttribI4ivImmediate(GLuint indx
, const GLint
* values
) {
2078 const uint32_t size
= gles2::cmds::VertexAttribI4ivImmediate::ComputeSize();
2079 gles2::cmds::VertexAttribI4ivImmediate
* c
=
2080 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttribI4ivImmediate
>(
2083 c
->Init(indx
, values
);
2087 void VertexAttribI4ui(GLuint indx
, GLuint x
, GLuint y
, GLuint z
, GLuint w
) {
2088 gles2::cmds::VertexAttribI4ui
* c
=
2089 GetCmdSpace
<gles2::cmds::VertexAttribI4ui
>();
2091 c
->Init(indx
, x
, y
, z
, w
);
2095 void VertexAttribI4uivImmediate(GLuint indx
, const GLuint
* values
) {
2096 const uint32_t size
= gles2::cmds::VertexAttribI4uivImmediate::ComputeSize();
2097 gles2::cmds::VertexAttribI4uivImmediate
* c
=
2098 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttribI4uivImmediate
>(
2101 c
->Init(indx
, values
);
2105 void VertexAttribIPointer(GLuint indx
,
2110 gles2::cmds::VertexAttribIPointer
* c
=
2111 GetCmdSpace
<gles2::cmds::VertexAttribIPointer
>();
2113 c
->Init(indx
, size
, type
, stride
, offset
);
2117 void VertexAttribPointer(GLuint indx
,
2120 GLboolean normalized
,
2123 gles2::cmds::VertexAttribPointer
* c
=
2124 GetCmdSpace
<gles2::cmds::VertexAttribPointer
>();
2126 c
->Init(indx
, size
, type
, normalized
, stride
, offset
);
2130 void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
2131 gles2::cmds::Viewport
* c
= GetCmdSpace
<gles2::cmds::Viewport
>();
2133 c
->Init(x
, y
, width
, height
);
2137 void WaitSync(GLuint sync
,
2141 gles2::cmds::WaitSync
* c
= GetCmdSpace
<gles2::cmds::WaitSync
>();
2143 c
->Init(sync
, flags
, timeout_0
, timeout_1
);
2147 void BlitFramebufferCHROMIUM(GLint srcX0
,
2157 gles2::cmds::BlitFramebufferCHROMIUM
* c
=
2158 GetCmdSpace
<gles2::cmds::BlitFramebufferCHROMIUM
>();
2160 c
->Init(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
,
2165 void RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
2167 GLenum internalformat
,
2170 gles2::cmds::RenderbufferStorageMultisampleCHROMIUM
* c
=
2171 GetCmdSpace
<gles2::cmds::RenderbufferStorageMultisampleCHROMIUM
>();
2173 c
->Init(target
, samples
, internalformat
, width
, height
);
2177 void RenderbufferStorageMultisampleEXT(GLenum target
,
2179 GLenum internalformat
,
2182 gles2::cmds::RenderbufferStorageMultisampleEXT
* c
=
2183 GetCmdSpace
<gles2::cmds::RenderbufferStorageMultisampleEXT
>();
2185 c
->Init(target
, samples
, internalformat
, width
, height
);
2189 void FramebufferTexture2DMultisampleEXT(GLenum target
,
2194 gles2::cmds::FramebufferTexture2DMultisampleEXT
* c
=
2195 GetCmdSpace
<gles2::cmds::FramebufferTexture2DMultisampleEXT
>();
2197 c
->Init(target
, attachment
, textarget
, texture
, samples
);
2201 void TexStorage2DEXT(GLenum target
,
2203 GLenum internalFormat
,
2206 gles2::cmds::TexStorage2DEXT
* c
= GetCmdSpace
<gles2::cmds::TexStorage2DEXT
>();
2208 c
->Init(target
, levels
, internalFormat
, width
, height
);
2212 void GenQueriesEXTImmediate(GLsizei n
, GLuint
* queries
) {
2213 const uint32_t size
= gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n
);
2214 gles2::cmds::GenQueriesEXTImmediate
* c
=
2215 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenQueriesEXTImmediate
>(size
);
2217 c
->Init(n
, queries
);
2221 void DeleteQueriesEXTImmediate(GLsizei n
, const GLuint
* queries
) {
2222 const uint32_t size
= gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n
);
2223 gles2::cmds::DeleteQueriesEXTImmediate
* c
=
2224 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteQueriesEXTImmediate
>(
2227 c
->Init(n
, queries
);
2231 void QueryCounterEXT(GLuint id
,
2233 uint32_t sync_data_shm_id
,
2234 uint32_t sync_data_shm_offset
,
2235 GLuint submit_count
) {
2236 gles2::cmds::QueryCounterEXT
* c
= GetCmdSpace
<gles2::cmds::QueryCounterEXT
>();
2238 c
->Init(id
, target
, sync_data_shm_id
, sync_data_shm_offset
, submit_count
);
2242 void BeginQueryEXT(GLenum target
,
2244 uint32_t sync_data_shm_id
,
2245 uint32_t sync_data_shm_offset
) {
2246 gles2::cmds::BeginQueryEXT
* c
= GetCmdSpace
<gles2::cmds::BeginQueryEXT
>();
2248 c
->Init(target
, id
, sync_data_shm_id
, sync_data_shm_offset
);
2252 void BeginTransformFeedback(GLenum primitivemode
) {
2253 gles2::cmds::BeginTransformFeedback
* c
=
2254 GetCmdSpace
<gles2::cmds::BeginTransformFeedback
>();
2256 c
->Init(primitivemode
);
2260 void EndQueryEXT(GLenum target
, GLuint submit_count
) {
2261 gles2::cmds::EndQueryEXT
* c
= GetCmdSpace
<gles2::cmds::EndQueryEXT
>();
2263 c
->Init(target
, submit_count
);
2267 void EndTransformFeedback() {
2268 gles2::cmds::EndTransformFeedback
* c
=
2269 GetCmdSpace
<gles2::cmds::EndTransformFeedback
>();
2275 void InsertEventMarkerEXT(GLuint bucket_id
) {
2276 gles2::cmds::InsertEventMarkerEXT
* c
=
2277 GetCmdSpace
<gles2::cmds::InsertEventMarkerEXT
>();
2283 void PushGroupMarkerEXT(GLuint bucket_id
) {
2284 gles2::cmds::PushGroupMarkerEXT
* c
=
2285 GetCmdSpace
<gles2::cmds::PushGroupMarkerEXT
>();
2291 void PopGroupMarkerEXT() {
2292 gles2::cmds::PopGroupMarkerEXT
* c
=
2293 GetCmdSpace
<gles2::cmds::PopGroupMarkerEXT
>();
2299 void GenVertexArraysOESImmediate(GLsizei n
, GLuint
* arrays
) {
2300 const uint32_t size
=
2301 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n
);
2302 gles2::cmds::GenVertexArraysOESImmediate
* c
=
2303 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenVertexArraysOESImmediate
>(
2310 void DeleteVertexArraysOESImmediate(GLsizei n
, const GLuint
* arrays
) {
2311 const uint32_t size
=
2312 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n
);
2313 gles2::cmds::DeleteVertexArraysOESImmediate
* c
=
2314 GetImmediateCmdSpaceTotalSize
<
2315 gles2::cmds::DeleteVertexArraysOESImmediate
>(size
);
2321 void IsVertexArrayOES(GLuint array
,
2322 uint32_t result_shm_id
,
2323 uint32_t result_shm_offset
) {
2324 gles2::cmds::IsVertexArrayOES
* c
=
2325 GetCmdSpace
<gles2::cmds::IsVertexArrayOES
>();
2327 c
->Init(array
, result_shm_id
, result_shm_offset
);
2331 void BindVertexArrayOES(GLuint array
) {
2332 gles2::cmds::BindVertexArrayOES
* c
=
2333 GetCmdSpace
<gles2::cmds::BindVertexArrayOES
>();
2339 void SwapBuffers() {
2340 gles2::cmds::SwapBuffers
* c
= GetCmdSpace
<gles2::cmds::SwapBuffers
>();
2346 void GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
2350 uint32_t result_shm_id
,
2351 uint32_t result_shm_offset
) {
2352 gles2::cmds::GetMaxValueInBufferCHROMIUM
* c
=
2353 GetCmdSpace
<gles2::cmds::GetMaxValueInBufferCHROMIUM
>();
2355 c
->Init(buffer_id
, count
, type
, offset
, result_shm_id
, result_shm_offset
);
2359 void EnableFeatureCHROMIUM(GLuint bucket_id
,
2360 uint32_t result_shm_id
,
2361 uint32_t result_shm_offset
) {
2362 gles2::cmds::EnableFeatureCHROMIUM
* c
=
2363 GetCmdSpace
<gles2::cmds::EnableFeatureCHROMIUM
>();
2365 c
->Init(bucket_id
, result_shm_id
, result_shm_offset
);
2369 void MapBufferRange(GLenum target
,
2373 uint32_t data_shm_id
,
2374 uint32_t data_shm_offset
,
2375 uint32_t result_shm_id
,
2376 uint32_t result_shm_offset
) {
2377 gles2::cmds::MapBufferRange
* c
= GetCmdSpace
<gles2::cmds::MapBufferRange
>();
2379 c
->Init(target
, offset
, size
, access
, data_shm_id
, data_shm_offset
,
2380 result_shm_id
, result_shm_offset
);
2384 void UnmapBuffer(GLenum target
) {
2385 gles2::cmds::UnmapBuffer
* c
= GetCmdSpace
<gles2::cmds::UnmapBuffer
>();
2391 void ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) {
2392 gles2::cmds::ResizeCHROMIUM
* c
= GetCmdSpace
<gles2::cmds::ResizeCHROMIUM
>();
2394 c
->Init(width
, height
, scale_factor
);
2398 void GetRequestableExtensionsCHROMIUM(uint32_t bucket_id
) {
2399 gles2::cmds::GetRequestableExtensionsCHROMIUM
* c
=
2400 GetCmdSpace
<gles2::cmds::GetRequestableExtensionsCHROMIUM
>();
2406 void RequestExtensionCHROMIUM(uint32_t bucket_id
) {
2407 gles2::cmds::RequestExtensionCHROMIUM
* c
=
2408 GetCmdSpace
<gles2::cmds::RequestExtensionCHROMIUM
>();
2414 void GetProgramInfoCHROMIUM(GLuint program
, uint32_t bucket_id
) {
2415 gles2::cmds::GetProgramInfoCHROMIUM
* c
=
2416 GetCmdSpace
<gles2::cmds::GetProgramInfoCHROMIUM
>();
2418 c
->Init(program
, bucket_id
);
2422 void GetUniformBlocksCHROMIUM(GLuint program
, uint32_t bucket_id
) {
2423 gles2::cmds::GetUniformBlocksCHROMIUM
* c
=
2424 GetCmdSpace
<gles2::cmds::GetUniformBlocksCHROMIUM
>();
2426 c
->Init(program
, bucket_id
);
2430 void GetTransformFeedbackVaryingsCHROMIUM(GLuint program
, uint32_t bucket_id
) {
2431 gles2::cmds::GetTransformFeedbackVaryingsCHROMIUM
* c
=
2432 GetCmdSpace
<gles2::cmds::GetTransformFeedbackVaryingsCHROMIUM
>();
2434 c
->Init(program
, bucket_id
);
2438 void GetUniformsES3CHROMIUM(GLuint program
, uint32_t bucket_id
) {
2439 gles2::cmds::GetUniformsES3CHROMIUM
* c
=
2440 GetCmdSpace
<gles2::cmds::GetUniformsES3CHROMIUM
>();
2442 c
->Init(program
, bucket_id
);
2446 void GetTranslatedShaderSourceANGLE(GLuint shader
, uint32_t bucket_id
) {
2447 gles2::cmds::GetTranslatedShaderSourceANGLE
* c
=
2448 GetCmdSpace
<gles2::cmds::GetTranslatedShaderSourceANGLE
>();
2450 c
->Init(shader
, bucket_id
);
2454 void PostSubBufferCHROMIUM(GLint x
, GLint y
, GLint width
, GLint height
) {
2455 gles2::cmds::PostSubBufferCHROMIUM
* c
=
2456 GetCmdSpace
<gles2::cmds::PostSubBufferCHROMIUM
>();
2458 c
->Init(x
, y
, width
, height
);
2462 void TexImageIOSurface2DCHROMIUM(GLenum target
,
2467 gles2::cmds::TexImageIOSurface2DCHROMIUM
* c
=
2468 GetCmdSpace
<gles2::cmds::TexImageIOSurface2DCHROMIUM
>();
2470 c
->Init(target
, width
, height
, ioSurfaceId
, plane
);
2474 void CopyTextureCHROMIUM(GLenum target
,
2477 GLint internalformat
,
2479 GLboolean unpack_flip_y
,
2480 GLboolean unpack_premultiply_alpha
,
2481 GLboolean unpack_unmultiply_alpha
) {
2482 gles2::cmds::CopyTextureCHROMIUM
* c
=
2483 GetCmdSpace
<gles2::cmds::CopyTextureCHROMIUM
>();
2485 c
->Init(target
, source_id
, dest_id
, internalformat
, dest_type
,
2486 unpack_flip_y
, unpack_premultiply_alpha
, unpack_unmultiply_alpha
);
2490 void CopySubTextureCHROMIUM(GLenum target
,
2499 GLboolean unpack_flip_y
,
2500 GLboolean unpack_premultiply_alpha
,
2501 GLboolean unpack_unmultiply_alpha
) {
2502 gles2::cmds::CopySubTextureCHROMIUM
* c
=
2503 GetCmdSpace
<gles2::cmds::CopySubTextureCHROMIUM
>();
2505 c
->Init(target
, source_id
, dest_id
, xoffset
, yoffset
, x
, y
, width
, height
,
2506 unpack_flip_y
, unpack_premultiply_alpha
, unpack_unmultiply_alpha
);
2510 void CompressedCopyTextureCHROMIUM(GLenum target
,
2513 gles2::cmds::CompressedCopyTextureCHROMIUM
* c
=
2514 GetCmdSpace
<gles2::cmds::CompressedCopyTextureCHROMIUM
>();
2516 c
->Init(target
, source_id
, dest_id
);
2520 void DrawArraysInstancedANGLE(GLenum mode
,
2523 GLsizei primcount
) {
2524 gles2::cmds::DrawArraysInstancedANGLE
* c
=
2525 GetCmdSpace
<gles2::cmds::DrawArraysInstancedANGLE
>();
2527 c
->Init(mode
, first
, count
, primcount
);
2531 void DrawElementsInstancedANGLE(GLenum mode
,
2534 GLuint index_offset
,
2535 GLsizei primcount
) {
2536 gles2::cmds::DrawElementsInstancedANGLE
* c
=
2537 GetCmdSpace
<gles2::cmds::DrawElementsInstancedANGLE
>();
2539 c
->Init(mode
, count
, type
, index_offset
, primcount
);
2543 void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
2544 gles2::cmds::VertexAttribDivisorANGLE
* c
=
2545 GetCmdSpace
<gles2::cmds::VertexAttribDivisorANGLE
>();
2547 c
->Init(index
, divisor
);
2551 void ProduceTextureCHROMIUMImmediate(GLenum target
, const GLbyte
* mailbox
) {
2552 const uint32_t size
=
2553 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
2554 gles2::cmds::ProduceTextureCHROMIUMImmediate
* c
=
2555 GetImmediateCmdSpaceTotalSize
<
2556 gles2::cmds::ProduceTextureCHROMIUMImmediate
>(size
);
2558 c
->Init(target
, mailbox
);
2562 void ProduceTextureDirectCHROMIUMImmediate(GLuint texture
,
2564 const GLbyte
* mailbox
) {
2565 const uint32_t size
=
2566 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate::ComputeSize();
2567 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate
* c
=
2568 GetImmediateCmdSpaceTotalSize
<
2569 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate
>(size
);
2571 c
->Init(texture
, target
, mailbox
);
2575 void ConsumeTextureCHROMIUMImmediate(GLenum target
, const GLbyte
* mailbox
) {
2576 const uint32_t size
=
2577 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
2578 gles2::cmds::ConsumeTextureCHROMIUMImmediate
* c
=
2579 GetImmediateCmdSpaceTotalSize
<
2580 gles2::cmds::ConsumeTextureCHROMIUMImmediate
>(size
);
2582 c
->Init(target
, mailbox
);
2586 void BindUniformLocationCHROMIUMBucket(GLuint program
,
2588 uint32_t name_bucket_id
) {
2589 gles2::cmds::BindUniformLocationCHROMIUMBucket
* c
=
2590 GetCmdSpace
<gles2::cmds::BindUniformLocationCHROMIUMBucket
>();
2592 c
->Init(program
, location
, name_bucket_id
);
2596 void GenValuebuffersCHROMIUMImmediate(GLsizei n
, GLuint
* buffers
) {
2597 const uint32_t size
=
2598 gles2::cmds::GenValuebuffersCHROMIUMImmediate::ComputeSize(n
);
2599 gles2::cmds::GenValuebuffersCHROMIUMImmediate
* c
=
2600 GetImmediateCmdSpaceTotalSize
<
2601 gles2::cmds::GenValuebuffersCHROMIUMImmediate
>(size
);
2603 c
->Init(n
, buffers
);
2607 void DeleteValuebuffersCHROMIUMImmediate(GLsizei n
,
2608 const GLuint
* valuebuffers
) {
2609 const uint32_t size
=
2610 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate::ComputeSize(n
);
2611 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate
* c
=
2612 GetImmediateCmdSpaceTotalSize
<
2613 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate
>(size
);
2615 c
->Init(n
, valuebuffers
);
2619 void IsValuebufferCHROMIUM(GLuint valuebuffer
,
2620 uint32_t result_shm_id
,
2621 uint32_t result_shm_offset
) {
2622 gles2::cmds::IsValuebufferCHROMIUM
* c
=
2623 GetCmdSpace
<gles2::cmds::IsValuebufferCHROMIUM
>();
2625 c
->Init(valuebuffer
, result_shm_id
, result_shm_offset
);
2629 void BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) {
2630 gles2::cmds::BindValuebufferCHROMIUM
* c
=
2631 GetCmdSpace
<gles2::cmds::BindValuebufferCHROMIUM
>();
2633 c
->Init(target
, valuebuffer
);
2637 void SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) {
2638 gles2::cmds::SubscribeValueCHROMIUM
* c
=
2639 GetCmdSpace
<gles2::cmds::SubscribeValueCHROMIUM
>();
2641 c
->Init(target
, subscription
);
2645 void PopulateSubscribedValuesCHROMIUM(GLenum target
) {
2646 gles2::cmds::PopulateSubscribedValuesCHROMIUM
* c
=
2647 GetCmdSpace
<gles2::cmds::PopulateSubscribedValuesCHROMIUM
>();
2653 void UniformValuebufferCHROMIUM(GLint location
,
2655 GLenum subscription
) {
2656 gles2::cmds::UniformValuebufferCHROMIUM
* c
=
2657 GetCmdSpace
<gles2::cmds::UniformValuebufferCHROMIUM
>();
2659 c
->Init(location
, target
, subscription
);
2663 void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
2664 gles2::cmds::BindTexImage2DCHROMIUM
* c
=
2665 GetCmdSpace
<gles2::cmds::BindTexImage2DCHROMIUM
>();
2667 c
->Init(target
, imageId
);
2671 void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
2672 gles2::cmds::ReleaseTexImage2DCHROMIUM
* c
=
2673 GetCmdSpace
<gles2::cmds::ReleaseTexImage2DCHROMIUM
>();
2675 c
->Init(target
, imageId
);
2679 void TraceBeginCHROMIUM(GLuint category_bucket_id
, GLuint name_bucket_id
) {
2680 gles2::cmds::TraceBeginCHROMIUM
* c
=
2681 GetCmdSpace
<gles2::cmds::TraceBeginCHROMIUM
>();
2683 c
->Init(category_bucket_id
, name_bucket_id
);
2687 void TraceEndCHROMIUM() {
2688 gles2::cmds::TraceEndCHROMIUM
* c
=
2689 GetCmdSpace
<gles2::cmds::TraceEndCHROMIUM
>();
2695 void AsyncTexSubImage2DCHROMIUM(GLenum target
,
2703 uint32_t data_shm_id
,
2704 uint32_t data_shm_offset
,
2705 uint32_t async_upload_token
,
2706 uint32_t sync_data_shm_id
,
2707 uint32_t sync_data_shm_offset
) {
2708 gles2::cmds::AsyncTexSubImage2DCHROMIUM
* c
=
2709 GetCmdSpace
<gles2::cmds::AsyncTexSubImage2DCHROMIUM
>();
2711 c
->Init(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
2712 data_shm_id
, data_shm_offset
, async_upload_token
, sync_data_shm_id
,
2713 sync_data_shm_offset
);
2717 void AsyncTexImage2DCHROMIUM(GLenum target
,
2719 GLint internalformat
,
2724 uint32_t pixels_shm_id
,
2725 uint32_t pixels_shm_offset
,
2726 uint32_t async_upload_token
,
2727 uint32_t sync_data_shm_id
,
2728 uint32_t sync_data_shm_offset
) {
2729 gles2::cmds::AsyncTexImage2DCHROMIUM
* c
=
2730 GetCmdSpace
<gles2::cmds::AsyncTexImage2DCHROMIUM
>();
2732 c
->Init(target
, level
, internalformat
, width
, height
, format
, type
,
2733 pixels_shm_id
, pixels_shm_offset
, async_upload_token
,
2734 sync_data_shm_id
, sync_data_shm_offset
);
2738 void WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
2739 gles2::cmds::WaitAsyncTexImage2DCHROMIUM
* c
=
2740 GetCmdSpace
<gles2::cmds::WaitAsyncTexImage2DCHROMIUM
>();
2746 void WaitAllAsyncTexImage2DCHROMIUM() {
2747 gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM
* c
=
2748 GetCmdSpace
<gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM
>();
2754 void DiscardFramebufferEXTImmediate(GLenum target
,
2756 const GLenum
* attachments
) {
2757 const uint32_t size
=
2758 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count
);
2759 gles2::cmds::DiscardFramebufferEXTImmediate
* c
=
2760 GetImmediateCmdSpaceTotalSize
<
2761 gles2::cmds::DiscardFramebufferEXTImmediate
>(size
);
2763 c
->Init(target
, count
, attachments
);
2767 void LoseContextCHROMIUM(GLenum current
, GLenum other
) {
2768 gles2::cmds::LoseContextCHROMIUM
* c
=
2769 GetCmdSpace
<gles2::cmds::LoseContextCHROMIUM
>();
2771 c
->Init(current
, other
);
2775 void WaitSyncPointCHROMIUM(GLuint sync_point
) {
2776 gles2::cmds::WaitSyncPointCHROMIUM
* c
=
2777 GetCmdSpace
<gles2::cmds::WaitSyncPointCHROMIUM
>();
2779 c
->Init(sync_point
);
2783 void DrawBuffersEXTImmediate(GLsizei count
, const GLenum
* bufs
) {
2784 const uint32_t size
=
2785 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count
);
2786 gles2::cmds::DrawBuffersEXTImmediate
* c
=
2787 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DrawBuffersEXTImmediate
>(size
);
2789 c
->Init(count
, bufs
);
2793 void DiscardBackbufferCHROMIUM() {
2794 gles2::cmds::DiscardBackbufferCHROMIUM
* c
=
2795 GetCmdSpace
<gles2::cmds::DiscardBackbufferCHROMIUM
>();
2801 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
2802 GLenum plane_transform
,
2803 GLuint overlay_texture_id
,
2807 GLint bounds_height
,
2811 GLfloat uv_height
) {
2812 gles2::cmds::ScheduleOverlayPlaneCHROMIUM
* c
=
2813 GetCmdSpace
<gles2::cmds::ScheduleOverlayPlaneCHROMIUM
>();
2815 c
->Init(plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
,
2816 bounds_y
, bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
,
2821 void SwapInterval(GLint interval
) {
2822 gles2::cmds::SwapInterval
* c
= GetCmdSpace
<gles2::cmds::SwapInterval
>();
2828 void FlushDriverCachesCHROMIUM() {
2829 gles2::cmds::FlushDriverCachesCHROMIUM
* c
=
2830 GetCmdSpace
<gles2::cmds::FlushDriverCachesCHROMIUM
>();
2836 void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode
, const GLfloat
* m
) {
2837 const uint32_t size
=
2838 gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize();
2839 gles2::cmds::MatrixLoadfCHROMIUMImmediate
* c
=
2840 GetImmediateCmdSpaceTotalSize
<gles2::cmds::MatrixLoadfCHROMIUMImmediate
>(
2843 c
->Init(matrixMode
, m
);
2847 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
2848 gles2::cmds::MatrixLoadIdentityCHROMIUM
* c
=
2849 GetCmdSpace
<gles2::cmds::MatrixLoadIdentityCHROMIUM
>();
2851 c
->Init(matrixMode
);
2855 void GenPathsCHROMIUM(GLuint first_client_id
, GLsizei range
) {
2856 gles2::cmds::GenPathsCHROMIUM
* c
=
2857 GetCmdSpace
<gles2::cmds::GenPathsCHROMIUM
>();
2859 c
->Init(first_client_id
, range
);
2863 void DeletePathsCHROMIUM(GLuint first_client_id
, GLsizei range
) {
2864 gles2::cmds::DeletePathsCHROMIUM
* c
=
2865 GetCmdSpace
<gles2::cmds::DeletePathsCHROMIUM
>();
2867 c
->Init(first_client_id
, range
);
2871 void IsPathCHROMIUM(GLuint path
,
2872 uint32_t result_shm_id
,
2873 uint32_t result_shm_offset
) {
2874 gles2::cmds::IsPathCHROMIUM
* c
= GetCmdSpace
<gles2::cmds::IsPathCHROMIUM
>();
2876 c
->Init(path
, result_shm_id
, result_shm_offset
);
2880 void PathCommandsCHROMIUM(GLuint path
,
2881 GLsizei numCommands
,
2882 uint32_t commands_shm_id
,
2883 uint32_t commands_shm_offset
,
2886 uint32_t coords_shm_id
,
2887 uint32_t coords_shm_offset
) {
2888 gles2::cmds::PathCommandsCHROMIUM
* c
=
2889 GetCmdSpace
<gles2::cmds::PathCommandsCHROMIUM
>();
2891 c
->Init(path
, numCommands
, commands_shm_id
, commands_shm_offset
, numCoords
,
2892 coordType
, coords_shm_id
, coords_shm_offset
);
2896 void PathParameterfCHROMIUM(GLuint path
, GLenum pname
, GLfloat value
) {
2897 gles2::cmds::PathParameterfCHROMIUM
* c
=
2898 GetCmdSpace
<gles2::cmds::PathParameterfCHROMIUM
>();
2900 c
->Init(path
, pname
, value
);
2904 void PathParameteriCHROMIUM(GLuint path
, GLenum pname
, GLint value
) {
2905 gles2::cmds::PathParameteriCHROMIUM
* c
=
2906 GetCmdSpace
<gles2::cmds::PathParameteriCHROMIUM
>();
2908 c
->Init(path
, pname
, value
);
2912 void PathStencilFuncCHROMIUM(GLenum func
, GLint ref
, GLuint mask
) {
2913 gles2::cmds::PathStencilFuncCHROMIUM
* c
=
2914 GetCmdSpace
<gles2::cmds::PathStencilFuncCHROMIUM
>();
2916 c
->Init(func
, ref
, mask
);
2920 void StencilFillPathCHROMIUM(GLuint path
, GLenum fillMode
, GLuint mask
) {
2921 gles2::cmds::StencilFillPathCHROMIUM
* c
=
2922 GetCmdSpace
<gles2::cmds::StencilFillPathCHROMIUM
>();
2924 c
->Init(path
, fillMode
, mask
);
2928 void StencilStrokePathCHROMIUM(GLuint path
, GLint reference
, GLuint mask
) {
2929 gles2::cmds::StencilStrokePathCHROMIUM
* c
=
2930 GetCmdSpace
<gles2::cmds::StencilStrokePathCHROMIUM
>();
2932 c
->Init(path
, reference
, mask
);
2936 void CoverFillPathCHROMIUM(GLuint path
, GLenum coverMode
) {
2937 gles2::cmds::CoverFillPathCHROMIUM
* c
=
2938 GetCmdSpace
<gles2::cmds::CoverFillPathCHROMIUM
>();
2940 c
->Init(path
, coverMode
);
2944 void CoverStrokePathCHROMIUM(GLuint path
, GLenum coverMode
) {
2945 gles2::cmds::CoverStrokePathCHROMIUM
* c
=
2946 GetCmdSpace
<gles2::cmds::CoverStrokePathCHROMIUM
>();
2948 c
->Init(path
, coverMode
);
2952 void StencilThenCoverFillPathCHROMIUM(GLuint path
,
2956 gles2::cmds::StencilThenCoverFillPathCHROMIUM
* c
=
2957 GetCmdSpace
<gles2::cmds::StencilThenCoverFillPathCHROMIUM
>();
2959 c
->Init(path
, fillMode
, mask
, coverMode
);
2963 void StencilThenCoverStrokePathCHROMIUM(GLuint path
,
2967 gles2::cmds::StencilThenCoverStrokePathCHROMIUM
* c
=
2968 GetCmdSpace
<gles2::cmds::StencilThenCoverStrokePathCHROMIUM
>();
2970 c
->Init(path
, reference
, mask
, coverMode
);
2974 void BlendBarrierKHR() {
2975 gles2::cmds::BlendBarrierKHR
* c
= GetCmdSpace
<gles2::cmds::BlendBarrierKHR
>();
2981 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_