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 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 'BindBufferBase': { | 1501 'BindBufferBase': { |
1502 'type': 'Bind', | 1502 'type': 'Bind', |
1503 'id_mapping': [ 'Buffer' ], | 1503 'id_mapping': [ 'Buffer' ], |
1504 'gen_func': 'GenBuffersARB', | 1504 'gen_func': 'GenBuffersARB', |
1505 'unsafe': True, | 1505 'unsafe': True, |
1506 }, | 1506 }, |
1507 'BindBufferRange': { | 1507 'BindBufferRange': { |
1508 'type': 'Bind', | 1508 'type': 'Bind', |
1509 'id_mapping': [ 'Buffer' ], | 1509 'id_mapping': [ 'Buffer' ], |
1510 'gen_func': 'GenBuffersARB', | 1510 'gen_func': 'GenBuffersARB', |
| 1511 'valid_args': { |
| 1512 '3': '4', |
| 1513 '4': '4' |
| 1514 }, |
1511 'unsafe': True, | 1515 'unsafe': True, |
1512 }, | 1516 }, |
1513 'BindFramebuffer': { | 1517 'BindFramebuffer': { |
1514 'type': 'Bind', | 1518 'type': 'Bind', |
1515 'decoder_func': 'DoBindFramebuffer', | 1519 'decoder_func': 'DoBindFramebuffer', |
1516 'gl_test_func': 'glBindFramebufferEXT', | 1520 'gl_test_func': 'glBindFramebufferEXT', |
1517 'gen_func': 'GenFramebuffersEXT', | 1521 'gen_func': 'GenFramebuffersEXT', |
1518 'trace_level': 1, | 1522 'trace_level': 1, |
1519 }, | 1523 }, |
1520 'BindRenderbuffer': { | 1524 'BindRenderbuffer': { |
(...skipping 8577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10098 Format(gen.generated_cpp_filenames) | 10102 Format(gen.generated_cpp_filenames) |
10099 | 10103 |
10100 if gen.errors > 0: | 10104 if gen.errors > 0: |
10101 print "%d errors" % gen.errors | 10105 print "%d errors" % gen.errors |
10102 return 1 | 10106 return 1 |
10103 return 0 | 10107 return 0 |
10104 | 10108 |
10105 | 10109 |
10106 if __name__ == '__main__': | 10110 if __name__ == '__main__': |
10107 sys.exit(main(sys.argv[1:])) | 10111 sys.exit(main(sys.argv[1:])) |
OLD | NEW |