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 26 matching lines...) Expand all Loading... |
37 GL_ARRAY_BUFFER, | 37 GL_ARRAY_BUFFER, |
38 GL_ELEMENT_ARRAY_BUFFER, | 38 GL_ELEMENT_ARRAY_BUFFER, |
39 }; | 39 }; |
40 | 40 |
41 static const GLenum valid_buffer_usage_table[] = { | 41 static const GLenum valid_buffer_usage_table[] = { |
42 GL_STREAM_DRAW, | 42 GL_STREAM_DRAW, |
43 GL_STATIC_DRAW, | 43 GL_STATIC_DRAW, |
44 GL_DYNAMIC_DRAW, | 44 GL_DYNAMIC_DRAW, |
45 }; | 45 }; |
46 | 46 |
| 47 static const GLenum valid_bufferfi_table[] = { |
| 48 GL_DEPTH_STENCIL, |
| 49 }; |
| 50 |
| 51 static const GLenum valid_bufferfv_table[] = { |
| 52 GL_COLOR, |
| 53 GL_DEPTH, |
| 54 }; |
| 55 |
| 56 static const GLenum valid_bufferiv_table[] = { |
| 57 GL_COLOR, |
| 58 GL_STENCIL, |
| 59 }; |
| 60 |
| 61 static const GLenum valid_bufferuiv_table[] = { |
| 62 GL_COLOR, |
| 63 }; |
| 64 |
47 static const GLenum valid_capability_table[] = { | 65 static const GLenum valid_capability_table[] = { |
48 GL_BLEND, | 66 GL_BLEND, |
49 GL_CULL_FACE, | 67 GL_CULL_FACE, |
50 GL_DEPTH_TEST, | 68 GL_DEPTH_TEST, |
51 GL_DITHER, | 69 GL_DITHER, |
52 GL_POLYGON_OFFSET_FILL, | 70 GL_POLYGON_OFFSET_FILL, |
53 GL_SAMPLE_ALPHA_TO_COVERAGE, | 71 GL_SAMPLE_ALPHA_TO_COVERAGE, |
54 GL_SAMPLE_COVERAGE, | 72 GL_SAMPLE_COVERAGE, |
55 GL_SCISSOR_TEST, | 73 GL_SCISSOR_TEST, |
56 GL_STENCIL_TEST, | 74 GL_STENCIL_TEST, |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 : attachment(valid_attachment_table, arraysize(valid_attachment_table)), | 584 : attachment(valid_attachment_table, arraysize(valid_attachment_table)), |
567 backbuffer_attachment(valid_backbuffer_attachment_table, | 585 backbuffer_attachment(valid_backbuffer_attachment_table, |
568 arraysize(valid_backbuffer_attachment_table)), | 586 arraysize(valid_backbuffer_attachment_table)), |
569 blit_filter(valid_blit_filter_table, arraysize(valid_blit_filter_table)), | 587 blit_filter(valid_blit_filter_table, arraysize(valid_blit_filter_table)), |
570 buffer_parameter(valid_buffer_parameter_table, | 588 buffer_parameter(valid_buffer_parameter_table, |
571 arraysize(valid_buffer_parameter_table)), | 589 arraysize(valid_buffer_parameter_table)), |
572 buffer_target(valid_buffer_target_table, | 590 buffer_target(valid_buffer_target_table, |
573 arraysize(valid_buffer_target_table)), | 591 arraysize(valid_buffer_target_table)), |
574 buffer_usage(valid_buffer_usage_table, | 592 buffer_usage(valid_buffer_usage_table, |
575 arraysize(valid_buffer_usage_table)), | 593 arraysize(valid_buffer_usage_table)), |
| 594 bufferfi(valid_bufferfi_table, arraysize(valid_bufferfi_table)), |
| 595 bufferfv(valid_bufferfv_table, arraysize(valid_bufferfv_table)), |
| 596 bufferiv(valid_bufferiv_table, arraysize(valid_bufferiv_table)), |
| 597 bufferuiv(valid_bufferuiv_table, arraysize(valid_bufferuiv_table)), |
576 capability(valid_capability_table, arraysize(valid_capability_table)), | 598 capability(valid_capability_table, arraysize(valid_capability_table)), |
577 cmp_function(valid_cmp_function_table, | 599 cmp_function(valid_cmp_function_table, |
578 arraysize(valid_cmp_function_table)), | 600 arraysize(valid_cmp_function_table)), |
579 compressed_texture_format(), | 601 compressed_texture_format(), |
580 draw_mode(valid_draw_mode_table, arraysize(valid_draw_mode_table)), | 602 draw_mode(valid_draw_mode_table, arraysize(valid_draw_mode_table)), |
581 dst_blend_factor(valid_dst_blend_factor_table, | 603 dst_blend_factor(valid_dst_blend_factor_table, |
582 arraysize(valid_dst_blend_factor_table)), | 604 arraysize(valid_dst_blend_factor_table)), |
583 equation(valid_equation_table, arraysize(valid_equation_table)), | 605 equation(valid_equation_table, arraysize(valid_equation_table)), |
584 face_mode(valid_face_mode_table, arraysize(valid_face_mode_table)), | 606 face_mode(valid_face_mode_table, arraysize(valid_face_mode_table)), |
585 face_type(valid_face_type_table, arraysize(valid_face_type_table)), | 607 face_type(valid_face_type_table, arraysize(valid_face_type_table)), |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 arraysize(valid_vertex_attrib_size_table)), | 698 arraysize(valid_vertex_attrib_size_table)), |
677 vertex_attrib_type(valid_vertex_attrib_type_table, | 699 vertex_attrib_type(valid_vertex_attrib_type_table, |
678 arraysize(valid_vertex_attrib_type_table)), | 700 arraysize(valid_vertex_attrib_type_table)), |
679 vertex_attribute(valid_vertex_attribute_table, | 701 vertex_attribute(valid_vertex_attribute_table, |
680 arraysize(valid_vertex_attribute_table)), | 702 arraysize(valid_vertex_attribute_table)), |
681 vertex_pointer(valid_vertex_pointer_table, | 703 vertex_pointer(valid_vertex_pointer_table, |
682 arraysize(valid_vertex_pointer_table)) { | 704 arraysize(valid_vertex_pointer_table)) { |
683 } | 705 } |
684 | 706 |
685 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ | 707 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_VALIDATION_IMPLEMENTATION_AUTOGE
N_H_ |
OLD | NEW |