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 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 } | 36 } |
37 | 37 |
38 void BindBuffer(GLenum target, GLuint buffer) { | 38 void BindBuffer(GLenum target, GLuint buffer) { |
39 gles2::cmds::BindBuffer* c = GetCmdSpace<gles2::cmds::BindBuffer>(); | 39 gles2::cmds::BindBuffer* c = GetCmdSpace<gles2::cmds::BindBuffer>(); |
40 if (c) { | 40 if (c) { |
41 c->Init(target, buffer); | 41 c->Init(target, buffer); |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
| 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); |
| 49 } |
| 50 } |
| 51 |
45 void BindFramebuffer(GLenum target, GLuint framebuffer) { | 52 void BindFramebuffer(GLenum target, GLuint framebuffer) { |
46 gles2::cmds::BindFramebuffer* c = GetCmdSpace<gles2::cmds::BindFramebuffer>(); | 53 gles2::cmds::BindFramebuffer* c = GetCmdSpace<gles2::cmds::BindFramebuffer>(); |
47 if (c) { | 54 if (c) { |
48 c->Init(target, framebuffer); | 55 c->Init(target, framebuffer); |
49 } | 56 } |
50 } | 57 } |
51 | 58 |
52 void BindRenderbuffer(GLenum target, GLuint renderbuffer) { | 59 void BindRenderbuffer(GLenum target, GLuint renderbuffer) { |
53 gles2::cmds::BindRenderbuffer* c = | 60 gles2::cmds::BindRenderbuffer* c = |
54 GetCmdSpace<gles2::cmds::BindRenderbuffer>(); | 61 GetCmdSpace<gles2::cmds::BindRenderbuffer>(); |
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 GLenum type, | 1225 GLenum type, |
1219 uint32_t pixels_shm_id, | 1226 uint32_t pixels_shm_id, |
1220 uint32_t pixels_shm_offset) { | 1227 uint32_t pixels_shm_offset) { |
1221 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>(); | 1228 gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>(); |
1222 if (c) { | 1229 if (c) { |
1223 c->Init(target, level, internalformat, width, height, format, type, | 1230 c->Init(target, level, internalformat, width, height, format, type, |
1224 pixels_shm_id, pixels_shm_offset); | 1231 pixels_shm_id, pixels_shm_offset); |
1225 } | 1232 } |
1226 } | 1233 } |
1227 | 1234 |
| 1235 void TexImage3D(GLenum target, |
| 1236 GLint level, |
| 1237 GLint internalformat, |
| 1238 GLsizei width, |
| 1239 GLsizei height, |
| 1240 GLsizei depth, |
| 1241 GLenum format, |
| 1242 GLenum type, |
| 1243 uint32_t pixels_shm_id, |
| 1244 uint32_t pixels_shm_offset) { |
| 1245 gles2::cmds::TexImage3D* c = GetCmdSpace<gles2::cmds::TexImage3D>(); |
| 1246 if (c) { |
| 1247 c->Init(target, level, internalformat, width, height, depth, format, type, |
| 1248 pixels_shm_id, pixels_shm_offset); |
| 1249 } |
| 1250 } |
| 1251 |
1228 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { | 1252 void TexParameterf(GLenum target, GLenum pname, GLfloat param) { |
1229 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>(); | 1253 gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>(); |
1230 if (c) { | 1254 if (c) { |
1231 c->Init(target, pname, param); | 1255 c->Init(target, pname, param); |
1232 } | 1256 } |
1233 } | 1257 } |
1234 | 1258 |
1235 void TexParameterfvImmediate(GLenum target, | 1259 void TexParameterfvImmediate(GLenum target, |
1236 GLenum pname, | 1260 GLenum pname, |
1237 const GLfloat* params) { | 1261 const GLfloat* params) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 uint32_t pixels_shm_id, | 1306 uint32_t pixels_shm_id, |
1283 uint32_t pixels_shm_offset, | 1307 uint32_t pixels_shm_offset, |
1284 GLboolean internal) { | 1308 GLboolean internal) { |
1285 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>(); | 1309 gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>(); |
1286 if (c) { | 1310 if (c) { |
1287 c->Init(target, level, xoffset, yoffset, width, height, format, type, | 1311 c->Init(target, level, xoffset, yoffset, width, height, format, type, |
1288 pixels_shm_id, pixels_shm_offset, internal); | 1312 pixels_shm_id, pixels_shm_offset, internal); |
1289 } | 1313 } |
1290 } | 1314 } |
1291 | 1315 |
| 1316 void TexSubImage3D(GLenum target, |
| 1317 GLint level, |
| 1318 GLint xoffset, |
| 1319 GLint yoffset, |
| 1320 GLint zoffset, |
| 1321 GLsizei width, |
| 1322 GLsizei height, |
| 1323 GLsizei depth, |
| 1324 GLenum format, |
| 1325 GLenum type, |
| 1326 uint32_t pixels_shm_id, |
| 1327 uint32_t pixels_shm_offset, |
| 1328 GLboolean internal) { |
| 1329 gles2::cmds::TexSubImage3D* c = GetCmdSpace<gles2::cmds::TexSubImage3D>(); |
| 1330 if (c) { |
| 1331 c->Init(target, level, xoffset, yoffset, zoffset, width, height, depth, |
| 1332 format, type, pixels_shm_id, pixels_shm_offset, internal); |
| 1333 } |
| 1334 } |
| 1335 |
1292 void Uniform1f(GLint location, GLfloat x) { | 1336 void Uniform1f(GLint location, GLfloat x) { |
1293 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); | 1337 gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>(); |
1294 if (c) { | 1338 if (c) { |
1295 c->Init(location, x); | 1339 c->Init(location, x); |
1296 } | 1340 } |
1297 } | 1341 } |
1298 | 1342 |
1299 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { | 1343 void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { |
1300 const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count); | 1344 const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count); |
1301 gles2::cmds::Uniform1fvImmediate* c = | 1345 gles2::cmds::Uniform1fvImmediate* c = |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2358 } | 2402 } |
2359 | 2403 |
2360 void BlendBarrierKHR() { | 2404 void BlendBarrierKHR() { |
2361 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); | 2405 gles2::cmds::BlendBarrierKHR* c = GetCmdSpace<gles2::cmds::BlendBarrierKHR>(); |
2362 if (c) { | 2406 if (c) { |
2363 c->Init(); | 2407 c->Init(); |
2364 } | 2408 } |
2365 } | 2409 } |
2366 | 2410 |
2367 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ | 2411 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ |
OLD | NEW |