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 11357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11368 | 11368 |
11369 static uint32_t ComputeSize() { | 11369 static uint32_t ComputeSize() { |
11370 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11370 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
11371 } | 11371 } |
11372 | 11372 |
11373 void SetHeader() { header.SetCmd<ValueType>(); } | 11373 void SetHeader() { header.SetCmd<ValueType>(); } |
11374 | 11374 |
11375 void Init(GLenum _target, | 11375 void Init(GLenum _target, |
11376 GLenum _source_id, | 11376 GLenum _source_id, |
11377 GLenum _dest_id, | 11377 GLenum _dest_id, |
11378 GLint _level, | |
11379 GLint _internalformat, | 11378 GLint _internalformat, |
11380 GLenum _dest_type) { | 11379 GLenum _dest_type) { |
11381 SetHeader(); | 11380 SetHeader(); |
11382 target = _target; | 11381 target = _target; |
11383 source_id = _source_id; | 11382 source_id = _source_id; |
11384 dest_id = _dest_id; | 11383 dest_id = _dest_id; |
11385 level = _level; | |
11386 internalformat = _internalformat; | 11384 internalformat = _internalformat; |
11387 dest_type = _dest_type; | 11385 dest_type = _dest_type; |
11388 } | 11386 } |
11389 | 11387 |
11390 void* Set(void* cmd, | 11388 void* Set(void* cmd, |
11391 GLenum _target, | 11389 GLenum _target, |
11392 GLenum _source_id, | 11390 GLenum _source_id, |
11393 GLenum _dest_id, | 11391 GLenum _dest_id, |
11394 GLint _level, | |
11395 GLint _internalformat, | 11392 GLint _internalformat, |
11396 GLenum _dest_type) { | 11393 GLenum _dest_type) { |
11397 static_cast<ValueType*>(cmd)->Init(_target, _source_id, _dest_id, _level, | 11394 static_cast<ValueType*>(cmd) |
11398 _internalformat, _dest_type); | 11395 ->Init(_target, _source_id, _dest_id, _internalformat, _dest_type); |
11399 return NextCmdAddress<ValueType>(cmd); | 11396 return NextCmdAddress<ValueType>(cmd); |
11400 } | 11397 } |
11401 | 11398 |
11402 gpu::CommandHeader header; | 11399 gpu::CommandHeader header; |
11403 uint32_t target; | 11400 uint32_t target; |
11404 uint32_t source_id; | 11401 uint32_t source_id; |
11405 uint32_t dest_id; | 11402 uint32_t dest_id; |
11406 int32_t level; | |
11407 int32_t internalformat; | 11403 int32_t internalformat; |
11408 uint32_t dest_type; | 11404 uint32_t dest_type; |
11409 }; | 11405 }; |
11410 | 11406 |
11411 static_assert(sizeof(CopyTextureCHROMIUM) == 28, | 11407 static_assert(sizeof(CopyTextureCHROMIUM) == 24, |
11412 "size of CopyTextureCHROMIUM should be 28"); | 11408 "size of CopyTextureCHROMIUM should be 24"); |
11413 static_assert(offsetof(CopyTextureCHROMIUM, header) == 0, | 11409 static_assert(offsetof(CopyTextureCHROMIUM, header) == 0, |
11414 "offset of CopyTextureCHROMIUM header should be 0"); | 11410 "offset of CopyTextureCHROMIUM header should be 0"); |
11415 static_assert(offsetof(CopyTextureCHROMIUM, target) == 4, | 11411 static_assert(offsetof(CopyTextureCHROMIUM, target) == 4, |
11416 "offset of CopyTextureCHROMIUM target should be 4"); | 11412 "offset of CopyTextureCHROMIUM target should be 4"); |
11417 static_assert(offsetof(CopyTextureCHROMIUM, source_id) == 8, | 11413 static_assert(offsetof(CopyTextureCHROMIUM, source_id) == 8, |
11418 "offset of CopyTextureCHROMIUM source_id should be 8"); | 11414 "offset of CopyTextureCHROMIUM source_id should be 8"); |
11419 static_assert(offsetof(CopyTextureCHROMIUM, dest_id) == 12, | 11415 static_assert(offsetof(CopyTextureCHROMIUM, dest_id) == 12, |
11420 "offset of CopyTextureCHROMIUM dest_id should be 12"); | 11416 "offset of CopyTextureCHROMIUM dest_id should be 12"); |
11421 static_assert(offsetof(CopyTextureCHROMIUM, level) == 16, | 11417 static_assert(offsetof(CopyTextureCHROMIUM, internalformat) == 16, |
11422 "offset of CopyTextureCHROMIUM level should be 16"); | 11418 "offset of CopyTextureCHROMIUM internalformat should be 16"); |
11423 static_assert(offsetof(CopyTextureCHROMIUM, internalformat) == 20, | 11419 static_assert(offsetof(CopyTextureCHROMIUM, dest_type) == 20, |
11424 "offset of CopyTextureCHROMIUM internalformat should be 20"); | 11420 "offset of CopyTextureCHROMIUM dest_type should be 20"); |
11425 static_assert(offsetof(CopyTextureCHROMIUM, dest_type) == 24, | 11421 |
11426 "offset of CopyTextureCHROMIUM dest_type should be 24"); | 11422 struct CopySubTextureCHROMIUM { |
| 11423 typedef CopySubTextureCHROMIUM ValueType; |
| 11424 static const CommandId kCmdId = kCopySubTextureCHROMIUM; |
| 11425 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 11426 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 11427 |
| 11428 static uint32_t ComputeSize() { |
| 11429 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 11430 } |
| 11431 |
| 11432 void SetHeader() { header.SetCmd<ValueType>(); } |
| 11433 |
| 11434 void Init(GLenum _target, |
| 11435 GLenum _source_id, |
| 11436 GLenum _dest_id, |
| 11437 GLint _xoffset, |
| 11438 GLint _yoffset) { |
| 11439 SetHeader(); |
| 11440 target = _target; |
| 11441 source_id = _source_id; |
| 11442 dest_id = _dest_id; |
| 11443 xoffset = _xoffset; |
| 11444 yoffset = _yoffset; |
| 11445 } |
| 11446 |
| 11447 void* Set(void* cmd, |
| 11448 GLenum _target, |
| 11449 GLenum _source_id, |
| 11450 GLenum _dest_id, |
| 11451 GLint _xoffset, |
| 11452 GLint _yoffset) { |
| 11453 static_cast<ValueType*>(cmd) |
| 11454 ->Init(_target, _source_id, _dest_id, _xoffset, _yoffset); |
| 11455 return NextCmdAddress<ValueType>(cmd); |
| 11456 } |
| 11457 |
| 11458 gpu::CommandHeader header; |
| 11459 uint32_t target; |
| 11460 uint32_t source_id; |
| 11461 uint32_t dest_id; |
| 11462 int32_t xoffset; |
| 11463 int32_t yoffset; |
| 11464 }; |
| 11465 |
| 11466 static_assert(sizeof(CopySubTextureCHROMIUM) == 24, |
| 11467 "size of CopySubTextureCHROMIUM should be 24"); |
| 11468 static_assert(offsetof(CopySubTextureCHROMIUM, header) == 0, |
| 11469 "offset of CopySubTextureCHROMIUM header should be 0"); |
| 11470 static_assert(offsetof(CopySubTextureCHROMIUM, target) == 4, |
| 11471 "offset of CopySubTextureCHROMIUM target should be 4"); |
| 11472 static_assert(offsetof(CopySubTextureCHROMIUM, source_id) == 8, |
| 11473 "offset of CopySubTextureCHROMIUM source_id should be 8"); |
| 11474 static_assert(offsetof(CopySubTextureCHROMIUM, dest_id) == 12, |
| 11475 "offset of CopySubTextureCHROMIUM dest_id should be 12"); |
| 11476 static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 16, |
| 11477 "offset of CopySubTextureCHROMIUM xoffset should be 16"); |
| 11478 static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 20, |
| 11479 "offset of CopySubTextureCHROMIUM yoffset should be 20"); |
11427 | 11480 |
11428 struct DrawArraysInstancedANGLE { | 11481 struct DrawArraysInstancedANGLE { |
11429 typedef DrawArraysInstancedANGLE ValueType; | 11482 typedef DrawArraysInstancedANGLE ValueType; |
11430 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 11483 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
11431 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11484 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
11432 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11485 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
11433 | 11486 |
11434 static uint32_t ComputeSize() { | 11487 static uint32_t ComputeSize() { |
11435 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11488 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
11436 } | 11489 } |
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12860 | 12913 |
12861 gpu::CommandHeader header; | 12914 gpu::CommandHeader header; |
12862 }; | 12915 }; |
12863 | 12916 |
12864 static_assert(sizeof(BlendBarrierKHR) == 4, | 12917 static_assert(sizeof(BlendBarrierKHR) == 4, |
12865 "size of BlendBarrierKHR should be 4"); | 12918 "size of BlendBarrierKHR should be 4"); |
12866 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 12919 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
12867 "offset of BlendBarrierKHR header should be 0"); | 12920 "offset of BlendBarrierKHR header should be 0"); |
12868 | 12921 |
12869 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 12922 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |