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 10960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10971 "offset of CopyTextureCHROMIUM source_id should be 8"); | 10971 "offset of CopyTextureCHROMIUM source_id should be 8"); |
10972 static_assert(offsetof(CopyTextureCHROMIUM, dest_id) == 12, | 10972 static_assert(offsetof(CopyTextureCHROMIUM, dest_id) == 12, |
10973 "offset of CopyTextureCHROMIUM dest_id should be 12"); | 10973 "offset of CopyTextureCHROMIUM dest_id should be 12"); |
10974 static_assert(offsetof(CopyTextureCHROMIUM, level) == 16, | 10974 static_assert(offsetof(CopyTextureCHROMIUM, level) == 16, |
10975 "offset of CopyTextureCHROMIUM level should be 16"); | 10975 "offset of CopyTextureCHROMIUM level should be 16"); |
10976 static_assert(offsetof(CopyTextureCHROMIUM, internalformat) == 20, | 10976 static_assert(offsetof(CopyTextureCHROMIUM, internalformat) == 20, |
10977 "offset of CopyTextureCHROMIUM internalformat should be 20"); | 10977 "offset of CopyTextureCHROMIUM internalformat should be 20"); |
10978 static_assert(offsetof(CopyTextureCHROMIUM, dest_type) == 24, | 10978 static_assert(offsetof(CopyTextureCHROMIUM, dest_type) == 24, |
10979 "offset of CopyTextureCHROMIUM dest_type should be 24"); | 10979 "offset of CopyTextureCHROMIUM dest_type should be 24"); |
10980 | 10980 |
| 10981 struct CopySubTextureCHROMIUM { |
| 10982 typedef CopySubTextureCHROMIUM ValueType; |
| 10983 static const CommandId kCmdId = kCopySubTextureCHROMIUM; |
| 10984 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 10985 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 10986 |
| 10987 static uint32_t ComputeSize() { |
| 10988 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 10989 } |
| 10990 |
| 10991 void SetHeader() { header.SetCmd<ValueType>(); } |
| 10992 |
| 10993 void Init(GLenum _target, |
| 10994 GLenum _source_id, |
| 10995 GLenum _dest_id, |
| 10996 GLint _level, |
| 10997 GLint _xoffset, |
| 10998 GLint _yoffset) { |
| 10999 SetHeader(); |
| 11000 target = _target; |
| 11001 source_id = _source_id; |
| 11002 dest_id = _dest_id; |
| 11003 level = _level; |
| 11004 xoffset = _xoffset; |
| 11005 yoffset = _yoffset; |
| 11006 } |
| 11007 |
| 11008 void* Set(void* cmd, |
| 11009 GLenum _target, |
| 11010 GLenum _source_id, |
| 11011 GLenum _dest_id, |
| 11012 GLint _level, |
| 11013 GLint _xoffset, |
| 11014 GLint _yoffset) { |
| 11015 static_cast<ValueType*>(cmd) |
| 11016 ->Init(_target, _source_id, _dest_id, _level, _xoffset, _yoffset); |
| 11017 return NextCmdAddress<ValueType>(cmd); |
| 11018 } |
| 11019 |
| 11020 gpu::CommandHeader header; |
| 11021 uint32_t target; |
| 11022 uint32_t source_id; |
| 11023 uint32_t dest_id; |
| 11024 int32_t level; |
| 11025 int32_t xoffset; |
| 11026 int32_t yoffset; |
| 11027 }; |
| 11028 |
| 11029 static_assert(sizeof(CopySubTextureCHROMIUM) == 28, |
| 11030 "size of CopySubTextureCHROMIUM should be 28"); |
| 11031 static_assert(offsetof(CopySubTextureCHROMIUM, header) == 0, |
| 11032 "offset of CopySubTextureCHROMIUM header should be 0"); |
| 11033 static_assert(offsetof(CopySubTextureCHROMIUM, target) == 4, |
| 11034 "offset of CopySubTextureCHROMIUM target should be 4"); |
| 11035 static_assert(offsetof(CopySubTextureCHROMIUM, source_id) == 8, |
| 11036 "offset of CopySubTextureCHROMIUM source_id should be 8"); |
| 11037 static_assert(offsetof(CopySubTextureCHROMIUM, dest_id) == 12, |
| 11038 "offset of CopySubTextureCHROMIUM dest_id should be 12"); |
| 11039 static_assert(offsetof(CopySubTextureCHROMIUM, level) == 16, |
| 11040 "offset of CopySubTextureCHROMIUM level should be 16"); |
| 11041 static_assert(offsetof(CopySubTextureCHROMIUM, xoffset) == 20, |
| 11042 "offset of CopySubTextureCHROMIUM xoffset should be 20"); |
| 11043 static_assert(offsetof(CopySubTextureCHROMIUM, yoffset) == 24, |
| 11044 "offset of CopySubTextureCHROMIUM yoffset should be 24"); |
| 11045 |
10981 struct DrawArraysInstancedANGLE { | 11046 struct DrawArraysInstancedANGLE { |
10982 typedef DrawArraysInstancedANGLE ValueType; | 11047 typedef DrawArraysInstancedANGLE ValueType; |
10983 static const CommandId kCmdId = kDrawArraysInstancedANGLE; | 11048 static const CommandId kCmdId = kDrawArraysInstancedANGLE; |
10984 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 11049 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
10985 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 11050 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
10986 | 11051 |
10987 static uint32_t ComputeSize() { | 11052 static uint32_t ComputeSize() { |
10988 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 11053 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
10989 } | 11054 } |
10990 | 11055 |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12413 | 12478 |
12414 gpu::CommandHeader header; | 12479 gpu::CommandHeader header; |
12415 }; | 12480 }; |
12416 | 12481 |
12417 static_assert(sizeof(BlendBarrierKHR) == 4, | 12482 static_assert(sizeof(BlendBarrierKHR) == 4, |
12418 "size of BlendBarrierKHR should be 4"); | 12483 "size of BlendBarrierKHR should be 4"); |
12419 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 12484 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
12420 "offset of BlendBarrierKHR header should be 0"); | 12485 "offset of BlendBarrierKHR header should be 0"); |
12421 | 12486 |
12422 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 12487 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |