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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 'invalid': [ | 69 'invalid': [ |
70 'GL_LINEAR_MIPMAP_LINEAR', | 70 'GL_LINEAR_MIPMAP_LINEAR', |
71 ], | 71 ], |
72 }, | 72 }, |
73 'FrameBufferTarget': { | 73 'FrameBufferTarget': { |
74 'type': 'GLenum', | 74 'type': 'GLenum', |
75 'valid': [ | 75 'valid': [ |
76 'GL_FRAMEBUFFER', | 76 'GL_FRAMEBUFFER', |
77 ], | 77 ], |
78 'invalid': [ | 78 'invalid': [ |
| 79 'GL_DRAW_FRAMEBUFFER' , |
79 'GL_READ_FRAMEBUFFER' , | 80 'GL_READ_FRAMEBUFFER' , |
80 ], | 81 ], |
81 }, | 82 }, |
82 'RenderBufferTarget': { | 83 'RenderBufferTarget': { |
83 'type': 'GLenum', | 84 'type': 'GLenum', |
84 'valid': [ | 85 'valid': [ |
85 'GL_RENDERBUFFER', | 86 'GL_RENDERBUFFER', |
86 ], | 87 ], |
87 'invalid': [ | 88 'invalid': [ |
88 'GL_FRAMEBUFFER', | 89 'GL_FRAMEBUFFER', |
(...skipping 6248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6337 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6338 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
6338 | 6339 |
6339 if gen.errors > 0: | 6340 if gen.errors > 0: |
6340 print "%d errors" % gen.errors | 6341 print "%d errors" % gen.errors |
6341 return 1 | 6342 return 1 |
6342 return 0 | 6343 return 0 |
6343 | 6344 |
6344 | 6345 |
6345 if __name__ == '__main__': | 6346 if __name__ == '__main__': |
6346 sys.exit(main(sys.argv[1:])) | 6347 sys.exit(main(sys.argv[1:])) |
OLD | NEW |