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 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 'unit_test': False, | 1150 'unit_test': False, |
1151 'impl_func': False, | 1151 'impl_func': False, |
1152 'client_test': False, | 1152 'client_test': False, |
1153 }, | 1153 }, |
1154 'AttachShader': {'decoder_func': 'DoAttachShader'}, | 1154 'AttachShader': {'decoder_func': 'DoAttachShader'}, |
1155 'BindAttribLocation': {'type': 'GLchar', 'bucket': True, 'needs_size': True}, | 1155 'BindAttribLocation': {'type': 'GLchar', 'bucket': True, 'needs_size': True}, |
1156 'BindBuffer': { | 1156 'BindBuffer': { |
1157 'type': 'Bind', | 1157 'type': 'Bind', |
1158 'decoder_func': 'DoBindBuffer', | 1158 'decoder_func': 'DoBindBuffer', |
1159 'gen_func': 'GenBuffersARB', | 1159 'gen_func': 'GenBuffersARB', |
| 1160 'impl_func': False, |
1160 }, | 1161 }, |
1161 'BindFramebuffer': { | 1162 'BindFramebuffer': { |
1162 'type': 'Bind', | 1163 'type': 'Bind', |
1163 'decoder_func': 'DoBindFramebuffer', | 1164 'decoder_func': 'DoBindFramebuffer', |
1164 'gl_test_func': 'glBindFramebufferEXT', | 1165 'gl_test_func': 'glBindFramebufferEXT', |
1165 'gen_func': 'GenFramebuffersEXT', | 1166 'gen_func': 'GenFramebuffersEXT', |
1166 }, | 1167 }, |
1167 'BindRenderbuffer': { | 1168 'BindRenderbuffer': { |
1168 'type': 'Bind', | 1169 'type': 'Bind', |
1169 'decoder_func': 'DoBindRenderbuffer', | 1170 'decoder_func': 'DoBindRenderbuffer', |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 }, | 1694 }, |
1694 'IsTexture': { | 1695 'IsTexture': { |
1695 'type': 'Is', | 1696 'type': 'Is', |
1696 'decoder_func': 'DoIsTexture', | 1697 'decoder_func': 'DoIsTexture', |
1697 'expectation': False, | 1698 'expectation': False, |
1698 }, | 1699 }, |
1699 'LinkProgram': { | 1700 'LinkProgram': { |
1700 'decoder_func': 'DoLinkProgram', | 1701 'decoder_func': 'DoLinkProgram', |
1701 'impl_func': False, | 1702 'impl_func': False, |
1702 }, | 1703 }, |
| 1704 'MapBufferCHROMIUM': { |
| 1705 'gen_cmd': False, |
| 1706 'extension': True, |
| 1707 'chromium': True, |
| 1708 'client_test': False, |
| 1709 'chromium': True, |
| 1710 }, |
1703 'MapBufferSubDataCHROMIUM': { | 1711 'MapBufferSubDataCHROMIUM': { |
1704 'gen_cmd': False, | 1712 'gen_cmd': False, |
1705 'extension': True, | 1713 'extension': True, |
1706 'chromium': True, | 1714 'chromium': True, |
1707 'client_test': False, | 1715 'client_test': False, |
1708 'pepper_interface': 'ChromiumMapSub', | 1716 'pepper_interface': 'ChromiumMapSub', |
1709 }, | 1717 }, |
1710 'MapTexSubImage2DCHROMIUM': { | 1718 'MapTexSubImage2DCHROMIUM': { |
1711 'gen_cmd': False, | 1719 'gen_cmd': False, |
1712 'extension': True, | 1720 'extension': True, |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 'data_type': 'GLfloat', | 1923 'data_type': 'GLfloat', |
1916 'count': 9, | 1924 'count': 9, |
1917 'decoder_func': 'DoUniformMatrix3fv', | 1925 'decoder_func': 'DoUniformMatrix3fv', |
1918 }, | 1926 }, |
1919 'UniformMatrix4fv': { | 1927 'UniformMatrix4fv': { |
1920 'type': 'PUTn', | 1928 'type': 'PUTn', |
1921 'data_type': 'GLfloat', | 1929 'data_type': 'GLfloat', |
1922 'count': 16, | 1930 'count': 16, |
1923 'decoder_func': 'DoUniformMatrix4fv', | 1931 'decoder_func': 'DoUniformMatrix4fv', |
1924 }, | 1932 }, |
| 1933 'UnmapBufferCHROMIUM': { |
| 1934 'gen_cmd': False, |
| 1935 'extension': True, |
| 1936 'chromium': True, |
| 1937 'client_test': False, |
| 1938 'chromium': True, |
| 1939 }, |
1925 'UnmapBufferSubDataCHROMIUM': { | 1940 'UnmapBufferSubDataCHROMIUM': { |
1926 'gen_cmd': False, | 1941 'gen_cmd': False, |
1927 'extension': True, | 1942 'extension': True, |
1928 'chromium': True, | 1943 'chromium': True, |
1929 'client_test': False, | 1944 'client_test': False, |
1930 'pepper_interface': 'ChromiumMapSub', | 1945 'pepper_interface': 'ChromiumMapSub', |
1931 }, | 1946 }, |
1932 'UnmapTexSubImage2DCHROMIUM': { | 1947 'UnmapTexSubImage2DCHROMIUM': { |
1933 'gen_cmd': False, | 1948 'gen_cmd': False, |
1934 'extension': True, | 1949 'extension': True, |
(...skipping 5253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7188 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 7203 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
7189 | 7204 |
7190 if gen.errors > 0: | 7205 if gen.errors > 0: |
7191 print "%d errors" % gen.errors | 7206 print "%d errors" % gen.errors |
7192 return 1 | 7207 return 1 |
7193 return 0 | 7208 return 0 |
7194 | 7209 |
7195 | 7210 |
7196 if __name__ == '__main__': | 7211 if __name__ == '__main__': |
7197 sys.exit(main(sys.argv[1:])) | 7212 sys.exit(main(sys.argv[1:])) |
OLD | NEW |