Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 uint32_t data_shm_id, 236 uint32_t data_shm_id,
237 uint32_t data_shm_offset) { 237 uint32_t data_shm_offset) {
238 gles2::cmds::CompressedTexSubImage2D* c = 238 gles2::cmds::CompressedTexSubImage2D* c =
239 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>(); 239 GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>();
240 if (c) { 240 if (c) {
241 c->Init(target, level, xoffset, yoffset, width, height, format, imageSize, 241 c->Init(target, level, xoffset, yoffset, width, height, format, imageSize,
242 data_shm_id, data_shm_offset); 242 data_shm_id, data_shm_offset);
243 } 243 }
244 } 244 }
245 245
246 void CopyBufferSubData(GLenum readtarget,
247 GLenum writetarget,
248 GLintptr readoffset,
249 GLintptr writeoffset,
250 GLsizeiptr size) {
251 gles2::cmds::CopyBufferSubData* c =
252 GetCmdSpace<gles2::cmds::CopyBufferSubData>();
253 if (c) {
254 c->Init(readtarget, writetarget, readoffset, writeoffset, size);
255 }
256 }
257
246 void CopyTexImage2D(GLenum target, 258 void CopyTexImage2D(GLenum target,
247 GLint level, 259 GLint level,
248 GLenum internalformat, 260 GLenum internalformat,
249 GLint x, 261 GLint x,
250 GLint y, 262 GLint y,
251 GLsizei width, 263 GLsizei width,
252 GLsizei height) { 264 GLsizei height) {
253 gles2::cmds::CopyTexImage2D* c = GetCmdSpace<gles2::cmds::CopyTexImage2D>(); 265 gles2::cmds::CopyTexImage2D* c = GetCmdSpace<gles2::cmds::CopyTexImage2D>();
254 if (c) { 266 if (c) {
255 c->Init(target, level, internalformat, x, y, width, height); 267 c->Init(target, level, internalformat, x, y, width, height);
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 GLenum attachment, 462 GLenum attachment,
451 GLenum textarget, 463 GLenum textarget,
452 GLuint texture) { 464 GLuint texture) {
453 gles2::cmds::FramebufferTexture2D* c = 465 gles2::cmds::FramebufferTexture2D* c =
454 GetCmdSpace<gles2::cmds::FramebufferTexture2D>(); 466 GetCmdSpace<gles2::cmds::FramebufferTexture2D>();
455 if (c) { 467 if (c) {
456 c->Init(target, attachment, textarget, texture); 468 c->Init(target, attachment, textarget, texture);
457 } 469 }
458 } 470 }
459 471
472 void FramebufferTextureLayer(GLenum target,
473 GLenum attachment,
474 GLuint texture,
475 GLint level,
476 GLint layer) {
477 gles2::cmds::FramebufferTextureLayer* c =
478 GetCmdSpace<gles2::cmds::FramebufferTextureLayer>();
479 if (c) {
480 c->Init(target, attachment, texture, level, layer);
481 }
482 }
483
460 void FrontFace(GLenum mode) { 484 void FrontFace(GLenum mode) {
461 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>(); 485 gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>();
462 if (c) { 486 if (c) {
463 c->Init(mode); 487 c->Init(mode);
464 } 488 }
465 } 489 }
466 490
467 void GenBuffersImmediate(GLsizei n, GLuint* buffers) { 491 void GenBuffersImmediate(GLsizei n, GLuint* buffers) {
468 const uint32_t size = gles2::cmds::GenBuffersImmediate::ComputeSize(n); 492 const uint32_t size = gles2::cmds::GenBuffersImmediate::ComputeSize(n);
469 gles2::cmds::GenBuffersImmediate* c = 493 gles2::cmds::GenBuffersImmediate* c =
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 628
605 void GetIntegerv(GLenum pname, 629 void GetIntegerv(GLenum pname,
606 uint32_t params_shm_id, 630 uint32_t params_shm_id,
607 uint32_t params_shm_offset) { 631 uint32_t params_shm_offset) {
608 gles2::cmds::GetIntegerv* c = GetCmdSpace<gles2::cmds::GetIntegerv>(); 632 gles2::cmds::GetIntegerv* c = GetCmdSpace<gles2::cmds::GetIntegerv>();
609 if (c) { 633 if (c) {
610 c->Init(pname, params_shm_id, params_shm_offset); 634 c->Init(pname, params_shm_id, params_shm_offset);
611 } 635 }
612 } 636 }
613 637
638 void GetInternalformativ(GLenum target,
639 GLenum format,
640 GLenum pname,
641 GLsizei bufSize,
642 uint32_t params_shm_id,
643 uint32_t params_shm_offset) {
644 gles2::cmds::GetInternalformativ* c =
645 GetCmdSpace<gles2::cmds::GetInternalformativ>();
646 if (c) {
647 c->Init(target, format, pname, bufSize, params_shm_id, params_shm_offset);
648 }
649 }
650
614 void GetProgramiv(GLuint program, 651 void GetProgramiv(GLuint program,
615 GLenum pname, 652 GLenum pname,
616 uint32_t params_shm_id, 653 uint32_t params_shm_id,
617 uint32_t params_shm_offset) { 654 uint32_t params_shm_offset) {
618 gles2::cmds::GetProgramiv* c = GetCmdSpace<gles2::cmds::GetProgramiv>(); 655 gles2::cmds::GetProgramiv* c = GetCmdSpace<gles2::cmds::GetProgramiv>();
619 if (c) { 656 if (c) {
620 c->Init(program, pname, params_shm_id, params_shm_offset); 657 c->Init(program, pname, params_shm_id, params_shm_offset);
621 } 658 }
622 } 659 }
623 660
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 1063
1027 void TexParameterivImmediate(GLenum target, GLenum pname, const GLint* params) { 1064 void TexParameterivImmediate(GLenum target, GLenum pname, const GLint* params) {
1028 const uint32_t size = gles2::cmds::TexParameterivImmediate::ComputeSize(); 1065 const uint32_t size = gles2::cmds::TexParameterivImmediate::ComputeSize();
1029 gles2::cmds::TexParameterivImmediate* c = 1066 gles2::cmds::TexParameterivImmediate* c =
1030 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(size); 1067 GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(size);
1031 if (c) { 1068 if (c) {
1032 c->Init(target, pname, params); 1069 c->Init(target, pname, params);
1033 } 1070 }
1034 } 1071 }
1035 1072
1073 void TexStorage3D(GLenum target,
1074 GLsizei levels,
1075 GLenum internalFormat,
1076 GLsizei width,
1077 GLsizei height,
1078 GLsizei depth) {
1079 gles2::cmds::TexStorage3D* c = GetCmdSpace<gles2::cmds::TexStorage3D>();
1080 if (c) {
1081 c->Init(target, levels, internalFormat, width, height, depth);
1082 }
1083 }
1084
1036 void TexSubImage2D(GLenum target, 1085 void TexSubImage2D(GLenum target,
1037 GLint level, 1086 GLint level,
1038 GLint xoffset, 1087 GLint xoffset,
1039 GLint yoffset, 1088 GLint yoffset,
1040 GLsizei width, 1089 GLsizei width,
1041 GLsizei height, 1090 GLsizei height,
1042 GLenum format, 1091 GLenum format,
1043 GLenum type, 1092 GLenum type,
1044 uint32_t pixels_shm_id, 1093 uint32_t pixels_shm_id,
1045 uint32_t pixels_shm_offset, 1094 uint32_t pixels_shm_offset,
(...skipping 30 matching lines...) Expand all
1076 1125
1077 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) { 1126 void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) {
1078 const uint32_t size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count); 1127 const uint32_t size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count);
1079 gles2::cmds::Uniform1ivImmediate* c = 1128 gles2::cmds::Uniform1ivImmediate* c =
1080 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size); 1129 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size);
1081 if (c) { 1130 if (c) {
1082 c->Init(location, count, v); 1131 c->Init(location, count, v);
1083 } 1132 }
1084 } 1133 }
1085 1134
1135 void Uniform1ui(GLint location, GLuint x) {
1136 gles2::cmds::Uniform1ui* c = GetCmdSpace<gles2::cmds::Uniform1ui>();
1137 if (c) {
1138 c->Init(location, x);
1139 }
1140 }
1141
1142 void Uniform1uivImmediate(GLint location, GLsizei count, const GLuint* v) {
1143 const uint32_t size = gles2::cmds::Uniform1uivImmediate::ComputeSize(count);
1144 gles2::cmds::Uniform1uivImmediate* c =
1145 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1uivImmediate>(size);
1146 if (c) {
1147 c->Init(location, count, v);
1148 }
1149 }
1150
1086 void Uniform2f(GLint location, GLfloat x, GLfloat y) { 1151 void Uniform2f(GLint location, GLfloat x, GLfloat y) {
1087 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>(); 1152 gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>();
1088 if (c) { 1153 if (c) {
1089 c->Init(location, x, y); 1154 c->Init(location, x, y);
1090 } 1155 }
1091 } 1156 }
1092 1157
1093 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) { 1158 void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1094 const uint32_t size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count); 1159 const uint32_t size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count);
1095 gles2::cmds::Uniform2fvImmediate* c = 1160 gles2::cmds::Uniform2fvImmediate* c =
(...skipping 12 matching lines...) Expand all
1108 1173
1109 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) { 1174 void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) {
1110 const uint32_t size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count); 1175 const uint32_t size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count);
1111 gles2::cmds::Uniform2ivImmediate* c = 1176 gles2::cmds::Uniform2ivImmediate* c =
1112 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size); 1177 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size);
1113 if (c) { 1178 if (c) {
1114 c->Init(location, count, v); 1179 c->Init(location, count, v);
1115 } 1180 }
1116 } 1181 }
1117 1182
1183 void Uniform2ui(GLint location, GLuint x, GLuint y) {
1184 gles2::cmds::Uniform2ui* c = GetCmdSpace<gles2::cmds::Uniform2ui>();
1185 if (c) {
1186 c->Init(location, x, y);
1187 }
1188 }
1189
1190 void Uniform2uivImmediate(GLint location, GLsizei count, const GLuint* v) {
1191 const uint32_t size = gles2::cmds::Uniform2uivImmediate::ComputeSize(count);
1192 gles2::cmds::Uniform2uivImmediate* c =
1193 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2uivImmediate>(size);
1194 if (c) {
1195 c->Init(location, count, v);
1196 }
1197 }
1198
1118 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { 1199 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
1119 gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>(); 1200 gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>();
1120 if (c) { 1201 if (c) {
1121 c->Init(location, x, y, z); 1202 c->Init(location, x, y, z);
1122 } 1203 }
1123 } 1204 }
1124 1205
1125 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) { 1206 void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1126 const uint32_t size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count); 1207 const uint32_t size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count);
1127 gles2::cmds::Uniform3fvImmediate* c = 1208 gles2::cmds::Uniform3fvImmediate* c =
(...skipping 12 matching lines...) Expand all
1140 1221
1141 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) { 1222 void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) {
1142 const uint32_t size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count); 1223 const uint32_t size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count);
1143 gles2::cmds::Uniform3ivImmediate* c = 1224 gles2::cmds::Uniform3ivImmediate* c =
1144 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size); 1225 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size);
1145 if (c) { 1226 if (c) {
1146 c->Init(location, count, v); 1227 c->Init(location, count, v);
1147 } 1228 }
1148 } 1229 }
1149 1230
1231 void Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) {
1232 gles2::cmds::Uniform3ui* c = GetCmdSpace<gles2::cmds::Uniform3ui>();
1233 if (c) {
1234 c->Init(location, x, y, z);
1235 }
1236 }
1237
1238 void Uniform3uivImmediate(GLint location, GLsizei count, const GLuint* v) {
1239 const uint32_t size = gles2::cmds::Uniform3uivImmediate::ComputeSize(count);
1240 gles2::cmds::Uniform3uivImmediate* c =
1241 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3uivImmediate>(size);
1242 if (c) {
1243 c->Init(location, count, v);
1244 }
1245 }
1246
1150 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { 1247 void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
1151 gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>(); 1248 gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>();
1152 if (c) { 1249 if (c) {
1153 c->Init(location, x, y, z, w); 1250 c->Init(location, x, y, z, w);
1154 } 1251 }
1155 } 1252 }
1156 1253
1157 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) { 1254 void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
1158 const uint32_t size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count); 1255 const uint32_t size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count);
1159 gles2::cmds::Uniform4fvImmediate* c = 1256 gles2::cmds::Uniform4fvImmediate* c =
(...skipping 12 matching lines...) Expand all
1172 1269
1173 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) { 1270 void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) {
1174 const uint32_t size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count); 1271 const uint32_t size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count);
1175 gles2::cmds::Uniform4ivImmediate* c = 1272 gles2::cmds::Uniform4ivImmediate* c =
1176 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size); 1273 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size);
1177 if (c) { 1274 if (c) {
1178 c->Init(location, count, v); 1275 c->Init(location, count, v);
1179 } 1276 }
1180 } 1277 }
1181 1278
1279 void Uniform4ui(GLint location, GLuint x, GLuint y, GLuint z, GLuint w) {
1280 gles2::cmds::Uniform4ui* c = GetCmdSpace<gles2::cmds::Uniform4ui>();
1281 if (c) {
1282 c->Init(location, x, y, z, w);
1283 }
1284 }
1285
1286 void Uniform4uivImmediate(GLint location, GLsizei count, const GLuint* v) {
1287 const uint32_t size = gles2::cmds::Uniform4uivImmediate::ComputeSize(count);
1288 gles2::cmds::Uniform4uivImmediate* c =
1289 GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4uivImmediate>(size);
1290 if (c) {
1291 c->Init(location, count, v);
1292 }
1293 }
1294
1182 void UniformMatrix2fvImmediate(GLint location, 1295 void UniformMatrix2fvImmediate(GLint location,
1183 GLsizei count, 1296 GLsizei count,
1184 const GLfloat* value) { 1297 const GLfloat* value) {
1185 const uint32_t size = 1298 const uint32_t size =
1186 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); 1299 gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count);
1187 gles2::cmds::UniformMatrix2fvImmediate* c = 1300 gles2::cmds::UniformMatrix2fvImmediate* c =
1188 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>( 1301 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>(
1189 size); 1302 size);
1190 if (c) { 1303 if (c) {
1191 c->Init(location, count, value); 1304 c->Init(location, count, value);
1192 } 1305 }
1193 } 1306 }
1194 1307
1308 void UniformMatrix2x3fvImmediate(GLint location,
1309 GLsizei count,
1310 const GLfloat* value) {
1311 const uint32_t size =
1312 gles2::cmds::UniformMatrix2x3fvImmediate::ComputeSize(count);
1313 gles2::cmds::UniformMatrix2x3fvImmediate* c =
1314 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2x3fvImmediate>(
1315 size);
1316 if (c) {
1317 c->Init(location, count, value);
1318 }
1319 }
1320
1321 void UniformMatrix2x4fvImmediate(GLint location,
1322 GLsizei count,
1323 const GLfloat* value) {
1324 const uint32_t size =
1325 gles2::cmds::UniformMatrix2x4fvImmediate::ComputeSize(count);
1326 gles2::cmds::UniformMatrix2x4fvImmediate* c =
1327 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2x4fvImmediate>(
1328 size);
1329 if (c) {
1330 c->Init(location, count, value);
1331 }
1332 }
1333
1195 void UniformMatrix3fvImmediate(GLint location, 1334 void UniformMatrix3fvImmediate(GLint location,
1196 GLsizei count, 1335 GLsizei count,
1197 const GLfloat* value) { 1336 const GLfloat* value) {
1198 const uint32_t size = 1337 const uint32_t size =
1199 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count); 1338 gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count);
1200 gles2::cmds::UniformMatrix3fvImmediate* c = 1339 gles2::cmds::UniformMatrix3fvImmediate* c =
1201 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>( 1340 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>(
1202 size); 1341 size);
1203 if (c) { 1342 if (c) {
1204 c->Init(location, count, value); 1343 c->Init(location, count, value);
1205 } 1344 }
1206 } 1345 }
1207 1346
1347 void UniformMatrix3x2fvImmediate(GLint location,
1348 GLsizei count,
1349 const GLfloat* value) {
1350 const uint32_t size =
1351 gles2::cmds::UniformMatrix3x2fvImmediate::ComputeSize(count);
1352 gles2::cmds::UniformMatrix3x2fvImmediate* c =
1353 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3x2fvImmediate>(
1354 size);
1355 if (c) {
1356 c->Init(location, count, value);
1357 }
1358 }
1359
1360 void UniformMatrix3x4fvImmediate(GLint location,
1361 GLsizei count,
1362 const GLfloat* value) {
1363 const uint32_t size =
1364 gles2::cmds::UniformMatrix3x4fvImmediate::ComputeSize(count);
1365 gles2::cmds::UniformMatrix3x4fvImmediate* c =
1366 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3x4fvImmediate>(
1367 size);
1368 if (c) {
1369 c->Init(location, count, value);
1370 }
1371 }
1372
1208 void UniformMatrix4fvImmediate(GLint location, 1373 void UniformMatrix4fvImmediate(GLint location,
1209 GLsizei count, 1374 GLsizei count,
1210 const GLfloat* value) { 1375 const GLfloat* value) {
1211 const uint32_t size = 1376 const uint32_t size =
1212 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count); 1377 gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count);
1213 gles2::cmds::UniformMatrix4fvImmediate* c = 1378 gles2::cmds::UniformMatrix4fvImmediate* c =
1214 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>( 1379 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>(
1215 size); 1380 size);
1216 if (c) { 1381 if (c) {
1217 c->Init(location, count, value); 1382 c->Init(location, count, value);
1218 } 1383 }
1219 } 1384 }
1220 1385
1386 void UniformMatrix4x2fvImmediate(GLint location,
1387 GLsizei count,
1388 const GLfloat* value) {
1389 const uint32_t size =
1390 gles2::cmds::UniformMatrix4x2fvImmediate::ComputeSize(count);
1391 gles2::cmds::UniformMatrix4x2fvImmediate* c =
1392 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4x2fvImmediate>(
1393 size);
1394 if (c) {
1395 c->Init(location, count, value);
1396 }
1397 }
1398
1399 void UniformMatrix4x3fvImmediate(GLint location,
1400 GLsizei count,
1401 const GLfloat* value) {
1402 const uint32_t size =
1403 gles2::cmds::UniformMatrix4x3fvImmediate::ComputeSize(count);
1404 gles2::cmds::UniformMatrix4x3fvImmediate* c =
1405 GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4x3fvImmediate>(
1406 size);
1407 if (c) {
1408 c->Init(location, count, value);
1409 }
1410 }
1411
1221 void UseProgram(GLuint program) { 1412 void UseProgram(GLuint program) {
1222 gles2::cmds::UseProgram* c = GetCmdSpace<gles2::cmds::UseProgram>(); 1413 gles2::cmds::UseProgram* c = GetCmdSpace<gles2::cmds::UseProgram>();
1223 if (c) { 1414 if (c) {
1224 c->Init(program); 1415 c->Init(program);
1225 } 1416 }
1226 } 1417 }
1227 1418
1228 void ValidateProgram(GLuint program) { 1419 void ValidateProgram(GLuint program) {
1229 gles2::cmds::ValidateProgram* c = GetCmdSpace<gles2::cmds::ValidateProgram>(); 1420 gles2::cmds::ValidateProgram* c = GetCmdSpace<gles2::cmds::ValidateProgram>();
1230 if (c) { 1421 if (c) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) { 1484 void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) {
1294 const uint32_t size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize(); 1485 const uint32_t size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize();
1295 gles2::cmds::VertexAttrib4fvImmediate* c = 1486 gles2::cmds::VertexAttrib4fvImmediate* c =
1296 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>( 1487 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>(
1297 size); 1488 size);
1298 if (c) { 1489 if (c) {
1299 c->Init(indx, values); 1490 c->Init(indx, values);
1300 } 1491 }
1301 } 1492 }
1302 1493
1494 void VertexAttribI4i(GLuint indx, GLint x, GLint y, GLint z, GLint w) {
1495 gles2::cmds::VertexAttribI4i* c = GetCmdSpace<gles2::cmds::VertexAttribI4i>();
1496 if (c) {
1497 c->Init(indx, x, y, z, w);
1498 }
1499 }
1500
1501 void VertexAttribI4ivImmediate(GLuint indx, const GLint* values) {
1502 const uint32_t size = gles2::cmds::VertexAttribI4ivImmediate::ComputeSize();
1503 gles2::cmds::VertexAttribI4ivImmediate* c =
1504 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttribI4ivImmediate>(
1505 size);
1506 if (c) {
1507 c->Init(indx, values);
1508 }
1509 }
1510
1511 void VertexAttribI4ui(GLuint indx, GLuint x, GLuint y, GLuint z, GLuint w) {
1512 gles2::cmds::VertexAttribI4ui* c =
1513 GetCmdSpace<gles2::cmds::VertexAttribI4ui>();
1514 if (c) {
1515 c->Init(indx, x, y, z, w);
1516 }
1517 }
1518
1519 void VertexAttribI4uivImmediate(GLuint indx, const GLuint* values) {
1520 const uint32_t size = gles2::cmds::VertexAttribI4uivImmediate::ComputeSize();
1521 gles2::cmds::VertexAttribI4uivImmediate* c =
1522 GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttribI4uivImmediate>(
1523 size);
1524 if (c) {
1525 c->Init(indx, values);
1526 }
1527 }
1528
1529 void VertexAttribIPointer(GLuint indx,
1530 GLint size,
1531 GLenum type,
1532 GLsizei stride,
1533 GLuint offset) {
1534 gles2::cmds::VertexAttribIPointer* c =
1535 GetCmdSpace<gles2::cmds::VertexAttribIPointer>();
1536 if (c) {
1537 c->Init(indx, size, type, stride, offset);
1538 }
1539 }
1540
1303 void VertexAttribPointer(GLuint indx, 1541 void VertexAttribPointer(GLuint indx,
1304 GLint size, 1542 GLint size,
1305 GLenum type, 1543 GLenum type,
1306 GLboolean normalized, 1544 GLboolean normalized,
1307 GLsizei stride, 1545 GLsizei stride,
1308 GLuint offset) { 1546 GLuint offset) {
1309 gles2::cmds::VertexAttribPointer* c = 1547 gles2::cmds::VertexAttribPointer* c =
1310 GetCmdSpace<gles2::cmds::VertexAttribPointer>(); 1548 GetCmdSpace<gles2::cmds::VertexAttribPointer>();
1311 if (c) { 1549 if (c) {
1312 c->Init(indx, size, type, normalized, stride, offset); 1550 c->Init(indx, size, type, normalized, stride, offset);
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 } 2146 }
1909 2147
1910 void BlendBarrierKHR() { 2148 void BlendBarrierKHR() {
1911 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); 2149 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>();
1912 if (c) { 2150 if (c) {
1913 c->Init(); 2151 c->Init();
1914 } 2152 }
1915 } 2153 }
1916 2154
1917 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2155 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698