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

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1136713003: Add ES3 commands GetVertexAttribI{u}iv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use overloading functions instead of template Created 5 years, 7 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
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 GLES2 command buffers.""" 6 """code generator for GLES2 command buffers."""
7 7
8 import itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 # some enum that the decoder actually passes through to GL needs 1303 # some enum that the decoder actually passes through to GL needs
1304 # to be the first listed here since it's used in unit tests. 1304 # to be the first listed here since it's used in unit tests.
1305 'GL_VERTEX_ATTRIB_ARRAY_NORMALIZED', 1305 'GL_VERTEX_ATTRIB_ARRAY_NORMALIZED',
1306 'GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING', 1306 'GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING',
1307 'GL_VERTEX_ATTRIB_ARRAY_ENABLED', 1307 'GL_VERTEX_ATTRIB_ARRAY_ENABLED',
1308 'GL_VERTEX_ATTRIB_ARRAY_SIZE', 1308 'GL_VERTEX_ATTRIB_ARRAY_SIZE',
1309 'GL_VERTEX_ATTRIB_ARRAY_STRIDE', 1309 'GL_VERTEX_ATTRIB_ARRAY_STRIDE',
1310 'GL_VERTEX_ATTRIB_ARRAY_TYPE', 1310 'GL_VERTEX_ATTRIB_ARRAY_TYPE',
1311 'GL_CURRENT_VERTEX_ATTRIB', 1311 'GL_CURRENT_VERTEX_ATTRIB',
1312 ], 1312 ],
1313 'valid_es3': [
1314 'GL_VERTEX_ATTRIB_ARRAY_INTEGER',
1315 'GL_VERTEX_ATTRIB_ARRAY_DIVISOR',
1316 ],
1313 }, 1317 },
1314 'VertexPointer': { 1318 'VertexPointer': {
1315 'type': 'GLenum', 1319 'type': 'GLenum',
1316 'valid': [ 1320 'valid': [
1317 'GL_VERTEX_ATTRIB_ARRAY_POINTER', 1321 'GL_VERTEX_ATTRIB_ARRAY_POINTER',
1318 ], 1322 ],
1319 }, 1323 },
1320 'HintTarget': { 1324 'HintTarget': {
1321 'type': 'GLenum', 1325 'type': 'GLenum',
1322 'valid': [ 1326 'valid': [
(...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after
2774 'client_test': False, 2778 'client_test': False,
2775 }, 2779 },
2776 'GetVertexAttribiv': { 2780 'GetVertexAttribiv': {
2777 'type': 'GETn', 2781 'type': 'GETn',
2778 'result': ['SizedResult<GLint>'], 2782 'result': ['SizedResult<GLint>'],
2779 'impl_decl': False, 2783 'impl_decl': False,
2780 'decoder_func': 'DoGetVertexAttribiv', 2784 'decoder_func': 'DoGetVertexAttribiv',
2781 'expectation': False, 2785 'expectation': False,
2782 'client_test': False, 2786 'client_test': False,
2783 }, 2787 },
2788 'GetVertexAttribIiv': {
2789 'type': 'GETn',
2790 'result': ['SizedResult<GLint>'],
2791 'impl_decl': False,
2792 'decoder_func': 'DoGetVertexAttribIiv',
2793 'expectation': False,
2794 'client_test': False,
2795 'unsafe': True,
2796 },
2797 'GetVertexAttribIuiv': {
2798 'type': 'GETn',
2799 'result': ['SizedResult<GLuint>'],
2800 'impl_decl': False,
2801 'decoder_func': 'DoGetVertexAttribIuiv',
2802 'expectation': False,
2803 'client_test': False,
2804 'unsafe': True,
2805 },
2784 'GetVertexAttribPointerv': { 2806 'GetVertexAttribPointerv': {
2785 'type': 'Custom', 2807 'type': 'Custom',
2786 'data_transfer_methods': ['shm'], 2808 'data_transfer_methods': ['shm'],
2787 'result': ['SizedResult<GLuint>'], 2809 'result': ['SizedResult<GLuint>'],
2788 'client_test': False, 2810 'client_test': False,
2789 }, 2811 },
2790 'InvalidateFramebuffer': { 2812 'InvalidateFramebuffer': {
2791 'type': 'PUTn', 2813 'type': 'PUTn',
2792 'count': 1, 2814 'count': 1,
2793 'client_test': False, 2815 'client_test': False,
(...skipping 8071 matching lines...) Expand 10 before | Expand all | Expand 10 after
10865 Format(gen.generated_cpp_filenames) 10887 Format(gen.generated_cpp_filenames)
10866 10888
10867 if gen.errors > 0: 10889 if gen.errors > 0:
10868 print "%d errors" % gen.errors 10890 print "%d errors" % gen.errors
10869 return 1 10891 return 1
10870 return 0 10892 return 0
10871 10893
10872 10894
10873 if __name__ == '__main__': 10895 if __name__ == '__main__':
10874 sys.exit(main(sys.argv[1:])) 10896 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698