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

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

Issue 1688163002: command_buffer: Implement glGetStringi for GL ES 3.0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@command-buffer-generator-int-types
Patch Set: eh3 Created 4 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 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 'type': 'GLenum', 1445 'type': 'GLenum',
1446 'is_complete': True, 1446 'is_complete': True,
1447 'valid': [ 1447 'valid': [
1448 'GL_VENDOR', 1448 'GL_VENDOR',
1449 'GL_RENDERER', 1449 'GL_RENDERER',
1450 'GL_VERSION', 1450 'GL_VERSION',
1451 'GL_SHADING_LANGUAGE_VERSION', 1451 'GL_SHADING_LANGUAGE_VERSION',
1452 'GL_EXTENSIONS', 1452 'GL_EXTENSIONS',
1453 ], 1453 ],
1454 }, 1454 },
1455 'IndexedStringType': {
1456 'type': 'GLenum',
1457 'is_complete': True,
1458 'valid': [
1459 'GL_EXTENSIONS',
1460 ],
1461 },
1462
1455 'TextureParameter': { 1463 'TextureParameter': {
1456 'type': 'GLenum', 1464 'type': 'GLenum',
1457 'valid': [ 1465 'valid': [
1458 'GL_TEXTURE_MAG_FILTER', 1466 'GL_TEXTURE_MAG_FILTER',
1459 'GL_TEXTURE_MIN_FILTER', 1467 'GL_TEXTURE_MIN_FILTER',
1460 'GL_TEXTURE_WRAP_S', 1468 'GL_TEXTURE_WRAP_S',
1461 'GL_TEXTURE_WRAP_T', 1469 'GL_TEXTURE_WRAP_T',
1462 ], 1470 ],
1463 'valid_es3': [ 1471 'valid_es3': [
1464 'GL_TEXTURE_BASE_LEVEL', 1472 'GL_TEXTURE_BASE_LEVEL',
(...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after
3226 'get_len_func': 'DoGetShaderiv', 3234 'get_len_func': 'DoGetShaderiv',
3227 'get_len_enum': 'GL_SHADER_SOURCE_LENGTH', 3235 'get_len_enum': 'GL_SHADER_SOURCE_LENGTH',
3228 'unit_test': False, 3236 'unit_test': False,
3229 'client_test': False, 3237 'client_test': False,
3230 }, 3238 },
3231 'GetString': { 3239 'GetString': {
3232 'type': 'Custom', 3240 'type': 'Custom',
3233 'client_test': False, 3241 'client_test': False,
3234 'cmd_args': 'GLenumStringType name, uint32_t bucket_id', 3242 'cmd_args': 'GLenumStringType name, uint32_t bucket_id',
3235 }, 3243 },
3244 'GetStringi': {
3245 'type': 'Custom',
3246 'client_test': False,
3247 'gen_cmd': False,
3248 'unsafe': True,
3249 },
3236 'GetSynciv': { 3250 'GetSynciv': {
3237 'type': 'GETn', 3251 'type': 'GETn',
3238 'cmd_args': 'GLuint sync, GLenumSyncParameter pname, void* values', 3252 'cmd_args': 'GLuint sync, GLenumSyncParameter pname, void* values',
3239 'result': ['SizedResult<GLint>'], 3253 'result': ['SizedResult<GLint>'],
3240 'id_mapping': ['Sync'], 3254 'id_mapping': ['Sync'],
3241 'unsafe': True, 3255 'unsafe': True,
3242 }, 3256 },
3243 'GetTexParameterfv': { 3257 'GetTexParameterfv': {
3244 'type': 'GETn', 3258 'type': 'GETn',
3245 'decoder_func': 'DoGetTexParameterfv', 3259 'decoder_func': 'DoGetTexParameterfv',
(...skipping 8283 matching lines...) Expand 10 before | Expand all | Expand 10 after
11529 Format(gen.generated_cpp_filenames) 11543 Format(gen.generated_cpp_filenames)
11530 11544
11531 if gen.errors > 0: 11545 if gen.errors > 0:
11532 print "%d errors" % gen.errors 11546 print "%d errors" % gen.errors
11533 return 1 11547 return 1
11534 return 0 11548 return 0
11535 11549
11536 11550
11537 if __name__ == '__main__': 11551 if __name__ == '__main__':
11538 sys.exit(main(sys.argv[1:])) 11552 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698