| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 GL_UNSIGNED_BYTE, | 352 GL_UNSIGNED_BYTE, |
| 353 GL_UNSIGNED_SHORT, | 353 GL_UNSIGNED_SHORT, |
| 354 GL_UNSIGNED_INT, | 354 GL_UNSIGNED_INT, |
| 355 }; | 355 }; |
| 356 | 356 |
| 357 static const GLenum valid_get_tex_param_target_table[] = { | 357 static const GLenum valid_get_tex_param_target_table[] = { |
| 358 GL_TEXTURE_2D, | 358 GL_TEXTURE_2D, |
| 359 GL_TEXTURE_CUBE_MAP, | 359 GL_TEXTURE_CUBE_MAP, |
| 360 }; | 360 }; |
| 361 | 361 |
| 362 static const GLenum valid_get_tex_param_target_table_es3[] = { |
| 363 GL_TEXTURE_2D_ARRAY, |
| 364 GL_TEXTURE_3D, |
| 365 }; |
| 366 |
| 362 static const GLenum valid_hint_mode_table[] = { | 367 static const GLenum valid_hint_mode_table[] = { |
| 363 GL_FASTEST, | 368 GL_FASTEST, |
| 364 GL_NICEST, | 369 GL_NICEST, |
| 365 GL_DONT_CARE, | 370 GL_DONT_CARE, |
| 366 }; | 371 }; |
| 367 | 372 |
| 368 static const GLenum valid_hint_target_table[] = { | 373 static const GLenum valid_hint_target_table[] = { |
| 369 GL_GENERATE_MIPMAP_HINT, | 374 GL_GENERATE_MIPMAP_HINT, |
| 370 }; | 375 }; |
| 371 | 376 |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 static const GLenum valid_texture_bind_target_table[] = { | 625 static const GLenum valid_texture_bind_target_table[] = { |
| 621 GL_TEXTURE_2D, | 626 GL_TEXTURE_2D, |
| 622 GL_TEXTURE_CUBE_MAP, | 627 GL_TEXTURE_CUBE_MAP, |
| 623 }; | 628 }; |
| 624 | 629 |
| 625 static const GLenum valid_texture_bind_target_table_es3[] = { | 630 static const GLenum valid_texture_bind_target_table_es3[] = { |
| 626 GL_TEXTURE_3D, | 631 GL_TEXTURE_3D, |
| 627 GL_TEXTURE_2D_ARRAY, | 632 GL_TEXTURE_2D_ARRAY, |
| 628 }; | 633 }; |
| 629 | 634 |
| 635 static const GLenum valid_texture_compare_func_table[] = { |
| 636 GL_LEQUAL, |
| 637 GL_GEQUAL, |
| 638 GL_LESS, |
| 639 GL_GREATER, |
| 640 GL_EQUAL, |
| 641 GL_NOTEQUAL, |
| 642 GL_ALWAYS, |
| 643 GL_NEVER, |
| 644 }; |
| 645 |
| 646 static const GLenum valid_texture_compare_mode_table[] = { |
| 647 GL_NONE, |
| 648 GL_COMPARE_REF_TO_TEXTURE, |
| 649 }; |
| 650 |
| 630 static const GLenum valid_texture_format_table[] = { | 651 static const GLenum valid_texture_format_table[] = { |
| 631 GL_ALPHA, | 652 GL_ALPHA, |
| 632 GL_LUMINANCE, | 653 GL_LUMINANCE, |
| 633 GL_LUMINANCE_ALPHA, | 654 GL_LUMINANCE_ALPHA, |
| 634 GL_RGB, | 655 GL_RGB, |
| 635 GL_RGBA, | 656 GL_RGBA, |
| 636 }; | 657 }; |
| 637 | 658 |
| 638 static const GLenum valid_texture_format_table_es3[] = { | 659 static const GLenum valid_texture_format_table_es3[] = { |
| 639 GL_RED, | 660 GL_RED, |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 }; | 832 }; |
| 812 | 833 |
| 813 static const GLenum valid_texture_parameter_table[] = { | 834 static const GLenum valid_texture_parameter_table[] = { |
| 814 GL_TEXTURE_MAG_FILTER, | 835 GL_TEXTURE_MAG_FILTER, |
| 815 GL_TEXTURE_MIN_FILTER, | 836 GL_TEXTURE_MIN_FILTER, |
| 816 GL_TEXTURE_POOL_CHROMIUM, | 837 GL_TEXTURE_POOL_CHROMIUM, |
| 817 GL_TEXTURE_WRAP_S, | 838 GL_TEXTURE_WRAP_S, |
| 818 GL_TEXTURE_WRAP_T, | 839 GL_TEXTURE_WRAP_T, |
| 819 }; | 840 }; |
| 820 | 841 |
| 842 static const GLenum valid_texture_parameter_table_es3[] = { |
| 843 GL_TEXTURE_BASE_LEVEL, |
| 844 GL_TEXTURE_COMPARE_FUNC, |
| 845 GL_TEXTURE_COMPARE_MODE, |
| 846 GL_TEXTURE_IMMUTABLE_FORMAT, |
| 847 GL_TEXTURE_IMMUTABLE_LEVELS, |
| 848 GL_TEXTURE_MAX_LEVEL, |
| 849 GL_TEXTURE_MAX_LOD, |
| 850 GL_TEXTURE_MIN_LOD, |
| 851 GL_TEXTURE_WRAP_R, |
| 852 }; |
| 853 |
| 821 static const GLenum valid_texture_pool_table[] = { | 854 static const GLenum valid_texture_pool_table[] = { |
| 822 GL_TEXTURE_POOL_MANAGED_CHROMIUM, | 855 GL_TEXTURE_POOL_MANAGED_CHROMIUM, |
| 823 GL_TEXTURE_POOL_UNMANAGED_CHROMIUM, | 856 GL_TEXTURE_POOL_UNMANAGED_CHROMIUM, |
| 824 }; | 857 }; |
| 825 | 858 |
| 826 static const GLenum valid_texture_target_table[] = { | 859 static const GLenum valid_texture_target_table[] = { |
| 827 GL_TEXTURE_2D, | 860 GL_TEXTURE_2D, |
| 828 GL_TEXTURE_CUBE_MAP_POSITIVE_X, | 861 GL_TEXTURE_CUBE_MAP_POSITIVE_X, |
| 829 GL_TEXTURE_CUBE_MAP_NEGATIVE_X, | 862 GL_TEXTURE_CUBE_MAP_NEGATIVE_X, |
| 830 GL_TEXTURE_CUBE_MAP_POSITIVE_Y, | 863 GL_TEXTURE_CUBE_MAP_POSITIVE_Y, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1004 subscription_target(valid_subscription_target_table, | 1037 subscription_target(valid_subscription_target_table, |
| 1005 arraysize(valid_subscription_target_table)), | 1038 arraysize(valid_subscription_target_table)), |
| 1006 sync_flush_flags(valid_sync_flush_flags_table, | 1039 sync_flush_flags(valid_sync_flush_flags_table, |
| 1007 arraysize(valid_sync_flush_flags_table)), | 1040 arraysize(valid_sync_flush_flags_table)), |
| 1008 sync_parameter(valid_sync_parameter_table, | 1041 sync_parameter(valid_sync_parameter_table, |
| 1009 arraysize(valid_sync_parameter_table)), | 1042 arraysize(valid_sync_parameter_table)), |
| 1010 texture_3_d_target(valid_texture_3_d_target_table, | 1043 texture_3_d_target(valid_texture_3_d_target_table, |
| 1011 arraysize(valid_texture_3_d_target_table)), | 1044 arraysize(valid_texture_3_d_target_table)), |
| 1012 texture_bind_target(valid_texture_bind_target_table, | 1045 texture_bind_target(valid_texture_bind_target_table, |
| 1013 arraysize(valid_texture_bind_target_table)), | 1046 arraysize(valid_texture_bind_target_table)), |
| 1047 texture_compare_func(valid_texture_compare_func_table, |
| 1048 arraysize(valid_texture_compare_func_table)), |
| 1049 texture_compare_mode(valid_texture_compare_mode_table, |
| 1050 arraysize(valid_texture_compare_mode_table)), |
| 1014 texture_format(valid_texture_format_table, | 1051 texture_format(valid_texture_format_table, |
| 1015 arraysize(valid_texture_format_table)), | 1052 arraysize(valid_texture_format_table)), |
| 1016 texture_internal_format(valid_texture_internal_format_table, | 1053 texture_internal_format(valid_texture_internal_format_table, |
| 1017 arraysize(valid_texture_internal_format_table)), | 1054 arraysize(valid_texture_internal_format_table)), |
| 1018 texture_internal_format_storage( | 1055 texture_internal_format_storage( |
| 1019 valid_texture_internal_format_storage_table, | 1056 valid_texture_internal_format_storage_table, |
| 1020 arraysize(valid_texture_internal_format_storage_table)), | 1057 arraysize(valid_texture_internal_format_storage_table)), |
| 1021 texture_mag_filter_mode(valid_texture_mag_filter_mode_table, | 1058 texture_mag_filter_mode(valid_texture_mag_filter_mode_table, |
| 1022 arraysize(valid_texture_mag_filter_mode_table)), | 1059 arraysize(valid_texture_mag_filter_mode_table)), |
| 1023 texture_min_filter_mode(valid_texture_min_filter_mode_table, | 1060 texture_min_filter_mode(valid_texture_min_filter_mode_table, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 void Validators::UpdateValuesES3() { | 1096 void Validators::UpdateValuesES3() { |
| 1060 buffer_target.AddValues(valid_buffer_target_table_es3, | 1097 buffer_target.AddValues(valid_buffer_target_table_es3, |
| 1061 arraysize(valid_buffer_target_table_es3)); | 1098 arraysize(valid_buffer_target_table_es3)); |
| 1062 capability.AddValues(valid_capability_table_es3, | 1099 capability.AddValues(valid_capability_table_es3, |
| 1063 arraysize(valid_capability_table_es3)); | 1100 arraysize(valid_capability_table_es3)); |
| 1064 compressed_texture_format.AddValues( | 1101 compressed_texture_format.AddValues( |
| 1065 valid_compressed_texture_format_table_es3, | 1102 valid_compressed_texture_format_table_es3, |
| 1066 arraysize(valid_compressed_texture_format_table_es3)); | 1103 arraysize(valid_compressed_texture_format_table_es3)); |
| 1067 g_l_state.AddValues(valid_g_l_state_table_es3, | 1104 g_l_state.AddValues(valid_g_l_state_table_es3, |
| 1068 arraysize(valid_g_l_state_table_es3)); | 1105 arraysize(valid_g_l_state_table_es3)); |
| 1106 get_tex_param_target.AddValues( |
| 1107 valid_get_tex_param_target_table_es3, |
| 1108 arraysize(valid_get_tex_param_target_table_es3)); |
| 1069 pixel_type.AddValues(valid_pixel_type_table_es3, | 1109 pixel_type.AddValues(valid_pixel_type_table_es3, |
| 1070 arraysize(valid_pixel_type_table_es3)); | 1110 arraysize(valid_pixel_type_table_es3)); |
| 1071 texture_bind_target.AddValues(valid_texture_bind_target_table_es3, | 1111 texture_bind_target.AddValues(valid_texture_bind_target_table_es3, |
| 1072 arraysize(valid_texture_bind_target_table_es3)); | 1112 arraysize(valid_texture_bind_target_table_es3)); |
| 1073 texture_format.AddValues(valid_texture_format_table_es3, | 1113 texture_format.AddValues(valid_texture_format_table_es3, |
| 1074 arraysize(valid_texture_format_table_es3)); | 1114 arraysize(valid_texture_format_table_es3)); |
| 1075 texture_internal_format.AddValues( | 1115 texture_internal_format.AddValues( |
| 1076 valid_texture_internal_format_table_es3, | 1116 valid_texture_internal_format_table_es3, |
| 1077 arraysize(valid_texture_internal_format_table_es3)); | 1117 arraysize(valid_texture_internal_format_table_es3)); |
| 1078 texture_internal_format_storage.RemoveValues( | 1118 texture_internal_format_storage.RemoveValues( |
| 1079 deprecated_texture_internal_format_storage_table_es3, | 1119 deprecated_texture_internal_format_storage_table_es3, |
| 1080 arraysize(deprecated_texture_internal_format_storage_table_es3)); | 1120 arraysize(deprecated_texture_internal_format_storage_table_es3)); |
| 1081 texture_internal_format_storage.AddValues( | 1121 texture_internal_format_storage.AddValues( |
| 1082 valid_texture_internal_format_storage_table_es3, | 1122 valid_texture_internal_format_storage_table_es3, |
| 1083 arraysize(valid_texture_internal_format_storage_table_es3)); | 1123 arraysize(valid_texture_internal_format_storage_table_es3)); |
| 1124 texture_parameter.AddValues(valid_texture_parameter_table_es3, |
| 1125 arraysize(valid_texture_parameter_table_es3)); |
| 1084 } | 1126 } |
| 1085 | 1127 |
| 1086 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1128 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |