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 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1890 'GL_LUMINANCE32F_EXT', | 1890 'GL_LUMINANCE32F_EXT', |
1891 'GL_LUMINANCE_ALPHA32F_EXT', | 1891 'GL_LUMINANCE_ALPHA32F_EXT', |
1892 ], | 1892 ], |
1893 }, | 1893 }, |
1894 'ImageInternalFormat': { | 1894 'ImageInternalFormat': { |
1895 'type': 'GLenum', | 1895 'type': 'GLenum', |
1896 'valid': [ | 1896 'valid': [ |
1897 'GL_RGB', | 1897 'GL_RGB', |
1898 'GL_RGB_YUV_420_CHROMIUM', | 1898 'GL_RGB_YUV_420_CHROMIUM', |
1899 'GL_RGB_YCBCR_422_CHROMIUM', | 1899 'GL_RGB_YCBCR_422_CHROMIUM', |
| 1900 'GL_RGB_YCBCR_420V_CHROMIUM', |
1900 'GL_RGBA', | 1901 'GL_RGBA', |
1901 ], | 1902 ], |
1902 }, | 1903 }, |
1903 'ImageUsage': { | 1904 'ImageUsage': { |
1904 'type': 'GLenum', | 1905 'type': 'GLenum', |
1905 'valid': [ | 1906 'valid': [ |
1906 'GL_READ_WRITE_CHROMIUM', | 1907 'GL_READ_WRITE_CHROMIUM', |
1907 ], | 1908 ], |
1908 }, | 1909 }, |
1909 'ValueBufferTarget': { | 1910 'ValueBufferTarget': { |
(...skipping 9202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11112 Format(gen.generated_cpp_filenames) | 11113 Format(gen.generated_cpp_filenames) |
11113 | 11114 |
11114 if gen.errors > 0: | 11115 if gen.errors > 0: |
11115 print "%d errors" % gen.errors | 11116 print "%d errors" % gen.errors |
11116 return 1 | 11117 return 1 |
11117 return 0 | 11118 return 0 |
11118 | 11119 |
11119 | 11120 |
11120 if __name__ == '__main__': | 11121 if __name__ == '__main__': |
11121 sys.exit(main(sys.argv[1:])) | 11122 sys.exit(main(sys.argv[1:])) |
OLD | NEW |