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 2797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2808 'result': ['SizedResult<GLuint>'], | 2808 'result': ['SizedResult<GLuint>'], |
2809 }, | 2809 }, |
2810 'GetAttribLocation': { | 2810 'GetAttribLocation': { |
2811 'type': 'Custom', | 2811 'type': 'Custom', |
2812 'data_transfer_methods': ['shm'], | 2812 'data_transfer_methods': ['shm'], |
2813 'cmd_args': | 2813 'cmd_args': |
2814 'GLidProgram program, uint32_t name_bucket_id, GLint* location', | 2814 'GLidProgram program, uint32_t name_bucket_id, GLint* location', |
2815 'result': ['GLint'], | 2815 'result': ['GLint'], |
2816 'error_return': -1, | 2816 'error_return': -1, |
2817 }, | 2817 }, |
2818 'GetFragDataIndexEXT': { | |
2819 'type': 'Custom', | |
2820 'data_transfer_methods': ['shm'], | |
2821 'cmd_args': | |
2822 'GLidProgram program, uint32_t name_bucket_id, GLint* index', | |
2823 'result': ['GLint'], | |
2824 'error_return': -1, | |
2825 'unsafe': True, | |
Zhenyao Mo
2015/08/31 21:12:30
Remove the 'unsafe'. It is only intended for ES3 f
Kimmo Kinnunen
2015/09/24 13:16:27
Done.
| |
2826 'extension': True, | |
2827 'extension_flag': 'ext_blend_func_extended', | |
2828 }, | |
2818 'GetFragDataLocation': { | 2829 'GetFragDataLocation': { |
2819 'type': 'Custom', | 2830 'type': 'Custom', |
2820 'data_transfer_methods': ['shm'], | 2831 'data_transfer_methods': ['shm'], |
2821 'cmd_args': | 2832 'cmd_args': |
2822 'GLidProgram program, uint32_t name_bucket_id, GLint* location', | 2833 'GLidProgram program, uint32_t name_bucket_id, GLint* location', |
2823 'result': ['GLint'], | 2834 'result': ['GLint'], |
2824 'error_return': -1, | 2835 'error_return': -1, |
2825 'unsafe': True, | 2836 'unsafe': True, |
2826 }, | 2837 }, |
2827 'GetBooleanv': { | 2838 'GetBooleanv': { |
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3954 'extension': "disjoint_timer_query_EXT", | 3965 'extension': "disjoint_timer_query_EXT", |
3955 }, | 3966 }, |
3956 'SetDisjointValueSyncCHROMIUM': { | 3967 'SetDisjointValueSyncCHROMIUM': { |
3957 'type': 'Manual', | 3968 'type': 'Manual', |
3958 'data_transfer_methods': ['shm'], | 3969 'data_transfer_methods': ['shm'], |
3959 'client_test': False, | 3970 'client_test': False, |
3960 'cmd_args': 'void* sync_data', | 3971 'cmd_args': 'void* sync_data', |
3961 'extension': True, | 3972 'extension': True, |
3962 'chromium': True, | 3973 'chromium': True, |
3963 }, | 3974 }, |
3975 'BindFragDataLocationEXT': { | |
3976 'type': 'GLchar', | |
3977 'data_transfer_methods': ['bucket'], | |
3978 'needs_size': True, | |
3979 'gl_test_func': 'DoBindFragDataLocationEXT', | |
3980 'extension': True, | |
3981 'extension_flag': 'ext_blend_func_extended', | |
3982 'unsafe': True, | |
Zhenyao Mo
2015/08/31 21:12:30
Remove unsafe.
Kimmo Kinnunen
2015/09/24 13:16:27
Done.
| |
3983 }, | |
3984 'BindFragDataLocationIndexedEXT': { | |
3985 'type': 'GLchar', | |
3986 'data_transfer_methods': ['bucket'], | |
3987 'needs_size': True, | |
3988 'gl_test_func': 'DoBindFragDataLocationIndexedEXT', | |
3989 'extension': True, | |
3990 'extension_flag': 'ext_blend_func_extended', | |
3991 'unsafe': True, | |
Zhenyao Mo
2015/08/31 21:12:30
Remove unsafe.
Kimmo Kinnunen
2015/09/24 13:16:27
Done.
| |
3992 }, | |
3964 'BindUniformLocationCHROMIUM': { | 3993 'BindUniformLocationCHROMIUM': { |
3965 'type': 'GLchar', | 3994 'type': 'GLchar', |
3966 'extension': True, | 3995 'extension': True, |
3967 'data_transfer_methods': ['bucket'], | 3996 'data_transfer_methods': ['bucket'], |
3968 'needs_size': True, | 3997 'needs_size': True, |
3969 'gl_test_func': 'DoBindUniformLocationCHROMIUM', | 3998 'gl_test_func': 'DoBindUniformLocationCHROMIUM', |
3970 }, | 3999 }, |
3971 'InsertEventMarkerEXT': { | 4000 'InsertEventMarkerEXT': { |
3972 'type': 'GLcharN', | 4001 'type': 'GLcharN', |
3973 'decoder_func': 'DoInsertEventMarkerEXT', | 4002 'decoder_func': 'DoInsertEventMarkerEXT', |
(...skipping 7130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11104 Format(gen.generated_cpp_filenames) | 11133 Format(gen.generated_cpp_filenames) |
11105 | 11134 |
11106 if gen.errors > 0: | 11135 if gen.errors > 0: |
11107 print "%d errors" % gen.errors | 11136 print "%d errors" % gen.errors |
11108 return 1 | 11137 return 1 |
11109 return 0 | 11138 return 0 |
11110 | 11139 |
11111 | 11140 |
11112 if __name__ == '__main__': | 11141 if __name__ == '__main__': |
11113 sys.exit(main(sys.argv[1:])) | 11142 sys.exit(main(sys.argv[1:])) |
OLD | NEW |