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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 'GL_FASTEST', | 580 'GL_FASTEST', |
581 'GL_NICEST', | 581 'GL_NICEST', |
582 'GL_DONT_CARE', | 582 'GL_DONT_CARE', |
583 ], | 583 ], |
584 }, | 584 }, |
585 'PixelStore': { | 585 'PixelStore': { |
586 'type': 'GLenum', | 586 'type': 'GLenum', |
587 'valid': [ | 587 'valid': [ |
588 'GL_PACK_ALIGNMENT', | 588 'GL_PACK_ALIGNMENT', |
589 'GL_UNPACK_ALIGNMENT', | 589 'GL_UNPACK_ALIGNMENT', |
590 'GL_UNPACK_FLIP_Y_CHROMIUM', | |
591 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM', | |
592 ], | 590 ], |
593 'invalid': [ | 591 'invalid': [ |
594 'GL_PACK_SWAP_BYTES', | 592 'GL_PACK_SWAP_BYTES', |
595 'GL_UNPACK_SWAP_BYTES', | 593 'GL_UNPACK_SWAP_BYTES', |
596 ], | 594 ], |
597 }, | 595 }, |
598 'PixelStoreAlignment': { | 596 'PixelStoreAlignment': { |
599 'type': 'GLint', | 597 'type': 'GLint', |
600 'valid': [ | 598 'valid': [ |
601 '1', | 599 '1', |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1505 'count': 4, | 1503 'count': 4, |
1506 'decoder_func': 'DoVertexAttrib4fv', | 1504 'decoder_func': 'DoVertexAttrib4fv', |
1507 }, | 1505 }, |
1508 'VertexAttribPointer': { | 1506 'VertexAttribPointer': { |
1509 'type': 'Manual', | 1507 'type': 'Manual', |
1510 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' | 1508 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' |
1511 'GLenumVertexAttribType type, GLboolean normalized, ' | 1509 'GLenumVertexAttribType type, GLboolean normalized, ' |
1512 'GLsizei stride, GLuint offset', | 1510 'GLsizei stride, GLuint offset', |
1513 'client_test': False, | 1511 'client_test': False, |
1514 }, | 1512 }, |
1515 'Viewport': { | |
1516 'decoder_func': 'DoViewport', | |
1517 }, | |
1518 'ResizeCHROMIUM': { | 1513 'ResizeCHROMIUM': { |
1519 'type': 'Custom', | 1514 'type': 'Custom', |
1520 'impl_func': False, | 1515 'impl_func': False, |
1521 'unit_test': False, | 1516 'unit_test': False, |
1522 'extension': True, | 1517 'extension': True, |
1523 'chromium': True, | 1518 'chromium': True, |
1524 }, | 1519 }, |
1525 'GetRequestableExtensionsCHROMIUM': { | 1520 'GetRequestableExtensionsCHROMIUM': { |
1526 'type': 'Custom', | 1521 'type': 'Custom', |
1527 'impl_func': False, | 1522 'impl_func': False, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1562 'expectation': False, | 1557 'expectation': False, |
1563 'extension': True, | 1558 'extension': True, |
1564 'chromium': True, | 1559 'chromium': True, |
1565 }, | 1560 }, |
1566 'TexImageIOSurface2DCHROMIUM': { | 1561 'TexImageIOSurface2DCHROMIUM': { |
1567 'decoder_func': 'DoTexImageIOSurface2DCHROMIUM', | 1562 'decoder_func': 'DoTexImageIOSurface2DCHROMIUM', |
1568 'unit_test': False, | 1563 'unit_test': False, |
1569 'extension': True, | 1564 'extension': True, |
1570 'chromium': True, | 1565 'chromium': True, |
1571 }, | 1566 }, |
1572 'CopyTextureCHROMIUM': { | |
1573 'decoder_func': 'DoCopyTextureCHROMIUM', | |
1574 'unit_test': False, | |
1575 'extension': True, | |
1576 'chromium': True, | |
1577 }, | |
1578 'TexStorage2DEXT': { | 1567 'TexStorage2DEXT': { |
1579 'unit_test': False, | 1568 'unit_test': False, |
1580 'extension': True, | 1569 'extension': True, |
1581 'decoder_func': 'DoTexStorage2DEXT', | 1570 'decoder_func': 'DoTexStorage2DEXT', |
1582 }, | 1571 }, |
1583 'DrawArraysInstancedANGLE': { | 1572 'DrawArraysInstancedANGLE': { |
1584 'type': 'Manual', | 1573 'type': 'Manual', |
1585 'cmd_args': 'GLenumDrawMode mode, GLint first, GLsizei count, ' | 1574 'cmd_args': 'GLenumDrawMode mode, GLint first, GLsizei count, ' |
1586 'GLsizei primcount', | 1575 'GLsizei primcount', |
1587 'extension': True, | 1576 'extension': True, |
(...skipping 4630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6218 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6207 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
6219 | 6208 |
6220 if gen.errors > 0: | 6209 if gen.errors > 0: |
6221 print "%d errors" % gen.errors | 6210 print "%d errors" % gen.errors |
6222 return 1 | 6211 return 1 |
6223 return 0 | 6212 return 0 |
6224 | 6213 |
6225 | 6214 |
6226 if __name__ == '__main__': | 6215 if __name__ == '__main__': |
6227 sys.exit(main(sys.argv[1:])) | 6216 sys.exit(main(sys.argv[1:])) |
OLD | NEW |