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

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

Issue 895933004: Add UniformBlocks related commands to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uniform
Patch Set: Working 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
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 'data_transfer_methods': ['shm'], 2027 'data_transfer_methods': ['shm'],
2028 'cmd_args': 2028 'cmd_args':
2029 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' 2029 'GLidProgram program, GLuint index, uint32_t name_bucket_id, '
2030 'void* result', 2030 'void* result',
2031 'result': [ 2031 'result': [
2032 'int32_t success', 2032 'int32_t success',
2033 'int32_t size', 2033 'int32_t size',
2034 'uint32_t type', 2034 'uint32_t type',
2035 ], 2035 ],
2036 }, 2036 },
2037 'GetActiveUniformBlockName': {
2038 'type': 'Custom',
2039 'data_transfer_methods': ['shm'],
2040 'cmd_args':
2041 'GLidProgram program, GLuint index, uint32_t name_bucket_id, '
2042 'void* result',
2043 'result': ['int32_t'],
2044 'unsafe': True,
2045 },
2037 'GetAttachedShaders': { 2046 'GetAttachedShaders': {
2038 'type': 'Custom', 2047 'type': 'Custom',
2039 'data_transfer_methods': ['shm'], 2048 'data_transfer_methods': ['shm'],
2040 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size', 2049 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size',
2041 'result': ['SizedResult<GLuint>'], 2050 'result': ['SizedResult<GLuint>'],
2042 }, 2051 },
2043 'GetAttribLocation': { 2052 'GetAttribLocation': {
2044 'type': 'Custom', 2053 'type': 'Custom',
2045 'data_transfer_methods': ['shm'], 2054 'data_transfer_methods': ['shm'],
2046 'cmd_args': 2055 'cmd_args':
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
2197 'type': 'GETn', 2206 'type': 'GETn',
2198 'decoder_func': 'DoGetTexParameteriv', 2207 'decoder_func': 'DoGetTexParameteriv',
2199 'result': ['SizedResult<GLint>'] 2208 'result': ['SizedResult<GLint>']
2200 }, 2209 },
2201 'GetTranslatedShaderSourceANGLE': { 2210 'GetTranslatedShaderSourceANGLE': {
2202 'type': 'STRn', 2211 'type': 'STRn',
2203 'get_len_func': 'DoGetShaderiv', 2212 'get_len_func': 'DoGetShaderiv',
2204 'get_len_enum': 'GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE', 2213 'get_len_enum': 'GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE',
2205 'unit_test': False, 2214 'unit_test': False,
2206 'extension': True, 2215 'extension': True,
2207 }, 2216 },
2217 'GetUniformBlockIndex': {
2218 'type': 'Custom',
2219 'data_transfer_methods': ['shm'],
2220 'cmd_args':
2221 'GLidProgram program, uint32_t name_bucket_id, GLuint* index',
2222 'result': ['GLuint'],
2223 'error_return': 'GL_INVALID_INDEX',
2224 'unsafe': True,
2225 },
2226 'GetUniformBlocksCHROMIUM': {
2227 'type': 'Custom',
2228 'expectation': False,
2229 'impl_func': False,
2230 'extension': True,
2231 'chromium': True,
2232 'client_test': False,
2233 'cmd_args': 'GLidProgram program, uint32_t bucket_id',
2234 'result': ['uint32_t'],
2235 'unsafe': True,
2236 },
2208 'GetUniformfv': { 2237 'GetUniformfv': {
2209 'type': 'Custom', 2238 'type': 'Custom',
2210 'data_transfer_methods': ['shm'], 2239 'data_transfer_methods': ['shm'],
2211 'result': ['SizedResult<GLfloat>'], 2240 'result': ['SizedResult<GLfloat>'],
2212 }, 2241 },
2213 'GetUniformiv': { 2242 'GetUniformiv': {
2214 'type': 'Custom', 2243 'type': 'Custom',
2215 'data_transfer_methods': ['shm'], 2244 'data_transfer_methods': ['shm'],
2216 'result': ['SizedResult<GLint>'], 2245 'result': ['SizedResult<GLint>'],
2217 }, 2246 },
(...skipping 7884 matching lines...) Expand 10 before | Expand all | Expand 10 after
10102 Format(gen.generated_cpp_filenames) 10131 Format(gen.generated_cpp_filenames)
10103 10132
10104 if gen.errors > 0: 10133 if gen.errors > 0:
10105 print "%d errors" % gen.errors 10134 print "%d errors" % gen.errors
10106 return 1 10135 return 1
10107 return 0 10136 return 0
10108 10137
10109 10138
10110 if __name__ == '__main__': 10139 if __name__ == '__main__':
10111 sys.exit(main(sys.argv[1:])) 10140 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2chromium_autogen.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698