OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """code generator for GLES2 command buffers.""" | 6 """code generator for GLES2 command buffers.""" |
7 | 7 |
8 import itertools | 8 import itertools |
9 import os | 9 import os |
10 import os.path | 10 import os.path |
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 # some enum that the decoder actually passes through to GL needs | 1268 # some enum that the decoder actually passes through to GL needs |
1269 # to be the first listed here since it's used in unit tests. | 1269 # to be the first listed here since it's used in unit tests. |
1270 'GL_VERTEX_ATTRIB_ARRAY_NORMALIZED', | 1270 'GL_VERTEX_ATTRIB_ARRAY_NORMALIZED', |
1271 'GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING', | 1271 'GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING', |
1272 'GL_VERTEX_ATTRIB_ARRAY_ENABLED', | 1272 'GL_VERTEX_ATTRIB_ARRAY_ENABLED', |
1273 'GL_VERTEX_ATTRIB_ARRAY_SIZE', | 1273 'GL_VERTEX_ATTRIB_ARRAY_SIZE', |
1274 'GL_VERTEX_ATTRIB_ARRAY_STRIDE', | 1274 'GL_VERTEX_ATTRIB_ARRAY_STRIDE', |
1275 'GL_VERTEX_ATTRIB_ARRAY_TYPE', | 1275 'GL_VERTEX_ATTRIB_ARRAY_TYPE', |
1276 'GL_CURRENT_VERTEX_ATTRIB', | 1276 'GL_CURRENT_VERTEX_ATTRIB', |
1277 ], | 1277 ], |
| 1278 'valid_es3': [ |
| 1279 'GL_VERTEX_ATTRIB_ARRAY_INTEGER', |
| 1280 'GL_VERTEX_ATTRIB_ARRAY_DIVISOR', |
| 1281 ], |
1278 }, | 1282 }, |
1279 'VertexPointer': { | 1283 'VertexPointer': { |
1280 'type': 'GLenum', | 1284 'type': 'GLenum', |
1281 'valid': [ | 1285 'valid': [ |
1282 'GL_VERTEX_ATTRIB_ARRAY_POINTER', | 1286 'GL_VERTEX_ATTRIB_ARRAY_POINTER', |
1283 ], | 1287 ], |
1284 }, | 1288 }, |
1285 'HintTarget': { | 1289 'HintTarget': { |
1286 'type': 'GLenum', | 1290 'type': 'GLenum', |
1287 'valid': [ | 1291 'valid': [ |
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2739 'client_test': False, | 2743 'client_test': False, |
2740 }, | 2744 }, |
2741 'GetVertexAttribiv': { | 2745 'GetVertexAttribiv': { |
2742 'type': 'GETn', | 2746 'type': 'GETn', |
2743 'result': ['SizedResult<GLint>'], | 2747 'result': ['SizedResult<GLint>'], |
2744 'impl_decl': False, | 2748 'impl_decl': False, |
2745 'decoder_func': 'DoGetVertexAttribiv', | 2749 'decoder_func': 'DoGetVertexAttribiv', |
2746 'expectation': False, | 2750 'expectation': False, |
2747 'client_test': False, | 2751 'client_test': False, |
2748 }, | 2752 }, |
| 2753 'GetVertexAttribIiv': { |
| 2754 'type': 'GETn', |
| 2755 'result': ['SizedResult<GLint>'], |
| 2756 'impl_decl': False, |
| 2757 'decoder_func': 'DoGetVertexAttribIiv', |
| 2758 'expectation': False, |
| 2759 'client_test': False, |
| 2760 'unsafe': True, |
| 2761 }, |
| 2762 'GetVertexAttribIuiv': { |
| 2763 'type': 'GETn', |
| 2764 'result': ['SizedResult<GLuint>'], |
| 2765 'impl_decl': False, |
| 2766 'decoder_func': 'DoGetVertexAttribIuiv', |
| 2767 'expectation': False, |
| 2768 'client_test': False, |
| 2769 'unsafe': True, |
| 2770 }, |
2749 'GetVertexAttribPointerv': { | 2771 'GetVertexAttribPointerv': { |
2750 'type': 'Custom', | 2772 'type': 'Custom', |
2751 'data_transfer_methods': ['shm'], | 2773 'data_transfer_methods': ['shm'], |
2752 'result': ['SizedResult<GLuint>'], | 2774 'result': ['SizedResult<GLuint>'], |
2753 'client_test': False, | 2775 'client_test': False, |
2754 }, | 2776 }, |
2755 'InvalidateFramebuffer': { | 2777 'InvalidateFramebuffer': { |
2756 'type': 'PUTn', | 2778 'type': 'PUTn', |
2757 'count': 1, | 2779 'count': 1, |
2758 'client_test': False, | 2780 'client_test': False, |
(...skipping 8071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10830 Format(gen.generated_cpp_filenames) | 10852 Format(gen.generated_cpp_filenames) |
10831 | 10853 |
10832 if gen.errors > 0: | 10854 if gen.errors > 0: |
10833 print "%d errors" % gen.errors | 10855 print "%d errors" % gen.errors |
10834 return 1 | 10856 return 1 |
10835 return 0 | 10857 return 0 |
10836 | 10858 |
10837 | 10859 |
10838 if __name__ == '__main__': | 10860 if __name__ == '__main__': |
10839 sys.exit(main(sys.argv[1:])) | 10861 sys.exit(main(sys.argv[1:])) |
OLD | NEW |