OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 } | 311 } |
312 } | 312 } |
313 | 313 |
314 void CullFace(GLenum mode) { | 314 void CullFace(GLenum mode) { |
315 gles2::cmds::CullFace* c = GetCmdSpace<gles2::cmds::CullFace>(); | 315 gles2::cmds::CullFace* c = GetCmdSpace<gles2::cmds::CullFace>(); |
316 if (c) { | 316 if (c) { |
317 c->Init(mode); | 317 c->Init(mode); |
318 } | 318 } |
319 } | 319 } |
320 | 320 |
321 void DeleteBuffers(GLsizei n, | |
322 uint32_t buffers_shm_id, | |
323 uint32_t buffers_shm_offset) { | |
324 gles2::cmds::DeleteBuffers* c = GetCmdSpace<gles2::cmds::DeleteBuffers>(); | |
325 if (c) { | |
326 c->Init(n, buffers_shm_id, buffers_shm_offset); | |
327 } | |
328 } | |
329 | |
330 void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) { | 321 void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) { |
331 const uint32_t size = gles2::cmds::DeleteBuffersImmediate::ComputeSize(n); | 322 const uint32_t size = gles2::cmds::DeleteBuffersImmediate::ComputeSize(n); |
332 gles2::cmds::DeleteBuffersImmediate* c = | 323 gles2::cmds::DeleteBuffersImmediate* c = |
333 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteBuffersImmediate>(size); | 324 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteBuffersImmediate>(size); |
334 if (c) { | 325 if (c) { |
335 c->Init(n, buffers); | 326 c->Init(n, buffers); |
336 } | 327 } |
337 } | 328 } |
338 | 329 |
339 void DeleteFramebuffers(GLsizei n, | |
340 uint32_t framebuffers_shm_id, | |
341 uint32_t framebuffers_shm_offset) { | |
342 gles2::cmds::DeleteFramebuffers* c = | |
343 GetCmdSpace<gles2::cmds::DeleteFramebuffers>(); | |
344 if (c) { | |
345 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset); | |
346 } | |
347 } | |
348 | |
349 void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) { | 330 void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) { |
350 const uint32_t size = | 331 const uint32_t size = |
351 gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n); | 332 gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n); |
352 gles2::cmds::DeleteFramebuffersImmediate* c = | 333 gles2::cmds::DeleteFramebuffersImmediate* c = |
353 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteFramebuffersImmediate>( | 334 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteFramebuffersImmediate>( |
354 size); | 335 size); |
355 if (c) { | 336 if (c) { |
356 c->Init(n, framebuffers); | 337 c->Init(n, framebuffers); |
357 } | 338 } |
358 } | 339 } |
359 | 340 |
360 void DeleteProgram(GLuint program) { | 341 void DeleteProgram(GLuint program) { |
361 gles2::cmds::DeleteProgram* c = GetCmdSpace<gles2::cmds::DeleteProgram>(); | 342 gles2::cmds::DeleteProgram* c = GetCmdSpace<gles2::cmds::DeleteProgram>(); |
362 if (c) { | 343 if (c) { |
363 c->Init(program); | 344 c->Init(program); |
364 } | 345 } |
365 } | 346 } |
366 | 347 |
367 void DeleteRenderbuffers(GLsizei n, | |
368 uint32_t renderbuffers_shm_id, | |
369 uint32_t renderbuffers_shm_offset) { | |
370 gles2::cmds::DeleteRenderbuffers* c = | |
371 GetCmdSpace<gles2::cmds::DeleteRenderbuffers>(); | |
372 if (c) { | |
373 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); | |
374 } | |
375 } | |
376 | |
377 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) { | 348 void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) { |
378 const uint32_t size = | 349 const uint32_t size = |
379 gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n); | 350 gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n); |
380 gles2::cmds::DeleteRenderbuffersImmediate* c = | 351 gles2::cmds::DeleteRenderbuffersImmediate* c = |
381 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate>( | 352 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate>( |
382 size); | 353 size); |
383 if (c) { | 354 if (c) { |
384 c->Init(n, renderbuffers); | 355 c->Init(n, renderbuffers); |
385 } | 356 } |
386 } | 357 } |
387 | 358 |
388 void DeleteShader(GLuint shader) { | 359 void DeleteShader(GLuint shader) { |
389 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>(); | 360 gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>(); |
390 if (c) { | 361 if (c) { |
391 c->Init(shader); | 362 c->Init(shader); |
392 } | 363 } |
393 } | 364 } |
394 | 365 |
395 void DeleteTextures(GLsizei n, | |
396 uint32_t textures_shm_id, | |
397 uint32_t textures_shm_offset) { | |
398 gles2::cmds::DeleteTextures* c = GetCmdSpace<gles2::cmds::DeleteTextures>(); | |
399 if (c) { | |
400 c->Init(n, textures_shm_id, textures_shm_offset); | |
401 } | |
402 } | |
403 | |
404 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) { | 366 void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) { |
405 const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n); | 367 const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n); |
406 gles2::cmds::DeleteTexturesImmediate* c = | 368 gles2::cmds::DeleteTexturesImmediate* c = |
407 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(size); | 369 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(size); |
408 if (c) { | 370 if (c) { |
409 c->Init(n, textures); | 371 c->Init(n, textures); |
410 } | 372 } |
411 } | 373 } |
412 | 374 |
413 void DepthFunc(GLenum func) { | 375 void DepthFunc(GLenum func) { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 } | 483 } |
522 } | 484 } |
523 | 485 |
524 void FrontFace(GLenum mode) { | 486 void FrontFace(GLenum mode) { |
525 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>(); | 487 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>(); |
526 if (c) { | 488 if (c) { |
527 c->Init(mode); | 489 c->Init(mode); |
528 } | 490 } |
529 } | 491 } |
530 | 492 |
531 void GenBuffers(GLsizei n, | |
532 uint32_t buffers_shm_id, | |
533 uint32_t buffers_shm_offset) { | |
534 gles2::cmds::GenBuffers* c = GetCmdSpace<gles2::cmds::GenBuffers>(); | |
535 if (c) { | |
536 c->Init(n, buffers_shm_id, buffers_shm_offset); | |
537 } | |
538 } | |
539 | |
540 void GenBuffersImmediate(GLsizei n, GLuint* buffers) { | 493 void GenBuffersImmediate(GLsizei n, GLuint* buffers) { |
541 const uint32_t size = gles2::cmds::GenBuffersImmediate::ComputeSize(n); | 494 const uint32_t size = gles2::cmds::GenBuffersImmediate::ComputeSize(n); |
542 gles2::cmds::GenBuffersImmediate* c = | 495 gles2::cmds::GenBuffersImmediate* c = |
543 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenBuffersImmediate>(size); | 496 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenBuffersImmediate>(size); |
544 if (c) { | 497 if (c) { |
545 c->Init(n, buffers); | 498 c->Init(n, buffers); |
546 } | 499 } |
547 } | 500 } |
548 | 501 |
549 void GenerateMipmap(GLenum target) { | 502 void GenerateMipmap(GLenum target) { |
550 gles2::cmds::GenerateMipmap* c = GetCmdSpace<gles2::cmds::GenerateMipmap>(); | 503 gles2::cmds::GenerateMipmap* c = GetCmdSpace<gles2::cmds::GenerateMipmap>(); |
551 if (c) { | 504 if (c) { |
552 c->Init(target); | 505 c->Init(target); |
553 } | 506 } |
554 } | 507 } |
555 | 508 |
556 void GenFramebuffers(GLsizei n, | |
557 uint32_t framebuffers_shm_id, | |
558 uint32_t framebuffers_shm_offset) { | |
559 gles2::cmds::GenFramebuffers* c = GetCmdSpace<gles2::cmds::GenFramebuffers>(); | |
560 if (c) { | |
561 c->Init(n, framebuffers_shm_id, framebuffers_shm_offset); | |
562 } | |
563 } | |
564 | |
565 void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) { | 509 void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) { |
566 const uint32_t size = gles2::cmds::GenFramebuffersImmediate::ComputeSize(n); | 510 const uint32_t size = gles2::cmds::GenFramebuffersImmediate::ComputeSize(n); |
567 gles2::cmds::GenFramebuffersImmediate* c = | 511 gles2::cmds::GenFramebuffersImmediate* c = |
568 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenFramebuffersImmediate>( | 512 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenFramebuffersImmediate>( |
569 size); | 513 size); |
570 if (c) { | 514 if (c) { |
571 c->Init(n, framebuffers); | 515 c->Init(n, framebuffers); |
572 } | 516 } |
573 } | 517 } |
574 | 518 |
575 void GenRenderbuffers(GLsizei n, | |
576 uint32_t renderbuffers_shm_id, | |
577 uint32_t renderbuffers_shm_offset) { | |
578 gles2::cmds::GenRenderbuffers* c = | |
579 GetCmdSpace<gles2::cmds::GenRenderbuffers>(); | |
580 if (c) { | |
581 c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset); | |
582 } | |
583 } | |
584 | |
585 void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) { | 519 void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) { |
586 const uint32_t size = gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n); | 520 const uint32_t size = gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n); |
587 gles2::cmds::GenRenderbuffersImmediate* c = | 521 gles2::cmds::GenRenderbuffersImmediate* c = |
588 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenRenderbuffersImmediate>( | 522 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenRenderbuffersImmediate>( |
589 size); | 523 size); |
590 if (c) { | 524 if (c) { |
591 c->Init(n, renderbuffers); | 525 c->Init(n, renderbuffers); |
592 } | 526 } |
593 } | 527 } |
594 | 528 |
595 void GenTextures(GLsizei n, | |
596 uint32_t textures_shm_id, | |
597 uint32_t textures_shm_offset) { | |
598 gles2::cmds::GenTextures* c = GetCmdSpace<gles2::cmds::GenTextures>(); | |
599 if (c) { | |
600 c->Init(n, textures_shm_id, textures_shm_offset); | |
601 } | |
602 } | |
603 | |
604 void GenTexturesImmediate(GLsizei n, GLuint* textures) { | 529 void GenTexturesImmediate(GLsizei n, GLuint* textures) { |
605 const uint32_t size = gles2::cmds::GenTexturesImmediate::ComputeSize(n); | 530 const uint32_t size = gles2::cmds::GenTexturesImmediate::ComputeSize(n); |
606 gles2::cmds::GenTexturesImmediate* c = | 531 gles2::cmds::GenTexturesImmediate* c = |
607 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size); | 532 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size); |
608 if (c) { | 533 if (c) { |
609 c->Init(n, textures); | 534 c->Init(n, textures); |
610 } | 535 } |
611 } | 536 } |
612 | 537 |
613 void GetActiveAttrib(GLuint program, | 538 void GetActiveAttrib(GLuint program, |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 } | 1034 } |
1110 } | 1035 } |
1111 | 1036 |
1112 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { | 1037 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { |
1113 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>(); | 1038 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>(); |
1114 if (c) { | 1039 if (c) { |
1115 c->Init(target, pname, param); | 1040 c->Init(target, pname, param); |
1116 } | 1041 } |
1117 } | 1042 } |
1118 | 1043 |
1119 void TexParameterfv(GLenum target, | |
1120 GLenum pname, | |
1121 uint32_t params_shm_id, | |
1122 uint32_t params_shm_offset) { | |
1123 gles2::cmds::TexParameterfv* c = GetCmdSpace<gles2::cmds::TexParameterfv>(); | |
1124 if (c) { | |
1125 c->Init(target, pname, params_shm_id, params_shm_offset); | |
1126 } | |
1127 } | |
1128 | |
1129 void TexParameterfvImmediate(GLenum target, | 1044 void TexParameterfvImmediate(GLenum target, |
1130 GLenum pname, | 1045 GLenum pname, |
1131 const GLfloat* params) { | 1046 const GLfloat* params) { |
1132 const uint32_t size = gles2::cmds::TexParameterfvImmediate::ComputeSize(); | 1047 const uint32_t size = gles2::cmds::TexParameterfvImmediate::ComputeSize(); |
1133 gles2::cmds::TexParameterfvImmediate* c = | 1048 gles2::cmds::TexParameterfvImmediate* c = |
1134 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterfvImmediate>(size); | 1049 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterfvImmediate>(size); |
1135 if (c) { | 1050 if (c) { |
1136 c->Init(target, pname, params); | 1051 c->Init(target, pname, params); |
1137 } | 1052 } |
1138 } | 1053 } |
1139 | 1054 |
1140 void TexParameteri(GLenum target, GLenum pname, GLint param) { | 1055 void TexParameteri(GLenum target, GLenum pname, GLint param) { |
1141 gles2::cmds::TexParameteri* c = GetCmdSpace<gles2::cmds::TexParameteri>(); | 1056 gles2::cmds::TexParameteri* c = GetCmdSpace<gles2::cmds::TexParameteri>(); |
1142 if (c) { | 1057 if (c) { |
1143 c->Init(target, pname, param); | 1058 c->Init(target, pname, param); |
1144 } | 1059 } |
1145 } | 1060 } |
1146 | 1061 |
1147 void TexParameteriv(GLenum target, | |
1148 GLenum pname, | |
1149 uint32_t params_shm_id, | |
1150 uint32_t params_shm_offset) { | |
1151 gles2::cmds::TexParameteriv* c = GetCmdSpace<gles2::cmds::TexParameteriv>(); | |
1152 if (c) { | |
1153 c->Init(target, pname, params_shm_id, params_shm_offset); | |
1154 } | |
1155 } | |
1156 | |
1157 void TexParameterivImmediate(GLenum target, GLenum pname, const GLint* params) { | 1062 void TexParameterivImmediate(GLenum target, GLenum pname, const GLint* params) { |
1158 const uint32_t size = gles2::cmds::TexParameterivImmediate::ComputeSize(); | 1063 const uint32_t size = gles2::cmds::TexParameterivImmediate::ComputeSize(); |
1159 gles2::cmds::TexParameterivImmediate* c = | 1064 gles2::cmds::TexParameterivImmediate* c = |
1160 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(size); | 1065 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(size); |
1161 if (c) { | 1066 if (c) { |
1162 c->Init(target, pname, params); | 1067 c->Init(target, pname, params); |
1163 } | 1068 } |
1164 } | 1069 } |
1165 | 1070 |
1166 void TexSubImage2D(GLenum target, | 1071 void TexSubImage2D(GLenum target, |
(...skipping 23 matching lines...) Expand all Loading... |
1190 } | 1095 } |
1191 } | 1096 } |
1192 | 1097 |
1193 void Uniform1f(GLint location, GLfloat x) { | 1098 void Uniform1f(GLint location, GLfloat x) { |
1194 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); | 1099 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); |
1195 if (c) { | 1100 if (c) { |
1196 c->Init(location, x); | 1101 c->Init(location, x); |
1197 } | 1102 } |
1198 } | 1103 } |
1199 | 1104 |
1200 void Uniform1fv(GLint location, | |
1201 GLsizei count, | |
1202 uint32_t v_shm_id, | |
1203 uint32_t v_shm_offset) { | |
1204 gles2::cmds::Uniform1fv* c = GetCmdSpace<gles2::cmds::Uniform1fv>(); | |
1205 if (c) { | |
1206 c->Init(location, count, v_shm_id, v_shm_offset); | |
1207 } | |
1208 } | |
1209 | |
1210 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1105 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1211 const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count); | 1106 const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count); |
1212 gles2::cmds::Uniform1fvImmediate* c = | 1107 gles2::cmds::Uniform1fvImmediate* c = |
1213 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1fvImmediate>(size); | 1108 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1fvImmediate>(size); |
1214 if (c) { | 1109 if (c) { |
1215 c->Init(location, count, v); | 1110 c->Init(location, count, v); |
1216 } | 1111 } |
1217 } | 1112 } |
1218 | 1113 |
1219 void Uniform1i(GLint location, GLint x) { | 1114 void Uniform1i(GLint location, GLint x) { |
1220 gles2::cmds::Uniform1i* c = GetCmdSpace<gles2::cmds::Uniform1i>(); | 1115 gles2::cmds::Uniform1i* c = GetCmdSpace<gles2::cmds::Uniform1i>(); |
1221 if (c) { | 1116 if (c) { |
1222 c->Init(location, x); | 1117 c->Init(location, x); |
1223 } | 1118 } |
1224 } | 1119 } |
1225 | 1120 |
1226 void Uniform1iv(GLint location, | |
1227 GLsizei count, | |
1228 uint32_t v_shm_id, | |
1229 uint32_t v_shm_offset) { | |
1230 gles2::cmds::Uniform1iv* c = GetCmdSpace<gles2::cmds::Uniform1iv>(); | |
1231 if (c) { | |
1232 c->Init(location, count, v_shm_id, v_shm_offset); | |
1233 } | |
1234 } | |
1235 | |
1236 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) { | 1121 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) { |
1237 const uint32_t size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count); | 1122 const uint32_t size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count); |
1238 gles2::cmds::Uniform1ivImmediate* c = | 1123 gles2::cmds::Uniform1ivImmediate* c = |
1239 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size); | 1124 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size); |
1240 if (c) { | 1125 if (c) { |
1241 c->Init(location, count, v); | 1126 c->Init(location, count, v); |
1242 } | 1127 } |
1243 } | 1128 } |
1244 | 1129 |
1245 void Uniform2f(GLint location, GLfloat x, GLfloat y) { | 1130 void Uniform2f(GLint location, GLfloat x, GLfloat y) { |
1246 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>(); | 1131 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>(); |
1247 if (c) { | 1132 if (c) { |
1248 c->Init(location, x, y); | 1133 c->Init(location, x, y); |
1249 } | 1134 } |
1250 } | 1135 } |
1251 | 1136 |
1252 void Uniform2fv(GLint location, | |
1253 GLsizei count, | |
1254 uint32_t v_shm_id, | |
1255 uint32_t v_shm_offset) { | |
1256 gles2::cmds::Uniform2fv* c = GetCmdSpace<gles2::cmds::Uniform2fv>(); | |
1257 if (c) { | |
1258 c->Init(location, count, v_shm_id, v_shm_offset); | |
1259 } | |
1260 } | |
1261 | |
1262 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1137 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1263 const uint32_t size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count); | 1138 const uint32_t size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count); |
1264 gles2::cmds::Uniform2fvImmediate* c = | 1139 gles2::cmds::Uniform2fvImmediate* c = |
1265 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2fvImmediate>(size); | 1140 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2fvImmediate>(size); |
1266 if (c) { | 1141 if (c) { |
1267 c->Init(location, count, v); | 1142 c->Init(location, count, v); |
1268 } | 1143 } |
1269 } | 1144 } |
1270 | 1145 |
1271 void Uniform2i(GLint location, GLint x, GLint y) { | 1146 void Uniform2i(GLint location, GLint x, GLint y) { |
1272 gles2::cmds::Uniform2i* c = GetCmdSpace<gles2::cmds::Uniform2i>(); | 1147 gles2::cmds::Uniform2i* c = GetCmdSpace<gles2::cmds::Uniform2i>(); |
1273 if (c) { | 1148 if (c) { |
1274 c->Init(location, x, y); | 1149 c->Init(location, x, y); |
1275 } | 1150 } |
1276 } | 1151 } |
1277 | 1152 |
1278 void Uniform2iv(GLint location, | |
1279 GLsizei count, | |
1280 uint32_t v_shm_id, | |
1281 uint32_t v_shm_offset) { | |
1282 gles2::cmds::Uniform2iv* c = GetCmdSpace<gles2::cmds::Uniform2iv>(); | |
1283 if (c) { | |
1284 c->Init(location, count, v_shm_id, v_shm_offset); | |
1285 } | |
1286 } | |
1287 | |
1288 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) { | 1153 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) { |
1289 const uint32_t size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count); | 1154 const uint32_t size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count); |
1290 gles2::cmds::Uniform2ivImmediate* c = | 1155 gles2::cmds::Uniform2ivImmediate* c = |
1291 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size); | 1156 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size); |
1292 if (c) { | 1157 if (c) { |
1293 c->Init(location, count, v); | 1158 c->Init(location, count, v); |
1294 } | 1159 } |
1295 } | 1160 } |
1296 | 1161 |
1297 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { | 1162 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { |
1298 gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>(); | 1163 gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>(); |
1299 if (c) { | 1164 if (c) { |
1300 c->Init(location, x, y, z); | 1165 c->Init(location, x, y, z); |
1301 } | 1166 } |
1302 } | 1167 } |
1303 | 1168 |
1304 void Uniform3fv(GLint location, | |
1305 GLsizei count, | |
1306 uint32_t v_shm_id, | |
1307 uint32_t v_shm_offset) { | |
1308 gles2::cmds::Uniform3fv* c = GetCmdSpace<gles2::cmds::Uniform3fv>(); | |
1309 if (c) { | |
1310 c->Init(location, count, v_shm_id, v_shm_offset); | |
1311 } | |
1312 } | |
1313 | |
1314 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1169 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1315 const uint32_t size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count); | 1170 const uint32_t size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count); |
1316 gles2::cmds::Uniform3fvImmediate* c = | 1171 gles2::cmds::Uniform3fvImmediate* c = |
1317 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3fvImmediate>(size); | 1172 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3fvImmediate>(size); |
1318 if (c) { | 1173 if (c) { |
1319 c->Init(location, count, v); | 1174 c->Init(location, count, v); |
1320 } | 1175 } |
1321 } | 1176 } |
1322 | 1177 |
1323 void Uniform3i(GLint location, GLint x, GLint y, GLint z) { | 1178 void Uniform3i(GLint location, GLint x, GLint y, GLint z) { |
1324 gles2::cmds::Uniform3i* c = GetCmdSpace<gles2::cmds::Uniform3i>(); | 1179 gles2::cmds::Uniform3i* c = GetCmdSpace<gles2::cmds::Uniform3i>(); |
1325 if (c) { | 1180 if (c) { |
1326 c->Init(location, x, y, z); | 1181 c->Init(location, x, y, z); |
1327 } | 1182 } |
1328 } | 1183 } |
1329 | 1184 |
1330 void Uniform3iv(GLint location, | |
1331 GLsizei count, | |
1332 uint32_t v_shm_id, | |
1333 uint32_t v_shm_offset) { | |
1334 gles2::cmds::Uniform3iv* c = GetCmdSpace<gles2::cmds::Uniform3iv>(); | |
1335 if (c) { | |
1336 c->Init(location, count, v_shm_id, v_shm_offset); | |
1337 } | |
1338 } | |
1339 | |
1340 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) { | 1185 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) { |
1341 const uint32_t size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count); | 1186 const uint32_t size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count); |
1342 gles2::cmds::Uniform3ivImmediate* c = | 1187 gles2::cmds::Uniform3ivImmediate* c = |
1343 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size); | 1188 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size); |
1344 if (c) { | 1189 if (c) { |
1345 c->Init(location, count, v); | 1190 c->Init(location, count, v); |
1346 } | 1191 } |
1347 } | 1192 } |
1348 | 1193 |
1349 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { | 1194 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
1350 gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>(); | 1195 gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>(); |
1351 if (c) { | 1196 if (c) { |
1352 c->Init(location, x, y, z, w); | 1197 c->Init(location, x, y, z, w); |
1353 } | 1198 } |
1354 } | 1199 } |
1355 | 1200 |
1356 void Uniform4fv(GLint location, | |
1357 GLsizei count, | |
1358 uint32_t v_shm_id, | |
1359 uint32_t v_shm_offset) { | |
1360 gles2::cmds::Uniform4fv* c = GetCmdSpace<gles2::cmds::Uniform4fv>(); | |
1361 if (c) { | |
1362 c->Init(location, count, v_shm_id, v_shm_offset); | |
1363 } | |
1364 } | |
1365 | |
1366 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1201 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1367 const uint32_t size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count); | 1202 const uint32_t size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count); |
1368 gles2::cmds::Uniform4fvImmediate* c = | 1203 gles2::cmds::Uniform4fvImmediate* c = |
1369 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4fvImmediate>(size); | 1204 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4fvImmediate>(size); |
1370 if (c) { | 1205 if (c) { |
1371 c->Init(location, count, v); | 1206 c->Init(location, count, v); |
1372 } | 1207 } |
1373 } | 1208 } |
1374 | 1209 |
1375 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { | 1210 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { |
1376 gles2::cmds::Uniform4i* c = GetCmdSpace<gles2::cmds::Uniform4i>(); | 1211 gles2::cmds::Uniform4i* c = GetCmdSpace<gles2::cmds::Uniform4i>(); |
1377 if (c) { | 1212 if (c) { |
1378 c->Init(location, x, y, z, w); | 1213 c->Init(location, x, y, z, w); |
1379 } | 1214 } |
1380 } | 1215 } |
1381 | 1216 |
1382 void Uniform4iv(GLint location, | |
1383 GLsizei count, | |
1384 uint32_t v_shm_id, | |
1385 uint32_t v_shm_offset) { | |
1386 gles2::cmds::Uniform4iv* c = GetCmdSpace<gles2::cmds::Uniform4iv>(); | |
1387 if (c) { | |
1388 c->Init(location, count, v_shm_id, v_shm_offset); | |
1389 } | |
1390 } | |
1391 | |
1392 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) { | 1217 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) { |
1393 const uint32_t size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count); | 1218 const uint32_t size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count); |
1394 gles2::cmds::Uniform4ivImmediate* c = | 1219 gles2::cmds::Uniform4ivImmediate* c = |
1395 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size); | 1220 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size); |
1396 if (c) { | 1221 if (c) { |
1397 c->Init(location, count, v); | 1222 c->Init(location, count, v); |
1398 } | 1223 } |
1399 } | 1224 } |
1400 | 1225 |
1401 void UniformMatrix2fv(GLint location, | |
1402 GLsizei count, | |
1403 uint32_t value_shm_id, | |
1404 uint32_t value_shm_offset) { | |
1405 gles2::cmds::UniformMatrix2fv* c = | |
1406 GetCmdSpace<gles2::cmds::UniformMatrix2fv>(); | |
1407 if (c) { | |
1408 c->Init(location, count, value_shm_id, value_shm_offset); | |
1409 } | |
1410 } | |
1411 | |
1412 void UniformMatrix2fvImmediate(GLint location, | 1226 void UniformMatrix2fvImmediate(GLint location, |
1413 GLsizei count, | 1227 GLsizei count, |
1414 const GLfloat* value) { | 1228 const GLfloat* value) { |
1415 const uint32_t size = | 1229 const uint32_t size = |
1416 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); | 1230 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); |
1417 gles2::cmds::UniformMatrix2fvImmediate* c = | 1231 gles2::cmds::UniformMatrix2fvImmediate* c = |
1418 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( | 1232 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( |
1419 size); | 1233 size); |
1420 if (c) { | 1234 if (c) { |
1421 c->Init(location, count, value); | 1235 c->Init(location, count, value); |
1422 } | 1236 } |
1423 } | 1237 } |
1424 | 1238 |
1425 void UniformMatrix3fv(GLint location, | |
1426 GLsizei count, | |
1427 uint32_t value_shm_id, | |
1428 uint32_t value_shm_offset) { | |
1429 gles2::cmds::UniformMatrix3fv* c = | |
1430 GetCmdSpace<gles2::cmds::UniformMatrix3fv>(); | |
1431 if (c) { | |
1432 c->Init(location, count, value_shm_id, value_shm_offset); | |
1433 } | |
1434 } | |
1435 | |
1436 void UniformMatrix3fvImmediate(GLint location, | 1239 void UniformMatrix3fvImmediate(GLint location, |
1437 GLsizei count, | 1240 GLsizei count, |
1438 const GLfloat* value) { | 1241 const GLfloat* value) { |
1439 const uint32_t size = | 1242 const uint32_t size = |
1440 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count); | 1243 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count); |
1441 gles2::cmds::UniformMatrix3fvImmediate* c = | 1244 gles2::cmds::UniformMatrix3fvImmediate* c = |
1442 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>( | 1245 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>( |
1443 size); | 1246 size); |
1444 if (c) { | 1247 if (c) { |
1445 c->Init(location, count, value); | 1248 c->Init(location, count, value); |
1446 } | 1249 } |
1447 } | 1250 } |
1448 | 1251 |
1449 void UniformMatrix4fv(GLint location, | |
1450 GLsizei count, | |
1451 uint32_t value_shm_id, | |
1452 uint32_t value_shm_offset) { | |
1453 gles2::cmds::UniformMatrix4fv* c = | |
1454 GetCmdSpace<gles2::cmds::UniformMatrix4fv>(); | |
1455 if (c) { | |
1456 c->Init(location, count, value_shm_id, value_shm_offset); | |
1457 } | |
1458 } | |
1459 | |
1460 void UniformMatrix4fvImmediate(GLint location, | 1252 void UniformMatrix4fvImmediate(GLint location, |
1461 GLsizei count, | 1253 GLsizei count, |
1462 const GLfloat* value) { | 1254 const GLfloat* value) { |
1463 const uint32_t size = | 1255 const uint32_t size = |
1464 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count); | 1256 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count); |
1465 gles2::cmds::UniformMatrix4fvImmediate* c = | 1257 gles2::cmds::UniformMatrix4fvImmediate* c = |
1466 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>( | 1258 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>( |
1467 size); | 1259 size); |
1468 if (c) { | 1260 if (c) { |
1469 c->Init(location, count, value); | 1261 c->Init(location, count, value); |
(...skipping 14 matching lines...) Expand all Loading... |
1484 } | 1276 } |
1485 } | 1277 } |
1486 | 1278 |
1487 void VertexAttrib1f(GLuint indx, GLfloat x) { | 1279 void VertexAttrib1f(GLuint indx, GLfloat x) { |
1488 gles2::cmds::VertexAttrib1f* c = GetCmdSpace<gles2::cmds::VertexAttrib1f>(); | 1280 gles2::cmds::VertexAttrib1f* c = GetCmdSpace<gles2::cmds::VertexAttrib1f>(); |
1489 if (c) { | 1281 if (c) { |
1490 c->Init(indx, x); | 1282 c->Init(indx, x); |
1491 } | 1283 } |
1492 } | 1284 } |
1493 | 1285 |
1494 void VertexAttrib1fv(GLuint indx, | |
1495 uint32_t values_shm_id, | |
1496 uint32_t values_shm_offset) { | |
1497 gles2::cmds::VertexAttrib1fv* c = GetCmdSpace<gles2::cmds::VertexAttrib1fv>(); | |
1498 if (c) { | |
1499 c->Init(indx, values_shm_id, values_shm_offset); | |
1500 } | |
1501 } | |
1502 | |
1503 void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) { | 1286 void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) { |
1504 const uint32_t size = gles2::cmds::VertexAttrib1fvImmediate::ComputeSize(); | 1287 const uint32_t size = gles2::cmds::VertexAttrib1fvImmediate::ComputeSize(); |
1505 gles2::cmds::VertexAttrib1fvImmediate* c = | 1288 gles2::cmds::VertexAttrib1fvImmediate* c = |
1506 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib1fvImmediate>( | 1289 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib1fvImmediate>( |
1507 size); | 1290 size); |
1508 if (c) { | 1291 if (c) { |
1509 c->Init(indx, values); | 1292 c->Init(indx, values); |
1510 } | 1293 } |
1511 } | 1294 } |
1512 | 1295 |
1513 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { | 1296 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { |
1514 gles2::cmds::VertexAttrib2f* c = GetCmdSpace<gles2::cmds::VertexAttrib2f>(); | 1297 gles2::cmds::VertexAttrib2f* c = GetCmdSpace<gles2::cmds::VertexAttrib2f>(); |
1515 if (c) { | 1298 if (c) { |
1516 c->Init(indx, x, y); | 1299 c->Init(indx, x, y); |
1517 } | 1300 } |
1518 } | 1301 } |
1519 | 1302 |
1520 void VertexAttrib2fv(GLuint indx, | |
1521 uint32_t values_shm_id, | |
1522 uint32_t values_shm_offset) { | |
1523 gles2::cmds::VertexAttrib2fv* c = GetCmdSpace<gles2::cmds::VertexAttrib2fv>(); | |
1524 if (c) { | |
1525 c->Init(indx, values_shm_id, values_shm_offset); | |
1526 } | |
1527 } | |
1528 | |
1529 void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) { | 1303 void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) { |
1530 const uint32_t size = gles2::cmds::VertexAttrib2fvImmediate::ComputeSize(); | 1304 const uint32_t size = gles2::cmds::VertexAttrib2fvImmediate::ComputeSize(); |
1531 gles2::cmds::VertexAttrib2fvImmediate* c = | 1305 gles2::cmds::VertexAttrib2fvImmediate* c = |
1532 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib2fvImmediate>( | 1306 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib2fvImmediate>( |
1533 size); | 1307 size); |
1534 if (c) { | 1308 if (c) { |
1535 c->Init(indx, values); | 1309 c->Init(indx, values); |
1536 } | 1310 } |
1537 } | 1311 } |
1538 | 1312 |
1539 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { | 1313 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { |
1540 gles2::cmds::VertexAttrib3f* c = GetCmdSpace<gles2::cmds::VertexAttrib3f>(); | 1314 gles2::cmds::VertexAttrib3f* c = GetCmdSpace<gles2::cmds::VertexAttrib3f>(); |
1541 if (c) { | 1315 if (c) { |
1542 c->Init(indx, x, y, z); | 1316 c->Init(indx, x, y, z); |
1543 } | 1317 } |
1544 } | 1318 } |
1545 | 1319 |
1546 void VertexAttrib3fv(GLuint indx, | |
1547 uint32_t values_shm_id, | |
1548 uint32_t values_shm_offset) { | |
1549 gles2::cmds::VertexAttrib3fv* c = GetCmdSpace<gles2::cmds::VertexAttrib3fv>(); | |
1550 if (c) { | |
1551 c->Init(indx, values_shm_id, values_shm_offset); | |
1552 } | |
1553 } | |
1554 | |
1555 void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) { | 1320 void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) { |
1556 const uint32_t size = gles2::cmds::VertexAttrib3fvImmediate::ComputeSize(); | 1321 const uint32_t size = gles2::cmds::VertexAttrib3fvImmediate::ComputeSize(); |
1557 gles2::cmds::VertexAttrib3fvImmediate* c = | 1322 gles2::cmds::VertexAttrib3fvImmediate* c = |
1558 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib3fvImmediate>( | 1323 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib3fvImmediate>( |
1559 size); | 1324 size); |
1560 if (c) { | 1325 if (c) { |
1561 c->Init(indx, values); | 1326 c->Init(indx, values); |
1562 } | 1327 } |
1563 } | 1328 } |
1564 | 1329 |
1565 void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { | 1330 void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
1566 gles2::cmds::VertexAttrib4f* c = GetCmdSpace<gles2::cmds::VertexAttrib4f>(); | 1331 gles2::cmds::VertexAttrib4f* c = GetCmdSpace<gles2::cmds::VertexAttrib4f>(); |
1567 if (c) { | 1332 if (c) { |
1568 c->Init(indx, x, y, z, w); | 1333 c->Init(indx, x, y, z, w); |
1569 } | 1334 } |
1570 } | 1335 } |
1571 | 1336 |
1572 void VertexAttrib4fv(GLuint indx, | |
1573 uint32_t values_shm_id, | |
1574 uint32_t values_shm_offset) { | |
1575 gles2::cmds::VertexAttrib4fv* c = GetCmdSpace<gles2::cmds::VertexAttrib4fv>(); | |
1576 if (c) { | |
1577 c->Init(indx, values_shm_id, values_shm_offset); | |
1578 } | |
1579 } | |
1580 | |
1581 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) { | 1337 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) { |
1582 const uint32_t size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize(); | 1338 const uint32_t size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize(); |
1583 gles2::cmds::VertexAttrib4fvImmediate* c = | 1339 gles2::cmds::VertexAttrib4fvImmediate* c = |
1584 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>( | 1340 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>( |
1585 size); | 1341 size); |
1586 if (c) { | 1342 if (c) { |
1587 c->Init(indx, values); | 1343 c->Init(indx, values); |
1588 } | 1344 } |
1589 } | 1345 } |
1590 | 1346 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 GLsizei levels, | 1422 GLsizei levels, |
1667 GLenum internalFormat, | 1423 GLenum internalFormat, |
1668 GLsizei width, | 1424 GLsizei width, |
1669 GLsizei height) { | 1425 GLsizei height) { |
1670 gles2::cmds::TexStorage2DEXT* c = GetCmdSpace<gles2::cmds::TexStorage2DEXT>(); | 1426 gles2::cmds::TexStorage2DEXT* c = GetCmdSpace<gles2::cmds::TexStorage2DEXT>(); |
1671 if (c) { | 1427 if (c) { |
1672 c->Init(target, levels, internalFormat, width, height); | 1428 c->Init(target, levels, internalFormat, width, height); |
1673 } | 1429 } |
1674 } | 1430 } |
1675 | 1431 |
1676 void GenQueriesEXT(GLsizei n, | |
1677 uint32_t queries_shm_id, | |
1678 uint32_t queries_shm_offset) { | |
1679 gles2::cmds::GenQueriesEXT* c = GetCmdSpace<gles2::cmds::GenQueriesEXT>(); | |
1680 if (c) { | |
1681 c->Init(n, queries_shm_id, queries_shm_offset); | |
1682 } | |
1683 } | |
1684 | |
1685 void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) { | 1432 void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) { |
1686 const uint32_t size = gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n); | 1433 const uint32_t size = gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n); |
1687 gles2::cmds::GenQueriesEXTImmediate* c = | 1434 gles2::cmds::GenQueriesEXTImmediate* c = |
1688 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenQueriesEXTImmediate>(size); | 1435 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenQueriesEXTImmediate>(size); |
1689 if (c) { | 1436 if (c) { |
1690 c->Init(n, queries); | 1437 c->Init(n, queries); |
1691 } | 1438 } |
1692 } | 1439 } |
1693 | 1440 |
1694 void DeleteQueriesEXT(GLsizei n, | |
1695 uint32_t queries_shm_id, | |
1696 uint32_t queries_shm_offset) { | |
1697 gles2::cmds::DeleteQueriesEXT* c = | |
1698 GetCmdSpace<gles2::cmds::DeleteQueriesEXT>(); | |
1699 if (c) { | |
1700 c->Init(n, queries_shm_id, queries_shm_offset); | |
1701 } | |
1702 } | |
1703 | |
1704 void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) { | 1441 void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) { |
1705 const uint32_t size = gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n); | 1442 const uint32_t size = gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n); |
1706 gles2::cmds::DeleteQueriesEXTImmediate* c = | 1443 gles2::cmds::DeleteQueriesEXTImmediate* c = |
1707 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteQueriesEXTImmediate>( | 1444 GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteQueriesEXTImmediate>( |
1708 size); | 1445 size); |
1709 if (c) { | 1446 if (c) { |
1710 c->Init(n, queries); | 1447 c->Init(n, queries); |
1711 } | 1448 } |
1712 } | 1449 } |
1713 | 1450 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1745 } | 1482 } |
1746 | 1483 |
1747 void PopGroupMarkerEXT() { | 1484 void PopGroupMarkerEXT() { |
1748 gles2::cmds::PopGroupMarkerEXT* c = | 1485 gles2::cmds::PopGroupMarkerEXT* c = |
1749 GetCmdSpace<gles2::cmds::PopGroupMarkerEXT>(); | 1486 GetCmdSpace<gles2::cmds::PopGroupMarkerEXT>(); |
1750 if (c) { | 1487 if (c) { |
1751 c->Init(); | 1488 c->Init(); |
1752 } | 1489 } |
1753 } | 1490 } |
1754 | 1491 |
1755 void GenVertexArraysOES(GLsizei n, | |
1756 uint32_t arrays_shm_id, | |
1757 uint32_t arrays_shm_offset) { | |
1758 gles2::cmds::GenVertexArraysOES* c = | |
1759 GetCmdSpace<gles2::cmds::GenVertexArraysOES>(); | |
1760 if (c) { | |
1761 c->Init(n, arrays_shm_id, arrays_shm_offset); | |
1762 } | |
1763 } | |
1764 | |
1765 void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) { | 1492 void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) { |
1766 const uint32_t size = | 1493 const uint32_t size = |
1767 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n); | 1494 gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n); |
1768 gles2::cmds::GenVertexArraysOESImmediate* c = | 1495 gles2::cmds::GenVertexArraysOESImmediate* c = |
1769 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenVertexArraysOESImmediate>( | 1496 GetImmediateCmdSpaceTotalSize<gles2::cmds::GenVertexArraysOESImmediate>( |
1770 size); | 1497 size); |
1771 if (c) { | 1498 if (c) { |
1772 c->Init(n, arrays); | 1499 c->Init(n, arrays); |
1773 } | 1500 } |
1774 } | 1501 } |
1775 | 1502 |
1776 void DeleteVertexArraysOES(GLsizei n, | |
1777 uint32_t arrays_shm_id, | |
1778 uint32_t arrays_shm_offset) { | |
1779 gles2::cmds::DeleteVertexArraysOES* c = | |
1780 GetCmdSpace<gles2::cmds::DeleteVertexArraysOES>(); | |
1781 if (c) { | |
1782 c->Init(n, arrays_shm_id, arrays_shm_offset); | |
1783 } | |
1784 } | |
1785 | |
1786 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) { | 1503 void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) { |
1787 const uint32_t size = | 1504 const uint32_t size = |
1788 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n); | 1505 gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n); |
1789 gles2::cmds::DeleteVertexArraysOESImmediate* c = | 1506 gles2::cmds::DeleteVertexArraysOESImmediate* c = |
1790 GetImmediateCmdSpaceTotalSize< | 1507 GetImmediateCmdSpaceTotalSize< |
1791 gles2::cmds::DeleteVertexArraysOESImmediate>(size); | 1508 gles2::cmds::DeleteVertexArraysOESImmediate>(size); |
1792 if (c) { | 1509 if (c) { |
1793 c->Init(n, arrays); | 1510 c->Init(n, arrays); |
1794 } | 1511 } |
1795 } | 1512 } |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 } | 1707 } |
1991 | 1708 |
1992 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { | 1709 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { |
1993 gles2::cmds::VertexAttribDivisorANGLE* c = | 1710 gles2::cmds::VertexAttribDivisorANGLE* c = |
1994 GetCmdSpace<gles2::cmds::VertexAttribDivisorANGLE>(); | 1711 GetCmdSpace<gles2::cmds::VertexAttribDivisorANGLE>(); |
1995 if (c) { | 1712 if (c) { |
1996 c->Init(index, divisor); | 1713 c->Init(index, divisor); |
1997 } | 1714 } |
1998 } | 1715 } |
1999 | 1716 |
2000 void ProduceTextureCHROMIUM(GLenum target, | |
2001 uint32_t mailbox_shm_id, | |
2002 uint32_t mailbox_shm_offset) { | |
2003 gles2::cmds::ProduceTextureCHROMIUM* c = | |
2004 GetCmdSpace<gles2::cmds::ProduceTextureCHROMIUM>(); | |
2005 if (c) { | |
2006 c->Init(target, mailbox_shm_id, mailbox_shm_offset); | |
2007 } | |
2008 } | |
2009 | |
2010 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { | 1717 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { |
2011 const uint32_t size = | 1718 const uint32_t size = |
2012 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize(); | 1719 gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize(); |
2013 gles2::cmds::ProduceTextureCHROMIUMImmediate* c = | 1720 gles2::cmds::ProduceTextureCHROMIUMImmediate* c = |
2014 GetImmediateCmdSpaceTotalSize< | 1721 GetImmediateCmdSpaceTotalSize< |
2015 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size); | 1722 gles2::cmds::ProduceTextureCHROMIUMImmediate>(size); |
2016 if (c) { | 1723 if (c) { |
2017 c->Init(target, mailbox); | 1724 c->Init(target, mailbox); |
2018 } | 1725 } |
2019 } | 1726 } |
2020 | 1727 |
2021 void ConsumeTextureCHROMIUM(GLenum target, | |
2022 uint32_t mailbox_shm_id, | |
2023 uint32_t mailbox_shm_offset) { | |
2024 gles2::cmds::ConsumeTextureCHROMIUM* c = | |
2025 GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>(); | |
2026 if (c) { | |
2027 c->Init(target, mailbox_shm_id, mailbox_shm_offset); | |
2028 } | |
2029 } | |
2030 | |
2031 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { | 1728 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { |
2032 const uint32_t size = | 1729 const uint32_t size = |
2033 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); | 1730 gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); |
2034 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = | 1731 gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = |
2035 GetImmediateCmdSpaceTotalSize< | 1732 GetImmediateCmdSpaceTotalSize< |
2036 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); | 1733 gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); |
2037 if (c) { | 1734 if (c) { |
2038 c->Init(target, mailbox); | 1735 c->Init(target, mailbox); |
2039 } | 1736 } |
2040 } | 1737 } |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2164 } | 1861 } |
2165 | 1862 |
2166 void WaitAllAsyncTexImage2DCHROMIUM() { | 1863 void WaitAllAsyncTexImage2DCHROMIUM() { |
2167 gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM* c = | 1864 gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM* c = |
2168 GetCmdSpace<gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM>(); | 1865 GetCmdSpace<gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM>(); |
2169 if (c) { | 1866 if (c) { |
2170 c->Init(); | 1867 c->Init(); |
2171 } | 1868 } |
2172 } | 1869 } |
2173 | 1870 |
2174 void DiscardFramebufferEXT(GLenum target, | |
2175 GLsizei count, | |
2176 uint32_t attachments_shm_id, | |
2177 uint32_t attachments_shm_offset) { | |
2178 gles2::cmds::DiscardFramebufferEXT* c = | |
2179 GetCmdSpace<gles2::cmds::DiscardFramebufferEXT>(); | |
2180 if (c) { | |
2181 c->Init(target, count, attachments_shm_id, attachments_shm_offset); | |
2182 } | |
2183 } | |
2184 | |
2185 void DiscardFramebufferEXTImmediate(GLenum target, | 1871 void DiscardFramebufferEXTImmediate(GLenum target, |
2186 GLsizei count, | 1872 GLsizei count, |
2187 const GLenum* attachments) { | 1873 const GLenum* attachments) { |
2188 const uint32_t size = | 1874 const uint32_t size = |
2189 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count); | 1875 gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count); |
2190 gles2::cmds::DiscardFramebufferEXTImmediate* c = | 1876 gles2::cmds::DiscardFramebufferEXTImmediate* c = |
2191 GetImmediateCmdSpaceTotalSize< | 1877 GetImmediateCmdSpaceTotalSize< |
2192 gles2::cmds::DiscardFramebufferEXTImmediate>(size); | 1878 gles2::cmds::DiscardFramebufferEXTImmediate>(size); |
2193 if (c) { | 1879 if (c) { |
2194 c->Init(target, count, attachments); | 1880 c->Init(target, count, attachments); |
2195 } | 1881 } |
2196 } | 1882 } |
2197 | 1883 |
2198 void LoseContextCHROMIUM(GLenum current, GLenum other) { | 1884 void LoseContextCHROMIUM(GLenum current, GLenum other) { |
2199 gles2::cmds::LoseContextCHROMIUM* c = | 1885 gles2::cmds::LoseContextCHROMIUM* c = |
2200 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>(); | 1886 GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>(); |
2201 if (c) { | 1887 if (c) { |
2202 c->Init(current, other); | 1888 c->Init(current, other); |
2203 } | 1889 } |
2204 } | 1890 } |
2205 | 1891 |
2206 void WaitSyncPointCHROMIUM(GLuint sync_point) { | 1892 void WaitSyncPointCHROMIUM(GLuint sync_point) { |
2207 gles2::cmds::WaitSyncPointCHROMIUM* c = | 1893 gles2::cmds::WaitSyncPointCHROMIUM* c = |
2208 GetCmdSpace<gles2::cmds::WaitSyncPointCHROMIUM>(); | 1894 GetCmdSpace<gles2::cmds::WaitSyncPointCHROMIUM>(); |
2209 if (c) { | 1895 if (c) { |
2210 c->Init(sync_point); | 1896 c->Init(sync_point); |
2211 } | 1897 } |
2212 } | 1898 } |
2213 | 1899 |
2214 void DrawBuffersEXT(GLsizei count, | |
2215 uint32_t bufs_shm_id, | |
2216 uint32_t bufs_shm_offset) { | |
2217 gles2::cmds::DrawBuffersEXT* c = GetCmdSpace<gles2::cmds::DrawBuffersEXT>(); | |
2218 if (c) { | |
2219 c->Init(count, bufs_shm_id, bufs_shm_offset); | |
2220 } | |
2221 } | |
2222 | |
2223 void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) { | 1900 void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) { |
2224 const uint32_t size = | 1901 const uint32_t size = |
2225 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count); | 1902 gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count); |
2226 gles2::cmds::DrawBuffersEXTImmediate* c = | 1903 gles2::cmds::DrawBuffersEXTImmediate* c = |
2227 GetImmediateCmdSpaceTotalSize<gles2::cmds::DrawBuffersEXTImmediate>(size); | 1904 GetImmediateCmdSpaceTotalSize<gles2::cmds::DrawBuffersEXTImmediate>(size); |
2228 if (c) { | 1905 if (c) { |
2229 c->Init(count, bufs); | 1906 c->Init(count, bufs); |
2230 } | 1907 } |
2231 } | 1908 } |
2232 | 1909 |
(...skipping 27 matching lines...) Expand all Loading... |
2260 bounds_width, | 1937 bounds_width, |
2261 bounds_height, | 1938 bounds_height, |
2262 uv_x, | 1939 uv_x, |
2263 uv_y, | 1940 uv_y, |
2264 uv_width, | 1941 uv_width, |
2265 uv_height); | 1942 uv_height); |
2266 } | 1943 } |
2267 } | 1944 } |
2268 | 1945 |
2269 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 1946 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |