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 GetBufferParameteri64v(GLenum target
,
857 uint32_t params_shm_id
,
858 uint32_t params_shm_offset
) {
859 gles2::cmds::GetBufferParameteri64v
* c
=
860 GetCmdSpace
<gles2::cmds::GetBufferParameteri64v
>();
862 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
866 void GetBufferParameteriv(GLenum target
,
868 uint32_t params_shm_id
,
869 uint32_t params_shm_offset
) {
870 gles2::cmds::GetBufferParameteriv
* c
=
871 GetCmdSpace
<gles2::cmds::GetBufferParameteriv
>();
873 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
877 void GetError(uint32_t result_shm_id
, uint32_t result_shm_offset
) {
878 gles2::cmds::GetError
* c
= GetCmdSpace
<gles2::cmds::GetError
>();
880 c
->Init(result_shm_id
, result_shm_offset
);
884 void GetFloatv(GLenum pname
,
885 uint32_t params_shm_id
,
886 uint32_t params_shm_offset
) {
887 gles2::cmds::GetFloatv
* c
= GetCmdSpace
<gles2::cmds::GetFloatv
>();
889 c
->Init(pname
, params_shm_id
, params_shm_offset
);
893 void GetFragDataLocation(GLuint program
,
894 uint32_t name_bucket_id
,
895 uint32_t location_shm_id
,
896 uint32_t location_shm_offset
) {
897 gles2::cmds::GetFragDataLocation
* c
=
898 GetCmdSpace
<gles2::cmds::GetFragDataLocation
>();
900 c
->Init(program
, name_bucket_id
, location_shm_id
, location_shm_offset
);
904 void GetFramebufferAttachmentParameteriv(GLenum target
,
907 uint32_t params_shm_id
,
908 uint32_t params_shm_offset
) {
909 gles2::cmds::GetFramebufferAttachmentParameteriv
* c
=
910 GetCmdSpace
<gles2::cmds::GetFramebufferAttachmentParameteriv
>();
912 c
->Init(target
, attachment
, pname
, params_shm_id
, params_shm_offset
);
916 void GetInteger64v(GLenum pname
,
917 uint32_t params_shm_id
,
918 uint32_t params_shm_offset
) {
919 gles2::cmds::GetInteger64v
* c
= GetCmdSpace
<gles2::cmds::GetInteger64v
>();
921 c
->Init(pname
, params_shm_id
, params_shm_offset
);
925 void GetIntegeri_v(GLenum pname
,
927 uint32_t data_shm_id
,
928 uint32_t data_shm_offset
) {
929 gles2::cmds::GetIntegeri_v
* c
= GetCmdSpace
<gles2::cmds::GetIntegeri_v
>();
931 c
->Init(pname
, index
, data_shm_id
, data_shm_offset
);
935 void GetInteger64i_v(GLenum pname
,
937 uint32_t data_shm_id
,
938 uint32_t data_shm_offset
) {
939 gles2::cmds::GetInteger64i_v
* c
= GetCmdSpace
<gles2::cmds::GetInteger64i_v
>();
941 c
->Init(pname
, index
, data_shm_id
, data_shm_offset
);
945 void GetIntegerv(GLenum pname
,
946 uint32_t params_shm_id
,
947 uint32_t params_shm_offset
) {
948 gles2::cmds::GetIntegerv
* c
= GetCmdSpace
<gles2::cmds::GetIntegerv
>();
950 c
->Init(pname
, params_shm_id
, params_shm_offset
);
954 void GetInternalformativ(GLenum target
,
957 uint32_t params_shm_id
,
958 uint32_t params_shm_offset
) {
959 gles2::cmds::GetInternalformativ
* c
=
960 GetCmdSpace
<gles2::cmds::GetInternalformativ
>();
962 c
->Init(target
, format
, pname
, params_shm_id
, params_shm_offset
);
966 void GetProgramiv(GLuint program
,
968 uint32_t params_shm_id
,
969 uint32_t params_shm_offset
) {
970 gles2::cmds::GetProgramiv
* c
= GetCmdSpace
<gles2::cmds::GetProgramiv
>();
972 c
->Init(program
, pname
, params_shm_id
, params_shm_offset
);
976 void GetProgramInfoLog(GLuint program
, uint32_t bucket_id
) {
977 gles2::cmds::GetProgramInfoLog
* c
=
978 GetCmdSpace
<gles2::cmds::GetProgramInfoLog
>();
980 c
->Init(program
, bucket_id
);
984 void GetRenderbufferParameteriv(GLenum target
,
986 uint32_t params_shm_id
,
987 uint32_t params_shm_offset
) {
988 gles2::cmds::GetRenderbufferParameteriv
* c
=
989 GetCmdSpace
<gles2::cmds::GetRenderbufferParameteriv
>();
991 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
995 void GetSamplerParameterfv(GLuint sampler
,
997 uint32_t params_shm_id
,
998 uint32_t params_shm_offset
) {
999 gles2::cmds::GetSamplerParameterfv
* c
=
1000 GetCmdSpace
<gles2::cmds::GetSamplerParameterfv
>();
1002 c
->Init(sampler
, pname
, params_shm_id
, params_shm_offset
);
1006 void GetSamplerParameteriv(GLuint sampler
,
1008 uint32_t params_shm_id
,
1009 uint32_t params_shm_offset
) {
1010 gles2::cmds::GetSamplerParameteriv
* c
=
1011 GetCmdSpace
<gles2::cmds::GetSamplerParameteriv
>();
1013 c
->Init(sampler
, pname
, params_shm_id
, params_shm_offset
);
1017 void GetShaderiv(GLuint shader
,
1019 uint32_t params_shm_id
,
1020 uint32_t params_shm_offset
) {
1021 gles2::cmds::GetShaderiv
* c
= GetCmdSpace
<gles2::cmds::GetShaderiv
>();
1023 c
->Init(shader
, pname
, params_shm_id
, params_shm_offset
);
1027 void GetShaderInfoLog(GLuint shader
, uint32_t bucket_id
) {
1028 gles2::cmds::GetShaderInfoLog
* c
=
1029 GetCmdSpace
<gles2::cmds::GetShaderInfoLog
>();
1031 c
->Init(shader
, bucket_id
);
1035 void GetShaderPrecisionFormat(GLenum shadertype
,
1036 GLenum precisiontype
,
1037 uint32_t result_shm_id
,
1038 uint32_t result_shm_offset
) {
1039 gles2::cmds::GetShaderPrecisionFormat
* c
=
1040 GetCmdSpace
<gles2::cmds::GetShaderPrecisionFormat
>();
1042 c
->Init(shadertype
, precisiontype
, result_shm_id
, result_shm_offset
);
1046 void GetShaderSource(GLuint shader
, uint32_t bucket_id
) {
1047 gles2::cmds::GetShaderSource
* c
= GetCmdSpace
<gles2::cmds::GetShaderSource
>();
1049 c
->Init(shader
, bucket_id
);
1053 void GetString(GLenum name
, uint32_t bucket_id
) {
1054 gles2::cmds::GetString
* c
= GetCmdSpace
<gles2::cmds::GetString
>();
1056 c
->Init(name
, bucket_id
);
1060 void GetSynciv(GLuint sync
,
1062 uint32_t values_shm_id
,
1063 uint32_t values_shm_offset
) {
1064 gles2::cmds::GetSynciv
* c
= GetCmdSpace
<gles2::cmds::GetSynciv
>();
1066 c
->Init(sync
, pname
, values_shm_id
, values_shm_offset
);
1070 void GetTexParameterfv(GLenum target
,
1072 uint32_t params_shm_id
,
1073 uint32_t params_shm_offset
) {
1074 gles2::cmds::GetTexParameterfv
* c
=
1075 GetCmdSpace
<gles2::cmds::GetTexParameterfv
>();
1077 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
1081 void GetTexParameteriv(GLenum target
,
1083 uint32_t params_shm_id
,
1084 uint32_t params_shm_offset
) {
1085 gles2::cmds::GetTexParameteriv
* c
=
1086 GetCmdSpace
<gles2::cmds::GetTexParameteriv
>();
1088 c
->Init(target
, pname
, params_shm_id
, params_shm_offset
);
1092 void GetTransformFeedbackVarying(GLuint program
,
1094 uint32_t name_bucket_id
,
1095 uint32_t result_shm_id
,
1096 uint32_t result_shm_offset
) {
1097 gles2::cmds::GetTransformFeedbackVarying
* c
=
1098 GetCmdSpace
<gles2::cmds::GetTransformFeedbackVarying
>();
1100 c
->Init(program
, index
, name_bucket_id
, result_shm_id
, result_shm_offset
);
1104 void GetUniformBlockIndex(GLuint program
,
1105 uint32_t name_bucket_id
,
1106 uint32_t index_shm_id
,
1107 uint32_t index_shm_offset
) {
1108 gles2::cmds::GetUniformBlockIndex
* c
=
1109 GetCmdSpace
<gles2::cmds::GetUniformBlockIndex
>();
1111 c
->Init(program
, name_bucket_id
, index_shm_id
, index_shm_offset
);
1115 void GetUniformfv(GLuint program
,
1117 uint32_t params_shm_id
,
1118 uint32_t params_shm_offset
) {
1119 gles2::cmds::GetUniformfv
* c
= GetCmdSpace
<gles2::cmds::GetUniformfv
>();
1121 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
1125 void GetUniformiv(GLuint program
,
1127 uint32_t params_shm_id
,
1128 uint32_t params_shm_offset
) {
1129 gles2::cmds::GetUniformiv
* c
= GetCmdSpace
<gles2::cmds::GetUniformiv
>();
1131 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
1135 void GetUniformuiv(GLuint program
,
1137 uint32_t params_shm_id
,
1138 uint32_t params_shm_offset
) {
1139 gles2::cmds::GetUniformuiv
* c
= GetCmdSpace
<gles2::cmds::GetUniformuiv
>();
1141 c
->Init(program
, location
, params_shm_id
, params_shm_offset
);
1145 void GetUniformIndices(GLuint program
,
1146 uint32_t names_bucket_id
,
1147 uint32_t indices_shm_id
,
1148 uint32_t indices_shm_offset
) {
1149 gles2::cmds::GetUniformIndices
* c
=
1150 GetCmdSpace
<gles2::cmds::GetUniformIndices
>();
1152 c
->Init(program
, names_bucket_id
, indices_shm_id
, indices_shm_offset
);
1156 void GetUniformLocation(GLuint program
,
1157 uint32_t name_bucket_id
,
1158 uint32_t location_shm_id
,
1159 uint32_t location_shm_offset
) {
1160 gles2::cmds::GetUniformLocation
* c
=
1161 GetCmdSpace
<gles2::cmds::GetUniformLocation
>();
1163 c
->Init(program
, name_bucket_id
, location_shm_id
, location_shm_offset
);
1167 void GetVertexAttribfv(GLuint index
,
1169 uint32_t params_shm_id
,
1170 uint32_t params_shm_offset
) {
1171 gles2::cmds::GetVertexAttribfv
* c
=
1172 GetCmdSpace
<gles2::cmds::GetVertexAttribfv
>();
1174 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
1178 void GetVertexAttribiv(GLuint index
,
1180 uint32_t params_shm_id
,
1181 uint32_t params_shm_offset
) {
1182 gles2::cmds::GetVertexAttribiv
* c
=
1183 GetCmdSpace
<gles2::cmds::GetVertexAttribiv
>();
1185 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
1189 void GetVertexAttribIiv(GLuint index
,
1191 uint32_t params_shm_id
,
1192 uint32_t params_shm_offset
) {
1193 gles2::cmds::GetVertexAttribIiv
* c
=
1194 GetCmdSpace
<gles2::cmds::GetVertexAttribIiv
>();
1196 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
1200 void GetVertexAttribIuiv(GLuint index
,
1202 uint32_t params_shm_id
,
1203 uint32_t params_shm_offset
) {
1204 gles2::cmds::GetVertexAttribIuiv
* c
=
1205 GetCmdSpace
<gles2::cmds::GetVertexAttribIuiv
>();
1207 c
->Init(index
, pname
, params_shm_id
, params_shm_offset
);
1211 void GetVertexAttribPointerv(GLuint index
,
1213 uint32_t pointer_shm_id
,
1214 uint32_t pointer_shm_offset
) {
1215 gles2::cmds::GetVertexAttribPointerv
* c
=
1216 GetCmdSpace
<gles2::cmds::GetVertexAttribPointerv
>();
1218 c
->Init(index
, pname
, pointer_shm_id
, pointer_shm_offset
);
1222 void Hint(GLenum target
, GLenum mode
) {
1223 gles2::cmds::Hint
* c
= GetCmdSpace
<gles2::cmds::Hint
>();
1225 c
->Init(target
, mode
);
1229 void InvalidateFramebufferImmediate(GLenum target
,
1231 const GLenum
* attachments
) {
1232 const uint32_t size
=
1233 gles2::cmds::InvalidateFramebufferImmediate::ComputeSize(count
);
1234 gles2::cmds::InvalidateFramebufferImmediate
* c
=
1235 GetImmediateCmdSpaceTotalSize
<
1236 gles2::cmds::InvalidateFramebufferImmediate
>(size
);
1238 c
->Init(target
, count
, attachments
);
1242 void InvalidateSubFramebufferImmediate(GLenum target
,
1244 const GLenum
* attachments
,
1249 const uint32_t size
=
1250 gles2::cmds::InvalidateSubFramebufferImmediate::ComputeSize(count
);
1251 gles2::cmds::InvalidateSubFramebufferImmediate
* c
=
1252 GetImmediateCmdSpaceTotalSize
<
1253 gles2::cmds::InvalidateSubFramebufferImmediate
>(size
);
1255 c
->Init(target
, count
, attachments
, x
, y
, width
, height
);
1259 void IsBuffer(GLuint buffer
,
1260 uint32_t result_shm_id
,
1261 uint32_t result_shm_offset
) {
1262 gles2::cmds::IsBuffer
* c
= GetCmdSpace
<gles2::cmds::IsBuffer
>();
1264 c
->Init(buffer
, result_shm_id
, result_shm_offset
);
1268 void IsEnabled(GLenum cap
, uint32_t result_shm_id
, uint32_t result_shm_offset
) {
1269 gles2::cmds::IsEnabled
* c
= GetCmdSpace
<gles2::cmds::IsEnabled
>();
1271 c
->Init(cap
, result_shm_id
, result_shm_offset
);
1275 void IsFramebuffer(GLuint framebuffer
,
1276 uint32_t result_shm_id
,
1277 uint32_t result_shm_offset
) {
1278 gles2::cmds::IsFramebuffer
* c
= GetCmdSpace
<gles2::cmds::IsFramebuffer
>();
1280 c
->Init(framebuffer
, result_shm_id
, result_shm_offset
);
1284 void IsProgram(GLuint program
,
1285 uint32_t result_shm_id
,
1286 uint32_t result_shm_offset
) {
1287 gles2::cmds::IsProgram
* c
= GetCmdSpace
<gles2::cmds::IsProgram
>();
1289 c
->Init(program
, result_shm_id
, result_shm_offset
);
1293 void IsRenderbuffer(GLuint renderbuffer
,
1294 uint32_t result_shm_id
,
1295 uint32_t result_shm_offset
) {
1296 gles2::cmds::IsRenderbuffer
* c
= GetCmdSpace
<gles2::cmds::IsRenderbuffer
>();
1298 c
->Init(renderbuffer
, result_shm_id
, result_shm_offset
);
1302 void IsSampler(GLuint sampler
,
1303 uint32_t result_shm_id
,
1304 uint32_t result_shm_offset
) {
1305 gles2::cmds::IsSampler
* c
= GetCmdSpace
<gles2::cmds::IsSampler
>();
1307 c
->Init(sampler
, result_shm_id
, result_shm_offset
);
1311 void IsShader(GLuint shader
,
1312 uint32_t result_shm_id
,
1313 uint32_t result_shm_offset
) {
1314 gles2::cmds::IsShader
* c
= GetCmdSpace
<gles2::cmds::IsShader
>();
1316 c
->Init(shader
, result_shm_id
, result_shm_offset
);
1320 void IsSync(GLuint sync
, uint32_t result_shm_id
, uint32_t result_shm_offset
) {
1321 gles2::cmds::IsSync
* c
= GetCmdSpace
<gles2::cmds::IsSync
>();
1323 c
->Init(sync
, result_shm_id
, result_shm_offset
);
1327 void IsTexture(GLuint texture
,
1328 uint32_t result_shm_id
,
1329 uint32_t result_shm_offset
) {
1330 gles2::cmds::IsTexture
* c
= GetCmdSpace
<gles2::cmds::IsTexture
>();
1332 c
->Init(texture
, result_shm_id
, result_shm_offset
);
1336 void IsTransformFeedback(GLuint transformfeedback
,
1337 uint32_t result_shm_id
,
1338 uint32_t result_shm_offset
) {
1339 gles2::cmds::IsTransformFeedback
* c
=
1340 GetCmdSpace
<gles2::cmds::IsTransformFeedback
>();
1342 c
->Init(transformfeedback
, result_shm_id
, result_shm_offset
);
1346 void LineWidth(GLfloat width
) {
1347 gles2::cmds::LineWidth
* c
= GetCmdSpace
<gles2::cmds::LineWidth
>();
1353 void LinkProgram(GLuint program
) {
1354 gles2::cmds::LinkProgram
* c
= GetCmdSpace
<gles2::cmds::LinkProgram
>();
1360 void PauseTransformFeedback() {
1361 gles2::cmds::PauseTransformFeedback
* c
=
1362 GetCmdSpace
<gles2::cmds::PauseTransformFeedback
>();
1368 void PixelStorei(GLenum pname
, GLint param
) {
1369 gles2::cmds::PixelStorei
* c
= GetCmdSpace
<gles2::cmds::PixelStorei
>();
1371 c
->Init(pname
, param
);
1375 void PolygonOffset(GLfloat factor
, GLfloat units
) {
1376 gles2::cmds::PolygonOffset
* c
= GetCmdSpace
<gles2::cmds::PolygonOffset
>();
1378 c
->Init(factor
, units
);
1382 void ReadBuffer(GLenum src
) {
1383 gles2::cmds::ReadBuffer
* c
= GetCmdSpace
<gles2::cmds::ReadBuffer
>();
1389 void ReadPixels(GLint x
,
1395 uint32_t pixels_shm_id
,
1396 uint32_t pixels_shm_offset
,
1397 uint32_t result_shm_id
,
1398 uint32_t result_shm_offset
,
1400 gles2::cmds::ReadPixels
* c
= GetCmdSpace
<gles2::cmds::ReadPixels
>();
1402 c
->Init(x
, y
, width
, height
, format
, type
, pixels_shm_id
, pixels_shm_offset
,
1403 result_shm_id
, result_shm_offset
, async
);
1407 void ReleaseShaderCompiler() {
1408 gles2::cmds::ReleaseShaderCompiler
* c
=
1409 GetCmdSpace
<gles2::cmds::ReleaseShaderCompiler
>();
1415 void RenderbufferStorage(GLenum target
,
1416 GLenum internalformat
,
1419 gles2::cmds::RenderbufferStorage
* c
=
1420 GetCmdSpace
<gles2::cmds::RenderbufferStorage
>();
1422 c
->Init(target
, internalformat
, width
, height
);
1426 void ResumeTransformFeedback() {
1427 gles2::cmds::ResumeTransformFeedback
* c
=
1428 GetCmdSpace
<gles2::cmds::ResumeTransformFeedback
>();
1434 void SampleCoverage(GLclampf value
, GLboolean invert
) {
1435 gles2::cmds::SampleCoverage
* c
= GetCmdSpace
<gles2::cmds::SampleCoverage
>();
1437 c
->Init(value
, invert
);
1441 void SamplerParameterf(GLuint sampler
, GLenum pname
, GLfloat param
) {
1442 gles2::cmds::SamplerParameterf
* c
=
1443 GetCmdSpace
<gles2::cmds::SamplerParameterf
>();
1445 c
->Init(sampler
, pname
, param
);
1449 void SamplerParameterfvImmediate(GLuint sampler
,
1451 const GLfloat
* params
) {
1452 const uint32_t size
= gles2::cmds::SamplerParameterfvImmediate::ComputeSize();
1453 gles2::cmds::SamplerParameterfvImmediate
* c
=
1454 GetImmediateCmdSpaceTotalSize
<gles2::cmds::SamplerParameterfvImmediate
>(
1457 c
->Init(sampler
, pname
, params
);
1461 void SamplerParameteri(GLuint sampler
, GLenum pname
, GLint param
) {
1462 gles2::cmds::SamplerParameteri
* c
=
1463 GetCmdSpace
<gles2::cmds::SamplerParameteri
>();
1465 c
->Init(sampler
, pname
, param
);
1469 void SamplerParameterivImmediate(GLuint sampler
,
1471 const GLint
* params
) {
1472 const uint32_t size
= gles2::cmds::SamplerParameterivImmediate::ComputeSize();
1473 gles2::cmds::SamplerParameterivImmediate
* c
=
1474 GetImmediateCmdSpaceTotalSize
<gles2::cmds::SamplerParameterivImmediate
>(
1477 c
->Init(sampler
, pname
, params
);
1481 void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
1482 gles2::cmds::Scissor
* c
= GetCmdSpace
<gles2::cmds::Scissor
>();
1484 c
->Init(x
, y
, width
, height
);
1488 void ShaderBinary(GLsizei n
,
1489 uint32_t shaders_shm_id
,
1490 uint32_t shaders_shm_offset
,
1491 GLenum binaryformat
,
1492 uint32_t binary_shm_id
,
1493 uint32_t binary_shm_offset
,
1495 gles2::cmds::ShaderBinary
* c
= GetCmdSpace
<gles2::cmds::ShaderBinary
>();
1497 c
->Init(n
, shaders_shm_id
, shaders_shm_offset
, binaryformat
, binary_shm_id
,
1498 binary_shm_offset
, length
);
1502 void ShaderSourceBucket(GLuint shader
, uint32_t str_bucket_id
) {
1503 gles2::cmds::ShaderSourceBucket
* c
=
1504 GetCmdSpace
<gles2::cmds::ShaderSourceBucket
>();
1506 c
->Init(shader
, str_bucket_id
);
1510 void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
1511 gles2::cmds::StencilFunc
* c
= GetCmdSpace
<gles2::cmds::StencilFunc
>();
1513 c
->Init(func
, ref
, mask
);
1517 void StencilFuncSeparate(GLenum face
, GLenum func
, GLint ref
, GLuint mask
) {
1518 gles2::cmds::StencilFuncSeparate
* c
=
1519 GetCmdSpace
<gles2::cmds::StencilFuncSeparate
>();
1521 c
->Init(face
, func
, ref
, mask
);
1525 void StencilMask(GLuint mask
) {
1526 gles2::cmds::StencilMask
* c
= GetCmdSpace
<gles2::cmds::StencilMask
>();
1532 void StencilMaskSeparate(GLenum face
, GLuint mask
) {
1533 gles2::cmds::StencilMaskSeparate
* c
=
1534 GetCmdSpace
<gles2::cmds::StencilMaskSeparate
>();
1536 c
->Init(face
, mask
);
1540 void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
1541 gles2::cmds::StencilOp
* c
= GetCmdSpace
<gles2::cmds::StencilOp
>();
1543 c
->Init(fail
, zfail
, zpass
);
1547 void StencilOpSeparate(GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
) {
1548 gles2::cmds::StencilOpSeparate
* c
=
1549 GetCmdSpace
<gles2::cmds::StencilOpSeparate
>();
1551 c
->Init(face
, fail
, zfail
, zpass
);
1555 void TexImage2D(GLenum target
,
1557 GLint internalformat
,
1562 uint32_t pixels_shm_id
,
1563 uint32_t pixels_shm_offset
) {
1564 gles2::cmds::TexImage2D
* c
= GetCmdSpace
<gles2::cmds::TexImage2D
>();
1566 c
->Init(target
, level
, internalformat
, width
, height
, format
, type
,
1567 pixels_shm_id
, pixels_shm_offset
);
1571 void TexImage3D(GLenum target
,
1573 GLint internalformat
,
1579 uint32_t pixels_shm_id
,
1580 uint32_t pixels_shm_offset
) {
1581 gles2::cmds::TexImage3D
* c
= GetCmdSpace
<gles2::cmds::TexImage3D
>();
1583 c
->Init(target
, level
, internalformat
, width
, height
, depth
, format
, type
,
1584 pixels_shm_id
, pixels_shm_offset
);
1588 void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
1589 gles2::cmds::TexParameterf
* c
= GetCmdSpace
<gles2::cmds::TexParameterf
>();
1591 c
->Init(target
, pname
, param
);
1595 void TexParameterfvImmediate(GLenum target
,
1597 const GLfloat
* params
) {
1598 const uint32_t size
= gles2::cmds::TexParameterfvImmediate::ComputeSize();
1599 gles2::cmds::TexParameterfvImmediate
* c
=
1600 GetImmediateCmdSpaceTotalSize
<gles2::cmds::TexParameterfvImmediate
>(size
);
1602 c
->Init(target
, pname
, params
);
1606 void TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
1607 gles2::cmds::TexParameteri
* c
= GetCmdSpace
<gles2::cmds::TexParameteri
>();
1609 c
->Init(target
, pname
, param
);
1613 void TexParameterivImmediate(GLenum target
, GLenum pname
, const GLint
* params
) {
1614 const uint32_t size
= gles2::cmds::TexParameterivImmediate::ComputeSize();
1615 gles2::cmds::TexParameterivImmediate
* c
=
1616 GetImmediateCmdSpaceTotalSize
<gles2::cmds::TexParameterivImmediate
>(size
);
1618 c
->Init(target
, pname
, params
);
1622 void TexStorage3D(GLenum target
,
1624 GLenum internalFormat
,
1628 gles2::cmds::TexStorage3D
* c
= GetCmdSpace
<gles2::cmds::TexStorage3D
>();
1630 c
->Init(target
, levels
, internalFormat
, width
, height
, depth
);
1634 void TexSubImage2D(GLenum target
,
1642 uint32_t pixels_shm_id
,
1643 uint32_t pixels_shm_offset
,
1644 GLboolean internal
) {
1645 gles2::cmds::TexSubImage2D
* c
= GetCmdSpace
<gles2::cmds::TexSubImage2D
>();
1647 c
->Init(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
1648 pixels_shm_id
, pixels_shm_offset
, internal
);
1652 void TexSubImage3D(GLenum target
,
1662 uint32_t pixels_shm_id
,
1663 uint32_t pixels_shm_offset
,
1664 GLboolean internal
) {
1665 gles2::cmds::TexSubImage3D
* c
= GetCmdSpace
<gles2::cmds::TexSubImage3D
>();
1667 c
->Init(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
,
1668 format
, type
, pixels_shm_id
, pixels_shm_offset
, internal
);
1672 void TransformFeedbackVaryingsBucket(GLuint program
,
1673 uint32_t varyings_bucket_id
,
1674 GLenum buffermode
) {
1675 gles2::cmds::TransformFeedbackVaryingsBucket
* c
=
1676 GetCmdSpace
<gles2::cmds::TransformFeedbackVaryingsBucket
>();
1678 c
->Init(program
, varyings_bucket_id
, buffermode
);
1682 void Uniform1f(GLint location
, GLfloat x
) {
1683 gles2::cmds::Uniform1f
* c
= GetCmdSpace
<gles2::cmds::Uniform1f
>();
1685 c
->Init(location
, x
);
1689 void Uniform1fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1690 const uint32_t size
= gles2::cmds::Uniform1fvImmediate::ComputeSize(count
);
1691 gles2::cmds::Uniform1fvImmediate
* c
=
1692 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1fvImmediate
>(size
);
1694 c
->Init(location
, count
, v
);
1698 void Uniform1i(GLint location
, GLint x
) {
1699 gles2::cmds::Uniform1i
* c
= GetCmdSpace
<gles2::cmds::Uniform1i
>();
1701 c
->Init(location
, x
);
1705 void Uniform1ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1706 const uint32_t size
= gles2::cmds::Uniform1ivImmediate::ComputeSize(count
);
1707 gles2::cmds::Uniform1ivImmediate
* c
=
1708 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1ivImmediate
>(size
);
1710 c
->Init(location
, count
, v
);
1714 void Uniform1ui(GLint location
, GLuint x
) {
1715 gles2::cmds::Uniform1ui
* c
= GetCmdSpace
<gles2::cmds::Uniform1ui
>();
1717 c
->Init(location
, x
);
1721 void Uniform1uivImmediate(GLint location
, GLsizei count
, const GLuint
* v
) {
1722 const uint32_t size
= gles2::cmds::Uniform1uivImmediate::ComputeSize(count
);
1723 gles2::cmds::Uniform1uivImmediate
* c
=
1724 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform1uivImmediate
>(size
);
1726 c
->Init(location
, count
, v
);
1730 void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
1731 gles2::cmds::Uniform2f
* c
= GetCmdSpace
<gles2::cmds::Uniform2f
>();
1733 c
->Init(location
, x
, y
);
1737 void Uniform2fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1738 const uint32_t size
= gles2::cmds::Uniform2fvImmediate::ComputeSize(count
);
1739 gles2::cmds::Uniform2fvImmediate
* c
=
1740 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2fvImmediate
>(size
);
1742 c
->Init(location
, count
, v
);
1746 void Uniform2i(GLint location
, GLint x
, GLint y
) {
1747 gles2::cmds::Uniform2i
* c
= GetCmdSpace
<gles2::cmds::Uniform2i
>();
1749 c
->Init(location
, x
, y
);
1753 void Uniform2ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1754 const uint32_t size
= gles2::cmds::Uniform2ivImmediate::ComputeSize(count
);
1755 gles2::cmds::Uniform2ivImmediate
* c
=
1756 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2ivImmediate
>(size
);
1758 c
->Init(location
, count
, v
);
1762 void Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
1763 gles2::cmds::Uniform2ui
* c
= GetCmdSpace
<gles2::cmds::Uniform2ui
>();
1765 c
->Init(location
, x
, y
);
1769 void Uniform2uivImmediate(GLint location
, GLsizei count
, const GLuint
* v
) {
1770 const uint32_t size
= gles2::cmds::Uniform2uivImmediate::ComputeSize(count
);
1771 gles2::cmds::Uniform2uivImmediate
* c
=
1772 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform2uivImmediate
>(size
);
1774 c
->Init(location
, count
, v
);
1778 void Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
1779 gles2::cmds::Uniform3f
* c
= GetCmdSpace
<gles2::cmds::Uniform3f
>();
1781 c
->Init(location
, x
, y
, z
);
1785 void Uniform3fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1786 const uint32_t size
= gles2::cmds::Uniform3fvImmediate::ComputeSize(count
);
1787 gles2::cmds::Uniform3fvImmediate
* c
=
1788 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3fvImmediate
>(size
);
1790 c
->Init(location
, count
, v
);
1794 void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
1795 gles2::cmds::Uniform3i
* c
= GetCmdSpace
<gles2::cmds::Uniform3i
>();
1797 c
->Init(location
, x
, y
, z
);
1801 void Uniform3ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1802 const uint32_t size
= gles2::cmds::Uniform3ivImmediate::ComputeSize(count
);
1803 gles2::cmds::Uniform3ivImmediate
* c
=
1804 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3ivImmediate
>(size
);
1806 c
->Init(location
, count
, v
);
1810 void Uniform3ui(GLint location
, GLuint x
, GLuint y
, GLuint z
) {
1811 gles2::cmds::Uniform3ui
* c
= GetCmdSpace
<gles2::cmds::Uniform3ui
>();
1813 c
->Init(location
, x
, y
, z
);
1817 void Uniform3uivImmediate(GLint location
, GLsizei count
, const GLuint
* v
) {
1818 const uint32_t size
= gles2::cmds::Uniform3uivImmediate::ComputeSize(count
);
1819 gles2::cmds::Uniform3uivImmediate
* c
=
1820 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform3uivImmediate
>(size
);
1822 c
->Init(location
, count
, v
);
1826 void Uniform4f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
1827 gles2::cmds::Uniform4f
* c
= GetCmdSpace
<gles2::cmds::Uniform4f
>();
1829 c
->Init(location
, x
, y
, z
, w
);
1833 void Uniform4fvImmediate(GLint location
, GLsizei count
, const GLfloat
* v
) {
1834 const uint32_t size
= gles2::cmds::Uniform4fvImmediate::ComputeSize(count
);
1835 gles2::cmds::Uniform4fvImmediate
* c
=
1836 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4fvImmediate
>(size
);
1838 c
->Init(location
, count
, v
);
1842 void Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
1843 gles2::cmds::Uniform4i
* c
= GetCmdSpace
<gles2::cmds::Uniform4i
>();
1845 c
->Init(location
, x
, y
, z
, w
);
1849 void Uniform4ivImmediate(GLint location
, GLsizei count
, const GLint
* v
) {
1850 const uint32_t size
= gles2::cmds::Uniform4ivImmediate::ComputeSize(count
);
1851 gles2::cmds::Uniform4ivImmediate
* c
=
1852 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4ivImmediate
>(size
);
1854 c
->Init(location
, count
, v
);
1858 void Uniform4ui(GLint location
, GLuint x
, GLuint y
, GLuint z
, GLuint w
) {
1859 gles2::cmds::Uniform4ui
* c
= GetCmdSpace
<gles2::cmds::Uniform4ui
>();
1861 c
->Init(location
, x
, y
, z
, w
);
1865 void Uniform4uivImmediate(GLint location
, GLsizei count
, const GLuint
* v
) {
1866 const uint32_t size
= gles2::cmds::Uniform4uivImmediate::ComputeSize(count
);
1867 gles2::cmds::Uniform4uivImmediate
* c
=
1868 GetImmediateCmdSpaceTotalSize
<gles2::cmds::Uniform4uivImmediate
>(size
);
1870 c
->Init(location
, count
, v
);
1874 void UniformBlockBinding(GLuint program
, GLuint index
, GLuint binding
) {
1875 gles2::cmds::UniformBlockBinding
* c
=
1876 GetCmdSpace
<gles2::cmds::UniformBlockBinding
>();
1878 c
->Init(program
, index
, binding
);
1882 void UniformMatrix2fvImmediate(GLint location
,
1884 const GLfloat
* value
) {
1885 const uint32_t size
=
1886 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count
);
1887 gles2::cmds::UniformMatrix2fvImmediate
* c
=
1888 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix2fvImmediate
>(
1891 c
->Init(location
, count
, value
);
1895 void UniformMatrix2x3fvImmediate(GLint location
,
1897 const GLfloat
* value
) {
1898 const uint32_t size
=
1899 gles2::cmds::UniformMatrix2x3fvImmediate::ComputeSize(count
);
1900 gles2::cmds::UniformMatrix2x3fvImmediate
* c
=
1901 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix2x3fvImmediate
>(
1904 c
->Init(location
, count
, value
);
1908 void UniformMatrix2x4fvImmediate(GLint location
,
1910 const GLfloat
* value
) {
1911 const uint32_t size
=
1912 gles2::cmds::UniformMatrix2x4fvImmediate::ComputeSize(count
);
1913 gles2::cmds::UniformMatrix2x4fvImmediate
* c
=
1914 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix2x4fvImmediate
>(
1917 c
->Init(location
, count
, value
);
1921 void UniformMatrix3fvImmediate(GLint location
,
1923 const GLfloat
* value
) {
1924 const uint32_t size
=
1925 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count
);
1926 gles2::cmds::UniformMatrix3fvImmediate
* c
=
1927 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix3fvImmediate
>(
1930 c
->Init(location
, count
, value
);
1934 void UniformMatrix3x2fvImmediate(GLint location
,
1936 const GLfloat
* value
) {
1937 const uint32_t size
=
1938 gles2::cmds::UniformMatrix3x2fvImmediate::ComputeSize(count
);
1939 gles2::cmds::UniformMatrix3x2fvImmediate
* c
=
1940 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix3x2fvImmediate
>(
1943 c
->Init(location
, count
, value
);
1947 void UniformMatrix3x4fvImmediate(GLint location
,
1949 const GLfloat
* value
) {
1950 const uint32_t size
=
1951 gles2::cmds::UniformMatrix3x4fvImmediate::ComputeSize(count
);
1952 gles2::cmds::UniformMatrix3x4fvImmediate
* c
=
1953 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix3x4fvImmediate
>(
1956 c
->Init(location
, count
, value
);
1960 void UniformMatrix4fvImmediate(GLint location
,
1962 const GLfloat
* value
) {
1963 const uint32_t size
=
1964 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count
);
1965 gles2::cmds::UniformMatrix4fvImmediate
* c
=
1966 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix4fvImmediate
>(
1969 c
->Init(location
, count
, value
);
1973 void UniformMatrix4x2fvImmediate(GLint location
,
1975 const GLfloat
* value
) {
1976 const uint32_t size
=
1977 gles2::cmds::UniformMatrix4x2fvImmediate::ComputeSize(count
);
1978 gles2::cmds::UniformMatrix4x2fvImmediate
* c
=
1979 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix4x2fvImmediate
>(
1982 c
->Init(location
, count
, value
);
1986 void UniformMatrix4x3fvImmediate(GLint location
,
1988 const GLfloat
* value
) {
1989 const uint32_t size
=
1990 gles2::cmds::UniformMatrix4x3fvImmediate::ComputeSize(count
);
1991 gles2::cmds::UniformMatrix4x3fvImmediate
* c
=
1992 GetImmediateCmdSpaceTotalSize
<gles2::cmds::UniformMatrix4x3fvImmediate
>(
1995 c
->Init(location
, count
, value
);
1999 void UseProgram(GLuint program
) {
2000 gles2::cmds::UseProgram
* c
= GetCmdSpace
<gles2::cmds::UseProgram
>();
2006 void ValidateProgram(GLuint program
) {
2007 gles2::cmds::ValidateProgram
* c
= GetCmdSpace
<gles2::cmds::ValidateProgram
>();
2013 void VertexAttrib1f(GLuint indx
, GLfloat x
) {
2014 gles2::cmds::VertexAttrib1f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib1f
>();
2020 void VertexAttrib1fvImmediate(GLuint indx
, const GLfloat
* values
) {
2021 const uint32_t size
= gles2::cmds::VertexAttrib1fvImmediate::ComputeSize();
2022 gles2::cmds::VertexAttrib1fvImmediate
* c
=
2023 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib1fvImmediate
>(
2026 c
->Init(indx
, values
);
2030 void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
2031 gles2::cmds::VertexAttrib2f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib2f
>();
2033 c
->Init(indx
, x
, y
);
2037 void VertexAttrib2fvImmediate(GLuint indx
, const GLfloat
* values
) {
2038 const uint32_t size
= gles2::cmds::VertexAttrib2fvImmediate::ComputeSize();
2039 gles2::cmds::VertexAttrib2fvImmediate
* c
=
2040 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib2fvImmediate
>(
2043 c
->Init(indx
, values
);
2047 void VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
2048 gles2::cmds::VertexAttrib3f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib3f
>();
2050 c
->Init(indx
, x
, y
, z
);
2054 void VertexAttrib3fvImmediate(GLuint indx
, const GLfloat
* values
) {
2055 const uint32_t size
= gles2::cmds::VertexAttrib3fvImmediate::ComputeSize();
2056 gles2::cmds::VertexAttrib3fvImmediate
* c
=
2057 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib3fvImmediate
>(
2060 c
->Init(indx
, values
);
2064 void VertexAttrib4f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
2065 gles2::cmds::VertexAttrib4f
* c
= GetCmdSpace
<gles2::cmds::VertexAttrib4f
>();
2067 c
->Init(indx
, x
, y
, z
, w
);
2071 void VertexAttrib4fvImmediate(GLuint indx
, const GLfloat
* values
) {
2072 const uint32_t size
= gles2::cmds::VertexAttrib4fvImmediate::ComputeSize();
2073 gles2::cmds::VertexAttrib4fvImmediate
* c
=
2074 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttrib4fvImmediate
>(
2077 c
->Init(indx
, values
);
2081 void VertexAttribI4i(GLuint indx
, GLint x
, GLint y
, GLint z
, GLint w
) {
2082 gles2::cmds::VertexAttribI4i
* c
= GetCmdSpace
<gles2::cmds::VertexAttribI4i
>();
2084 c
->Init(indx
, x
, y
, z
, w
);
2088 void VertexAttribI4ivImmediate(GLuint indx
, const GLint
* values
) {
2089 const uint32_t size
= gles2::cmds::VertexAttribI4ivImmediate::ComputeSize();
2090 gles2::cmds::VertexAttribI4ivImmediate
* c
=
2091 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttribI4ivImmediate
>(
2094 c
->Init(indx
, values
);
2098 void VertexAttribI4ui(GLuint indx
, GLuint x
, GLuint y
, GLuint z
, GLuint w
) {
2099 gles2::cmds::VertexAttribI4ui
* c
=
2100 GetCmdSpace
<gles2::cmds::VertexAttribI4ui
>();
2102 c
->Init(indx
, x
, y
, z
, w
);
2106 void VertexAttribI4uivImmediate(GLuint indx
, const GLuint
* values
) {
2107 const uint32_t size
= gles2::cmds::VertexAttribI4uivImmediate::ComputeSize();
2108 gles2::cmds::VertexAttribI4uivImmediate
* c
=
2109 GetImmediateCmdSpaceTotalSize
<gles2::cmds::VertexAttribI4uivImmediate
>(
2112 c
->Init(indx
, values
);
2116 void VertexAttribIPointer(GLuint indx
,
2121 gles2::cmds::VertexAttribIPointer
* c
=
2122 GetCmdSpace
<gles2::cmds::VertexAttribIPointer
>();
2124 c
->Init(indx
, size
, type
, stride
, offset
);
2128 void VertexAttribPointer(GLuint indx
,
2131 GLboolean normalized
,
2134 gles2::cmds::VertexAttribPointer
* c
=
2135 GetCmdSpace
<gles2::cmds::VertexAttribPointer
>();
2137 c
->Init(indx
, size
, type
, normalized
, stride
, offset
);
2141 void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
2142 gles2::cmds::Viewport
* c
= GetCmdSpace
<gles2::cmds::Viewport
>();
2144 c
->Init(x
, y
, width
, height
);
2148 void WaitSync(GLuint sync
,
2152 gles2::cmds::WaitSync
* c
= GetCmdSpace
<gles2::cmds::WaitSync
>();
2154 c
->Init(sync
, flags
, timeout_0
, timeout_1
);
2158 void BlitFramebufferCHROMIUM(GLint srcX0
,
2168 gles2::cmds::BlitFramebufferCHROMIUM
* c
=
2169 GetCmdSpace
<gles2::cmds::BlitFramebufferCHROMIUM
>();
2171 c
->Init(srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
,
2176 void RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
2178 GLenum internalformat
,
2181 gles2::cmds::RenderbufferStorageMultisampleCHROMIUM
* c
=
2182 GetCmdSpace
<gles2::cmds::RenderbufferStorageMultisampleCHROMIUM
>();
2184 c
->Init(target
, samples
, internalformat
, width
, height
);
2188 void RenderbufferStorageMultisampleEXT(GLenum target
,
2190 GLenum internalformat
,
2193 gles2::cmds::RenderbufferStorageMultisampleEXT
* c
=
2194 GetCmdSpace
<gles2::cmds::RenderbufferStorageMultisampleEXT
>();
2196 c
->Init(target
, samples
, internalformat
, width
, height
);
2200 void FramebufferTexture2DMultisampleEXT(GLenum target
,
2205 gles2::cmds::FramebufferTexture2DMultisampleEXT
* c
=
2206 GetCmdSpace
<gles2::cmds::FramebufferTexture2DMultisampleEXT
>();
2208 c
->Init(target
, attachment
, textarget
, texture
, samples
);
2212 void TexStorage2DEXT(GLenum target
,
2214 GLenum internalFormat
,
2217 gles2::cmds::TexStorage2DEXT
* c
= GetCmdSpace
<gles2::cmds::TexStorage2DEXT
>();
2219 c
->Init(target
, levels
, internalFormat
, width
, height
);
2223 void GenQueriesEXTImmediate(GLsizei n
, GLuint
* queries
) {
2224 const uint32_t size
= gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n
);
2225 gles2::cmds::GenQueriesEXTImmediate
* c
=
2226 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenQueriesEXTImmediate
>(size
);
2228 c
->Init(n
, queries
);
2232 void DeleteQueriesEXTImmediate(GLsizei n
, const GLuint
* queries
) {
2233 const uint32_t size
= gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n
);
2234 gles2::cmds::DeleteQueriesEXTImmediate
* c
=
2235 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DeleteQueriesEXTImmediate
>(
2238 c
->Init(n
, queries
);
2242 void QueryCounterEXT(GLuint id
,
2244 uint32_t sync_data_shm_id
,
2245 uint32_t sync_data_shm_offset
,
2246 GLuint submit_count
) {
2247 gles2::cmds::QueryCounterEXT
* c
= GetCmdSpace
<gles2::cmds::QueryCounterEXT
>();
2249 c
->Init(id
, target
, sync_data_shm_id
, sync_data_shm_offset
, submit_count
);
2253 void BeginQueryEXT(GLenum target
,
2255 uint32_t sync_data_shm_id
,
2256 uint32_t sync_data_shm_offset
) {
2257 gles2::cmds::BeginQueryEXT
* c
= GetCmdSpace
<gles2::cmds::BeginQueryEXT
>();
2259 c
->Init(target
, id
, sync_data_shm_id
, sync_data_shm_offset
);
2263 void BeginTransformFeedback(GLenum primitivemode
) {
2264 gles2::cmds::BeginTransformFeedback
* c
=
2265 GetCmdSpace
<gles2::cmds::BeginTransformFeedback
>();
2267 c
->Init(primitivemode
);
2271 void EndQueryEXT(GLenum target
, GLuint submit_count
) {
2272 gles2::cmds::EndQueryEXT
* c
= GetCmdSpace
<gles2::cmds::EndQueryEXT
>();
2274 c
->Init(target
, submit_count
);
2278 void EndTransformFeedback() {
2279 gles2::cmds::EndTransformFeedback
* c
=
2280 GetCmdSpace
<gles2::cmds::EndTransformFeedback
>();
2286 void InsertEventMarkerEXT(GLuint bucket_id
) {
2287 gles2::cmds::InsertEventMarkerEXT
* c
=
2288 GetCmdSpace
<gles2::cmds::InsertEventMarkerEXT
>();
2294 void PushGroupMarkerEXT(GLuint bucket_id
) {
2295 gles2::cmds::PushGroupMarkerEXT
* c
=
2296 GetCmdSpace
<gles2::cmds::PushGroupMarkerEXT
>();
2302 void PopGroupMarkerEXT() {
2303 gles2::cmds::PopGroupMarkerEXT
* c
=
2304 GetCmdSpace
<gles2::cmds::PopGroupMarkerEXT
>();
2310 void GenVertexArraysOESImmediate(GLsizei n
, GLuint
* arrays
) {
2311 const uint32_t size
=
2312 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n
);
2313 gles2::cmds::GenVertexArraysOESImmediate
* c
=
2314 GetImmediateCmdSpaceTotalSize
<gles2::cmds::GenVertexArraysOESImmediate
>(
2321 void DeleteVertexArraysOESImmediate(GLsizei n
, const GLuint
* arrays
) {
2322 const uint32_t size
=
2323 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n
);
2324 gles2::cmds::DeleteVertexArraysOESImmediate
* c
=
2325 GetImmediateCmdSpaceTotalSize
<
2326 gles2::cmds::DeleteVertexArraysOESImmediate
>(size
);
2332 void IsVertexArrayOES(GLuint array
,
2333 uint32_t result_shm_id
,
2334 uint32_t result_shm_offset
) {
2335 gles2::cmds::IsVertexArrayOES
* c
=
2336 GetCmdSpace
<gles2::cmds::IsVertexArrayOES
>();
2338 c
->Init(array
, result_shm_id
, result_shm_offset
);
2342 void BindVertexArrayOES(GLuint array
) {
2343 gles2::cmds::BindVertexArrayOES
* c
=
2344 GetCmdSpace
<gles2::cmds::BindVertexArrayOES
>();
2350 void SwapBuffers() {
2351 gles2::cmds::SwapBuffers
* c
= GetCmdSpace
<gles2::cmds::SwapBuffers
>();
2357 void GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
2361 uint32_t result_shm_id
,
2362 uint32_t result_shm_offset
) {
2363 gles2::cmds::GetMaxValueInBufferCHROMIUM
* c
=
2364 GetCmdSpace
<gles2::cmds::GetMaxValueInBufferCHROMIUM
>();
2366 c
->Init(buffer_id
, count
, type
, offset
, result_shm_id
, result_shm_offset
);
2370 void EnableFeatureCHROMIUM(GLuint bucket_id
,
2371 uint32_t result_shm_id
,
2372 uint32_t result_shm_offset
) {
2373 gles2::cmds::EnableFeatureCHROMIUM
* c
=
2374 GetCmdSpace
<gles2::cmds::EnableFeatureCHROMIUM
>();
2376 c
->Init(bucket_id
, result_shm_id
, result_shm_offset
);
2380 void MapBufferRange(GLenum target
,
2384 uint32_t data_shm_id
,
2385 uint32_t data_shm_offset
,
2386 uint32_t result_shm_id
,
2387 uint32_t result_shm_offset
) {
2388 gles2::cmds::MapBufferRange
* c
= GetCmdSpace
<gles2::cmds::MapBufferRange
>();
2390 c
->Init(target
, offset
, size
, access
, data_shm_id
, data_shm_offset
,
2391 result_shm_id
, result_shm_offset
);
2395 void UnmapBuffer(GLenum target
) {
2396 gles2::cmds::UnmapBuffer
* c
= GetCmdSpace
<gles2::cmds::UnmapBuffer
>();
2402 void ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) {
2403 gles2::cmds::ResizeCHROMIUM
* c
= GetCmdSpace
<gles2::cmds::ResizeCHROMIUM
>();
2405 c
->Init(width
, height
, scale_factor
);
2409 void GetRequestableExtensionsCHROMIUM(uint32_t bucket_id
) {
2410 gles2::cmds::GetRequestableExtensionsCHROMIUM
* c
=
2411 GetCmdSpace
<gles2::cmds::GetRequestableExtensionsCHROMIUM
>();
2417 void RequestExtensionCHROMIUM(uint32_t bucket_id
) {
2418 gles2::cmds::RequestExtensionCHROMIUM
* c
=
2419 GetCmdSpace
<gles2::cmds::RequestExtensionCHROMIUM
>();
2425 void GetProgramInfoCHROMIUM(GLuint program
, uint32_t bucket_id
) {
2426 gles2::cmds::GetProgramInfoCHROMIUM
* c
=
2427 GetCmdSpace
<gles2::cmds::GetProgramInfoCHROMIUM
>();
2429 c
->Init(program
, bucket_id
);
2433 void GetUniformBlocksCHROMIUM(GLuint program
, uint32_t bucket_id
) {
2434 gles2::cmds::GetUniformBlocksCHROMIUM
* c
=
2435 GetCmdSpace
<gles2::cmds::GetUniformBlocksCHROMIUM
>();
2437 c
->Init(program
, bucket_id
);
2441 void GetTransformFeedbackVaryingsCHROMIUM(GLuint program
, uint32_t bucket_id
) {
2442 gles2::cmds::GetTransformFeedbackVaryingsCHROMIUM
* c
=
2443 GetCmdSpace
<gles2::cmds::GetTransformFeedbackVaryingsCHROMIUM
>();
2445 c
->Init(program
, bucket_id
);
2449 void GetUniformsES3CHROMIUM(GLuint program
, uint32_t bucket_id
) {
2450 gles2::cmds::GetUniformsES3CHROMIUM
* c
=
2451 GetCmdSpace
<gles2::cmds::GetUniformsES3CHROMIUM
>();
2453 c
->Init(program
, bucket_id
);
2457 void GetTranslatedShaderSourceANGLE(GLuint shader
, uint32_t bucket_id
) {
2458 gles2::cmds::GetTranslatedShaderSourceANGLE
* c
=
2459 GetCmdSpace
<gles2::cmds::GetTranslatedShaderSourceANGLE
>();
2461 c
->Init(shader
, bucket_id
);
2465 void PostSubBufferCHROMIUM(GLint x
, GLint y
, GLint width
, GLint height
) {
2466 gles2::cmds::PostSubBufferCHROMIUM
* c
=
2467 GetCmdSpace
<gles2::cmds::PostSubBufferCHROMIUM
>();
2469 c
->Init(x
, y
, width
, height
);
2473 void TexImageIOSurface2DCHROMIUM(GLenum target
,
2478 gles2::cmds::TexImageIOSurface2DCHROMIUM
* c
=
2479 GetCmdSpace
<gles2::cmds::TexImageIOSurface2DCHROMIUM
>();
2481 c
->Init(target
, width
, height
, ioSurfaceId
, plane
);
2485 void CopyTextureCHROMIUM(GLenum target
,
2488 GLint internalformat
,
2490 GLboolean unpack_flip_y
,
2491 GLboolean unpack_premultiply_alpha
,
2492 GLboolean unpack_unmultiply_alpha
) {
2493 gles2::cmds::CopyTextureCHROMIUM
* c
=
2494 GetCmdSpace
<gles2::cmds::CopyTextureCHROMIUM
>();
2496 c
->Init(target
, source_id
, dest_id
, internalformat
, dest_type
,
2497 unpack_flip_y
, unpack_premultiply_alpha
, unpack_unmultiply_alpha
);
2501 void CopySubTextureCHROMIUM(GLenum target
,
2510 GLboolean unpack_flip_y
,
2511 GLboolean unpack_premultiply_alpha
,
2512 GLboolean unpack_unmultiply_alpha
) {
2513 gles2::cmds::CopySubTextureCHROMIUM
* c
=
2514 GetCmdSpace
<gles2::cmds::CopySubTextureCHROMIUM
>();
2516 c
->Init(target
, source_id
, dest_id
, xoffset
, yoffset
, x
, y
, width
, height
,
2517 unpack_flip_y
, unpack_premultiply_alpha
, unpack_unmultiply_alpha
);
2521 void CompressedCopyTextureCHROMIUM(GLenum target
,
2524 gles2::cmds::CompressedCopyTextureCHROMIUM
* c
=
2525 GetCmdSpace
<gles2::cmds::CompressedCopyTextureCHROMIUM
>();
2527 c
->Init(target
, source_id
, dest_id
);
2531 void DrawArraysInstancedANGLE(GLenum mode
,
2534 GLsizei primcount
) {
2535 gles2::cmds::DrawArraysInstancedANGLE
* c
=
2536 GetCmdSpace
<gles2::cmds::DrawArraysInstancedANGLE
>();
2538 c
->Init(mode
, first
, count
, primcount
);
2542 void DrawElementsInstancedANGLE(GLenum mode
,
2545 GLuint index_offset
,
2546 GLsizei primcount
) {
2547 gles2::cmds::DrawElementsInstancedANGLE
* c
=
2548 GetCmdSpace
<gles2::cmds::DrawElementsInstancedANGLE
>();
2550 c
->Init(mode
, count
, type
, index_offset
, primcount
);
2554 void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
2555 gles2::cmds::VertexAttribDivisorANGLE
* c
=
2556 GetCmdSpace
<gles2::cmds::VertexAttribDivisorANGLE
>();
2558 c
->Init(index
, divisor
);
2562 void ProduceTextureCHROMIUMImmediate(GLenum target
, const GLbyte
* mailbox
) {
2563 const uint32_t size
=
2564 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
2565 gles2::cmds::ProduceTextureCHROMIUMImmediate
* c
=
2566 GetImmediateCmdSpaceTotalSize
<
2567 gles2::cmds::ProduceTextureCHROMIUMImmediate
>(size
);
2569 c
->Init(target
, mailbox
);
2573 void ProduceTextureDirectCHROMIUMImmediate(GLuint texture
,
2575 const GLbyte
* mailbox
) {
2576 const uint32_t size
=
2577 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate::ComputeSize();
2578 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate
* c
=
2579 GetImmediateCmdSpaceTotalSize
<
2580 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate
>(size
);
2582 c
->Init(texture
, target
, mailbox
);
2586 void ConsumeTextureCHROMIUMImmediate(GLenum target
, const GLbyte
* mailbox
) {
2587 const uint32_t size
=
2588 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
2589 gles2::cmds::ConsumeTextureCHROMIUMImmediate
* c
=
2590 GetImmediateCmdSpaceTotalSize
<
2591 gles2::cmds::ConsumeTextureCHROMIUMImmediate
>(size
);
2593 c
->Init(target
, mailbox
);
2597 void BindUniformLocationCHROMIUMBucket(GLuint program
,
2599 uint32_t name_bucket_id
) {
2600 gles2::cmds::BindUniformLocationCHROMIUMBucket
* c
=
2601 GetCmdSpace
<gles2::cmds::BindUniformLocationCHROMIUMBucket
>();
2603 c
->Init(program
, location
, name_bucket_id
);
2607 void GenValuebuffersCHROMIUMImmediate(GLsizei n
, GLuint
* buffers
) {
2608 const uint32_t size
=
2609 gles2::cmds::GenValuebuffersCHROMIUMImmediate::ComputeSize(n
);
2610 gles2::cmds::GenValuebuffersCHROMIUMImmediate
* c
=
2611 GetImmediateCmdSpaceTotalSize
<
2612 gles2::cmds::GenValuebuffersCHROMIUMImmediate
>(size
);
2614 c
->Init(n
, buffers
);
2618 void DeleteValuebuffersCHROMIUMImmediate(GLsizei n
,
2619 const GLuint
* valuebuffers
) {
2620 const uint32_t size
=
2621 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate::ComputeSize(n
);
2622 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate
* c
=
2623 GetImmediateCmdSpaceTotalSize
<
2624 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate
>(size
);
2626 c
->Init(n
, valuebuffers
);
2630 void IsValuebufferCHROMIUM(GLuint valuebuffer
,
2631 uint32_t result_shm_id
,
2632 uint32_t result_shm_offset
) {
2633 gles2::cmds::IsValuebufferCHROMIUM
* c
=
2634 GetCmdSpace
<gles2::cmds::IsValuebufferCHROMIUM
>();
2636 c
->Init(valuebuffer
, result_shm_id
, result_shm_offset
);
2640 void BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) {
2641 gles2::cmds::BindValuebufferCHROMIUM
* c
=
2642 GetCmdSpace
<gles2::cmds::BindValuebufferCHROMIUM
>();
2644 c
->Init(target
, valuebuffer
);
2648 void SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) {
2649 gles2::cmds::SubscribeValueCHROMIUM
* c
=
2650 GetCmdSpace
<gles2::cmds::SubscribeValueCHROMIUM
>();
2652 c
->Init(target
, subscription
);
2656 void PopulateSubscribedValuesCHROMIUM(GLenum target
) {
2657 gles2::cmds::PopulateSubscribedValuesCHROMIUM
* c
=
2658 GetCmdSpace
<gles2::cmds::PopulateSubscribedValuesCHROMIUM
>();
2664 void UniformValuebufferCHROMIUM(GLint location
,
2666 GLenum subscription
) {
2667 gles2::cmds::UniformValuebufferCHROMIUM
* c
=
2668 GetCmdSpace
<gles2::cmds::UniformValuebufferCHROMIUM
>();
2670 c
->Init(location
, target
, subscription
);
2674 void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
2675 gles2::cmds::BindTexImage2DCHROMIUM
* c
=
2676 GetCmdSpace
<gles2::cmds::BindTexImage2DCHROMIUM
>();
2678 c
->Init(target
, imageId
);
2682 void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
2683 gles2::cmds::ReleaseTexImage2DCHROMIUM
* c
=
2684 GetCmdSpace
<gles2::cmds::ReleaseTexImage2DCHROMIUM
>();
2686 c
->Init(target
, imageId
);
2690 void TraceBeginCHROMIUM(GLuint category_bucket_id
, GLuint name_bucket_id
) {
2691 gles2::cmds::TraceBeginCHROMIUM
* c
=
2692 GetCmdSpace
<gles2::cmds::TraceBeginCHROMIUM
>();
2694 c
->Init(category_bucket_id
, name_bucket_id
);
2698 void TraceEndCHROMIUM() {
2699 gles2::cmds::TraceEndCHROMIUM
* c
=
2700 GetCmdSpace
<gles2::cmds::TraceEndCHROMIUM
>();
2706 void AsyncTexSubImage2DCHROMIUM(GLenum target
,
2714 uint32_t data_shm_id
,
2715 uint32_t data_shm_offset
,
2716 uint32_t async_upload_token
,
2717 uint32_t sync_data_shm_id
,
2718 uint32_t sync_data_shm_offset
) {
2719 gles2::cmds::AsyncTexSubImage2DCHROMIUM
* c
=
2720 GetCmdSpace
<gles2::cmds::AsyncTexSubImage2DCHROMIUM
>();
2722 c
->Init(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
2723 data_shm_id
, data_shm_offset
, async_upload_token
, sync_data_shm_id
,
2724 sync_data_shm_offset
);
2728 void AsyncTexImage2DCHROMIUM(GLenum target
,
2730 GLint internalformat
,
2735 uint32_t pixels_shm_id
,
2736 uint32_t pixels_shm_offset
,
2737 uint32_t async_upload_token
,
2738 uint32_t sync_data_shm_id
,
2739 uint32_t sync_data_shm_offset
) {
2740 gles2::cmds::AsyncTexImage2DCHROMIUM
* c
=
2741 GetCmdSpace
<gles2::cmds::AsyncTexImage2DCHROMIUM
>();
2743 c
->Init(target
, level
, internalformat
, width
, height
, format
, type
,
2744 pixels_shm_id
, pixels_shm_offset
, async_upload_token
,
2745 sync_data_shm_id
, sync_data_shm_offset
);
2749 void WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
2750 gles2::cmds::WaitAsyncTexImage2DCHROMIUM
* c
=
2751 GetCmdSpace
<gles2::cmds::WaitAsyncTexImage2DCHROMIUM
>();
2757 void WaitAllAsyncTexImage2DCHROMIUM() {
2758 gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM
* c
=
2759 GetCmdSpace
<gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM
>();
2765 void DiscardFramebufferEXTImmediate(GLenum target
,
2767 const GLenum
* attachments
) {
2768 const uint32_t size
=
2769 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count
);
2770 gles2::cmds::DiscardFramebufferEXTImmediate
* c
=
2771 GetImmediateCmdSpaceTotalSize
<
2772 gles2::cmds::DiscardFramebufferEXTImmediate
>(size
);
2774 c
->Init(target
, count
, attachments
);
2778 void LoseContextCHROMIUM(GLenum current
, GLenum other
) {
2779 gles2::cmds::LoseContextCHROMIUM
* c
=
2780 GetCmdSpace
<gles2::cmds::LoseContextCHROMIUM
>();
2782 c
->Init(current
, other
);
2786 void WaitSyncPointCHROMIUM(GLuint sync_point
) {
2787 gles2::cmds::WaitSyncPointCHROMIUM
* c
=
2788 GetCmdSpace
<gles2::cmds::WaitSyncPointCHROMIUM
>();
2790 c
->Init(sync_point
);
2794 void DrawBuffersEXTImmediate(GLsizei count
, const GLenum
* bufs
) {
2795 const uint32_t size
=
2796 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count
);
2797 gles2::cmds::DrawBuffersEXTImmediate
* c
=
2798 GetImmediateCmdSpaceTotalSize
<gles2::cmds::DrawBuffersEXTImmediate
>(size
);
2800 c
->Init(count
, bufs
);
2804 void DiscardBackbufferCHROMIUM() {
2805 gles2::cmds::DiscardBackbufferCHROMIUM
* c
=
2806 GetCmdSpace
<gles2::cmds::DiscardBackbufferCHROMIUM
>();
2812 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
2813 GLenum plane_transform
,
2814 GLuint overlay_texture_id
,
2818 GLint bounds_height
,
2822 GLfloat uv_height
) {
2823 gles2::cmds::ScheduleOverlayPlaneCHROMIUM
* c
=
2824 GetCmdSpace
<gles2::cmds::ScheduleOverlayPlaneCHROMIUM
>();
2826 c
->Init(plane_z_order
, plane_transform
, overlay_texture_id
, bounds_x
,
2827 bounds_y
, bounds_width
, bounds_height
, uv_x
, uv_y
, uv_width
,
2832 void SwapInterval(GLint interval
) {
2833 gles2::cmds::SwapInterval
* c
= GetCmdSpace
<gles2::cmds::SwapInterval
>();
2839 void FlushDriverCachesCHROMIUM() {
2840 gles2::cmds::FlushDriverCachesCHROMIUM
* c
=
2841 GetCmdSpace
<gles2::cmds::FlushDriverCachesCHROMIUM
>();
2847 void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode
, const GLfloat
* m
) {
2848 const uint32_t size
=
2849 gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize();
2850 gles2::cmds::MatrixLoadfCHROMIUMImmediate
* c
=
2851 GetImmediateCmdSpaceTotalSize
<gles2::cmds::MatrixLoadfCHROMIUMImmediate
>(
2854 c
->Init(matrixMode
, m
);
2858 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
2859 gles2::cmds::MatrixLoadIdentityCHROMIUM
* c
=
2860 GetCmdSpace
<gles2::cmds::MatrixLoadIdentityCHROMIUM
>();
2862 c
->Init(matrixMode
);
2866 void GenPathsCHROMIUM(GLuint first_client_id
, GLsizei range
) {
2867 gles2::cmds::GenPathsCHROMIUM
* c
=
2868 GetCmdSpace
<gles2::cmds::GenPathsCHROMIUM
>();
2870 c
->Init(first_client_id
, range
);
2874 void DeletePathsCHROMIUM(GLuint first_client_id
, GLsizei range
) {
2875 gles2::cmds::DeletePathsCHROMIUM
* c
=
2876 GetCmdSpace
<gles2::cmds::DeletePathsCHROMIUM
>();
2878 c
->Init(first_client_id
, range
);
2882 void IsPathCHROMIUM(GLuint path
,
2883 uint32_t result_shm_id
,
2884 uint32_t result_shm_offset
) {
2885 gles2::cmds::IsPathCHROMIUM
* c
= GetCmdSpace
<gles2::cmds::IsPathCHROMIUM
>();
2887 c
->Init(path
, result_shm_id
, result_shm_offset
);
2891 void PathCommandsCHROMIUM(GLuint path
,
2892 GLsizei numCommands
,
2893 uint32_t commands_shm_id
,
2894 uint32_t commands_shm_offset
,
2897 uint32_t coords_shm_id
,
2898 uint32_t coords_shm_offset
) {
2899 gles2::cmds::PathCommandsCHROMIUM
* c
=
2900 GetCmdSpace
<gles2::cmds::PathCommandsCHROMIUM
>();
2902 c
->Init(path
, numCommands
, commands_shm_id
, commands_shm_offset
, numCoords
,
2903 coordType
, coords_shm_id
, coords_shm_offset
);
2907 void PathParameterfCHROMIUM(GLuint path
, GLenum pname
, GLfloat value
) {
2908 gles2::cmds::PathParameterfCHROMIUM
* c
=
2909 GetCmdSpace
<gles2::cmds::PathParameterfCHROMIUM
>();
2911 c
->Init(path
, pname
, value
);
2915 void PathParameteriCHROMIUM(GLuint path
, GLenum pname
, GLint value
) {
2916 gles2::cmds::PathParameteriCHROMIUM
* c
=
2917 GetCmdSpace
<gles2::cmds::PathParameteriCHROMIUM
>();
2919 c
->Init(path
, pname
, value
);
2923 void PathStencilFuncCHROMIUM(GLenum func
, GLint ref
, GLuint mask
) {
2924 gles2::cmds::PathStencilFuncCHROMIUM
* c
=
2925 GetCmdSpace
<gles2::cmds::PathStencilFuncCHROMIUM
>();
2927 c
->Init(func
, ref
, mask
);
2931 void StencilFillPathCHROMIUM(GLuint path
, GLenum fillMode
, GLuint mask
) {
2932 gles2::cmds::StencilFillPathCHROMIUM
* c
=
2933 GetCmdSpace
<gles2::cmds::StencilFillPathCHROMIUM
>();
2935 c
->Init(path
, fillMode
, mask
);
2939 void StencilStrokePathCHROMIUM(GLuint path
, GLint reference
, GLuint mask
) {
2940 gles2::cmds::StencilStrokePathCHROMIUM
* c
=
2941 GetCmdSpace
<gles2::cmds::StencilStrokePathCHROMIUM
>();
2943 c
->Init(path
, reference
, mask
);
2947 void CoverFillPathCHROMIUM(GLuint path
, GLenum coverMode
) {
2948 gles2::cmds::CoverFillPathCHROMIUM
* c
=
2949 GetCmdSpace
<gles2::cmds::CoverFillPathCHROMIUM
>();
2951 c
->Init(path
, coverMode
);
2955 void CoverStrokePathCHROMIUM(GLuint path
, GLenum coverMode
) {
2956 gles2::cmds::CoverStrokePathCHROMIUM
* c
=
2957 GetCmdSpace
<gles2::cmds::CoverStrokePathCHROMIUM
>();
2959 c
->Init(path
, coverMode
);
2963 void StencilThenCoverFillPathCHROMIUM(GLuint path
,
2967 gles2::cmds::StencilThenCoverFillPathCHROMIUM
* c
=
2968 GetCmdSpace
<gles2::cmds::StencilThenCoverFillPathCHROMIUM
>();
2970 c
->Init(path
, fillMode
, mask
, coverMode
);
2974 void StencilThenCoverStrokePathCHROMIUM(GLuint path
,
2978 gles2::cmds::StencilThenCoverStrokePathCHROMIUM
* c
=
2979 GetCmdSpace
<gles2::cmds::StencilThenCoverStrokePathCHROMIUM
>();
2981 c
->Init(path
, reference
, mask
, coverMode
);
2985 void BlendBarrierKHR() {
2986 gles2::cmds::BlendBarrierKHR
* c
= GetCmdSpace
<gles2::cmds::BlendBarrierKHR
>();
2992 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_