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 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3367 static_assert(offsetof(GetActiveUniform::Result, success) == 0, | 3367 static_assert(offsetof(GetActiveUniform::Result, success) == 0, |
3368 "offset of GetActiveUniform Result success should be " | 3368 "offset of GetActiveUniform Result success should be " |
3369 "0"); | 3369 "0"); |
3370 static_assert(offsetof(GetActiveUniform::Result, size) == 4, | 3370 static_assert(offsetof(GetActiveUniform::Result, size) == 4, |
3371 "offset of GetActiveUniform Result size should be " | 3371 "offset of GetActiveUniform Result size should be " |
3372 "4"); | 3372 "4"); |
3373 static_assert(offsetof(GetActiveUniform::Result, type) == 8, | 3373 static_assert(offsetof(GetActiveUniform::Result, type) == 8, |
3374 "offset of GetActiveUniform Result type should be " | 3374 "offset of GetActiveUniform Result type should be " |
3375 "8"); | 3375 "8"); |
3376 | 3376 |
| 3377 struct GetActiveUniformBlockiv { |
| 3378 typedef GetActiveUniformBlockiv ValueType; |
| 3379 static const CommandId kCmdId = kGetActiveUniformBlockiv; |
| 3380 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3381 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3382 |
| 3383 typedef SizedResult<GLint> Result; |
| 3384 |
| 3385 static uint32_t ComputeSize() { |
| 3386 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3387 } |
| 3388 |
| 3389 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3390 |
| 3391 void Init(GLuint _program, |
| 3392 GLuint _index, |
| 3393 GLenum _pname, |
| 3394 uint32_t _params_shm_id, |
| 3395 uint32_t _params_shm_offset) { |
| 3396 SetHeader(); |
| 3397 program = _program; |
| 3398 index = _index; |
| 3399 pname = _pname; |
| 3400 params_shm_id = _params_shm_id; |
| 3401 params_shm_offset = _params_shm_offset; |
| 3402 } |
| 3403 |
| 3404 void* Set(void* cmd, |
| 3405 GLuint _program, |
| 3406 GLuint _index, |
| 3407 GLenum _pname, |
| 3408 uint32_t _params_shm_id, |
| 3409 uint32_t _params_shm_offset) { |
| 3410 static_cast<ValueType*>(cmd) |
| 3411 ->Init(_program, _index, _pname, _params_shm_id, _params_shm_offset); |
| 3412 return NextCmdAddress<ValueType>(cmd); |
| 3413 } |
| 3414 |
| 3415 gpu::CommandHeader header; |
| 3416 uint32_t program; |
| 3417 uint32_t index; |
| 3418 uint32_t pname; |
| 3419 uint32_t params_shm_id; |
| 3420 uint32_t params_shm_offset; |
| 3421 }; |
| 3422 |
| 3423 static_assert(sizeof(GetActiveUniformBlockiv) == 24, |
| 3424 "size of GetActiveUniformBlockiv should be 24"); |
| 3425 static_assert(offsetof(GetActiveUniformBlockiv, header) == 0, |
| 3426 "offset of GetActiveUniformBlockiv header should be 0"); |
| 3427 static_assert(offsetof(GetActiveUniformBlockiv, program) == 4, |
| 3428 "offset of GetActiveUniformBlockiv program should be 4"); |
| 3429 static_assert(offsetof(GetActiveUniformBlockiv, index) == 8, |
| 3430 "offset of GetActiveUniformBlockiv index should be 8"); |
| 3431 static_assert(offsetof(GetActiveUniformBlockiv, pname) == 12, |
| 3432 "offset of GetActiveUniformBlockiv pname should be 12"); |
| 3433 static_assert(offsetof(GetActiveUniformBlockiv, params_shm_id) == 16, |
| 3434 "offset of GetActiveUniformBlockiv params_shm_id should be 16"); |
| 3435 static_assert( |
| 3436 offsetof(GetActiveUniformBlockiv, params_shm_offset) == 20, |
| 3437 "offset of GetActiveUniformBlockiv params_shm_offset should be 20"); |
| 3438 |
3377 struct GetActiveUniformBlockName { | 3439 struct GetActiveUniformBlockName { |
3378 typedef GetActiveUniformBlockName ValueType; | 3440 typedef GetActiveUniformBlockName ValueType; |
3379 static const CommandId kCmdId = kGetActiveUniformBlockName; | 3441 static const CommandId kCmdId = kGetActiveUniformBlockName; |
3380 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3442 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3381 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3443 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
3382 | 3444 |
3383 typedef int32_t Result; | 3445 typedef int32_t Result; |
3384 | 3446 |
3385 static uint32_t ComputeSize() { | 3447 static uint32_t ComputeSize() { |
3386 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3448 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 8923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12310 | 12372 |
12311 gpu::CommandHeader header; | 12373 gpu::CommandHeader header; |
12312 }; | 12374 }; |
12313 | 12375 |
12314 static_assert(sizeof(BlendBarrierKHR) == 4, | 12376 static_assert(sizeof(BlendBarrierKHR) == 4, |
12315 "size of BlendBarrierKHR should be 4"); | 12377 "size of BlendBarrierKHR should be 4"); |
12316 static_assert(offsetof(BlendBarrierKHR, header) == 0, | 12378 static_assert(offsetof(BlendBarrierKHR, header) == 0, |
12317 "offset of BlendBarrierKHR header should be 0"); | 12379 "offset of BlendBarrierKHR header should be 0"); |
12318 | 12380 |
12319 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 12381 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |