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 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1881 'GL_LUMINANCE32F_EXT', | 1881 'GL_LUMINANCE32F_EXT', |
1882 'GL_LUMINANCE_ALPHA32F_EXT', | 1882 'GL_LUMINANCE_ALPHA32F_EXT', |
1883 ], | 1883 ], |
1884 }, | 1884 }, |
1885 'ImageInternalFormat': { | 1885 'ImageInternalFormat': { |
1886 'type': 'GLenum', | 1886 'type': 'GLenum', |
1887 'valid': [ | 1887 'valid': [ |
1888 'GL_RGB', | 1888 'GL_RGB', |
1889 'GL_RGB_YUV_420_CHROMIUM', | 1889 'GL_RGB_YUV_420_CHROMIUM', |
1890 'GL_RGB_YCBCR_422_CHROMIUM', | 1890 'GL_RGB_YCBCR_422_CHROMIUM', |
| 1891 'GL_RGB_YCBCR_420V_CHROMIUM', |
1891 'GL_RGBA', | 1892 'GL_RGBA', |
1892 ], | 1893 ], |
1893 }, | 1894 }, |
1894 'ImageUsage': { | 1895 'ImageUsage': { |
1895 'type': 'GLenum', | 1896 'type': 'GLenum', |
1896 'valid': [ | 1897 'valid': [ |
1897 'GL_READ_WRITE_CHROMIUM', | 1898 'GL_READ_WRITE_CHROMIUM', |
1898 ], | 1899 ], |
1899 }, | 1900 }, |
1900 'ValueBufferTarget': { | 1901 'ValueBufferTarget': { |
(...skipping 9188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11089 Format(gen.generated_cpp_filenames) | 11090 Format(gen.generated_cpp_filenames) |
11090 | 11091 |
11091 if gen.errors > 0: | 11092 if gen.errors > 0: |
11092 print "%d errors" % gen.errors | 11093 print "%d errors" % gen.errors |
11093 return 1 | 11094 return 1 |
11094 return 0 | 11095 return 0 |
11095 | 11096 |
11096 | 11097 |
11097 if __name__ == '__main__': | 11098 if __name__ == '__main__': |
11098 sys.exit(main(sys.argv[1:])) | 11099 sys.exit(main(sys.argv[1:])) |
OLD | NEW |