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 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 'cmd_args': | 1556 'cmd_args': |
1557 'GLidProgram program, const char* name, NonImmediate GLint* location', | 1557 'GLidProgram program, const char* name, NonImmediate GLint* location', |
1558 'result': ['GLint'], | 1558 'result': ['GLint'], |
1559 }, | 1559 }, |
1560 'GetBooleanv': { | 1560 'GetBooleanv': { |
1561 'type': 'GETn', | 1561 'type': 'GETn', |
1562 'result': ['SizedResult<GLboolean>'], | 1562 'result': ['SizedResult<GLboolean>'], |
1563 'decoder_func': 'DoGetBooleanv', | 1563 'decoder_func': 'DoGetBooleanv', |
1564 'gl_test_func': 'glGetBooleanv', | 1564 'gl_test_func': 'glGetBooleanv', |
1565 }, | 1565 }, |
1566 'GetBufferParameteriv': {'type': 'GETn', 'result': ['SizedResult<GLint>']}, | 1566 'GetBufferParameteriv': { |
| 1567 'type': 'GETn', |
| 1568 'result': ['SizedResult<GLint>'], |
| 1569 'decoder_func': 'DoGetBufferParameteriv', |
| 1570 }, |
1567 'GetError': { | 1571 'GetError': { |
1568 'type': 'Is', | 1572 'type': 'Is', |
1569 'decoder_func': 'GetGLError', | 1573 'decoder_func': 'GetGLError', |
1570 'impl_func': False, | 1574 'impl_func': False, |
1571 'result': ['GLenum'], | 1575 'result': ['GLenum'], |
1572 'client_test': False, | 1576 'client_test': False, |
1573 }, | 1577 }, |
1574 'GetFloatv': { | 1578 'GetFloatv': { |
1575 'type': 'GETn', | 1579 'type': 'GETn', |
1576 'result': ['SizedResult<GLfloat>'], | 1580 'result': ['SizedResult<GLfloat>'], |
(...skipping 6013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7590 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") | 7594 gen.WriteGLES2Header("../GLES2/gl2chromium_autogen.h") |
7591 | 7595 |
7592 if gen.errors > 0: | 7596 if gen.errors > 0: |
7593 print "%d errors" % gen.errors | 7597 print "%d errors" % gen.errors |
7594 return 1 | 7598 return 1 |
7595 return 0 | 7599 return 0 |
7596 | 7600 |
7597 | 7601 |
7598 if __name__ == '__main__': | 7602 if __name__ == '__main__': |
7599 sys.exit(main(sys.argv[1:])) | 7603 sys.exit(main(sys.argv[1:])) |
OLD | NEW |