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 15472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15483 offsetof(ProgramPathFragmentInputGenCHROMIUM, components) == 16, | 15483 offsetof(ProgramPathFragmentInputGenCHROMIUM, components) == 16, |
15484 "offset of ProgramPathFragmentInputGenCHROMIUM components should be 16"); | 15484 "offset of ProgramPathFragmentInputGenCHROMIUM components should be 16"); |
15485 static_assert( | 15485 static_assert( |
15486 offsetof(ProgramPathFragmentInputGenCHROMIUM, coeffs_shm_id) == 20, | 15486 offsetof(ProgramPathFragmentInputGenCHROMIUM, coeffs_shm_id) == 20, |
15487 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20"); | 15487 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_id should be 20"); |
15488 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM, | 15488 static_assert(offsetof(ProgramPathFragmentInputGenCHROMIUM, |
15489 coeffs_shm_offset) == 24, | 15489 coeffs_shm_offset) == 24, |
15490 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset " | 15490 "offset of ProgramPathFragmentInputGenCHROMIUM coeffs_shm_offset " |
15491 "should be 24"); | 15491 "should be 24"); |
15492 | 15492 |
| 15493 struct CoverageModulationCHROMIUM { |
| 15494 typedef CoverageModulationCHROMIUM ValueType; |
| 15495 static const CommandId kCmdId = kCoverageModulationCHROMIUM; |
| 15496 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 15497 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 15498 |
| 15499 static uint32_t ComputeSize() { |
| 15500 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 15501 } |
| 15502 |
| 15503 void SetHeader() { header.SetCmd<ValueType>(); } |
| 15504 |
| 15505 void Init(GLenum _components) { |
| 15506 SetHeader(); |
| 15507 components = _components; |
| 15508 } |
| 15509 |
| 15510 void* Set(void* cmd, GLenum _components) { |
| 15511 static_cast<ValueType*>(cmd)->Init(_components); |
| 15512 return NextCmdAddress<ValueType>(cmd); |
| 15513 } |
| 15514 |
| 15515 gpu::CommandHeader header; |
| 15516 uint32_t components; |
| 15517 }; |
| 15518 |
| 15519 static_assert(sizeof(CoverageModulationCHROMIUM) == 8, |
| 15520 "size of CoverageModulationCHROMIUM should be 8"); |
| 15521 static_assert(offsetof(CoverageModulationCHROMIUM, header) == 0, |
| 15522 "offset of CoverageModulationCHROMIUM header should be 0"); |
| 15523 static_assert(offsetof(CoverageModulationCHROMIUM, components) == 4, |
| 15524 "offset of CoverageModulationCHROMIUM components should be 4"); |
| 15525 |
15493 struct BlendBarrierKHR { | 15526 struct BlendBarrierKHR { |
15494 typedef BlendBarrierKHR ValueType; | 15527 typedef BlendBarrierKHR ValueType; |
15495 static const CommandId kCmdId = kBlendBarrierKHR; | 15528 static const CommandId kCmdId = kBlendBarrierKHR; |
15496 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 15529 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
15497 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 15530 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
15498 | 15531 |
15499 static uint32_t ComputeSize() { | 15532 static uint32_t ComputeSize() { |
15500 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 15533 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
15501 } | 15534 } |
15502 | 15535 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15699 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, | 15732 static_assert(offsetof(GetFragDataIndexEXT, program) == 4, |
15700 "offset of GetFragDataIndexEXT program should be 4"); | 15733 "offset of GetFragDataIndexEXT program should be 4"); |
15701 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, | 15734 static_assert(offsetof(GetFragDataIndexEXT, name_bucket_id) == 8, |
15702 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); | 15735 "offset of GetFragDataIndexEXT name_bucket_id should be 8"); |
15703 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, | 15736 static_assert(offsetof(GetFragDataIndexEXT, index_shm_id) == 12, |
15704 "offset of GetFragDataIndexEXT index_shm_id should be 12"); | 15737 "offset of GetFragDataIndexEXT index_shm_id should be 12"); |
15705 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, | 15738 static_assert(offsetof(GetFragDataIndexEXT, index_shm_offset) == 16, |
15706 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); | 15739 "offset of GetFragDataIndexEXT index_shm_offset should be 16"); |
15707 | 15740 |
15708 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15741 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |