Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_cmd_helper_autogen.h
blobfb77fa29a5b867a9350ed8442769055ab7fd10aa
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
9 // DO NOT EDIT!
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>();
16 if (c) {
17 c->Init(texture);
21 void AttachShader(GLuint program, GLuint shader) {
22 gles2::cmds::AttachShader* c = GetCmdSpace<gles2::cmds::AttachShader>();
23 if (c) {
24 c->Init(program, shader);
28 void BindAttribLocationBucket(GLuint program,
29 GLuint index,
30 uint32_t name_bucket_id) {
31 gles2::cmds::BindAttribLocationBucket* c =
32 GetCmdSpace<gles2::cmds::BindAttribLocationBucket>();
33 if (c) {
34 c->Init(program, index, name_bucket_id);
38 void BindBuffer(GLenum target, GLuint buffer) {
39 gles2::cmds::BindBuffer* c = GetCmdSpace<gles2::cmds::BindBuffer>();
40 if (c) {
41 c->Init(target, buffer);
45 void BindBufferBase(GLenum target, GLuint index, GLuint buffer) {
46 gles2::cmds::BindBufferBase* c = GetCmdSpace<gles2::cmds::BindBufferBase>();
47 if (c) {
48 c->Init(target, index, buffer);
52 void BindBufferRange(GLenum target,
53 GLuint index,
54 GLuint buffer,
55 GLintptr offset,
56 GLsizeiptr size) {
57 gles2::cmds::BindBufferRange* c = GetCmdSpace<gles2::cmds::BindBufferRange>();
58 if (c) {
59 c->Init(target, index, buffer, offset, size);
63 void BindFramebuffer(GLenum target, GLuint framebuffer) {
64 gles2::cmds::BindFramebuffer* c = GetCmdSpace<gles2::cmds::BindFramebuffer>();
65 if (c) {
66 c->Init(target, framebuffer);
70 void BindRenderbuffer(GLenum target, GLuint renderbuffer) {
71 gles2::cmds::BindRenderbuffer* c =
72 GetCmdSpace<gles2::cmds::BindRenderbuffer>();
73 if (c) {
74 c->Init(target, renderbuffer);
78 void BindSampler(GLuint unit, GLuint sampler) {
79 gles2::cmds::BindSampler* c = GetCmdSpace<gles2::cmds::BindSampler>();
80 if (c) {
81 c->Init(unit, sampler);
85 void BindTexture(GLenum target, GLuint texture) {
86 gles2::cmds::BindTexture* c = GetCmdSpace<gles2::cmds::BindTexture>();
87 if (c) {
88 c->Init(target, texture);
92 void BindTransformFeedback(GLenum target, GLuint transformfeedback) {
93 gles2::cmds::BindTransformFeedback* c =
94 GetCmdSpace<gles2::cmds::BindTransformFeedback>();
95 if (c) {
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>();
102 if (c) {
103 c->Init(red, green, blue, alpha);
107 void BlendEquation(GLenum mode) {
108 gles2::cmds::BlendEquation* c = GetCmdSpace<gles2::cmds::BlendEquation>();
109 if (c) {
110 c->Init(mode);
114 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
115 gles2::cmds::BlendEquationSeparate* c =
116 GetCmdSpace<gles2::cmds::BlendEquationSeparate>();
117 if (c) {
118 c->Init(modeRGB, modeAlpha);
122 void BlendFunc(GLenum sfactor, GLenum dfactor) {
123 gles2::cmds::BlendFunc* c = GetCmdSpace<gles2::cmds::BlendFunc>();
124 if (c) {
125 c->Init(sfactor, dfactor);
129 void BlendFuncSeparate(GLenum srcRGB,
130 GLenum dstRGB,
131 GLenum srcAlpha,
132 GLenum dstAlpha) {
133 gles2::cmds::BlendFuncSeparate* c =
134 GetCmdSpace<gles2::cmds::BlendFuncSeparate>();
135 if (c) {
136 c->Init(srcRGB, dstRGB, srcAlpha, dstAlpha);
140 void BufferData(GLenum target,
141 GLsizeiptr size,
142 uint32_t data_shm_id,
143 uint32_t data_shm_offset,
144 GLenum usage) {
145 gles2::cmds::BufferData* c = GetCmdSpace<gles2::cmds::BufferData>();
146 if (c) {
147 c->Init(target, size, data_shm_id, data_shm_offset, usage);
151 void BufferSubData(GLenum target,
152 GLintptr offset,
153 GLsizeiptr size,
154 uint32_t data_shm_id,
155 uint32_t data_shm_offset) {
156 gles2::cmds::BufferSubData* c = GetCmdSpace<gles2::cmds::BufferSubData>();
157 if (c) {
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>();
167 if (c) {
168 c->Init(target, result_shm_id, result_shm_offset);
172 void Clear(GLbitfield mask) {
173 gles2::cmds::Clear* c = GetCmdSpace<gles2::cmds::Clear>();
174 if (c) {
175 c->Init(mask);
179 void ClearBufferfi(GLenum buffer,
180 GLint drawbuffers,
181 GLfloat depth,
182 GLint stencil) {
183 gles2::cmds::ClearBufferfi* c = GetCmdSpace<gles2::cmds::ClearBufferfi>();
184 if (c) {
185 c->Init(buffer, drawbuffers, depth, stencil);
189 void ClearBufferfvImmediate(GLenum buffer,
190 GLint drawbuffers,
191 const GLfloat* value) {
192 const uint32_t size = gles2::cmds::ClearBufferfvImmediate::ComputeSize();
193 gles2::cmds::ClearBufferfvImmediate* c =
194 GetImmediateCmdSpaceTotalSize<gles2::cmds::ClearBufferfvImmediate>(size);
195 if (c) {
196 c->Init(buffer, drawbuffers, value);
200 void ClearBufferivImmediate(GLenum buffer,
201 GLint drawbuffers,
202 const GLint* value) {
203 const uint32_t size = gles2::cmds::ClearBufferivImmediate::ComputeSize();
204 gles2::cmds::ClearBufferivImmediate* c =
205 GetImmediateCmdSpaceTotalSize<gles2::cmds::ClearBufferivImmediate>(size);
206 if (c) {
207 c->Init(buffer, drawbuffers, value);
211 void ClearBufferuivImmediate(GLenum buffer,
212 GLint drawbuffers,
213 const GLuint* value) {
214 const uint32_t size = gles2::cmds::ClearBufferuivImmediate::ComputeSize();
215 gles2::cmds::ClearBufferuivImmediate* c =
216 GetImmediateCmdSpaceTotalSize<gles2::cmds::ClearBufferuivImmediate>(size);
217 if (c) {
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>();
224 if (c) {
225 c->Init(red, green, blue, alpha);
229 void ClearDepthf(GLclampf depth) {
230 gles2::cmds::ClearDepthf* c = GetCmdSpace<gles2::cmds::ClearDepthf>();
231 if (c) {
232 c->Init(depth);
236 void ClearStencil(GLint s) {
237 gles2::cmds::ClearStencil* c = GetCmdSpace<gles2::cmds::ClearStencil>();
238 if (c) {
239 c->Init(s);
243 void ClientWaitSync(GLuint sync,
244 GLbitfield flags,
245 GLuint timeout_0,
246 GLuint timeout_1,
247 uint32_t result_shm_id,
248 uint32_t result_shm_offset) {
249 gles2::cmds::ClientWaitSync* c = GetCmdSpace<gles2::cmds::ClientWaitSync>();
250 if (c) {
251 c->Init(sync, flags, timeout_0, timeout_1, result_shm_id,
252 result_shm_offset);
256 void ColorMask(GLboolean red,
257 GLboolean green,
258 GLboolean blue,
259 GLboolean alpha) {
260 gles2::cmds::ColorMask* c = GetCmdSpace<gles2::cmds::ColorMask>();
261 if (c) {
262 c->Init(red, green, blue, alpha);
266 void CompileShader(GLuint shader) {
267 gles2::cmds::CompileShader* c = GetCmdSpace<gles2::cmds::CompileShader>();
268 if (c) {
269 c->Init(shader);
273 void CompressedTexImage2DBucket(GLenum target,
274 GLint level,
275 GLenum internalformat,
276 GLsizei width,
277 GLsizei height,
278 GLuint bucket_id) {
279 gles2::cmds::CompressedTexImage2DBucket* c =
280 GetCmdSpace<gles2::cmds::CompressedTexImage2DBucket>();
281 if (c) {
282 c->Init(target, level, internalformat, width, height, bucket_id);
286 void CompressedTexImage2D(GLenum target,
287 GLint level,
288 GLenum internalformat,
289 GLsizei width,
290 GLsizei height,
291 GLsizei imageSize,
292 uint32_t data_shm_id,
293 uint32_t data_shm_offset) {
294 gles2::cmds::CompressedTexImage2D* c =
295 GetCmdSpace<gles2::cmds::CompressedTexImage2D>();
296 if (c) {
297 c->Init(target, level, internalformat, width, height, imageSize,
298 data_shm_id, data_shm_offset);
302 void CompressedTexSubImage2DBucket(GLenum target,
303 GLint level,
304 GLint xoffset,
305 GLint yoffset,
306 GLsizei width,
307 GLsizei height,
308 GLenum format,
309 GLuint bucket_id) {
310 gles2::cmds::CompressedTexSubImage2DBucket* c =
311 GetCmdSpace<gles2::cmds::CompressedTexSubImage2DBucket>();
312 if (c) {
313 c->Init(target, level, xoffset, yoffset, width, height, format, bucket_id);
317 void CompressedTexSubImage2D(GLenum target,
318 GLint level,
319 GLint xoffset,
320 GLint yoffset,
321 GLsizei width,
322 GLsizei height,
323 GLenum format,
324 GLsizei imageSize,
325 uint32_t data_shm_id,
326 uint32_t data_shm_offset) {
327 gles2::cmds::CompressedTexSubImage2D* c =
328 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>();
329 if (c) {
330 c->Init(target, level, xoffset, yoffset, width, height, format, imageSize,
331 data_shm_id, data_shm_offset);
335 void CompressedTexImage3DBucket(GLenum target,
336 GLint level,
337 GLenum internalformat,
338 GLsizei width,
339 GLsizei height,
340 GLsizei depth,
341 GLuint bucket_id) {
342 gles2::cmds::CompressedTexImage3DBucket* c =
343 GetCmdSpace<gles2::cmds::CompressedTexImage3DBucket>();
344 if (c) {
345 c->Init(target, level, internalformat, width, height, depth, bucket_id);
349 void CompressedTexImage3D(GLenum target,
350 GLint level,
351 GLenum internalformat,
352 GLsizei width,
353 GLsizei height,
354 GLsizei depth,
355 GLsizei imageSize,
356 uint32_t data_shm_id,
357 uint32_t data_shm_offset) {
358 gles2::cmds::CompressedTexImage3D* c =
359 GetCmdSpace<gles2::cmds::CompressedTexImage3D>();
360 if (c) {
361 c->Init(target, level, internalformat, width, height, depth, imageSize,
362 data_shm_id, data_shm_offset);
366 void CompressedTexSubImage3DBucket(GLenum target,
367 GLint level,
368 GLint xoffset,
369 GLint yoffset,
370 GLint zoffset,
371 GLsizei width,
372 GLsizei height,
373 GLsizei depth,
374 GLenum format,
375 GLuint bucket_id) {
376 gles2::cmds::CompressedTexSubImage3DBucket* c =
377 GetCmdSpace<gles2::cmds::CompressedTexSubImage3DBucket>();
378 if (c) {
379 c->Init(target, level, xoffset, yoffset, zoffset, width, height, depth,
380 format, bucket_id);
384 void CompressedTexSubImage3D(GLenum target,
385 GLint level,
386 GLint xoffset,
387 GLint yoffset,
388 GLint zoffset,
389 GLsizei width,
390 GLsizei height,
391 GLsizei depth,
392 GLenum format,
393 GLsizei imageSize,
394 uint32_t data_shm_id,
395 uint32_t data_shm_offset) {
396 gles2::cmds::CompressedTexSubImage3D* c =
397 GetCmdSpace<gles2::cmds::CompressedTexSubImage3D>();
398 if (c) {
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,
405 GLenum writetarget,
406 GLintptr readoffset,
407 GLintptr writeoffset,
408 GLsizeiptr size) {
409 gles2::cmds::CopyBufferSubData* c =
410 GetCmdSpace<gles2::cmds::CopyBufferSubData>();
411 if (c) {
412 c->Init(readtarget, writetarget, readoffset, writeoffset, size);
416 void CopyTexImage2D(GLenum target,
417 GLint level,
418 GLenum internalformat,
419 GLint x,
420 GLint y,
421 GLsizei width,
422 GLsizei height) {
423 gles2::cmds::CopyTexImage2D* c = GetCmdSpace<gles2::cmds::CopyTexImage2D>();
424 if (c) {
425 c->Init(target, level, internalformat, x, y, width, height);
429 void CopyTexSubImage2D(GLenum target,
430 GLint level,
431 GLint xoffset,
432 GLint yoffset,
433 GLint x,
434 GLint y,
435 GLsizei width,
436 GLsizei height) {
437 gles2::cmds::CopyTexSubImage2D* c =
438 GetCmdSpace<gles2::cmds::CopyTexSubImage2D>();
439 if (c) {
440 c->Init(target, level, xoffset, yoffset, x, y, width, height);
444 void CopyTexSubImage3D(GLenum target,
445 GLint level,
446 GLint xoffset,
447 GLint yoffset,
448 GLint zoffset,
449 GLint x,
450 GLint y,
451 GLsizei width,
452 GLsizei height) {
453 gles2::cmds::CopyTexSubImage3D* c =
454 GetCmdSpace<gles2::cmds::CopyTexSubImage3D>();
455 if (c) {
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>();
462 if (c) {
463 c->Init(client_id);
467 void CreateShader(GLenum type, uint32_t client_id) {
468 gles2::cmds::CreateShader* c = GetCmdSpace<gles2::cmds::CreateShader>();
469 if (c) {
470 c->Init(type, client_id);
474 void CullFace(GLenum mode) {
475 gles2::cmds::CullFace* c = GetCmdSpace<gles2::cmds::CullFace>();
476 if (c) {
477 c->Init(mode);
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);
485 if (c) {
486 c->Init(n, buffers);
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>(
495 size);
496 if (c) {
497 c->Init(n, framebuffers);
501 void DeleteProgram(GLuint program) {
502 gles2::cmds::DeleteProgram* c = GetCmdSpace<gles2::cmds::DeleteProgram>();
503 if (c) {
504 c->Init(program);
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>(
513 size);
514 if (c) {
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);
523 if (c) {
524 c->Init(n, samplers);
528 void DeleteSync(GLuint sync) {
529 gles2::cmds::DeleteSync* c = GetCmdSpace<gles2::cmds::DeleteSync>();
530 if (c) {
531 c->Init(sync);
535 void DeleteShader(GLuint shader) {
536 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>();
537 if (c) {
538 c->Init(shader);
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);
546 if (c) {
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);
557 if (c) {
558 c->Init(n, ids);
562 void DepthFunc(GLenum func) {
563 gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>();
564 if (c) {
565 c->Init(func);
569 void DepthMask(GLboolean flag) {
570 gles2::cmds::DepthMask* c = GetCmdSpace<gles2::cmds::DepthMask>();
571 if (c) {
572 c->Init(flag);
576 void DepthRangef(GLclampf zNear, GLclampf zFar) {
577 gles2::cmds::DepthRangef* c = GetCmdSpace<gles2::cmds::DepthRangef>();
578 if (c) {
579 c->Init(zNear, zFar);
583 void DetachShader(GLuint program, GLuint shader) {
584 gles2::cmds::DetachShader* c = GetCmdSpace<gles2::cmds::DetachShader>();
585 if (c) {
586 c->Init(program, shader);
590 void Disable(GLenum cap) {
591 gles2::cmds::Disable* c = GetCmdSpace<gles2::cmds::Disable>();
592 if (c) {
593 c->Init(cap);
597 void DisableVertexAttribArray(GLuint index) {
598 gles2::cmds::DisableVertexAttribArray* c =
599 GetCmdSpace<gles2::cmds::DisableVertexAttribArray>();
600 if (c) {
601 c->Init(index);
605 void DrawArrays(GLenum mode, GLint first, GLsizei count) {
606 gles2::cmds::DrawArrays* c = GetCmdSpace<gles2::cmds::DrawArrays>();
607 if (c) {
608 c->Init(mode, first, count);
612 void DrawElements(GLenum mode,
613 GLsizei count,
614 GLenum type,
615 GLuint index_offset) {
616 gles2::cmds::DrawElements* c = GetCmdSpace<gles2::cmds::DrawElements>();
617 if (c) {
618 c->Init(mode, count, type, index_offset);
622 void Enable(GLenum cap) {
623 gles2::cmds::Enable* c = GetCmdSpace<gles2::cmds::Enable>();
624 if (c) {
625 c->Init(cap);
629 void EnableVertexAttribArray(GLuint index) {
630 gles2::cmds::EnableVertexAttribArray* c =
631 GetCmdSpace<gles2::cmds::EnableVertexAttribArray>();
632 if (c) {
633 c->Init(index);
637 void FenceSync(uint32_t client_id) {
638 gles2::cmds::FenceSync* c = GetCmdSpace<gles2::cmds::FenceSync>();
639 if (c) {
640 c->Init(client_id);
644 void Finish() {
645 gles2::cmds::Finish* c = GetCmdSpace<gles2::cmds::Finish>();
646 if (c) {
647 c->Init();
651 void Flush() {
652 gles2::cmds::Flush* c = GetCmdSpace<gles2::cmds::Flush>();
653 if (c) {
654 c->Init();
658 void FramebufferRenderbuffer(GLenum target,
659 GLenum attachment,
660 GLenum renderbuffertarget,
661 GLuint renderbuffer) {
662 gles2::cmds::FramebufferRenderbuffer* c =
663 GetCmdSpace<gles2::cmds::FramebufferRenderbuffer>();
664 if (c) {
665 c->Init(target, attachment, renderbuffertarget, renderbuffer);
669 void FramebufferTexture2D(GLenum target,
670 GLenum attachment,
671 GLenum textarget,
672 GLuint texture) {
673 gles2::cmds::FramebufferTexture2D* c =
674 GetCmdSpace<gles2::cmds::FramebufferTexture2D>();
675 if (c) {
676 c->Init(target, attachment, textarget, texture);
680 void FramebufferTextureLayer(GLenum target,
681 GLenum attachment,
682 GLuint texture,
683 GLint level,
684 GLint layer) {
685 gles2::cmds::FramebufferTextureLayer* c =
686 GetCmdSpace<gles2::cmds::FramebufferTextureLayer>();
687 if (c) {
688 c->Init(target, attachment, texture, level, layer);
692 void FrontFace(GLenum mode) {
693 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>();
694 if (c) {
695 c->Init(mode);
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);
703 if (c) {
704 c->Init(n, buffers);
708 void GenerateMipmap(GLenum target) {
709 gles2::cmds::GenerateMipmap* c = GetCmdSpace<gles2::cmds::GenerateMipmap>();
710 if (c) {
711 c->Init(target);
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>(
719 size);
720 if (c) {
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>(
729 size);
730 if (c) {
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);
739 if (c) {
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);
748 if (c) {
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);
759 if (c) {
760 c->Init(n, ids);
764 void GetActiveAttrib(GLuint program,
765 GLuint index,
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>();
770 if (c) {
771 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset);
775 void GetActiveUniform(GLuint program,
776 GLuint index,
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>();
782 if (c) {
783 c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset);
787 void GetActiveUniformBlockiv(GLuint program,
788 GLuint index,
789 GLenum pname,
790 uint32_t params_shm_id,
791 uint32_t params_shm_offset) {
792 gles2::cmds::GetActiveUniformBlockiv* c =
793 GetCmdSpace<gles2::cmds::GetActiveUniformBlockiv>();
794 if (c) {
795 c->Init(program, index, pname, params_shm_id, params_shm_offset);
799 void GetActiveUniformBlockName(GLuint program,
800 GLuint index,
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>();
806 if (c) {
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,
813 GLenum pname,
814 uint32_t params_shm_id,
815 uint32_t params_shm_offset) {
816 gles2::cmds::GetActiveUniformsiv* c =
817 GetCmdSpace<gles2::cmds::GetActiveUniformsiv>();
818 if (c) {
819 c->Init(program, indices_bucket_id, pname, params_shm_id,
820 params_shm_offset);
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>();
830 if (c) {
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>();
841 if (c) {
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>();
850 if (c) {
851 c->Init(pname, params_shm_id, params_shm_offset);
855 void GetBufferParameteri64v(GLenum target,
856 GLenum pname,
857 uint32_t params_shm_id,
858 uint32_t params_shm_offset) {
859 gles2::cmds::GetBufferParameteri64v* c =
860 GetCmdSpace<gles2::cmds::GetBufferParameteri64v>();
861 if (c) {
862 c->Init(target, pname, params_shm_id, params_shm_offset);
866 void GetBufferParameteriv(GLenum target,
867 GLenum pname,
868 uint32_t params_shm_id,
869 uint32_t params_shm_offset) {
870 gles2::cmds::GetBufferParameteriv* c =
871 GetCmdSpace<gles2::cmds::GetBufferParameteriv>();
872 if (c) {
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>();
879 if (c) {
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>();
888 if (c) {
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>();
899 if (c) {
900 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset);
904 void GetFramebufferAttachmentParameteriv(GLenum target,
905 GLenum attachment,
906 GLenum pname,
907 uint32_t params_shm_id,
908 uint32_t params_shm_offset) {
909 gles2::cmds::GetFramebufferAttachmentParameteriv* c =
910 GetCmdSpace<gles2::cmds::GetFramebufferAttachmentParameteriv>();
911 if (c) {
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>();
920 if (c) {
921 c->Init(pname, params_shm_id, params_shm_offset);
925 void GetIntegeri_v(GLenum pname,
926 GLuint index,
927 uint32_t data_shm_id,
928 uint32_t data_shm_offset) {
929 gles2::cmds::GetIntegeri_v* c = GetCmdSpace<gles2::cmds::GetIntegeri_v>();
930 if (c) {
931 c->Init(pname, index, data_shm_id, data_shm_offset);
935 void GetInteger64i_v(GLenum pname,
936 GLuint index,
937 uint32_t data_shm_id,
938 uint32_t data_shm_offset) {
939 gles2::cmds::GetInteger64i_v* c = GetCmdSpace<gles2::cmds::GetInteger64i_v>();
940 if (c) {
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>();
949 if (c) {
950 c->Init(pname, params_shm_id, params_shm_offset);
954 void GetInternalformativ(GLenum target,
955 GLenum format,
956 GLenum pname,
957 uint32_t params_shm_id,
958 uint32_t params_shm_offset) {
959 gles2::cmds::GetInternalformativ* c =
960 GetCmdSpace<gles2::cmds::GetInternalformativ>();
961 if (c) {
962 c->Init(target, format, pname, params_shm_id, params_shm_offset);
966 void GetProgramiv(GLuint program,
967 GLenum pname,
968 uint32_t params_shm_id,
969 uint32_t params_shm_offset) {
970 gles2::cmds::GetProgramiv* c = GetCmdSpace<gles2::cmds::GetProgramiv>();
971 if (c) {
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>();
979 if (c) {
980 c->Init(program, bucket_id);
984 void GetRenderbufferParameteriv(GLenum target,
985 GLenum pname,
986 uint32_t params_shm_id,
987 uint32_t params_shm_offset) {
988 gles2::cmds::GetRenderbufferParameteriv* c =
989 GetCmdSpace<gles2::cmds::GetRenderbufferParameteriv>();
990 if (c) {
991 c->Init(target, pname, params_shm_id, params_shm_offset);
995 void GetSamplerParameterfv(GLuint sampler,
996 GLenum pname,
997 uint32_t params_shm_id,
998 uint32_t params_shm_offset) {
999 gles2::cmds::GetSamplerParameterfv* c =
1000 GetCmdSpace<gles2::cmds::GetSamplerParameterfv>();
1001 if (c) {
1002 c->Init(sampler, pname, params_shm_id, params_shm_offset);
1006 void GetSamplerParameteriv(GLuint sampler,
1007 GLenum pname,
1008 uint32_t params_shm_id,
1009 uint32_t params_shm_offset) {
1010 gles2::cmds::GetSamplerParameteriv* c =
1011 GetCmdSpace<gles2::cmds::GetSamplerParameteriv>();
1012 if (c) {
1013 c->Init(sampler, pname, params_shm_id, params_shm_offset);
1017 void GetShaderiv(GLuint shader,
1018 GLenum pname,
1019 uint32_t params_shm_id,
1020 uint32_t params_shm_offset) {
1021 gles2::cmds::GetShaderiv* c = GetCmdSpace<gles2::cmds::GetShaderiv>();
1022 if (c) {
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>();
1030 if (c) {
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>();
1041 if (c) {
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>();
1048 if (c) {
1049 c->Init(shader, bucket_id);
1053 void GetString(GLenum name, uint32_t bucket_id) {
1054 gles2::cmds::GetString* c = GetCmdSpace<gles2::cmds::GetString>();
1055 if (c) {
1056 c->Init(name, bucket_id);
1060 void GetSynciv(GLuint sync,
1061 GLenum pname,
1062 uint32_t values_shm_id,
1063 uint32_t values_shm_offset) {
1064 gles2::cmds::GetSynciv* c = GetCmdSpace<gles2::cmds::GetSynciv>();
1065 if (c) {
1066 c->Init(sync, pname, values_shm_id, values_shm_offset);
1070 void GetTexParameterfv(GLenum target,
1071 GLenum pname,
1072 uint32_t params_shm_id,
1073 uint32_t params_shm_offset) {
1074 gles2::cmds::GetTexParameterfv* c =
1075 GetCmdSpace<gles2::cmds::GetTexParameterfv>();
1076 if (c) {
1077 c->Init(target, pname, params_shm_id, params_shm_offset);
1081 void GetTexParameteriv(GLenum target,
1082 GLenum pname,
1083 uint32_t params_shm_id,
1084 uint32_t params_shm_offset) {
1085 gles2::cmds::GetTexParameteriv* c =
1086 GetCmdSpace<gles2::cmds::GetTexParameteriv>();
1087 if (c) {
1088 c->Init(target, pname, params_shm_id, params_shm_offset);
1092 void GetTransformFeedbackVarying(GLuint program,
1093 GLuint index,
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>();
1099 if (c) {
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>();
1110 if (c) {
1111 c->Init(program, name_bucket_id, index_shm_id, index_shm_offset);
1115 void GetUniformfv(GLuint program,
1116 GLint location,
1117 uint32_t params_shm_id,
1118 uint32_t params_shm_offset) {
1119 gles2::cmds::GetUniformfv* c = GetCmdSpace<gles2::cmds::GetUniformfv>();
1120 if (c) {
1121 c->Init(program, location, params_shm_id, params_shm_offset);
1125 void GetUniformiv(GLuint program,
1126 GLint location,
1127 uint32_t params_shm_id,
1128 uint32_t params_shm_offset) {
1129 gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>();
1130 if (c) {
1131 c->Init(program, location, params_shm_id, params_shm_offset);
1135 void GetUniformuiv(GLuint program,
1136 GLint location,
1137 uint32_t params_shm_id,
1138 uint32_t params_shm_offset) {
1139 gles2::cmds::GetUniformuiv* c = GetCmdSpace<gles2::cmds::GetUniformuiv>();
1140 if (c) {
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>();
1151 if (c) {
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>();
1162 if (c) {
1163 c->Init(program, name_bucket_id, location_shm_id, location_shm_offset);
1167 void GetVertexAttribfv(GLuint index,
1168 GLenum pname,
1169 uint32_t params_shm_id,
1170 uint32_t params_shm_offset) {
1171 gles2::cmds::GetVertexAttribfv* c =
1172 GetCmdSpace<gles2::cmds::GetVertexAttribfv>();
1173 if (c) {
1174 c->Init(index, pname, params_shm_id, params_shm_offset);
1178 void GetVertexAttribiv(GLuint index,
1179 GLenum pname,
1180 uint32_t params_shm_id,
1181 uint32_t params_shm_offset) {
1182 gles2::cmds::GetVertexAttribiv* c =
1183 GetCmdSpace<gles2::cmds::GetVertexAttribiv>();
1184 if (c) {
1185 c->Init(index, pname, params_shm_id, params_shm_offset);
1189 void GetVertexAttribIiv(GLuint index,
1190 GLenum pname,
1191 uint32_t params_shm_id,
1192 uint32_t params_shm_offset) {
1193 gles2::cmds::GetVertexAttribIiv* c =
1194 GetCmdSpace<gles2::cmds::GetVertexAttribIiv>();
1195 if (c) {
1196 c->Init(index, pname, params_shm_id, params_shm_offset);
1200 void GetVertexAttribIuiv(GLuint index,
1201 GLenum pname,
1202 uint32_t params_shm_id,
1203 uint32_t params_shm_offset) {
1204 gles2::cmds::GetVertexAttribIuiv* c =
1205 GetCmdSpace<gles2::cmds::GetVertexAttribIuiv>();
1206 if (c) {
1207 c->Init(index, pname, params_shm_id, params_shm_offset);
1211 void GetVertexAttribPointerv(GLuint index,
1212 GLenum pname,
1213 uint32_t pointer_shm_id,
1214 uint32_t pointer_shm_offset) {
1215 gles2::cmds::GetVertexAttribPointerv* c =
1216 GetCmdSpace<gles2::cmds::GetVertexAttribPointerv>();
1217 if (c) {
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>();
1224 if (c) {
1225 c->Init(target, mode);
1229 void InvalidateFramebufferImmediate(GLenum target,
1230 GLsizei count,
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);
1237 if (c) {
1238 c->Init(target, count, attachments);
1242 void InvalidateSubFramebufferImmediate(GLenum target,
1243 GLsizei count,
1244 const GLenum* attachments,
1245 GLint x,
1246 GLint y,
1247 GLsizei width,
1248 GLsizei height) {
1249 const uint32_t size =
1250 gles2::cmds::InvalidateSubFramebufferImmediate::ComputeSize(count);
1251 gles2::cmds::InvalidateSubFramebufferImmediate* c =
1252 GetImmediateCmdSpaceTotalSize<
1253 gles2::cmds::InvalidateSubFramebufferImmediate>(size);
1254 if (c) {
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>();
1263 if (c) {
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>();
1270 if (c) {
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>();
1279 if (c) {
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>();
1288 if (c) {
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>();
1297 if (c) {
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>();
1306 if (c) {
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>();
1315 if (c) {
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>();
1322 if (c) {
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>();
1331 if (c) {
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>();
1341 if (c) {
1342 c->Init(transformfeedback, result_shm_id, result_shm_offset);
1346 void LineWidth(GLfloat width) {
1347 gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>();
1348 if (c) {
1349 c->Init(width);
1353 void LinkProgram(GLuint program) {
1354 gles2::cmds::LinkProgram* c = GetCmdSpace<gles2::cmds::LinkProgram>();
1355 if (c) {
1356 c->Init(program);
1360 void PauseTransformFeedback() {
1361 gles2::cmds::PauseTransformFeedback* c =
1362 GetCmdSpace<gles2::cmds::PauseTransformFeedback>();
1363 if (c) {
1364 c->Init();
1368 void PixelStorei(GLenum pname, GLint param) {
1369 gles2::cmds::PixelStorei* c = GetCmdSpace<gles2::cmds::PixelStorei>();
1370 if (c) {
1371 c->Init(pname, param);
1375 void PolygonOffset(GLfloat factor, GLfloat units) {
1376 gles2::cmds::PolygonOffset* c = GetCmdSpace<gles2::cmds::PolygonOffset>();
1377 if (c) {
1378 c->Init(factor, units);
1382 void ReadBuffer(GLenum src) {
1383 gles2::cmds::ReadBuffer* c = GetCmdSpace<gles2::cmds::ReadBuffer>();
1384 if (c) {
1385 c->Init(src);
1389 void ReadPixels(GLint x,
1390 GLint y,
1391 GLsizei width,
1392 GLsizei height,
1393 GLenum format,
1394 GLenum type,
1395 uint32_t pixels_shm_id,
1396 uint32_t pixels_shm_offset,
1397 uint32_t result_shm_id,
1398 uint32_t result_shm_offset,
1399 GLboolean async) {
1400 gles2::cmds::ReadPixels* c = GetCmdSpace<gles2::cmds::ReadPixels>();
1401 if (c) {
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>();
1410 if (c) {
1411 c->Init();
1415 void RenderbufferStorage(GLenum target,
1416 GLenum internalformat,
1417 GLsizei width,
1418 GLsizei height) {
1419 gles2::cmds::RenderbufferStorage* c =
1420 GetCmdSpace<gles2::cmds::RenderbufferStorage>();
1421 if (c) {
1422 c->Init(target, internalformat, width, height);
1426 void ResumeTransformFeedback() {
1427 gles2::cmds::ResumeTransformFeedback* c =
1428 GetCmdSpace<gles2::cmds::ResumeTransformFeedback>();
1429 if (c) {
1430 c->Init();
1434 void SampleCoverage(GLclampf value, GLboolean invert) {
1435 gles2::cmds::SampleCoverage* c = GetCmdSpace<gles2::cmds::SampleCoverage>();
1436 if (c) {
1437 c->Init(value, invert);
1441 void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) {
1442 gles2::cmds::SamplerParameterf* c =
1443 GetCmdSpace<gles2::cmds::SamplerParameterf>();
1444 if (c) {
1445 c->Init(sampler, pname, param);
1449 void SamplerParameterfvImmediate(GLuint sampler,
1450 GLenum pname,
1451 const GLfloat* params) {
1452 const uint32_t size = gles2::cmds::SamplerParameterfvImmediate::ComputeSize();
1453 gles2::cmds::SamplerParameterfvImmediate* c =
1454 GetImmediateCmdSpaceTotalSize<gles2::cmds::SamplerParameterfvImmediate>(
1455 size);
1456 if (c) {
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>();
1464 if (c) {
1465 c->Init(sampler, pname, param);
1469 void SamplerParameterivImmediate(GLuint sampler,
1470 GLenum pname,
1471 const GLint* params) {
1472 const uint32_t size = gles2::cmds::SamplerParameterivImmediate::ComputeSize();
1473 gles2::cmds::SamplerParameterivImmediate* c =
1474 GetImmediateCmdSpaceTotalSize<gles2::cmds::SamplerParameterivImmediate>(
1475 size);
1476 if (c) {
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>();
1483 if (c) {
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,
1494 GLsizei length) {
1495 gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>();
1496 if (c) {
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>();
1505 if (c) {
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>();
1512 if (c) {
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>();
1520 if (c) {
1521 c->Init(face, func, ref, mask);
1525 void StencilMask(GLuint mask) {
1526 gles2::cmds::StencilMask* c = GetCmdSpace<gles2::cmds::StencilMask>();
1527 if (c) {
1528 c->Init(mask);
1532 void StencilMaskSeparate(GLenum face, GLuint mask) {
1533 gles2::cmds::StencilMaskSeparate* c =
1534 GetCmdSpace<gles2::cmds::StencilMaskSeparate>();
1535 if (c) {
1536 c->Init(face, mask);
1540 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
1541 gles2::cmds::StencilOp* c = GetCmdSpace<gles2::cmds::StencilOp>();
1542 if (c) {
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>();
1550 if (c) {
1551 c->Init(face, fail, zfail, zpass);
1555 void TexImage2D(GLenum target,
1556 GLint level,
1557 GLint internalformat,
1558 GLsizei width,
1559 GLsizei height,
1560 GLenum format,
1561 GLenum type,
1562 uint32_t pixels_shm_id,
1563 uint32_t pixels_shm_offset) {
1564 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>();
1565 if (c) {
1566 c->Init(target, level, internalformat, width, height, format, type,
1567 pixels_shm_id, pixels_shm_offset);
1571 void TexImage3D(GLenum target,
1572 GLint level,
1573 GLint internalformat,
1574 GLsizei width,
1575 GLsizei height,
1576 GLsizei depth,
1577 GLenum format,
1578 GLenum type,
1579 uint32_t pixels_shm_id,
1580 uint32_t pixels_shm_offset) {
1581 gles2::cmds::TexImage3D* c = GetCmdSpace<gles2::cmds::TexImage3D>();
1582 if (c) {
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>();
1590 if (c) {
1591 c->Init(target, pname, param);
1595 void TexParameterfvImmediate(GLenum target,
1596 GLenum pname,
1597 const GLfloat* params) {
1598 const uint32_t size = gles2::cmds::TexParameterfvImmediate::ComputeSize();
1599 gles2::cmds::TexParameterfvImmediate* c =
1600 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterfvImmediate>(size);
1601 if (c) {
1602 c->Init(target, pname, params);
1606 void TexParameteri(GLenum target, GLenum pname, GLint param) {
1607 gles2::cmds::TexParameteri* c = GetCmdSpace<gles2::cmds::TexParameteri>();
1608 if (c) {
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);
1617 if (c) {
1618 c->Init(target, pname, params);
1622 void TexStorage3D(GLenum target,
1623 GLsizei levels,
1624 GLenum internalFormat,
1625 GLsizei width,
1626 GLsizei height,
1627 GLsizei depth) {
1628 gles2::cmds::TexStorage3D* c = GetCmdSpace<gles2::cmds::TexStorage3D>();
1629 if (c) {
1630 c->Init(target, levels, internalFormat, width, height, depth);
1634 void TexSubImage2D(GLenum target,
1635 GLint level,
1636 GLint xoffset,
1637 GLint yoffset,
1638 GLsizei width,
1639 GLsizei height,
1640 GLenum format,
1641 GLenum type,
1642 uint32_t pixels_shm_id,
1643 uint32_t pixels_shm_offset,
1644 GLboolean internal) {
1645 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>();
1646 if (c) {
1647 c->Init(target, level, xoffset, yoffset, width, height, format, type,
1648 pixels_shm_id, pixels_shm_offset, internal);
1652 void TexSubImage3D(GLenum target,
1653 GLint level,
1654 GLint xoffset,
1655 GLint yoffset,
1656 GLint zoffset,
1657 GLsizei width,
1658 GLsizei height,
1659 GLsizei depth,
1660 GLenum format,
1661 GLenum type,
1662 uint32_t pixels_shm_id,
1663 uint32_t pixels_shm_offset,
1664 GLboolean internal) {
1665 gles2::cmds::TexSubImage3D* c = GetCmdSpace<gles2::cmds::TexSubImage3D>();
1666 if (c) {
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>();
1677 if (c) {
1678 c->Init(program, varyings_bucket_id, buffermode);
1682 void Uniform1f(GLint location, GLfloat x) {
1683 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>();
1684 if (c) {
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);
1693 if (c) {
1694 c->Init(location, count, v);
1698 void Uniform1i(GLint location, GLint x) {
1699 gles2::cmds::Uniform1i* c = GetCmdSpace<gles2::cmds::Uniform1i>();
1700 if (c) {
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);
1709 if (c) {
1710 c->Init(location, count, v);
1714 void Uniform1ui(GLint location, GLuint x) {
1715 gles2::cmds::Uniform1ui* c = GetCmdSpace<gles2::cmds::Uniform1ui>();
1716 if (c) {
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);
1725 if (c) {
1726 c->Init(location, count, v);
1730 void Uniform2f(GLint location, GLfloat x, GLfloat y) {
1731 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>();
1732 if (c) {
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);
1741 if (c) {
1742 c->Init(location, count, v);
1746 void Uniform2i(GLint location, GLint x, GLint y) {
1747 gles2::cmds::Uniform2i* c = GetCmdSpace<gles2::cmds::Uniform2i>();
1748 if (c) {
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);
1757 if (c) {
1758 c->Init(location, count, v);
1762 void Uniform2ui(GLint location, GLuint x, GLuint y) {
1763 gles2::cmds::Uniform2ui* c = GetCmdSpace<gles2::cmds::Uniform2ui>();
1764 if (c) {
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);
1773 if (c) {
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>();
1780 if (c) {
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);
1789 if (c) {
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>();
1796 if (c) {
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);
1805 if (c) {
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>();
1812 if (c) {
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);
1821 if (c) {
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>();
1828 if (c) {
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);
1837 if (c) {
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>();
1844 if (c) {
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);
1853 if (c) {
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>();
1860 if (c) {
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);
1869 if (c) {
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>();
1877 if (c) {
1878 c->Init(program, index, binding);
1882 void UniformMatrix2fvImmediate(GLint location,
1883 GLsizei count,
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>(
1889 size);
1890 if (c) {
1891 c->Init(location, count, value);
1895 void UniformMatrix2x3fvImmediate(GLint location,
1896 GLsizei count,
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>(
1902 size);
1903 if (c) {
1904 c->Init(location, count, value);
1908 void UniformMatrix2x4fvImmediate(GLint location,
1909 GLsizei count,
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>(
1915 size);
1916 if (c) {
1917 c->Init(location, count, value);
1921 void UniformMatrix3fvImmediate(GLint location,
1922 GLsizei count,
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>(
1928 size);
1929 if (c) {
1930 c->Init(location, count, value);
1934 void UniformMatrix3x2fvImmediate(GLint location,
1935 GLsizei count,
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>(
1941 size);
1942 if (c) {
1943 c->Init(location, count, value);
1947 void UniformMatrix3x4fvImmediate(GLint location,
1948 GLsizei count,
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>(
1954 size);
1955 if (c) {
1956 c->Init(location, count, value);
1960 void UniformMatrix4fvImmediate(GLint location,
1961 GLsizei count,
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>(
1967 size);
1968 if (c) {
1969 c->Init(location, count, value);
1973 void UniformMatrix4x2fvImmediate(GLint location,
1974 GLsizei count,
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>(
1980 size);
1981 if (c) {
1982 c->Init(location, count, value);
1986 void UniformMatrix4x3fvImmediate(GLint location,
1987 GLsizei count,
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>(
1993 size);
1994 if (c) {
1995 c->Init(location, count, value);
1999 void UseProgram(GLuint program) {
2000 gles2::cmds::UseProgram* c = GetCmdSpace<gles2::cmds::UseProgram>();
2001 if (c) {
2002 c->Init(program);
2006 void ValidateProgram(GLuint program) {
2007 gles2::cmds::ValidateProgram* c = GetCmdSpace<gles2::cmds::ValidateProgram>();
2008 if (c) {
2009 c->Init(program);
2013 void VertexAttrib1f(GLuint indx, GLfloat x) {
2014 gles2::cmds::VertexAttrib1f* c = GetCmdSpace<gles2::cmds::VertexAttrib1f>();
2015 if (c) {
2016 c->Init(indx, x);
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>(
2024 size);
2025 if (c) {
2026 c->Init(indx, values);
2030 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
2031 gles2::cmds::VertexAttrib2f* c = GetCmdSpace<gles2::cmds::VertexAttrib2f>();
2032 if (c) {
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>(
2041 size);
2042 if (c) {
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>();
2049 if (c) {
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>(
2058 size);
2059 if (c) {
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>();
2066 if (c) {
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>(
2075 size);
2076 if (c) {
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>();
2083 if (c) {
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>(
2092 size);
2093 if (c) {
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>();
2101 if (c) {
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>(
2110 size);
2111 if (c) {
2112 c->Init(indx, values);
2116 void VertexAttribIPointer(GLuint indx,
2117 GLint size,
2118 GLenum type,
2119 GLsizei stride,
2120 GLuint offset) {
2121 gles2::cmds::VertexAttribIPointer* c =
2122 GetCmdSpace<gles2::cmds::VertexAttribIPointer>();
2123 if (c) {
2124 c->Init(indx, size, type, stride, offset);
2128 void VertexAttribPointer(GLuint indx,
2129 GLint size,
2130 GLenum type,
2131 GLboolean normalized,
2132 GLsizei stride,
2133 GLuint offset) {
2134 gles2::cmds::VertexAttribPointer* c =
2135 GetCmdSpace<gles2::cmds::VertexAttribPointer>();
2136 if (c) {
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>();
2143 if (c) {
2144 c->Init(x, y, width, height);
2148 void WaitSync(GLuint sync,
2149 GLbitfield flags,
2150 GLuint timeout_0,
2151 GLuint timeout_1) {
2152 gles2::cmds::WaitSync* c = GetCmdSpace<gles2::cmds::WaitSync>();
2153 if (c) {
2154 c->Init(sync, flags, timeout_0, timeout_1);
2158 void BlitFramebufferCHROMIUM(GLint srcX0,
2159 GLint srcY0,
2160 GLint srcX1,
2161 GLint srcY1,
2162 GLint dstX0,
2163 GLint dstY0,
2164 GLint dstX1,
2165 GLint dstY1,
2166 GLbitfield mask,
2167 GLenum filter) {
2168 gles2::cmds::BlitFramebufferCHROMIUM* c =
2169 GetCmdSpace<gles2::cmds::BlitFramebufferCHROMIUM>();
2170 if (c) {
2171 c->Init(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask,
2172 filter);
2176 void RenderbufferStorageMultisampleCHROMIUM(GLenum target,
2177 GLsizei samples,
2178 GLenum internalformat,
2179 GLsizei width,
2180 GLsizei height) {
2181 gles2::cmds::RenderbufferStorageMultisampleCHROMIUM* c =
2182 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleCHROMIUM>();
2183 if (c) {
2184 c->Init(target, samples, internalformat, width, height);
2188 void RenderbufferStorageMultisampleEXT(GLenum target,
2189 GLsizei samples,
2190 GLenum internalformat,
2191 GLsizei width,
2192 GLsizei height) {
2193 gles2::cmds::RenderbufferStorageMultisampleEXT* c =
2194 GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleEXT>();
2195 if (c) {
2196 c->Init(target, samples, internalformat, width, height);
2200 void FramebufferTexture2DMultisampleEXT(GLenum target,
2201 GLenum attachment,
2202 GLenum textarget,
2203 GLuint texture,
2204 GLsizei samples) {
2205 gles2::cmds::FramebufferTexture2DMultisampleEXT* c =
2206 GetCmdSpace<gles2::cmds::FramebufferTexture2DMultisampleEXT>();
2207 if (c) {
2208 c->Init(target, attachment, textarget, texture, samples);
2212 void TexStorage2DEXT(GLenum target,
2213 GLsizei levels,
2214 GLenum internalFormat,
2215 GLsizei width,
2216 GLsizei height) {
2217 gles2::cmds::TexStorage2DEXT* c = GetCmdSpace<gles2::cmds::TexStorage2DEXT>();
2218 if (c) {
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);
2227 if (c) {
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>(
2236 size);
2237 if (c) {
2238 c->Init(n, queries);
2242 void QueryCounterEXT(GLuint id,
2243 GLenum target,
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>();
2248 if (c) {
2249 c->Init(id, target, sync_data_shm_id, sync_data_shm_offset, submit_count);
2253 void BeginQueryEXT(GLenum target,
2254 GLuint id,
2255 uint32_t sync_data_shm_id,
2256 uint32_t sync_data_shm_offset) {
2257 gles2::cmds::BeginQueryEXT* c = GetCmdSpace<gles2::cmds::BeginQueryEXT>();
2258 if (c) {
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>();
2266 if (c) {
2267 c->Init(primitivemode);
2271 void EndQueryEXT(GLenum target, GLuint submit_count) {
2272 gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>();
2273 if (c) {
2274 c->Init(target, submit_count);
2278 void EndTransformFeedback() {
2279 gles2::cmds::EndTransformFeedback* c =
2280 GetCmdSpace<gles2::cmds::EndTransformFeedback>();
2281 if (c) {
2282 c->Init();
2286 void SetDisjointValueSyncCHROMIUM(uint32_t sync_data_shm_id,
2287 uint32_t sync_data_shm_offset) {
2288 gles2::cmds::SetDisjointValueSyncCHROMIUM* c =
2289 GetCmdSpace<gles2::cmds::SetDisjointValueSyncCHROMIUM>();
2290 if (c) {
2291 c->Init(sync_data_shm_id, sync_data_shm_offset);
2295 void InsertEventMarkerEXT(GLuint bucket_id) {
2296 gles2::cmds::InsertEventMarkerEXT* c =
2297 GetCmdSpace<gles2::cmds::InsertEventMarkerEXT>();
2298 if (c) {
2299 c->Init(bucket_id);
2303 void PushGroupMarkerEXT(GLuint bucket_id) {
2304 gles2::cmds::PushGroupMarkerEXT* c =
2305 GetCmdSpace<gles2::cmds::PushGroupMarkerEXT>();
2306 if (c) {
2307 c->Init(bucket_id);
2311 void PopGroupMarkerEXT() {
2312 gles2::cmds::PopGroupMarkerEXT* c =
2313 GetCmdSpace<gles2::cmds::PopGroupMarkerEXT>();
2314 if (c) {
2315 c->Init();
2319 void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) {
2320 const uint32_t size =
2321 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n);
2322 gles2::cmds::GenVertexArraysOESImmediate* c =
2323 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenVertexArraysOESImmediate>(
2324 size);
2325 if (c) {
2326 c->Init(n, arrays);
2330 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) {
2331 const uint32_t size =
2332 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n);
2333 gles2::cmds::DeleteVertexArraysOESImmediate* c =
2334 GetImmediateCmdSpaceTotalSize<
2335 gles2::cmds::DeleteVertexArraysOESImmediate>(size);
2336 if (c) {
2337 c->Init(n, arrays);
2341 void IsVertexArrayOES(GLuint array,
2342 uint32_t result_shm_id,
2343 uint32_t result_shm_offset) {
2344 gles2::cmds::IsVertexArrayOES* c =
2345 GetCmdSpace<gles2::cmds::IsVertexArrayOES>();
2346 if (c) {
2347 c->Init(array, result_shm_id, result_shm_offset);
2351 void BindVertexArrayOES(GLuint array) {
2352 gles2::cmds::BindVertexArrayOES* c =
2353 GetCmdSpace<gles2::cmds::BindVertexArrayOES>();
2354 if (c) {
2355 c->Init(array);
2359 void SwapBuffers() {
2360 gles2::cmds::SwapBuffers* c = GetCmdSpace<gles2::cmds::SwapBuffers>();
2361 if (c) {
2362 c->Init();
2366 void GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
2367 GLsizei count,
2368 GLenum type,
2369 GLuint offset,
2370 uint32_t result_shm_id,
2371 uint32_t result_shm_offset) {
2372 gles2::cmds::GetMaxValueInBufferCHROMIUM* c =
2373 GetCmdSpace<gles2::cmds::GetMaxValueInBufferCHROMIUM>();
2374 if (c) {
2375 c->Init(buffer_id, count, type, offset, result_shm_id, result_shm_offset);
2379 void EnableFeatureCHROMIUM(GLuint bucket_id,
2380 uint32_t result_shm_id,
2381 uint32_t result_shm_offset) {
2382 gles2::cmds::EnableFeatureCHROMIUM* c =
2383 GetCmdSpace<gles2::cmds::EnableFeatureCHROMIUM>();
2384 if (c) {
2385 c->Init(bucket_id, result_shm_id, result_shm_offset);
2389 void MapBufferRange(GLenum target,
2390 GLintptr offset,
2391 GLsizeiptr size,
2392 GLbitfield access,
2393 uint32_t data_shm_id,
2394 uint32_t data_shm_offset,
2395 uint32_t result_shm_id,
2396 uint32_t result_shm_offset) {
2397 gles2::cmds::MapBufferRange* c = GetCmdSpace<gles2::cmds::MapBufferRange>();
2398 if (c) {
2399 c->Init(target, offset, size, access, data_shm_id, data_shm_offset,
2400 result_shm_id, result_shm_offset);
2404 void UnmapBuffer(GLenum target) {
2405 gles2::cmds::UnmapBuffer* c = GetCmdSpace<gles2::cmds::UnmapBuffer>();
2406 if (c) {
2407 c->Init(target);
2411 void ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) {
2412 gles2::cmds::ResizeCHROMIUM* c = GetCmdSpace<gles2::cmds::ResizeCHROMIUM>();
2413 if (c) {
2414 c->Init(width, height, scale_factor);
2418 void GetRequestableExtensionsCHROMIUM(uint32_t bucket_id) {
2419 gles2::cmds::GetRequestableExtensionsCHROMIUM* c =
2420 GetCmdSpace<gles2::cmds::GetRequestableExtensionsCHROMIUM>();
2421 if (c) {
2422 c->Init(bucket_id);
2426 void RequestExtensionCHROMIUM(uint32_t bucket_id) {
2427 gles2::cmds::RequestExtensionCHROMIUM* c =
2428 GetCmdSpace<gles2::cmds::RequestExtensionCHROMIUM>();
2429 if (c) {
2430 c->Init(bucket_id);
2434 void GetProgramInfoCHROMIUM(GLuint program, uint32_t bucket_id) {
2435 gles2::cmds::GetProgramInfoCHROMIUM* c =
2436 GetCmdSpace<gles2::cmds::GetProgramInfoCHROMIUM>();
2437 if (c) {
2438 c->Init(program, bucket_id);
2442 void GetUniformBlocksCHROMIUM(GLuint program, uint32_t bucket_id) {
2443 gles2::cmds::GetUniformBlocksCHROMIUM* c =
2444 GetCmdSpace<gles2::cmds::GetUniformBlocksCHROMIUM>();
2445 if (c) {
2446 c->Init(program, bucket_id);
2450 void GetTransformFeedbackVaryingsCHROMIUM(GLuint program, uint32_t bucket_id) {
2451 gles2::cmds::GetTransformFeedbackVaryingsCHROMIUM* c =
2452 GetCmdSpace<gles2::cmds::GetTransformFeedbackVaryingsCHROMIUM>();
2453 if (c) {
2454 c->Init(program, bucket_id);
2458 void GetUniformsES3CHROMIUM(GLuint program, uint32_t bucket_id) {
2459 gles2::cmds::GetUniformsES3CHROMIUM* c =
2460 GetCmdSpace<gles2::cmds::GetUniformsES3CHROMIUM>();
2461 if (c) {
2462 c->Init(program, bucket_id);
2466 void GetTranslatedShaderSourceANGLE(GLuint shader, uint32_t bucket_id) {
2467 gles2::cmds::GetTranslatedShaderSourceANGLE* c =
2468 GetCmdSpace<gles2::cmds::GetTranslatedShaderSourceANGLE>();
2469 if (c) {
2470 c->Init(shader, bucket_id);
2474 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
2475 gles2::cmds::PostSubBufferCHROMIUM* c =
2476 GetCmdSpace<gles2::cmds::PostSubBufferCHROMIUM>();
2477 if (c) {
2478 c->Init(x, y, width, height);
2482 void TexImageIOSurface2DCHROMIUM(GLenum target,
2483 GLsizei width,
2484 GLsizei height,
2485 GLuint ioSurfaceId,
2486 GLuint plane) {
2487 gles2::cmds::TexImageIOSurface2DCHROMIUM* c =
2488 GetCmdSpace<gles2::cmds::TexImageIOSurface2DCHROMIUM>();
2489 if (c) {
2490 c->Init(target, width, height, ioSurfaceId, plane);
2494 void CopyTextureCHROMIUM(GLenum target,
2495 GLenum source_id,
2496 GLenum dest_id,
2497 GLint internalformat,
2498 GLenum dest_type,
2499 GLboolean unpack_flip_y,
2500 GLboolean unpack_premultiply_alpha,
2501 GLboolean unpack_unmultiply_alpha) {
2502 gles2::cmds::CopyTextureCHROMIUM* c =
2503 GetCmdSpace<gles2::cmds::CopyTextureCHROMIUM>();
2504 if (c) {
2505 c->Init(target, source_id, dest_id, internalformat, dest_type,
2506 unpack_flip_y, unpack_premultiply_alpha, unpack_unmultiply_alpha);
2510 void CopySubTextureCHROMIUM(GLenum target,
2511 GLenum source_id,
2512 GLenum dest_id,
2513 GLint xoffset,
2514 GLint yoffset,
2515 GLint x,
2516 GLint y,
2517 GLsizei width,
2518 GLsizei height,
2519 GLboolean unpack_flip_y,
2520 GLboolean unpack_premultiply_alpha,
2521 GLboolean unpack_unmultiply_alpha) {
2522 gles2::cmds::CopySubTextureCHROMIUM* c =
2523 GetCmdSpace<gles2::cmds::CopySubTextureCHROMIUM>();
2524 if (c) {
2525 c->Init(target, source_id, dest_id, xoffset, yoffset, x, y, width, height,
2526 unpack_flip_y, unpack_premultiply_alpha, unpack_unmultiply_alpha);
2530 void CompressedCopyTextureCHROMIUM(GLenum target,
2531 GLenum source_id,
2532 GLenum dest_id) {
2533 gles2::cmds::CompressedCopyTextureCHROMIUM* c =
2534 GetCmdSpace<gles2::cmds::CompressedCopyTextureCHROMIUM>();
2535 if (c) {
2536 c->Init(target, source_id, dest_id);
2540 void CompressedCopySubTextureCHROMIUM(GLenum target,
2541 GLenum source_id,
2542 GLenum dest_id,
2543 GLint xoffset,
2544 GLint yoffset,
2545 GLint x,
2546 GLint y,
2547 GLsizei width,
2548 GLsizei height) {
2549 gles2::cmds::CompressedCopySubTextureCHROMIUM* c =
2550 GetCmdSpace<gles2::cmds::CompressedCopySubTextureCHROMIUM>();
2551 if (c) {
2552 c->Init(target, source_id, dest_id, xoffset, yoffset, x, y, width, height);
2556 void DrawArraysInstancedANGLE(GLenum mode,
2557 GLint first,
2558 GLsizei count,
2559 GLsizei primcount) {
2560 gles2::cmds::DrawArraysInstancedANGLE* c =
2561 GetCmdSpace<gles2::cmds::DrawArraysInstancedANGLE>();
2562 if (c) {
2563 c->Init(mode, first, count, primcount);
2567 void DrawElementsInstancedANGLE(GLenum mode,
2568 GLsizei count,
2569 GLenum type,
2570 GLuint index_offset,
2571 GLsizei primcount) {
2572 gles2::cmds::DrawElementsInstancedANGLE* c =
2573 GetCmdSpace<gles2::cmds::DrawElementsInstancedANGLE>();
2574 if (c) {
2575 c->Init(mode, count, type, index_offset, primcount);
2579 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
2580 gles2::cmds::VertexAttribDivisorANGLE* c =
2581 GetCmdSpace<gles2::cmds::VertexAttribDivisorANGLE>();
2582 if (c) {
2583 c->Init(index, divisor);
2587 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
2588 const uint32_t size =
2589 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
2590 gles2::cmds::ProduceTextureCHROMIUMImmediate* c =
2591 GetImmediateCmdSpaceTotalSize<
2592 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size);
2593 if (c) {
2594 c->Init(target, mailbox);
2598 void ProduceTextureDirectCHROMIUMImmediate(GLuint texture,
2599 GLenum target,
2600 const GLbyte* mailbox) {
2601 const uint32_t size =
2602 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate::ComputeSize();
2603 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate* c =
2604 GetImmediateCmdSpaceTotalSize<
2605 gles2::cmds::ProduceTextureDirectCHROMIUMImmediate>(size);
2606 if (c) {
2607 c->Init(texture, target, mailbox);
2611 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
2612 const uint32_t size =
2613 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
2614 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c =
2615 GetImmediateCmdSpaceTotalSize<
2616 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size);
2617 if (c) {
2618 c->Init(target, mailbox);
2622 void BindUniformLocationCHROMIUMBucket(GLuint program,
2623 GLint location,
2624 uint32_t name_bucket_id) {
2625 gles2::cmds::BindUniformLocationCHROMIUMBucket* c =
2626 GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>();
2627 if (c) {
2628 c->Init(program, location, name_bucket_id);
2632 void GenValuebuffersCHROMIUMImmediate(GLsizei n, GLuint* buffers) {
2633 const uint32_t size =
2634 gles2::cmds::GenValuebuffersCHROMIUMImmediate::ComputeSize(n);
2635 gles2::cmds::GenValuebuffersCHROMIUMImmediate* c =
2636 GetImmediateCmdSpaceTotalSize<
2637 gles2::cmds::GenValuebuffersCHROMIUMImmediate>(size);
2638 if (c) {
2639 c->Init(n, buffers);
2643 void DeleteValuebuffersCHROMIUMImmediate(GLsizei n,
2644 const GLuint* valuebuffers) {
2645 const uint32_t size =
2646 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate::ComputeSize(n);
2647 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate* c =
2648 GetImmediateCmdSpaceTotalSize<
2649 gles2::cmds::DeleteValuebuffersCHROMIUMImmediate>(size);
2650 if (c) {
2651 c->Init(n, valuebuffers);
2655 void IsValuebufferCHROMIUM(GLuint valuebuffer,
2656 uint32_t result_shm_id,
2657 uint32_t result_shm_offset) {
2658 gles2::cmds::IsValuebufferCHROMIUM* c =
2659 GetCmdSpace<gles2::cmds::IsValuebufferCHROMIUM>();
2660 if (c) {
2661 c->Init(valuebuffer, result_shm_id, result_shm_offset);
2665 void BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) {
2666 gles2::cmds::BindValuebufferCHROMIUM* c =
2667 GetCmdSpace<gles2::cmds::BindValuebufferCHROMIUM>();
2668 if (c) {
2669 c->Init(target, valuebuffer);
2673 void SubscribeValueCHROMIUM(GLenum target, GLenum subscription) {
2674 gles2::cmds::SubscribeValueCHROMIUM* c =
2675 GetCmdSpace<gles2::cmds::SubscribeValueCHROMIUM>();
2676 if (c) {
2677 c->Init(target, subscription);
2681 void PopulateSubscribedValuesCHROMIUM(GLenum target) {
2682 gles2::cmds::PopulateSubscribedValuesCHROMIUM* c =
2683 GetCmdSpace<gles2::cmds::PopulateSubscribedValuesCHROMIUM>();
2684 if (c) {
2685 c->Init(target);
2689 void UniformValuebufferCHROMIUM(GLint location,
2690 GLenum target,
2691 GLenum subscription) {
2692 gles2::cmds::UniformValuebufferCHROMIUM* c =
2693 GetCmdSpace<gles2::cmds::UniformValuebufferCHROMIUM>();
2694 if (c) {
2695 c->Init(location, target, subscription);
2699 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
2700 gles2::cmds::BindTexImage2DCHROMIUM* c =
2701 GetCmdSpace<gles2::cmds::BindTexImage2DCHROMIUM>();
2702 if (c) {
2703 c->Init(target, imageId);
2707 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
2708 gles2::cmds::ReleaseTexImage2DCHROMIUM* c =
2709 GetCmdSpace<gles2::cmds::ReleaseTexImage2DCHROMIUM>();
2710 if (c) {
2711 c->Init(target, imageId);
2715 void TraceBeginCHROMIUM(GLuint category_bucket_id, GLuint name_bucket_id) {
2716 gles2::cmds::TraceBeginCHROMIUM* c =
2717 GetCmdSpace<gles2::cmds::TraceBeginCHROMIUM>();
2718 if (c) {
2719 c->Init(category_bucket_id, name_bucket_id);
2723 void TraceEndCHROMIUM() {
2724 gles2::cmds::TraceEndCHROMIUM* c =
2725 GetCmdSpace<gles2::cmds::TraceEndCHROMIUM>();
2726 if (c) {
2727 c->Init();
2731 void DiscardFramebufferEXTImmediate(GLenum target,
2732 GLsizei count,
2733 const GLenum* attachments) {
2734 const uint32_t size =
2735 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count);
2736 gles2::cmds::DiscardFramebufferEXTImmediate* c =
2737 GetImmediateCmdSpaceTotalSize<
2738 gles2::cmds::DiscardFramebufferEXTImmediate>(size);
2739 if (c) {
2740 c->Init(target, count, attachments);
2744 void LoseContextCHROMIUM(GLenum current, GLenum other) {
2745 gles2::cmds::LoseContextCHROMIUM* c =
2746 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>();
2747 if (c) {
2748 c->Init(current, other);
2752 void WaitSyncPointCHROMIUM(GLuint sync_point) {
2753 gles2::cmds::WaitSyncPointCHROMIUM* c =
2754 GetCmdSpace<gles2::cmds::WaitSyncPointCHROMIUM>();
2755 if (c) {
2756 c->Init(sync_point);
2760 void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) {
2761 const uint32_t size =
2762 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count);
2763 gles2::cmds::DrawBuffersEXTImmediate* c =
2764 GetImmediateCmdSpaceTotalSize<gles2::cmds::DrawBuffersEXTImmediate>(size);
2765 if (c) {
2766 c->Init(count, bufs);
2770 void DiscardBackbufferCHROMIUM() {
2771 gles2::cmds::DiscardBackbufferCHROMIUM* c =
2772 GetCmdSpace<gles2::cmds::DiscardBackbufferCHROMIUM>();
2773 if (c) {
2774 c->Init();
2778 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
2779 GLenum plane_transform,
2780 GLuint overlay_texture_id,
2781 GLint bounds_x,
2782 GLint bounds_y,
2783 GLint bounds_width,
2784 GLint bounds_height,
2785 GLfloat uv_x,
2786 GLfloat uv_y,
2787 GLfloat uv_width,
2788 GLfloat uv_height) {
2789 gles2::cmds::ScheduleOverlayPlaneCHROMIUM* c =
2790 GetCmdSpace<gles2::cmds::ScheduleOverlayPlaneCHROMIUM>();
2791 if (c) {
2792 c->Init(plane_z_order, plane_transform, overlay_texture_id, bounds_x,
2793 bounds_y, bounds_width, bounds_height, uv_x, uv_y, uv_width,
2794 uv_height);
2798 void SwapInterval(GLint interval) {
2799 gles2::cmds::SwapInterval* c = GetCmdSpace<gles2::cmds::SwapInterval>();
2800 if (c) {
2801 c->Init(interval);
2805 void FlushDriverCachesCHROMIUM() {
2806 gles2::cmds::FlushDriverCachesCHROMIUM* c =
2807 GetCmdSpace<gles2::cmds::FlushDriverCachesCHROMIUM>();
2808 if (c) {
2809 c->Init();
2813 void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode, const GLfloat* m) {
2814 const uint32_t size =
2815 gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize();
2816 gles2::cmds::MatrixLoadfCHROMIUMImmediate* c =
2817 GetImmediateCmdSpaceTotalSize<gles2::cmds::MatrixLoadfCHROMIUMImmediate>(
2818 size);
2819 if (c) {
2820 c->Init(matrixMode, m);
2824 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
2825 gles2::cmds::MatrixLoadIdentityCHROMIUM* c =
2826 GetCmdSpace<gles2::cmds::MatrixLoadIdentityCHROMIUM>();
2827 if (c) {
2828 c->Init(matrixMode);
2832 void GenPathsCHROMIUM(GLuint first_client_id, GLsizei range) {
2833 gles2::cmds::GenPathsCHROMIUM* c =
2834 GetCmdSpace<gles2::cmds::GenPathsCHROMIUM>();
2835 if (c) {
2836 c->Init(first_client_id, range);
2840 void DeletePathsCHROMIUM(GLuint first_client_id, GLsizei range) {
2841 gles2::cmds::DeletePathsCHROMIUM* c =
2842 GetCmdSpace<gles2::cmds::DeletePathsCHROMIUM>();
2843 if (c) {
2844 c->Init(first_client_id, range);
2848 void IsPathCHROMIUM(GLuint path,
2849 uint32_t result_shm_id,
2850 uint32_t result_shm_offset) {
2851 gles2::cmds::IsPathCHROMIUM* c = GetCmdSpace<gles2::cmds::IsPathCHROMIUM>();
2852 if (c) {
2853 c->Init(path, result_shm_id, result_shm_offset);
2857 void PathCommandsCHROMIUM(GLuint path,
2858 GLsizei numCommands,
2859 uint32_t commands_shm_id,
2860 uint32_t commands_shm_offset,
2861 GLsizei numCoords,
2862 GLenum coordType,
2863 uint32_t coords_shm_id,
2864 uint32_t coords_shm_offset) {
2865 gles2::cmds::PathCommandsCHROMIUM* c =
2866 GetCmdSpace<gles2::cmds::PathCommandsCHROMIUM>();
2867 if (c) {
2868 c->Init(path, numCommands, commands_shm_id, commands_shm_offset, numCoords,
2869 coordType, coords_shm_id, coords_shm_offset);
2873 void PathParameterfCHROMIUM(GLuint path, GLenum pname, GLfloat value) {
2874 gles2::cmds::PathParameterfCHROMIUM* c =
2875 GetCmdSpace<gles2::cmds::PathParameterfCHROMIUM>();
2876 if (c) {
2877 c->Init(path, pname, value);
2881 void PathParameteriCHROMIUM(GLuint path, GLenum pname, GLint value) {
2882 gles2::cmds::PathParameteriCHROMIUM* c =
2883 GetCmdSpace<gles2::cmds::PathParameteriCHROMIUM>();
2884 if (c) {
2885 c->Init(path, pname, value);
2889 void PathStencilFuncCHROMIUM(GLenum func, GLint ref, GLuint mask) {
2890 gles2::cmds::PathStencilFuncCHROMIUM* c =
2891 GetCmdSpace<gles2::cmds::PathStencilFuncCHROMIUM>();
2892 if (c) {
2893 c->Init(func, ref, mask);
2897 void StencilFillPathCHROMIUM(GLuint path, GLenum fillMode, GLuint mask) {
2898 gles2::cmds::StencilFillPathCHROMIUM* c =
2899 GetCmdSpace<gles2::cmds::StencilFillPathCHROMIUM>();
2900 if (c) {
2901 c->Init(path, fillMode, mask);
2905 void StencilStrokePathCHROMIUM(GLuint path, GLint reference, GLuint mask) {
2906 gles2::cmds::StencilStrokePathCHROMIUM* c =
2907 GetCmdSpace<gles2::cmds::StencilStrokePathCHROMIUM>();
2908 if (c) {
2909 c->Init(path, reference, mask);
2913 void CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) {
2914 gles2::cmds::CoverFillPathCHROMIUM* c =
2915 GetCmdSpace<gles2::cmds::CoverFillPathCHROMIUM>();
2916 if (c) {
2917 c->Init(path, coverMode);
2921 void CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) {
2922 gles2::cmds::CoverStrokePathCHROMIUM* c =
2923 GetCmdSpace<gles2::cmds::CoverStrokePathCHROMIUM>();
2924 if (c) {
2925 c->Init(path, coverMode);
2929 void StencilThenCoverFillPathCHROMIUM(GLuint path,
2930 GLenum fillMode,
2931 GLuint mask,
2932 GLenum coverMode) {
2933 gles2::cmds::StencilThenCoverFillPathCHROMIUM* c =
2934 GetCmdSpace<gles2::cmds::StencilThenCoverFillPathCHROMIUM>();
2935 if (c) {
2936 c->Init(path, fillMode, mask, coverMode);
2940 void StencilThenCoverStrokePathCHROMIUM(GLuint path,
2941 GLint reference,
2942 GLuint mask,
2943 GLenum coverMode) {
2944 gles2::cmds::StencilThenCoverStrokePathCHROMIUM* c =
2945 GetCmdSpace<gles2::cmds::StencilThenCoverStrokePathCHROMIUM>();
2946 if (c) {
2947 c->Init(path, reference, mask, coverMode);
2951 void BlendBarrierKHR() {
2952 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>();
2953 if (c) {
2954 c->Init();
2958 void ApplyScreenSpaceAntialiasingCHROMIUM() {
2959 gles2::cmds::ApplyScreenSpaceAntialiasingCHROMIUM* c =
2960 GetCmdSpace<gles2::cmds::ApplyScreenSpaceAntialiasingCHROMIUM>();
2961 if (c) {
2962 c->Init();
2966 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_