| 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 3455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3466 'decoder_func': 'DoVertexAttrib3fv', | 3466 'decoder_func': 'DoVertexAttrib3fv', |
| 3467 }, | 3467 }, |
| 3468 'VertexAttrib4f': {'decoder_func': 'DoVertexAttrib4f'}, | 3468 'VertexAttrib4f': {'decoder_func': 'DoVertexAttrib4f'}, |
| 3469 'VertexAttrib4fv': { | 3469 'VertexAttrib4fv': { |
| 3470 'type': 'PUT', | 3470 'type': 'PUT', |
| 3471 'count': 4, | 3471 'count': 4, |
| 3472 'decoder_func': 'DoVertexAttrib4fv', | 3472 'decoder_func': 'DoVertexAttrib4fv', |
| 3473 }, | 3473 }, |
| 3474 'VertexAttribI4i': { | 3474 'VertexAttribI4i': { |
| 3475 'unsafe': True, | 3475 'unsafe': True, |
| 3476 'decoder_func': 'DoVertexAttribI4i', |
| 3476 }, | 3477 }, |
| 3477 'VertexAttribI4iv': { | 3478 'VertexAttribI4iv': { |
| 3478 'type': 'PUT', | 3479 'type': 'PUT', |
| 3479 'count': 4, | 3480 'count': 4, |
| 3480 'unsafe': True, | 3481 'unsafe': True, |
| 3482 'decoder_func': 'DoVertexAttribI4iv', |
| 3481 }, | 3483 }, |
| 3482 'VertexAttribI4ui': { | 3484 'VertexAttribI4ui': { |
| 3483 'unsafe': True, | 3485 'unsafe': True, |
| 3486 'decoder_func': 'DoVertexAttribI4ui', |
| 3484 }, | 3487 }, |
| 3485 'VertexAttribI4uiv': { | 3488 'VertexAttribI4uiv': { |
| 3486 'type': 'PUT', | 3489 'type': 'PUT', |
| 3487 'count': 4, | 3490 'count': 4, |
| 3488 'unsafe': True, | 3491 'unsafe': True, |
| 3492 'decoder_func': 'DoVertexAttribI4uiv', |
| 3489 }, | 3493 }, |
| 3490 'VertexAttribIPointer': { | 3494 'VertexAttribIPointer': { |
| 3491 'type': 'Manual', | 3495 'type': 'Manual', |
| 3492 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' | 3496 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' |
| 3493 'GLenumVertexAttribIType type, GLsizei stride, ' | 3497 'GLenumVertexAttribIType type, GLsizei stride, ' |
| 3494 'GLuint offset', | 3498 'GLuint offset', |
| 3495 'client_test': False, | 3499 'client_test': False, |
| 3496 'unsafe': True, | 3500 'unsafe': True, |
| 3497 }, | 3501 }, |
| 3498 'VertexAttribPointer': { | 3502 'VertexAttribPointer': { |
| (...skipping 7521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11020 Format(gen.generated_cpp_filenames) | 11024 Format(gen.generated_cpp_filenames) |
| 11021 | 11025 |
| 11022 if gen.errors > 0: | 11026 if gen.errors > 0: |
| 11023 print "%d errors" % gen.errors | 11027 print "%d errors" % gen.errors |
| 11024 return 1 | 11028 return 1 |
| 11025 return 0 | 11029 return 0 |
| 11026 | 11030 |
| 11027 | 11031 |
| 11028 if __name__ == '__main__': | 11032 if __name__ == '__main__': |
| 11029 sys.exit(main(sys.argv[1:])) | 11033 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |