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 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 'GL_R11F_G11F_B10F', | 2015 'GL_R11F_G11F_B10F', |
2016 'GL_RGB9_E5', | 2016 'GL_RGB9_E5', |
2017 'GL_RGB16F', | 2017 'GL_RGB16F', |
2018 'GL_RGBA8', | 2018 'GL_RGBA8', |
2019 'GL_SRGB8_ALPHA8', | 2019 'GL_SRGB8_ALPHA8', |
2020 'GL_RGBA8_SNORM', | 2020 'GL_RGBA8_SNORM', |
2021 'GL_RGB5_A1', | 2021 'GL_RGB5_A1', |
2022 'GL_RGBA4', | 2022 'GL_RGBA4', |
2023 'GL_RGB10_A2', | 2023 'GL_RGB10_A2', |
2024 'GL_RGBA16F', | 2024 'GL_RGBA16F', |
| 2025 'GL_RGB_YUV_420_CHROMIUM', |
| 2026 'GL_RGB_YCBCR_422_CHROMIUM', |
| 2027 'GL_RGB_YCBCR_420V_CHROMIUM', |
2025 ], | 2028 ], |
2026 }, | 2029 }, |
2027 'TextureInternalFormatStorage': { | 2030 'TextureInternalFormatStorage': { |
2028 'type': 'GLenum', | 2031 'type': 'GLenum', |
2029 'valid': [ | 2032 'valid': [ |
2030 'GL_RGB565', | 2033 'GL_RGB565', |
2031 'GL_RGBA4', | 2034 'GL_RGBA4', |
2032 'GL_RGB5_A1', | 2035 'GL_RGB5_A1', |
2033 'GL_ALPHA8_EXT', | 2036 'GL_ALPHA8_EXT', |
2034 'GL_LUMINANCE8_EXT', | 2037 'GL_LUMINANCE8_EXT', |
(...skipping 9516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11551 Format(gen.generated_cpp_filenames) | 11554 Format(gen.generated_cpp_filenames) |
11552 | 11555 |
11553 if gen.errors > 0: | 11556 if gen.errors > 0: |
11554 print "%d errors" % gen.errors | 11557 print "%d errors" % gen.errors |
11555 return 1 | 11558 return 1 |
11556 return 0 | 11559 return 0 |
11557 | 11560 |
11558 | 11561 |
11559 if __name__ == '__main__': | 11562 if __name__ == '__main__': |
11560 sys.exit(main(sys.argv[1:])) | 11563 sys.exit(main(sys.argv[1:])) |
OLD | NEW |