Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: ui/gl/generate_bindings.py

Issue 489023002: gpu: Enable relevant extentions on GLES3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits, add COMPILE_ASSERT and exclude half_float Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 'GLsizei primcount', }, 793 'GLsizei primcount', },
794 { 'return_type': 'void', 794 { 'return_type': 'void',
795 'known_as': 'glVertexAttribDivisorANGLE', 795 'known_as': 'glVertexAttribDivisorANGLE',
796 'names': ['glVertexAttribDivisorARB', 'glVertexAttribDivisorANGLE', 796 'names': ['glVertexAttribDivisorARB', 'glVertexAttribDivisorANGLE',
797 'glVertexAttribDivisor'], 797 'glVertexAttribDivisor'],
798 'arguments': 798 'arguments':
799 'GLuint index, GLuint divisor', }, 799 'GLuint index, GLuint divisor', },
800 { 'return_type': 'void', 800 { 'return_type': 'void',
801 'known_as': 'glGenVertexArraysOES', 801 'known_as': 'glGenVertexArraysOES',
802 'versions': [{ 'name': 'glGenVertexArrays', 802 'versions': [{ 'name': 'glGenVertexArrays',
803 'gl_versions': ['gl3', 'gl4'] }, 803 'gl_versions': ['gl3', 'gl4', 'es3'] },
804 { 'name': 'glGenVertexArrays', 804 { 'name': 'glGenVertexArrays',
805 'extensions': ['GL_ARB_vertex_array_object'] }, 805 'extensions': ['GL_ARB_vertex_array_object'] },
806 { 'name': 'glGenVertexArraysOES' }, 806 { 'name': 'glGenVertexArraysOES' },
807 { 'name': 'glGenVertexArraysAPPLE', 807 { 'name': 'glGenVertexArraysAPPLE',
808 'extensions': ['GL_APPLE_vertex_array_object'] }], 808 'extensions': ['GL_APPLE_vertex_array_object'] }],
809 'arguments': 'GLsizei n, GLuint* arrays', }, 809 'arguments': 'GLsizei n, GLuint* arrays', },
810 { 'return_type': 'void', 810 { 'return_type': 'void',
811 'known_as': 'glDeleteVertexArraysOES', 811 'known_as': 'glDeleteVertexArraysOES',
812 'versions': [{ 'name': 'glDeleteVertexArrays', 812 'versions': [{ 'name': 'glDeleteVertexArrays',
813 'gl_versions': ['gl3', 'gl4'] }, 813 'gl_versions': ['gl3', 'gl4', 'es3'] },
814 { 'name': 'glDeleteVertexArrays', 814 { 'name': 'glDeleteVertexArrays',
815 'extensions': ['GL_ARB_vertex_array_object'] }, 815 'extensions': ['GL_ARB_vertex_array_object'] },
816 { 'name': 'glDeleteVertexArraysOES' }, 816 { 'name': 'glDeleteVertexArraysOES' },
817 { 'name': 'glDeleteVertexArraysAPPLE', 817 { 'name': 'glDeleteVertexArraysAPPLE',
818 'extensions': ['GL_APPLE_vertex_array_object'] }], 818 'extensions': ['GL_APPLE_vertex_array_object'] }],
819 'arguments': 'GLsizei n, const GLuint* arrays' }, 819 'arguments': 'GLsizei n, const GLuint* arrays' },
820 { 'return_type': 'void', 820 { 'return_type': 'void',
821 'known_as': 'glBindVertexArrayOES', 821 'known_as': 'glBindVertexArrayOES',
822 'versions': [{ 'name': 'glBindVertexArray', 822 'versions': [{ 'name': 'glBindVertexArray',
823 'gl_versions': ['gl3', 'gl4'] }, 823 'gl_versions': ['gl3', 'gl4', 'es3'] },
824 { 'name': 'glBindVertexArray', 824 { 'name': 'glBindVertexArray',
825 'extensions': ['GL_ARB_vertex_array_object'] }, 825 'extensions': ['GL_ARB_vertex_array_object'] },
826 { 'name': 'glBindVertexArrayOES' }, 826 { 'name': 'glBindVertexArrayOES' },
827 { 'name': 'glBindVertexArrayAPPLE', 827 { 'name': 'glBindVertexArrayAPPLE',
828 'extensions': ['GL_APPLE_vertex_array_object'] }], 828 'extensions': ['GL_APPLE_vertex_array_object'] }],
829 'arguments': 'GLuint array' }, 829 'arguments': 'GLuint array' },
830 { 'return_type': 'GLboolean', 830 { 'return_type': 'GLboolean',
831 'known_as': 'glIsVertexArrayOES', 831 'known_as': 'glIsVertexArrayOES',
832 'versions': [{ 'name': 'glIsVertexArray', 832 'versions': [{ 'name': 'glIsVertexArray',
833 'gl_versions': ['gl3', 'gl4'] }, 833 'gl_versions': ['gl3', 'gl4'] },
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 2069
2070 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), 2070 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'),
2071 'wb') 2071 'wb')
2072 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) 2072 GenerateMockBindingsSource(source_file, GL_FUNCTIONS)
2073 source_file.close() 2073 source_file.close()
2074 return 0 2074 return 0
2075 2075
2076 2076
2077 if __name__ == '__main__': 2077 if __name__ == '__main__':
2078 sys.exit(main(sys.argv[1:])) 2078 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698