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 12264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12275 "offset of CopySubTextureCHROMIUM yoffset should be 20"); | 12275 "offset of CopySubTextureCHROMIUM yoffset should be 20"); |
12276 static_assert(offsetof(CopySubTextureCHROMIUM, x) == 24, | 12276 static_assert(offsetof(CopySubTextureCHROMIUM, x) == 24, |
12277 "offset of CopySubTextureCHROMIUM x should be 24"); | 12277 "offset of CopySubTextureCHROMIUM x should be 24"); |
12278 static_assert(offsetof(CopySubTextureCHROMIUM, y) == 28, | 12278 static_assert(offsetof(CopySubTextureCHROMIUM, y) == 28, |
12279 "offset of CopySubTextureCHROMIUM y should be 28"); | 12279 "offset of CopySubTextureCHROMIUM y should be 28"); |
12280 static_assert(offsetof(CopySubTextureCHROMIUM, width) == 32, | 12280 static_assert(offsetof(CopySubTextureCHROMIUM, width) == 32, |
12281 "offset of CopySubTextureCHROMIUM width should be 32"); | 12281 "offset of CopySubTextureCHROMIUM width should be 32"); |
12282 static_assert(offsetof(CopySubTextureCHROMIUM, height) == 36, | 12282 static_assert(offsetof(CopySubTextureCHROMIUM, height) == 36, |
12283 "offset of CopySubTextureCHROMIUM height should be 36"); | 12283 "offset of CopySubTextureCHROMIUM height should be 36"); |
12284 | 12284 |
| 12285 struct CompressedCopyTextureCHROMIUM { |
| 12286 typedef CompressedCopyTextureCHROMIUM ValueType; |
| 12287 static const CommandId kCmdId = kCompressedCopyTextureCHROMIUM; |
| 12288 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 12289 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 12290 |
| 12291 static uint32_t ComputeSize() { |
| 12292 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 12293 } |
| 12294 |
| 12295 void SetHeader() { header.SetCmd<ValueType>(); } |
| 12296 |
| 12297 void Init(GLenum _target, GLenum _source_id, GLenum _dest_id) { |
| 12298 SetHeader(); |
| 12299 target = _target; |
| 12300 source_id = _source_id; |
| 12301 dest_id = _dest_id; |
| 12302 } |
| 12303 |
| 12304 void* Set(void* cmd, GLenum _target, GLenum _source_id, GLenum _dest_id) { |
| 12305 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id); |
| 12306 return NextCmdAddress<ValueType>(cmd); |
| 12307 } |
| 12308 |
| 12309 gpu::CommandHeader header; |
| 12310 uint32_t target; |
| 12311 uint32_t source_id; |
| 12312 uint32_t dest_id; |
| 12313 }; |
| 12314 |
| 12315 static_assert(sizeof(CompressedCopyTextureCHROMIUM) == 16, |
| 12316 "size of CompressedCopyTextureCHROMIUM should be 16"); |
| 12317 static_assert(offsetof(CompressedCopyTextureCHROMIUM, header) == 0, |
| 12318 "offset of CompressedCopyTextureCHROMIUM header should be 0"); |
| 12319 static_assert(offsetof(CompressedCopyTextureCHROMIUM, target) == 4, |
| 12320 "offset of CompressedCopyTextureCHROMIUM target should be 4"); |
| 12321 static_assert(offsetof(CompressedCopyTextureCHROMIUM, source_id) == 8, |
| 12322 "offset of CompressedCopyTextureCHROMIUM source_id should be 8"); |
| 12323 static_assert(offsetof(CompressedCopyTextureCHROMIUM, dest_id) == 12, |
| 12324 "offset of CompressedCopyTextureCHROMIUM dest_id should be 12"); |
| 12325 |
12285 struct DrawArraysInstancedANGLE { | 12326 struct DrawArraysInstancedANGLE { |
12286 typedef DrawArraysInstancedANGLE ValueType; | 12327 typedef DrawArraysInstancedANGLE ValueType; |
12287 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 12328 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
12288 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12329 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
12289 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12330 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
12290 | 12331 |
12291 static uint32_t ComputeSize() { | 12332 static uint32_t ComputeSize() { |
12292 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12333 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
12293 } | 12334 } |
12294 | 12335 |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13717 | 13758 |
13718 gpu::CommandHeader header; | 13759 gpu::CommandHeader header; |
13719 }; | 13760 }; |
13720 | 13761 |
13721 static_assert(sizeof(BlendBarrierKHR) == 4, | 13762 static_assert(sizeof(BlendBarrierKHR) == 4, |
13722 "size of BlendBarrierKHR should be 4"); | 13763 "size of BlendBarrierKHR should be 4"); |
13723 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 13764 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
13724 "offset of BlendBarrierKHR header should be 0"); | 13765 "offset of BlendBarrierKHR header should be 0"); |
13725 | 13766 |
13726 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 13767 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |