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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 }, | 1570 }, |
1571 'GetBufferParameteriv': { | 1571 'GetBufferParameteriv': { |
1572 'type': 'GETn', | 1572 'type': 'GETn', |
1573 'result': ['SizedResult<GLint>'], | 1573 'result': ['SizedResult<GLint>'], |
1574 'decoder_func': 'DoGetBufferParameteriv', | 1574 'decoder_func': 'DoGetBufferParameteriv', |
1575 'expectation': False, | 1575 'expectation': False, |
1576 'shadowed': True, | 1576 'shadowed': True, |
1577 }, | 1577 }, |
1578 'GetError': { | 1578 'GetError': { |
1579 'type': 'Is', | 1579 'type': 'Is', |
1580 'decoder_func': 'GetGLError', | 1580 'decoder_func': 'GetErrorState()->GetGLError', |
1581 'impl_func': False, | 1581 'impl_func': False, |
1582 'result': ['GLenum'], | 1582 'result': ['GLenum'], |
1583 'client_test': False, | 1583 'client_test': False, |
1584 }, | 1584 }, |
1585 'GetFloatv': { | 1585 'GetFloatv': { |
1586 'type': 'GETn', | 1586 'type': 'GETn', |
1587 'result': ['SizedResult<GLfloat>'], | 1587 'result': ['SizedResult<GLfloat>'], |
1588 'decoder_func': 'DoGetFloatv', | 1588 'decoder_func': 'DoGetFloatv', |
1589 'gl_test_func': 'glGetFloatv', | 1589 'gl_test_func': 'glGetFloatv', |
1590 }, | 1590 }, |
(...skipping 6071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7662 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7662 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
7663 | 7663 |
7664 if gen.errors > 0: | 7664 if gen.errors > 0: |
7665 print "%d errors" % gen.errors | 7665 print "%d errors" % gen.errors |
7666 return 1 | 7666 return 1 |
7667 return 0 | 7667 return 0 |
7668 | 7668 |
7669 | 7669 |
7670 if __name__ == '__main__': | 7670 if __name__ == '__main__': |
7671 sys.exit(main(sys.argv[1:])) | 7671 sys.exit(main(sys.argv[1:])) |
OLD | NEW |