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

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

Issue 1309743005: command_buffer: Implement EXT_blend_func_extended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase Created 5 years 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 'names': ['glBindBuffer'], 72 'names': ['glBindBuffer'],
73 'arguments': 'GLenum target, GLuint buffer', }, 73 'arguments': 'GLenum target, GLuint buffer', },
74 { 'return_type': 'void', 74 { 'return_type': 'void',
75 'versions': [{ 'name': 'glBindBufferBase' }], 75 'versions': [{ 'name': 'glBindBufferBase' }],
76 'arguments': 'GLenum target, GLuint index, GLuint buffer', }, 76 'arguments': 'GLenum target, GLuint index, GLuint buffer', },
77 { 'return_type': 'void', 77 { 'return_type': 'void',
78 'versions': [{ 'name': 'glBindBufferRange' }], 78 'versions': [{ 'name': 'glBindBufferRange' }],
79 'arguments': 'GLenum target, GLuint index, GLuint buffer, GLintptr offset, ' 79 'arguments': 'GLenum target, GLuint index, GLuint buffer, GLintptr offset, '
80 'GLsizeiptr size', }, 80 'GLsizeiptr size', },
81 { 'return_type': 'void', 81 { 'return_type': 'void',
82 'names': ['glBindFragDataLocation'], 82 'versions': [{ 'name': 'glBindFragDataLocation',
83 'extensions': ['GL_ARB_blend_func_extended'] },
84 { 'name': 'glBindFragDataLocationEXT',
85 'extensions': ['GL_EXT_blend_func_extended'] }],
83 'arguments': 'GLuint program, GLuint colorNumber, const char* name', }, 86 'arguments': 'GLuint program, GLuint colorNumber, const char* name', },
84 { 'return_type': 'void', 87 { 'return_type': 'void',
85 'names': ['glBindFragDataLocationIndexed'], 88 'versions': [{ 'name': 'glBindFragDataLocationIndexed',
89 'extensions': ['GL_ARB_blend_func_extended'] },
90 { 'name': 'glBindFragDataLocationIndexedEXT',
91 'extensions': ['GL_EXT_blend_func_extended'] }],
86 'arguments': 92 'arguments':
87 'GLuint program, GLuint colorNumber, GLuint index, const char* name', }, 93 'GLuint program, GLuint colorNumber, GLuint index, const char* name',
94 },
88 { 'return_type': 'void', 95 { 'return_type': 'void',
89 'names': ['glBindFramebufferEXT', 'glBindFramebuffer'], 96 'names': ['glBindFramebufferEXT', 'glBindFramebuffer'],
90 'arguments': 'GLenum target, GLuint framebuffer', }, 97 'arguments': 'GLenum target, GLuint framebuffer', },
91 { 'return_type': 'void', 98 { 'return_type': 'void',
92 'names': ['glBindRenderbufferEXT', 'glBindRenderbuffer'], 99 'names': ['glBindRenderbufferEXT', 'glBindRenderbuffer'],
93 'arguments': 'GLenum target, GLuint renderbuffer', }, 100 'arguments': 'GLenum target, GLuint renderbuffer', },
94 { 'return_type': 'void', 101 { 'return_type': 'void',
95 'versions': [{ 'name': 'glBindSampler' }], 102 'versions': [{ 'name': 'glBindSampler' }],
96 'arguments': 'GLuint unit, GLuint sampler', }, 103 'arguments': 'GLuint unit, GLuint sampler', },
97 { 'return_type': 'void', 104 { 'return_type': 'void',
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 'logging_code': """ 543 'logging_code': """
537 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result)); 544 GL_SERVICE_LOG("GL_RESULT: " << GLEnums::GetStringError(result));
538 """, }, 545 """, },
539 { 'return_type': 'void', 546 { 'return_type': 'void',
540 'names': ['glGetFenceivNV'], 547 'names': ['glGetFenceivNV'],
541 'arguments': 'GLuint fence, GLenum pname, GLint* params', }, 548 'arguments': 'GLuint fence, GLenum pname, GLint* params', },
542 { 'return_type': 'void', 549 { 'return_type': 'void',
543 'names': ['glGetFloatv'], 550 'names': ['glGetFloatv'],
544 'arguments': 'GLenum pname, GLfloat* params', }, 551 'arguments': 'GLenum pname, GLfloat* params', },
545 { 'return_type': 'GLint', 552 { 'return_type': 'GLint',
553 'versions': [{'name': 'glGetFragDataIndex',
554 'extensions': ['GL_ARB_blend_func_extended']},
555 {'name': 'glGetFragDataIndexEXT',
556 'extensions': ['GL_EXT_blend_func_extended']}],
557 'arguments': 'GLuint program, const char* name', },
558 { 'return_type': 'GLint',
546 'versions': [{ 'name': 'glGetFragDataLocation' }], 559 'versions': [{ 'name': 'glGetFragDataLocation' }],
547 'arguments': 'GLuint program, const char* name', }, 560 'arguments': 'GLuint program, const char* name', },
548 { 'return_type': 'void', 561 { 'return_type': 'void',
549 'names': ['glGetFramebufferAttachmentParameterivEXT', 562 'names': ['glGetFramebufferAttachmentParameterivEXT',
550 'glGetFramebufferAttachmentParameteriv'], 563 'glGetFramebufferAttachmentParameteriv'],
551 'arguments': 'GLenum target, ' 564 'arguments': 'GLenum target, '
552 'GLenum attachment, GLenum pname, GLint* params', }, 565 'GLenum attachment, GLenum pname, GLint* params', },
553 { 'return_type': 'GLenum', 566 { 'return_type': 'GLenum',
554 'names': ['glGetGraphicsResetStatusARB', 567 'names': ['glGetGraphicsResetStatusARB',
555 'glGetGraphicsResetStatusKHR', 568 'glGetGraphicsResetStatusKHR',
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after
2741 'gl_enums_implementation_autogen.h'), 2754 'gl_enums_implementation_autogen.h'),
2742 'wb') 2755 'wb')
2743 GenerateEnumUtils(header_file, enum_header_filenames) 2756 GenerateEnumUtils(header_file, enum_header_filenames)
2744 header_file.close() 2757 header_file.close()
2745 ClangFormat(header_file.name) 2758 ClangFormat(header_file.name)
2746 return 0 2759 return 0
2747 2760
2748 2761
2749 if __name__ == '__main__': 2762 if __name__ == '__main__':
2750 sys.exit(main(sys.argv[1:])) 2763 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « third_party/mojo/src/mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698