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 GL/GLES extension wrangler.""" | 6 """code generator for GL/GLES extension wrangler.""" |
7 | 7 |
8 import optparse | 8 import optparse |
9 import os | 9 import os |
10 import collections | 10 import collections |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 'extensions': ['GL_ARB_blend_func_extended'] }, | 89 'extensions': ['GL_ARB_blend_func_extended'] }, |
90 { 'name': 'glBindFragDataLocationIndexedEXT', | 90 { 'name': 'glBindFragDataLocationIndexedEXT', |
91 'extensions': ['GL_EXT_blend_func_extended'] }], | 91 'extensions': ['GL_EXT_blend_func_extended'] }], |
92 'arguments': | 92 'arguments': |
93 'GLuint program, GLuint colorNumber, GLuint index, const char* name', | 93 'GLuint program, GLuint colorNumber, GLuint index, const char* name', |
94 }, | 94 }, |
95 { 'return_type': 'void', | 95 { 'return_type': 'void', |
96 'names': ['glBindFramebufferEXT', 'glBindFramebuffer'], | 96 'names': ['glBindFramebufferEXT', 'glBindFramebuffer'], |
97 'arguments': 'GLenum target, GLuint framebuffer', }, | 97 'arguments': 'GLenum target, GLuint framebuffer', }, |
98 { 'return_type': 'void', | 98 { 'return_type': 'void', |
| 99 'known_as': 'glBindImageTextureEXT', |
| 100 'versions': [{ 'name': 'glBindImageTexture', |
| 101 'extensions': ['GL_ARB_shader_image_load_store'] }, |
| 102 { 'name': 'glBindImageTextureEXT', |
| 103 'extensions': ['GL_EXT_shader_image_load_store'] }], |
| 104 'arguments': 'GLuint index, GLuint texture, GLint level, GLboolean layered,' |
| 105 'GLint layer, GLenum access, GLint format', }, |
| 106 { 'return_type': 'void', |
99 'names': ['glBindRenderbufferEXT', 'glBindRenderbuffer'], | 107 'names': ['glBindRenderbufferEXT', 'glBindRenderbuffer'], |
100 'arguments': 'GLenum target, GLuint renderbuffer', }, | 108 'arguments': 'GLenum target, GLuint renderbuffer', }, |
101 { 'return_type': 'void', | 109 { 'return_type': 'void', |
102 'versions': [{ 'name': 'glBindSampler' }], | 110 'versions': [{ 'name': 'glBindSampler' }], |
103 'arguments': 'GLuint unit, GLuint sampler', }, | 111 'arguments': 'GLuint unit, GLuint sampler', }, |
104 { 'return_type': 'void', | 112 { 'return_type': 'void', |
105 'names': ['glBindTexture'], | 113 'names': ['glBindTexture'], |
106 'arguments': 'GLenum target, GLuint texture', }, | 114 'arguments': 'GLenum target, GLuint texture', }, |
107 { 'return_type': 'void', | 115 { 'return_type': 'void', |
108 'versions': [{ 'name': 'glBindTransformFeedback' }], | 116 'versions': [{ 'name': 'glBindTransformFeedback' }], |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 'extensions': ['GL_EXT_direct_state_access', | 835 'extensions': ['GL_EXT_direct_state_access', |
828 'GL_NV_path_rendering'] }], | 836 'GL_NV_path_rendering'] }], |
829 'arguments': 'GLenum matrixMode, const GLfloat* m' }, | 837 'arguments': 'GLenum matrixMode, const GLfloat* m' }, |
830 { 'return_type': 'void', | 838 { 'return_type': 'void', |
831 'known_as': 'glMatrixLoadIdentityEXT', | 839 'known_as': 'glMatrixLoadIdentityEXT', |
832 'versions': [{ 'name': 'glMatrixLoadIdentityEXT', | 840 'versions': [{ 'name': 'glMatrixLoadIdentityEXT', |
833 'extensions': ['GL_EXT_direct_state_access', | 841 'extensions': ['GL_EXT_direct_state_access', |
834 'GL_NV_path_rendering'] },], | 842 'GL_NV_path_rendering'] },], |
835 'arguments': 'GLenum matrixMode' }, | 843 'arguments': 'GLenum matrixMode' }, |
836 { 'return_type': 'void', | 844 { 'return_type': 'void', |
| 845 'known_as': 'glMemoryBarrierEXT', |
| 846 'versions': [{ 'name': 'glMemoryBarrier', |
| 847 'extensions': ['GL_ARB_shader_image_load_store'] }, |
| 848 { 'name': 'glMemoryBarrierEXT', |
| 849 'extensions': ['GL_EXT_shader_image_load_store'] }], |
| 850 'arguments': 'GLbitfield barriers', }, |
| 851 { 'return_type': 'void', |
837 'names': ['glPathCommandsNV'], | 852 'names': ['glPathCommandsNV'], |
838 'arguments': 'GLuint path, GLsizei numCommands, const GLubyte* commands, ' | 853 'arguments': 'GLuint path, GLsizei numCommands, const GLubyte* commands, ' |
839 'GLsizei numCoords, GLenum coordType, const GLvoid* coords' }, | 854 'GLsizei numCoords, GLenum coordType, const GLvoid* coords' }, |
840 { 'return_type': 'void', | 855 { 'return_type': 'void', |
841 'names': ['glPathParameterfNV'], | 856 'names': ['glPathParameterfNV'], |
842 'arguments': 'GLuint path, GLenum pname, GLfloat value' }, | 857 'arguments': 'GLuint path, GLenum pname, GLfloat value' }, |
843 { 'return_type': 'void', | 858 { 'return_type': 'void', |
844 'names': ['glPathParameteriNV'], | 859 'names': ['glPathParameteriNV'], |
845 'arguments': 'GLuint path, GLenum pname, GLint value' }, | 860 'arguments': 'GLuint path, GLenum pname, GLint value' }, |
846 { 'return_type': 'void', | 861 { 'return_type': 'void', |
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2754 'gl_enums_implementation_autogen.h'), | 2769 'gl_enums_implementation_autogen.h'), |
2755 'wb') | 2770 'wb') |
2756 GenerateEnumUtils(header_file, enum_header_filenames) | 2771 GenerateEnumUtils(header_file, enum_header_filenames) |
2757 header_file.close() | 2772 header_file.close() |
2758 ClangFormat(header_file.name) | 2773 ClangFormat(header_file.name) |
2759 return 0 | 2774 return 0 |
2760 | 2775 |
2761 | 2776 |
2762 if __name__ == '__main__': | 2777 if __name__ == '__main__': |
2763 sys.exit(main(sys.argv[1:])) | 2778 sys.exit(main(sys.argv[1:])) |
OLD | NEW |