1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
11 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
14 void ActiveTexture(GLenum texture) {
15 gles2::cmds::ActiveTexture* c = GetCmdSpace<gles2::cmds::ActiveTexture>();
21 void AttachShader(GLuint program, GLuint shader) {
22 gles2::cmds::AttachShader* c = GetCmdSpace<gles2::cmds::AttachShader>();
24 c->Init(program, shader);
28 void BindAttribLocationBucket(GLuint program,
30 uint32_t name_bucket_id) {
31 gles2::cmds::BindAttribLocationBucket* c =
32 GetCmdSpace<gles2::cmds::BindAttribLocationBucket>();
34 c->Init(program, index, name_bucket_id);
38 void BindBuffer(GLenum target, GLuint buffer) {
39 gles2::cmds::BindBuffer* c = GetCmdSpace<gles2::cmds::BindBuffer>();
41 c->Init(target, buffer);
45 void BindFramebuffer(GLenum target, GLuint framebuffer) {
46 gles2::cmds::BindFramebuffer* c = GetCmdSpace<gles2::cmds::BindFramebuffer>();
48 c->Init(target, framebuffer);
52 void BindRenderbuffer(GLenum target, GLuint renderbuffer) {
53 gles2::cmds::BindRenderbuffer* c =
54 GetCmdSpace<gles2::cmds::BindRenderbuffer>();
56 c->Init(target, renderbuffer);
60 void BindTexture(GLenum target, GLuint texture) {
61 gles2::cmds::BindTexture* c = GetCmdSpace<gles2::cmds::BindTexture>();
63 c->Init(target, texture);
67 void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
68 gles2::cmds::BlendColor* c = GetCmdSpace<gles2::cmds::BlendColor>();
70 c->Init(red, green, blue, alpha);
74 void BlendEquation(GLenum mode) {
75 gles2::cmds::BlendEquation* c = GetCmdSpace<gles2::cmds::BlendEquation>();
81 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
82 gles2::cmds::BlendEquationSeparate* c =
83 GetCmdSpace<gles2::cmds::BlendEquationSeparate>();
85 c->Init(modeRGB, modeAlpha);
89 void BlendFunc(GLenum sfactor, GLenum dfactor) {
90 gles2::cmds::BlendFunc* c = GetCmdSpace<gles2::cmds::BlendFunc>();
92 c->Init(sfactor, dfactor);
96 void BlendFuncSeparate(GLenum srcRGB,
100 gles2::cmds::BlendFuncSeparate* c =
101 GetCmdSpace<gles2::cmds::BlendFuncSeparate>();
103 c->Init(srcRGB, dstRGB, srcAlpha, dstAlpha);
107 void BufferData(GLenum target,
109 uint32_t data_shm_id,
110 uint32_t data_shm_offset,
112 gles2::cmds::BufferData* c = GetCmdSpace<gles2::cmds::BufferData>();
114 c->Init(target, size, data_shm_id, data_shm_offset, usage);
118 void BufferSubData(GLenum target,
121 uint32_t data_shm_id,
122 uint32_t data_shm_offset) {
123 gles2::cmds::BufferSubData* c = GetCmdSpace<gles2::cmds::BufferSubData>();
125 c->Init(target, offset, size, data_shm_id, data_shm_offset);
129 void CheckFramebufferStatus(GLenum target,
130 uint32_t result_shm_id,
131 uint32_t result_shm_offset) {
132 gles2::cmds::CheckFramebufferStatus* c =
133 GetCmdSpace<gles2::cmds::CheckFramebufferStatus>();
135 c->Init(target, result_shm_id, result_shm_offset);
139 void Clear(GLbitfield mask) {
140 gles2::cmds::Clear* c = GetCmdSpace<gles2::cmds::Clear>();
146 void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
147 gles2::cmds::ClearColor* c = GetCmdSpace<gles2::cmds::ClearColor>();
149 c->Init(red, green, blue, alpha);
153 void ClearDepthf(GLclampf depth) {
154 gles2::cmds::ClearDepthf* c = GetCmdSpace<gles2::cmds::ClearDepthf>();
160 void ClearStencil(GLint s) {
161 gles2::cmds::ClearStencil* c = GetCmdSpace<gles2::cmds::ClearStencil>();
167 void ColorMask(GLboolean red,
171 gles2::cmds::ColorMask* c = GetCmdSpace<gles2::cmds::ColorMask>();
173 c->Init(red, green, blue, alpha);
177 void CompileShader(GLuint shader) {
178 gles2::cmds::CompileShader* c = GetCmdSpace<gles2::cmds::CompileShader>();
184 void CompressedTexImage2DBucket(GLenum target,
186 GLenum internalformat,
190 gles2::cmds::CompressedTexImage2DBucket* c =
191 GetCmdSpace<gles2::cmds::CompressedTexImage2DBucket>();
193 c->Init(target, level, internalformat, width, height, bucket_id);
197 void CompressedTexImage2D(GLenum target,
199 GLenum internalformat,
203 uint32_t data_shm_id,
204 uint32_t data_shm_offset) {
205 gles2::cmds::CompressedTexImage2D* c =
206 GetCmdSpace<gles2::cmds::CompressedTexImage2D>();
208 c->Init(target, level, internalformat, width, height, imageSize,
209 data_shm_id, data_shm_offset);
213 void CompressedTexSubImage2DBucket(GLenum target,
221 gles2::cmds::CompressedTexSubImage2DBucket* c =
222 GetCmdSpace<gles2::cmds::CompressedTexSubImage2DBucket>();
224 c->Init(target, level, xoffset, yoffset, width, height, format, bucket_id);
228 void CompressedTexSubImage2D(GLenum target,
236 uint32_t data_shm_id,
237 uint32_t data_shm_offset) {
238 gles2::cmds::CompressedTexSubImage2D* c =
239 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>();
241 c->Init(target, level, xoffset, yoffset, width, height, format, imageSize,
242 data_shm_id, data_shm_offset);
246 void CopyTexImage2D(GLenum target,
248 GLenum internalformat,
253 gles2::cmds::CopyTexImage2D* c = GetCmdSpace<gles2::cmds::CopyTexImage2D>();
255 c->Init(target, level, internalformat, x, y, width, height);
259 void CopyTexSubImage2D(GLenum target,
267 gles2::cmds::CopyTexSubImage2D* c =
268 GetCmdSpace<gles2::cmds::CopyTexSubImage2D>();
270 c->Init(target, level, xoffset, yoffset, x, y, width, height);
274 void CreateProgram(uint32_t client_id) {
275 gles2::cmds::CreateProgram* c = GetCmdSpace<gles2::cmds::CreateProgram>();
281 void CreateShader(GLenum type, uint32_t client_id) {
282 gles2::cmds::CreateShader* c = GetCmdSpace<gles2::cmds::CreateShader>();
284 c->Init(type, client_id);
288 void CullFace(GLenum mode) {
289 gles2::cmds::CullFace* c = GetCmdSpace<gles2::cmds::CullFace>();
295 void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) {
296 const uint32_t size = gles2::cmds::DeleteBuffersImmediate::ComputeSize(n);
297 gles2::cmds::DeleteBuffersImmediate* c =
298 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteBuffersImmediate>(size);
304 void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) {
305 const uint32_t size =
306 gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n);
307 gles2::cmds::DeleteFramebuffersImmediate* c =
308 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteFramebuffersImmediate>(
311 c->Init(n, framebuffers);
315 void DeleteProgram(GLuint program) {
316 gles2::cmds::DeleteProgram* c = GetCmdSpace<gles2::cmds::DeleteProgram>();
322 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) {
323 const uint32_t size =
324 gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n);
325 gles2::cmds::DeleteRenderbuffersImmediate* c =
326 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate>(
329 c->Init(n, renderbuffers);
333 void DeleteShader(GLuint shader) {
334 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>();
340 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) {
341 const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n);
342 gles2::cmds::DeleteTexturesImmediate* c =
343 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(size);
345 c->Init(n, textures);
349 void DepthFunc(GLenum func) {
350 gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>();
356 void DepthMask(GLboolean flag) {
357 gles2::cmds::DepthMask* c = GetCmdSpace<gles2::cmds::DepthMask>();
363 void DepthRangef(GLclampf zNear, GLclampf zFar) {
364 gles2::cmds::DepthRangef* c = GetCmdSpace<gles2::cmds::DepthRangef>();
366 c->Init(zNear, zFar);
370 void DetachShader(GLuint program, GLuint shader) {
371 gles2::cmds::DetachShader* c = GetCmdSpace<gles2::cmds::DetachShader>();
373 c->Init(program, shader);
377 void Disable(GLenum cap) {
378 gles2::cmds::Disable* c = GetCmdSpace<gles2::cmds::Disable>();
384 void DisableVertexAttribArray(GLuint index) {
385 gles2::cmds::DisableVertexAttribArray* c =
386 GetCmdSpace<gles2::cmds::DisableVertexAttribArray>();
392 void DrawArrays(GLenum mode, GLint first, GLsizei count) {
393 gles2::cmds::DrawArrays* c = GetCmdSpace<gles2::cmds::DrawArrays>();
395 c->Init(mode, first, count);
399 void DrawElements(GLenum mode,
402 GLuint index_offset) {
403 gles2::cmds::DrawElements* c = GetCmdSpace<gles2::cmds::DrawElements>();
405 c->Init(mode, count, type, index_offset);
409 void Enable(GLenum cap) {
410 gles2::cmds::Enable* c = GetCmdSpace<gles2::cmds::Enable>();
416 void EnableVertexAttribArray(GLuint index) {
417 gles2::cmds::EnableVertexAttribArray* c =
418 GetCmdSpace<gles2::cmds::EnableVertexAttribArray>();
425 gles2::cmds::Finish* c = GetCmdSpace<gles2::cmds::Finish>();
432 gles2::cmds::Flush* c = GetCmdSpace<gles2::cmds::Flush>();
438 void FramebufferRenderbuffer(GLenum target,
440 GLenum renderbuffertarget,
441 GLuint renderbuffer) {
442 gles2::cmds::FramebufferRenderbuffer* c =
443 GetCmdSpace<gles2::cmds::FramebufferRenderbuffer>();
445 c->Init(target, attachment, renderbuffertarget, renderbuffer);
449 void FramebufferTexture2D(GLenum target,
453 gles2::cmds::FramebufferTexture2D* c =
454 GetCmdSpace<gles2::cmds::FramebufferTexture2D>();
456 c->Init(target, attachment, textarget, texture);
460 void FrontFace(GLenum mode) {
461 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>();
467 void GenBuffersImmediate(GLsizei n, GLuint* buffers) {
468 const uint32_t size = gles2::cmds::GenBuffersImmediate::ComputeSize(n);
469 gles2::cmds::GenBuffersImmediate* c =
470 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenBuffersImmediate>(size);
476 void GenerateMipmap(GLenum target) {
477 gles2::cmds::GenerateMipmap* c = GetCmdSpace<gles2::cmds::GenerateMipmap>();
483 void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) {
484 const uint32_t size = gles2::cmds::GenFramebuffersImmediate::ComputeSize(n);
485 gles2::cmds::GenFramebuffersImmediate* c =
486 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenFramebuffersImmediate>(
489 c->Init(n, framebuffers);
493 void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) {
494 const uint32_t size = gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n);
495 gles2::cmds::GenRenderbuffersImmediate* c =
496 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenRenderbuffersImmediate>(
499 c->Init(n, renderbuffers);
503 void GenTexturesImmediate(GLsizei n, GLuint* textures) {
504 const uint32_t size = gles2::cmds::GenTexturesImmediate::ComputeSize(n);
505 gles2::cmds::GenTexturesImmediate* c =
506 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size);
508 c->Init(n, textures);
512 void GetActiveAttrib(GLuint program,
514 uint32_t name_bucket_id,
515 uint32_t result_shm_id,
516 uint32_t result_shm_offset) {
517 gles2::cmds::GetActiveAttrib* c = GetCmdSpace<gles2::cmds::GetActiveAttrib>();
519 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset);
523 void GetActiveUniform(GLuint program,
525 uint32_t name_bucket_id,
526 uint32_t result_shm_id,
527 uint32_t result_shm_offset) {
528 gles2::cmds::GetActiveUniform* c =
529 GetCmdSpace<gles2::cmds::GetActiveUniform>();
531 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset);
535 void GetAttachedShaders(GLuint program,
536 uint32_t result_shm_id,
537 uint32_t result_shm_offset,
538 uint32_t result_size) {
539 gles2::cmds::GetAttachedShaders* c =
540 GetCmdSpace<gles2::cmds::GetAttachedShaders>();
542 c->Init(program, result_shm_id, result_shm_offset, result_size);
546 void GetAttribLocation(GLuint program,
547 uint32_t name_bucket_id,
548 uint32_t location_shm_id,
549 uint32_t location_shm_offset) {
550 gles2::cmds::GetAttribLocation* c =
551 GetCmdSpace<gles2::cmds::GetAttribLocation>();
553 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset);
557 void GetBooleanv(GLenum pname,
558 uint32_t params_shm_id,
559 uint32_t params_shm_offset) {
560 gles2::cmds::GetBooleanv* c = GetCmdSpace<gles2::cmds::GetBooleanv>();
562 c->Init(pname, params_shm_id, params_shm_offset);
566 void GetBufferParameteriv(GLenum target,
568 uint32_t params_shm_id,
569 uint32_t params_shm_offset) {
570 gles2::cmds::GetBufferParameteriv* c =
571 GetCmdSpace<gles2::cmds::GetBufferParameteriv>();
573 c->Init(target, pname, params_shm_id, params_shm_offset);
577 void GetError(uint32_t result_shm_id, uint32_t result_shm_offset) {
578 gles2::cmds::GetError* c = GetCmdSpace<gles2::cmds::GetError>();
580 c->Init(result_shm_id, result_shm_offset);
584 void GetFloatv(GLenum pname,
585 uint32_t params_shm_id,
586 uint32_t params_shm_offset) {
587 gles2::cmds::GetFloatv* c = GetCmdSpace<gles2::cmds::GetFloatv>();
589 c->Init(pname, params_shm_id, params_shm_offset);
593 void GetFramebufferAttachmentParameteriv(GLenum target,
596 uint32_t params_shm_id,
597 uint32_t params_shm_offset) {
598 gles2::cmds::GetFramebufferAttachmentParameteriv* c =
599 GetCmdSpace<gles2::cmds::GetFramebufferAttachmentParameteriv>();
601 c->Init(target, attachment, pname, params_shm_id, params_shm_offset);
605 void GetIntegerv(GLenum pname,
606 uint32_t params_shm_id,
607 uint32_t params_shm_offset) {
608 gles2::cmds::GetIntegerv* c = GetCmdSpace<gles2::cmds::GetIntegerv>();
610 c->Init(pname, params_shm_id, params_shm_offset);
614 void GetProgramiv(GLuint program,
616 uint32_t params_shm_id,
617 uint32_t params_shm_offset) {
618 gles2::cmds::GetProgramiv* c = GetCmdSpace<gles2::cmds::GetProgramiv>();
620 c->Init(program, pname, params_shm_id, params_shm_offset);
624 void GetProgramInfoLog(GLuint program, uint32_t bucket_id) {
625 gles2::cmds::GetProgramInfoLog* c =
626 GetCmdSpace<gles2::cmds::GetProgramInfoLog>();
628 c->Init(program, bucket_id);
632 void GetRenderbufferParameteriv(GLenum target,
634 uint32_t params_shm_id,
635 uint32_t params_shm_offset) {
636 gles2::cmds::GetRenderbufferParameteriv* c =
637 GetCmdSpace<gles2::cmds::GetRenderbufferParameteriv>();
639 c->Init(target, pname, params_shm_id, params_shm_offset);
643 void GetShaderiv(GLuint shader,
645 uint32_t params_shm_id,
646 uint32_t params_shm_offset) {
647 gles2::cmds::GetShaderiv* c = GetCmdSpace<gles2::cmds::GetShaderiv>();
649 c->Init(shader, pname, params_shm_id, params_shm_offset);
653 void GetShaderInfoLog(GLuint shader, uint32_t bucket_id) {
654 gles2::cmds::GetShaderInfoLog* c =
655 GetCmdSpace<gles2::cmds::GetShaderInfoLog>();
657 c->Init(shader, bucket_id);
661 void GetShaderPrecisionFormat(GLenum shadertype,
662 GLenum precisiontype,
663 uint32_t result_shm_id,
664 uint32_t result_shm_offset) {
665 gles2::cmds::GetShaderPrecisionFormat* c =
666 GetCmdSpace<gles2::cmds::GetShaderPrecisionFormat>();
668 c->Init(shadertype, precisiontype, result_shm_id, result_shm_offset);
672 void GetShaderSource(GLuint shader, uint32_t bucket_id) {
673 gles2::cmds::GetShaderSource* c = GetCmdSpace<gles2::cmds::GetShaderSource>();
675 c->Init(shader, bucket_id);
679 void GetString(GLenum name, uint32_t bucket_id) {
680 gles2::cmds::GetString* c = GetCmdSpace<gles2::cmds::GetString>();
682 c->Init(name, bucket_id);
686 void GetTexParameterfv(GLenum target,
688 uint32_t params_shm_id,
689 uint32_t params_shm_offset) {
690 gles2::cmds::GetTexParameterfv* c =
691 GetCmdSpace<gles2::cmds::GetTexParameterfv>();
693 c->Init(target, pname, params_shm_id, params_shm_offset);
697 void GetTexParameteriv(GLenum target,
699 uint32_t params_shm_id,
700 uint32_t params_shm_offset) {
701 gles2::cmds::GetTexParameteriv* c =
702 GetCmdSpace<gles2::cmds::GetTexParameteriv>();
704 c->Init(target, pname, params_shm_id, params_shm_offset);
708 void GetUniformfv(GLuint program,
710 uint32_t params_shm_id,
711 uint32_t params_shm_offset) {
712 gles2::cmds::GetUniformfv* c = GetCmdSpace<gles2::cmds::GetUniformfv>();
714 c->Init(program, location, params_shm_id, params_shm_offset);
718 void GetUniformiv(GLuint program,
720 uint32_t params_shm_id,
721 uint32_t params_shm_offset) {
722 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>();
724 c->Init(program, location, params_shm_id, params_shm_offset);
728 void GetUniformLocation(GLuint program,
729 uint32_t name_bucket_id,
730 uint32_t location_shm_id,
731 uint32_t location_shm_offset) {
732 gles2::cmds::GetUniformLocation* c =
733 GetCmdSpace<gles2::cmds::GetUniformLocation>();
735 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset);
739 void GetVertexAttribfv(GLuint index,
741 uint32_t params_shm_id,
742 uint32_t params_shm_offset) {
743 gles2::cmds::GetVertexAttribfv* c =
744 GetCmdSpace<gles2::cmds::GetVertexAttribfv>();
746 c->Init(index, pname, params_shm_id, params_shm_offset);
750 void GetVertexAttribiv(GLuint index,
752 uint32_t params_shm_id,
753 uint32_t params_shm_offset) {
754 gles2::cmds::GetVertexAttribiv* c =
755 GetCmdSpace<gles2::cmds::GetVertexAttribiv>();
757 c->Init(index, pname, params_shm_id, params_shm_offset);
761 void GetVertexAttribPointerv(GLuint index,
763 uint32_t pointer_shm_id,
764 uint32_t pointer_shm_offset) {
765 gles2::cmds::GetVertexAttribPointerv* c =
766 GetCmdSpace<gles2::cmds::GetVertexAttribPointerv>();
768 c->Init(index, pname, pointer_shm_id, pointer_shm_offset);
772 void Hint(GLenum target, GLenum mode) {
773 gles2::cmds::Hint* c = GetCmdSpace<gles2::cmds::Hint>();
775 c->Init(target, mode);
779 void IsBuffer(GLuint buffer,
780 uint32_t result_shm_id,
781 uint32_t result_shm_offset) {
782 gles2::cmds::IsBuffer* c = GetCmdSpace<gles2::cmds::IsBuffer>();
784 c->Init(buffer, result_shm_id, result_shm_offset);
788 void IsEnabled(GLenum cap, uint32_t result_shm_id, uint32_t result_shm_offset) {
789 gles2::cmds::IsEnabled* c = GetCmdSpace<gles2::cmds::IsEnabled>();
791 c->Init(cap, result_shm_id, result_shm_offset);
795 void IsFramebuffer(GLuint framebuffer,
796 uint32_t result_shm_id,
797 uint32_t result_shm_offset) {
798 gles2::cmds::IsFramebuffer* c = GetCmdSpace<gles2::cmds::IsFramebuffer>();
800 c->Init(framebuffer, result_shm_id, result_shm_offset);
804 void IsProgram(GLuint program,
805 uint32_t result_shm_id,
806 uint32_t result_shm_offset) {
807 gles2::cmds::IsProgram* c = GetCmdSpace<gles2::cmds::IsProgram>();
809 c->Init(program, result_shm_id, result_shm_offset);
813 void IsRenderbuffer(GLuint renderbuffer,
814 uint32_t result_shm_id,
815 uint32_t result_shm_offset) {
816 gles2::cmds::IsRenderbuffer* c = GetCmdSpace<gles2::cmds::IsRenderbuffer>();
818 c->Init(renderbuffer, result_shm_id, result_shm_offset);
822 void IsShader(GLuint shader,
823 uint32_t result_shm_id,
824 uint32_t result_shm_offset) {
825 gles2::cmds::IsShader* c = GetCmdSpace<gles2::cmds::IsShader>();
827 c->Init(shader, result_shm_id, result_shm_offset);
831 void IsTexture(GLuint texture,
832 uint32_t result_shm_id,
833 uint32_t result_shm_offset) {
834 gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>();
836 c->Init(texture, result_shm_id, result_shm_offset);
840 void LineWidth(GLfloat width) {
841 gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>();
847 void LinkProgram(GLuint program) {
848 gles2::cmds::LinkProgram* c = GetCmdSpace<gles2::cmds::LinkProgram>();
854 void PixelStorei(GLenum pname, GLint param) {
855 gles2::cmds::PixelStorei* c = GetCmdSpace<gles2::cmds::PixelStorei>();
857 c->Init(pname, param);
861 void PolygonOffset(GLfloat factor, GLfloat units) {
862 gles2::cmds::PolygonOffset* c = GetCmdSpace<gles2::cmds::PolygonOffset>();
864 c->Init(factor, units);
868 void ReadPixels(GLint x,
874 uint32_t pixels_shm_id,
875 uint32_t pixels_shm_offset,
876 uint32_t result_shm_id,
877 uint32_t result_shm_offset,
879 gles2::cmds::ReadPixels* c = GetCmdSpace<gles2::cmds::ReadPixels>();
881 c->Init(x, y, width, height, format, type, pixels_shm_id, pixels_shm_offset,
882 result_shm_id, result_shm_offset, async);
886 void ReleaseShaderCompiler() {
887 gles2::cmds::ReleaseShaderCompiler* c =
888 GetCmdSpace<gles2::cmds::ReleaseShaderCompiler>();
894 void RenderbufferStorage(GLenum target,
895 GLenum internalformat,
898 gles2::cmds::RenderbufferStorage* c =
899 GetCmdSpace<gles2::cmds::RenderbufferStorage>();
901 c->Init(target, internalformat, width, height);
905 void SampleCoverage(GLclampf value, GLboolean invert) {
906 gles2::cmds::SampleCoverage* c = GetCmdSpace<gles2::cmds::SampleCoverage>();
908 c->Init(value, invert);
912 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
913 gles2::cmds::Scissor* c = GetCmdSpace<gles2::cmds::Scissor>();
915 c->Init(x, y, width, height);
919 void ShaderBinary(GLsizei n,
920 uint32_t shaders_shm_id,
921 uint32_t shaders_shm_offset,
923 uint32_t binary_shm_id,
924 uint32_t binary_shm_offset,
926 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>();
928 c->Init(n, shaders_shm_id, shaders_shm_offset, binaryformat, binary_shm_id,
929 binary_shm_offset, length);
933 void ShaderSourceBucket(GLuint shader, uint32_t data_bucket_id) {
934 gles2::cmds::ShaderSourceBucket* c =
935 GetCmdSpace<gles2::cmds::ShaderSourceBucket>();
937 c->Init(shader, data_bucket_id);
941 void StencilFunc(GLenum func, GLint ref, GLuint mask) {
942 gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>();
944 c->Init(func, ref, mask);
948 void StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) {
949 gles2::cmds::StencilFuncSeparate* c =
950 GetCmdSpace<gles2::cmds::StencilFuncSeparate>();
952 c->Init(face, func, ref, mask);
956 void StencilMask(GLuint mask) {
957 gles2::cmds::StencilMask* c = GetCmdSpace<gles2::cmds::StencilMask>();
963 void StencilMaskSeparate(GLenum face, GLuint mask) {
964 gles2::cmds::StencilMaskSeparate* c =
965 GetCmdSpace<gles2::cmds::StencilMaskSeparate>();
971 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
972 gles2::cmds::StencilOp* c = GetCmdSpace<gles2::cmds::StencilOp>();
974 c->Init(fail, zfail, zpass);
978 void StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) {
979 gles2::cmds::StencilOpSeparate* c =
980 GetCmdSpace<gles2::cmds::StencilOpSeparate>();
982 c->Init(face, fail, zfail, zpass);
986 void TexImage2D(GLenum target,
988 GLint internalformat,
993 uint32_t pixels_shm_id,
994 uint32_t pixels_shm_offset) {
995 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>();
997 c->Init(target, level, internalformat, width, height, format, type,
998 pixels_shm_id, pixels_shm_offset);
1002 void TexParameterf(GLenum target, GLenum pname, GLfloat param) {
1003 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>();
1005 c->Init(target, pname, param);
1009 void TexParameterfvImmediate(GLenum target,
1011 const GLfloat* params) {
1012 const uint32_t size = gles2::cmds::TexParameterfvImmediate::ComputeSize();
1013 gles2::cmds::TexParameterfvImmediate* c =
1014 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterfvImmediate>(size);
1016 c->Init(target, pname, params);
1020 void TexParameteri(GLenum target, GLenum pname, GLint param) {
1021 gles2::cmds::TexParameteri* c = GetCmdSpace<gles2::cmds::TexParameteri>();
1023 c->Init(target, pname, param);
1027 void TexParameterivImmediate(GLenum target, GLenum pname, const GLint* params) {
1028 const uint32_t size = gles2::cmds::TexParameterivImmediate::ComputeSize();
1029 gles2::cmds::TexParameterivImmediate* c =
1030 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(size);
1032 c->Init(target, pname, params);
1036 void TexSubImage2D(GLenum target,
1044 uint32_t pixels_shm_id,
1045 uint32_t pixels_shm_offset,
1046 GLboolean internal) {
1047 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>();
1049 c->Init(target, level, xoffset, yoffset, width, height, format, type,
1050 pixels_shm_id, pixels_shm_offset, internal);
1054 void Uniform1f(GLint location, GLfloat x) {
1055 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>();
1057 c->Init(location, x);
1061 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1062 const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count);
1063 gles2::cmds::Uniform1fvImmediate* c =
1064 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1fvImmediate>(size);
1066 c->Init(location, count, v);
1070 void Uniform1i(GLint location, GLint x) {
1071 gles2::cmds::Uniform1i* c = GetCmdSpace<gles2::cmds::Uniform1i>();
1073 c->Init(location, x);
1077 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) {
1078 const uint32_t size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count);
1079 gles2::cmds::Uniform1ivImmediate* c =
1080 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size);
1082 c->Init(location, count, v);
1086 void Uniform2f(GLint location, GLfloat x, GLfloat y) {
1087 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>();
1089 c->Init(location, x, y);
1093 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1094 const uint32_t size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count);
1095 gles2::cmds::Uniform2fvImmediate* c =
1096 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2fvImmediate>(size);
1098 c->Init(location, count, v);
1102 void Uniform2i(GLint location, GLint x, GLint y) {
1103 gles2::cmds::Uniform2i* c = GetCmdSpace<gles2::cmds::Uniform2i>();
1105 c->Init(location, x, y);
1109 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) {
1110 const uint32_t size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count);
1111 gles2::cmds::Uniform2ivImmediate* c =
1112 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size);
1114 c->Init(location, count, v);
1118 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
1119 gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>();
1121 c->Init(location, x, y, z);
1125 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1126 const uint32_t size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count);
1127 gles2::cmds::Uniform3fvImmediate* c =
1128 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3fvImmediate>(size);
1130 c->Init(location, count, v);
1134 void Uniform3i(GLint location, GLint x, GLint y, GLint z) {
1135 gles2::cmds::Uniform3i* c = GetCmdSpace<gles2::cmds::Uniform3i>();
1137 c->Init(location, x, y, z);
1141 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) {
1142 const uint32_t size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count);
1143 gles2::cmds::Uniform3ivImmediate* c =
1144 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size);
1146 c->Init(location, count, v);
1150 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
1151 gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>();
1153 c->Init(location, x, y, z, w);
1157 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1158 const uint32_t size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count);
1159 gles2::cmds::Uniform4fvImmediate* c =
1160 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4fvImmediate>(size);
1162 c->Init(location, count, v);
1166 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
1167 gles2::cmds::Uniform4i* c = GetCmdSpace<gles2::cmds::Uniform4i>();
1169 c->Init(location, x, y, z, w);
1173 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) {
1174 const uint32_t size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count);
1175 gles2::cmds::Uniform4ivImmediate* c =
1176 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size);
1178 c->Init(location, count, v);
1182 void UniformMatrix2fvImmediate(GLint location,
1184 const GLfloat* value) {
1185 const uint32_t size =
1186 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count);
1187 gles2::cmds::UniformMatrix2fvImmediate* c =
1188 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>(
1191 c->Init(location, count, value);
1195 void UniformMatrix3fvImmediate(GLint location,
1197 const GLfloat* value) {
1198 const uint32_t size =
1199 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count);
1200 gles2::cmds::UniformMatrix3fvImmediate* c =
1201 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>(
1204 c->Init(location, count, value);
1208 void UniformMatrix4fvImmediate(GLint location,
1210 const GLfloat* value) {
1211 const uint32_t size =
1212 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count);
1213 gles2::cmds::UniformMatrix4fvImmediate* c =
1214 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>(
1217 c->Init(location, count, value);
1221 void UseProgram(GLuint program) {
1222 gles2::cmds::UseProgram* c = GetCmdSpace<gles2::cmds::UseProgram>();
1228 void ValidateProgram(GLuint program) {
1229 gles2::cmds::ValidateProgram* c = GetCmdSpace<gles2::cmds::ValidateProgram>();
1235 void VertexAttrib1f(GLuint indx, GLfloat x) {
1236 gles2::cmds::VertexAttrib1f* c = GetCmdSpace<gles2::cmds::VertexAttrib1f>();
1242 void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) {
1243 const uint32_t size = gles2::cmds::VertexAttrib1fvImmediate::ComputeSize();
1244 gles2::cmds::VertexAttrib1fvImmediate* c =
1245 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib1fvImmediate>(
1248 c->Init(indx, values);
1252 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
1253 gles2::cmds::VertexAttrib2f* c = GetCmdSpace<gles2::cmds::VertexAttrib2f>();
1255 c->Init(indx, x, y);
1259 void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) {
1260 const uint32_t size = gles2::cmds::VertexAttrib2fvImmediate::ComputeSize();
1261 gles2::cmds::VertexAttrib2fvImmediate* c =
1262 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib2fvImmediate>(
1265 c->Init(indx, values);
1269 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
1270 gles2::cmds::VertexAttrib3f* c = GetCmdSpace<gles2::cmds::VertexAttrib3f>();
1272 c->Init(indx, x, y, z);
1276 void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) {
1277 const uint32_t size = gles2::cmds::VertexAttrib3fvImmediate::ComputeSize();
1278 gles2::cmds::VertexAttrib3fvImmediate* c =
1279 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib3fvImmediate>(
1282 c->Init(indx, values);
1286 void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
1287 gles2::cmds::VertexAttrib4f* c = GetCmdSpace<gles2::cmds::VertexAttrib4f>();
1289 c->Init(indx, x, y, z, w);
1293 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) {
1294 const uint32_t size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize();
1295 gles2::cmds::VertexAttrib4fvImmediate* c =
1296 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>(
1299 c->Init(indx, values);
1303 void VertexAttribPointer(GLuint indx,
1306 GLboolean normalized,
1309 gles2::cmds::VertexAttribPointer* c =
1310 GetCmdSpace<gles2::cmds::VertexAttribPointer>();
1312 c->Init(indx, size, type, normalized, stride, offset);
1316 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
1317 gles2::cmds::Viewport* c = GetCmdSpace<gles2::cmds::Viewport>();
1319 c->Init(x, y, width, height);
1323 void BlitFramebufferCHROMIUM(GLint srcX0,
1333 gles2::cmds::BlitFramebufferCHROMIUM* c =
1334 GetCmdSpace<gles2::cmds::BlitFramebufferCHROMIUM>();
1336 c->Init(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask,
1341 void RenderbufferStorageMultisampleCHROMIUM(GLenum target,
1343 GLenum internalformat,
1346 gles2::cmds::RenderbufferStorageMultisampleCHROMIUM* c =
1347 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleCHROMIUM>();
1349 c->Init(target, samples, internalformat, width, height);
1353 void RenderbufferStorageMultisampleEXT(GLenum target,
1355 GLenum internalformat,
1358 gles2::cmds::RenderbufferStorageMultisampleEXT* c =
1359 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleEXT>();
1361 c->Init(target, samples, internalformat, width, height);
1365 void FramebufferTexture2DMultisampleEXT(GLenum target,
1370 gles2::cmds::FramebufferTexture2DMultisampleEXT* c =
1371 GetCmdSpace<gles2::cmds::FramebufferTexture2DMultisampleEXT>();
1373 c->Init(target, attachment, textarget, texture, samples);
1377 void TexStorage2DEXT(GLenum target,
1379 GLenum internalFormat,
1382 gles2::cmds::TexStorage2DEXT* c = GetCmdSpace<gles2::cmds::TexStorage2DEXT>();
1384 c->Init(target, levels, internalFormat, width, height);
1388 void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) {
1389 const uint32_t size = gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n);
1390 gles2::cmds::GenQueriesEXTImmediate* c =
1391 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenQueriesEXTImmediate>(size);
1393 c->Init(n, queries);
1397 void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) {
1398 const uint32_t size = gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n);
1399 gles2::cmds::DeleteQueriesEXTImmediate* c =
1400 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteQueriesEXTImmediate>(
1403 c->Init(n, queries);
1407 void BeginQueryEXT(GLenum target,
1409 uint32_t sync_data_shm_id,
1410 uint32_t sync_data_shm_offset) {
1411 gles2::cmds::BeginQueryEXT* c = GetCmdSpace<gles2::cmds::BeginQueryEXT>();
1413 c->Init(target, id, sync_data_shm_id, sync_data_shm_offset);
1417 void EndQueryEXT(GLenum target, GLuint submit_count) {
1418 gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>();
1420 c->Init(target, submit_count);
1424 void InsertEventMarkerEXT(GLuint bucket_id) {
1425 gles2::cmds::InsertEventMarkerEXT* c =
1426 GetCmdSpace<gles2::cmds::InsertEventMarkerEXT>();
1432 void PushGroupMarkerEXT(GLuint bucket_id) {
1433 gles2::cmds::PushGroupMarkerEXT* c =
1434 GetCmdSpace<gles2::cmds::PushGroupMarkerEXT>();
1440 void PopGroupMarkerEXT() {
1441 gles2::cmds::PopGroupMarkerEXT* c =
1442 GetCmdSpace<gles2::cmds::PopGroupMarkerEXT>();
1448 void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) {
1449 const uint32_t size =
1450 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n);
1451 gles2::cmds::GenVertexArraysOESImmediate* c =
1452 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenVertexArraysOESImmediate>(
1459 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) {
1460 const uint32_t size =
1461 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n);
1462 gles2::cmds::DeleteVertexArraysOESImmediate* c =
1463 GetImmediateCmdSpaceTotalSize<
1464 gles2::cmds::DeleteVertexArraysOESImmediate>(size);
1470 void IsVertexArrayOES(GLuint array,
1471 uint32_t result_shm_id,
1472 uint32_t result_shm_offset) {
1473 gles2::cmds::IsVertexArrayOES* c =
1474 GetCmdSpace<gles2::cmds::IsVertexArrayOES>();
1476 c->Init(array, result_shm_id, result_shm_offset);
1480 void BindVertexArrayOES(GLuint array) {
1481 gles2::cmds::BindVertexArrayOES* c =
1482 GetCmdSpace<gles2::cmds::BindVertexArrayOES>();
1488 void SwapBuffers() {
1489 gles2::cmds::SwapBuffers* c = GetCmdSpace<gles2::cmds::SwapBuffers>();
1495 void GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1499 uint32_t result_shm_id,
1500 uint32_t result_shm_offset) {
1501 gles2::cmds::GetMaxValueInBufferCHROMIUM* c =
1502 GetCmdSpace<gles2::cmds::GetMaxValueInBufferCHROMIUM>();
1504 c->Init(buffer_id, count, type, offset, result_shm_id, result_shm_offset);
1508 void EnableFeatureCHROMIUM(GLuint bucket_id,
1509 uint32_t result_shm_id,
1510 uint32_t result_shm_offset) {
1511 gles2::cmds::EnableFeatureCHROMIUM* c =
1512 GetCmdSpace<gles2::cmds::EnableFeatureCHROMIUM>();
1514 c->Init(bucket_id, result_shm_id, result_shm_offset);
1518 void ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) {
1519 gles2::cmds::ResizeCHROMIUM* c = GetCmdSpace<gles2::cmds::ResizeCHROMIUM>();
1521 c->Init(width, height, scale_factor);
1525 void GetRequestableExtensionsCHROMIUM(uint32_t bucket_id) {
1526 gles2::cmds::GetRequestableExtensionsCHROMIUM* c =
1527 GetCmdSpace<gles2::cmds::GetRequestableExtensionsCHROMIUM>();
1533 void RequestExtensionCHROMIUM(uint32_t bucket_id) {
1534 gles2::cmds::RequestExtensionCHROMIUM* c =
1535 GetCmdSpace<gles2::cmds::RequestExtensionCHROMIUM>();
1541 void GetMultipleIntegervCHROMIUM(uint32_t pnames_shm_id,
1542 uint32_t pnames_shm_offset,
1544 uint32_t results_shm_id,
1545 uint32_t results_shm_offset,
1547 gles2::cmds::GetMultipleIntegervCHROMIUM* c =
1548 GetCmdSpace<gles2::cmds::GetMultipleIntegervCHROMIUM>();
1550 c->Init(pnames_shm_id, pnames_shm_offset, count, results_shm_id,
1551 results_shm_offset, size);
1555 void GetProgramInfoCHROMIUM(GLuint program, uint32_t bucket_id) {
1556 gles2::cmds::GetProgramInfoCHROMIUM* c =
1557 GetCmdSpace<gles2::cmds::GetProgramInfoCHROMIUM>();
1559 c->Init(program, bucket_id);
1563 void GetTranslatedShaderSourceANGLE(GLuint shader, uint32_t bucket_id) {
1564 gles2::cmds::GetTranslatedShaderSourceANGLE* c =
1565 GetCmdSpace<gles2::cmds::GetTranslatedShaderSourceANGLE>();
1567 c->Init(shader, bucket_id);
1571 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
1572 gles2::cmds::PostSubBufferCHROMIUM* c =
1573 GetCmdSpace<gles2::cmds::PostSubBufferCHROMIUM>();
1575 c->Init(x, y, width, height);
1579 void TexImageIOSurface2DCHROMIUM(GLenum target,
1584 gles2::cmds::TexImageIOSurface2DCHROMIUM* c =
1585 GetCmdSpace<gles2::cmds::TexImageIOSurface2DCHROMIUM>();
1587 c->Init(target, width, height, ioSurfaceId, plane);
1591 void CopyTextureCHROMIUM(GLenum target,
1595 GLint internalformat,
1597 gles2::cmds::CopyTextureCHROMIUM* c =
1598 GetCmdSpace<gles2::cmds::CopyTextureCHROMIUM>();
1600 c->Init(target, source_id, dest_id, level, internalformat, dest_type);
1604 void DrawArraysInstancedANGLE(GLenum mode,
1607 GLsizei primcount) {
1608 gles2::cmds::DrawArraysInstancedANGLE* c =
1609 GetCmdSpace<gles2::cmds::DrawArraysInstancedANGLE>();
1611 c->Init(mode, first, count, primcount);
1615 void DrawElementsInstancedANGLE(GLenum mode,
1618 GLuint index_offset,
1619 GLsizei primcount) {
1620 gles2::cmds::DrawElementsInstancedANGLE* c =
1621 GetCmdSpace<gles2::cmds::DrawElementsInstancedANGLE>();
1623 c->Init(mode, count, type, index_offset, primcount);
1627 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
1628 gles2::cmds::VertexAttribDivisorANGLE* c =
1629 GetCmdSpace<gles2::cmds::VertexAttribDivisorANGLE>();
1631 c->Init(index, divisor);
1635 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
1636 const uint32_t size =
1637 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
1638 gles2::cmds::ProduceTextureCHROMIUMImmediate* c =
1639 GetImmediateCmdSpaceTotalSize<
1640 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size);
1642 c->Init(target, mailbox);
1646 void ProduceTextureDirectCHROMIUMImmediate(GLuint texture,
1648 const GLbyte* mailbox) {
1649 const uint32_t size =
1650 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate::ComputeSize();
1651 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate* c =
1652 GetImmediateCmdSpaceTotalSize<
1653 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate>(size);
1655 c->Init(texture, target, mailbox);
1659 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
1660 const uint32_t size =
1661 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
1662 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c =
1663 GetImmediateCmdSpaceTotalSize<
1664 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size);
1666 c->Init(target, mailbox);
1670 void BindUniformLocationCHROMIUMBucket(GLuint program,
1672 uint32_t name_bucket_id) {
1673 gles2::cmds::BindUniformLocationCHROMIUMBucket* c =
1674 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>();
1676 c->Init(program, location, name_bucket_id);
1680 void GenValuebuffersCHROMIUMImmediate(GLsizei n, GLuint* buffers) {
1681 const uint32_t size =
1682 gles2::cmds::GenValuebuffersCHROMIUMImmediate::ComputeSize(n);
1683 gles2::cmds::GenValuebuffersCHROMIUMImmediate* c =
1684 GetImmediateCmdSpaceTotalSize<
1685 gles2::cmds::GenValuebuffersCHROMIUMImmediate>(size);
1687 c->Init(n, buffers);
1691 void DeleteValuebuffersCHROMIUMImmediate(GLsizei n,
1692 const GLuint* valuebuffers) {
1693 const uint32_t size =
1694 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate::ComputeSize(n);
1695 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate* c =
1696 GetImmediateCmdSpaceTotalSize<
1697 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate>(size);
1699 c->Init(n, valuebuffers);
1703 void IsValuebufferCHROMIUM(GLuint valuebuffer,
1704 uint32_t result_shm_id,
1705 uint32_t result_shm_offset) {
1706 gles2::cmds::IsValuebufferCHROMIUM* c =
1707 GetCmdSpace<gles2::cmds::IsValuebufferCHROMIUM>();
1709 c->Init(valuebuffer, result_shm_id, result_shm_offset);
1713 void BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) {
1714 gles2::cmds::BindValuebufferCHROMIUM* c =
1715 GetCmdSpace<gles2::cmds::BindValuebufferCHROMIUM>();
1717 c->Init(target, valuebuffer);
1721 void SubscribeValueCHROMIUM(GLenum target, GLenum subscription) {
1722 gles2::cmds::SubscribeValueCHROMIUM* c =
1723 GetCmdSpace<gles2::cmds::SubscribeValueCHROMIUM>();
1725 c->Init(target, subscription);
1729 void PopulateSubscribedValuesCHROMIUM(GLenum target) {
1730 gles2::cmds::PopulateSubscribedValuesCHROMIUM* c =
1731 GetCmdSpace<gles2::cmds::PopulateSubscribedValuesCHROMIUM>();
1737 void UniformValuebufferCHROMIUM(GLint location,
1739 GLenum subscription) {
1740 gles2::cmds::UniformValuebufferCHROMIUM* c =
1741 GetCmdSpace<gles2::cmds::UniformValuebufferCHROMIUM>();
1743 c->Init(location, target, subscription);
1747 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1748 gles2::cmds::BindTexImage2DCHROMIUM* c =
1749 GetCmdSpace<gles2::cmds::BindTexImage2DCHROMIUM>();
1751 c->Init(target, imageId);
1755 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1756 gles2::cmds::ReleaseTexImage2DCHROMIUM* c =
1757 GetCmdSpace<gles2::cmds::ReleaseTexImage2DCHROMIUM>();
1759 c->Init(target, imageId);
1763 void TraceBeginCHROMIUM(GLuint bucket_id) {
1764 gles2::cmds::TraceBeginCHROMIUM* c =
1765 GetCmdSpace<gles2::cmds::TraceBeginCHROMIUM>();
1771 void TraceEndCHROMIUM() {
1772 gles2::cmds::TraceEndCHROMIUM* c =
1773 GetCmdSpace<gles2::cmds::TraceEndCHROMIUM>();
1779 void AsyncTexSubImage2DCHROMIUM(GLenum target,
1787 uint32_t data_shm_id,
1788 uint32_t data_shm_offset,
1789 uint32_t async_upload_token,
1790 uint32_t sync_data_shm_id,
1791 uint32_t sync_data_shm_offset) {
1792 gles2::cmds::AsyncTexSubImage2DCHROMIUM* c =
1793 GetCmdSpace<gles2::cmds::AsyncTexSubImage2DCHROMIUM>();
1795 c->Init(target, level, xoffset, yoffset, width, height, format, type,
1796 data_shm_id, data_shm_offset, async_upload_token, sync_data_shm_id,
1797 sync_data_shm_offset);
1801 void AsyncTexImage2DCHROMIUM(GLenum target,
1803 GLint internalformat,
1808 uint32_t pixels_shm_id,
1809 uint32_t pixels_shm_offset,
1810 uint32_t async_upload_token,
1811 uint32_t sync_data_shm_id,
1812 uint32_t sync_data_shm_offset) {
1813 gles2::cmds::AsyncTexImage2DCHROMIUM* c =
1814 GetCmdSpace<gles2::cmds::AsyncTexImage2DCHROMIUM>();
1816 c->Init(target, level, internalformat, width, height, format, type,
1817 pixels_shm_id, pixels_shm_offset, async_upload_token,
1818 sync_data_shm_id, sync_data_shm_offset);
1822 void WaitAsyncTexImage2DCHROMIUM(GLenum target) {
1823 gles2::cmds::WaitAsyncTexImage2DCHROMIUM* c =
1824 GetCmdSpace<gles2::cmds::WaitAsyncTexImage2DCHROMIUM>();
1830 void WaitAllAsyncTexImage2DCHROMIUM() {
1831 gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM* c =
1832 GetCmdSpace<gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM>();
1838 void DiscardFramebufferEXTImmediate(GLenum target,
1840 const GLenum* attachments) {
1841 const uint32_t size =
1842 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count);
1843 gles2::cmds::DiscardFramebufferEXTImmediate* c =
1844 GetImmediateCmdSpaceTotalSize<
1845 gles2::cmds::DiscardFramebufferEXTImmediate>(size);
1847 c->Init(target, count, attachments);
1851 void LoseContextCHROMIUM(GLenum current, GLenum other) {
1852 gles2::cmds::LoseContextCHROMIUM* c =
1853 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>();
1855 c->Init(current, other);
1859 void WaitSyncPointCHROMIUM(GLuint sync_point) {
1860 gles2::cmds::WaitSyncPointCHROMIUM* c =
1861 GetCmdSpace<gles2::cmds::WaitSyncPointCHROMIUM>();
1863 c->Init(sync_point);
1867 void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) {
1868 const uint32_t size =
1869 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count);
1870 gles2::cmds::DrawBuffersEXTImmediate* c =
1871 GetImmediateCmdSpaceTotalSize<gles2::cmds::DrawBuffersEXTImmediate>(size);
1873 c->Init(count, bufs);
1877 void DiscardBackbufferCHROMIUM() {
1878 gles2::cmds::DiscardBackbufferCHROMIUM* c =
1879 GetCmdSpace<gles2::cmds::DiscardBackbufferCHROMIUM>();
1885 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
1886 GLenum plane_transform,
1887 GLuint overlay_texture_id,
1891 GLint bounds_height,
1895 GLfloat uv_height) {
1896 gles2::cmds::ScheduleOverlayPlaneCHROMIUM* c =
1897 GetCmdSpace<gles2::cmds::ScheduleOverlayPlaneCHROMIUM>();
1899 c->Init(plane_z_order, plane_transform, overlay_texture_id, bounds_x,
1900 bounds_y, bounds_width, bounds_height, uv_x, uv_y, uv_width,
1905 void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode, const GLfloat* m) {
1906 const uint32_t size =
1907 gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize();
1908 gles2::cmds::MatrixLoadfCHROMIUMImmediate* c =
1909 GetImmediateCmdSpaceTotalSize<gles2::cmds::MatrixLoadfCHROMIUMImmediate>(
1912 c->Init(matrixMode, m);
1916 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
1917 gles2::cmds::MatrixLoadIdentityCHROMIUM* c =
1918 GetCmdSpace<gles2::cmds::MatrixLoadIdentityCHROMIUM>();
1920 c->Init(matrixMode);
1924 void BlendBarrierKHR() {
1925 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>();
1931 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_