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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
596 'GL_FRAMEBUFFER', | 596 'GL_FRAMEBUFFER', |
597 ], | 597 ], |
598 'valid_es3': [ | 598 'valid_es3': [ |
599 'GL_DRAW_FRAMEBUFFER' , | 599 'GL_DRAW_FRAMEBUFFER' , |
600 'GL_READ_FRAMEBUFFER' , | 600 'GL_READ_FRAMEBUFFER' , |
601 ], | 601 ], |
602 'invalid': [ | 602 'invalid': [ |
603 'GL_RENDERBUFFER', | 603 'GL_RENDERBUFFER', |
604 ], | 604 ], |
605 }, | 605 }, |
606 'InvalidateFrameBufferTarget': { | |
Zhenyao Mo
2015/11/13 03:18:11
You should not remove this. For invalidateFramebu
Ken Russell (switch to Gerrit)
2015/11/17 23:06:37
Actually it looks like this was changed in ES spec
yunchao
2015/11/19 01:42:59
Agreed.
| |
607 'type': 'GLenum', | |
608 'valid': [ | |
609 'GL_FRAMEBUFFER', | |
610 ], | |
611 'invalid': [ | |
612 'GL_DRAW_FRAMEBUFFER' , | |
613 'GL_READ_FRAMEBUFFER' , | |
614 ], | |
615 }, | |
616 'RenderBufferTarget': { | 606 'RenderBufferTarget': { |
617 'type': 'GLenum', | 607 'type': 'GLenum', |
618 'valid': [ | 608 'valid': [ |
619 'GL_RENDERBUFFER', | 609 'GL_RENDERBUFFER', |
620 ], | 610 ], |
621 'invalid': [ | 611 'invalid': [ |
622 'GL_FRAMEBUFFER', | 612 'GL_FRAMEBUFFER', |
623 ], | 613 ], |
624 }, | 614 }, |
625 'BufferTarget': { | 615 'BufferTarget': { |
(...skipping 10488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11114 Format(gen.generated_cpp_filenames) | 11104 Format(gen.generated_cpp_filenames) |
11115 | 11105 |
11116 if gen.errors > 0: | 11106 if gen.errors > 0: |
11117 print "%d errors" % gen.errors | 11107 print "%d errors" % gen.errors |
11118 return 1 | 11108 return 1 |
11119 return 0 | 11109 return 0 |
11120 | 11110 |
11121 | 11111 |
11122 if __name__ == '__main__': | 11112 if __name__ == '__main__': |
11123 sys.exit(main(sys.argv[1:])) | 11113 sys.exit(main(sys.argv[1:])) |
OLD | NEW |