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

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

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: add test Created 3 years, 6 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/gl2extchromium.h ('k') | gpu/command_buffer/common/gles2_cmd_utils_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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 ], 1045 ],
1046 'valid_es3': [ 1046 'valid_es3': [
1047 'GL_TEXTURE_3D', 1047 'GL_TEXTURE_3D',
1048 'GL_TEXTURE_2D_ARRAY', 1048 'GL_TEXTURE_2D_ARRAY',
1049 ], 1049 ],
1050 'invalid': [ 1050 'invalid': [
1051 'GL_TEXTURE_1D', 1051 'GL_TEXTURE_1D',
1052 'GL_TEXTURE_3D', 1052 'GL_TEXTURE_3D',
1053 ], 1053 ],
1054 }, 1054 },
1055 'TextureBufferUsage': {
1056 'type': 'GLenum',
1057 'is_complete': True,
1058 'valid': [
1059 'GL_NONE',
1060 'GL_TEXTURE_BUFFER_SCANOUT_CHROMIUM',
1061 ],
1062 },
1055 'TransformFeedbackBindTarget': { 1063 'TransformFeedbackBindTarget': {
1056 'type': 'GLenum', 1064 'type': 'GLenum',
1057 'valid': [ 1065 'valid': [
1058 'GL_TRANSFORM_FEEDBACK', 1066 'GL_TRANSFORM_FEEDBACK',
1059 ], 1067 ],
1060 'invalid': [ 1068 'invalid': [
1061 'GL_TEXTURE_2D', 1069 'GL_TEXTURE_2D',
1062 ], 1070 ],
1063 }, 1071 },
1064 'TransformFeedbackPrimitiveMode': { 1072 'TransformFeedbackPrimitiveMode': {
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1467 ], 1475 ],
1468 }, 1476 },
1469 1477
1470 'TextureParameter': { 1478 'TextureParameter': {
1471 'type': 'GLenum', 1479 'type': 'GLenum',
1472 'valid': [ 1480 'valid': [
1473 'GL_TEXTURE_MAG_FILTER', 1481 'GL_TEXTURE_MAG_FILTER',
1474 'GL_TEXTURE_MIN_FILTER', 1482 'GL_TEXTURE_MIN_FILTER',
1475 'GL_TEXTURE_WRAP_S', 1483 'GL_TEXTURE_WRAP_S',
1476 'GL_TEXTURE_WRAP_T', 1484 'GL_TEXTURE_WRAP_T',
1485 'GL_TEXTURE_BUFFER_USAGE_CHROMIUM',
Zhenyao Mo 2017/06/20 00:14:30 I am not sure this is the right thing to do. I thi
1477 ], 1486 ],
1478 'valid_es3': [ 1487 'valid_es3': [
1479 'GL_TEXTURE_BASE_LEVEL', 1488 'GL_TEXTURE_BASE_LEVEL',
1480 'GL_TEXTURE_COMPARE_FUNC', 1489 'GL_TEXTURE_COMPARE_FUNC',
1481 'GL_TEXTURE_COMPARE_MODE', 1490 'GL_TEXTURE_COMPARE_MODE',
1482 'GL_TEXTURE_IMMUTABLE_FORMAT', 1491 'GL_TEXTURE_IMMUTABLE_FORMAT',
1483 'GL_TEXTURE_IMMUTABLE_LEVELS', 1492 'GL_TEXTURE_IMMUTABLE_LEVELS',
1484 'GL_TEXTURE_MAX_LEVEL', 1493 'GL_TEXTURE_MAX_LEVEL',
1485 'GL_TEXTURE_MAX_LOD', 1494 'GL_TEXTURE_MAX_LOD',
1486 'GL_TEXTURE_MIN_LOD', 1495 'GL_TEXTURE_MIN_LOD',
(...skipping 9818 matching lines...) Expand 10 before | Expand all | Expand 10 after
11305 Format(gen.generated_cpp_filenames) 11314 Format(gen.generated_cpp_filenames)
11306 11315
11307 if gen.errors > 0: 11316 if gen.errors > 0:
11308 print "%d errors" % gen.errors 11317 print "%d errors" % gen.errors
11309 return 1 11318 return 1
11310 return 0 11319 return 0
11311 11320
11312 11321
11313 if __name__ == '__main__': 11322 if __name__ == '__main__':
11314 sys.exit(main(sys.argv[1:])) 11323 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2extchromium.h ('k') | gpu/command_buffer/common/gles2_cmd_utils_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698