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

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

Issue 894373004: Add glGetActiveUniformBlockiv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win bots 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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 'valid': [ 1306 'valid': [
1307 'GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM', 1307 'GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM',
1308 ], 1308 ],
1309 }, 1309 },
1310 'SubscriptionTarget': { 1310 'SubscriptionTarget': {
1311 'type': 'GLenum', 1311 'type': 'GLenum',
1312 'valid': [ 1312 'valid': [
1313 'GL_MOUSE_POSITION_CHROMIUM', 1313 'GL_MOUSE_POSITION_CHROMIUM',
1314 ], 1314 ],
1315 }, 1315 },
1316 'UniformBlockParameter': {
1317 'type': 'GLenum',
1318 'valid': [
1319 'GL_UNIFORM_BLOCK_BINDING',
1320 'GL_UNIFORM_BLOCK_DATA_SIZE',
1321 'GL_UNIFORM_BLOCK_NAME_LENGTH',
1322 'GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS',
1323 'GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES',
1324 'GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER',
1325 'GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER',
1326 ],
1327 'invalid': [
1328 'GL_NEAREST',
1329 ],
1330 },
1316 'VertexAttribType': { 1331 'VertexAttribType': {
1317 'type': 'GLenum', 1332 'type': 'GLenum',
1318 'valid': [ 1333 'valid': [
1319 'GL_BYTE', 1334 'GL_BYTE',
1320 'GL_UNSIGNED_BYTE', 1335 'GL_UNSIGNED_BYTE',
1321 'GL_SHORT', 1336 'GL_SHORT',
1322 'GL_UNSIGNED_SHORT', 1337 'GL_UNSIGNED_SHORT',
1323 # 'GL_FIXED', // This is not available on Desktop GL. 1338 # 'GL_FIXED', // This is not available on Desktop GL.
1324 'GL_FLOAT', 1339 'GL_FLOAT',
1325 ], 1340 ],
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 'data_transfer_methods': ['shm'], 2042 'data_transfer_methods': ['shm'],
2028 'cmd_args': 2043 'cmd_args':
2029 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' 2044 'GLidProgram program, GLuint index, uint32_t name_bucket_id, '
2030 'void* result', 2045 'void* result',
2031 'result': [ 2046 'result': [
2032 'int32_t success', 2047 'int32_t success',
2033 'int32_t size', 2048 'int32_t size',
2034 'uint32_t type', 2049 'uint32_t type',
2035 ], 2050 ],
2036 }, 2051 },
2052 'GetActiveUniformBlockiv': {
2053 'type': 'Custom',
2054 'data_transfer_methods': ['shm'],
2055 'result': ['SizedResult<GLint>'],
2056 'unsafe': True,
2057 },
2037 'GetActiveUniformBlockName': { 2058 'GetActiveUniformBlockName': {
2038 'type': 'Custom', 2059 'type': 'Custom',
2039 'data_transfer_methods': ['shm'], 2060 'data_transfer_methods': ['shm'],
2040 'cmd_args': 2061 'cmd_args':
2041 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' 2062 'GLidProgram program, GLuint index, uint32_t name_bucket_id, '
2042 'void* result', 2063 'void* result',
2043 'result': ['int32_t'], 2064 'result': ['int32_t'],
2044 'unsafe': True, 2065 'unsafe': True,
2045 }, 2066 },
2046 'GetAttachedShaders': { 2067 'GetAttachedShaders': {
(...skipping 7991 matching lines...) Expand 10 before | Expand all | Expand 10 after
10038 Format(gen.generated_cpp_filenames) 10059 Format(gen.generated_cpp_filenames)
10039 10060
10040 if gen.errors > 0: 10061 if gen.errors > 0:
10041 print "%d errors" % gen.errors 10062 print "%d errors" % gen.errors
10042 return 1 10063 return 1
10043 return 0 10064 return 0
10044 10065
10045 10066
10046 if __name__ == '__main__': 10067 if __name__ == '__main__':
10047 sys.exit(main(sys.argv[1:])) 10068 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