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 12515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12526 "size of CompressedCopyTextureCHROMIUM should be 16"); | 12526 "size of CompressedCopyTextureCHROMIUM should be 16"); |
12527 static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0, | 12527 static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0, |
12528 "offset of CompressedCopyTextureCHROMIUM header should be 0"); | 12528 "offset of CompressedCopyTextureCHROMIUM header should be 0"); |
12529 static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4, | 12529 static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4, |
12530 "offset of CompressedCopyTextureCHROMIUM target should be 4"); | 12530 "offset of CompressedCopyTextureCHROMIUM target should be 4"); |
12531 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, | 12531 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, |
12532 "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); | 12532 "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); |
12533 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, | 12533 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, |
12534 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); | 12534 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); |
12535 | 12535 |
12536 struct CompressedCopySubTextureCHROMIUM { | |
12537 typedef CompressedCopySubTextureCHROMIUM ValueType; | |
12538 static const CommandId kCmdId = kCompressedCopySubTextureCHROMIUM; | |
12539 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
12540 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | |
12541 | |
12542 static uint32_t ComputeSize() { | |
12543 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
12544 } | |
12545 | |
12546 void SetHeader() { header.SetCmd<ValueType>(); } | |
12547 | |
12548 void Init(GLenum _target, | |
12549 GLenum _source_id, | |
12550 GLenum _dest_id, | |
12551 GLint _xoffset, | |
12552 GLint _yoffset, | |
12553 GLint _x, | |
12554 GLint _y, | |
12555 GLsizei _width, | |
12556 GLsizei _height) { | |
12557 SetHeader(); | |
12558 target = _target; | |
12559 source_id = _source_id; | |
12560 dest_id = _dest_id; | |
12561 xoffset = _xoffset; | |
12562 yoffset = _yoffset; | |
12563 x = _x; | |
12564 y = _y; | |
12565 width = _width; | |
12566 height = _height; | |
12567 } | |
12568 | |
12569 void* Set(void* cmd, | |
12570 GLenum _target, | |
12571 GLenum _source_id, | |
12572 GLenum _dest_id, | |
12573 GLint _xoffset, | |
12574 GLint _yoffset, | |
12575 GLint _x, | |
12576 GLint _y, | |
12577 GLsizei _width, | |
12578 GLsizei _height) { | |
12579 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _xoffset, | |
12580 _yoffset, _x, _y, _width, _height); | |
12581 return NextCmdAddress<ValueType>(cmd); | |
12582 } | |
12583 | |
12584 gpu::CommandHeader header; | |
12585 uint32_t target; | |
12586 uint32_t source_id; | |
12587 uint32_t dest_id; | |
12588 int32_t xoffset; | |
12589 int32_t yoffset; | |
12590 int32_t x; | |
12591 int32_t y; | |
12592 int32_t width; | |
12593 int32_t height; | |
12594 }; | |
12595 | |
12596 static_assert(sizeof(CompressedCopySubTextureCHROMIUM) == 40, | |
12597 "size of CompressedCopySubTextureCHROMIUM should be 40"); | |
12598 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, header) == 0, | |
12599 "offset of CompressedCopySubTextureCHROMIUM header should be 0"); | |
12600 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, target) == 4, | |
12601 "offset of CompressedCopySubTextureCHROMIUM target should be 4"); | |
12602 static_assert( | |
12603 offsetof(CompressedCopySubTextureCHROMIUM, source_id) == 8, | |
12604 "offset of CompressedCopySubTextureCHROMIUM source_id should be 8"); | |
12605 static_assert( | |
12606 offsetof(CompressedCopySubTextureCHROMIUM, dest_id) == 12, | |
12607 "offset of CompressedCopySubTextureCHROMIUM dest_id should be 12"); | |
12608 static_assert( | |
12609 offsetof(CompressedCopySubTextureCHROMIUM, xoffset) == 16, | |
12610 "offset of CompressedCopySubTextureCHROMIUM xoffset should be 16"); | |
12611 static_assert( | |
12612 offsetof(CompressedCopySubTextureCHROMIUM, yoffset) == 20, | |
12613 "offset of CompressedCopySubTextureCHROMIUM yoffset should be 20"); | |
12614 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, x) == 24, | |
12615 "offset of CompressedCopySubTextureCHROMIUM x should be 24"); | |
12616 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, y) == 28, | |
12617 "offset of CompressedCopySubTextureCHROMIUM y should be 28"); | |
12618 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, width) == 32, | |
12619 "offset of CompressedCopySubTextureCHROMIUM width should be 32"); | |
12620 static_assert(offsetof(CompressedCopySubTextureCHROMIUM, height) == 36, | |
12621 "offset of CompressedCopySubTextureCHROMIUM height should be 36"); | |
12622 | |
12623 struct DrawArraysInstancedANGLE { | 12536 struct DrawArraysInstancedANGLE { |
12624 typedef DrawArraysInstancedANGLE ValueType; | 12537 typedef DrawArraysInstancedANGLE ValueType; |
12625 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 12538 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
12626 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12539 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
12627 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12540 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
12628 | 12541 |
12629 static uint32_t ComputeSize() { | 12542 static uint32_t ComputeSize() { |
12630 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12543 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
12631 } | 12544 } |
12632 | 12545 |
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15719 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, | 15632 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, |
15720 "offset of GetFragDataIndexEXT program should be 4"); | 15633 "offset of GetFragDataIndexEXT program should be 4"); |
15721 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, | 15634 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, |
15722 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); | 15635 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); |
15723 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, | 15636 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, |
15724 "offset of GetFragDataIndexEXT index_shm_id should be 12"); | 15637 "offset of GetFragDataIndexEXT index_shm_id should be 12"); |
15725 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, | 15638 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, |
15726 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); | 15639 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); |
15727 | 15640 |
15728 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15641 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |