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 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1701 'uint32_t type', | 1701 'uint32_t type', |
1702 ], | 1702 ], |
1703 }, | 1703 }, |
1704 'GetAttachedShaders': { | 1704 'GetAttachedShaders': { |
1705 'type': 'Custom', | 1705 'type': 'Custom', |
1706 'data_transfer_methods': ['shm'], | 1706 'data_transfer_methods': ['shm'], |
1707 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size', | 1707 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size', |
1708 'result': ['SizedResult<GLuint>'], | 1708 'result': ['SizedResult<GLuint>'], |
1709 }, | 1709 }, |
1710 'GetAttribLocation': { | 1710 'GetAttribLocation': { |
1711 'type': 'HandWritten', | 1711 'type': 'Custom', |
1712 'needs_size': True, | |
1713 'cmd_args': | 1712 'cmd_args': |
1714 'GLidProgram program, const char* name, NonImmediate GLint* location', | 1713 'GLidProgram program, uint32_t name_bucket_id, ' |
1714 'NonImmediate GLint* location', | |
1715 'result': ['GLint'], | 1715 'result': ['GLint'], |
1716 'error_return': -1, # http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLo cation.xml | 1716 'error_return': -1, # http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLo cation.xml |
1717 }, | 1717 }, |
1718 'GetBooleanv': { | 1718 'GetBooleanv': { |
1719 'type': 'GETn', | 1719 'type': 'GETn', |
1720 'result': ['SizedResult<GLboolean>'], | 1720 'result': ['SizedResult<GLboolean>'], |
1721 'decoder_func': 'DoGetBooleanv', | 1721 'decoder_func': 'DoGetBooleanv', |
1722 'gl_test_func': 'glGetBooleanv', | 1722 'gl_test_func': 'glGetBooleanv', |
1723 }, | 1723 }, |
1724 'GetBufferParameteriv': { | 1724 'GetBufferParameteriv': { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1858 'type': 'Custom', | 1858 'type': 'Custom', |
1859 'data_transfer_methods': ['shm'], | 1859 'data_transfer_methods': ['shm'], |
1860 'result': ['SizedResult<GLfloat>'], | 1860 'result': ['SizedResult<GLfloat>'], |
1861 }, | 1861 }, |
1862 'GetUniformiv': { | 1862 'GetUniformiv': { |
1863 'type': 'Custom', | 1863 'type': 'Custom', |
1864 'data_transfer_methods': ['shm'], | 1864 'data_transfer_methods': ['shm'], |
1865 'result': ['SizedResult<GLint>'], | 1865 'result': ['SizedResult<GLint>'], |
1866 }, | 1866 }, |
1867 'GetUniformLocation': { | 1867 'GetUniformLocation': { |
1868 'type': 'HandWritten', | 1868 'type': 'Custom', |
1869 'needs_size': True, | |
1870 'cmd_args': | 1869 'cmd_args': |
1871 'GLidProgram program, const char* name, NonImmediate GLint* location', | 1870 'GLidProgram program, uint32_t name_bucket_id, ' |
1871 'NonImmediate GLint* location', | |
no sievers
2014/07/10 20:47:46
Can |NonImmediate| and the logic in this script th
| |
1872 'result': ['GLint'], | 1872 'result': ['GLint'], |
1873 'error_return': -1, # http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformL ocation.xml | 1873 'error_return': -1, # http://www.opengl.org/sdk/docs/man/xhtml/glGetUniformL ocation.xml |
1874 }, | 1874 }, |
1875 'GetVertexAttribfv': { | 1875 'GetVertexAttribfv': { |
1876 'type': 'GETn', | 1876 'type': 'GETn', |
1877 'result': ['SizedResult<GLfloat>'], | 1877 'result': ['SizedResult<GLfloat>'], |
1878 'impl_decl': False, | 1878 'impl_decl': False, |
1879 'decoder_func': 'DoGetVertexAttribfv', | 1879 'decoder_func': 'DoGetVertexAttribfv', |
1880 'expectation': False, | 1880 'expectation': False, |
1881 'client_test': False, | 1881 'client_test': False, |
(...skipping 6468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8350 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) | 8350 "ppapi/shared_impl/ppb_opengles2_shared.cc"]) |
8351 | 8351 |
8352 if gen.errors > 0: | 8352 if gen.errors > 0: |
8353 print "%d errors" % gen.errors | 8353 print "%d errors" % gen.errors |
8354 return 1 | 8354 return 1 |
8355 return 0 | 8355 return 0 |
8356 | 8356 |
8357 | 8357 |
8358 if __name__ == '__main__': | 8358 if __name__ == '__main__': |
8359 sys.exit(main(sys.argv[1:])) | 8359 sys.exit(main(sys.argv[1:])) |
OLD | NEW |