OLD | NEW |
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 Loading... |
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 'UniformParameter': { |
| 1317 'type': 'GLenum', |
| 1318 'valid': [ |
| 1319 'GL_UNIFORM_SIZE', |
| 1320 'GL_UNIFORM_TYPE', |
| 1321 'GL_UNIFORM_NAME_LENGTH', |
| 1322 'GL_UNIFORM_BLOCK_INDEX', |
| 1323 'GL_UNIFORM_OFFSET', |
| 1324 'GL_UNIFORM_ARRAY_STRIDE', |
| 1325 'GL_UNIFORM_MATRIX_STRIDE', |
| 1326 'GL_UNIFORM_IS_ROW_MAJOR', |
| 1327 ], |
| 1328 'invalid': [ |
| 1329 'GL_UNIFORM_BLOCK_NAME_LENGTH', |
| 1330 ], |
| 1331 }, |
1316 'UniformBlockParameter': { | 1332 'UniformBlockParameter': { |
1317 'type': 'GLenum', | 1333 'type': 'GLenum', |
1318 'valid': [ | 1334 'valid': [ |
1319 'GL_UNIFORM_BLOCK_BINDING', | 1335 'GL_UNIFORM_BLOCK_BINDING', |
1320 'GL_UNIFORM_BLOCK_DATA_SIZE', | 1336 'GL_UNIFORM_BLOCK_DATA_SIZE', |
1321 'GL_UNIFORM_BLOCK_NAME_LENGTH', | 1337 'GL_UNIFORM_BLOCK_NAME_LENGTH', |
1322 'GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS', | 1338 'GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS', |
1323 'GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES', | 1339 'GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES', |
1324 'GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER', | 1340 'GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER', |
1325 'GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER', | 1341 'GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER', |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2057 }, | 2073 }, |
2058 'GetActiveUniformBlockName': { | 2074 'GetActiveUniformBlockName': { |
2059 'type': 'Custom', | 2075 'type': 'Custom', |
2060 'data_transfer_methods': ['shm'], | 2076 'data_transfer_methods': ['shm'], |
2061 'cmd_args': | 2077 'cmd_args': |
2062 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' | 2078 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' |
2063 'void* result', | 2079 'void* result', |
2064 'result': ['int32_t'], | 2080 'result': ['int32_t'], |
2065 'unsafe': True, | 2081 'unsafe': True, |
2066 }, | 2082 }, |
| 2083 'GetActiveUniformsiv': { |
| 2084 'type': 'Custom', |
| 2085 'data_transfer_methods': ['shm'], |
| 2086 'cmd_args': |
| 2087 'GLidProgram program, uint32_t indices_bucket_id, GLenum pname, ' |
| 2088 'GLint* params', |
| 2089 'result': ['SizedResult<GLint>'], |
| 2090 'unsafe': True, |
| 2091 }, |
2067 'GetAttachedShaders': { | 2092 'GetAttachedShaders': { |
2068 'type': 'Custom', | 2093 'type': 'Custom', |
2069 'data_transfer_methods': ['shm'], | 2094 'data_transfer_methods': ['shm'], |
2070 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size', | 2095 'cmd_args': 'GLidProgram program, void* result, uint32_t result_size', |
2071 'result': ['SizedResult<GLuint>'], | 2096 'result': ['SizedResult<GLuint>'], |
2072 }, | 2097 }, |
2073 'GetAttribLocation': { | 2098 'GetAttribLocation': { |
2074 'type': 'Custom', | 2099 'type': 'Custom', |
2075 'data_transfer_methods': ['shm'], | 2100 'data_transfer_methods': ['shm'], |
2076 'cmd_args': | 2101 'cmd_args': |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 'type': 'Custom', | 2273 'type': 'Custom', |
2249 'expectation': False, | 2274 'expectation': False, |
2250 'impl_func': False, | 2275 'impl_func': False, |
2251 'extension': True, | 2276 'extension': True, |
2252 'chromium': True, | 2277 'chromium': True, |
2253 'client_test': False, | 2278 'client_test': False, |
2254 'cmd_args': 'GLidProgram program, uint32_t bucket_id', | 2279 'cmd_args': 'GLidProgram program, uint32_t bucket_id', |
2255 'result': ['uint32_t'], | 2280 'result': ['uint32_t'], |
2256 'unsafe': True, | 2281 'unsafe': True, |
2257 }, | 2282 }, |
| 2283 'GetUniformsES3CHROMIUM': { |
| 2284 'type': 'Custom', |
| 2285 'expectation': False, |
| 2286 'impl_func': False, |
| 2287 'extension': True, |
| 2288 'chromium': True, |
| 2289 'client_test': False, |
| 2290 'cmd_args': 'GLidProgram program, uint32_t bucket_id', |
| 2291 'result': ['uint32_t'], |
| 2292 'unsafe': True, |
| 2293 }, |
2258 'GetTransformFeedbackVarying': { | 2294 'GetTransformFeedbackVarying': { |
2259 'type': 'Custom', | 2295 'type': 'Custom', |
2260 'data_transfer_methods': ['shm'], | 2296 'data_transfer_methods': ['shm'], |
2261 'cmd_args': | 2297 'cmd_args': |
2262 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' | 2298 'GLidProgram program, GLuint index, uint32_t name_bucket_id, ' |
2263 'void* result', | 2299 'void* result', |
2264 'result': [ | 2300 'result': [ |
2265 'int32_t success', | 2301 'int32_t success', |
2266 'int32_t size', | 2302 'int32_t size', |
2267 'uint32_t type', | 2303 'uint32_t type', |
(...skipping 7828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10096 Format(gen.generated_cpp_filenames) | 10132 Format(gen.generated_cpp_filenames) |
10097 | 10133 |
10098 if gen.errors > 0: | 10134 if gen.errors > 0: |
10099 print "%d errors" % gen.errors | 10135 print "%d errors" % gen.errors |
10100 return 1 | 10136 return 1 |
10101 return 0 | 10137 return 0 |
10102 | 10138 |
10103 | 10139 |
10104 if __name__ == '__main__': | 10140 if __name__ == '__main__': |
10105 sys.exit(main(sys.argv[1:])) | 10141 sys.exit(main(sys.argv[1:])) |
OLD | NEW |