| 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 13331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13342 } | 13342 } |
| 13343 | 13343 |
| 13344 gpu::CommandHeader header; | 13344 gpu::CommandHeader header; |
| 13345 }; | 13345 }; |
| 13346 | 13346 |
| 13347 static_assert(sizeof(TraceEndCHROMIUM) == 4, | 13347 static_assert(sizeof(TraceEndCHROMIUM) == 4, |
| 13348 "size of TraceEndCHROMIUM should be 4"); | 13348 "size of TraceEndCHROMIUM should be 4"); |
| 13349 static_assert(offsetof(TraceEndCHROMIUM, header) == 0, | 13349 static_assert(offsetof(TraceEndCHROMIUM, header) == 0, |
| 13350 "offset of TraceEndCHROMIUM header should be 0"); | 13350 "offset of TraceEndCHROMIUM header should be 0"); |
| 13351 | 13351 |
| 13352 struct AsyncTexSubImage2DCHROMIUM { | |
| 13353 typedef AsyncTexSubImage2DCHROMIUM ValueType; | |
| 13354 static const CommandId kCmdId = kAsyncTexSubImage2DCHROMIUM; | |
| 13355 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
| 13356 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | |
| 13357 | |
| 13358 static uint32_t ComputeSize() { | |
| 13359 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
| 13360 } | |
| 13361 | |
| 13362 void SetHeader() { header.SetCmd<ValueType>(); } | |
| 13363 | |
| 13364 void Init(GLenum _target, | |
| 13365 GLint _level, | |
| 13366 GLint _xoffset, | |
| 13367 GLint _yoffset, | |
| 13368 GLsizei _width, | |
| 13369 GLsizei _height, | |
| 13370 GLenum _format, | |
| 13371 GLenum _type, | |
| 13372 uint32_t _data_shm_id, | |
| 13373 uint32_t _data_shm_offset, | |
| 13374 uint32_t _async_upload_token, | |
| 13375 uint32_t _sync_data_shm_id, | |
| 13376 uint32_t _sync_data_shm_offset) { | |
| 13377 SetHeader(); | |
| 13378 target = _target; | |
| 13379 level = _level; | |
| 13380 xoffset = _xoffset; | |
| 13381 yoffset = _yoffset; | |
| 13382 width = _width; | |
| 13383 height = _height; | |
| 13384 format = _format; | |
| 13385 type = _type; | |
| 13386 data_shm_id = _data_shm_id; | |
| 13387 data_shm_offset = _data_shm_offset; | |
| 13388 async_upload_token = _async_upload_token; | |
| 13389 sync_data_shm_id = _sync_data_shm_id; | |
| 13390 sync_data_shm_offset = _sync_data_shm_offset; | |
| 13391 } | |
| 13392 | |
| 13393 void* Set(void* cmd, | |
| 13394 GLenum _target, | |
| 13395 GLint _level, | |
| 13396 GLint _xoffset, | |
| 13397 GLint _yoffset, | |
| 13398 GLsizei _width, | |
| 13399 GLsizei _height, | |
| 13400 GLenum _format, | |
| 13401 GLenum _type, | |
| 13402 uint32_t _data_shm_id, | |
| 13403 uint32_t _data_shm_offset, | |
| 13404 uint32_t _async_upload_token, | |
| 13405 uint32_t _sync_data_shm_id, | |
| 13406 uint32_t _sync_data_shm_offset) { | |
| 13407 static_cast<ValueType*>(cmd) | |
| 13408 ->Init(_target, _level, _xoffset, _yoffset, _width, _height, _format, | |
| 13409 _type, _data_shm_id, _data_shm_offset, _async_upload_token, | |
| 13410 _sync_data_shm_id, _sync_data_shm_offset); | |
| 13411 return NextCmdAddress<ValueType>(cmd); | |
| 13412 } | |
| 13413 | |
| 13414 gpu::CommandHeader header; | |
| 13415 uint32_t target; | |
| 13416 int32_t level; | |
| 13417 int32_t xoffset; | |
| 13418 int32_t yoffset; | |
| 13419 int32_t width; | |
| 13420 int32_t height; | |
| 13421 uint32_t format; | |
| 13422 uint32_t type; | |
| 13423 uint32_t data_shm_id; | |
| 13424 uint32_t data_shm_offset; | |
| 13425 uint32_t async_upload_token; | |
| 13426 uint32_t sync_data_shm_id; | |
| 13427 uint32_t sync_data_shm_offset; | |
| 13428 }; | |
| 13429 | |
| 13430 static_assert(sizeof(AsyncTexSubImage2DCHROMIUM) == 56, | |
| 13431 "size of AsyncTexSubImage2DCHROMIUM should be 56"); | |
| 13432 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, header) == 0, | |
| 13433 "offset of AsyncTexSubImage2DCHROMIUM header should be 0"); | |
| 13434 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, target) == 4, | |
| 13435 "offset of AsyncTexSubImage2DCHROMIUM target should be 4"); | |
| 13436 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, level) == 8, | |
| 13437 "offset of AsyncTexSubImage2DCHROMIUM level should be 8"); | |
| 13438 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, xoffset) == 12, | |
| 13439 "offset of AsyncTexSubImage2DCHROMIUM xoffset should be 12"); | |
| 13440 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, yoffset) == 16, | |
| 13441 "offset of AsyncTexSubImage2DCHROMIUM yoffset should be 16"); | |
| 13442 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, width) == 20, | |
| 13443 "offset of AsyncTexSubImage2DCHROMIUM width should be 20"); | |
| 13444 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, height) == 24, | |
| 13445 "offset of AsyncTexSubImage2DCHROMIUM height should be 24"); | |
| 13446 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, format) == 28, | |
| 13447 "offset of AsyncTexSubImage2DCHROMIUM format should be 28"); | |
| 13448 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, type) == 32, | |
| 13449 "offset of AsyncTexSubImage2DCHROMIUM type should be 32"); | |
| 13450 static_assert(offsetof(AsyncTexSubImage2DCHROMIUM, data_shm_id) == 36, | |
| 13451 "offset of AsyncTexSubImage2DCHROMIUM data_shm_id should be 36"); | |
| 13452 static_assert( | |
| 13453 offsetof(AsyncTexSubImage2DCHROMIUM, data_shm_offset) == 40, | |
| 13454 "offset of AsyncTexSubImage2DCHROMIUM data_shm_offset should be 40"); | |
| 13455 static_assert( | |
| 13456 offsetof(AsyncTexSubImage2DCHROMIUM, async_upload_token) == 44, | |
| 13457 "offset of AsyncTexSubImage2DCHROMIUM async_upload_token should be 44"); | |
| 13458 static_assert( | |
| 13459 offsetof(AsyncTexSubImage2DCHROMIUM, sync_data_shm_id) == 48, | |
| 13460 "offset of AsyncTexSubImage2DCHROMIUM sync_data_shm_id should be 48"); | |
| 13461 static_assert( | |
| 13462 offsetof(AsyncTexSubImage2DCHROMIUM, sync_data_shm_offset) == 52, | |
| 13463 "offset of AsyncTexSubImage2DCHROMIUM sync_data_shm_offset should be 52"); | |
| 13464 | |
| 13465 struct AsyncTexImage2DCHROMIUM { | |
| 13466 typedef AsyncTexImage2DCHROMIUM ValueType; | |
| 13467 static const CommandId kCmdId = kAsyncTexImage2DCHROMIUM; | |
| 13468 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
| 13469 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | |
| 13470 | |
| 13471 static uint32_t ComputeSize() { | |
| 13472 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
| 13473 } | |
| 13474 | |
| 13475 void SetHeader() { header.SetCmd<ValueType>(); } | |
| 13476 | |
| 13477 void Init(GLenum _target, | |
| 13478 GLint _level, | |
| 13479 GLint _internalformat, | |
| 13480 GLsizei _width, | |
| 13481 GLsizei _height, | |
| 13482 GLenum _format, | |
| 13483 GLenum _type, | |
| 13484 uint32_t _pixels_shm_id, | |
| 13485 uint32_t _pixels_shm_offset, | |
| 13486 uint32_t _async_upload_token, | |
| 13487 uint32_t _sync_data_shm_id, | |
| 13488 uint32_t _sync_data_shm_offset) { | |
| 13489 SetHeader(); | |
| 13490 target = _target; | |
| 13491 level = _level; | |
| 13492 internalformat = _internalformat; | |
| 13493 width = _width; | |
| 13494 height = _height; | |
| 13495 format = _format; | |
| 13496 type = _type; | |
| 13497 pixels_shm_id = _pixels_shm_id; | |
| 13498 pixels_shm_offset = _pixels_shm_offset; | |
| 13499 async_upload_token = _async_upload_token; | |
| 13500 sync_data_shm_id = _sync_data_shm_id; | |
| 13501 sync_data_shm_offset = _sync_data_shm_offset; | |
| 13502 } | |
| 13503 | |
| 13504 void* Set(void* cmd, | |
| 13505 GLenum _target, | |
| 13506 GLint _level, | |
| 13507 GLint _internalformat, | |
| 13508 GLsizei _width, | |
| 13509 GLsizei _height, | |
| 13510 GLenum _format, | |
| 13511 GLenum _type, | |
| 13512 uint32_t _pixels_shm_id, | |
| 13513 uint32_t _pixels_shm_offset, | |
| 13514 uint32_t _async_upload_token, | |
| 13515 uint32_t _sync_data_shm_id, | |
| 13516 uint32_t _sync_data_shm_offset) { | |
| 13517 static_cast<ValueType*>(cmd) | |
| 13518 ->Init(_target, _level, _internalformat, _width, _height, _format, | |
| 13519 _type, _pixels_shm_id, _pixels_shm_offset, _async_upload_token, | |
| 13520 _sync_data_shm_id, _sync_data_shm_offset); | |
| 13521 return NextCmdAddress<ValueType>(cmd); | |
| 13522 } | |
| 13523 | |
| 13524 gpu::CommandHeader header; | |
| 13525 uint32_t target; | |
| 13526 int32_t level; | |
| 13527 int32_t internalformat; | |
| 13528 int32_t width; | |
| 13529 int32_t height; | |
| 13530 uint32_t format; | |
| 13531 uint32_t type; | |
| 13532 uint32_t pixels_shm_id; | |
| 13533 uint32_t pixels_shm_offset; | |
| 13534 uint32_t async_upload_token; | |
| 13535 uint32_t sync_data_shm_id; | |
| 13536 uint32_t sync_data_shm_offset; | |
| 13537 static const int32_t border = 0; | |
| 13538 }; | |
| 13539 | |
| 13540 static_assert(sizeof(AsyncTexImage2DCHROMIUM) == 52, | |
| 13541 "size of AsyncTexImage2DCHROMIUM should be 52"); | |
| 13542 static_assert(offsetof(AsyncTexImage2DCHROMIUM, header) == 0, | |
| 13543 "offset of AsyncTexImage2DCHROMIUM header should be 0"); | |
| 13544 static_assert(offsetof(AsyncTexImage2DCHROMIUM, target) == 4, | |
| 13545 "offset of AsyncTexImage2DCHROMIUM target should be 4"); | |
| 13546 static_assert(offsetof(AsyncTexImage2DCHROMIUM, level) == 8, | |
| 13547 "offset of AsyncTexImage2DCHROMIUM level should be 8"); | |
| 13548 static_assert(offsetof(AsyncTexImage2DCHROMIUM, internalformat) == 12, | |
| 13549 "offset of AsyncTexImage2DCHROMIUM internalformat should be 12"); | |
| 13550 static_assert(offsetof(AsyncTexImage2DCHROMIUM, width) == 16, | |
| 13551 "offset of AsyncTexImage2DCHROMIUM width should be 16"); | |
| 13552 static_assert(offsetof(AsyncTexImage2DCHROMIUM, height) == 20, | |
| 13553 "offset of AsyncTexImage2DCHROMIUM height should be 20"); | |
| 13554 static_assert(offsetof(AsyncTexImage2DCHROMIUM, format) == 24, | |
| 13555 "offset of AsyncTexImage2DCHROMIUM format should be 24"); | |
| 13556 static_assert(offsetof(AsyncTexImage2DCHROMIUM, type) == 28, | |
| 13557 "offset of AsyncTexImage2DCHROMIUM type should be 28"); | |
| 13558 static_assert(offsetof(AsyncTexImage2DCHROMIUM, pixels_shm_id) == 32, | |
| 13559 "offset of AsyncTexImage2DCHROMIUM pixels_shm_id should be 32"); | |
| 13560 static_assert( | |
| 13561 offsetof(AsyncTexImage2DCHROMIUM, pixels_shm_offset) == 36, | |
| 13562 "offset of AsyncTexImage2DCHROMIUM pixels_shm_offset should be 36"); | |
| 13563 static_assert( | |
| 13564 offsetof(AsyncTexImage2DCHROMIUM, async_upload_token) == 40, | |
| 13565 "offset of AsyncTexImage2DCHROMIUM async_upload_token should be 40"); | |
| 13566 static_assert( | |
| 13567 offsetof(AsyncTexImage2DCHROMIUM, sync_data_shm_id) == 44, | |
| 13568 "offset of AsyncTexImage2DCHROMIUM sync_data_shm_id should be 44"); | |
| 13569 static_assert( | |
| 13570 offsetof(AsyncTexImage2DCHROMIUM, sync_data_shm_offset) == 48, | |
| 13571 "offset of AsyncTexImage2DCHROMIUM sync_data_shm_offset should be 48"); | |
| 13572 | |
| 13573 struct WaitAsyncTexImage2DCHROMIUM { | |
| 13574 typedef WaitAsyncTexImage2DCHROMIUM ValueType; | |
| 13575 static const CommandId kCmdId = kWaitAsyncTexImage2DCHROMIUM; | |
| 13576 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
| 13577 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | |
| 13578 | |
| 13579 static uint32_t ComputeSize() { | |
| 13580 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
| 13581 } | |
| 13582 | |
| 13583 void SetHeader() { header.SetCmd<ValueType>(); } | |
| 13584 | |
| 13585 void Init(GLenum _target) { | |
| 13586 SetHeader(); | |
| 13587 target = _target; | |
| 13588 } | |
| 13589 | |
| 13590 void* Set(void* cmd, GLenum _target) { | |
| 13591 static_cast<ValueType*>(cmd)->Init(_target); | |
| 13592 return NextCmdAddress<ValueType>(cmd); | |
| 13593 } | |
| 13594 | |
| 13595 gpu::CommandHeader header; | |
| 13596 uint32_t target; | |
| 13597 }; | |
| 13598 | |
| 13599 static_assert(sizeof(WaitAsyncTexImage2DCHROMIUM) == 8, | |
| 13600 "size of WaitAsyncTexImage2DCHROMIUM should be 8"); | |
| 13601 static_assert(offsetof(WaitAsyncTexImage2DCHROMIUM, header) == 0, | |
| 13602 "offset of WaitAsyncTexImage2DCHROMIUM header should be 0"); | |
| 13603 static_assert(offsetof(WaitAsyncTexImage2DCHROMIUM, target) == 4, | |
| 13604 "offset of WaitAsyncTexImage2DCHROMIUM target should be 4"); | |
| 13605 | |
| 13606 struct WaitAllAsyncTexImage2DCHROMIUM { | |
| 13607 typedef WaitAllAsyncTexImage2DCHROMIUM ValueType; | |
| 13608 static const CommandId kCmdId = kWaitAllAsyncTexImage2DCHROMIUM; | |
| 13609 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
| 13610 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | |
| 13611 | |
| 13612 static uint32_t ComputeSize() { | |
| 13613 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
| 13614 } | |
| 13615 | |
| 13616 void SetHeader() { header.SetCmd<ValueType>(); } | |
| 13617 | |
| 13618 void Init() { SetHeader(); } | |
| 13619 | |
| 13620 void* Set(void* cmd) { | |
| 13621 static_cast<ValueType*>(cmd)->Init(); | |
| 13622 return NextCmdAddress<ValueType>(cmd); | |
| 13623 } | |
| 13624 | |
| 13625 gpu::CommandHeader header; | |
| 13626 }; | |
| 13627 | |
| 13628 static_assert(sizeof(WaitAllAsyncTexImage2DCHROMIUM) == 4, | |
| 13629 "size of WaitAllAsyncTexImage2DCHROMIUM should be 4"); | |
| 13630 static_assert(offsetof(WaitAllAsyncTexImage2DCHROMIUM, header) == 0, | |
| 13631 "offset of WaitAllAsyncTexImage2DCHROMIUM header should be 0"); | |
| 13632 | |
| 13633 struct DiscardFramebufferEXTImmediate { | 13352 struct DiscardFramebufferEXTImmediate { |
| 13634 typedef DiscardFramebufferEXTImmediate ValueType; | 13353 typedef DiscardFramebufferEXTImmediate ValueType; |
| 13635 static const CommandId kCmdId = kDiscardFramebufferEXTImmediate; | 13354 static const CommandId kCmdId = kDiscardFramebufferEXTImmediate; |
| 13636 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; | 13355 static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN; |
| 13637 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 13356 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
| 13638 | 13357 |
| 13639 static uint32_t ComputeDataSize(GLsizei count) { | 13358 static uint32_t ComputeDataSize(GLsizei count) { |
| 13640 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT | 13359 return static_cast<uint32_t>(sizeof(GLenum) * 1 * count); // NOLINT |
| 13641 } | 13360 } |
| 13642 | 13361 |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14656 | 14375 |
| 14657 gpu::CommandHeader header; | 14376 gpu::CommandHeader header; |
| 14658 }; | 14377 }; |
| 14659 | 14378 |
| 14660 static_assert(sizeof(BlendBarrierKHR) == 4, | 14379 static_assert(sizeof(BlendBarrierKHR) == 4, |
| 14661 "size of BlendBarrierKHR should be 4"); | 14380 "size of BlendBarrierKHR should be 4"); |
| 14662 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 14381 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
| 14663 "offset of BlendBarrierKHR header should be 0"); | 14382 "offset of BlendBarrierKHR header should be 0"); |
| 14664 | 14383 |
| 14665 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 14384 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |