Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / gpu / command_buffer / common / gles2_cmd_utils_implementation_autogen.h
blob3176cc81ce289cfcd1382b0ded3b3b286b1cdb9d
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
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
11 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
12 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
14 static const GLES2Util::EnumToString enum_to_string_table[] = {
16 0x9260,
17 "GL_GCCSO_SHADER_BINARY_FJ",
20 0x9009,
21 "GL_TEXTURE_CUBE_MAP_ARRAY_EXT",
24 0x8825,
25 "GL_DRAW_BUFFER0_EXT",
28 0x0BC1,
29 "GL_ALPHA_TEST_FUNC_QCOM",
32 0x884C,
33 "GL_TEXTURE_COMPARE_MODE_EXT",
36 0x0BC2,
37 "GL_ALPHA_TEST_REF_QCOM",
40 0x78EF,
41 "GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM",
44 0x884D,
45 "GL_TEXTURE_COMPARE_FUNC_EXT",
48 0x884E,
49 "GL_COMPARE_REF_TO_TEXTURE_EXT",
52 0x8E76,
53 "GL_TESS_GEN_MODE_EXT",
56 0x8E77,
57 "GL_TESS_GEN_SPACING_EXT",
60 0x000D,
61 "GL_TRIANGLE_STRIP_ADJACENCY_EXT",
64 0x000E,
65 "GL_PATCHES_EXT",
68 0x000B,
69 "GL_LINE_STRIP_ADJACENCY_EXT",
72 0x000C,
73 "GL_TRIANGLES_ADJACENCY_EXT",
76 0x000A,
77 "GL_LINES_ADJACENCY_EXT",
80 0x92CF,
81 "GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_EXT",
84 0x93A1,
85 "GL_BGRA8_EXT",
89 "GL_FALSE",
92 0x00400000,
93 "GL_STENCIL_BUFFER_BIT6_QCOM",
96 0x9500,
97 "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL",
100 0x78F2,
101 "GL_SCANOUT_CHROMIUM",
104 0x9138,
105 "GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG",
108 0x8FC4,
109 "GL_SHADER_BINARY_VIV",
112 0x9130,
113 "GL_SGX_PROGRAM_BINARY_IMG",
116 0x9133,
117 "GL_RENDERBUFFER_SAMPLES_IMG",
120 0x82E0,
121 "GL_BUFFER_KHR",
124 0x9135,
125 "GL_MAX_SAMPLES_IMG",
128 0x9134,
129 "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG",
132 0x9137,
133 "GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG",
136 0x9136,
137 "GL_TEXTURE_SAMPLES_IMG",
140 0x00000020,
141 "GL_COLOR_BUFFER_BIT5_QCOM",
144 0x0008,
145 "GL_MAP_INVALIDATE_BUFFER_BIT_EXT",
148 0x0BC0,
149 "GL_ALPHA_TEST_QCOM",
152 0x0006,
153 "GL_TRIANGLE_FAN",
156 0x0007,
157 "GL_QUADS_EXT",
160 0x0004,
161 "GL_TRIANGLES",
164 0x0005,
165 "GL_TRIANGLE_STRIP",
168 0x0002,
169 "GL_LINE_LOOP",
172 0x0003,
173 "GL_LINE_STRIP",
176 0x0000,
177 "GL_POINTS",
180 0x0001,
181 "GL_LINES",
184 0x93F0,
185 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG",
188 0x93F1,
189 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV2_IMG",
192 0x900E,
193 "GL_INT_SAMPLER_CUBE_MAP_ARRAY_EXT",
196 0x900D,
197 "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_EXT",
200 0x900F,
201 "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_EXT",
204 0x900A,
205 "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_EXT",
208 0x900C,
209 "GL_SAMPLER_CUBE_MAP_ARRAY_EXT",
212 0x88B8,
213 "GL_READ_ONLY",
216 0x88B9,
217 "GL_WRITE_ONLY_OES",
220 0x8211,
221 "GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",
224 0x8210,
225 "GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",
228 0x8741,
229 "GL_PROGRAM_BINARY_LENGTH_OES",
232 0x8740,
233 "GL_Z400_BINARY_AMD",
236 0x8C4D,
237 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV",
240 0x8192,
241 "GL_GENERATE_MIPMAP_HINT",
244 0x8E79,
245 "GL_TESS_GEN_POINT_MODE_EXT",
248 0x8A54,
249 "GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT",
252 0x8A55,
253 "GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT",
256 0x8A56,
257 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT",
260 0x8A57,
261 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT",
264 0x8A51,
265 "GL_RGB_RAW_422_APPLE",
268 0x87F9,
269 "GL_3DC_X_AMD",
272 0x8A53,
273 "GL_SYNC_OBJECT_APPLE",
276 0x8DF8,
277 "GL_SHADER_BINARY_FORMATS",
280 0x8DF9,
281 "GL_NUM_SHADER_BINARY_FORMATS",
284 0x826D,
285 "GL_DEBUG_GROUP_STACK_DEPTH_KHR",
288 0x8E75,
289 "GL_TESS_CONTROL_OUTPUT_VERTICES_EXT",
292 0x826B,
293 "GL_DEBUG_SEVERITY_NOTIFICATION_KHR",
296 0x826C,
297 "GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR",
300 0x8B59,
301 "GL_BOOL_VEC4",
304 0x826A,
305 "GL_DEBUG_TYPE_POP_GROUP_KHR",
308 0x8B57,
309 "GL_BOOL_VEC2",
312 0x8DF1,
313 "GL_MEDIUM_FLOAT",
316 0x8B55,
317 "GL_INT_VEC4",
320 0x8B54,
321 "GL_INT_VEC3",
324 0x8DF4,
325 "GL_MEDIUM_INT",
328 0x8DF5,
329 "GL_HIGH_INT",
332 0x8B51,
333 "GL_FLOAT_VEC3",
336 0x8B50,
337 "GL_FLOAT_VEC2",
340 0x806F,
341 "GL_TEXTURE_3D_OES",
344 0x92E7,
345 "GL_IS_PER_PATCH_EXT",
348 0x92E0,
349 "GL_DEBUG_OUTPUT_KHR",
352 0x806A,
353 "GL_TEXTURE_BINDING_3D_OES",
356 0x8CE3,
357 "GL_COLOR_ATTACHMENT3_EXT",
360 0x1904,
361 "GL_GREEN_NV",
364 0x928D,
365 "GL_DST_OUT_NV",
368 0x8069,
369 "GL_TEXTURE_BINDING_2D",
372 0x8260,
373 "GL_UNDEFINED_VERTEX_EXT",
376 0x8261,
377 "GL_NO_RESET_NOTIFICATION_KHR",
380 0x8DFA,
381 "GL_SHADER_COMPILER",
384 0x8DFB,
385 "GL_MAX_VERTEX_UNIFORM_VECTORS",
388 0x8DFC,
389 "GL_MAX_VARYING_VECTORS",
392 0x8B5C,
393 "GL_FLOAT_MAT4",
396 0x8B5B,
397 "GL_FLOAT_MAT3",
400 0x8268,
401 "GL_DEBUG_TYPE_MARKER_KHR",
404 0x8269,
405 "GL_DEBUG_TYPE_PUSH_GROUP_KHR",
408 0x1905,
409 "GL_BLUE_NV",
412 0x87FF,
413 "GL_PROGRAM_BINARY_FORMATS_OES",
416 0x87FE,
417 "GL_NUM_PROGRAM_BINARY_FORMATS_OES",
420 0x2600,
421 "GL_NEAREST",
424 0x2601,
425 "GL_LINEAR",
428 0x8C03,
429 "GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",
432 0x9242,
433 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM",
436 0x88BB,
437 "GL_BUFFER_ACCESS_OES",
440 0x88BC,
441 "GL_BUFFER_MAPPED_OES",
444 0x88BD,
445 "GL_BUFFER_MAP_POINTER_OES",
448 0x88BF,
449 "GL_TIME_ELAPSED_EXT",
452 0x6003,
453 "GL_GET_ERROR_QUERY_CHROMIUM",
456 0x0C10,
457 "GL_SCISSOR_BOX",
460 0x0C11,
461 "GL_SCISSOR_TEST",
464 0x1700,
465 "GL_PATH_MODELVIEW_CHROMIUM",
468 0x80000000,
469 "GL_MULTISAMPLE_BUFFER_BIT7_QCOM",
472 0x94F8,
473 "GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL",
476 0x8A48,
477 "GL_TEXTURE_SRGB_DECODE_EXT",
480 0x300E,
481 "GL_CONTEXT_LOST",
484 0x02000000,
485 "GL_MULTISAMPLE_BUFFER_BIT1_QCOM",
488 0x8C2F,
489 "GL_ANY_SAMPLES_PASSED_EXT",
492 0x8BD2,
493 "GL_TEXTURE_WIDTH_QCOM",
496 0x8C2D,
497 "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT",
500 0x8C2C,
501 "GL_TEXTURE_BINDING_BUFFER_EXT",
504 0x8C2B,
505 "GL_MAX_TEXTURE_BUFFER_SIZE_EXT",
508 0x8C2A,
509 "GL_TEXTURE_BUFFER_EXT",
512 0x8BD7,
513 "GL_TEXTURE_TYPE_QCOM",
516 0x8B8D,
517 "GL_CURRENT_PROGRAM",
520 0x8BD9,
521 "GL_TEXTURE_NUM_LEVELS_QCOM",
524 0x00200000,
525 "GL_STENCIL_BUFFER_BIT5_QCOM",
528 0x8B8A,
529 "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH",
532 0x8B8B,
533 "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES",
536 0x8B8C,
537 "GL_SHADING_LANGUAGE_VERSION",
540 0x8BDA,
541 "GL_TEXTURE_TARGET_QCOM",
544 0x8BDB,
545 "GL_TEXTURE_OBJECT_VALID_QCOM",
548 0x8BDC,
549 "GL_STATE_RESTORE",
552 0x8B88,
553 "GL_SHADER_SOURCE_LENGTH",
556 0x8B89,
557 "GL_ACTIVE_ATTRIBUTES",
560 0x93C9,
561 "GL_COMPRESSED_RGBA_ASTC_6x6x6_OES",
564 0x93C8,
565 "GL_COMPRESSED_RGBA_ASTC_6x6x5_OES",
568 0x8B84,
569 "GL_INFO_LOG_LENGTH",
572 0x8B85,
573 "GL_ATTACHED_SHADERS",
576 0x8B86,
577 "GL_ACTIVE_UNIFORMS",
580 0x8B87,
581 "GL_ACTIVE_UNIFORM_MAX_LENGTH",
584 0x8B80,
585 "GL_DELETE_STATUS",
588 0x8B81,
589 "GL_COMPILE_STATUS",
592 0x8B82,
593 "GL_LINK_STATUS",
596 0x8B83,
597 "GL_VALIDATE_STATUS",
600 0x8D48,
601 "GL_STENCIL_INDEX8",
604 0x8D46,
605 "GL_STENCIL_INDEX1_OES",
608 0x8D47,
609 "GL_STENCIL_INDEX4_OES",
612 0x8D44,
613 "GL_RENDERBUFFER_INTERNAL_FORMAT",
616 0x00000100,
617 "GL_DEPTH_BUFFER_BIT",
620 0x8D42,
621 "GL_RENDERBUFFER_WIDTH",
624 0x8D43,
625 "GL_RENDERBUFFER_HEIGHT",
628 0x8D40,
629 "GL_FRAMEBUFFER",
632 0x8D41,
633 "GL_RENDERBUFFER",
636 0x0BD0,
637 "GL_DITHER",
640 0x93D3,
641 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR",
644 0x9144,
645 "GL_MAX_DEBUG_LOGGED_MESSAGES_KHR",
648 0x1801,
649 "GL_DEPTH_EXT",
652 0x1800,
653 "GL_COLOR_EXT",
656 0x1802,
657 "GL_STENCIL_EXT",
660 0x9288,
661 "GL_SRC_OVER_NV",
664 0x0B21,
665 "GL_LINE_WIDTH",
668 0x9308,
669 "GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT",
672 0x81A5,
673 "GL_DEPTH_COMPONENT16",
676 0x81A6,
677 "GL_DEPTH_COMPONENT24_OES",
680 0x81A7,
681 "GL_DEPTH_COMPONENT32_OES",
684 0x88FE,
685 "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",
688 0x8B6A,
689 "GL_FLOAT_MAT4x3_NV",
692 0x93D0,
693 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR",
696 0x9143,
697 "GL_MAX_DEBUG_MESSAGE_LENGTH_KHR",
700 0x8DFD,
701 "GL_MAX_FRAGMENT_UNIFORM_VECTORS",
704 0x9145,
705 "GL_DEBUG_LOGGED_MESSAGES_KHR",
708 0x9146,
709 "GL_DEBUG_SEVERITY_HIGH_KHR",
712 0x9147,
713 "GL_DEBUG_SEVERITY_MEDIUM_KHR",
716 0x9148,
717 "GL_DEBUG_SEVERITY_LOW_KHR",
720 0x8F63,
721 "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT",
724 0x8F60,
725 "GL_MALI_SHADER_BINARY_ARM",
728 0x8F61,
729 "GL_MALI_PROGRAM_BINARY_ARM",
732 0x8F66,
733 "GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM",
736 0x8F67,
737 "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT",
740 0x8F64,
741 "GL_SHADER_PIXEL_LOCAL_STORAGE_EXT",
744 0x8F65,
745 "GL_FETCH_PER_SAMPLE_ARM",
748 0x92D3,
749 "GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT",
752 0x87EE,
753 "GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD",
756 0x822B,
757 "GL_RG8_EXT",
760 0x822F,
761 "GL_RG16F_EXT",
764 0x822D,
765 "GL_R16F_EXT",
768 0x822E,
769 "GL_R32F_EXT",
773 "GL_ES_VERSION_2_0",
776 0x84F9,
777 "GL_DEPTH_STENCIL_OES",
780 0x82DB,
781 "GL_TEXTURE_VIEW_MIN_LEVEL_EXT",
784 0x8368,
785 "GL_UNSIGNED_INT_2_10_10_10_REV_EXT",
788 0x8819,
789 "GL_LUMINANCE_ALPHA32F_EXT",
792 0x8818,
793 "GL_LUMINANCE32F_EXT",
796 0x82DF,
797 "GL_TEXTURE_IMMUTABLE_LEVELS",
800 0x8363,
801 "GL_UNSIGNED_SHORT_5_6_5",
804 0x9051,
805 "GL_IMAGE_BUFFER_EXT",
808 0x84F2,
809 "GL_ALL_COMPLETED_NV",
812 0x8E5A,
813 "GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT",
816 0x84F4,
817 "GL_FENCE_CONDITION_NV",
820 0x8366,
821 "GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT",
824 0x8365,
825 "GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT",
828 0x84F7,
829 "GL_COMMANDS_COMPLETED_CHROMIUM",
832 0x92D5,
833 "GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT",
836 0x881E,
837 "GL_LUMINANCE16F_EXT",
840 0x84FA,
841 "GL_UNSIGNED_INT_24_8_OES",
844 0x92D4,
845 "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT",
848 0x881A,
849 "GL_RGBA16F_EXT",
852 0x84FE,
853 "GL_TEXTURE_MAX_ANISOTROPY_EXT",
856 0x0901,
857 "GL_CCW",
860 0x0900,
861 "GL_CW",
864 0x9317,
865 "GL_MAX_FRAMEBUFFER_LAYERS_EXT",
868 0x8229,
869 "GL_R8_EXT",
872 0x8230,
873 "GL_RG32F_EXT",
876 0x9312,
877 "GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT",
880 0x9283,
881 "GL_DISJOINT_NV",
884 0x8221,
885 "GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED",
888 0x8227,
889 "GL_RG_EXT",
892 0x8B66,
893 "GL_FLOAT_MAT2x4_NV",
896 0x8B67,
897 "GL_FLOAT_MAT3x2_NV",
900 0x8E1E,
901 "GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
904 0x8B62,
905 "GL_SAMPLER_2D_SHADOW_EXT",
908 0x8B63,
909 "GL_SAMPLER_2D_RECT_ARB",
912 0x8B60,
913 "GL_SAMPLER_CUBE",
916 0x00001000,
917 "GL_DEPTH_BUFFER_BIT4_QCOM",
920 0x8B68,
921 "GL_FLOAT_MAT3x4_NV",
924 0x83F0,
925 "GL_COMPRESSED_RGB_S3TC_DXT1_EXT",
928 0x8D6A,
929 "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT",
932 0x00000080,
933 "GL_COLOR_BUFFER_BIT7_QCOM",
936 0x88F0,
937 "GL_DEPTH24_STENCIL8_OES",
940 0x8E1F,
941 "GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
944 0x80A0,
945 "GL_SAMPLE_COVERAGE",
948 0x928F,
949 "GL_DST_ATOP_NV",
952 0x80A9,
953 "GL_SAMPLES",
956 0x80A8,
957 "GL_SAMPLE_BUFFERS",
960 0x0D55,
961 "GL_ALPHA_BITS",
964 0x0D54,
965 "GL_BLUE_BITS",
968 0x0D57,
969 "GL_STENCIL_BITS",
972 0x0D56,
973 "GL_DEPTH_BITS",
976 0x8CD5,
977 "GL_FRAMEBUFFER_COMPLETE",
980 0x0D50,
981 "GL_SUBPIXEL_BITS",
984 0x0D53,
985 "GL_GREEN_BITS",
988 0x0D52,
989 "GL_RED_BITS",
992 0x8037,
993 "GL_POLYGON_OFFSET_FILL",
996 0x928C,
997 "GL_SRC_OUT_NV",
1000 0x8034,
1001 "GL_UNSIGNED_SHORT_5_5_5_1",
1004 0x8033,
1005 "GL_UNSIGNED_SHORT_4_4_4_4",
1008 0x928B,
1009 "GL_DST_IN_NV",
1012 0x0305,
1013 "GL_ONE_MINUS_DST_ALPHA",
1016 0x0304,
1017 "GL_DST_ALPHA",
1020 0x0307,
1021 "GL_ONE_MINUS_DST_COLOR",
1024 0x0306,
1025 "GL_DST_COLOR",
1028 0x0301,
1029 "GL_ONE_MINUS_SRC_COLOR",
1032 0x0300,
1033 "GL_SRC_COLOR",
1036 0x0303,
1037 "GL_ONE_MINUS_SRC_ALPHA",
1040 0x0302,
1041 "GL_SRC_ALPHA",
1044 0x0308,
1045 "GL_SRC_ALPHA_SATURATE",
1048 0x2A00,
1049 "GL_POLYGON_OFFSET_UNITS",
1052 0xFFFFFFFF,
1053 "GL_ALL_SHADER_BITS_EXT",
1056 0x82DC,
1057 "GL_TEXTURE_VIEW_NUM_LEVELS_EXT",
1060 0x8C29,
1061 "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT",
1064 0x82DD,
1065 "GL_TEXTURE_VIEW_MIN_LAYER_EXT",
1068 0x00800000,
1069 "GL_STENCIL_BUFFER_BIT7_QCOM",
1072 0x82DE,
1073 "GL_TEXTURE_VIEW_NUM_LAYERS_EXT",
1076 0x00020000,
1077 "GL_STENCIL_BUFFER_BIT1_QCOM",
1080 0x8D00,
1081 "GL_DEPTH_ATTACHMENT",
1084 0x8FA0,
1085 "GL_PERFMON_GLOBAL_MODE_QCOM",
1088 0x8815,
1089 "GL_RGB32F_EXT",
1092 0x8814,
1093 "GL_RGBA32F_EXT",
1096 0x6004,
1097 "GL_COMMANDS_ISSUED_CHROMIUM",
1100 0x813D,
1101 "GL_TEXTURE_MAX_LEVEL_APPLE",
1104 0x8816,
1105 "GL_ALPHA32F_EXT",
1108 0x8CDD,
1109 "GL_FRAMEBUFFER_UNSUPPORTED",
1112 0x8CDF,
1113 "GL_MAX_COLOR_ATTACHMENTS_EXT",
1116 0x90F3,
1117 "GL_CONTEXT_ROBUST_ACCESS_KHR",
1120 0x90F2,
1121 "GL_MAX_MULTIVIEW_BUFFERS_EXT",
1124 0x90F1,
1125 "GL_MULTIVIEW_EXT",
1128 0x90F0,
1129 "GL_COLOR_ATTACHMENT_EXT",
1132 0x803C,
1133 "GL_ALPHA8_OES",
1136 0x84F5,
1137 "GL_TEXTURE_RECTANGLE_ARB",
1140 0x882A,
1141 "GL_DRAW_BUFFER5_EXT",
1144 0x8E7F,
1145 "GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
1148 0x80AA,
1149 "GL_SAMPLE_COVERAGE_VALUE",
1152 0x84F6,
1153 "GL_TEXTURE_BINDING_RECTANGLE_ARB",
1156 0x80AB,
1157 "GL_SAMPLE_COVERAGE_INVERT",
1160 0x8E7D,
1161 "GL_MAX_PATCH_VERTICES_EXT",
1164 0x6005,
1165 "GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM",
1168 0x9105,
1169 "GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES",
1172 0x8E7E,
1173 "GL_MAX_TESS_GEN_LEVEL_EXT",
1176 0x9102,
1177 "GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES",
1180 0x8C40,
1181 "GL_SRGB_EXT",
1184 0x8E7B,
1185 "GL_FRACTIONAL_ODD_EXT",
1188 0x00000040,
1189 "GL_COLOR_BUFFER_BIT6_QCOM",
1192 0x882B,
1193 "GL_DRAW_BUFFER6_EXT",
1196 0x8E7C,
1197 "GL_FRACTIONAL_EVEN_EXT",
1200 0x8C17,
1201 "GL_UNSIGNED_NORMALIZED_EXT",
1204 0x8E7A,
1205 "GL_ISOLINES_EXT",
1208 0x6006,
1209 "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM",
1212 0x8A4A,
1213 "GL_SKIP_DECODE_EXT",
1216 0x8A4F,
1217 "GL_PROGRAM_PIPELINE_OBJECT_EXT",
1220 0x882C,
1221 "GL_DRAW_BUFFER7_EXT",
1224 0x0010,
1225 "GL_MAP_FLUSH_EXPLICIT_BIT_EXT",
1228 0x8918,
1229 "GL_GEOMETRY_LINKED_OUTPUT_TYPE_EXT",
1232 0x92CD,
1233 "GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_EXT",
1236 0x92CE,
1237 "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_EXT",
1240 0x6007,
1241 "GL_LATENCY_QUERY_CHROMIUM",
1244 0x8916,
1245 "GL_GEOMETRY_LINKED_VERTICES_OUT_EXT",
1248 0x8917,
1249 "GL_GEOMETRY_LINKED_INPUT_TYPE_EXT",
1252 0x881F,
1253 "GL_LUMINANCE_ALPHA16F_EXT",
1256 0x882D,
1257 "GL_DRAW_BUFFER8_EXT",
1260 0x0BA6,
1261 "GL_PATH_MODELVIEW_MATRIX_CHROMIUM",
1264 0x8F37,
1265 "GL_COPY_WRITE_BUFFER_NV",
1268 0x8F36,
1269 "GL_COPY_READ_BUFFER_NV",
1272 0x84FF,
1273 "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT",
1276 0x6000,
1277 "GL_TEXTURE_POOL_CHROMIUM",
1280 0x0B74,
1281 "GL_DEPTH_FUNC",
1284 0x8A49,
1285 "GL_DECODE_EXT",
1288 0x881B,
1289 "GL_RGB16F_EXT",
1292 0x0B71,
1293 "GL_DEPTH_TEST",
1296 0x0B70,
1297 "GL_DEPTH_RANGE",
1300 0x0B73,
1301 "GL_DEPTH_CLEAR_VALUE",
1304 0x0B72,
1305 "GL_DEPTH_WRITEMASK",
1308 0x8BD5,
1309 "GL_TEXTURE_INTERNAL_FORMAT_QCOM",
1312 0x85BA,
1313 "GL_UNSIGNED_SHORT_8_8_APPLE",
1316 0x8C87,
1317 "GL_PRIMITIVES_GENERATED_EXT",
1320 0x882E,
1321 "GL_DRAW_BUFFER9_EXT",
1324 0x8A32,
1325 "GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_EXT",
1328 0x910D,
1329 "GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1332 0x8E80,
1333 "GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
1336 0x910B,
1337 "GL_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1340 0x910C,
1341 "GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1344 0x94FA,
1345 "GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL",
1348 0x8073,
1349 "GL_MAX_3D_TEXTURE_SIZE_OES",
1352 0x8072,
1353 "GL_TEXTURE_WRAP_R_OES",
1356 0x9289,
1357 "GL_DST_OVER_NV",
1360 0x882F,
1361 "GL_DRAW_BUFFER10_EXT",
1364 0x8074,
1365 "GL_VERTEX_ARRAY_KHR",
1368 0x80E1,
1369 "GL_BGRA_EXT",
1372 0x8ED7,
1373 "GL_COVERAGE_AUTOMATIC_NV",
1376 0x8ED6,
1377 "GL_COVERAGE_EDGE_FRAGMENTS_NV",
1380 0x8ED5,
1381 "GL_COVERAGE_ALL_FRAGMENTS_NV",
1384 0x8ED4,
1385 "GL_COVERAGE_SAMPLES_NV",
1388 0x8ED3,
1389 "GL_COVERAGE_BUFFERS_NV",
1392 0x8ED2,
1393 "GL_COVERAGE_ATTACHMENT_NV",
1396 0x8ED1,
1397 "GL_COVERAGE_COMPONENT4_NV",
1400 0x8ED0,
1401 "GL_COVERAGE_COMPONENT_NV",
1404 0x8E89,
1405 "GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_EXT",
1408 0x3006,
1409 "GL_CLIP_DISTANCE6_APPLE",
1412 0x800B,
1413 "GL_FUNC_REVERSE_SUBTRACT",
1416 0x00000400,
1417 "GL_STENCIL_BUFFER_BIT",
1420 0x800A,
1421 "GL_FUNC_SUBTRACT",
1424 0x8E2C,
1425 "GL_DEPTH_COMPONENT16_NONLINEAR_NV",
1428 0x889F,
1429 "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",
1432 0x8219,
1433 "GL_FRAMEBUFFER_UNDEFINED_OES",
1436 0x8E22,
1437 "GL_TRANSFORM_FEEDBACK",
1440 0x9054,
1441 "GL_IMAGE_CUBE_MAP_ARRAY_EXT",
1444 0x8E28,
1445 "GL_TIMESTAMP_EXT",
1448 0x8006,
1449 "GL_FUNC_ADD",
1452 0x8007,
1453 "GL_MIN_EXT",
1456 0x8004,
1457 "GL_ONE_MINUS_CONSTANT_ALPHA",
1460 0x8005,
1461 "GL_BLEND_COLOR",
1464 0x8002,
1465 "GL_ONE_MINUS_CONSTANT_COLOR",
1468 0x8003,
1469 "GL_CONSTANT_ALPHA",
1472 0x8001,
1473 "GL_CONSTANT_COLOR",
1476 0x0204,
1477 "GL_GREATER",
1480 0x0205,
1481 "GL_NOTEQUAL",
1484 0x0206,
1485 "GL_GEQUAL",
1488 0x0207,
1489 "GL_ALWAYS",
1492 0x0200,
1493 "GL_NEVER",
1496 0x0201,
1497 "GL_LESS",
1500 0x0202,
1501 "GL_EQUAL",
1504 0x0203,
1505 "GL_LEQUAL",
1508 0x8BD6,
1509 "GL_TEXTURE_FORMAT_QCOM",
1512 0x2901,
1513 "GL_REPEAT",
1516 0x9067,
1517 "GL_UNSIGNED_INT_IMAGE_BUFFER_EXT",
1520 0x92A0,
1521 "GL_EXCLUSION_KHR",
1524 0x93D8,
1525 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR",
1528 0x93D9,
1529 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR",
1532 0x8FB2,
1533 "GL_GPU_OPTIMIZED_QCOM",
1536 0x190A,
1537 "GL_LUMINANCE_ALPHA",
1540 0x8FB0,
1541 "GL_BINNING_CONTROL_HINT_QCOM",
1544 0x905C,
1545 "GL_INT_IMAGE_BUFFER_EXT",
1548 0x1E00,
1549 "GL_KEEP",
1552 0x1E01,
1553 "GL_REPLACE",
1556 0x1E02,
1557 "GL_INCR",
1560 0x1E03,
1561 "GL_DECR",
1564 0x93D6,
1565 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR",
1568 0x93D7,
1569 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR",
1572 0x93D4,
1573 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR",
1576 0x93D5,
1577 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR",
1580 0x886D,
1581 "GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_EXT",
1584 0x0BE2,
1585 "GL_BLEND",
1588 0x84CB,
1589 "GL_TEXTURE11",
1592 0x8D55,
1593 "GL_RENDERBUFFER_STENCIL_SIZE",
1596 0x8D54,
1597 "GL_RENDERBUFFER_DEPTH_SIZE",
1600 0x8D57,
1601 "GL_MAX_SAMPLES_ANGLE",
1604 0x8D56,
1605 "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE",
1608 0x8D51,
1609 "GL_RENDERBUFFER_GREEN_SIZE",
1612 0x8D50,
1613 "GL_RENDERBUFFER_RED_SIZE",
1616 0x8D53,
1617 "GL_RENDERBUFFER_ALPHA_SIZE",
1620 0x8D52,
1621 "GL_RENDERBUFFER_BLUE_SIZE",
1624 0x92A6,
1625 "GL_VIVIDLIGHT_NV",
1628 0x78F1,
1629 "GL_MAP_CHROMIUM",
1632 0x00080000,
1633 "GL_STENCIL_BUFFER_BIT3_QCOM",
1636 0x92A7,
1637 "GL_LINEARLIGHT_NV",
1640 0x886A,
1641 "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED",
1644 0x8C41,
1645 "GL_SRGB8_NV",
1648 0x0C01,
1649 "GL_DRAW_BUFFER_EXT",
1652 0x886C,
1653 "GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_EXT",
1656 0x90CB,
1657 "GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_EXT",
1660 0x93C7,
1661 "GL_COMPRESSED_RGBA_ASTC_6x5x5_OES",
1664 0x8B5F,
1665 "GL_SAMPLER_3D_OES",
1668 0x8B95,
1669 "GL_PALETTE8_RGB8_OES",
1672 0x9250,
1673 "GL_SHADER_BINARY_DMP",
1676 0x9251,
1677 "GL_SMAPHS30_PROGRAM_BINARY_DMP",
1680 0x9252,
1681 "GL_SMAPHS_PROGRAM_BINARY_DMP",
1684 0x9253,
1685 "GL_DMP_PROGRAM_BINARY_DMP",
1688 0x3000,
1689 "GL_CLIP_DISTANCE0_APPLE",
1692 0x8C92,
1693 "GL_ATC_RGB_AMD",
1696 0x9154,
1697 "GL_VERTEX_ARRAY_OBJECT_EXT",
1700 0x9153,
1701 "GL_QUERY_OBJECT_EXT",
1704 0x8864,
1705 "GL_QUERY_COUNTER_BITS_EXT",
1708 0x9151,
1709 "GL_BUFFER_OBJECT_EXT",
1712 0x8C93,
1713 "GL_ATC_RGBA_EXPLICIT_ALPHA_AMD",
1716 0x00000002,
1717 "GL_CONTEXT_FLAG_DEBUG_BIT_KHR",
1720 0x00000000,
1721 "GL_PERFQUERY_SINGLE_CONTEXT_INTEL",
1724 0x00000001,
1725 "GL_SYNC_FLUSH_COMMANDS_BIT_APPLE",
1728 0x9248,
1729 "GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM",
1732 0x00000004,
1733 "GL_GEOMETRY_SHADER_BIT_EXT",
1736 0x1702,
1737 "GL_TEXTURE",
1740 0x3003,
1741 "GL_CLIP_DISTANCE3_APPLE",
1744 0x00000008,
1745 "GL_TESS_CONTROL_SHADER_BIT_EXT",
1748 0x8B58,
1749 "GL_BOOL_VEC3",
1752 0x8828,
1753 "GL_DRAW_BUFFER3_EXT",
1756 0x8DF0,
1757 "GL_LOW_FLOAT",
1760 0x1906,
1761 "GL_ALPHA",
1764 0x1907,
1765 "GL_RGB",
1768 0x8FBB,
1769 "GL_GPU_DISJOINT_EXT",
1772 0x1901,
1773 "GL_STENCIL_INDEX_OES",
1776 0x1902,
1777 "GL_DEPTH_COMPONENT",
1780 0x8B56,
1781 "GL_BOOL",
1784 0x93DB,
1785 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR",
1788 0x8B9B,
1789 "GL_IMPLEMENTATION_COLOR_READ_FORMAT",
1792 0x8B9A,
1793 "GL_IMPLEMENTATION_COLOR_READ_TYPE",
1796 0x93DA,
1797 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR",
1800 0x1908,
1801 "GL_RGBA",
1804 0x8DF2,
1805 "GL_HIGH_FLOAT",
1808 0x93DD,
1809 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR",
1812 0x8827,
1813 "GL_DRAW_BUFFER2_EXT",
1816 0x9243,
1817 "GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM",
1820 0x8DF3,
1821 "GL_LOW_INT",
1824 0x82E8,
1825 "GL_MAX_LABEL_LENGTH_KHR",
1828 0x82E6,
1829 "GL_SAMPLER_KHR",
1832 0x0C02,
1833 "GL_READ_BUFFER_EXT",
1836 0x82E3,
1837 "GL_QUERY_KHR",
1840 0x82E2,
1841 "GL_PROGRAM_KHR",
1844 0x82E1,
1845 "GL_SHADER_KHR",
1848 0x8B52,
1849 "GL_FLOAT_VEC4",
1852 0x9240,
1853 "GL_UNPACK_FLIP_Y_CHROMIUM",
1856 0x8DF6,
1857 "GL_UNSIGNED_INT_10_10_10_2_OES",
1860 0x8866,
1861 "GL_QUERY_RESULT_EXT",
1864 0x8DF7,
1865 "GL_INT_10_10_10_2_OES",
1868 0x9246,
1869 "GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM",
1872 0x8B69,
1873 "GL_FLOAT_MAT4x2_NV",
1876 0x812D,
1877 "GL_CLAMP_TO_BORDER_EXT",
1880 0x812F,
1881 "GL_CLAMP_TO_EDGE",
1884 0x92A4,
1885 "GL_LINEARDODGE_NV",
1888 0x8DD8,
1889 "GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT",
1892 0x8DD9,
1893 "GL_GEOMETRY_SHADER_EXT",
1896 0x86A3,
1897 "GL_COMPRESSED_TEXTURE_FORMATS",
1900 0x9244,
1901 "GL_BIND_GENERATES_RESOURCE_CHROMIUM",
1904 0x8DD0,
1905 "GL_INT_SAMPLER_BUFFER_EXT",
1908 0x86A2,
1909 "GL_NUM_COMPRESSED_TEXTURE_FORMATS",
1912 0x0CF3,
1913 "GL_UNPACK_SKIP_ROWS_EXT",
1916 0x0CF2,
1917 "GL_UNPACK_ROW_LENGTH_EXT",
1920 0x140C,
1921 "GL_FIXED",
1924 0x8008,
1925 "GL_MAX_EXT",
1928 0x0CF5,
1929 "GL_UNPACK_ALIGNMENT",
1932 0x8867,
1933 "GL_QUERY_RESULT_AVAILABLE_EXT",
1936 0x8009,
1937 "GL_BLEND_EQUATION",
1940 0x1401,
1941 "GL_UNSIGNED_BYTE",
1944 0x1400,
1945 "GL_BYTE",
1948 0x1403,
1949 "GL_UNSIGNED_SHORT",
1952 0x1402,
1953 "GL_SHORT",
1956 0x1405,
1957 "GL_UNSIGNED_INT",
1960 0x1404,
1961 "GL_INT",
1964 0x1406,
1965 "GL_FLOAT",
1968 0x8DDF,
1969 "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT",
1972 0x8043,
1973 "GL_LUMINANCE4_ALPHA4_OES",
1976 0x8040,
1977 "GL_LUMINANCE8_OES",
1980 0x8045,
1981 "GL_LUMINANCE8_ALPHA8_OES",
1984 0x8CD1,
1985 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",
1988 0x00040000,
1989 "GL_STENCIL_BUFFER_BIT2_QCOM",
1992 0x8CD0,
1993 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",
1996 0x8CE4,
1997 "GL_COLOR_ATTACHMENT4_EXT",
2000 0x8CD3,
2001 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",
2004 0x846E,
2005 "GL_ALIASED_LINE_WIDTH_RANGE",
2008 0x0B90,
2009 "GL_STENCIL_TEST",
2012 0x8CD2,
2013 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",
2016 0x881C,
2017 "GL_ALPHA16F_EXT",
2020 0x928E,
2021 "GL_SRC_ATOP_NV",
2024 0x8CD4,
2025 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES",
2028 0x9113,
2029 "GL_SYNC_CONDITION_APPLE",
2032 0x8CD7,
2033 "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",
2036 0x08000000,
2037 "GL_MULTISAMPLE_BUFFER_BIT3_QCOM",
2040 0x93A4,
2041 "GL_PACK_REVERSE_ROW_ORDER_ANGLE",
2044 0x8038,
2045 "GL_POLYGON_OFFSET_FACTOR",
2048 0x94F9,
2049 "GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL",
2052 0x851A,
2053 "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z",
2056 0x851C,
2057 "GL_MAX_CUBE_MAP_TEXTURE_SIZE",
2060 0x8CD9,
2061 "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS",
2064 0x84CC,
2065 "GL_TEXTURE12",
2068 0x0BA2,
2069 "GL_VIEWPORT",
2072 0x84CA,
2073 "GL_TEXTURE10",
2076 0x0BA7,
2077 "GL_PATH_PROJECTION_MATRIX_CHROMIUM",
2080 0x84CF,
2081 "GL_TEXTURE15",
2084 0x84CE,
2085 "GL_TEXTURE14",
2088 0x84CD,
2089 "GL_TEXTURE13",
2092 0x83F9,
2093 "GL_PERFQUERY_DONOT_FLUSH_INTEL",
2096 0x9115,
2097 "GL_SYNC_FLAGS_APPLE",
2100 0x9286,
2101 "GL_SRC_NV",
2104 0x83F3,
2105 "GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE",
2108 0x83F2,
2109 "GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE",
2112 0x83F1,
2113 "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT",
2116 0x9114,
2117 "GL_SYNC_STATUS_APPLE",
2120 0x8C0A,
2121 "GL_SGX_BINARY_IMG",
2124 0x93BB,
2125 "GL_COMPRESSED_RGBA_ASTC_10x10_KHR",
2128 0x911C,
2129 "GL_CONDITION_SATISFIED_APPLE",
2132 0x911B,
2133 "GL_TIMEOUT_EXPIRED_APPLE",
2136 0x911A,
2137 "GL_ALREADY_SIGNALED_APPLE",
2140 0x9284,
2141 "GL_CONJOINT_NV",
2144 0x9124,
2145 "GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_EXT",
2148 0x911D,
2149 "GL_WAIT_FAILED_APPLE",
2152 0x929A,
2153 "GL_COLORBURN_KHR",
2156 0x929B,
2157 "GL_HARDLIGHT_KHR",
2160 0x929C,
2161 "GL_SOFTLIGHT_KHR",
2164 0x846D,
2165 "GL_ALIASED_POINT_SIZE_RANGE",
2168 0x929E,
2169 "GL_DIFFERENCE_KHR",
2172 0x929F,
2173 "GL_MINUS_NV",
2176 0x9282,
2177 "GL_UNCORRELATED_NV",
2180 0x9298,
2181 "GL_LIGHTEN_KHR",
2184 0x9299,
2185 "GL_COLORDODGE_KHR",
2188 0x9111,
2189 "GL_MAX_SERVER_WAIT_TIMEOUT_APPLE",
2192 0x93A6,
2193 "GL_PROGRAM_BINARY_ANGLE",
2196 0x9117,
2197 "GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE",
2200 0x93A0,
2201 "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE",
2204 0x93A3,
2205 "GL_FRAMEBUFFER_ATTACHMENT_ANGLE",
2208 0x93A2,
2209 "GL_TEXTURE_USAGE_ANGLE",
2212 0x8802,
2213 "GL_STENCIL_BACK_PASS_DEPTH_FAIL",
2216 0x9119,
2217 "GL_SIGNALED_APPLE",
2220 0x9118,
2221 "GL_UNSIGNALED_APPLE",
2224 0x9294,
2225 "GL_MULTIPLY_KHR",
2228 0x9295,
2229 "GL_SCREEN_KHR",
2232 0x9296,
2233 "GL_OVERLAY_KHR",
2236 0x9297,
2237 "GL_DARKEN_KHR",
2240 0x0020,
2241 "GL_MAP_UNSYNCHRONIZED_BIT_EXT",
2244 0x8E78,
2245 "GL_TESS_GEN_VERTEX_ORDER_EXT",
2248 0x8C01,
2249 "GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG",
2252 0x8C00,
2253 "GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG",
2256 0x8A52,
2257 "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT",
2260 0x8C02,
2261 "GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",
2264 0x84C9,
2265 "GL_TEXTURE9",
2268 0x84C8,
2269 "GL_TEXTURE8",
2272 0x8869,
2273 "GL_MAX_VERTEX_ATTRIBS",
2276 0x84C3,
2277 "GL_TEXTURE3",
2280 0x84C2,
2281 "GL_TEXTURE2",
2284 0x84C1,
2285 "GL_TEXTURE1",
2288 0x84C0,
2289 "GL_TEXTURE0",
2292 0x84C7,
2293 "GL_TEXTURE7",
2296 0x84C6,
2297 "GL_TEXTURE6",
2300 0x84C5,
2301 "GL_TEXTURE5",
2304 0x8803,
2305 "GL_STENCIL_BACK_PASS_DEPTH_PASS",
2308 0x928A,
2309 "GL_SRC_IN_NV",
2312 0x8518,
2313 "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y",
2316 0x8519,
2317 "GL_TEXTURE_CUBE_MAP_POSITIVE_Z",
2320 0x8514,
2321 "GL_TEXTURE_BINDING_CUBE_MAP",
2324 0x8515,
2325 "GL_TEXTURE_CUBE_MAP_POSITIVE_X",
2328 0x8516,
2329 "GL_TEXTURE_CUBE_MAP_NEGATIVE_X",
2332 0x8517,
2333 "GL_TEXTURE_CUBE_MAP_POSITIVE_Y",
2336 0x8513,
2337 "GL_TEXTURE_CUBE_MAP",
2340 0x8626,
2341 "GL_CURRENT_VERTEX_ATTRIB",
2344 0x92B1,
2345 "GL_PLUS_CLAMPED_NV",
2348 0x92B0,
2349 "GL_HSL_LUMINOSITY_KHR",
2352 0x92B3,
2353 "GL_MINUS_CLAMPED_NV",
2356 0x92B2,
2357 "GL_PLUS_CLAMPED_ALPHA_NV",
2360 0x8765,
2361 "GL_BUFFER_USAGE",
2364 0x8764,
2365 "GL_BUFFER_SIZE",
2368 0x8B99,
2369 "GL_PALETTE8_RGB5_A1_OES",
2372 0x0503,
2373 "GL_STACK_OVERFLOW_KHR",
2376 0x0502,
2377 "GL_INVALID_OPERATION",
2380 0x0501,
2381 "GL_INVALID_VALUE",
2384 0x0500,
2385 "GL_INVALID_ENUM",
2388 0x0507,
2389 "GL_CONTEXT_LOST_KHR",
2392 0x0506,
2393 "GL_INVALID_FRAMEBUFFER_OPERATION",
2396 0x0505,
2397 "GL_OUT_OF_MEMORY",
2400 0x0504,
2401 "GL_STACK_UNDERFLOW_KHR",
2404 0x0CF4,
2405 "GL_UNPACK_SKIP_PIXELS_EXT",
2408 0x0B44,
2409 "GL_CULL_FACE",
2412 0x8B5E,
2413 "GL_SAMPLER_2D",
2416 0x0B46,
2417 "GL_FRONT_FACE",
2420 0x8FB3,
2421 "GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM",
2424 0x824A,
2425 "GL_DEBUG_SOURCE_APPLICATION_KHR",
2428 0x824B,
2429 "GL_DEBUG_SOURCE_OTHER_KHR",
2432 0x824C,
2433 "GL_DEBUG_TYPE_ERROR_KHR",
2436 0x824D,
2437 "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR",
2440 0x824E,
2441 "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR",
2444 0x824F,
2445 "GL_DEBUG_TYPE_PORTABILITY_KHR",
2448 0x8B31,
2449 "GL_VERTEX_SHADER",
2452 0x8B30,
2453 "GL_FRAGMENT_SHADER",
2456 0x8FB1,
2457 "GL_CPU_OPTIMIZED_QCOM",
2460 0x93D2,
2461 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR",
2464 0x82FB,
2465 "GL_CONTEXT_RELEASE_BEHAVIOR_KHR",
2468 0x8B5A,
2469 "GL_FLOAT_MAT2",
2472 0x84D8,
2473 "GL_TEXTURE24",
2476 0x84D9,
2477 "GL_TEXTURE25",
2480 0x84D6,
2481 "GL_TEXTURE22",
2484 0x84D7,
2485 "GL_TEXTURE23",
2488 0x84D4,
2489 "GL_TEXTURE20",
2492 0x0D05,
2493 "GL_PACK_ALIGNMENT",
2496 0x84D2,
2497 "GL_TEXTURE18",
2500 0x84D3,
2501 "GL_TEXTURE19",
2504 0x84D0,
2505 "GL_TEXTURE16",
2508 0x84D1,
2509 "GL_TEXTURE17",
2512 0x93D1,
2513 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR",
2516 0x84DF,
2517 "GL_TEXTURE31",
2520 0x8B97,
2521 "GL_PALETTE8_R5_G6_B5_OES",
2524 0x84DD,
2525 "GL_TEXTURE29",
2528 0x84DE,
2529 "GL_TEXTURE30",
2532 0x84DB,
2533 "GL_TEXTURE27",
2536 0x84DC,
2537 "GL_TEXTURE28",
2540 0x6002,
2541 "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM",
2544 0x84DA,
2545 "GL_TEXTURE26",
2548 0x8242,
2549 "GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR",
2552 0x8243,
2553 "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR",
2556 0x8244,
2557 "GL_DEBUG_CALLBACK_FUNCTION_KHR",
2560 0x8245,
2561 "GL_DEBUG_CALLBACK_USER_PARAM_KHR",
2564 0x8246,
2565 "GL_DEBUG_SOURCE_API_KHR",
2568 0x8247,
2569 "GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR",
2572 0x8248,
2573 "GL_DEBUG_SOURCE_SHADER_COMPILER_KHR",
2576 0x8249,
2577 "GL_DEBUG_SOURCE_THIRD_PARTY_KHR",
2580 0x8B94,
2581 "GL_PALETTE4_RGB5_A1_OES",
2584 0x94F4,
2585 "GL_PERFQUERY_COUNTER_RAW_INTEL",
2588 0x92BE,
2589 "GL_PRIMITIVE_BOUNDING_BOX_EXT",
2592 0x8645,
2593 "GL_VERTEX_ATTRIB_ARRAY_POINTER",
2596 0x8865,
2597 "GL_CURRENT_QUERY_EXT",
2600 0x8E5B,
2601 "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_OES",
2604 0x8E5C,
2605 "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_OES",
2608 0x8E5D,
2609 "GL_FRAGMENT_INTERPOLATION_OFFSET_BITS_OES",
2612 0x906A,
2613 "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT",
2616 0x8E72,
2617 "GL_PATCH_VERTICES_EXT",
2620 0x8BD3,
2621 "GL_TEXTURE_HEIGHT_QCOM",
2624 0x87FA,
2625 "GL_3DC_XY_AMD",
2628 0x84C4,
2629 "GL_TEXTURE4",
2632 0x8E8A,
2633 "GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_EXT",
2636 0x85B5,
2637 "GL_VERTEX_ARRAY_BINDING_OES",
2640 0x8253,
2641 "GL_GUILTY_CONTEXT_RESET_KHR",
2644 0x8D6C,
2645 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT",
2648 0x92A1,
2649 "GL_CONTRAST_NV",
2652 0x8252,
2653 "GL_LOSE_CONTEXT_ON_RESET_KHR",
2656 0x8C4C,
2657 "GL_COMPRESSED_SRGB_S3TC_DXT1_NV",
2660 0x8C4E,
2661 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV",
2664 0x8251,
2665 "GL_DEBUG_TYPE_OTHER_KHR",
2668 0x8C4F,
2669 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV",
2672 0x9309,
2673 "GL_REFERENCED_BY_GEOMETRY_SHADER_EXT",
2676 0x93E9,
2677 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES",
2680 0x93E8,
2681 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES",
2684 0x8C43,
2685 "GL_SRGB8_ALPHA8_EXT",
2688 0x8C42,
2689 "GL_SRGB_ALPHA_EXT",
2692 0x8C45,
2693 "GL_SLUMINANCE8_ALPHA8_NV",
2696 0x8C44,
2697 "GL_SLUMINANCE_ALPHA_NV",
2700 0x8C47,
2701 "GL_SLUMINANCE8_NV",
2704 0x8C46,
2705 "GL_SLUMINANCE_NV",
2708 0x93E1,
2709 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES",
2712 0x93E0,
2713 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES",
2716 0x93E3,
2717 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES",
2720 0x93E2,
2721 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES",
2724 0x93E5,
2725 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES",
2728 0x93E4,
2729 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES",
2732 0x93E7,
2733 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES",
2736 0x93E6,
2737 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES",
2740 0x8D68,
2741 "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES",
2744 0x8E82,
2745 "GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_EXT",
2748 0x8E81,
2749 "GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_EXT",
2752 0x85BB,
2753 "GL_UNSIGNED_SHORT_8_8_REV_APPLE",
2756 0x8E87,
2757 "GL_TESS_EVALUATION_SHADER_EXT",
2760 0x8E86,
2761 "GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_EXT",
2764 0x8E85,
2765 "GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_EXT",
2768 0x8E84,
2769 "GL_MAX_TESS_PATCH_COMPONENTS_EXT",
2772 0x8D61,
2773 "GL_HALF_FLOAT_OES",
2776 0x8D62,
2777 "GL_RGB565",
2780 0x8E88,
2781 "GL_TESS_CONTROL_SHADER_EXT",
2784 0x8D64,
2785 "GL_ETC1_RGB8_OES",
2788 0x8D65,
2789 "GL_TEXTURE_EXTERNAL_OES",
2792 0x8D66,
2793 "GL_SAMPLER_EXTERNAL_OES",
2796 0x8D67,
2797 "GL_TEXTURE_BINDING_EXTERNAL_OES",
2800 0x10000000,
2801 "GL_MULTISAMPLE_BUFFER_BIT4_QCOM",
2804 0x04000000,
2805 "GL_MULTISAMPLE_BUFFER_BIT2_QCOM",
2808 0x90D7,
2809 "GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_EXT",
2812 0x90D9,
2813 "GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_EXT",
2816 0x90D8,
2817 "GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_EXT",
2820 0x8CEE,
2821 "GL_COLOR_ATTACHMENT14_EXT",
2824 0x1701,
2825 "GL_PATH_PROJECTION_CHROMIUM",
2828 0x2800,
2829 "GL_TEXTURE_MAG_FILTER",
2832 0x2801,
2833 "GL_TEXTURE_MIN_FILTER",
2836 0x2802,
2837 "GL_TEXTURE_WRAP_S",
2840 0x2803,
2841 "GL_TEXTURE_WRAP_T",
2844 0x3007,
2845 "GL_CLIP_DISTANCE7_APPLE",
2848 0x2703,
2849 "GL_LINEAR_MIPMAP_LINEAR",
2852 0x3005,
2853 "GL_CLIP_DISTANCE5_APPLE",
2856 0x3004,
2857 "GL_CLIP_DISTANCE4_APPLE",
2860 0x8B98,
2861 "GL_PALETTE8_RGBA4_OES",
2864 0x3002,
2865 "GL_CLIP_DISTANCE2_APPLE",
2868 0x3001,
2869 "GL_CLIP_DISTANCE1_APPLE",
2872 0x2702,
2873 "GL_NEAREST_MIPMAP_LINEAR",
2876 0x1F03,
2877 "GL_EXTENSIONS",
2880 0x1F02,
2881 "GL_VERSION",
2884 0x1F01,
2885 "GL_RENDERER",
2888 0x1F00,
2889 "GL_VENDOR",
2892 0x9247,
2893 "GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM",
2896 0x2701,
2897 "GL_LINEAR_MIPMAP_NEAREST",
2900 0x9245,
2901 "GL_OVERLAY_TRANSFORM_NONE_CHROMIUM",
2904 0x92B4,
2905 "GL_INVERT_OVG_NV",
2908 0x9249,
2909 "GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM",
2912 0x0B94,
2913 "GL_STENCIL_FAIL",
2916 0x8B4C,
2917 "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS",
2920 0x8B4D,
2921 "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS",
2924 0x8B4F,
2925 "GL_SHADER_TYPE",
2928 0x9123,
2929 "GL_MAX_GEOMETRY_INPUT_COMPONENTS_EXT",
2932 0x83FB,
2933 "GL_PERFQUERY_WAIT_INTEL",
2936 0x00004000,
2937 "GL_COLOR_BUFFER_BIT",
2940 0x00000010,
2941 "GL_TESS_EVALUATION_SHADER_BIT_EXT",
2944 0x8834,
2945 "GL_DRAW_BUFFER15_EXT",
2948 0x8833,
2949 "GL_DRAW_BUFFER14_EXT",
2952 0x8832,
2953 "GL_DRAW_BUFFER13_EXT",
2956 0x8831,
2957 "GL_DRAW_BUFFER12_EXT",
2960 0x8830,
2961 "GL_DRAW_BUFFER11_EXT",
2964 0x8DC5,
2965 "GL_SAMPLER_CUBE_SHADOW_NV",
2968 0x94FF,
2969 "GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL",
2972 0x94FE,
2973 "GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL",
2976 0x94FD,
2977 "GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL",
2980 0x94FC,
2981 "GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL",
2984 0x94FB,
2985 "GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL",
2988 0x93B8,
2989 "GL_COMPRESSED_RGBA_ASTC_10x5_KHR",
2992 0x8B65,
2993 "GL_FLOAT_MAT2x3_NV",
2996 0x9241,
2997 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM",
3000 0x00010000,
3001 "GL_STENCIL_BUFFER_BIT0_QCOM",
3004 0x83FA,
3005 "GL_PERFQUERY_FLUSH_INTEL",
3008 0x84F3,
3009 "GL_FENCE_STATUS_NV",
3012 0x0B93,
3013 "GL_STENCIL_VALUE_MASK",
3016 0x0B92,
3017 "GL_STENCIL_FUNC",
3020 0x0B91,
3021 "GL_STENCIL_CLEAR_VALUE",
3024 0x883D,
3025 "GL_BLEND_EQUATION_ALPHA",
3028 0x0B97,
3029 "GL_STENCIL_REF",
3032 0x0B96,
3033 "GL_STENCIL_PASS_DEPTH_PASS",
3036 0x0B95,
3037 "GL_STENCIL_PASS_DEPTH_FAIL",
3040 0x2700,
3041 "GL_NEAREST_MIPMAP_NEAREST",
3044 0x94F5,
3045 "GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL",
3048 0x0B98,
3049 "GL_STENCIL_WRITEMASK",
3052 0x94F3,
3053 "GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL",
3056 0x94F2,
3057 "GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL",
3060 0x94F1,
3061 "GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL",
3064 0x94F0,
3065 "GL_PERFQUERY_COUNTER_EVENT_INTEL",
3068 0x8B40,
3069 "GL_PROGRAM_OBJECT_EXT",
3072 0x1004,
3073 "GL_TEXTURE_BORDER_COLOR_EXT",
3076 0x8B48,
3077 "GL_SHADER_OBJECT_EXT",
3080 0x8DE1,
3081 "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT",
3084 0x8DE0,
3085 "GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT",
3088 0x924C,
3089 "GL_MOUSE_POSITION_CHROMIUM",
3092 0x924B,
3093 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM",
3096 0x924A,
3097 "GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM",
3100 0x20000000,
3101 "GL_MULTISAMPLE_BUFFER_BIT5_QCOM",
3105 "GL_MAILBOX_SIZE_CHROMIUM",
3108 0x0DE1,
3109 "GL_TEXTURE_2D",
3112 0x8A2C,
3113 "GL_MAX_GEOMETRY_UNIFORM_BLOCKS_EXT",
3116 0x80C9,
3117 "GL_BLEND_SRC_RGB",
3120 0x80C8,
3121 "GL_BLEND_DST_RGB",
3124 0x912F,
3125 "GL_TEXTURE_IMMUTABLE_FORMAT_EXT",
3128 0x8059,
3129 "GL_RGB10_A2_EXT",
3132 0x8058,
3133 "GL_RGBA8_OES",
3136 0x8B93,
3137 "GL_PALETTE4_RGBA4_OES",
3140 0x8E83,
3141 "GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_EXT",
3144 0x8051,
3145 "GL_RGB8_OES",
3148 0x8052,
3149 "GL_RGB10_EXT",
3152 0x8CAB,
3153 "GL_RENDERBUFFER_SAMPLES_ANGLE",
3156 0x8057,
3157 "GL_RGB5_A1",
3160 0x8056,
3161 "GL_RGBA4",
3164 0x150A,
3165 "GL_INVERT",
3168 0x01000000,
3169 "GL_MULTISAMPLE_BUFFER_BIT0_QCOM",
3172 0x78ED,
3173 "GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM",
3176 0x78EE,
3177 "GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM",
3180 0x6001,
3181 "GL_TEXTURE_POOL_MANAGED_CHROMIUM",
3184 0x0B45,
3185 "GL_CULL_FACE_MODE",
3188 0x8B92,
3189 "GL_PALETTE4_R5_G6_B5_OES",
3192 0x00100000,
3193 "GL_STENCIL_BUFFER_BIT4_QCOM",
3196 0x8E4E,
3197 "GL_LAST_VERTEX_CONVENTION_EXT",
3200 0x8E4D,
3201 "GL_FIRST_VERTEX_CONVENTION_EXT",
3204 0x8D20,
3205 "GL_STENCIL_ATTACHMENT",
3208 0x8B91,
3209 "GL_PALETTE4_RGBA8_OES",
3212 0x00000200,
3213 "GL_DEPTH_BUFFER_BIT1_QCOM",
3216 0x00008000,
3217 "GL_COVERAGE_BUFFER_BIT_NV",
3220 0x1506,
3221 "GL_XOR_NV",
3224 0x8CA8,
3225 "GL_READ_FRAMEBUFFER_ANGLE",
3228 0x8CA9,
3229 "GL_DRAW_FRAMEBUFFER_ANGLE",
3232 0x8CA6,
3233 "GL_FRAMEBUFFER_BINDING",
3236 0x8CA7,
3237 "GL_RENDERBUFFER_BINDING",
3240 0x8CA4,
3241 "GL_STENCIL_BACK_VALUE_MASK",
3244 0x8CA5,
3245 "GL_STENCIL_BACK_WRITEMASK",
3248 0x8B90,
3249 "GL_PALETTE4_RGB8_OES",
3252 0x8CA3,
3253 "GL_STENCIL_BACK_REF",
3256 0x80CB,
3257 "GL_BLEND_SRC_ALPHA",
3260 0x80CA,
3261 "GL_BLEND_DST_ALPHA",
3264 0x8CE7,
3265 "GL_COLOR_ATTACHMENT7_EXT",
3268 0x93B0,
3269 "GL_COMPRESSED_RGBA_ASTC_4x4_KHR",
3272 0x93B1,
3273 "GL_COMPRESSED_RGBA_ASTC_5x4_KHR",
3276 0x93B2,
3277 "GL_COMPRESSED_RGBA_ASTC_5x5_KHR",
3280 0x93B3,
3281 "GL_COMPRESSED_RGBA_ASTC_6x5_KHR",
3284 0x93B4,
3285 "GL_COMPRESSED_RGBA_ASTC_6x6_KHR",
3288 0x93B5,
3289 "GL_COMPRESSED_RGBA_ASTC_8x5_KHR",
3292 0x93B6,
3293 "GL_COMPRESSED_RGBA_ASTC_8x6_KHR",
3296 0x93B7,
3297 "GL_COMPRESSED_RGBA_ASTC_8x8_KHR",
3300 0x8CD6,
3301 "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT",
3304 0x93B9,
3305 "GL_COMPRESSED_RGBA_ASTC_10x6_KHR",
3308 0x8CE5,
3309 "GL_COLOR_ATTACHMENT5_EXT",
3312 0x8DC2,
3313 "GL_SAMPLER_BUFFER_EXT",
3316 0x8C36,
3317 "GL_SAMPLE_SHADING_OES",
3320 0x8C37,
3321 "GL_MIN_SAMPLE_SHADING_VALUE_OES",
3324 0x8CE9,
3325 "GL_COLOR_ATTACHMENT9_EXT",
3328 0x8B96,
3329 "GL_PALETTE8_RGBA8_OES",
3332 0x8872,
3333 "GL_MAX_TEXTURE_IMAGE_UNITS",
3336 0x8508,
3337 "GL_DECR_WRAP",
3340 0x92AD,
3341 "GL_HSL_HUE_KHR",
3344 0x92AE,
3345 "GL_HSL_SATURATION_KHR",
3348 0x92AF,
3349 "GL_HSL_COLOR_KHR",
3352 0x8BD4,
3353 "GL_TEXTURE_DEPTH_QCOM",
3356 0x8DC4,
3357 "GL_SAMPLER_2D_ARRAY_SHADOW_NV",
3360 0x8507,
3361 "GL_INCR_WRAP",
3364 0x82FC,
3365 "GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR",
3368 0x8895,
3369 "GL_ELEMENT_ARRAY_BUFFER_BINDING",
3372 0x8894,
3373 "GL_ARRAY_BUFFER_BINDING",
3376 0x92A3,
3377 "GL_INVERT_RGB_NV",
3380 0x905F,
3381 "GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT",
3384 0x92A5,
3385 "GL_LINEARBURN_NV",
3388 0x8893,
3389 "GL_ELEMENT_ARRAY_BUFFER",
3392 0x8892,
3393 "GL_ARRAY_BUFFER",
3396 0x92A8,
3397 "GL_PINLIGHT_NV",
3400 0x92A9,
3401 "GL_HARDMIX_NV",
3404 0x9112,
3405 "GL_OBJECT_TYPE_APPLE",
3408 0x90CC,
3409 "GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_EXT",
3412 0x90CD,
3413 "GL_MAX_GEOMETRY_IMAGE_UNIFORMS_EXT",
3416 0x919F,
3417 "GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT",
3420 0x919E,
3421 "GL_TEXTURE_BUFFER_SIZE_EXT",
3424 0x919D,
3425 "GL_TEXTURE_BUFFER_OFFSET_EXT",
3428 0x8BD8,
3429 "GL_TEXTURE_IMAGE_VALID_QCOM",
3432 0x8DA7,
3433 "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT",
3436 0x8DA8,
3437 "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT",
3440 0x887F,
3441 "GL_GEOMETRY_SHADER_INVOCATIONS_EXT",
3444 0x84D5,
3445 "GL_TEXTURE21",
3448 0x8C3A,
3449 "GL_R11F_G11F_B10F_APPLE",
3452 0x8C3B,
3453 "GL_UNSIGNED_INT_10F_11F_11F_REV_APPLE",
3456 0x8C3D,
3457 "GL_RGB9_E5_APPLE",
3460 0x8C3E,
3461 "GL_UNSIGNED_INT_5_9_9_9_REV_APPLE",
3464 0x9287,
3465 "GL_DST_NV",
3468 0x93BA,
3469 "GL_COMPRESSED_RGBA_ASTC_10x8_KHR",
3472 0x9285,
3473 "GL_BLEND_ADVANCED_COHERENT_KHR",
3476 0x93BC,
3477 "GL_COMPRESSED_RGBA_ASTC_12x10_KHR",
3480 0x93BD,
3481 "GL_COMPRESSED_RGBA_ASTC_12x12_KHR",
3484 0x84E8,
3485 "GL_MAX_RENDERBUFFER_SIZE",
3488 0x9281,
3489 "GL_BLEND_OVERLAP_NV",
3492 0x9280,
3493 "GL_BLEND_PREMULTIPLIED_SRC_NV",
3496 0x00002000,
3497 "GL_DEPTH_BUFFER_BIT5_QCOM",
3500 0x8370,
3501 "GL_MIRRORED_REPEAT",
3504 0x84E0,
3505 "GL_ACTIVE_TEXTURE",
3508 0x8800,
3509 "GL_STENCIL_BACK_FUNC",
3512 0x8801,
3513 "GL_STENCIL_BACK_FAIL",
3516 0x0D33,
3517 "GL_MAX_TEXTURE_SIZE",
3520 0x0D32,
3521 "GL_MAX_CLIP_DISTANCES_APPLE",
3524 0x8624,
3525 "GL_VERTEX_ATTRIB_ARRAY_STRIDE",
3528 0x8625,
3529 "GL_VERTEX_ATTRIB_ARRAY_TYPE",
3532 0x8622,
3533 "GL_VERTEX_ATTRIB_ARRAY_ENABLED",
3536 0x8623,
3537 "GL_VERTEX_ATTRIB_ARRAY_SIZE",
3540 0x8DB9,
3541 "GL_FRAMEBUFFER_SRGB_EXT",
3544 0x9307,
3545 "GL_REFERENCED_BY_TESS_CONTROL_SHADER_EXT",
3548 0x8259,
3549 "GL_ACTIVE_PROGRAM_EXT",
3552 0x8258,
3553 "GL_PROGRAM_SEPARABLE_EXT",
3556 0x8256,
3557 "GL_RESET_NOTIFICATION_STRATEGY_KHR",
3560 0x8255,
3561 "GL_UNKNOWN_CONTEXT_RESET_KHR",
3564 0x8254,
3565 "GL_INNOCENT_CONTEXT_RESET_KHR",
3568 0x1100,
3569 "GL_DONT_CARE",
3572 0x1101,
3573 "GL_FASTEST",
3576 0x1102,
3577 "GL_NICEST",
3580 0x8250,
3581 "GL_DEBUG_TYPE_PERFORMANCE_KHR",
3584 0x8CEB,
3585 "GL_COLOR_ATTACHMENT11_EXT",
3588 0x8CEC,
3589 "GL_COLOR_ATTACHMENT12_EXT",
3592 0x0408,
3593 "GL_FRONT_AND_BACK",
3596 0x8CEA,
3597 "GL_COLOR_ATTACHMENT10_EXT",
3600 0x8CEF,
3601 "GL_COLOR_ATTACHMENT15_EXT",
3604 0x8CED,
3605 "GL_COLOR_ATTACHMENT13_EXT",
3608 0x8829,
3609 "GL_DRAW_BUFFER4_EXT",
3612 0x0404,
3613 "GL_FRONT",
3616 0x0405,
3617 "GL_BACK",
3620 0x88E1,
3621 "GL_STREAM_READ",
3624 0x88E0,
3625 "GL_STREAM_DRAW",
3628 0x88E4,
3629 "GL_STATIC_DRAW",
3632 0x93C6,
3633 "GL_COMPRESSED_RGBA_ASTC_5x5x5_OES",
3636 0x88E8,
3637 "GL_DYNAMIC_DRAW",
3640 0x9291,
3641 "GL_PLUS_NV",
3644 0x8CAA,
3645 "GL_READ_FRAMEBUFFER_BINDING_ANGLE",
3648 0x93C5,
3649 "GL_COMPRESSED_RGBA_ASTC_5x5x4_OES",
3652 0x40000000,
3653 "GL_MULTISAMPLE_BUFFER_BIT6_QCOM",
3656 0x9116,
3657 "GL_SYNC_FENCE_APPLE",
3660 0x93C4,
3661 "GL_COMPRESSED_RGBA_ASTC_5x4x4_OES",
3664 0x88EE,
3665 "GL_ETC1_SRGB8_NV",
3668 0x78EC,
3669 "GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM",
3672 0x93C3,
3673 "GL_COMPRESSED_RGBA_ASTC_4x4x4_OES",
3676 0x00000800,
3677 "GL_DEPTH_BUFFER_BIT3_QCOM",
3680 0x1903,
3681 "GL_RED_EXT",
3684 0x93C2,
3685 "GL_COMPRESSED_RGBA_ASTC_4x4x3_OES",
3688 0x8CE2,
3689 "GL_COLOR_ATTACHMENT2_EXT",
3692 0x8BC1,
3693 "GL_COUNTER_RANGE_AMD",
3696 0x8CE0,
3697 "GL_COLOR_ATTACHMENT0",
3700 0x8CE1,
3701 "GL_COLOR_ATTACHMENT1_EXT",
3704 0x8CE6,
3705 "GL_COLOR_ATTACHMENT6_EXT",
3708 0x93C1,
3709 "GL_COMPRESSED_RGBA_ASTC_4x3x3_OES",
3712 0x8A1F,
3713 "GL_RGB_422_APPLE",
3716 0x93DC,
3717 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR",
3720 0x9292,
3721 "GL_PLUS_DARKER_NV",
3724 0x8CE8,
3725 "GL_COLOR_ATTACHMENT8_EXT",
3728 0x93C0,
3729 "GL_COMPRESSED_RGBA_ASTC_3x3x3_OES",
3732 0x0C23,
3733 "GL_COLOR_WRITEMASK",
3736 0x0C22,
3737 "GL_COLOR_CLEAR_VALUE",
3740 0x8823,
3741 "GL_WRITEONLY_RENDERING_QCOM",
3744 0x8824,
3745 "GL_MAX_DRAW_BUFFERS_EXT",
3748 0x825E,
3749 "GL_LAYER_PROVOKING_VERTEX_EXT",
3752 0x825A,
3753 "GL_PROGRAM_PIPELINE_BINDING_EXT",
3756 0x1909,
3757 "GL_LUMINANCE",
3760 0x0D3A,
3761 "GL_MAX_VIEWPORT_DIMS",
3764 0x8B53,
3765 "GL_INT_VEC2",
3768 0x8826,
3769 "GL_DRAW_BUFFER1_EXT",
3772 0x809E,
3773 "GL_SAMPLE_ALPHA_TO_COVERAGE",
3776 0x8BC0,
3777 "GL_COUNTER_TYPE_AMD",
3780 0x8BC3,
3781 "GL_PERCENTAGE_AMD",
3784 0x8BC2,
3785 "GL_UNSIGNED_INT64_AMD",
3788 0x8BC5,
3789 "GL_PERFMON_RESULT_SIZE_AMD",
3792 0x8BC4,
3793 "GL_PERFMON_RESULT_AVAILABLE_AMD",
3796 0x8BC6,
3797 "GL_PERFMON_RESULT_AMD",
3801 const GLES2Util::EnumToString* const GLES2Util::enum_to_string_table_ =
3802 enum_to_string_table;
3803 const size_t GLES2Util::enum_to_string_table_len_ =
3804 sizeof(enum_to_string_table) / sizeof(enum_to_string_table[0]);
3806 std::string GLES2Util::GetStringAttachment(uint32_t value) {
3807 static const EnumToString string_table[] = {
3808 {GL_COLOR_ATTACHMENT0, "GL_COLOR_ATTACHMENT0"},
3809 {GL_DEPTH_ATTACHMENT, "GL_DEPTH_ATTACHMENT"},
3810 {GL_STENCIL_ATTACHMENT, "GL_STENCIL_ATTACHMENT"},
3812 return GLES2Util::GetQualifiedEnumString(string_table,
3813 arraysize(string_table), value);
3816 std::string GLES2Util::GetStringBackbufferAttachment(uint32_t value) {
3817 static const EnumToString string_table[] = {
3818 {GL_COLOR_EXT, "GL_COLOR_EXT"},
3819 {GL_DEPTH_EXT, "GL_DEPTH_EXT"},
3820 {GL_STENCIL_EXT, "GL_STENCIL_EXT"},
3822 return GLES2Util::GetQualifiedEnumString(string_table,
3823 arraysize(string_table), value);
3826 std::string GLES2Util::GetStringBlitFilter(uint32_t value) {
3827 static const EnumToString string_table[] = {
3828 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"},
3830 return GLES2Util::GetQualifiedEnumString(string_table,
3831 arraysize(string_table), value);
3834 std::string GLES2Util::GetStringBufferParameter(uint32_t value) {
3835 static const EnumToString string_table[] = {
3836 {GL_BUFFER_SIZE, "GL_BUFFER_SIZE"}, {GL_BUFFER_USAGE, "GL_BUFFER_USAGE"},
3838 return GLES2Util::GetQualifiedEnumString(string_table,
3839 arraysize(string_table), value);
3842 std::string GLES2Util::GetStringBufferTarget(uint32_t value) {
3843 static const EnumToString string_table[] = {
3844 {GL_ARRAY_BUFFER, "GL_ARRAY_BUFFER"},
3845 {GL_ELEMENT_ARRAY_BUFFER, "GL_ELEMENT_ARRAY_BUFFER"},
3847 return GLES2Util::GetQualifiedEnumString(string_table,
3848 arraysize(string_table), value);
3851 std::string GLES2Util::GetStringBufferUsage(uint32_t value) {
3852 static const EnumToString string_table[] = {
3853 {GL_STREAM_DRAW, "GL_STREAM_DRAW"},
3854 {GL_STATIC_DRAW, "GL_STATIC_DRAW"},
3855 {GL_DYNAMIC_DRAW, "GL_DYNAMIC_DRAW"},
3857 return GLES2Util::GetQualifiedEnumString(string_table,
3858 arraysize(string_table), value);
3861 std::string GLES2Util::GetStringCapability(uint32_t value) {
3862 static const EnumToString string_table[] = {
3863 {GL_BLEND, "GL_BLEND"},
3864 {GL_CULL_FACE, "GL_CULL_FACE"},
3865 {GL_DEPTH_TEST, "GL_DEPTH_TEST"},
3866 {GL_DITHER, "GL_DITHER"},
3867 {GL_POLYGON_OFFSET_FILL, "GL_POLYGON_OFFSET_FILL"},
3868 {GL_SAMPLE_ALPHA_TO_COVERAGE, "GL_SAMPLE_ALPHA_TO_COVERAGE"},
3869 {GL_SAMPLE_COVERAGE, "GL_SAMPLE_COVERAGE"},
3870 {GL_SCISSOR_TEST, "GL_SCISSOR_TEST"},
3871 {GL_STENCIL_TEST, "GL_STENCIL_TEST"},
3873 return GLES2Util::GetQualifiedEnumString(string_table,
3874 arraysize(string_table), value);
3877 std::string GLES2Util::GetStringCmpFunction(uint32_t value) {
3878 static const EnumToString string_table[] = {
3879 {GL_NEVER, "GL_NEVER"},
3880 {GL_LESS, "GL_LESS"},
3881 {GL_EQUAL, "GL_EQUAL"},
3882 {GL_LEQUAL, "GL_LEQUAL"},
3883 {GL_GREATER, "GL_GREATER"},
3884 {GL_NOTEQUAL, "GL_NOTEQUAL"},
3885 {GL_GEQUAL, "GL_GEQUAL"},
3886 {GL_ALWAYS, "GL_ALWAYS"},
3888 return GLES2Util::GetQualifiedEnumString(string_table,
3889 arraysize(string_table), value);
3892 std::string GLES2Util::GetStringCompressedTextureFormat(uint32_t value) {
3893 return GLES2Util::GetQualifiedEnumString(NULL, 0, value);
3896 std::string GLES2Util::GetStringDrawMode(uint32_t value) {
3897 static const EnumToString string_table[] = {
3898 {GL_POINTS, "GL_POINTS"},
3899 {GL_LINE_STRIP, "GL_LINE_STRIP"},
3900 {GL_LINE_LOOP, "GL_LINE_LOOP"},
3901 {GL_LINES, "GL_LINES"},
3902 {GL_TRIANGLE_STRIP, "GL_TRIANGLE_STRIP"},
3903 {GL_TRIANGLE_FAN, "GL_TRIANGLE_FAN"},
3904 {GL_TRIANGLES, "GL_TRIANGLES"},
3906 return GLES2Util::GetQualifiedEnumString(string_table,
3907 arraysize(string_table), value);
3910 std::string GLES2Util::GetStringDstBlendFactor(uint32_t value) {
3911 static const EnumToString string_table[] = {
3912 {GL_ZERO, "GL_ZERO"},
3913 {GL_ONE, "GL_ONE"},
3914 {GL_SRC_COLOR, "GL_SRC_COLOR"},
3915 {GL_ONE_MINUS_SRC_COLOR, "GL_ONE_MINUS_SRC_COLOR"},
3916 {GL_DST_COLOR, "GL_DST_COLOR"},
3917 {GL_ONE_MINUS_DST_COLOR, "GL_ONE_MINUS_DST_COLOR"},
3918 {GL_SRC_ALPHA, "GL_SRC_ALPHA"},
3919 {GL_ONE_MINUS_SRC_ALPHA, "GL_ONE_MINUS_SRC_ALPHA"},
3920 {GL_DST_ALPHA, "GL_DST_ALPHA"},
3921 {GL_ONE_MINUS_DST_ALPHA, "GL_ONE_MINUS_DST_ALPHA"},
3922 {GL_CONSTANT_COLOR, "GL_CONSTANT_COLOR"},
3923 {GL_ONE_MINUS_CONSTANT_COLOR, "GL_ONE_MINUS_CONSTANT_COLOR"},
3924 {GL_CONSTANT_ALPHA, "GL_CONSTANT_ALPHA"},
3925 {GL_ONE_MINUS_CONSTANT_ALPHA, "GL_ONE_MINUS_CONSTANT_ALPHA"},
3927 return GLES2Util::GetQualifiedEnumString(string_table,
3928 arraysize(string_table), value);
3931 std::string GLES2Util::GetStringEquation(uint32_t value) {
3932 static const EnumToString string_table[] = {
3933 {GL_FUNC_ADD, "GL_FUNC_ADD"},
3934 {GL_FUNC_SUBTRACT, "GL_FUNC_SUBTRACT"},
3935 {GL_FUNC_REVERSE_SUBTRACT, "GL_FUNC_REVERSE_SUBTRACT"},
3937 return GLES2Util::GetQualifiedEnumString(string_table,
3938 arraysize(string_table), value);
3941 std::string GLES2Util::GetStringFaceMode(uint32_t value) {
3942 static const EnumToString string_table[] = {
3943 {GL_CW, "GL_CW"}, {GL_CCW, "GL_CCW"},
3945 return GLES2Util::GetQualifiedEnumString(string_table,
3946 arraysize(string_table), value);
3949 std::string GLES2Util::GetStringFaceType(uint32_t value) {
3950 static const EnumToString string_table[] = {
3951 {GL_FRONT, "GL_FRONT"},
3952 {GL_BACK, "GL_BACK"},
3953 {GL_FRONT_AND_BACK, "GL_FRONT_AND_BACK"},
3955 return GLES2Util::GetQualifiedEnumString(string_table,
3956 arraysize(string_table), value);
3959 std::string GLES2Util::GetStringFrameBufferParameter(uint32_t value) {
3960 static const EnumToString string_table[] = {
3961 {GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,
3962 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE"},
3963 {GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,
3964 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME"},
3965 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL,
3966 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL"},
3967 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE,
3968 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE"},
3970 return GLES2Util::GetQualifiedEnumString(string_table,
3971 arraysize(string_table), value);
3974 std::string GLES2Util::GetStringFrameBufferTarget(uint32_t value) {
3975 static const EnumToString string_table[] = {
3976 {GL_FRAMEBUFFER, "GL_FRAMEBUFFER"},
3978 return GLES2Util::GetQualifiedEnumString(string_table,
3979 arraysize(string_table), value);
3982 std::string GLES2Util::GetStringGLState(uint32_t value) {
3983 static const EnumToString string_table[] = {
3984 {GL_ACTIVE_TEXTURE, "GL_ACTIVE_TEXTURE"},
3985 {GL_ALIASED_LINE_WIDTH_RANGE, "GL_ALIASED_LINE_WIDTH_RANGE"},
3986 {GL_ALIASED_POINT_SIZE_RANGE, "GL_ALIASED_POINT_SIZE_RANGE"},
3987 {GL_ALPHA_BITS, "GL_ALPHA_BITS"},
3988 {GL_ARRAY_BUFFER_BINDING, "GL_ARRAY_BUFFER_BINDING"},
3989 {GL_BLUE_BITS, "GL_BLUE_BITS"},
3990 {GL_COMPRESSED_TEXTURE_FORMATS, "GL_COMPRESSED_TEXTURE_FORMATS"},
3991 {GL_CURRENT_PROGRAM, "GL_CURRENT_PROGRAM"},
3992 {GL_DEPTH_BITS, "GL_DEPTH_BITS"},
3993 {GL_DEPTH_RANGE, "GL_DEPTH_RANGE"},
3994 {GL_ELEMENT_ARRAY_BUFFER_BINDING, "GL_ELEMENT_ARRAY_BUFFER_BINDING"},
3995 {GL_FRAMEBUFFER_BINDING, "GL_FRAMEBUFFER_BINDING"},
3996 {GL_GENERATE_MIPMAP_HINT, "GL_GENERATE_MIPMAP_HINT"},
3997 {GL_GREEN_BITS, "GL_GREEN_BITS"},
3998 {GL_IMPLEMENTATION_COLOR_READ_FORMAT,
3999 "GL_IMPLEMENTATION_COLOR_READ_FORMAT"},
4000 {GL_IMPLEMENTATION_COLOR_READ_TYPE, "GL_IMPLEMENTATION_COLOR_READ_TYPE"},
4001 {GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,
4002 "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS"},
4003 {GL_MAX_CUBE_MAP_TEXTURE_SIZE, "GL_MAX_CUBE_MAP_TEXTURE_SIZE"},
4004 {GL_MAX_FRAGMENT_UNIFORM_VECTORS, "GL_MAX_FRAGMENT_UNIFORM_VECTORS"},
4005 {GL_MAX_RENDERBUFFER_SIZE, "GL_MAX_RENDERBUFFER_SIZE"},
4006 {GL_MAX_TEXTURE_IMAGE_UNITS, "GL_MAX_TEXTURE_IMAGE_UNITS"},
4007 {GL_MAX_TEXTURE_SIZE, "GL_MAX_TEXTURE_SIZE"},
4008 {GL_MAX_VARYING_VECTORS, "GL_MAX_VARYING_VECTORS"},
4009 {GL_MAX_VERTEX_ATTRIBS, "GL_MAX_VERTEX_ATTRIBS"},
4010 {GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS"},
4011 {GL_MAX_VERTEX_UNIFORM_VECTORS, "GL_MAX_VERTEX_UNIFORM_VECTORS"},
4012 {GL_MAX_VIEWPORT_DIMS, "GL_MAX_VIEWPORT_DIMS"},
4013 {GL_NUM_COMPRESSED_TEXTURE_FORMATS, "GL_NUM_COMPRESSED_TEXTURE_FORMATS"},
4014 {GL_NUM_SHADER_BINARY_FORMATS, "GL_NUM_SHADER_BINARY_FORMATS"},
4015 {GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT"},
4016 {GL_RED_BITS, "GL_RED_BITS"},
4017 {GL_RENDERBUFFER_BINDING, "GL_RENDERBUFFER_BINDING"},
4018 {GL_SAMPLE_BUFFERS, "GL_SAMPLE_BUFFERS"},
4019 {GL_SAMPLE_COVERAGE_INVERT, "GL_SAMPLE_COVERAGE_INVERT"},
4020 {GL_SAMPLE_COVERAGE_VALUE, "GL_SAMPLE_COVERAGE_VALUE"},
4021 {GL_SAMPLES, "GL_SAMPLES"},
4022 {GL_SCISSOR_BOX, "GL_SCISSOR_BOX"},
4023 {GL_SHADER_BINARY_FORMATS, "GL_SHADER_BINARY_FORMATS"},
4024 {GL_SHADER_COMPILER, "GL_SHADER_COMPILER"},
4025 {GL_SUBPIXEL_BITS, "GL_SUBPIXEL_BITS"},
4026 {GL_STENCIL_BITS, "GL_STENCIL_BITS"},
4027 {GL_TEXTURE_BINDING_2D, "GL_TEXTURE_BINDING_2D"},
4028 {GL_TEXTURE_BINDING_CUBE_MAP, "GL_TEXTURE_BINDING_CUBE_MAP"},
4029 {GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT"},
4030 {GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM"},
4031 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
4032 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"},
4033 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
4034 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"},
4035 {GL_BIND_GENERATES_RESOURCE_CHROMIUM,
4036 "GL_BIND_GENERATES_RESOURCE_CHROMIUM"},
4037 {GL_VERTEX_ARRAY_BINDING_OES, "GL_VERTEX_ARRAY_BINDING_OES"},
4038 {GL_VIEWPORT, "GL_VIEWPORT"},
4039 {GL_BLEND_COLOR, "GL_BLEND_COLOR"},
4040 {GL_BLEND_EQUATION_RGB, "GL_BLEND_EQUATION_RGB"},
4041 {GL_BLEND_EQUATION_ALPHA, "GL_BLEND_EQUATION_ALPHA"},
4042 {GL_BLEND_SRC_RGB, "GL_BLEND_SRC_RGB"},
4043 {GL_BLEND_DST_RGB, "GL_BLEND_DST_RGB"},
4044 {GL_BLEND_SRC_ALPHA, "GL_BLEND_SRC_ALPHA"},
4045 {GL_BLEND_DST_ALPHA, "GL_BLEND_DST_ALPHA"},
4046 {GL_COLOR_CLEAR_VALUE, "GL_COLOR_CLEAR_VALUE"},
4047 {GL_DEPTH_CLEAR_VALUE, "GL_DEPTH_CLEAR_VALUE"},
4048 {GL_STENCIL_CLEAR_VALUE, "GL_STENCIL_CLEAR_VALUE"},
4049 {GL_COLOR_WRITEMASK, "GL_COLOR_WRITEMASK"},
4050 {GL_CULL_FACE_MODE, "GL_CULL_FACE_MODE"},
4051 {GL_DEPTH_FUNC, "GL_DEPTH_FUNC"},
4052 {GL_DEPTH_WRITEMASK, "GL_DEPTH_WRITEMASK"},
4053 {GL_FRONT_FACE, "GL_FRONT_FACE"},
4054 {GL_LINE_WIDTH, "GL_LINE_WIDTH"},
4055 {GL_POLYGON_OFFSET_FACTOR, "GL_POLYGON_OFFSET_FACTOR"},
4056 {GL_POLYGON_OFFSET_UNITS, "GL_POLYGON_OFFSET_UNITS"},
4057 {GL_STENCIL_FUNC, "GL_STENCIL_FUNC"},
4058 {GL_STENCIL_REF, "GL_STENCIL_REF"},
4059 {GL_STENCIL_VALUE_MASK, "GL_STENCIL_VALUE_MASK"},
4060 {GL_STENCIL_BACK_FUNC, "GL_STENCIL_BACK_FUNC"},
4061 {GL_STENCIL_BACK_REF, "GL_STENCIL_BACK_REF"},
4062 {GL_STENCIL_BACK_VALUE_MASK, "GL_STENCIL_BACK_VALUE_MASK"},
4063 {GL_STENCIL_WRITEMASK, "GL_STENCIL_WRITEMASK"},
4064 {GL_STENCIL_BACK_WRITEMASK, "GL_STENCIL_BACK_WRITEMASK"},
4065 {GL_STENCIL_FAIL, "GL_STENCIL_FAIL"},
4066 {GL_STENCIL_PASS_DEPTH_FAIL, "GL_STENCIL_PASS_DEPTH_FAIL"},
4067 {GL_STENCIL_PASS_DEPTH_PASS, "GL_STENCIL_PASS_DEPTH_PASS"},
4068 {GL_STENCIL_BACK_FAIL, "GL_STENCIL_BACK_FAIL"},
4069 {GL_STENCIL_BACK_PASS_DEPTH_FAIL, "GL_STENCIL_BACK_PASS_DEPTH_FAIL"},
4070 {GL_STENCIL_BACK_PASS_DEPTH_PASS, "GL_STENCIL_BACK_PASS_DEPTH_PASS"},
4071 {GL_BLEND, "GL_BLEND"},
4072 {GL_CULL_FACE, "GL_CULL_FACE"},
4073 {GL_DEPTH_TEST, "GL_DEPTH_TEST"},
4074 {GL_DITHER, "GL_DITHER"},
4075 {GL_POLYGON_OFFSET_FILL, "GL_POLYGON_OFFSET_FILL"},
4076 {GL_SAMPLE_ALPHA_TO_COVERAGE, "GL_SAMPLE_ALPHA_TO_COVERAGE"},
4077 {GL_SAMPLE_COVERAGE, "GL_SAMPLE_COVERAGE"},
4078 {GL_SCISSOR_TEST, "GL_SCISSOR_TEST"},
4079 {GL_STENCIL_TEST, "GL_STENCIL_TEST"},
4081 return GLES2Util::GetQualifiedEnumString(string_table,
4082 arraysize(string_table), value);
4085 std::string GLES2Util::GetStringGetMaxIndexType(uint32_t value) {
4086 static const EnumToString string_table[] = {
4087 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4088 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
4089 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
4091 return GLES2Util::GetQualifiedEnumString(string_table,
4092 arraysize(string_table), value);
4095 std::string GLES2Util::GetStringGetTexParamTarget(uint32_t value) {
4096 static const EnumToString string_table[] = {
4097 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
4098 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"},
4100 return GLES2Util::GetQualifiedEnumString(string_table,
4101 arraysize(string_table), value);
4104 std::string GLES2Util::GetStringHintMode(uint32_t value) {
4105 static const EnumToString string_table[] = {
4106 {GL_FASTEST, "GL_FASTEST"},
4107 {GL_NICEST, "GL_NICEST"},
4108 {GL_DONT_CARE, "GL_DONT_CARE"},
4110 return GLES2Util::GetQualifiedEnumString(string_table,
4111 arraysize(string_table), value);
4114 std::string GLES2Util::GetStringHintTarget(uint32_t value) {
4115 static const EnumToString string_table[] = {
4116 {GL_GENERATE_MIPMAP_HINT, "GL_GENERATE_MIPMAP_HINT"},
4118 return GLES2Util::GetQualifiedEnumString(string_table,
4119 arraysize(string_table), value);
4122 std::string GLES2Util::GetStringImageInternalFormat(uint32_t value) {
4123 static const EnumToString string_table[] = {
4124 {GL_RGB, "GL_RGB"}, {GL_RGBA, "GL_RGBA"},
4126 return GLES2Util::GetQualifiedEnumString(string_table,
4127 arraysize(string_table), value);
4130 std::string GLES2Util::GetStringImageUsage(uint32_t value) {
4131 static const EnumToString string_table[] = {
4132 {GL_MAP_CHROMIUM, "GL_MAP_CHROMIUM"},
4133 {GL_SCANOUT_CHROMIUM, "GL_SCANOUT_CHROMIUM"},
4135 return GLES2Util::GetQualifiedEnumString(string_table,
4136 arraysize(string_table), value);
4139 std::string GLES2Util::GetStringIndexType(uint32_t value) {
4140 static const EnumToString string_table[] = {
4141 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4142 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
4144 return GLES2Util::GetQualifiedEnumString(string_table,
4145 arraysize(string_table), value);
4148 std::string GLES2Util::GetStringMatrixMode(uint32_t value) {
4149 static const EnumToString string_table[] = {
4150 {GL_PATH_PROJECTION_CHROMIUM, "GL_PATH_PROJECTION_CHROMIUM"},
4151 {GL_PATH_MODELVIEW_CHROMIUM, "GL_PATH_MODELVIEW_CHROMIUM"},
4153 return GLES2Util::GetQualifiedEnumString(string_table,
4154 arraysize(string_table), value);
4157 std::string GLES2Util::GetStringPixelStore(uint32_t value) {
4158 static const EnumToString string_table[] = {
4159 {GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT"},
4160 {GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT"},
4161 {GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM"},
4162 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
4163 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"},
4164 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
4165 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"},
4167 return GLES2Util::GetQualifiedEnumString(string_table,
4168 arraysize(string_table), value);
4171 std::string GLES2Util::GetStringPixelType(uint32_t value) {
4172 static const EnumToString string_table[] = {
4173 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4174 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"},
4175 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"},
4176 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"},
4178 return GLES2Util::GetQualifiedEnumString(string_table,
4179 arraysize(string_table), value);
4182 std::string GLES2Util::GetStringProgramParameter(uint32_t value) {
4183 static const EnumToString string_table[] = {
4184 {GL_DELETE_STATUS, "GL_DELETE_STATUS"},
4185 {GL_LINK_STATUS, "GL_LINK_STATUS"},
4186 {GL_VALIDATE_STATUS, "GL_VALIDATE_STATUS"},
4187 {GL_INFO_LOG_LENGTH, "GL_INFO_LOG_LENGTH"},
4188 {GL_ATTACHED_SHADERS, "GL_ATTACHED_SHADERS"},
4189 {GL_ACTIVE_ATTRIBUTES, "GL_ACTIVE_ATTRIBUTES"},
4190 {GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH"},
4191 {GL_ACTIVE_UNIFORMS, "GL_ACTIVE_UNIFORMS"},
4192 {GL_ACTIVE_UNIFORM_MAX_LENGTH, "GL_ACTIVE_UNIFORM_MAX_LENGTH"},
4194 return GLES2Util::GetQualifiedEnumString(string_table,
4195 arraysize(string_table), value);
4198 std::string GLES2Util::GetStringQueryObjectParameter(uint32_t value) {
4199 static const EnumToString string_table[] = {
4200 {GL_QUERY_RESULT_EXT, "GL_QUERY_RESULT_EXT"},
4201 {GL_QUERY_RESULT_AVAILABLE_EXT, "GL_QUERY_RESULT_AVAILABLE_EXT"},
4203 return GLES2Util::GetQualifiedEnumString(string_table,
4204 arraysize(string_table), value);
4207 std::string GLES2Util::GetStringQueryParameter(uint32_t value) {
4208 static const EnumToString string_table[] = {
4209 {GL_CURRENT_QUERY_EXT, "GL_CURRENT_QUERY_EXT"},
4211 return GLES2Util::GetQualifiedEnumString(string_table,
4212 arraysize(string_table), value);
4215 std::string GLES2Util::GetStringQueryTarget(uint32_t value) {
4216 static const EnumToString string_table[] = {
4217 {GL_ANY_SAMPLES_PASSED_EXT, "GL_ANY_SAMPLES_PASSED_EXT"},
4218 {GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT,
4219 "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT"},
4220 {GL_COMMANDS_ISSUED_CHROMIUM, "GL_COMMANDS_ISSUED_CHROMIUM"},
4221 {GL_LATENCY_QUERY_CHROMIUM, "GL_LATENCY_QUERY_CHROMIUM"},
4222 {GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM,
4223 "GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM"},
4224 {GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM,
4225 "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM"},
4226 {GL_COMMANDS_COMPLETED_CHROMIUM, "GL_COMMANDS_COMPLETED_CHROMIUM"},
4228 return GLES2Util::GetQualifiedEnumString(string_table,
4229 arraysize(string_table), value);
4232 std::string GLES2Util::GetStringReadPixelFormat(uint32_t value) {
4233 static const EnumToString string_table[] = {
4234 {GL_ALPHA, "GL_ALPHA"}, {GL_RGB, "GL_RGB"}, {GL_RGBA, "GL_RGBA"},
4236 return GLES2Util::GetQualifiedEnumString(string_table,
4237 arraysize(string_table), value);
4240 std::string GLES2Util::GetStringReadPixelType(uint32_t value) {
4241 static const EnumToString string_table[] = {
4242 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4243 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"},
4244 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"},
4245 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"},
4247 return GLES2Util::GetQualifiedEnumString(string_table,
4248 arraysize(string_table), value);
4251 std::string GLES2Util::GetStringRenderBufferFormat(uint32_t value) {
4252 static const EnumToString string_table[] = {
4253 {GL_RGBA4, "GL_RGBA4"},
4254 {GL_RGB565, "GL_RGB565"},
4255 {GL_RGB5_A1, "GL_RGB5_A1"},
4256 {GL_DEPTH_COMPONENT16, "GL_DEPTH_COMPONENT16"},
4257 {GL_STENCIL_INDEX8, "GL_STENCIL_INDEX8"},
4259 return GLES2Util::GetQualifiedEnumString(string_table,
4260 arraysize(string_table), value);
4263 std::string GLES2Util::GetStringRenderBufferParameter(uint32_t value) {
4264 static const EnumToString string_table[] = {
4265 {GL_RENDERBUFFER_RED_SIZE, "GL_RENDERBUFFER_RED_SIZE"},
4266 {GL_RENDERBUFFER_GREEN_SIZE, "GL_RENDERBUFFER_GREEN_SIZE"},
4267 {GL_RENDERBUFFER_BLUE_SIZE, "GL_RENDERBUFFER_BLUE_SIZE"},
4268 {GL_RENDERBUFFER_ALPHA_SIZE, "GL_RENDERBUFFER_ALPHA_SIZE"},
4269 {GL_RENDERBUFFER_DEPTH_SIZE, "GL_RENDERBUFFER_DEPTH_SIZE"},
4270 {GL_RENDERBUFFER_STENCIL_SIZE, "GL_RENDERBUFFER_STENCIL_SIZE"},
4271 {GL_RENDERBUFFER_WIDTH, "GL_RENDERBUFFER_WIDTH"},
4272 {GL_RENDERBUFFER_HEIGHT, "GL_RENDERBUFFER_HEIGHT"},
4273 {GL_RENDERBUFFER_INTERNAL_FORMAT, "GL_RENDERBUFFER_INTERNAL_FORMAT"},
4275 return GLES2Util::GetQualifiedEnumString(string_table,
4276 arraysize(string_table), value);
4279 std::string GLES2Util::GetStringRenderBufferTarget(uint32_t value) {
4280 static const EnumToString string_table[] = {
4281 {GL_RENDERBUFFER, "GL_RENDERBUFFER"},
4283 return GLES2Util::GetQualifiedEnumString(string_table,
4284 arraysize(string_table), value);
4287 std::string GLES2Util::GetStringResetStatus(uint32_t value) {
4288 static const EnumToString string_table[] = {
4289 {GL_GUILTY_CONTEXT_RESET_ARB, "GL_GUILTY_CONTEXT_RESET_ARB"},
4290 {GL_INNOCENT_CONTEXT_RESET_ARB, "GL_INNOCENT_CONTEXT_RESET_ARB"},
4291 {GL_UNKNOWN_CONTEXT_RESET_ARB, "GL_UNKNOWN_CONTEXT_RESET_ARB"},
4293 return GLES2Util::GetQualifiedEnumString(string_table,
4294 arraysize(string_table), value);
4297 std::string GLES2Util::GetStringShaderBinaryFormat(uint32_t value) {
4298 return GLES2Util::GetQualifiedEnumString(NULL, 0, value);
4301 std::string GLES2Util::GetStringShaderParameter(uint32_t value) {
4302 static const EnumToString string_table[] = {
4303 {GL_SHADER_TYPE, "GL_SHADER_TYPE"},
4304 {GL_DELETE_STATUS, "GL_DELETE_STATUS"},
4305 {GL_COMPILE_STATUS, "GL_COMPILE_STATUS"},
4306 {GL_INFO_LOG_LENGTH, "GL_INFO_LOG_LENGTH"},
4307 {GL_SHADER_SOURCE_LENGTH, "GL_SHADER_SOURCE_LENGTH"},
4308 {GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE,
4309 "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE"},
4311 return GLES2Util::GetQualifiedEnumString(string_table,
4312 arraysize(string_table), value);
4315 std::string GLES2Util::GetStringShaderPrecision(uint32_t value) {
4316 static const EnumToString string_table[] = {
4317 {GL_LOW_FLOAT, "GL_LOW_FLOAT"},
4318 {GL_MEDIUM_FLOAT, "GL_MEDIUM_FLOAT"},
4319 {GL_HIGH_FLOAT, "GL_HIGH_FLOAT"},
4320 {GL_LOW_INT, "GL_LOW_INT"},
4321 {GL_MEDIUM_INT, "GL_MEDIUM_INT"},
4322 {GL_HIGH_INT, "GL_HIGH_INT"},
4324 return GLES2Util::GetQualifiedEnumString(string_table,
4325 arraysize(string_table), value);
4328 std::string GLES2Util::GetStringShaderType(uint32_t value) {
4329 static const EnumToString string_table[] = {
4330 {GL_VERTEX_SHADER, "GL_VERTEX_SHADER"},
4331 {GL_FRAGMENT_SHADER, "GL_FRAGMENT_SHADER"},
4333 return GLES2Util::GetQualifiedEnumString(string_table,
4334 arraysize(string_table), value);
4337 std::string GLES2Util::GetStringSrcBlendFactor(uint32_t value) {
4338 static const EnumToString string_table[] = {
4339 {GL_ZERO, "GL_ZERO"},
4340 {GL_ONE, "GL_ONE"},
4341 {GL_SRC_COLOR, "GL_SRC_COLOR"},
4342 {GL_ONE_MINUS_SRC_COLOR, "GL_ONE_MINUS_SRC_COLOR"},
4343 {GL_DST_COLOR, "GL_DST_COLOR"},
4344 {GL_ONE_MINUS_DST_COLOR, "GL_ONE_MINUS_DST_COLOR"},
4345 {GL_SRC_ALPHA, "GL_SRC_ALPHA"},
4346 {GL_ONE_MINUS_SRC_ALPHA, "GL_ONE_MINUS_SRC_ALPHA"},
4347 {GL_DST_ALPHA, "GL_DST_ALPHA"},
4348 {GL_ONE_MINUS_DST_ALPHA, "GL_ONE_MINUS_DST_ALPHA"},
4349 {GL_CONSTANT_COLOR, "GL_CONSTANT_COLOR"},
4350 {GL_ONE_MINUS_CONSTANT_COLOR, "GL_ONE_MINUS_CONSTANT_COLOR"},
4351 {GL_CONSTANT_ALPHA, "GL_CONSTANT_ALPHA"},
4352 {GL_ONE_MINUS_CONSTANT_ALPHA, "GL_ONE_MINUS_CONSTANT_ALPHA"},
4353 {GL_SRC_ALPHA_SATURATE, "GL_SRC_ALPHA_SATURATE"},
4355 return GLES2Util::GetQualifiedEnumString(string_table,
4356 arraysize(string_table), value);
4359 std::string GLES2Util::GetStringStencilOp(uint32_t value) {
4360 static const EnumToString string_table[] = {
4361 {GL_KEEP, "GL_KEEP"},
4362 {GL_ZERO, "GL_ZERO"},
4363 {GL_REPLACE, "GL_REPLACE"},
4364 {GL_INCR, "GL_INCR"},
4365 {GL_INCR_WRAP, "GL_INCR_WRAP"},
4366 {GL_DECR, "GL_DECR"},
4367 {GL_DECR_WRAP, "GL_DECR_WRAP"},
4368 {GL_INVERT, "GL_INVERT"},
4370 return GLES2Util::GetQualifiedEnumString(string_table,
4371 arraysize(string_table), value);
4374 std::string GLES2Util::GetStringStringType(uint32_t value) {
4375 static const EnumToString string_table[] = {
4376 {GL_VENDOR, "GL_VENDOR"},
4377 {GL_RENDERER, "GL_RENDERER"},
4378 {GL_VERSION, "GL_VERSION"},
4379 {GL_SHADING_LANGUAGE_VERSION, "GL_SHADING_LANGUAGE_VERSION"},
4380 {GL_EXTENSIONS, "GL_EXTENSIONS"},
4382 return GLES2Util::GetQualifiedEnumString(string_table,
4383 arraysize(string_table), value);
4386 std::string GLES2Util::GetStringSubscriptionTarget(uint32_t value) {
4387 static const EnumToString string_table[] = {
4388 {GL_MOUSE_POSITION_CHROMIUM, "GL_MOUSE_POSITION_CHROMIUM"},
4390 return GLES2Util::GetQualifiedEnumString(string_table,
4391 arraysize(string_table), value);
4394 std::string GLES2Util::GetStringTextureBindTarget(uint32_t value) {
4395 static const EnumToString string_table[] = {
4396 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
4397 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"},
4399 return GLES2Util::GetQualifiedEnumString(string_table,
4400 arraysize(string_table), value);
4403 std::string GLES2Util::GetStringTextureFormat(uint32_t value) {
4404 static const EnumToString string_table[] = {
4405 {GL_ALPHA, "GL_ALPHA"},
4406 {GL_LUMINANCE, "GL_LUMINANCE"},
4407 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"},
4408 {GL_RGB, "GL_RGB"},
4409 {GL_RGBA, "GL_RGBA"},
4411 return GLES2Util::GetQualifiedEnumString(string_table,
4412 arraysize(string_table), value);
4415 std::string GLES2Util::GetStringTextureInternalFormat(uint32_t value) {
4416 static const EnumToString string_table[] = {
4417 {GL_ALPHA, "GL_ALPHA"},
4418 {GL_LUMINANCE, "GL_LUMINANCE"},
4419 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"},
4420 {GL_RGB, "GL_RGB"},
4421 {GL_RGBA, "GL_RGBA"},
4423 return GLES2Util::GetQualifiedEnumString(string_table,
4424 arraysize(string_table), value);
4427 std::string GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value) {
4428 static const EnumToString string_table[] = {
4429 {GL_RGB565, "GL_RGB565"},
4430 {GL_RGBA4, "GL_RGBA4"},
4431 {GL_RGB5_A1, "GL_RGB5_A1"},
4432 {GL_ALPHA8_EXT, "GL_ALPHA8_EXT"},
4433 {GL_LUMINANCE8_EXT, "GL_LUMINANCE8_EXT"},
4434 {GL_LUMINANCE8_ALPHA8_EXT, "GL_LUMINANCE8_ALPHA8_EXT"},
4435 {GL_RGB8_OES, "GL_RGB8_OES"},
4436 {GL_RGBA8_OES, "GL_RGBA8_OES"},
4438 return GLES2Util::GetQualifiedEnumString(string_table,
4439 arraysize(string_table), value);
4442 std::string GLES2Util::GetStringTextureMagFilterMode(uint32_t value) {
4443 static const EnumToString string_table[] = {
4444 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"},
4446 return GLES2Util::GetQualifiedEnumString(string_table,
4447 arraysize(string_table), value);
4450 std::string GLES2Util::GetStringTextureMinFilterMode(uint32_t value) {
4451 static const EnumToString string_table[] = {
4452 {GL_NEAREST, "GL_NEAREST"},
4453 {GL_LINEAR, "GL_LINEAR"},
4454 {GL_NEAREST_MIPMAP_NEAREST, "GL_NEAREST_MIPMAP_NEAREST"},
4455 {GL_LINEAR_MIPMAP_NEAREST, "GL_LINEAR_MIPMAP_NEAREST"},
4456 {GL_NEAREST_MIPMAP_LINEAR, "GL_NEAREST_MIPMAP_LINEAR"},
4457 {GL_LINEAR_MIPMAP_LINEAR, "GL_LINEAR_MIPMAP_LINEAR"},
4459 return GLES2Util::GetQualifiedEnumString(string_table,
4460 arraysize(string_table), value);
4463 std::string GLES2Util::GetStringTextureParameter(uint32_t value) {
4464 static const EnumToString string_table[] = {
4465 {GL_TEXTURE_MAG_FILTER, "GL_TEXTURE_MAG_FILTER"},
4466 {GL_TEXTURE_MIN_FILTER, "GL_TEXTURE_MIN_FILTER"},
4467 {GL_TEXTURE_POOL_CHROMIUM, "GL_TEXTURE_POOL_CHROMIUM"},
4468 {GL_TEXTURE_WRAP_S, "GL_TEXTURE_WRAP_S"},
4469 {GL_TEXTURE_WRAP_T, "GL_TEXTURE_WRAP_T"},
4471 return GLES2Util::GetQualifiedEnumString(string_table,
4472 arraysize(string_table), value);
4475 std::string GLES2Util::GetStringTexturePool(uint32_t value) {
4476 static const EnumToString string_table[] = {
4477 {GL_TEXTURE_POOL_MANAGED_CHROMIUM, "GL_TEXTURE_POOL_MANAGED_CHROMIUM"},
4478 {GL_TEXTURE_POOL_UNMANAGED_CHROMIUM,
4479 "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM"},
4481 return GLES2Util::GetQualifiedEnumString(string_table,
4482 arraysize(string_table), value);
4485 std::string GLES2Util::GetStringTextureTarget(uint32_t value) {
4486 static const EnumToString string_table[] = {
4487 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
4488 {GL_TEXTURE_CUBE_MAP_POSITIVE_X, "GL_TEXTURE_CUBE_MAP_POSITIVE_X"},
4489 {GL_TEXTURE_CUBE_MAP_NEGATIVE_X, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X"},
4490 {GL_TEXTURE_CUBE_MAP_POSITIVE_Y, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y"},
4491 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y"},
4492 {GL_TEXTURE_CUBE_MAP_POSITIVE_Z, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z"},
4493 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z"},
4495 return GLES2Util::GetQualifiedEnumString(string_table,
4496 arraysize(string_table), value);
4499 std::string GLES2Util::GetStringTextureUsage(uint32_t value) {
4500 static const EnumToString string_table[] = {
4501 {GL_NONE, "GL_NONE"},
4502 {GL_FRAMEBUFFER_ATTACHMENT_ANGLE, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE"},
4504 return GLES2Util::GetQualifiedEnumString(string_table,
4505 arraysize(string_table), value);
4508 std::string GLES2Util::GetStringTextureWrapMode(uint32_t value) {
4509 static const EnumToString string_table[] = {
4510 {GL_CLAMP_TO_EDGE, "GL_CLAMP_TO_EDGE"},
4511 {GL_MIRRORED_REPEAT, "GL_MIRRORED_REPEAT"},
4512 {GL_REPEAT, "GL_REPEAT"},
4514 return GLES2Util::GetQualifiedEnumString(string_table,
4515 arraysize(string_table), value);
4518 std::string GLES2Util::GetStringValueBufferTarget(uint32_t value) {
4519 static const EnumToString string_table[] = {
4520 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
4521 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"},
4523 return GLES2Util::GetQualifiedEnumString(string_table,
4524 arraysize(string_table), value);
4527 std::string GLES2Util::GetStringVertexAttribType(uint32_t value) {
4528 static const EnumToString string_table[] = {
4529 {GL_BYTE, "GL_BYTE"},
4530 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4531 {GL_SHORT, "GL_SHORT"},
4532 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
4533 {GL_FLOAT, "GL_FLOAT"},
4535 return GLES2Util::GetQualifiedEnumString(string_table,
4536 arraysize(string_table), value);
4539 std::string GLES2Util::GetStringVertexAttribute(uint32_t value) {
4540 static const EnumToString string_table[] = {
4541 {GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED"},
4542 {GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING,
4543 "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING"},
4544 {GL_VERTEX_ATTRIB_ARRAY_ENABLED, "GL_VERTEX_ATTRIB_ARRAY_ENABLED"},
4545 {GL_VERTEX_ATTRIB_ARRAY_SIZE, "GL_VERTEX_ATTRIB_ARRAY_SIZE"},
4546 {GL_VERTEX_ATTRIB_ARRAY_STRIDE, "GL_VERTEX_ATTRIB_ARRAY_STRIDE"},
4547 {GL_VERTEX_ATTRIB_ARRAY_TYPE, "GL_VERTEX_ATTRIB_ARRAY_TYPE"},
4548 {GL_CURRENT_VERTEX_ATTRIB, "GL_CURRENT_VERTEX_ATTRIB"},
4550 return GLES2Util::GetQualifiedEnumString(string_table,
4551 arraysize(string_table), value);
4554 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
4555 static const EnumToString string_table[] = {
4556 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
4558 return GLES2Util::GetQualifiedEnumString(string_table,
4559 arraysize(string_table), value);
4562 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_