OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 { 0x84DB, "GL_TEXTURE27", }, | 337 { 0x84DB, "GL_TEXTURE27", }, |
338 { 0x84DC, "GL_TEXTURE28", }, | 338 { 0x84DC, "GL_TEXTURE28", }, |
339 { 0x84DA, "GL_TEXTURE26", }, | 339 { 0x84DA, "GL_TEXTURE26", }, |
340 { 0x8645, "GL_VERTEX_ATTRIB_ARRAY_POINTER", }, | 340 { 0x8645, "GL_VERTEX_ATTRIB_ARRAY_POINTER", }, |
341 { 0x300E, "GL_CONTEXT_LOST", }, | 341 { 0x300E, "GL_CONTEXT_LOST", }, |
342 { 0x2600, "GL_NEAREST", }, | 342 { 0x2600, "GL_NEAREST", }, |
343 { 0x84C4, "GL_TEXTURE4", }, | 343 { 0x84C4, "GL_TEXTURE4", }, |
344 { 0x85B5, "GL_VERTEX_ARRAY_BINDING_OES", }, | 344 { 0x85B5, "GL_VERTEX_ARRAY_BINDING_OES", }, |
345 { 0x8253, "GL_GUILTY_CONTEXT_RESET_ARB", }, | 345 { 0x8253, "GL_GUILTY_CONTEXT_RESET_ARB", }, |
346 { 0x00200000, "GL_STENCIL_BUFFER_BIT5_QCOM", }, | 346 { 0x00200000, "GL_STENCIL_BUFFER_BIT5_QCOM", }, |
| 347 { 0x8D68, "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES", }, |
347 { 0x8D61, "GL_HALF_FLOAT_OES", }, | 348 { 0x8D61, "GL_HALF_FLOAT_OES", }, |
348 { 0x8D62, "GL_RGB565", }, | 349 { 0x8D62, "GL_RGB565", }, |
349 { 0x8D64, "GL_ETC1_RGB8_OES", }, | 350 { 0x8D64, "GL_ETC1_RGB8_OES", }, |
| 351 { 0x8D65, "GL_TEXTURE_EXTERNAL_OES", }, |
| 352 { 0x8D66, "GL_SAMPLER_EXTERNAL_OES", }, |
| 353 { 0x8D67, "GL_TEXTURE_BINDING_EXTERNAL_OES", }, |
350 { 0x2800, "GL_TEXTURE_MAG_FILTER", }, | 354 { 0x2800, "GL_TEXTURE_MAG_FILTER", }, |
351 { 0x2801, "GL_TEXTURE_MIN_FILTER", }, | 355 { 0x2801, "GL_TEXTURE_MIN_FILTER", }, |
352 { 0x2802, "GL_TEXTURE_WRAP_S", }, | 356 { 0x2802, "GL_TEXTURE_WRAP_S", }, |
353 { 0x2803, "GL_TEXTURE_WRAP_T", }, | 357 { 0x2803, "GL_TEXTURE_WRAP_T", }, |
354 { 0x2703, "GL_LINEAR_MIPMAP_LINEAR", }, | 358 { 0x2703, "GL_LINEAR_MIPMAP_LINEAR", }, |
355 { 0x2702, "GL_NEAREST_MIPMAP_LINEAR", }, | 359 { 0x2702, "GL_NEAREST_MIPMAP_LINEAR", }, |
356 { 0x1F03, "GL_EXTENSIONS", }, | 360 { 0x1F03, "GL_EXTENSIONS", }, |
357 { 0x1F02, "GL_VERSION", }, | 361 { 0x1F02, "GL_VERSION", }, |
358 { 0x1F01, "GL_RENDERER", }, | 362 { 0x1F01, "GL_RENDERER", }, |
359 { 0x1F00, "GL_VENDOR", }, | 363 { 0x1F00, "GL_VENDOR", }, |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 std::string GLES2Util::GetStringGetMaxIndexType(uint32 value) { | 725 std::string GLES2Util::GetStringGetMaxIndexType(uint32 value) { |
722 static EnumToString string_table[] = { | 726 static EnumToString string_table[] = { |
723 { GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE" }, | 727 { GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE" }, |
724 { GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT" }, | 728 { GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT" }, |
725 { GL_UNSIGNED_INT, "GL_UNSIGNED_INT" }, | 729 { GL_UNSIGNED_INT, "GL_UNSIGNED_INT" }, |
726 }; | 730 }; |
727 return GLES2Util::GetQualifiedEnumString( | 731 return GLES2Util::GetQualifiedEnumString( |
728 string_table, arraysize(string_table), value); | 732 string_table, arraysize(string_table), value); |
729 } | 733 } |
730 | 734 |
| 735 std::string GLES2Util::GetStringGetTexParamTarget(uint32 value) { |
| 736 static EnumToString string_table[] = { |
| 737 { GL_TEXTURE_2D, "GL_TEXTURE_2D" }, |
| 738 { GL_TEXTURE_CUBE_MAP_POSITIVE_X, "GL_TEXTURE_CUBE_MAP_POSITIVE_X" }, |
| 739 { GL_TEXTURE_CUBE_MAP_NEGATIVE_X, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X" }, |
| 740 { GL_TEXTURE_CUBE_MAP_POSITIVE_Y, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y" }, |
| 741 { GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y" }, |
| 742 { GL_TEXTURE_CUBE_MAP_POSITIVE_Z, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z" }, |
| 743 { GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z" }, |
| 744 }; |
| 745 return GLES2Util::GetQualifiedEnumString( |
| 746 string_table, arraysize(string_table), value); |
| 747 } |
| 748 |
731 std::string GLES2Util::GetStringHintMode(uint32 value) { | 749 std::string GLES2Util::GetStringHintMode(uint32 value) { |
732 static EnumToString string_table[] = { | 750 static EnumToString string_table[] = { |
733 { GL_FASTEST, "GL_FASTEST" }, | 751 { GL_FASTEST, "GL_FASTEST" }, |
734 { GL_NICEST, "GL_NICEST" }, | 752 { GL_NICEST, "GL_NICEST" }, |
735 { GL_DONT_CARE, "GL_DONT_CARE" }, | 753 { GL_DONT_CARE, "GL_DONT_CARE" }, |
736 }; | 754 }; |
737 return GLES2Util::GetQualifiedEnumString( | 755 return GLES2Util::GetQualifiedEnumString( |
738 string_table, arraysize(string_table), value); | 756 string_table, arraysize(string_table), value); |
739 } | 757 } |
740 | 758 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 std::string GLES2Util::GetStringVertexPointer(uint32 value) { | 1063 std::string GLES2Util::GetStringVertexPointer(uint32 value) { |
1046 static EnumToString string_table[] = { | 1064 static EnumToString string_table[] = { |
1047 { GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER" }, | 1065 { GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER" }, |
1048 }; | 1066 }; |
1049 return GLES2Util::GetQualifiedEnumString( | 1067 return GLES2Util::GetQualifiedEnumString( |
1050 string_table, arraysize(string_table), value); | 1068 string_table, arraysize(string_table), value); |
1051 } | 1069 } |
1052 | 1070 |
1053 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 1071 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
1054 | 1072 |
OLD | NEW |