| 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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 906 static const GLenum valid_vertex_attribute_table[] = { | 906 static const GLenum valid_vertex_attribute_table[] = { |
| 907 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, | 907 GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, |
| 908 GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, | 908 GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, |
| 909 GL_VERTEX_ATTRIB_ARRAY_ENABLED, | 909 GL_VERTEX_ATTRIB_ARRAY_ENABLED, |
| 910 GL_VERTEX_ATTRIB_ARRAY_SIZE, | 910 GL_VERTEX_ATTRIB_ARRAY_SIZE, |
| 911 GL_VERTEX_ATTRIB_ARRAY_STRIDE, | 911 GL_VERTEX_ATTRIB_ARRAY_STRIDE, |
| 912 GL_VERTEX_ATTRIB_ARRAY_TYPE, | 912 GL_VERTEX_ATTRIB_ARRAY_TYPE, |
| 913 GL_CURRENT_VERTEX_ATTRIB, | 913 GL_CURRENT_VERTEX_ATTRIB, |
| 914 }; | 914 }; |
| 915 | 915 |
| 916 static const GLenum valid_vertex_attribute_table_es3[] = { |
| 917 GL_VERTEX_ATTRIB_ARRAY_INTEGER, |
| 918 GL_VERTEX_ATTRIB_ARRAY_DIVISOR, |
| 919 }; |
| 920 |
| 916 static const GLenum valid_vertex_pointer_table[] = { | 921 static const GLenum valid_vertex_pointer_table[] = { |
| 917 GL_VERTEX_ATTRIB_ARRAY_POINTER, | 922 GL_VERTEX_ATTRIB_ARRAY_POINTER, |
| 918 }; | 923 }; |
| 919 | 924 |
| 920 Validators::Validators() | 925 Validators::Validators() |
| 921 : attachment(valid_attachment_table, arraysize(valid_attachment_table)), | 926 : attachment(valid_attachment_table, arraysize(valid_attachment_table)), |
| 922 backbuffer_attachment(valid_backbuffer_attachment_table, | 927 backbuffer_attachment(valid_backbuffer_attachment_table, |
| 923 arraysize(valid_backbuffer_attachment_table)), | 928 arraysize(valid_backbuffer_attachment_table)), |
| 924 blit_filter(valid_blit_filter_table, arraysize(valid_blit_filter_table)), | 929 blit_filter(valid_blit_filter_table, arraysize(valid_blit_filter_table)), |
| 925 buffer_mode(valid_buffer_mode_table, arraysize(valid_buffer_mode_table)), | 930 buffer_mode(valid_buffer_mode_table, arraysize(valid_buffer_mode_table)), |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 arraysize(valid_texture_format_table_es3)); | 1079 arraysize(valid_texture_format_table_es3)); |
| 1075 texture_internal_format.AddValues( | 1080 texture_internal_format.AddValues( |
| 1076 valid_texture_internal_format_table_es3, | 1081 valid_texture_internal_format_table_es3, |
| 1077 arraysize(valid_texture_internal_format_table_es3)); | 1082 arraysize(valid_texture_internal_format_table_es3)); |
| 1078 texture_internal_format_storage.RemoveValues( | 1083 texture_internal_format_storage.RemoveValues( |
| 1079 deprecated_texture_internal_format_storage_table_es3, | 1084 deprecated_texture_internal_format_storage_table_es3, |
| 1080 arraysize(deprecated_texture_internal_format_storage_table_es3)); | 1085 arraysize(deprecated_texture_internal_format_storage_table_es3)); |
| 1081 texture_internal_format_storage.AddValues( | 1086 texture_internal_format_storage.AddValues( |
| 1082 valid_texture_internal_format_storage_table_es3, | 1087 valid_texture_internal_format_storage_table_es3, |
| 1083 arraysize(valid_texture_internal_format_storage_table_es3)); | 1088 arraysize(valid_texture_internal_format_storage_table_es3)); |
| 1089 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, |
| 1090 arraysize(valid_vertex_attribute_table_es3)); |
| 1084 } | 1091 } |
| 1085 | 1092 |
| 1086 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1093 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |