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 os | 8 import os |
9 import os.path | 9 import os.path |
10 import sys | 10 import sys |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 'GL_VIEWPORT', | 206 'GL_VIEWPORT', |
207 ], | 207 ], |
208 'invalid': [ | 208 'invalid': [ |
209 'GL_FOG_HINT', | 209 'GL_FOG_HINT', |
210 ], | 210 ], |
211 }, | 211 }, |
212 'GetTexParamTarget': { | 212 'GetTexParamTarget': { |
213 'type': 'GLenum', | 213 'type': 'GLenum', |
214 'valid': [ | 214 'valid': [ |
215 'GL_TEXTURE_2D', | 215 'GL_TEXTURE_2D', |
216 'GL_TEXTURE_CUBE_MAP_POSITIVE_X', | 216 'GL_TEXTURE_CUBE_MAP', |
217 'GL_TEXTURE_CUBE_MAP_NEGATIVE_X', | |
218 'GL_TEXTURE_CUBE_MAP_POSITIVE_Y', | |
219 'GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', | |
220 'GL_TEXTURE_CUBE_MAP_POSITIVE_Z', | |
221 'GL_TEXTURE_CUBE_MAP_NEGATIVE_Z', | |
222 ], | 217 ], |
223 'invalid': [ | 218 'invalid': [ |
224 'GL_PROXY_TEXTURE_CUBE_MAP', | 219 'GL_PROXY_TEXTURE_CUBE_MAP', |
225 ] | 220 ] |
226 }, | 221 }, |
227 'TextureTarget': { | 222 'TextureTarget': { |
228 'type': 'GLenum', | 223 'type': 'GLenum', |
229 'valid': [ | 224 'valid': [ |
230 'GL_TEXTURE_2D', | 225 'GL_TEXTURE_2D', |
231 'GL_TEXTURE_CUBE_MAP_POSITIVE_X', | 226 'GL_TEXTURE_CUBE_MAP_POSITIVE_X', |
(...skipping 6041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6273 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6268 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
6274 | 6269 |
6275 if gen.errors > 0: | 6270 if gen.errors > 0: |
6276 print "%d errors" % gen.errors | 6271 print "%d errors" % gen.errors |
6277 return 1 | 6272 return 1 |
6278 return 0 | 6273 return 0 |
6279 | 6274 |
6280 | 6275 |
6281 if __name__ == '__main__': | 6276 if __name__ == '__main__': |
6282 sys.exit(main(sys.argv[1:])) | 6277 sys.exit(main(sys.argv[1:])) |
OLD | NEW |