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

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

Issue 867123008: Add glGetFragDataLocation to gpu command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 2010 matching lines...) Expand 10 before | Expand all | Expand 10 after
2021 'data_transfer_methods': ['shm'], 2021 'data_transfer_methods': ['shm'],
2022 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size', 2022 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size',
2023 'result': ['SizedResult<GLuint>'], 2023 'result': ['SizedResult<GLuint>'],
2024 }, 2024 },
2025 'GetAttribLocation': { 2025 'GetAttribLocation': {
2026 'type': 'Custom', 2026 'type': 'Custom',
2027 'data_transfer_methods': ['shm'], 2027 'data_transfer_methods': ['shm'],
2028 'cmd_args': 2028 'cmd_args':
2029 'GLidProgram program, uint32_t name_bucket_id, GLint* location', 2029 'GLidProgram program, uint32_t name_bucket_id, GLint* location',
2030 'result': ['GLint'], 2030 'result': ['GLint'],
2031 'error_return': -1, # http://www.opengl.org/sdk/docs/man/xhtml/glGetAttribLo cation.xml 2031 'error_return': -1,
2032 },
2033 'GetFragDataLocation': {
2034 'type': 'Custom',
2035 'data_transfer_methods': ['shm'],
2036 'cmd_args':
2037 'GLidProgram program, uint32_t name_bucket_id, GLint* location',
2038 'result': ['GLint'],
2039 'error_return': -1,
2040 'unsafe': True,
2032 }, 2041 },
2033 'GetBooleanv': { 2042 'GetBooleanv': {
2034 'type': 'GETn', 2043 'type': 'GETn',
2035 'result': ['SizedResult<GLboolean>'], 2044 'result': ['SizedResult<GLboolean>'],
2036 'decoder_func': 'DoGetBooleanv', 2045 'decoder_func': 'DoGetBooleanv',
2037 'gl_test_func': 'glGetBooleanv', 2046 'gl_test_func': 'glGetBooleanv',
2038 }, 2047 },
2039 'GetBufferParameteriv': { 2048 'GetBufferParameteriv': {
2040 'type': 'GETn', 2049 'type': 'GETn',
2041 'result': ['SizedResult<GLint>'], 2050 'result': ['SizedResult<GLint>'],
(...skipping 8010 matching lines...) Expand 10 before | Expand all | Expand 10 after
10052 Format(gen.generated_cpp_filenames) 10061 Format(gen.generated_cpp_filenames)
10053 10062
10054 if gen.errors > 0: 10063 if gen.errors > 0:
10055 print "%d errors" % gen.errors 10064 print "%d errors" % gen.errors
10056 return 1 10065 return 1
10057 return 0 10066 return 0
10058 10067
10059 10068
10060 if __name__ == '__main__': 10069 if __name__ == '__main__':
10061 sys.exit(main(sys.argv[1:])) 10070 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698