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 2212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2223 }, | 2223 }, |
2224 'Clear': { | 2224 'Clear': { |
2225 'decoder_func': 'DoClear', | 2225 'decoder_func': 'DoClear', |
2226 'defer_draws': True, | 2226 'defer_draws': True, |
2227 'trace_level': 2, | 2227 'trace_level': 2, |
2228 }, | 2228 }, |
2229 'ClearBufferiv': { | 2229 'ClearBufferiv': { |
2230 'type': 'PUT', | 2230 'type': 'PUT', |
2231 'use_count_func': True, | 2231 'use_count_func': True, |
2232 'count': 4, | 2232 'count': 4, |
| 2233 'decoder_func': 'DoClearBufferiv', |
| 2234 'unit_test': False, |
2233 'unsafe': True, | 2235 'unsafe': True, |
2234 'trace_level': 2, | 2236 'trace_level': 2, |
2235 }, | 2237 }, |
2236 'ClearBufferuiv': { | 2238 'ClearBufferuiv': { |
2237 'type': 'PUT', | 2239 'type': 'PUT', |
2238 'count': 4, | 2240 'count': 4, |
| 2241 'decoder_func': 'DoClearBufferuiv', |
| 2242 'unit_test': False, |
2239 'unsafe': True, | 2243 'unsafe': True, |
2240 'trace_level': 2, | 2244 'trace_level': 2, |
2241 }, | 2245 }, |
2242 'ClearBufferfv': { | 2246 'ClearBufferfv': { |
2243 'type': 'PUT', | 2247 'type': 'PUT', |
2244 'use_count_func': True, | 2248 'use_count_func': True, |
2245 'count': 4, | 2249 'count': 4, |
| 2250 'decoder_func': 'DoClearBufferfv', |
| 2251 'unit_test': False, |
2246 'unsafe': True, | 2252 'unsafe': True, |
2247 'trace_level': 2, | 2253 'trace_level': 2, |
2248 }, | 2254 }, |
2249 'ClearBufferfi': { | 2255 'ClearBufferfi': { |
2250 'unsafe': True, | 2256 'unsafe': True, |
| 2257 'decoder_func': 'DoClearBufferfi', |
| 2258 'unit_test': False, |
2251 'trace_level': 2, | 2259 'trace_level': 2, |
2252 }, | 2260 }, |
2253 'ClearColor': { | 2261 'ClearColor': { |
2254 'type': 'StateSet', | 2262 'type': 'StateSet', |
2255 'state': 'ClearColor', | 2263 'state': 'ClearColor', |
2256 }, | 2264 }, |
2257 'ClearDepthf': { | 2265 'ClearDepthf': { |
2258 'type': 'StateSet', | 2266 'type': 'StateSet', |
2259 'state': 'ClearDepthf', | 2267 'state': 'ClearDepthf', |
2260 'decoder_func': 'glClearDepth', | 2268 'decoder_func': 'glClearDepth', |
(...skipping 8792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11053 Format(gen.generated_cpp_filenames) | 11061 Format(gen.generated_cpp_filenames) |
11054 | 11062 |
11055 if gen.errors > 0: | 11063 if gen.errors > 0: |
11056 print "%d errors" % gen.errors | 11064 print "%d errors" % gen.errors |
11057 return 1 | 11065 return 1 |
11058 return 0 | 11066 return 0 |
11059 | 11067 |
11060 | 11068 |
11061 if __name__ == '__main__': | 11069 if __name__ == '__main__': |
11062 sys.exit(main(sys.argv[1:])) | 11070 sys.exit(main(sys.argv[1:])) |
OLD | NEW |