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 12373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12384 "offset of PostSubBufferCHROMIUM header should be 0"); | 12384 "offset of PostSubBufferCHROMIUM header should be 0"); |
12385 static_assert(offsetof(PostSubBufferCHROMIUM, x) == 4, | 12385 static_assert(offsetof(PostSubBufferCHROMIUM, x) == 4, |
12386 "offset of PostSubBufferCHROMIUM x should be 4"); | 12386 "offset of PostSubBufferCHROMIUM x should be 4"); |
12387 static_assert(offsetof(PostSubBufferCHROMIUM, y) == 8, | 12387 static_assert(offsetof(PostSubBufferCHROMIUM, y) == 8, |
12388 "offset of PostSubBufferCHROMIUM y should be 8"); | 12388 "offset of PostSubBufferCHROMIUM y should be 8"); |
12389 static_assert(offsetof(PostSubBufferCHROMIUM, width) == 12, | 12389 static_assert(offsetof(PostSubBufferCHROMIUM, width) == 12, |
12390 "offset of PostSubBufferCHROMIUM width should be 12"); | 12390 "offset of PostSubBufferCHROMIUM width should be 12"); |
12391 static_assert(offsetof(PostSubBufferCHROMIUM, height) == 16, | 12391 static_assert(offsetof(PostSubBufferCHROMIUM, height) == 16, |
12392 "offset of PostSubBufferCHROMIUM height should be 16"); | 12392 "offset of PostSubBufferCHROMIUM height should be 16"); |
12393 | 12393 |
12394 struct TexImageIOSurface2DCHROMIUM { | |
12395 typedef TexImageIOSurface2DCHROMIUM ValueType; | |
12396 static const CommandId kCmdId = kTexImageIOSurface2DCHROMIUM; | |
12397 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | |
12398 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(1); | |
12399 | |
12400 static uint32_t ComputeSize() { | |
12401 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | |
12402 } | |
12403 | |
12404 void SetHeader() { header.SetCmd<ValueType>(); } | |
12405 | |
12406 void Init(GLenum _target, | |
12407 GLsizei _width, | |
12408 GLsizei _height, | |
12409 GLuint _ioSurfaceId, | |
12410 GLuint _plane) { | |
12411 SetHeader(); | |
12412 target = _target; | |
12413 width = _width; | |
12414 height = _height; | |
12415 ioSurfaceId = _ioSurfaceId; | |
12416 plane = _plane; | |
12417 } | |
12418 | |
12419 void* Set(void* cmd, | |
12420 GLenum _target, | |
12421 GLsizei _width, | |
12422 GLsizei _height, | |
12423 GLuint _ioSurfaceId, | |
12424 GLuint _plane) { | |
12425 static_cast<ValueType*>(cmd)->Init(_target, _width, _height, _ioSurfaceId, | |
12426 _plane); | |
12427 return NextCmdAddress<ValueType>(cmd); | |
12428 } | |
12429 | |
12430 gpu::CommandHeader header; | |
12431 uint32_t target; | |
12432 int32_t width; | |
12433 int32_t height; | |
12434 uint32_t ioSurfaceId; | |
12435 uint32_t plane; | |
12436 }; | |
12437 | |
12438 static_assert(sizeof(TexImageIOSurface2DCHROMIUM) == 24, | |
12439 "size of TexImageIOSurface2DCHROMIUM should be 24"); | |
12440 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, header) == 0, | |
12441 "offset of TexImageIOSurface2DCHROMIUM header should be 0"); | |
12442 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, target) == 4, | |
12443 "offset of TexImageIOSurface2DCHROMIUM target should be 4"); | |
12444 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, width) == 8, | |
12445 "offset of TexImageIOSurface2DCHROMIUM width should be 8"); | |
12446 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, height) == 12, | |
12447 "offset of TexImageIOSurface2DCHROMIUM height should be 12"); | |
12448 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, ioSurfaceId) == 16, | |
12449 "offset of TexImageIOSurface2DCHROMIUM ioSurfaceId should be 16"); | |
12450 static_assert(offsetof(TexImageIOSurface2DCHROMIUM, plane) == 20, | |
12451 "offset of TexImageIOSurface2DCHROMIUM plane should be 20"); | |
12452 | |
12453 struct CopyTextureCHROMIUM { | 12394 struct CopyTextureCHROMIUM { |
12454 typedef CopyTextureCHROMIUM ValueType; | 12395 typedef CopyTextureCHROMIUM ValueType; |
12455 static const CommandId kCmdId = kCopyTextureCHROMIUM; | 12396 static const CommandId kCmdId = kCopyTextureCHROMIUM; |
12456 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 12397 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
12457 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); | 12398 static const uint8_t cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(2); |
12458 | 12399 |
12459 static uint32_t ComputeSize() { | 12400 static uint32_t ComputeSize() { |
12460 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 12401 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
12461 } | 12402 } |
12462 | 12403 |
(...skipping 3043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15506 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, | 15447 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
15507 location) == 4, | 15448 location) == 4, |
15508 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " | 15449 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
15509 "location should be 4"); | 15450 "location should be 4"); |
15510 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, | 15451 static_assert(offsetof(UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate, |
15511 transpose) == 8, | 15452 transpose) == 8, |
15512 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " | 15453 "offset of UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate " |
15513 "transpose should be 8"); | 15454 "transpose should be 8"); |
15514 | 15455 |
15515 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 15456 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |