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 2577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2588 OffsetOf_GetAttachedShaders_header_not_0); | 2588 OffsetOf_GetAttachedShaders_header_not_0); |
2589 COMPILE_ASSERT(offsetof(GetAttachedShaders, program) == 4, | 2589 COMPILE_ASSERT(offsetof(GetAttachedShaders, program) == 4, |
2590 OffsetOf_GetAttachedShaders_program_not_4); | 2590 OffsetOf_GetAttachedShaders_program_not_4); |
2591 COMPILE_ASSERT(offsetof(GetAttachedShaders, result_shm_id) == 8, | 2591 COMPILE_ASSERT(offsetof(GetAttachedShaders, result_shm_id) == 8, |
2592 OffsetOf_GetAttachedShaders_result_shm_id_not_8); | 2592 OffsetOf_GetAttachedShaders_result_shm_id_not_8); |
2593 COMPILE_ASSERT(offsetof(GetAttachedShaders, result_shm_offset) == 12, | 2593 COMPILE_ASSERT(offsetof(GetAttachedShaders, result_shm_offset) == 12, |
2594 OffsetOf_GetAttachedShaders_result_shm_offset_not_12); | 2594 OffsetOf_GetAttachedShaders_result_shm_offset_not_12); |
2595 COMPILE_ASSERT(offsetof(GetAttachedShaders, result_size) == 16, | 2595 COMPILE_ASSERT(offsetof(GetAttachedShaders, result_size) == 16, |
2596 OffsetOf_GetAttachedShaders_result_size_not_16); | 2596 OffsetOf_GetAttachedShaders_result_size_not_16); |
2597 | 2597 |
| 2598 struct GetAttribLocation { |
| 2599 typedef GetAttribLocation ValueType; |
| 2600 static const CommandId kCmdId = kGetAttribLocation; |
| 2601 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 2602 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 2603 |
| 2604 typedef GLint Result; |
| 2605 |
| 2606 static uint32_t ComputeSize() { |
| 2607 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 2608 } |
| 2609 |
| 2610 void SetHeader() { header.SetCmd<ValueType>(); } |
| 2611 |
| 2612 void Init(GLuint _program, |
| 2613 uint32_t _name_bucket_id, |
| 2614 uint32_t _location_shm_id, |
| 2615 uint32_t _location_shm_offset) { |
| 2616 SetHeader(); |
| 2617 program = _program; |
| 2618 name_bucket_id = _name_bucket_id; |
| 2619 location_shm_id = _location_shm_id; |
| 2620 location_shm_offset = _location_shm_offset; |
| 2621 } |
| 2622 |
| 2623 void* Set(void* cmd, |
| 2624 GLuint _program, |
| 2625 uint32_t _name_bucket_id, |
| 2626 uint32_t _location_shm_id, |
| 2627 uint32_t _location_shm_offset) { |
| 2628 static_cast<ValueType*>(cmd)->Init( |
| 2629 _program, _name_bucket_id, _location_shm_id, _location_shm_offset); |
| 2630 return NextCmdAddress<ValueType>(cmd); |
| 2631 } |
| 2632 |
| 2633 gpu::CommandHeader header; |
| 2634 uint32_t program; |
| 2635 uint32_t name_bucket_id; |
| 2636 uint32_t location_shm_id; |
| 2637 uint32_t location_shm_offset; |
| 2638 }; |
| 2639 |
| 2640 COMPILE_ASSERT(sizeof(GetAttribLocation) == 20, |
| 2641 Sizeof_GetAttribLocation_is_not_20); |
| 2642 COMPILE_ASSERT(offsetof(GetAttribLocation, header) == 0, |
| 2643 OffsetOf_GetAttribLocation_header_not_0); |
| 2644 COMPILE_ASSERT(offsetof(GetAttribLocation, program) == 4, |
| 2645 OffsetOf_GetAttribLocation_program_not_4); |
| 2646 COMPILE_ASSERT(offsetof(GetAttribLocation, name_bucket_id) == 8, |
| 2647 OffsetOf_GetAttribLocation_name_bucket_id_not_8); |
| 2648 COMPILE_ASSERT(offsetof(GetAttribLocation, location_shm_id) == 12, |
| 2649 OffsetOf_GetAttribLocation_location_shm_id_not_12); |
| 2650 COMPILE_ASSERT(offsetof(GetAttribLocation, location_shm_offset) == 16, |
| 2651 OffsetOf_GetAttribLocation_location_shm_offset_not_16); |
| 2652 |
2598 struct GetBooleanv { | 2653 struct GetBooleanv { |
2599 typedef GetBooleanv ValueType; | 2654 typedef GetBooleanv ValueType; |
2600 static const CommandId kCmdId = kGetBooleanv; | 2655 static const CommandId kCmdId = kGetBooleanv; |
2601 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 2656 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
2602 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 2657 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
2603 | 2658 |
2604 typedef SizedResult<GLboolean> Result; | 2659 typedef SizedResult<GLboolean> Result; |
2605 | 2660 |
2606 static uint32_t ComputeSize() { | 2661 static uint32_t ComputeSize() { |
2607 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 2662 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3480 OffsetOf_GetUniformiv_header_not_0); | 3535 OffsetOf_GetUniformiv_header_not_0); |
3481 COMPILE_ASSERT(offsetof(GetUniformiv, program) == 4, | 3536 COMPILE_ASSERT(offsetof(GetUniformiv, program) == 4, |
3482 OffsetOf_GetUniformiv_program_not_4); | 3537 OffsetOf_GetUniformiv_program_not_4); |
3483 COMPILE_ASSERT(offsetof(GetUniformiv, location) == 8, | 3538 COMPILE_ASSERT(offsetof(GetUniformiv, location) == 8, |
3484 OffsetOf_GetUniformiv_location_not_8); | 3539 OffsetOf_GetUniformiv_location_not_8); |
3485 COMPILE_ASSERT(offsetof(GetUniformiv, params_shm_id) == 12, | 3540 COMPILE_ASSERT(offsetof(GetUniformiv, params_shm_id) == 12, |
3486 OffsetOf_GetUniformiv_params_shm_id_not_12); | 3541 OffsetOf_GetUniformiv_params_shm_id_not_12); |
3487 COMPILE_ASSERT(offsetof(GetUniformiv, params_shm_offset) == 16, | 3542 COMPILE_ASSERT(offsetof(GetUniformiv, params_shm_offset) == 16, |
3488 OffsetOf_GetUniformiv_params_shm_offset_not_16); | 3543 OffsetOf_GetUniformiv_params_shm_offset_not_16); |
3489 | 3544 |
| 3545 struct GetUniformLocation { |
| 3546 typedef GetUniformLocation ValueType; |
| 3547 static const CommandId kCmdId = kGetUniformLocation; |
| 3548 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
| 3549 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
| 3550 |
| 3551 typedef GLint Result; |
| 3552 |
| 3553 static uint32_t ComputeSize() { |
| 3554 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
| 3555 } |
| 3556 |
| 3557 void SetHeader() { header.SetCmd<ValueType>(); } |
| 3558 |
| 3559 void Init(GLuint _program, |
| 3560 uint32_t _name_bucket_id, |
| 3561 uint32_t _location_shm_id, |
| 3562 uint32_t _location_shm_offset) { |
| 3563 SetHeader(); |
| 3564 program = _program; |
| 3565 name_bucket_id = _name_bucket_id; |
| 3566 location_shm_id = _location_shm_id; |
| 3567 location_shm_offset = _location_shm_offset; |
| 3568 } |
| 3569 |
| 3570 void* Set(void* cmd, |
| 3571 GLuint _program, |
| 3572 uint32_t _name_bucket_id, |
| 3573 uint32_t _location_shm_id, |
| 3574 uint32_t _location_shm_offset) { |
| 3575 static_cast<ValueType*>(cmd)->Init( |
| 3576 _program, _name_bucket_id, _location_shm_id, _location_shm_offset); |
| 3577 return NextCmdAddress<ValueType>(cmd); |
| 3578 } |
| 3579 |
| 3580 gpu::CommandHeader header; |
| 3581 uint32_t program; |
| 3582 uint32_t name_bucket_id; |
| 3583 uint32_t location_shm_id; |
| 3584 uint32_t location_shm_offset; |
| 3585 }; |
| 3586 |
| 3587 COMPILE_ASSERT(sizeof(GetUniformLocation) == 20, |
| 3588 Sizeof_GetUniformLocation_is_not_20); |
| 3589 COMPILE_ASSERT(offsetof(GetUniformLocation, header) == 0, |
| 3590 OffsetOf_GetUniformLocation_header_not_0); |
| 3591 COMPILE_ASSERT(offsetof(GetUniformLocation, program) == 4, |
| 3592 OffsetOf_GetUniformLocation_program_not_4); |
| 3593 COMPILE_ASSERT(offsetof(GetUniformLocation, name_bucket_id) == 8, |
| 3594 OffsetOf_GetUniformLocation_name_bucket_id_not_8); |
| 3595 COMPILE_ASSERT(offsetof(GetUniformLocation, location_shm_id) == 12, |
| 3596 OffsetOf_GetUniformLocation_location_shm_id_not_12); |
| 3597 COMPILE_ASSERT(offsetof(GetUniformLocation, location_shm_offset) == 16, |
| 3598 OffsetOf_GetUniformLocation_location_shm_offset_not_16); |
| 3599 |
3490 struct GetVertexAttribfv { | 3600 struct GetVertexAttribfv { |
3491 typedef GetVertexAttribfv ValueType; | 3601 typedef GetVertexAttribfv ValueType; |
3492 static const CommandId kCmdId = kGetVertexAttribfv; | 3602 static const CommandId kCmdId = kGetVertexAttribfv; |
3493 static const cmd::ArgFlags kArgFlags = cmd::kFixed; | 3603 static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
3494 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); | 3604 static const uint8 cmd_flags = CMD_FLAG_SET_TRACE_LEVEL(3); |
3495 | 3605 |
3496 typedef SizedResult<GLfloat> Result; | 3606 typedef SizedResult<GLfloat> Result; |
3497 | 3607 |
3498 static uint32_t ComputeSize() { | 3608 static uint32_t ComputeSize() { |
3499 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT | 3609 return static_cast<uint32_t>(sizeof(ValueType)); // NOLINT |
(...skipping 5490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8990 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, | 9100 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_x) == 32, |
8991 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_x_not_32); | 9101 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_x_not_32); |
8992 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, | 9102 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_y) == 36, |
8993 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_y_not_36); | 9103 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_y_not_36); |
8994 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, | 9104 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_width) == 40, |
8995 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_width_not_40); | 9105 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_width_not_40); |
8996 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, | 9106 COMPILE_ASSERT(offsetof(ScheduleOverlayPlaneCHROMIUM, uv_height) == 44, |
8997 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_height_not_44); | 9107 OffsetOf_ScheduleOverlayPlaneCHROMIUM_uv_height_not_44); |
8998 | 9108 |
8999 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ | 9109 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_ |
OLD | NEW |