Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1309743005: command_buffer: Implement EXT_blend_func_extended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: address review comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2810 matching lines...) Expand 10 before | Expand all | Expand 10 after
2821 'result': ['SizedResult<GLuint>'], 2821 'result': ['SizedResult<GLuint>'],
2822 }, 2822 },
2823 'GetAttribLocation': { 2823 'GetAttribLocation': {
2824 'type': 'Custom', 2824 'type': 'Custom',
2825 'data_transfer_methods': ['shm'], 2825 'data_transfer_methods': ['shm'],
2826 'cmd_args': 2826 'cmd_args':
2827 'GLidProgram program, uint32_t name_bucket_id, GLint* location', 2827 'GLidProgram program, uint32_t name_bucket_id, GLint* location',
2828 'result': ['GLint'], 2828 'result': ['GLint'],
2829 'error_return': -1, 2829 'error_return': -1,
2830 }, 2830 },
2831 'GetFragDataIndexEXT': {
2832 'type': 'Custom',
2833 'data_transfer_methods': ['shm'],
2834 'cmd_args':
2835 'GLidProgram program, uint32_t name_bucket_id, GLint* index',
2836 'result': ['GLint'],
2837 'error_return': -1,
2838 'extension': 'EXT_blend_func_extended',
2839 'extension_flag': 'ext_blend_func_extended',
2840 },
2831 'GetFragDataLocation': { 2841 'GetFragDataLocation': {
2832 'type': 'Custom', 2842 'type': 'Custom',
2833 'data_transfer_methods': ['shm'], 2843 'data_transfer_methods': ['shm'],
2834 'cmd_args': 2844 'cmd_args':
2835 'GLidProgram program, uint32_t name_bucket_id, GLint* location', 2845 'GLidProgram program, uint32_t name_bucket_id, GLint* location',
2836 'result': ['GLint'], 2846 'result': ['GLint'],
2837 'error_return': -1, 2847 'error_return': -1,
2838 'unsafe': True, 2848 'unsafe': True,
2839 }, 2849 },
2840 'GetBooleanv': { 2850 'GetBooleanv': {
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
3988 'extension': "disjoint_timer_query_EXT", 3998 'extension': "disjoint_timer_query_EXT",
3989 }, 3999 },
3990 'SetDisjointValueSyncCHROMIUM': { 4000 'SetDisjointValueSyncCHROMIUM': {
3991 'type': 'Manual', 4001 'type': 'Manual',
3992 'data_transfer_methods': ['shm'], 4002 'data_transfer_methods': ['shm'],
3993 'client_test': False, 4003 'client_test': False,
3994 'cmd_args': 'void* sync_data', 4004 'cmd_args': 'void* sync_data',
3995 'extension': True, 4005 'extension': True,
3996 'chromium': True, 4006 'chromium': True,
3997 }, 4007 },
4008 'BindFragDataLocationEXT': {
4009 'type': 'GLchar',
4010 'data_transfer_methods': ['bucket'],
4011 'needs_size': True,
4012 'gl_test_func': 'DoBindFragDataLocationEXT',
4013 'extension': 'EXT_blend_func_extended',
4014 'extension_flag': 'ext_blend_func_extended',
4015 },
4016 'BindFragDataLocationIndexedEXT': {
4017 'type': 'GLchar',
4018 'data_transfer_methods': ['bucket'],
4019 'needs_size': True,
4020 'gl_test_func': 'DoBindFragDataLocationIndexedEXT',
4021 'extension': 'EXT_blend_func_extended',
4022 'extension_flag': 'ext_blend_func_extended',
4023 },
3998 'BindUniformLocationCHROMIUM': { 4024 'BindUniformLocationCHROMIUM': {
3999 'type': 'GLchar', 4025 'type': 'GLchar',
4000 'extension': 'CHROMIUM_bind_uniform_location', 4026 'extension': 'CHROMIUM_bind_uniform_location',
4001 'data_transfer_methods': ['bucket'], 4027 'data_transfer_methods': ['bucket'],
4002 'needs_size': True, 4028 'needs_size': True,
4003 'gl_test_func': 'DoBindUniformLocationCHROMIUM', 4029 'gl_test_func': 'DoBindUniformLocationCHROMIUM',
4004 }, 4030 },
4005 'InsertEventMarkerEXT': { 4031 'InsertEventMarkerEXT': {
4006 'type': 'GLcharN', 4032 'type': 'GLcharN',
4007 'decoder_func': 'DoInsertEventMarkerEXT', 4033 'decoder_func': 'DoInsertEventMarkerEXT',
(...skipping 7094 matching lines...) Expand 10 before | Expand all | Expand 10 after
11102 Format(gen.generated_cpp_filenames) 11128 Format(gen.generated_cpp_filenames)
11103 11129
11104 if gen.errors > 0: 11130 if gen.errors > 0:
11105 print "%d errors" % gen.errors 11131 print "%d errors" % gen.errors
11106 return 1 11132 return 1
11107 return 0 11133 return 0
11108 11134
11109 11135
11110 if __name__ == '__main__': 11136 if __name__ == '__main__':
11111 sys.exit(main(sys.argv[1:])) 11137 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698