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 5260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5271 | 5271 |
5272 COMPILE_ASSERT(sizeof(TexParameterivImmediate) == 12, | 5272 COMPILE_ASSERT(sizeof(TexParameterivImmediate) == 12, |
5273 Sizeof_TexParameterivImmediate_is_not_12); | 5273 Sizeof_TexParameterivImmediate_is_not_12); |
5274 COMPILE_ASSERT(offsetof(TexParameterivImmediate, header) == 0, | 5274 COMPILE_ASSERT(offsetof(TexParameterivImmediate, header) == 0, |
5275 OffsetOf_TexParameterivImmediate_header_not_0); | 5275 OffsetOf_TexParameterivImmediate_header_not_0); |
5276 COMPILE_ASSERT(offsetof(TexParameterivImmediate, target) == 4, | 5276 COMPILE_ASSERT(offsetof(TexParameterivImmediate, target) == 4, |
5277 OffsetOf_TexParameterivImmediate_target_not_4); | 5277 OffsetOf_TexParameterivImmediate_target_not_4); |
5278 COMPILE_ASSERT(offsetof(TexParameterivImmediate, pname) == 8, | 5278 COMPILE_ASSERT(offsetof(TexParameterivImmediate, pname) == 8, |
5279 OffsetOf_TexParameterivImmediate_pname_not_8); | 5279 OffsetOf_TexParameterivImmediate_pname_not_8); |
5280 | 5280 |
| 5281 struct TexStorage3D { |
| 5282 typedef TexStorage3D ValueType; |
| 5283 static const CommandId kCmdId = kTexStorage3D; |
| 5284 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 5285 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 5286 |
| 5287 static uint32_t ComputeSize() { |
| 5288 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 5289 } |
| 5290 |
| 5291 void SetHeader() { header.SetCmd<ValueType>(); } |
| 5292 |
| 5293 void Init(GLenum _target, |
| 5294 GLsizei _levels, |
| 5295 GLenum _internalFormat, |
| 5296 GLsizei _width, |
| 5297 GLsizei _height, |
| 5298 GLsizei _depth) { |
| 5299 SetHeader(); |
| 5300 target = _target; |
| 5301 levels = _levels; |
| 5302 internalFormat = _internalFormat; |
| 5303 width = _width; |
| 5304 height = _height; |
| 5305 depth = _depth; |
| 5306 } |
| 5307 |
| 5308 void* Set(void* cmd, |
| 5309 GLenum _target, |
| 5310 GLsizei _levels, |
| 5311 GLenum _internalFormat, |
| 5312 GLsizei _width, |
| 5313 GLsizei _height, |
| 5314 GLsizei _depth) { |
| 5315 static_cast<ValueType*>(cmd) |
| 5316 ->Init(_target, _levels, _internalFormat, _width, _height, _depth); |
| 5317 return NextCmdAddress<ValueType>(cmd); |
| 5318 } |
| 5319 |
| 5320 gpu::CommandHeader header; |
| 5321 uint32_t target; |
| 5322 int32_t levels; |
| 5323 uint32_t internalFormat; |
| 5324 int32_t width; |
| 5325 int32_t height; |
| 5326 int32_t depth; |
| 5327 }; |
| 5328 |
| 5329 COMPILE_ASSERT(sizeof(TexStorage3D) == 28, Sizeof_TexStorage3D_is_not_28); |
| 5330 COMPILE_ASSERT(offsetof(TexStorage3D, header) == 0, |
| 5331 OffsetOf_TexStorage3D_header_not_0); |
| 5332 COMPILE_ASSERT(offsetof(TexStorage3D, target) == 4, |
| 5333 OffsetOf_TexStorage3D_target_not_4); |
| 5334 COMPILE_ASSERT(offsetof(TexStorage3D, levels) == 8, |
| 5335 OffsetOf_TexStorage3D_levels_not_8); |
| 5336 COMPILE_ASSERT(offsetof(TexStorage3D, internalFormat) == 12, |
| 5337 OffsetOf_TexStorage3D_internalFormat_not_12); |
| 5338 COMPILE_ASSERT(offsetof(TexStorage3D, width) == 16, |
| 5339 OffsetOf_TexStorage3D_width_not_16); |
| 5340 COMPILE_ASSERT(offsetof(TexStorage3D, height) == 20, |
| 5341 OffsetOf_TexStorage3D_height_not_20); |
| 5342 COMPILE_ASSERT(offsetof(TexStorage3D, depth) == 24, |
| 5343 OffsetOf_TexStorage3D_depth_not_24); |
| 5344 |
5281 struct TexSubImage2D { | 5345 struct TexSubImage2D { |
5282 typedef TexSubImage2D ValueType; | 5346 typedef TexSubImage2D ValueType; |
5283 static const CommandId kCmdId = kTexSubImage2D; | 5347 static const CommandId kCmdId = kTexSubImage2D; |
5284 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 5348 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
5285 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 5349 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
5286 | 5350 |
5287 static uint32_t ComputeSize() { | 5351 static uint32_t ComputeSize() { |
5288 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 5352 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
5289 } | 5353 } |
5290 | 5354 |
(...skipping 4933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10224 } | 10288 } |
10225 | 10289 |
10226 gpu::CommandHeader header; | 10290 gpu::CommandHeader header; |
10227 }; | 10291 }; |
10228 | 10292 |
10229 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); | 10293 COMPILE_ASSERT(sizeof(BlendBarrierKHR) == 4, Sizeof_BlendBarrierKHR_is_not_4); |
10230 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, | 10294 COMPILE_ASSERT(offsetof(BlendBarrierKHR, header) == 0, |
10231 OffsetOf_BlendBarrierKHR_header_not_0); | 10295 OffsetOf_BlendBarrierKHR_header_not_0); |
10232 | 10296 |
10233 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 10297 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |