OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """code generator for GLES2 command buffers.""" | 7 """code generator for GLES2 command buffers.""" |
8 | 8 |
9 import os | 9 import os |
10 import os.path | 10 import os.path |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 GL_APICALL void GL_APIENTRY glSwapBuffers (void); | 206 GL_APICALL void GL_APIENTRY glSwapBuffers (void); |
207 GL_APICALL GLuint GL_APIENTRY glGetMaxValueInBufferCHROMIUM (GLidBuffer bu
ffer_id, GLsizei count, GLenumGetMaxIndexType type, GLuint offset); | 207 GL_APICALL GLuint GL_APIENTRY glGetMaxValueInBufferCHROMIUM (GLidBuffer bu
ffer_id, GLsizei count, GLenumGetMaxIndexType type, GLuint offset); |
208 GL_APICALL void GL_APIENTRY glGenSharedIdsCHROMIUM (GLuint namespace_id,
GLuint id_offset, GLsizeiNotNegative n, GLuint* ids); | 208 GL_APICALL void GL_APIENTRY glGenSharedIdsCHROMIUM (GLuint namespace_id,
GLuint id_offset, GLsizeiNotNegative n, GLuint* ids); |
209 GL_APICALL void GL_APIENTRY glDeleteSharedIdsCHROMIUM (GLuint namespace_
id, GLsizeiNotNegative n, const GLuint* ids); | 209 GL_APICALL void GL_APIENTRY glDeleteSharedIdsCHROMIUM (GLuint namespace_
id, GLsizeiNotNegative n, const GLuint* ids); |
210 GL_APICALL void GL_APIENTRY glRegisterSharedIdsCHROMIUM (GLuint namespac
e_id, GLsizeiNotNegative n, const GLuint* ids); | 210 GL_APICALL void GL_APIENTRY glRegisterSharedIdsCHROMIUM (GLuint namespac
e_id, GLsizeiNotNegative n, const GLuint* ids); |
211 GL_APICALL GLboolean GL_APIENTRY glCommandBufferEnableCHROMIUM (const char* f
eature); | 211 GL_APICALL GLboolean GL_APIENTRY glCommandBufferEnableCHROMIUM (const char* f
eature); |
212 GL_APICALL void* GL_APIENTRY glMapBufferSubDataCHROMIUM (GLuint target, G
LintptrNotNegative offset, GLsizeiptr size, GLenum access); | 212 GL_APICALL void* GL_APIENTRY glMapBufferSubDataCHROMIUM (GLuint target, G
LintptrNotNegative offset, GLsizeiptr size, GLenum access); |
213 GL_APICALL void GL_APIENTRY glUnmapBufferSubDataCHROMIUM (const void* me
m); | 213 GL_APICALL void GL_APIENTRY glUnmapBufferSubDataCHROMIUM (const void* me
m); |
214 GL_APICALL void* GL_APIENTRY glMapTexSubImage2DCHROMIUM (GLenum target, G
Lint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum
format, GLenum type, GLenum access); | 214 GL_APICALL void* GL_APIENTRY glMapTexSubImage2DCHROMIUM (GLenum target, G
Lint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum
format, GLenum type, GLenum access); |
215 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM (const void* me
m); | 215 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM (const void* me
m); |
216 GL_APICALL void GL_APIENTRY glCopyTextureToParentTextureCHROMIUM (GLidBi
ndTexture client_child_id, GLidBindTexture client_parent_id); | |
217 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint heigh
t); | 216 GL_APICALL void GL_APIENTRY glResizeCHROMIUM (GLuint width, GLuint heigh
t); |
218 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void); | 217 GL_APICALL const GLchar* GL_APIENTRY glGetRequestableExtensionsCHROMIUM (void); |
219 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* exte
nsion); | 218 GL_APICALL void GL_APIENTRY glRequestExtensionCHROMIUM (const char* exte
nsion); |
220 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); | 219 GL_APICALL void GL_APIENTRY glRateLimitOffscreenContextCHROMIUM (void); |
221 GL_APICALL void GL_APIENTRY glSetSurfaceCHROMIUM (GLint surface_id); | 220 GL_APICALL void GL_APIENTRY glSetSurfaceCHROMIUM (GLint surface_id); |
222 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum*
pnames, GLuint count, GLint* results, GLsizeiptr size); | 221 GL_APICALL void GL_APIENTRY glGetMultipleIntegervCHROMIUM (const GLenum*
pnames, GLuint count, GLint* results, GLsizeiptr size); |
223 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLidProgram progra
m, GLsizeiNotNegative bufsize, GLsizei* size, void* info); | 222 GL_APICALL void GL_APIENTRY glGetProgramInfoCHROMIUM (GLidProgram progra
m, GLsizeiNotNegative bufsize, GLsizei* size, void* info); |
224 """ | 223 """ |
225 | 224 |
226 # This is the list of all commmands that will be generated and their Id. | 225 # This is the list of all commmands that will be generated and their Id. |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 'ReleaseShaderCompiler': 437, | 412 'ReleaseShaderCompiler': 437, |
414 'GetMaxValueInBufferCHROMIUM': 438, | 413 'GetMaxValueInBufferCHROMIUM': 438, |
415 'GenSharedIdsCHROMIUM': 439, | 414 'GenSharedIdsCHROMIUM': 439, |
416 'DeleteSharedIdsCHROMIUM': 440, | 415 'DeleteSharedIdsCHROMIUM': 440, |
417 'RegisterSharedIdsCHROMIUM': 441, | 416 'RegisterSharedIdsCHROMIUM': 441, |
418 'CommandBufferEnableCHROMIUM': 442, | 417 'CommandBufferEnableCHROMIUM': 442, |
419 'CompressedTexImage2DBucket': 443, | 418 'CompressedTexImage2DBucket': 443, |
420 'CompressedTexSubImage2DBucket': 444, | 419 'CompressedTexSubImage2DBucket': 444, |
421 'RenderbufferStorageMultisampleEXT': 445, | 420 'RenderbufferStorageMultisampleEXT': 445, |
422 'BlitFramebufferEXT': 446, | 421 'BlitFramebufferEXT': 446, |
423 'CopyTextureToParentTextureCHROMIUM': 447, | |
424 'ResizeCHROMIUM': 448, | 422 'ResizeCHROMIUM': 448, |
425 'GetRequestableExtensionsCHROMIUM': 449, | 423 'GetRequestableExtensionsCHROMIUM': 449, |
426 'RequestExtensionCHROMIUM': 450, | 424 'RequestExtensionCHROMIUM': 450, |
427 'SetSurfaceCHROMIUM': 453, | 425 'SetSurfaceCHROMIUM': 453, |
428 'GetMultipleIntegervCHROMIUM': 454, | 426 'GetMultipleIntegervCHROMIUM': 454, |
429 'GetProgramInfoCHROMIUM': 455, | 427 'GetProgramInfoCHROMIUM': 455, |
430 } | 428 } |
431 | 429 |
432 # This is a list of enum names and their valid values. It is used to map | 430 # This is a list of enum names and their valid values. It is used to map |
433 # GLenum arguments to a specific set of valid values. | 431 # GLenum arguments to a specific set of valid values. |
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 'type': 'PUT', | 1710 'type': 'PUT', |
1713 'data_type': 'GLfloat', | 1711 'data_type': 'GLfloat', |
1714 'count': 4, | 1712 'count': 4, |
1715 'decoder_func': 'DoVertexAttrib4fv', | 1713 'decoder_func': 'DoVertexAttrib4fv', |
1716 }, | 1714 }, |
1717 'VertexAttribPointer': { | 1715 'VertexAttribPointer': { |
1718 'type': 'Manual', | 1716 'type': 'Manual', |
1719 'cmd_args': 'GLuint indx, GLint size, GLenum type, GLboolean normalized, ' | 1717 'cmd_args': 'GLuint indx, GLint size, GLenum type, GLboolean normalized, ' |
1720 'GLsizei stride, GLuint offset', | 1718 'GLsizei stride, GLuint offset', |
1721 }, | 1719 }, |
1722 'CopyTextureToParentTextureCHROMIUM': { | |
1723 'impl_func': False, | |
1724 'decoder_func': 'DoCopyTextureToParentTextureCHROMIUM', | |
1725 'unit_test': False, | |
1726 'extension': True, | |
1727 'chromium': True, | |
1728 }, | |
1729 'ResizeCHROMIUM': { | 1720 'ResizeCHROMIUM': { |
1730 'decoder_func': 'DoResizeCHROMIUM', | 1721 'decoder_func': 'DoResizeCHROMIUM', |
1731 'unit_test': False, | 1722 'unit_test': False, |
1732 'extension': True, | 1723 'extension': True, |
1733 'chromium': True, | 1724 'chromium': True, |
1734 }, | 1725 }, |
1735 'GetRequestableExtensionsCHROMIUM': { | 1726 'GetRequestableExtensionsCHROMIUM': { |
1736 'type': 'Custom', | 1727 'type': 'Custom', |
1737 'impl_func': False, | 1728 'impl_func': False, |
1738 'immediate': False, | 1729 'immediate': False, |
(...skipping 4205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5944 | 5935 |
5945 if options.generate_docs: | 5936 if options.generate_docs: |
5946 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") | 5937 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") |
5947 | 5938 |
5948 if gen.errors > 0: | 5939 if gen.errors > 0: |
5949 print "%d errors" % gen.errors | 5940 print "%d errors" % gen.errors |
5950 sys.exit(1) | 5941 sys.exit(1) |
5951 | 5942 |
5952 if __name__ == '__main__': | 5943 if __name__ == '__main__': |
5953 main(sys.argv[1:]) | 5944 main(sys.argv[1:]) |
OLD | NEW |