OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 { | 741 { |
742 0x882C, "GL_DRAW_BUFFER7_EXT", | 742 0x882C, "GL_DRAW_BUFFER7_EXT", |
743 }, | 743 }, |
744 { | 744 { |
745 0x0010, "GL_MAP_FLUSH_EXPLICIT_BIT_EXT", | 745 0x0010, "GL_MAP_FLUSH_EXPLICIT_BIT_EXT", |
746 }, | 746 }, |
747 { | 747 { |
748 0x882D, "GL_DRAW_BUFFER8_EXT", | 748 0x882D, "GL_DRAW_BUFFER8_EXT", |
749 }, | 749 }, |
750 { | 750 { |
| 751 0x0BA6, "GL_PATH_MODELVIEW_MATRIX_CHROMIUM", |
| 752 }, |
| 753 { |
751 0x8F37, "GL_COPY_WRITE_BUFFER_NV", | 754 0x8F37, "GL_COPY_WRITE_BUFFER_NV", |
752 }, | 755 }, |
753 { | 756 { |
754 0x8F36, "GL_COPY_READ_BUFFER_NV", | 757 0x8F36, "GL_COPY_READ_BUFFER_NV", |
755 }, | 758 }, |
756 { | 759 { |
757 0x84FF, "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT", | 760 0x84FF, "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT", |
758 }, | 761 }, |
759 { | 762 { |
760 0x6000, "GL_TEXTURE_POOL_CHROMIUM", | 763 0x6000, "GL_TEXTURE_POOL_CHROMIUM", |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 { | 981 { |
979 0x8D53, "GL_RENDERBUFFER_ALPHA_SIZE", | 982 0x8D53, "GL_RENDERBUFFER_ALPHA_SIZE", |
980 }, | 983 }, |
981 { | 984 { |
982 0x8D52, "GL_RENDERBUFFER_BLUE_SIZE", | 985 0x8D52, "GL_RENDERBUFFER_BLUE_SIZE", |
983 }, | 986 }, |
984 { | 987 { |
985 0x92A6, "GL_VIVIDLIGHT_NV", | 988 0x92A6, "GL_VIVIDLIGHT_NV", |
986 }, | 989 }, |
987 { | 990 { |
| 991 0x78F1, "GL_IMAGE_MAP_CHROMIUM", |
| 992 }, |
| 993 { |
988 0x00080000, "GL_STENCIL_BUFFER_BIT3_QCOM", | 994 0x00080000, "GL_STENCIL_BUFFER_BIT3_QCOM", |
989 }, | 995 }, |
990 { | 996 { |
991 0x92A7, "GL_LINEARLIGHT_NV", | 997 0x92A7, "GL_LINEARLIGHT_NV", |
992 }, | 998 }, |
993 { | 999 { |
994 0x886A, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED", | 1000 0x886A, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED", |
995 }, | 1001 }, |
996 { | 1002 { |
997 0x0C01, "GL_DRAW_BUFFER_EXT", | 1003 0x0C01, "GL_DRAW_BUFFER_EXT", |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 { | 1272 { |
1267 0x84CC, "GL_TEXTURE12", | 1273 0x84CC, "GL_TEXTURE12", |
1268 }, | 1274 }, |
1269 { | 1275 { |
1270 0x0BA2, "GL_VIEWPORT", | 1276 0x0BA2, "GL_VIEWPORT", |
1271 }, | 1277 }, |
1272 { | 1278 { |
1273 0x84CA, "GL_TEXTURE10", | 1279 0x84CA, "GL_TEXTURE10", |
1274 }, | 1280 }, |
1275 { | 1281 { |
1276 0x78F1, "GL_IMAGE_MAP_CHROMIUM", | 1282 0x0BA7, "GL_PATH_PROJECTION_MATRIX_CHROMIUM", |
1277 }, | 1283 }, |
1278 { | 1284 { |
1279 0x84CF, "GL_TEXTURE15", | 1285 0x84CF, "GL_TEXTURE15", |
1280 }, | 1286 }, |
1281 { | 1287 { |
1282 0x84CE, "GL_TEXTURE14", | 1288 0x84CE, "GL_TEXTURE14", |
1283 }, | 1289 }, |
1284 { | 1290 { |
1285 0x84CD, "GL_TEXTURE13", | 1291 0x84CD, "GL_TEXTURE13", |
1286 }, | 1292 }, |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1731 { | 1737 { |
1732 0x93E7, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES", | 1738 0x93E7, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES", |
1733 }, | 1739 }, |
1734 { | 1740 { |
1735 0x93E6, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES", | 1741 0x93E6, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES", |
1736 }, | 1742 }, |
1737 { | 1743 { |
1738 0x8D68, "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES", | 1744 0x8D68, "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES", |
1739 }, | 1745 }, |
1740 { | 1746 { |
| 1747 0x1700, "GL_PATH_MODELVIEW_CHROMIUM", |
| 1748 }, |
| 1749 { |
1741 0x85BB, "GL_UNSIGNED_SHORT_8_8_REV_APPLE", | 1750 0x85BB, "GL_UNSIGNED_SHORT_8_8_REV_APPLE", |
1742 }, | 1751 }, |
1743 { | 1752 { |
1744 0x8D61, "GL_HALF_FLOAT_OES", | 1753 0x8D61, "GL_HALF_FLOAT_OES", |
1745 }, | 1754 }, |
1746 { | 1755 { |
1747 0x8D62, "GL_RGB565", | 1756 0x8D62, "GL_RGB565", |
1748 }, | 1757 }, |
1749 { | 1758 { |
1750 0x8D64, "GL_ETC1_RGB8_OES", | 1759 0x8D64, "GL_ETC1_RGB8_OES", |
1751 }, | 1760 }, |
1752 { | 1761 { |
1753 0x8D65, "GL_TEXTURE_EXTERNAL_OES", | 1762 0x8D65, "GL_TEXTURE_EXTERNAL_OES", |
1754 }, | 1763 }, |
1755 { | 1764 { |
1756 0x8D66, "GL_SAMPLER_EXTERNAL_OES", | 1765 0x8D66, "GL_SAMPLER_EXTERNAL_OES", |
1757 }, | 1766 }, |
1758 { | 1767 { |
1759 0x8D67, "GL_TEXTURE_BINDING_EXTERNAL_OES", | 1768 0x8D67, "GL_TEXTURE_BINDING_EXTERNAL_OES", |
1760 }, | 1769 }, |
1761 { | 1770 { |
1762 0x04000000, "GL_MULTISAMPLE_BUFFER_BIT2_QCOM", | 1771 0x04000000, "GL_MULTISAMPLE_BUFFER_BIT2_QCOM", |
1763 }, | 1772 }, |
1764 { | 1773 { |
1765 0x8CEE, "GL_COLOR_ATTACHMENT14_EXT", | 1774 0x8CEE, "GL_COLOR_ATTACHMENT14_EXT", |
1766 }, | 1775 }, |
1767 { | 1776 { |
| 1777 0x1701, "GL_PATH_PROJECTION_CHROMIUM", |
| 1778 }, |
| 1779 { |
1768 0x2800, "GL_TEXTURE_MAG_FILTER", | 1780 0x2800, "GL_TEXTURE_MAG_FILTER", |
1769 }, | 1781 }, |
1770 { | 1782 { |
1771 0x2801, "GL_TEXTURE_MIN_FILTER", | 1783 0x2801, "GL_TEXTURE_MIN_FILTER", |
1772 }, | 1784 }, |
1773 { | 1785 { |
1774 0x2802, "GL_TEXTURE_WRAP_S", | 1786 0x2802, "GL_TEXTURE_WRAP_S", |
1775 }, | 1787 }, |
1776 { | 1788 { |
1777 0x2803, "GL_TEXTURE_WRAP_T", | 1789 0x2803, "GL_TEXTURE_WRAP_T", |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2674 | 2686 |
2675 std::string GLES2Util::GetStringIndexType(uint32_t value) { | 2687 std::string GLES2Util::GetStringIndexType(uint32_t value) { |
2676 static const EnumToString string_table[] = { | 2688 static const EnumToString string_table[] = { |
2677 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, | 2689 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, |
2678 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"}, | 2690 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"}, |
2679 }; | 2691 }; |
2680 return GLES2Util::GetQualifiedEnumString( | 2692 return GLES2Util::GetQualifiedEnumString( |
2681 string_table, arraysize(string_table), value); | 2693 string_table, arraysize(string_table), value); |
2682 } | 2694 } |
2683 | 2695 |
| 2696 std::string GLES2Util::GetStringMatrixMode(uint32_t value) { |
| 2697 static const EnumToString string_table[] = { |
| 2698 {GL_PATH_PROJECTION_CHROMIUM, "GL_PATH_PROJECTION_CHROMIUM"}, |
| 2699 {GL_PATH_MODELVIEW_CHROMIUM, "GL_PATH_MODELVIEW_CHROMIUM"}, |
| 2700 }; |
| 2701 return GLES2Util::GetQualifiedEnumString( |
| 2702 string_table, arraysize(string_table), value); |
| 2703 } |
| 2704 |
2684 std::string GLES2Util::GetStringPixelStore(uint32_t value) { | 2705 std::string GLES2Util::GetStringPixelStore(uint32_t value) { |
2685 static const EnumToString string_table[] = { | 2706 static const EnumToString string_table[] = { |
2686 {GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT"}, | 2707 {GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT"}, |
2687 {GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT"}, | 2708 {GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT"}, |
2688 {GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM"}, | 2709 {GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM"}, |
2689 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, | 2710 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, |
2690 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"}, | 2711 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"}, |
2691 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, | 2712 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM, |
2692 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"}, | 2713 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"}, |
2693 }; | 2714 }; |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3063 | 3084 |
3064 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { | 3085 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { |
3065 static const EnumToString string_table[] = { | 3086 static const EnumToString string_table[] = { |
3066 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, | 3087 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, |
3067 }; | 3088 }; |
3068 return GLES2Util::GetQualifiedEnumString( | 3089 return GLES2Util::GetQualifiedEnumString( |
3069 string_table, arraysize(string_table), value); | 3090 string_table, arraysize(string_table), value); |
3070 } | 3091 } |
3071 | 3092 |
3072 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 3093 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
OLD | NEW |