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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 GL_NONE, | 507 GL_NONE, |
508 GL_FRAMEBUFFER_ATTACHMENT_ANGLE, | 508 GL_FRAMEBUFFER_ATTACHMENT_ANGLE, |
509 }; | 509 }; |
510 | 510 |
511 static const GLenum valid_texture_wrap_mode_table[] = { | 511 static const GLenum valid_texture_wrap_mode_table[] = { |
512 GL_CLAMP_TO_EDGE, | 512 GL_CLAMP_TO_EDGE, |
513 GL_MIRRORED_REPEAT, | 513 GL_MIRRORED_REPEAT, |
514 GL_REPEAT, | 514 GL_REPEAT, |
515 }; | 515 }; |
516 | 516 |
| 517 static const GLenum valid_transform_feedback_bind_target_table[] = { |
| 518 GL_TRANSFORM_FEEDBACK, |
| 519 }; |
| 520 |
| 521 static const GLenum valid_transform_feedback_primitive_mode_table[] = { |
| 522 GL_POINTS, |
| 523 GL_LINES, |
| 524 GL_TRIANGLES, |
| 525 }; |
| 526 |
517 static const GLenum valid_value_buffer_target_table[] = { | 527 static const GLenum valid_value_buffer_target_table[] = { |
518 GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, | 528 GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, |
519 }; | 529 }; |
520 | 530 |
521 static const GLint valid_vertex_attrib_size_table[] = { | 531 static const GLint valid_vertex_attrib_size_table[] = { |
522 1, | 532 1, |
523 2, | 533 2, |
524 3, | 534 3, |
525 4, | 535 4, |
526 }; | 536 }; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 texture_parameter(valid_texture_parameter_table, | 650 texture_parameter(valid_texture_parameter_table, |
641 arraysize(valid_texture_parameter_table)), | 651 arraysize(valid_texture_parameter_table)), |
642 texture_pool(valid_texture_pool_table, | 652 texture_pool(valid_texture_pool_table, |
643 arraysize(valid_texture_pool_table)), | 653 arraysize(valid_texture_pool_table)), |
644 texture_target(valid_texture_target_table, | 654 texture_target(valid_texture_target_table, |
645 arraysize(valid_texture_target_table)), | 655 arraysize(valid_texture_target_table)), |
646 texture_usage(valid_texture_usage_table, | 656 texture_usage(valid_texture_usage_table, |
647 arraysize(valid_texture_usage_table)), | 657 arraysize(valid_texture_usage_table)), |
648 texture_wrap_mode(valid_texture_wrap_mode_table, | 658 texture_wrap_mode(valid_texture_wrap_mode_table, |
649 arraysize(valid_texture_wrap_mode_table)), | 659 arraysize(valid_texture_wrap_mode_table)), |
| 660 transform_feedback_bind_target( |
| 661 valid_transform_feedback_bind_target_table, |
| 662 arraysize(valid_transform_feedback_bind_target_table)), |
| 663 transform_feedback_primitive_mode( |
| 664 valid_transform_feedback_primitive_mode_table, |
| 665 arraysize(valid_transform_feedback_primitive_mode_table)), |
650 value_buffer_target(valid_value_buffer_target_table, | 666 value_buffer_target(valid_value_buffer_target_table, |
651 arraysize(valid_value_buffer_target_table)), | 667 arraysize(valid_value_buffer_target_table)), |
652 vertex_attrib_size(valid_vertex_attrib_size_table, | 668 vertex_attrib_size(valid_vertex_attrib_size_table, |
653 arraysize(valid_vertex_attrib_size_table)), | 669 arraysize(valid_vertex_attrib_size_table)), |
654 vertex_attrib_type(valid_vertex_attrib_type_table, | 670 vertex_attrib_type(valid_vertex_attrib_type_table, |
655 arraysize(valid_vertex_attrib_type_table)), | 671 arraysize(valid_vertex_attrib_type_table)), |
656 vertex_attribute(valid_vertex_attribute_table, | 672 vertex_attribute(valid_vertex_attribute_table, |
657 arraysize(valid_vertex_attribute_table)), | 673 arraysize(valid_vertex_attribute_table)), |
658 vertex_pointer(valid_vertex_pointer_table, | 674 vertex_pointer(valid_vertex_pointer_table, |
659 arraysize(valid_vertex_pointer_table)) { | 675 arraysize(valid_vertex_pointer_table)) { |
660 } | 676 } |
661 | 677 |
662 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 678 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
OLD | NEW |