| 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 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1926 'GL_DEPTH_COMPONENT24', | 1926 'GL_DEPTH_COMPONENT24', |
| 1927 'GL_DEPTH_COMPONENT32F', | 1927 'GL_DEPTH_COMPONENT32F', |
| 1928 'GL_DEPTH24_STENCIL8', | 1928 'GL_DEPTH24_STENCIL8', |
| 1929 'GL_DEPTH32F_STENCIL8', | 1929 'GL_DEPTH32F_STENCIL8', |
| 1930 ], | 1930 ], |
| 1931 'invalid': [ | 1931 'invalid': [ |
| 1932 'GL_BGRA', | 1932 'GL_BGRA', |
| 1933 'GL_BGR', | 1933 'GL_BGR', |
| 1934 ], | 1934 ], |
| 1935 }, | 1935 }, |
| 1936 'TextureUnsizedInternalFormat': { | |
| 1937 'type': 'GLenum', | |
| 1938 'valid': [ | |
| 1939 'GL_ALPHA', | |
| 1940 'GL_LUMINANCE', | |
| 1941 'GL_LUMINANCE_ALPHA', | |
| 1942 'GL_RGB', | |
| 1943 'GL_RGBA', | |
| 1944 ], | |
| 1945 }, | |
| 1946 'TextureSizedColorRenderableInternalFormat': { | |
| 1947 'type': 'GLenum', | |
| 1948 'valid': [ | |
| 1949 'GL_R8', | |
| 1950 'GL_R8UI', | |
| 1951 'GL_R8I', | |
| 1952 'GL_R16UI', | |
| 1953 'GL_R16I', | |
| 1954 'GL_R32UI', | |
| 1955 'GL_R32I', | |
| 1956 'GL_RG8', | |
| 1957 'GL_RG8UI', | |
| 1958 'GL_RG8I', | |
| 1959 'GL_RG16UI', | |
| 1960 'GL_RG16I', | |
| 1961 'GL_RG32UI', | |
| 1962 'GL_RG32I', | |
| 1963 'GL_RGB8', | |
| 1964 'GL_RGB565', | |
| 1965 'GL_RGBA8', | |
| 1966 'GL_SRGB8_ALPHA8', | |
| 1967 'GL_RGB5_A1', | |
| 1968 'GL_RGBA4', | |
| 1969 'GL_RGB10_A2', | |
| 1970 'GL_RGBA8UI', | |
| 1971 'GL_RGBA8I', | |
| 1972 'GL_RGB10_A2UI', | |
| 1973 'GL_RGBA16UI', | |
| 1974 'GL_RGBA16I', | |
| 1975 'GL_RGBA32UI', | |
| 1976 'GL_RGBA32I', | |
| 1977 ], | |
| 1978 }, | |
| 1979 'TextureSizedTextureFilterableInternalFormat': { | |
| 1980 'type': 'GLenum', | |
| 1981 'valid': [ | |
| 1982 'GL_R8', | |
| 1983 'GL_R8_SNORM', | |
| 1984 'GL_R16F', | |
| 1985 'GL_RG8', | |
| 1986 'GL_RG8_SNORM', | |
| 1987 'GL_RG16F', | |
| 1988 'GL_RGB8', | |
| 1989 'GL_SRGB8', | |
| 1990 'GL_RGB565', | |
| 1991 'GL_RGB8_SNORM', | |
| 1992 'GL_R11F_G11F_B10F', | |
| 1993 'GL_RGB9_E5', | |
| 1994 'GL_RGB16F', | |
| 1995 'GL_RGBA8', | |
| 1996 'GL_SRGB8_ALPHA8', | |
| 1997 'GL_RGBA8_SNORM', | |
| 1998 'GL_RGB5_A1', | |
| 1999 'GL_RGBA4', | |
| 2000 'GL_RGB10_A2', | |
| 2001 'GL_RGBA16F', | |
| 2002 ], | |
| 2003 }, | |
| 2004 'TextureInternalFormatStorage': { | 1936 'TextureInternalFormatStorage': { |
| 2005 'type': 'GLenum', | 1937 'type': 'GLenum', |
| 2006 'valid': [ | 1938 'valid': [ |
| 2007 'GL_RGB565', | 1939 'GL_RGB565', |
| 2008 'GL_RGBA4', | 1940 'GL_RGBA4', |
| 2009 'GL_RGB5_A1', | 1941 'GL_RGB5_A1', |
| 2010 'GL_ALPHA8_EXT', | 1942 'GL_ALPHA8_EXT', |
| 2011 'GL_LUMINANCE8_EXT', | 1943 'GL_LUMINANCE8_EXT', |
| 2012 'GL_LUMINANCE8_ALPHA8_EXT', | 1944 'GL_LUMINANCE8_ALPHA8_EXT', |
| 2013 'GL_RGB8_OES', | 1945 'GL_RGB8_OES', |
| (...skipping 9514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11528 Format(gen.generated_cpp_filenames) | 11460 Format(gen.generated_cpp_filenames) |
| 11529 | 11461 |
| 11530 if gen.errors > 0: | 11462 if gen.errors > 0: |
| 11531 print "%d errors" % gen.errors | 11463 print "%d errors" % gen.errors |
| 11532 return 1 | 11464 return 1 |
| 11533 return 0 | 11465 return 0 |
| 11534 | 11466 |
| 11535 | 11467 |
| 11536 if __name__ == '__main__': | 11468 if __name__ == '__main__': |
| 11537 sys.exit(main(sys.argv[1:])) | 11469 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |