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 1624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 'GL_UNSIGNED_BYTE', | 1635 'GL_UNSIGNED_BYTE', |
1636 'GL_SHORT', | 1636 'GL_SHORT', |
1637 'GL_UNSIGNED_SHORT', | 1637 'GL_UNSIGNED_SHORT', |
1638 # 'GL_FIXED', // This is not available on Desktop GL. | 1638 # 'GL_FIXED', // This is not available on Desktop GL. |
1639 'GL_FLOAT', | 1639 'GL_FLOAT', |
1640 ], | 1640 ], |
1641 'invalid': [ | 1641 'invalid': [ |
1642 'GL_DOUBLE', | 1642 'GL_DOUBLE', |
1643 ], | 1643 ], |
1644 }, | 1644 }, |
| 1645 'VertexAttribIType': { |
| 1646 'type': 'GLenum', |
| 1647 'valid': [ |
| 1648 'GL_BYTE', |
| 1649 'GL_UNSIGNED_BYTE', |
| 1650 'GL_SHORT', |
| 1651 'GL_UNSIGNED_SHORT', |
| 1652 'GL_INT', |
| 1653 'GL_UNSIGNED_INT', |
| 1654 ], |
| 1655 'invalid': [ |
| 1656 'GL_FLOAT', |
| 1657 'GL_DOUBLE', |
| 1658 ], |
| 1659 }, |
1645 'TextureBorder': { | 1660 'TextureBorder': { |
1646 'type': 'GLint', | 1661 'type': 'GLint', |
1647 'is_complete': True, | 1662 'is_complete': True, |
1648 'valid': [ | 1663 'valid': [ |
1649 '0', | 1664 '0', |
1650 ], | 1665 ], |
1651 'invalid': [ | 1666 'invalid': [ |
1652 '1', | 1667 '1', |
1653 ], | 1668 ], |
1654 }, | 1669 }, |
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3249 'unsafe': True, | 3264 'unsafe': True, |
3250 }, | 3265 }, |
3251 'VertexAttribI4uiv': { | 3266 'VertexAttribI4uiv': { |
3252 'type': 'PUT', | 3267 'type': 'PUT', |
3253 'count': 4, | 3268 'count': 4, |
3254 'unsafe': True, | 3269 'unsafe': True, |
3255 }, | 3270 }, |
3256 'VertexAttribIPointer': { | 3271 'VertexAttribIPointer': { |
3257 'type': 'Manual', | 3272 'type': 'Manual', |
3258 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' | 3273 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' |
3259 'GLenumVertexAttribType type, GLsizei stride, ' | 3274 'GLenumVertexAttribIType type, GLsizei stride, ' |
3260 'GLuint offset', | 3275 'GLuint offset', |
3261 'client_test': False, | 3276 'client_test': False, |
3262 'unsafe': True, | 3277 'unsafe': True, |
3263 }, | 3278 }, |
3264 'VertexAttribPointer': { | 3279 'VertexAttribPointer': { |
3265 'type': 'Manual', | 3280 'type': 'Manual', |
3266 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' | 3281 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' |
3267 'GLenumVertexAttribType type, GLboolean normalized, ' | 3282 'GLenumVertexAttribType type, GLboolean normalized, ' |
3268 'GLsizei stride, GLuint offset', | 3283 'GLsizei stride, GLuint offset', |
3269 'client_test': False, | 3284 'client_test': False, |
(...skipping 7510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10780 Format(gen.generated_cpp_filenames) | 10795 Format(gen.generated_cpp_filenames) |
10781 | 10796 |
10782 if gen.errors > 0: | 10797 if gen.errors > 0: |
10783 print "%d errors" % gen.errors | 10798 print "%d errors" % gen.errors |
10784 return 1 | 10799 return 1 |
10785 return 0 | 10800 return 0 |
10786 | 10801 |
10787 | 10802 |
10788 if __name__ == '__main__': | 10803 if __name__ == '__main__': |
10789 sys.exit(main(sys.argv[1:])) | 10804 sys.exit(main(sys.argv[1:])) |
OLD | NEW |