| 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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 GL_RGB565, | 605 GL_RGB565, |
| 606 GL_RGBA4, | 606 GL_RGBA4, |
| 607 GL_RGB5_A1, | 607 GL_RGB5_A1, |
| 608 GL_ALPHA8_EXT, | 608 GL_ALPHA8_EXT, |
| 609 GL_LUMINANCE8_EXT, | 609 GL_LUMINANCE8_EXT, |
| 610 GL_LUMINANCE8_ALPHA8_EXT, | 610 GL_LUMINANCE8_ALPHA8_EXT, |
| 611 GL_RGB8_OES, | 611 GL_RGB8_OES, |
| 612 GL_RGBA8_OES, | 612 GL_RGBA8_OES, |
| 613 }; | 613 }; |
| 614 | 614 |
| 615 static const GLenum valid_texture_internal_format_storage_table_es3[] = { |
| 616 GL_R8, |
| 617 GL_R8_SNORM, |
| 618 GL_R16F, |
| 619 GL_R32F, |
| 620 GL_R8UI, |
| 621 GL_R8I, |
| 622 GL_R16UI, |
| 623 GL_R16I, |
| 624 GL_R32UI, |
| 625 GL_R32I, |
| 626 GL_RG8, |
| 627 GL_RG8_SNORM, |
| 628 GL_RG16F, |
| 629 GL_RG32F, |
| 630 GL_RG8UI, |
| 631 GL_RG8I, |
| 632 GL_RG16UI, |
| 633 GL_RG16I, |
| 634 GL_RG32UI, |
| 635 GL_RG32I, |
| 636 GL_SRGB8, |
| 637 GL_RGB8_SNORM, |
| 638 GL_R11F_G11F_B10F, |
| 639 GL_RGB9_E5, |
| 640 GL_RGB16F, |
| 641 GL_RGB32F, |
| 642 GL_RGB8UI, |
| 643 GL_RGB8I, |
| 644 GL_RGB16UI, |
| 645 GL_RGB16I, |
| 646 GL_RGB32UI, |
| 647 GL_RGB32I, |
| 648 GL_SRGB8_ALPHA8, |
| 649 GL_RGBA8_SNORM, |
| 650 GL_RGB10_A2, |
| 651 GL_RGBA16F, |
| 652 GL_RGBA32F, |
| 653 GL_RGBA8UI, |
| 654 GL_RGBA8I, |
| 655 GL_RGB10_A2UI, |
| 656 GL_RGBA16UI, |
| 657 GL_RGBA16I, |
| 658 GL_RGBA32UI, |
| 659 GL_RGBA32I, |
| 660 GL_DEPTH_COMPONENT16, |
| 661 GL_DEPTH_COMPONENT24, |
| 662 GL_DEPTH_COMPONENT32F, |
| 663 GL_DEPTH24_STENCIL8, |
| 664 GL_DEPTH32F_STENCIL8, |
| 665 GL_COMPRESSED_R11_EAC, |
| 666 GL_COMPRESSED_SIGNED_R11_EAC, |
| 667 GL_COMPRESSED_RG11_EAC, |
| 668 GL_COMPRESSED_SIGNED_RG11_EAC, |
| 669 GL_COMPRESSED_RGB8_ETC2, |
| 670 GL_COMPRESSED_SRGB8_ETC2, |
| 671 GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2, |
| 672 GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2, |
| 673 GL_COMPRESSED_RGBA8_ETC2_EAC, |
| 674 GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC, |
| 675 }; |
| 676 |
| 677 static const GLenum invalid_texture_internal_format_storage_table_es3[] = { |
| 678 GL_ALPHA8_EXT, |
| 679 GL_LUMINANCE8_EXT, |
| 680 GL_LUMINANCE8_ALPHA8_EXT, |
| 681 GL_ALPHA16F_EXT, |
| 682 GL_LUMINANCE16F_EXT, |
| 683 GL_LUMINANCE_ALPHA16F_EXT, |
| 684 GL_ALPHA32F_EXT, |
| 685 GL_LUMINANCE32F_EXT, |
| 686 GL_LUMINANCE_ALPHA32F_EXT, |
| 687 }; |
| 688 |
| 615 static const GLenum valid_texture_mag_filter_mode_table[] = { | 689 static const GLenum valid_texture_mag_filter_mode_table[] = { |
| 616 GL_NEAREST, | 690 GL_NEAREST, |
| 617 GL_LINEAR, | 691 GL_LINEAR, |
| 618 }; | 692 }; |
| 619 | 693 |
| 620 static const GLenum valid_texture_min_filter_mode_table[] = { | 694 static const GLenum valid_texture_min_filter_mode_table[] = { |
| 621 GL_NEAREST, | 695 GL_NEAREST, |
| 622 GL_LINEAR, | 696 GL_LINEAR, |
| 623 GL_NEAREST_MIPMAP_NEAREST, | 697 GL_NEAREST_MIPMAP_NEAREST, |
| 624 GL_LINEAR_MIPMAP_NEAREST, | 698 GL_LINEAR_MIPMAP_NEAREST, |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 852 vertex_attrib_size(valid_vertex_attrib_size_table, | 926 vertex_attrib_size(valid_vertex_attrib_size_table, |
| 853 arraysize(valid_vertex_attrib_size_table)), | 927 arraysize(valid_vertex_attrib_size_table)), |
| 854 vertex_attrib_type(valid_vertex_attrib_type_table, | 928 vertex_attrib_type(valid_vertex_attrib_type_table, |
| 855 arraysize(valid_vertex_attrib_type_table)), | 929 arraysize(valid_vertex_attrib_type_table)), |
| 856 vertex_attribute(valid_vertex_attribute_table, | 930 vertex_attribute(valid_vertex_attribute_table, |
| 857 arraysize(valid_vertex_attribute_table)), | 931 arraysize(valid_vertex_attribute_table)), |
| 858 vertex_pointer(valid_vertex_pointer_table, | 932 vertex_pointer(valid_vertex_pointer_table, |
| 859 arraysize(valid_vertex_pointer_table)) { | 933 arraysize(valid_vertex_pointer_table)) { |
| 860 } | 934 } |
| 861 | 935 |
| 862 void Validators::AddES3Values() { | 936 void Validators::UpdateValuesES3() { |
| 863 buffer_target.AddValues(valid_buffer_target_table_es3, | 937 buffer_target.AddValues(valid_buffer_target_table_es3, |
| 864 arraysize(valid_buffer_target_table_es3)); | 938 arraysize(valid_buffer_target_table_es3)); |
| 865 pixel_type.AddValues(valid_pixel_type_table_es3, | 939 pixel_type.AddValues(valid_pixel_type_table_es3, |
| 866 arraysize(valid_pixel_type_table_es3)); | 940 arraysize(valid_pixel_type_table_es3)); |
| 867 texture_bind_target.AddValues(valid_texture_bind_target_table_es3, | 941 texture_bind_target.AddValues(valid_texture_bind_target_table_es3, |
| 868 arraysize(valid_texture_bind_target_table_es3)); | 942 arraysize(valid_texture_bind_target_table_es3)); |
| 869 texture_format.AddValues(valid_texture_format_table_es3, | 943 texture_format.AddValues(valid_texture_format_table_es3, |
| 870 arraysize(valid_texture_format_table_es3)); | 944 arraysize(valid_texture_format_table_es3)); |
| 871 texture_internal_format.AddValues( | 945 texture_internal_format.AddValues( |
| 872 valid_texture_internal_format_table_es3, | 946 valid_texture_internal_format_table_es3, |
| 873 arraysize(valid_texture_internal_format_table_es3)); | 947 arraysize(valid_texture_internal_format_table_es3)); |
| 948 texture_internal_format_storage.RemoveValues( |
| 949 invalid_texture_internal_format_storage_table_es3, |
| 950 arraysize(invalid_texture_internal_format_storage_table_es3)); |
| 951 texture_internal_format_storage.AddValues( |
| 952 valid_texture_internal_format_storage_table_es3, |
| 953 arraysize(valid_texture_internal_format_storage_table_es3)); |
| 874 } | 954 } |
| 875 | 955 |
| 876 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 956 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |