| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 GL_COLOR_ATTACHMENT13, | 529 GL_COLOR_ATTACHMENT13, |
| 530 GL_COLOR_ATTACHMENT14, | 530 GL_COLOR_ATTACHMENT14, |
| 531 GL_COLOR_ATTACHMENT15, | 531 GL_COLOR_ATTACHMENT15, |
| 532 }; | 532 }; |
| 533 | 533 |
| 534 static const GLenum valid_read_pixel_format_table[] = { | 534 static const GLenum valid_read_pixel_format_table[] = { |
| 535 GL_ALPHA, GL_RGB, GL_RGBA, | 535 GL_ALPHA, GL_RGB, GL_RGBA, |
| 536 }; | 536 }; |
| 537 | 537 |
| 538 static const GLenum valid_read_pixel_format_table_es3[] = { | 538 static const GLenum valid_read_pixel_format_table_es3[] = { |
| 539 GL_RGBA_INTEGER, | 539 GL_RED, GL_RED_INTEGER, GL_RG, GL_RG_INTEGER, |
| 540 }; | 540 GL_RGB_INTEGER, GL_RGBA_INTEGER, GL_LUMINANCE, GL_LUMINANCE_ALPHA, |
| 541 | |
| 542 static const GLenum deprecated_read_pixel_format_table_es3[] = { | |
| 543 GL_ALPHA, GL_RGB, | |
| 544 }; | 541 }; |
| 545 | 542 |
| 546 static const GLenum valid_read_pixel_type_table[] = { | 543 static const GLenum valid_read_pixel_type_table[] = { |
| 547 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4, | 544 GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4, |
| 548 GL_UNSIGNED_SHORT_5_5_5_1, | 545 GL_UNSIGNED_SHORT_5_5_5_1, |
| 549 }; | 546 }; |
| 550 | 547 |
| 551 static const GLenum valid_read_pixel_type_table_es3[] = { | 548 static const GLenum valid_read_pixel_type_table_es3[] = { |
| 552 GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_INT_2_10_10_10_REV, | 549 GL_BYTE, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, |
| 553 }; | 550 GL_INT, GL_HALF_FLOAT, GL_FLOAT, GL_UNSIGNED_INT_2_10_10_10_REV, |
| 554 | |
| 555 static const GLenum deprecated_read_pixel_type_table_es3[] = { | |
| 556 GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_4_4_4_4, | |
| 557 GL_UNSIGNED_SHORT_5_5_5_1, | |
| 558 }; | 551 }; |
| 559 | 552 |
| 560 static const GLenum valid_render_buffer_format_table[] = { | 553 static const GLenum valid_render_buffer_format_table[] = { |
| 561 GL_RGBA4, GL_RGB565, GL_RGB5_A1, GL_DEPTH_COMPONENT16, GL_STENCIL_INDEX8, | 554 GL_RGBA4, GL_RGB565, GL_RGB5_A1, GL_DEPTH_COMPONENT16, GL_STENCIL_INDEX8, |
| 562 }; | 555 }; |
| 563 | 556 |
| 564 static const GLenum valid_render_buffer_format_table_es3[] = { | 557 static const GLenum valid_render_buffer_format_table_es3[] = { |
| 565 GL_R8, | 558 GL_R8, |
| 566 GL_R8UI, | 559 GL_R8UI, |
| 567 GL_R8I, | 560 GL_R8I, |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 hint_target.AddValues(valid_hint_target_table_es3, | 1147 hint_target.AddValues(valid_hint_target_table_es3, |
| 1155 arraysize(valid_hint_target_table_es3)); | 1148 arraysize(valid_hint_target_table_es3)); |
| 1156 index_type.AddValues(valid_index_type_table_es3, | 1149 index_type.AddValues(valid_index_type_table_es3, |
| 1157 arraysize(valid_index_type_table_es3)); | 1150 arraysize(valid_index_type_table_es3)); |
| 1158 pixel_store.AddValues(valid_pixel_store_table_es3, | 1151 pixel_store.AddValues(valid_pixel_store_table_es3, |
| 1159 arraysize(valid_pixel_store_table_es3)); | 1152 arraysize(valid_pixel_store_table_es3)); |
| 1160 pixel_type.AddValues(valid_pixel_type_table_es3, | 1153 pixel_type.AddValues(valid_pixel_type_table_es3, |
| 1161 arraysize(valid_pixel_type_table_es3)); | 1154 arraysize(valid_pixel_type_table_es3)); |
| 1162 program_parameter.AddValues(valid_program_parameter_table_es3, | 1155 program_parameter.AddValues(valid_program_parameter_table_es3, |
| 1163 arraysize(valid_program_parameter_table_es3)); | 1156 arraysize(valid_program_parameter_table_es3)); |
| 1164 read_pixel_format.RemoveValues( | |
| 1165 deprecated_read_pixel_format_table_es3, | |
| 1166 arraysize(deprecated_read_pixel_format_table_es3)); | |
| 1167 read_pixel_format.AddValues(valid_read_pixel_format_table_es3, | 1157 read_pixel_format.AddValues(valid_read_pixel_format_table_es3, |
| 1168 arraysize(valid_read_pixel_format_table_es3)); | 1158 arraysize(valid_read_pixel_format_table_es3)); |
| 1169 read_pixel_type.RemoveValues(deprecated_read_pixel_type_table_es3, | |
| 1170 arraysize(deprecated_read_pixel_type_table_es3)); | |
| 1171 read_pixel_type.AddValues(valid_read_pixel_type_table_es3, | 1159 read_pixel_type.AddValues(valid_read_pixel_type_table_es3, |
| 1172 arraysize(valid_read_pixel_type_table_es3)); | 1160 arraysize(valid_read_pixel_type_table_es3)); |
| 1173 render_buffer_format.AddValues( | 1161 render_buffer_format.AddValues( |
| 1174 valid_render_buffer_format_table_es3, | 1162 valid_render_buffer_format_table_es3, |
| 1175 arraysize(valid_render_buffer_format_table_es3)); | 1163 arraysize(valid_render_buffer_format_table_es3)); |
| 1176 render_buffer_parameter.AddValues( | 1164 render_buffer_parameter.AddValues( |
| 1177 valid_render_buffer_parameter_table_es3, | 1165 valid_render_buffer_parameter_table_es3, |
| 1178 arraysize(valid_render_buffer_parameter_table_es3)); | 1166 arraysize(valid_render_buffer_parameter_table_es3)); |
| 1179 texture_bind_target.AddValues(valid_texture_bind_target_table_es3, | 1167 texture_bind_target.AddValues(valid_texture_bind_target_table_es3, |
| 1180 arraysize(valid_texture_bind_target_table_es3)); | 1168 arraysize(valid_texture_bind_target_table_es3)); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1191 arraysize(valid_texture_internal_format_storage_table_es3)); | 1179 arraysize(valid_texture_internal_format_storage_table_es3)); |
| 1192 texture_parameter.AddValues(valid_texture_parameter_table_es3, | 1180 texture_parameter.AddValues(valid_texture_parameter_table_es3, |
| 1193 arraysize(valid_texture_parameter_table_es3)); | 1181 arraysize(valid_texture_parameter_table_es3)); |
| 1194 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, | 1182 vertex_attrib_type.AddValues(valid_vertex_attrib_type_table_es3, |
| 1195 arraysize(valid_vertex_attrib_type_table_es3)); | 1183 arraysize(valid_vertex_attrib_type_table_es3)); |
| 1196 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, | 1184 vertex_attribute.AddValues(valid_vertex_attribute_table_es3, |
| 1197 arraysize(valid_vertex_attribute_table_es3)); | 1185 arraysize(valid_vertex_attribute_table_es3)); |
| 1198 } | 1186 } |
| 1199 | 1187 |
| 1200 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 1188 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
| OLD | NEW |