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

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

Issue 1674573002: UniformMatrix* supports transpose is true in ES3 semantic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2226 '1', 2226 '1',
2227 '2', 2227 '2',
2228 '3', 2228 '3',
2229 '4', 2229 '4',
2230 ], 2230 ],
2231 'invalid': [ 2231 'invalid': [
2232 '0', 2232 '0',
2233 '5', 2233 '5',
2234 ], 2234 ],
2235 }, 2235 },
2236 'FalseOnly': {
2237 'type': 'GLboolean',
2238 'is_complete': True,
2239 'valid': [
2240 'false',
2241 ],
2242 'invalid': [
2243 'true',
2244 ],
2245 },
2246 'ResetStatus': { 2236 'ResetStatus': {
2247 'type': 'GLenum', 2237 'type': 'GLenum',
2248 'is_complete': True, 2238 'is_complete': True,
2249 'valid': [ 2239 'valid': [
2250 'GL_GUILTY_CONTEXT_RESET_ARB', 2240 'GL_GUILTY_CONTEXT_RESET_ARB',
2251 'GL_INNOCENT_CONTEXT_RESET_ARB', 2241 'GL_INNOCENT_CONTEXT_RESET_ARB',
2252 'GL_UNKNOWN_CONTEXT_RESET_ARB', 2242 'GL_UNKNOWN_CONTEXT_RESET_ARB',
2253 ], 2243 ],
2254 }, 2244 },
2255 'SyncCondition': { 2245 'SyncCondition': {
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after
3854 'type': 'PUTn', 3844 'type': 'PUTn',
3855 'count': 4, 3845 'count': 4,
3856 'decoder_func': 'DoUniform4uiv', 3846 'decoder_func': 'DoUniform4uiv',
3857 'unit_test': False, 3847 'unit_test': False,
3858 'unsafe': True, 3848 'unsafe': True,
3859 }, 3849 },
3860 'UniformMatrix2fv': { 3850 'UniformMatrix2fv': {
3861 'type': 'PUTn', 3851 'type': 'PUTn',
3862 'count': 4, 3852 'count': 4,
3863 'decoder_func': 'DoUniformMatrix2fv', 3853 'decoder_func': 'DoUniformMatrix2fv',
3854 'unit_test': False,
3864 }, 3855 },
3865 'UniformMatrix2x3fv': { 3856 'UniformMatrix2x3fv': {
3866 'type': 'PUTn', 3857 'type': 'PUTn',
3867 'count': 6, 3858 'count': 6,
3868 'decoder_func': 'DoUniformMatrix2x3fv', 3859 'decoder_func': 'DoUniformMatrix2x3fv',
3869 'unsafe': True, 3860 'unsafe': True,
3870 }, 3861 },
3871 'UniformMatrix2x4fv': { 3862 'UniformMatrix2x4fv': {
3872 'type': 'PUTn', 3863 'type': 'PUTn',
3873 'count': 8, 3864 'count': 8,
3874 'decoder_func': 'DoUniformMatrix2x4fv', 3865 'decoder_func': 'DoUniformMatrix2x4fv',
3875 'unsafe': True, 3866 'unsafe': True,
3876 }, 3867 },
3877 'UniformMatrix3fv': { 3868 'UniformMatrix3fv': {
3878 'type': 'PUTn', 3869 'type': 'PUTn',
3879 'count': 9, 3870 'count': 9,
3880 'decoder_func': 'DoUniformMatrix3fv', 3871 'decoder_func': 'DoUniformMatrix3fv',
3872 'unit_test': False,
3881 }, 3873 },
3882 'UniformMatrix3x2fv': { 3874 'UniformMatrix3x2fv': {
3883 'type': 'PUTn', 3875 'type': 'PUTn',
3884 'count': 6, 3876 'count': 6,
3885 'decoder_func': 'DoUniformMatrix3x2fv', 3877 'decoder_func': 'DoUniformMatrix3x2fv',
3886 'unsafe': True, 3878 'unsafe': True,
3887 }, 3879 },
3888 'UniformMatrix3x4fv': { 3880 'UniformMatrix3x4fv': {
3889 'type': 'PUTn', 3881 'type': 'PUTn',
3890 'count': 12, 3882 'count': 12,
3891 'decoder_func': 'DoUniformMatrix3x4fv', 3883 'decoder_func': 'DoUniformMatrix3x4fv',
3892 'unsafe': True, 3884 'unsafe': True,
3893 }, 3885 },
3894 'UniformMatrix4fv': { 3886 'UniformMatrix4fv': {
3895 'type': 'PUTn', 3887 'type': 'PUTn',
3896 'count': 16, 3888 'count': 16,
3897 'decoder_func': 'DoUniformMatrix4fv', 3889 'decoder_func': 'DoUniformMatrix4fv',
3890 'unit_test': False,
3898 }, 3891 },
3899 'UniformMatrix4x2fv': { 3892 'UniformMatrix4x2fv': {
3900 'type': 'PUTn', 3893 'type': 'PUTn',
3901 'count': 8, 3894 'count': 8,
3902 'decoder_func': 'DoUniformMatrix4x2fv', 3895 'decoder_func': 'DoUniformMatrix4x2fv',
3903 'unsafe': True, 3896 'unsafe': True,
3904 }, 3897 },
3905 'UniformMatrix4x3fv': { 3898 'UniformMatrix4x3fv': {
3906 'type': 'PUTn', 3899 'type': 'PUTn',
3907 'count': 12, 3900 'count': 12,
(...skipping 7643 matching lines...) Expand 10 before | Expand all | Expand 10 after
11551 Format(gen.generated_cpp_filenames) 11544 Format(gen.generated_cpp_filenames)
11552 11545
11553 if gen.errors > 0: 11546 if gen.errors > 0:
11554 print "%d errors" % gen.errors 11547 print "%d errors" % gen.errors
11555 return 1 11548 return 1
11556 return 0 11549 return 0
11557 11550
11558 11551
11559 if __name__ == '__main__': 11552 if __name__ == '__main__':
11560 sys.exit(main(sys.argv[1:])) 11553 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698