| 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 10400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10411 "offset of CopyTextureCHROMIUM source_id should be 8"); | 10411 "offset of CopyTextureCHROMIUM source_id should be 8"); |
| 10412 static_assert(offsetof(CopyTextureCHROMIUM, dest_id) == 12, | 10412 static_assert(offsetof(CopyTextureCHROMIUM, dest_id) == 12, |
| 10413 "offset of CopyTextureCHROMIUM dest_id should be 12"); | 10413 "offset of CopyTextureCHROMIUM dest_id should be 12"); |
| 10414 static_assert(offsetof(CopyTextureCHROMIUM, level) == 16, | 10414 static_assert(offsetof(CopyTextureCHROMIUM, level) == 16, |
| 10415 "offset of CopyTextureCHROMIUM level should be 16"); | 10415 "offset of CopyTextureCHROMIUM level should be 16"); |
| 10416 static_assert(offsetof(CopyTextureCHROMIUM, internalformat) == 20, | 10416 static_assert(offsetof(CopyTextureCHROMIUM, internalformat) == 20, |
| 10417 "offset of CopyTextureCHROMIUM internalformat should be 20"); | 10417 "offset of CopyTextureCHROMIUM internalformat should be 20"); |
| 10418 static_assert(offsetof(CopyTextureCHROMIUM, dest_type) == 24, | 10418 static_assert(offsetof(CopyTextureCHROMIUM, dest_type) == 24, |
| 10419 "offset of CopyTextureCHROMIUM dest_type should be 24"); | 10419 "offset of CopyTextureCHROMIUM dest_type should be 24"); |
| 10420 | 10420 |
| 10421 struct CopySubTextureCHROMIUM { |
| 10422 typedef CopySubTextureCHROMIUM ValueType; |
| 10423 static const CommandId kCmdId = kCopySubTextureCHROMIUM; |
| 10424 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10425 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10426 |
| 10427 static uint32_t ComputeSize() { |
| 10428 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10429 } |
| 10430 |
| 10431 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10432 |
| 10433 void Init(GLenum _target, |
| 10434 GLenum _source_id, |
| 10435 GLenum _dest_id, |
| 10436 GLint _level, |
| 10437 GLint _xoffset, |
| 10438 GLint _yoffset) { |
| 10439 SetHeader(); |
| 10440 target = _target; |
| 10441 source_id = _source_id; |
| 10442 dest_id = _dest_id; |
| 10443 level = _level; |
| 10444 xoffset = _xoffset; |
| 10445 yoffset = _yoffset; |
| 10446 } |
| 10447 |
| 10448 void* Set(void* cmd, |
| 10449 GLenum _target, |
| 10450 GLenum _source_id, |
| 10451 GLenum _dest_id, |
| 10452 GLint _level, |
| 10453 GLint _xoffset, |
| 10454 GLint _yoffset) { |
| 10455 static_cast<ValueType*>(cmd) |
| 10456 ->Init(_target, _source_id, _dest_id, _level, _xoffset, _yoffset); |
| 10457 return NextCmdAddress<ValueType>(cmd); |
| 10458 } |
| 10459 |
| 10460 gpu::CommandHeader header; |
| 10461 uint32_t target; |
| 10462 uint32_t source_id; |
| 10463 uint32_t dest_id; |
| 10464 int32_t level; |
| 10465 int32_t xoffset; |
| 10466 int32_t yoffset; |
| 10467 }; |
| 10468 |
| 10469 static_assert(sizeof(CopySubTextureCHROMIUM) == 28, |
| 10470 "size of CopySubTextureCHROMIUM should be 28"); |
| 10471 static_assert(offsetof(CopySubTextureCHROMIUM, header) == 0, |
| 10472 "offset of CopySubTextureCHROMIUM header should be 0"); |
| 10473 static_assert(offsetof(CopySubTextureCHROMIUM, target) == 4, |
| 10474 "offset of CopySubTextureCHROMIUM target should be 4"); |
| 10475 static_assert(offsetof(CopySubTextureCHROMIUM, source_id) == 8, |
| 10476 "offset of CopySubTextureCHROMIUM source_id should be 8"); |
| 10477 static_assert(offsetof(CopySubTextureCHROMIUM, dest_id) == 12, |
| 10478 "offset of CopySubTextureCHROMIUM dest_id should be 12"); |
| 10479 static_assert(offsetof(CopySubTextureCHROMIUM, level) == 16, |
| 10480 "offset of CopySubTextureCHROMIUM level should be 16"); |
| 10481 static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 20, |
| 10482 "offset of CopySubTextureCHROMIUM xoffset should be 20"); |
| 10483 static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 24, |
| 10484 "offset of CopySubTextureCHROMIUM yoffset should be 24"); |
| 10485 |
| 10421 struct DrawArraysInstancedANGLE { | 10486 struct DrawArraysInstancedANGLE { |
| 10422 typedef DrawArraysInstancedANGLE ValueType; | 10487 typedef DrawArraysInstancedANGLE ValueType; |
| 10423 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 10488 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
| 10424 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 10489 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10425 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 10490 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10426 | 10491 |
| 10427 static uint32_t ComputeSize() { | 10492 static uint32_t ComputeSize() { |
| 10428 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 10493 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10429 } | 10494 } |
| 10430 | 10495 |
| (...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11853 | 11918 |
| 11854 gpu::CommandHeader header; | 11919 gpu::CommandHeader header; |
| 11855 }; | 11920 }; |
| 11856 | 11921 |
| 11857 static_assert(sizeof(BlendBarrierKHR) == 4, | 11922 static_assert(sizeof(BlendBarrierKHR) == 4, |
| 11858 "size of BlendBarrierKHR should be 4"); | 11923 "size of BlendBarrierKHR should be 4"); |
| 11859 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 11924 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
| 11860 "offset of BlendBarrierKHR header should be 0"); | 11925 "offset of BlendBarrierKHR header should be 0"); |
| 11861 | 11926 |
| 11862 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 11927 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
| OLD | NEW |