Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / gpu / command_buffer / common / gles2_cmd_utils_implementation_autogen.h
blob7cba5373ee63bd99fd80da2b3c836292ffc620cc
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 0x8D77,
17 "GL_RGB16UI",
20 0x8D76,
21 "GL_RGBA16UI",
24 0x9260,
25 "GL_GCCSO_SHADER_BINARY_FJ",
28 0x9009,
29 "GL_TEXTURE_CUBE_MAP_ARRAY_EXT",
32 0x8D71,
33 "GL_RGB32UI",
36 0x8D70,
37 "GL_RGBA32UI",
40 0x8C76,
41 "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH",
44 0x8825,
45 "GL_DRAW_BUFFER0_EXT",
48 0x8D94,
49 "GL_RED_INTEGER",
52 0x0BC1,
53 "GL_ALPHA_TEST_FUNC_QCOM",
56 0x884C,
57 "GL_TEXTURE_COMPARE_MODE_EXT",
60 0x0BC2,
61 "GL_ALPHA_TEST_REF_QCOM",
64 0x78EF,
65 "GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM",
68 0x884D,
69 "GL_TEXTURE_COMPARE_FUNC_EXT",
72 0x884E,
73 "GL_COMPARE_REF_TO_TEXTURE_EXT",
76 0x8E76,
77 "GL_TESS_GEN_MODE_EXT",
80 0x8E77,
81 "GL_TESS_GEN_SPACING_EXT",
84 0x000D,
85 "GL_TRIANGLE_STRIP_ADJACENCY_EXT",
88 0x000E,
89 "GL_PATCHES_EXT",
92 0x000B,
93 "GL_LINE_STRIP_ADJACENCY_EXT",
96 0x000C,
97 "GL_TRIANGLES_ADJACENCY_EXT",
100 0x000A,
101 "GL_LINES_ADJACENCY_EXT",
104 0x92CF,
105 "GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_EXT",
108 0x93A1,
109 "GL_BGRA8_EXT",
112 0x813C,
113 "GL_TEXTURE_BASE_LEVEL",
117 "GL_FALSE",
120 0x00400000,
121 "GL_STENCIL_BUFFER_BIT6_QCOM",
125 "GL_MAILBOX_SIZE_CHROMIUM",
128 0x9500,
129 "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL",
132 0x78F2,
133 "GL_SCANOUT_CHROMIUM",
136 0x9138,
137 "GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG",
140 0x8FC4,
141 "GL_SHADER_BINARY_VIV",
144 0x9130,
145 "GL_SGX_PROGRAM_BINARY_IMG",
148 0x9133,
149 "GL_RENDERBUFFER_SAMPLES_IMG",
152 0x82E0,
153 "GL_BUFFER_KHR",
156 0x9135,
157 "GL_MAX_SAMPLES_IMG",
160 0x9134,
161 "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG",
164 0x9137,
165 "GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG",
168 0x9136,
169 "GL_TEXTURE_SAMPLES_IMG",
172 0x8D88,
173 "GL_RGBA16I",
176 0x8D89,
177 "GL_RGB16I",
180 0x00000020,
181 "GL_COLOR_BUFFER_BIT5_QCOM",
184 0x0008,
185 "GL_MAP_INVALIDATE_BUFFER_BIT_EXT",
188 0x0BC0,
189 "GL_ALPHA_TEST_QCOM",
192 0x0006,
193 "GL_TRIANGLE_FAN",
196 0x0007,
197 "GL_QUADS_EXT",
200 0x0004,
201 "GL_TRIANGLES",
204 0x0005,
205 "GL_TRIANGLE_STRIP",
208 0x0002,
209 "GL_LINE_LOOP",
212 0x0003,
213 "GL_LINE_STRIP",
216 0x0000,
217 "GL_POINTS",
220 0x0001,
221 "GL_LINES",
224 0x8D7D,
225 "GL_RGB8UI",
228 0x93F0,
229 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG",
232 0x93F1,
233 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV2_IMG",
236 0x0D04,
237 "GL_PACK_SKIP_PIXELS",
240 0x900E,
241 "GL_INT_SAMPLER_CUBE_MAP_ARRAY_EXT",
244 0x900D,
245 "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_EXT",
248 0x8C7F,
249 "GL_TRANSFORM_FEEDBACK_BUFFER_MODE",
252 0x900F,
253 "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_EXT",
256 0x900A,
257 "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_EXT",
260 0x900C,
261 "GL_SAMPLER_CUBE_MAP_ARRAY_EXT",
264 0x8213,
265 "GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",
268 0x88B9,
269 "GL_WRITE_ONLY_OES",
272 0x8211,
273 "GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",
276 0x8210,
277 "GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",
280 0x8741,
281 "GL_PROGRAM_BINARY_LENGTH_OES",
284 0x8740,
285 "GL_Z400_BINARY_AMD",
288 0x8215,
289 "GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",
292 0x8C4D,
293 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV",
296 0x8192,
297 "GL_GENERATE_MIPMAP_HINT",
300 0x8E79,
301 "GL_TESS_GEN_POINT_MODE_EXT",
304 0x8A54,
305 "GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT",
308 0x8A55,
309 "GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT",
312 0x8A56,
313 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT",
316 0x8A57,
317 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT",
320 0x8A51,
321 "GL_RGB_RAW_422_APPLE",
324 0x87F9,
325 "GL_3DC_X_AMD",
328 0x8A53,
329 "GL_SYNC_OBJECT_APPLE",
332 0x8DF8,
333 "GL_SHADER_BINARY_FORMATS",
336 0x8DF9,
337 "GL_NUM_SHADER_BINARY_FORMATS",
340 0x826D,
341 "GL_DEBUG_GROUP_STACK_DEPTH_KHR",
344 0x8E75,
345 "GL_TESS_CONTROL_OUTPUT_VERTICES_EXT",
348 0x826B,
349 "GL_DEBUG_SEVERITY_NOTIFICATION_KHR",
352 0x826C,
353 "GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR",
356 0x8B59,
357 "GL_BOOL_VEC4",
360 0x826A,
361 "GL_DEBUG_TYPE_POP_GROUP_KHR",
364 0x8B57,
365 "GL_BOOL_VEC2",
368 0x8DF1,
369 "GL_MEDIUM_FLOAT",
372 0x8B55,
373 "GL_INT_VEC4",
376 0x8B54,
377 "GL_INT_VEC3",
380 0x8DF4,
381 "GL_MEDIUM_INT",
384 0x8DF5,
385 "GL_HIGH_INT",
388 0x8B51,
389 "GL_FLOAT_VEC3",
392 0x8B50,
393 "GL_FLOAT_VEC2",
396 0x806D,
397 "GL_UNPACK_SKIP_IMAGES",
400 0x806E,
401 "GL_UNPACK_IMAGE_HEIGHT",
404 0x806F,
405 "GL_TEXTURE_3D_OES",
408 0x92E7,
409 "GL_IS_PER_PATCH_EXT",
412 0x92E0,
413 "GL_DEBUG_OUTPUT_KHR",
416 0x806A,
417 "GL_TEXTURE_BINDING_3D_OES",
420 0x8D8E,
421 "GL_RGBA8I",
424 0x8CE3,
425 "GL_COLOR_ATTACHMENT3_EXT",
428 0x9274,
429 "GL_COMPRESSED_RGB8_ETC2",
432 0x1904,
433 "GL_GREEN_NV",
436 0x928D,
437 "GL_DST_OUT_NV",
440 0x8069,
441 "GL_TEXTURE_BINDING_2D",
444 0x8A2E,
445 "GL_MAX_COMBINED_UNIFORM_BLOCKS",
448 0x8F96,
449 "GL_RGB8_SNORM",
452 0x8260,
453 "GL_UNDEFINED_VERTEX_EXT",
456 0x8261,
457 "GL_NO_RESET_NOTIFICATION_KHR",
460 0x0D02,
461 "GL_PACK_ROW_LENGTH",
464 0x8DFA,
465 "GL_SHADER_COMPILER",
468 0x8DFB,
469 "GL_MAX_VERTEX_UNIFORM_VECTORS",
472 0x8DFC,
473 "GL_MAX_VARYING_VECTORS",
476 0x8B5C,
477 "GL_FLOAT_MAT4",
480 0x8B5B,
481 "GL_FLOAT_MAT3",
484 0x8268,
485 "GL_DEBUG_TYPE_MARKER_KHR",
488 0x8269,
489 "GL_DEBUG_TYPE_PUSH_GROUP_KHR",
492 0x1905,
493 "GL_BLUE_NV",
496 0x87FF,
497 "GL_PROGRAM_BINARY_FORMATS_OES",
500 0x87FE,
501 "GL_NUM_PROGRAM_BINARY_FORMATS_OES",
504 0x8A41,
505 "GL_UNIFORM_BLOCK_NAME_LENGTH",
508 0x2600,
509 "GL_NEAREST",
512 0x2601,
513 "GL_LINEAR",
516 0x8C03,
517 "GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",
520 0x821B,
521 "GL_MAJOR_VERSION",
524 0x821A,
525 "GL_DEPTH_STENCIL_ATTACHMENT",
528 0x8A40,
529 "GL_UNIFORM_BLOCK_DATA_SIZE",
532 0x9242,
533 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM",
536 0x821D,
537 "GL_NUM_EXTENSIONS",
540 0x88BB,
541 "GL_BUFFER_ACCESS_OES",
544 0x88BC,
545 "GL_BUFFER_MAPPED_OES",
548 0x88BD,
549 "GL_BUFFER_MAP_POINTER_OES",
552 0x88BF,
553 "GL_TIME_ELAPSED_EXT",
556 0x8A46,
557 "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",
560 0x6003,
561 "GL_GET_ERROR_QUERY_CHROMIUM",
564 0x8F94,
565 "GL_R8_SNORM",
568 0x0C10,
569 "GL_SCISSOR_BOX",
572 0x0C11,
573 "GL_SCISSOR_TEST",
576 0x1700,
577 "GL_PATH_MODELVIEW_CHROMIUM",
580 0x80000000,
581 "GL_MULTISAMPLE_BUFFER_BIT7_QCOM",
584 0x94F8,
585 "GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL",
588 0x8A48,
589 "GL_TEXTURE_SRGB_DECODE_EXT",
592 0x300E,
593 "GL_CONTEXT_LOST",
596 0x02000000,
597 "GL_MULTISAMPLE_BUFFER_BIT1_QCOM",
600 0x8C2F,
601 "GL_ANY_SAMPLES_PASSED_EXT",
604 0x8BD2,
605 "GL_TEXTURE_WIDTH_QCOM",
608 0x8C2D,
609 "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT",
612 0x8C2C,
613 "GL_TEXTURE_BINDING_BUFFER_EXT",
616 0x8C2B,
617 "GL_MAX_TEXTURE_BUFFER_SIZE_EXT",
620 0x8C2A,
621 "GL_TEXTURE_BUFFER_EXT",
624 0x8BD7,
625 "GL_TEXTURE_TYPE_QCOM",
628 0x8B8D,
629 "GL_CURRENT_PROGRAM",
632 0x8BD9,
633 "GL_TEXTURE_NUM_LEVELS_QCOM",
636 0x00200000,
637 "GL_STENCIL_BUFFER_BIT5_QCOM",
640 0x8D9F,
641 "GL_INT_2_10_10_10_REV",
644 0x8B8A,
645 "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH",
648 0x8B8B,
649 "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES",
652 0x8B8C,
653 "GL_SHADING_LANGUAGE_VERSION",
656 0x8BDA,
657 "GL_TEXTURE_TARGET_QCOM",
660 0x8BDB,
661 "GL_TEXTURE_OBJECT_VALID_QCOM",
664 0x8BDC,
665 "GL_STATE_RESTORE",
668 0x8B88,
669 "GL_SHADER_SOURCE_LENGTH",
672 0x8B89,
673 "GL_ACTIVE_ATTRIBUTES",
676 0x93C9,
677 "GL_COMPRESSED_RGBA_ASTC_6x6x6_OES",
680 0x93C8,
681 "GL_COMPRESSED_RGBA_ASTC_6x6x5_OES",
684 0x8B84,
685 "GL_INFO_LOG_LENGTH",
688 0x8B85,
689 "GL_ATTACHED_SHADERS",
692 0x8B86,
693 "GL_ACTIVE_UNIFORMS",
696 0x8B87,
697 "GL_ACTIVE_UNIFORM_MAX_LENGTH",
700 0x8B80,
701 "GL_DELETE_STATUS",
704 0x8B81,
705 "GL_COMPILE_STATUS",
708 0x8B82,
709 "GL_LINK_STATUS",
712 0x8B83,
713 "GL_VALIDATE_STATUS",
716 0x9380,
717 "GL_NUM_SAMPLE_COUNTS",
720 0x8D48,
721 "GL_STENCIL_INDEX8",
724 0x8D46,
725 "GL_STENCIL_INDEX1_OES",
728 0x8D47,
729 "GL_STENCIL_INDEX4_OES",
732 0x8D44,
733 "GL_RENDERBUFFER_INTERNAL_FORMAT",
736 0x00000100,
737 "GL_DEPTH_BUFFER_BIT",
740 0x8D42,
741 "GL_RENDERBUFFER_WIDTH",
744 0x8D43,
745 "GL_RENDERBUFFER_HEIGHT",
748 0x8D40,
749 "GL_FRAMEBUFFER",
752 0x8D41,
753 "GL_RENDERBUFFER",
756 0x8A3A,
757 "GL_UNIFORM_BLOCK_INDEX",
760 0x88B8,
761 "GL_READ_ONLY",
764 0x0BD0,
765 "GL_DITHER",
768 0x93D3,
769 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR",
772 0x9144,
773 "GL_MAX_DEBUG_LOGGED_MESSAGES_KHR",
776 0x1801,
777 "GL_DEPTH_EXT",
780 0x1800,
781 "GL_COLOR_EXT",
784 0x1802,
785 "GL_STENCIL_EXT",
788 0x9288,
789 "GL_SRC_OVER_NV",
792 0x9120,
793 "GL_BUFFER_MAP_LENGTH",
796 0x0B21,
797 "GL_LINE_WIDTH",
800 0x9308,
801 "GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT",
804 0x81A5,
805 "GL_DEPTH_COMPONENT16",
808 0x81A6,
809 "GL_DEPTH_COMPONENT24_OES",
812 0x81A7,
813 "GL_DEPTH_COMPONENT32_OES",
816 0x88FD,
817 "GL_VERTEX_ATTRIB_ARRAY_INTEGER",
820 0x88FE,
821 "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",
824 0x88FF,
825 "GL_MAX_ARRAY_TEXTURE_LAYERS",
828 0x8B6A,
829 "GL_FLOAT_MAT4x3_NV",
832 0x93D0,
833 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR",
836 0x9143,
837 "GL_MAX_DEBUG_MESSAGE_LENGTH_KHR",
840 0x8DFD,
841 "GL_MAX_FRAGMENT_UNIFORM_VECTORS",
844 0x9145,
845 "GL_DEBUG_LOGGED_MESSAGES_KHR",
848 0x9146,
849 "GL_DEBUG_SEVERITY_HIGH_KHR",
852 0x9147,
853 "GL_DEBUG_SEVERITY_MEDIUM_KHR",
856 0x9148,
857 "GL_DEBUG_SEVERITY_LOW_KHR",
860 0x8F63,
861 "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT",
864 0x8F60,
865 "GL_MALI_SHADER_BINARY_ARM",
868 0x8F61,
869 "GL_MALI_PROGRAM_BINARY_ARM",
872 0x8F66,
873 "GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM",
876 0x8F67,
877 "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT",
880 0x8F64,
881 "GL_SHADER_PIXEL_LOCAL_STORAGE_EXT",
884 0x8F65,
885 "GL_FETCH_PER_SAMPLE_ARM",
888 0x92D3,
889 "GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT",
892 0x87EE,
893 "GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD",
896 0x822B,
897 "GL_RG8_EXT",
900 0x822F,
901 "GL_RG16F_EXT",
904 0x822D,
905 "GL_R16F_EXT",
908 0x822E,
909 "GL_R32F_EXT",
913 "GL_ES_VERSION_2_0",
916 0x84F9,
917 "GL_DEPTH_STENCIL_OES",
920 0x82DB,
921 "GL_TEXTURE_VIEW_MIN_LEVEL_EXT",
924 0x8368,
925 "GL_UNSIGNED_INT_2_10_10_10_REV_EXT",
928 0x8819,
929 "GL_LUMINANCE_ALPHA32F_EXT",
932 0x8818,
933 "GL_LUMINANCE32F_EXT",
936 0x82DF,
937 "GL_TEXTURE_IMMUTABLE_LEVELS",
940 0x8363,
941 "GL_UNSIGNED_SHORT_5_6_5",
944 0x9051,
945 "GL_IMAGE_BUFFER_EXT",
948 0x84F2,
949 "GL_ALL_COMPLETED_NV",
952 0x8E5A,
953 "GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT",
956 0x84F4,
957 "GL_FENCE_CONDITION_NV",
960 0x8366,
961 "GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT",
964 0x8365,
965 "GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT",
968 0x84F7,
969 "GL_COMMANDS_COMPLETED_CHROMIUM",
972 0x8F9C,
973 "GL_SIGNED_NORMALIZED",
976 0x92D5,
977 "GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT",
980 0x881E,
981 "GL_LUMINANCE16F_EXT",
984 0x84FA,
985 "GL_UNSIGNED_INT_24_8_OES",
988 0x92D4,
989 "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT",
992 0x881A,
993 "GL_RGBA16F_EXT",
996 0x84FE,
997 "GL_TEXTURE_MAX_ANISOTROPY_EXT",
1000 0x0901,
1001 "GL_CCW",
1004 0x0900,
1005 "GL_CW",
1008 0x9317,
1009 "GL_MAX_FRAMEBUFFER_LAYERS_EXT",
1012 0x8229,
1013 "GL_R8_EXT",
1016 0x8230,
1017 "GL_RG32F_EXT",
1020 0x9312,
1021 "GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT",
1024 0x9283,
1025 "GL_DISJOINT_NV",
1028 0x8221,
1029 "GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED",
1032 0x8227,
1033 "GL_RG_EXT",
1036 0x8B66,
1037 "GL_FLOAT_MAT2x4_NV",
1040 0x8B67,
1041 "GL_FLOAT_MAT3x2_NV",
1044 0x8E1E,
1045 "GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
1048 0x8B62,
1049 "GL_SAMPLER_2D_SHADOW_EXT",
1052 0x8B63,
1053 "GL_SAMPLER_2D_RECT_ARB",
1056 0x8B60,
1057 "GL_SAMPLER_CUBE",
1060 0x00001000,
1061 "GL_DEPTH_BUFFER_BIT4_QCOM",
1064 0x8B68,
1065 "GL_FLOAT_MAT3x4_NV",
1068 0x83F0,
1069 "GL_COMPRESSED_RGB_S3TC_DXT1_EXT",
1072 0x8D6A,
1073 "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT",
1076 0x00000080,
1077 "GL_COLOR_BUFFER_BIT7_QCOM",
1080 0x88F0,
1081 "GL_DEPTH24_STENCIL8_OES",
1084 0x8E1F,
1085 "GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
1088 0x80A0,
1089 "GL_SAMPLE_COVERAGE",
1092 0x928F,
1093 "GL_DST_ATOP_NV",
1096 0x80A9,
1097 "GL_SAMPLES",
1100 0x80A8,
1101 "GL_SAMPLE_BUFFERS",
1104 0x0D55,
1105 "GL_ALPHA_BITS",
1108 0x0D54,
1109 "GL_BLUE_BITS",
1112 0x0D57,
1113 "GL_STENCIL_BITS",
1116 0x0D56,
1117 "GL_DEPTH_BITS",
1120 0x8CD5,
1121 "GL_FRAMEBUFFER_COMPLETE",
1124 0x0D50,
1125 "GL_SUBPIXEL_BITS",
1128 0x0D53,
1129 "GL_GREEN_BITS",
1132 0x0D52,
1133 "GL_RED_BITS",
1136 0x8037,
1137 "GL_POLYGON_OFFSET_FILL",
1140 0x928C,
1141 "GL_SRC_OUT_NV",
1144 0x8034,
1145 "GL_UNSIGNED_SHORT_5_5_5_1",
1148 0x8033,
1149 "GL_UNSIGNED_SHORT_4_4_4_4",
1152 0x928B,
1153 "GL_DST_IN_NV",
1156 0x0305,
1157 "GL_ONE_MINUS_DST_ALPHA",
1160 0x0304,
1161 "GL_DST_ALPHA",
1164 0x0307,
1165 "GL_ONE_MINUS_DST_COLOR",
1168 0x0306,
1169 "GL_DST_COLOR",
1172 0x0301,
1173 "GL_ONE_MINUS_SRC_COLOR",
1176 0x0300,
1177 "GL_SRC_COLOR",
1180 0x0303,
1181 "GL_ONE_MINUS_SRC_ALPHA",
1184 0x0302,
1185 "GL_SRC_ALPHA",
1188 0x8212,
1189 "GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE",
1192 0x0308,
1193 "GL_SRC_ALPHA_SATURATE",
1196 0x2A00,
1197 "GL_POLYGON_OFFSET_UNITS",
1200 0xFFFFFFFF,
1201 "GL_ALL_SHADER_BITS_EXT",
1204 0x82DC,
1205 "GL_TEXTURE_VIEW_NUM_LEVELS_EXT",
1208 0x8C29,
1209 "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT",
1212 0x82DD,
1213 "GL_TEXTURE_VIEW_MIN_LAYER_EXT",
1216 0x00800000,
1217 "GL_STENCIL_BUFFER_BIT7_QCOM",
1220 0x82DE,
1221 "GL_TEXTURE_VIEW_NUM_LAYERS_EXT",
1224 0x00020000,
1225 "GL_STENCIL_BUFFER_BIT1_QCOM",
1228 0x8D00,
1229 "GL_DEPTH_ATTACHMENT",
1232 0x8FA0,
1233 "GL_PERFMON_GLOBAL_MODE_QCOM",
1236 0x8815,
1237 "GL_RGB32F_EXT",
1240 0x8A35,
1241 "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH",
1244 0x8814,
1245 "GL_RGBA32F_EXT",
1248 0x6006,
1249 "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM",
1252 0x9277,
1253 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",
1256 0x6004,
1257 "GL_COMMANDS_ISSUED_CHROMIUM",
1260 0x813D,
1261 "GL_TEXTURE_MAX_LEVEL_APPLE",
1264 0x8816,
1265 "GL_ALPHA32F_EXT",
1268 0x813B,
1269 "GL_TEXTURE_MAX_LOD",
1272 0x8CDD,
1273 "GL_FRAMEBUFFER_UNSUPPORTED",
1276 0x8CDF,
1277 "GL_MAX_COLOR_ATTACHMENTS_EXT",
1280 0x90F3,
1281 "GL_CONTEXT_ROBUST_ACCESS_KHR",
1284 0x90F2,
1285 "GL_MAX_MULTIVIEW_BUFFERS_EXT",
1288 0x90F1,
1289 "GL_MULTIVIEW_EXT",
1292 0x90F0,
1293 "GL_COLOR_ATTACHMENT_EXT",
1296 0x803C,
1297 "GL_ALPHA8_OES",
1300 0x8904,
1301 "GL_MIN_PROGRAM_TEXEL_OFFSET",
1304 0x84F5,
1305 "GL_TEXTURE_RECTANGLE_ARB",
1308 0x882A,
1309 "GL_DRAW_BUFFER5_EXT",
1312 0x8E7F,
1313 "GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
1316 0x80AA,
1317 "GL_SAMPLE_COVERAGE_VALUE",
1320 0x84F6,
1321 "GL_TEXTURE_BINDING_RECTANGLE_ARB",
1324 0x80AB,
1325 "GL_SAMPLE_COVERAGE_INVERT",
1328 0x8E7D,
1329 "GL_MAX_PATCH_VERTICES_EXT",
1332 0x6005,
1333 "GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM",
1336 0x9105,
1337 "GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES",
1340 0x8E7E,
1341 "GL_MAX_TESS_GEN_LEVEL_EXT",
1344 0x9102,
1345 "GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES",
1348 0x8C40,
1349 "GL_SRGB_EXT",
1352 0x8E7B,
1353 "GL_FRACTIONAL_ODD_EXT",
1356 0x00000040,
1357 "GL_COLOR_BUFFER_BIT6_QCOM",
1360 0x882B,
1361 "GL_DRAW_BUFFER6_EXT",
1364 0x8E7C,
1365 "GL_FRACTIONAL_EVEN_EXT",
1368 0x8C8E,
1369 "GL_TRANSFORM_FEEDBACK_BUFFER",
1372 0x8C8D,
1373 "GL_SEPARATE_ATTRIBS",
1376 0x8C8F,
1377 "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING",
1380 0x8C8A,
1381 "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",
1384 0x8C8C,
1385 "GL_INTERLEAVED_ATTRIBS",
1388 0x8C8B,
1389 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",
1392 0x8C17,
1393 "GL_UNSIGNED_NORMALIZED_EXT",
1396 0x8A3E,
1397 "GL_UNIFORM_IS_ROW_MAJOR",
1400 0x8E7A,
1401 "GL_ISOLINES_EXT",
1404 0x8F95,
1405 "GL_RG8_SNORM",
1408 0x8D99,
1409 "GL_RGBA_INTEGER",
1412 0x8D98,
1413 "GL_RGB_INTEGER",
1416 0x8A4A,
1417 "GL_SKIP_DECODE_EXT",
1420 0x8A4F,
1421 "GL_PROGRAM_PIPELINE_OBJECT_EXT",
1424 0x882C,
1425 "GL_DRAW_BUFFER7_EXT",
1428 0x0010,
1429 "GL_MAP_FLUSH_EXPLICIT_BIT_EXT",
1432 0x8918,
1433 "GL_GEOMETRY_LINKED_OUTPUT_TYPE_EXT",
1436 0x8919,
1437 "GL_SAMPLER_BINDING",
1440 0x92CD,
1441 "GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_EXT",
1444 0x92CE,
1445 "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_EXT",
1448 0x8C85,
1449 "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE",
1452 0x8D7C,
1453 "GL_RGBA8UI",
1456 0x6007,
1457 "GL_LATENCY_QUERY_CHROMIUM",
1460 0x8D83,
1461 "GL_RGB32I",
1464 0x8916,
1465 "GL_GEOMETRY_LINKED_VERTICES_OUT_EXT",
1468 0x8917,
1469 "GL_GEOMETRY_LINKED_INPUT_TYPE_EXT",
1472 0x881F,
1473 "GL_LUMINANCE_ALPHA16F_EXT",
1476 0x84FD,
1477 "GL_MAX_TEXTURE_LOD_BIAS",
1480 0x882D,
1481 "GL_DRAW_BUFFER8_EXT",
1484 0x8A43,
1485 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",
1488 0x8A42,
1489 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS",
1492 0x8F37,
1493 "GL_COPY_WRITE_BUFFER_NV",
1496 0x8F36,
1497 "GL_COPY_READ_BUFFER_NV",
1500 0x84FF,
1501 "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT",
1504 0x8A3C,
1505 "GL_UNIFORM_ARRAY_STRIDE",
1508 0x8A44,
1509 "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",
1512 0x6000,
1513 "GL_TEXTURE_POOL_CHROMIUM",
1516 0x0B74,
1517 "GL_DEPTH_FUNC",
1520 0x8A49,
1521 "GL_DECODE_EXT",
1524 0x881B,
1525 "GL_RGB16F_EXT",
1528 0x0B71,
1529 "GL_DEPTH_TEST",
1532 0x0B70,
1533 "GL_DEPTH_RANGE",
1536 0x0B73,
1537 "GL_DEPTH_CLEAR_VALUE",
1540 0x0B72,
1541 "GL_DEPTH_WRITEMASK",
1544 0x8BD5,
1545 "GL_TEXTURE_INTERNAL_FORMAT_QCOM",
1548 0x85BA,
1549 "GL_UNSIGNED_SHORT_8_8_APPLE",
1552 0x8C87,
1553 "GL_PRIMITIVES_GENERATED_EXT",
1556 0x8C80,
1557 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",
1560 0x8C83,
1561 "GL_TRANSFORM_FEEDBACK_VARYINGS",
1564 0x8D69,
1565 "GL_PRIMITIVE_RESTART_FIXED_INDEX",
1568 0x882E,
1569 "GL_DRAW_BUFFER9_EXT",
1572 0x8A32,
1573 "GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_EXT",
1576 0x8A31,
1577 "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",
1580 0x8C89,
1581 "GL_RASTERIZER_DISCARD",
1584 0x8C88,
1585 "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",
1588 0x8C1A,
1589 "GL_TEXTURE_2D_ARRAY",
1592 0x910D,
1593 "GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1596 0x8E80,
1597 "GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
1600 0x910B,
1601 "GL_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1604 0x910C,
1605 "GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1608 0x94FA,
1609 "GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL",
1612 0x8073,
1613 "GL_MAX_3D_TEXTURE_SIZE_OES",
1616 0x8072,
1617 "GL_TEXTURE_WRAP_R_OES",
1620 0x9289,
1621 "GL_DST_OVER_NV",
1624 0x882F,
1625 "GL_DRAW_BUFFER10_EXT",
1628 0x8074,
1629 "GL_VERTEX_ARRAY_KHR",
1632 0x80E1,
1633 "GL_BGRA_EXT",
1636 0x8ED7,
1637 "GL_COVERAGE_AUTOMATIC_NV",
1640 0x8ED6,
1641 "GL_COVERAGE_EDGE_FRAGMENTS_NV",
1644 0x8ED5,
1645 "GL_COVERAGE_ALL_FRAGMENTS_NV",
1648 0x8ED4,
1649 "GL_COVERAGE_SAMPLES_NV",
1652 0x8ED3,
1653 "GL_COVERAGE_BUFFERS_NV",
1656 0x8ED2,
1657 "GL_COVERAGE_ATTACHMENT_NV",
1660 0x8ED1,
1661 "GL_COVERAGE_COMPONENT4_NV",
1664 0x8ED0,
1665 "GL_COVERAGE_COMPONENT_NV",
1668 0x8217,
1669 "GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",
1672 0x8E89,
1673 "GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_EXT",
1676 0x8216,
1677 "GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",
1680 0x8A36,
1681 "GL_ACTIVE_UNIFORM_BLOCKS",
1684 0x8A37,
1685 "GL_UNIFORM_TYPE",
1688 0x8A34,
1689 "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT",
1692 0x3006,
1693 "GL_CLIP_DISTANCE6_APPLE",
1696 0x800B,
1697 "GL_FUNC_REVERSE_SUBTRACT",
1700 0x8A33,
1701 "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",
1704 0x00000400,
1705 "GL_STENCIL_BUFFER_BIT",
1708 0x800A,
1709 "GL_FUNC_SUBTRACT",
1712 0x8214,
1713 "GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",
1716 0x8A38,
1717 "GL_UNIFORM_SIZE",
1720 0x8A39,
1721 "GL_UNIFORM_NAME_LENGTH",
1724 0x8E2C,
1725 "GL_DEPTH_COMPONENT16_NONLINEAR_NV",
1728 0x889F,
1729 "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",
1732 0x8219,
1733 "GL_FRAMEBUFFER_UNDEFINED_OES",
1736 0x8E23,
1737 "GL_TRANSFORM_FEEDBACK_PAUSED",
1740 0x8E22,
1741 "GL_TRANSFORM_FEEDBACK",
1744 0x8E25,
1745 "GL_TRANSFORM_FEEDBACK_BINDING",
1748 0x9054,
1749 "GL_IMAGE_CUBE_MAP_ARRAY_EXT",
1752 0x8E28,
1753 "GL_TIMESTAMP_EXT",
1756 0x8006,
1757 "GL_FUNC_ADD",
1760 0x8007,
1761 "GL_MIN_EXT",
1764 0x8004,
1765 "GL_ONE_MINUS_CONSTANT_ALPHA",
1768 0x8005,
1769 "GL_BLEND_COLOR",
1772 0x8002,
1773 "GL_ONE_MINUS_CONSTANT_COLOR",
1776 0x8003,
1777 "GL_CONSTANT_ALPHA",
1780 0x8001,
1781 "GL_CONSTANT_COLOR",
1784 0x0204,
1785 "GL_GREATER",
1788 0x0205,
1789 "GL_NOTEQUAL",
1792 0x0206,
1793 "GL_GEQUAL",
1796 0x0207,
1797 "GL_ALWAYS",
1800 0x0200,
1801 "GL_NEVER",
1804 0x0201,
1805 "GL_LESS",
1808 0x0202,
1809 "GL_EQUAL",
1812 0x0203,
1813 "GL_LEQUAL",
1816 0x8BD6,
1817 "GL_TEXTURE_FORMAT_QCOM",
1820 0x8228,
1821 "GL_RG_INTEGER",
1824 0x2901,
1825 "GL_REPEAT",
1828 0x9067,
1829 "GL_UNSIGNED_INT_IMAGE_BUFFER_EXT",
1832 0x92A0,
1833 "GL_EXCLUSION_KHR",
1836 0x93D8,
1837 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR",
1840 0x93D9,
1841 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR",
1844 0x8FB2,
1845 "GL_GPU_OPTIMIZED_QCOM",
1848 0x190A,
1849 "GL_LUMINANCE_ALPHA",
1852 0x8FB0,
1853 "GL_BINNING_CONTROL_HINT_QCOM",
1856 0x905C,
1857 "GL_INT_IMAGE_BUFFER_EXT",
1860 0x1E00,
1861 "GL_KEEP",
1864 0x1E01,
1865 "GL_REPLACE",
1868 0x1E02,
1869 "GL_INCR",
1872 0x1E03,
1873 "GL_DECR",
1876 0x93D6,
1877 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR",
1880 0x93D7,
1881 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR",
1884 0x93D4,
1885 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR",
1888 0x93D5,
1889 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR",
1892 0x886D,
1893 "GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_EXT",
1896 0x0BE2,
1897 "GL_BLEND",
1900 0x84CB,
1901 "GL_TEXTURE11",
1904 0x8D55,
1905 "GL_RENDERBUFFER_STENCIL_SIZE",
1908 0x8D54,
1909 "GL_RENDERBUFFER_DEPTH_SIZE",
1912 0x8D57,
1913 "GL_MAX_SAMPLES_ANGLE",
1916 0x8D56,
1917 "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE",
1920 0x8D51,
1921 "GL_RENDERBUFFER_GREEN_SIZE",
1924 0x8D50,
1925 "GL_RENDERBUFFER_RED_SIZE",
1928 0x8D53,
1929 "GL_RENDERBUFFER_ALPHA_SIZE",
1932 0x8D52,
1933 "GL_RENDERBUFFER_BLUE_SIZE",
1936 0x92A6,
1937 "GL_VIVIDLIGHT_NV",
1940 0x8DCC,
1941 "GL_INT_SAMPLER_CUBE",
1944 0x8905,
1945 "GL_MAX_PROGRAM_TEXEL_OFFSET",
1948 0x00080000,
1949 "GL_STENCIL_BUFFER_BIT3_QCOM",
1952 0x92A7,
1953 "GL_LINEARLIGHT_NV",
1956 0x8DCF,
1957 "GL_INT_SAMPLER_2D_ARRAY",
1960 0x886A,
1961 "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED",
1964 0x8C41,
1965 "GL_SRGB8_NV",
1968 0x0C01,
1969 "GL_DRAW_BUFFER_EXT",
1972 0x886C,
1973 "GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_EXT",
1976 0x90CB,
1977 "GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_EXT",
1980 0x8DCA,
1981 "GL_INT_SAMPLER_2D",
1984 0x93C7,
1985 "GL_COMPRESSED_RGBA_ASTC_6x5x5_OES",
1988 0x8B5F,
1989 "GL_SAMPLER_3D_OES",
1992 0x8B95,
1993 "GL_PALETTE8_RGB8_OES",
1996 0x9250,
1997 "GL_SHADER_BINARY_DMP",
2000 0x9251,
2001 "GL_SMAPHS30_PROGRAM_BINARY_DMP",
2004 0x9252,
2005 "GL_SMAPHS_PROGRAM_BINARY_DMP",
2008 0x9253,
2009 "GL_DMP_PROGRAM_BINARY_DMP",
2012 0x8DC8,
2013 "GL_UNSIGNED_INT_VEC4",
2016 0x3000,
2017 "GL_CLIP_DISTANCE0_APPLE",
2020 0x8C92,
2021 "GL_ATC_RGB_AMD",
2024 0x8DC1,
2025 "GL_SAMPLER_2D_ARRAY",
2028 0x9154,
2029 "GL_VERTEX_ARRAY_OBJECT_EXT",
2032 0x9153,
2033 "GL_QUERY_OBJECT_EXT",
2036 0x8864,
2037 "GL_QUERY_COUNTER_BITS_EXT",
2040 0x9151,
2041 "GL_BUFFER_OBJECT_EXT",
2044 0x8C93,
2045 "GL_ATC_RGBA_EXPLICIT_ALPHA_AMD",
2048 0x00000002,
2049 "GL_CONTEXT_FLAG_DEBUG_BIT_KHR",
2052 0x8A3F,
2053 "GL_UNIFORM_BLOCK_BINDING",
2056 0x00000000,
2057 "GL_PERFQUERY_SINGLE_CONTEXT_INTEL",
2060 0x00000001,
2061 "GL_SYNC_FLUSH_COMMANDS_BIT_APPLE",
2064 0x9248,
2065 "GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM",
2068 0x00000004,
2069 "GL_GEOMETRY_SHADER_BIT_EXT",
2072 0x1702,
2073 "GL_TEXTURE",
2076 0x3003,
2077 "GL_CLIP_DISTANCE3_APPLE",
2080 0x00000008,
2081 "GL_TESS_CONTROL_SHADER_BIT_EXT",
2084 0x8B58,
2085 "GL_BOOL_VEC3",
2088 0x8A3D,
2089 "GL_UNIFORM_MATRIX_STRIDE",
2092 0x8828,
2093 "GL_DRAW_BUFFER3_EXT",
2096 0x8DF0,
2097 "GL_LOW_FLOAT",
2100 0x1906,
2101 "GL_ALPHA",
2104 0x1907,
2105 "GL_RGB",
2108 0x8FBB,
2109 "GL_GPU_DISJOINT_EXT",
2112 0x1901,
2113 "GL_STENCIL_INDEX_OES",
2116 0x1902,
2117 "GL_DEPTH_COMPONENT",
2120 0x8B56,
2121 "GL_BOOL",
2124 0x93DB,
2125 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR",
2128 0x8B9B,
2129 "GL_IMPLEMENTATION_COLOR_READ_FORMAT",
2132 0x8B9A,
2133 "GL_IMPLEMENTATION_COLOR_READ_TYPE",
2136 0x93DA,
2137 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR",
2140 0x1908,
2141 "GL_RGBA",
2144 0x8DF2,
2145 "GL_HIGH_FLOAT",
2148 0x93DD,
2149 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR",
2152 0x8827,
2153 "GL_DRAW_BUFFER2_EXT",
2156 0x9243,
2157 "GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM",
2160 0x8DF3,
2161 "GL_LOW_INT",
2164 0x82E8,
2165 "GL_MAX_LABEL_LENGTH_KHR",
2168 0x82E6,
2169 "GL_SAMPLER_KHR",
2172 0x0C02,
2173 "GL_READ_BUFFER_EXT",
2176 0x82E3,
2177 "GL_QUERY_KHR",
2180 0x82E2,
2181 "GL_PROGRAM_KHR",
2184 0x82E1,
2185 "GL_SHADER_KHR",
2188 0x8B52,
2189 "GL_FLOAT_VEC4",
2192 0x8239,
2193 "GL_RG16I",
2196 0x8238,
2197 "GL_RG8UI",
2200 0x9240,
2201 "GL_UNPACK_FLIP_Y_CHROMIUM",
2204 0x8DF6,
2205 "GL_UNSIGNED_INT_10_10_10_2_OES",
2208 0x8A30,
2209 "GL_MAX_UNIFORM_BLOCK_SIZE",
2212 0x9273,
2213 "GL_COMPRESSED_SIGNED_RG11_EAC",
2216 0x8231,
2217 "GL_R8I",
2220 0x8866,
2221 "GL_QUERY_RESULT_EXT",
2224 0x8233,
2225 "GL_R16I",
2228 0x8DF7,
2229 "GL_INT_10_10_10_2_OES",
2232 0x8235,
2233 "GL_R32I",
2236 0x8234,
2237 "GL_R16UI",
2240 0x8237,
2241 "GL_RG8I",
2244 0x8236,
2245 "GL_R32UI",
2248 0x8B69,
2249 "GL_FLOAT_MAT4x2_NV",
2252 0x812D,
2253 "GL_CLAMP_TO_BORDER_EXT",
2256 0x812F,
2257 "GL_CLAMP_TO_EDGE",
2260 0x92A4,
2261 "GL_LINEARDODGE_NV",
2264 0x8DD8,
2265 "GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT",
2268 0x8DD9,
2269 "GL_GEOMETRY_SHADER_EXT",
2272 0x86A3,
2273 "GL_COMPRESSED_TEXTURE_FORMATS",
2276 0x8DD4,
2277 "GL_UNSIGNED_INT_SAMPLER_CUBE",
2280 0x9244,
2281 "GL_BIND_GENERATES_RESOURCE_CHROMIUM",
2284 0x8DD2,
2285 "GL_UNSIGNED_INT_SAMPLER_2D",
2288 0x8DD3,
2289 "GL_UNSIGNED_INT_SAMPLER_3D",
2292 0x8DD0,
2293 "GL_INT_SAMPLER_BUFFER_EXT",
2296 0x86A2,
2297 "GL_NUM_COMPRESSED_TEXTURE_FORMATS",
2300 0x0CF3,
2301 "GL_UNPACK_SKIP_ROWS_EXT",
2304 0x0CF2,
2305 "GL_UNPACK_ROW_LENGTH_EXT",
2308 0x140C,
2309 "GL_FIXED",
2312 0x140B,
2313 "GL_HALF_FLOAT",
2316 0x8008,
2317 "GL_MAX_EXT",
2320 0x0CF5,
2321 "GL_UNPACK_ALIGNMENT",
2324 0x8867,
2325 "GL_QUERY_RESULT_AVAILABLE_EXT",
2328 0x8D82,
2329 "GL_RGBA32I",
2332 0x8009,
2333 "GL_BLEND_EQUATION",
2336 0x911F,
2337 "GL_BUFFER_ACCESS_FLAGS",
2340 0x1401,
2341 "GL_UNSIGNED_BYTE",
2344 0x1400,
2345 "GL_BYTE",
2348 0x1403,
2349 "GL_UNSIGNED_SHORT",
2352 0x1402,
2353 "GL_SHORT",
2356 0x1405,
2357 "GL_UNSIGNED_INT",
2360 0x1404,
2361 "GL_INT",
2364 0x1406,
2365 "GL_FLOAT",
2368 0x8C1D,
2369 "GL_TEXTURE_BINDING_2D_ARRAY",
2372 0x8DDF,
2373 "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT",
2376 0x8043,
2377 "GL_LUMINANCE4_ALPHA4_OES",
2380 0x8040,
2381 "GL_LUMINANCE8_OES",
2384 0x8045,
2385 "GL_LUMINANCE8_ALPHA8_OES",
2388 0x8CD1,
2389 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",
2392 0x00040000,
2393 "GL_STENCIL_BUFFER_BIT2_QCOM",
2396 0x8CD0,
2397 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",
2400 0x823A,
2401 "GL_RG16UI",
2404 0x8CE4,
2405 "GL_COLOR_ATTACHMENT4_EXT",
2408 0x823B,
2409 "GL_RG32I",
2412 0x8CD3,
2413 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",
2416 0x846E,
2417 "GL_ALIASED_LINE_WIDTH_RANGE",
2420 0x0B90,
2421 "GL_STENCIL_TEST",
2424 0x8CD2,
2425 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",
2428 0x881C,
2429 "GL_ALPHA16F_EXT",
2432 0x928E,
2433 "GL_SRC_ATOP_NV",
2436 0x8CD4,
2437 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES",
2440 0x9113,
2441 "GL_SYNC_CONDITION_APPLE",
2444 0x8CD7,
2445 "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",
2448 0x08000000,
2449 "GL_MULTISAMPLE_BUFFER_BIT3_QCOM",
2452 0x93A4,
2453 "GL_PACK_REVERSE_ROW_ORDER_ANGLE",
2456 0x8038,
2457 "GL_POLYGON_OFFSET_FACTOR",
2460 0x94F9,
2461 "GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL",
2464 0x851A,
2465 "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z",
2468 0x851C,
2469 "GL_MAX_CUBE_MAP_TEXTURE_SIZE",
2472 0x8CD9,
2473 "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS",
2476 0x84CC,
2477 "GL_TEXTURE12",
2480 0x0BA2,
2481 "GL_VIEWPORT",
2484 0x84CA,
2485 "GL_TEXTURE10",
2488 0x0BA7,
2489 "GL_PATH_PROJECTION_MATRIX_CHROMIUM",
2492 0x84CF,
2493 "GL_TEXTURE15",
2496 0x84CE,
2497 "GL_TEXTURE14",
2500 0x84CD,
2501 "GL_TEXTURE13",
2504 0x83F9,
2505 "GL_PERFQUERY_DONOT_FLUSH_INTEL",
2508 0x9115,
2509 "GL_SYNC_FLAGS_APPLE",
2512 0x9286,
2513 "GL_SRC_NV",
2516 0x83F3,
2517 "GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE",
2520 0x83F2,
2521 "GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE",
2524 0x83F1,
2525 "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT",
2528 0x9114,
2529 "GL_SYNC_STATUS_APPLE",
2532 0x8C0A,
2533 "GL_SGX_BINARY_IMG",
2536 0x93BB,
2537 "GL_COMPRESSED_RGBA_ASTC_10x10_KHR",
2540 0x911C,
2541 "GL_CONDITION_SATISFIED_APPLE",
2544 0x911B,
2545 "GL_TIMEOUT_EXPIRED_APPLE",
2548 0x911A,
2549 "GL_ALREADY_SIGNALED_APPLE",
2552 0x9284,
2553 "GL_CONJOINT_NV",
2556 0x9124,
2557 "GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_EXT",
2560 0x911D,
2561 "GL_WAIT_FAILED_APPLE",
2564 0x929A,
2565 "GL_COLORBURN_KHR",
2568 0x929B,
2569 "GL_HARDLIGHT_KHR",
2572 0x929C,
2573 "GL_SOFTLIGHT_KHR",
2576 0x846D,
2577 "GL_ALIASED_POINT_SIZE_RANGE",
2580 0x929E,
2581 "GL_DIFFERENCE_KHR",
2584 0x929F,
2585 "GL_MINUS_NV",
2588 0x9282,
2589 "GL_UNCORRELATED_NV",
2592 0x9298,
2593 "GL_LIGHTEN_KHR",
2596 0x9299,
2597 "GL_COLORDODGE_KHR",
2600 0x9111,
2601 "GL_MAX_SERVER_WAIT_TIMEOUT_APPLE",
2604 0x93A6,
2605 "GL_PROGRAM_BINARY_ANGLE",
2608 0x9117,
2609 "GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE",
2612 0x93A0,
2613 "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE",
2616 0x93A3,
2617 "GL_FRAMEBUFFER_ATTACHMENT_ANGLE",
2620 0x93A2,
2621 "GL_TEXTURE_USAGE_ANGLE",
2624 0x8802,
2625 "GL_STENCIL_BACK_PASS_DEPTH_FAIL",
2628 0x9119,
2629 "GL_SIGNALED_APPLE",
2632 0x9118,
2633 "GL_UNSIGNALED_APPLE",
2636 0x9294,
2637 "GL_MULTIPLY_KHR",
2640 0x9295,
2641 "GL_SCREEN_KHR",
2644 0x9296,
2645 "GL_OVERLAY_KHR",
2648 0x9297,
2649 "GL_DARKEN_KHR",
2652 0x0020,
2653 "GL_MAP_UNSYNCHRONIZED_BIT_EXT",
2656 0x8E78,
2657 "GL_TESS_GEN_VERTEX_ORDER_EXT",
2660 0x8C01,
2661 "GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG",
2664 0x8C00,
2665 "GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG",
2668 0x8A52,
2669 "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT",
2672 0x8C02,
2673 "GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",
2676 0x84C9,
2677 "GL_TEXTURE9",
2680 0x84C8,
2681 "GL_TEXTURE8",
2684 0x8869,
2685 "GL_MAX_VERTEX_ATTRIBS",
2688 0x84C3,
2689 "GL_TEXTURE3",
2692 0x84C2,
2693 "GL_TEXTURE2",
2696 0x84C1,
2697 "GL_TEXTURE1",
2700 0x84C0,
2701 "GL_TEXTURE0",
2704 0x84C7,
2705 "GL_TEXTURE7",
2708 0x84C6,
2709 "GL_TEXTURE6",
2712 0x84C5,
2713 "GL_TEXTURE5",
2716 0x8803,
2717 "GL_STENCIL_BACK_PASS_DEPTH_PASS",
2720 0x928A,
2721 "GL_SRC_IN_NV",
2724 0x8518,
2725 "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y",
2728 0x8519,
2729 "GL_TEXTURE_CUBE_MAP_POSITIVE_Z",
2732 0x8514,
2733 "GL_TEXTURE_BINDING_CUBE_MAP",
2736 0x8515,
2737 "GL_TEXTURE_CUBE_MAP_POSITIVE_X",
2740 0x8516,
2741 "GL_TEXTURE_CUBE_MAP_NEGATIVE_X",
2744 0x8517,
2745 "GL_TEXTURE_CUBE_MAP_POSITIVE_Y",
2748 0x8218,
2749 "GL_FRAMEBUFFER_DEFAULT",
2752 0x8513,
2753 "GL_TEXTURE_CUBE_MAP",
2756 0x8626,
2757 "GL_CURRENT_VERTEX_ATTRIB",
2760 0x92B1,
2761 "GL_PLUS_CLAMPED_NV",
2764 0x92B0,
2765 "GL_HSL_LUMINOSITY_KHR",
2768 0x92B3,
2769 "GL_MINUS_CLAMPED_NV",
2772 0x92B2,
2773 "GL_PLUS_CLAMPED_ALPHA_NV",
2776 0x8765,
2777 "GL_BUFFER_USAGE",
2780 0x8764,
2781 "GL_BUFFER_SIZE",
2784 0x8B99,
2785 "GL_PALETTE8_RGB5_A1_OES",
2788 0x0503,
2789 "GL_STACK_OVERFLOW_KHR",
2792 0x0502,
2793 "GL_INVALID_OPERATION",
2796 0x0501,
2797 "GL_INVALID_VALUE",
2800 0x0500,
2801 "GL_INVALID_ENUM",
2804 0x0507,
2805 "GL_CONTEXT_LOST_KHR",
2808 0x0506,
2809 "GL_INVALID_FRAMEBUFFER_OPERATION",
2812 0x0505,
2813 "GL_OUT_OF_MEMORY",
2816 0x0504,
2817 "GL_STACK_UNDERFLOW_KHR",
2820 0x0CF4,
2821 "GL_UNPACK_SKIP_PIXELS_EXT",
2824 0x0B44,
2825 "GL_CULL_FACE",
2828 0x8B5E,
2829 "GL_SAMPLER_2D",
2832 0x0B46,
2833 "GL_FRONT_FACE",
2836 0x8FB3,
2837 "GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM",
2840 0x824A,
2841 "GL_DEBUG_SOURCE_APPLICATION_KHR",
2844 0x824B,
2845 "GL_DEBUG_SOURCE_OTHER_KHR",
2848 0x824C,
2849 "GL_DEBUG_TYPE_ERROR_KHR",
2852 0x824D,
2853 "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR",
2856 0x824E,
2857 "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR",
2860 0x824F,
2861 "GL_DEBUG_TYPE_PORTABILITY_KHR",
2864 0x8DD7,
2865 "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY",
2868 0x8B31,
2869 "GL_VERTEX_SHADER",
2872 0x8B30,
2873 "GL_FRAGMENT_SHADER",
2876 0x8FB1,
2877 "GL_CPU_OPTIMIZED_QCOM",
2880 0x93D2,
2881 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR",
2884 0x82FB,
2885 "GL_CONTEXT_RELEASE_BEHAVIOR_KHR",
2888 0x8B5A,
2889 "GL_FLOAT_MAT2",
2892 0x84D8,
2893 "GL_TEXTURE24",
2896 0x84D9,
2897 "GL_TEXTURE25",
2900 0x84D6,
2901 "GL_TEXTURE22",
2904 0x84D7,
2905 "GL_TEXTURE23",
2908 0x84D4,
2909 "GL_TEXTURE20",
2912 0x0D05,
2913 "GL_PACK_ALIGNMENT",
2916 0x84D2,
2917 "GL_TEXTURE18",
2920 0x84D3,
2921 "GL_TEXTURE19",
2924 0x84D0,
2925 "GL_TEXTURE16",
2928 0x84D1,
2929 "GL_TEXTURE17",
2932 0x93D1,
2933 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR",
2936 0x84DF,
2937 "GL_TEXTURE31",
2940 0x8B97,
2941 "GL_PALETTE8_R5_G6_B5_OES",
2944 0x84DD,
2945 "GL_TEXTURE29",
2948 0x84DE,
2949 "GL_TEXTURE30",
2952 0x84DB,
2953 "GL_TEXTURE27",
2956 0x84DC,
2957 "GL_TEXTURE28",
2960 0x6002,
2961 "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM",
2964 0x84DA,
2965 "GL_TEXTURE26",
2968 0x8242,
2969 "GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR",
2972 0x8243,
2973 "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR",
2976 0x8244,
2977 "GL_DEBUG_CALLBACK_FUNCTION_KHR",
2980 0x8245,
2981 "GL_DEBUG_CALLBACK_USER_PARAM_KHR",
2984 0x8246,
2985 "GL_DEBUG_SOURCE_API_KHR",
2988 0x8247,
2989 "GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR",
2992 0x8248,
2993 "GL_DEBUG_SOURCE_SHADER_COMPILER_KHR",
2996 0x8249,
2997 "GL_DEBUG_SOURCE_THIRD_PARTY_KHR",
3000 0x8B94,
3001 "GL_PALETTE4_RGB5_A1_OES",
3004 0x94F4,
3005 "GL_PERFQUERY_COUNTER_RAW_INTEL",
3008 0x823C,
3009 "GL_RG32UI",
3012 0x8A29,
3013 "GL_UNIFORM_BUFFER_START",
3016 0x8A28,
3017 "GL_UNIFORM_BUFFER_BINDING",
3020 0x92BE,
3021 "GL_PRIMITIVE_BOUNDING_BOX_EXT",
3024 0x8645,
3025 "GL_VERTEX_ATTRIB_ARRAY_POINTER",
3028 0x8865,
3029 "GL_CURRENT_QUERY_EXT",
3032 0x8E5B,
3033 "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_OES",
3036 0x8E5C,
3037 "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_OES",
3040 0x8E5D,
3041 "GL_FRAGMENT_INTERPOLATION_OFFSET_BITS_OES",
3044 0x906A,
3045 "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT",
3048 0x906F,
3049 "GL_RGB10_A2UI",
3052 0x8E72,
3053 "GL_PATCH_VERTICES_EXT",
3056 0x8BD3,
3057 "GL_TEXTURE_HEIGHT_QCOM",
3060 0x87FA,
3061 "GL_3DC_XY_AMD",
3064 0x84C4,
3065 "GL_TEXTURE4",
3068 0x821C,
3069 "GL_MINOR_VERSION",
3072 0x8E8A,
3073 "GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_EXT",
3076 0x85B5,
3077 "GL_VERTEX_ARRAY_BINDING_OES",
3080 0x8253,
3081 "GL_GUILTY_CONTEXT_RESET_KHR",
3084 0x8D6B,
3085 "GL_MAX_ELEMENT_INDEX",
3088 0x8D6C,
3089 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT",
3092 0x92A1,
3093 "GL_CONTRAST_NV",
3096 0x8252,
3097 "GL_LOSE_CONTEXT_ON_RESET_KHR",
3100 0x8C4C,
3101 "GL_COMPRESSED_SRGB_S3TC_DXT1_NV",
3104 0x8C4E,
3105 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV",
3108 0x8251,
3109 "GL_DEBUG_TYPE_OTHER_KHR",
3112 0x8C4F,
3113 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV",
3116 0x9309,
3117 "GL_REFERENCED_BY_GEOMETRY_SHADER_EXT",
3120 0x93E9,
3121 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES",
3124 0x93E8,
3125 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES",
3128 0x8C43,
3129 "GL_SRGB8_ALPHA8_EXT",
3132 0x8C42,
3133 "GL_SRGB_ALPHA_EXT",
3136 0x8C45,
3137 "GL_SLUMINANCE8_ALPHA8_NV",
3140 0x8C44,
3141 "GL_SLUMINANCE_ALPHA_NV",
3144 0x8C47,
3145 "GL_SLUMINANCE8_NV",
3148 0x8C46,
3149 "GL_SLUMINANCE_NV",
3152 0x93E1,
3153 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES",
3156 0x93E0,
3157 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES",
3160 0x93E3,
3161 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES",
3164 0x93E2,
3165 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES",
3168 0x93E5,
3169 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES",
3172 0x93E4,
3173 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES",
3176 0x93E7,
3177 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES",
3180 0x93E6,
3181 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES",
3184 0x8D68,
3185 "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES",
3188 0x8E82,
3189 "GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_EXT",
3192 0x8E81,
3193 "GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_EXT",
3196 0x85BB,
3197 "GL_UNSIGNED_SHORT_8_8_REV_APPLE",
3200 0x8E87,
3201 "GL_TESS_EVALUATION_SHADER_EXT",
3204 0x8E86,
3205 "GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_EXT",
3208 0x8E85,
3209 "GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_EXT",
3212 0x8E84,
3213 "GL_MAX_TESS_PATCH_COMPONENTS_EXT",
3216 0x8D61,
3217 "GL_HALF_FLOAT_OES",
3220 0x8D62,
3221 "GL_RGB565",
3224 0x8E88,
3225 "GL_TESS_CONTROL_SHADER_EXT",
3228 0x8D64,
3229 "GL_ETC1_RGB8_OES",
3232 0x8D65,
3233 "GL_TEXTURE_EXTERNAL_OES",
3236 0x8D66,
3237 "GL_SAMPLER_EXTERNAL_OES",
3240 0x8D67,
3241 "GL_TEXTURE_BINDING_EXTERNAL_OES",
3244 0x10000000,
3245 "GL_MULTISAMPLE_BUFFER_BIT4_QCOM",
3248 0x04000000,
3249 "GL_MULTISAMPLE_BUFFER_BIT2_QCOM",
3252 0x90D7,
3253 "GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_EXT",
3256 0x90D9,
3257 "GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_EXT",
3260 0x90D8,
3261 "GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_EXT",
3264 0x8CEE,
3265 "GL_COLOR_ATTACHMENT14_EXT",
3268 0x8DC7,
3269 "GL_UNSIGNED_INT_VEC3",
3272 0x1701,
3273 "GL_PATH_PROJECTION_CHROMIUM",
3276 0x2800,
3277 "GL_TEXTURE_MAG_FILTER",
3280 0x2801,
3281 "GL_TEXTURE_MIN_FILTER",
3284 0x2802,
3285 "GL_TEXTURE_WRAP_S",
3288 0x2803,
3289 "GL_TEXTURE_WRAP_T",
3292 0x8DCB,
3293 "GL_INT_SAMPLER_3D",
3296 0x3007,
3297 "GL_CLIP_DISTANCE7_APPLE",
3300 0x2703,
3301 "GL_LINEAR_MIPMAP_LINEAR",
3304 0x3005,
3305 "GL_CLIP_DISTANCE5_APPLE",
3308 0x3004,
3309 "GL_CLIP_DISTANCE4_APPLE",
3312 0x8B98,
3313 "GL_PALETTE8_RGBA4_OES",
3316 0x3002,
3317 "GL_CLIP_DISTANCE2_APPLE",
3320 0x3001,
3321 "GL_CLIP_DISTANCE1_APPLE",
3324 0x2702,
3325 "GL_NEAREST_MIPMAP_LINEAR",
3328 0x1F03,
3329 "GL_EXTENSIONS",
3332 0x1F02,
3333 "GL_VERSION",
3336 0x1F01,
3337 "GL_RENDERER",
3340 0x1F00,
3341 "GL_VENDOR",
3344 0x9247,
3345 "GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM",
3348 0x2701,
3349 "GL_LINEAR_MIPMAP_NEAREST",
3352 0x9245,
3353 "GL_OVERLAY_TRANSFORM_NONE_CHROMIUM",
3356 0x92B4,
3357 "GL_INVERT_OVG_NV",
3360 0x9249,
3361 "GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM",
3364 0x0B94,
3365 "GL_STENCIL_FAIL",
3368 0x8B4A,
3369 "GL_MAX_VERTEX_UNIFORM_COMPONENTS",
3372 0x8B4B,
3373 "GL_MAX_VARYING_COMPONENTS",
3376 0x8B4C,
3377 "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS",
3380 0x8B4D,
3381 "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS",
3384 0x8B4F,
3385 "GL_SHADER_TYPE",
3388 0x9122,
3389 "GL_MAX_VERTEX_OUTPUT_COMPONENTS",
3392 0x9123,
3393 "GL_MAX_GEOMETRY_INPUT_COMPONENTS_EXT",
3396 0x83FB,
3397 "GL_PERFQUERY_WAIT_INTEL",
3400 0x9121,
3401 "GL_BUFFER_MAP_OFFSET",
3404 0x00004000,
3405 "GL_COLOR_BUFFER_BIT",
3408 0x9125,
3409 "GL_MAX_FRAGMENT_INPUT_COMPONENTS",
3412 0x00000010,
3413 "GL_TESS_EVALUATION_SHADER_BIT_EXT",
3416 0x8834,
3417 "GL_DRAW_BUFFER15_EXT",
3420 0x8833,
3421 "GL_DRAW_BUFFER14_EXT",
3424 0x8832,
3425 "GL_DRAW_BUFFER13_EXT",
3428 0x8831,
3429 "GL_DRAW_BUFFER12_EXT",
3432 0x8830,
3433 "GL_DRAW_BUFFER11_EXT",
3436 0x8DC5,
3437 "GL_SAMPLER_CUBE_SHADOW_NV",
3440 0x94FF,
3441 "GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL",
3444 0x94FE,
3445 "GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL",
3448 0x94FD,
3449 "GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL",
3452 0x94FC,
3453 "GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL",
3456 0x94FB,
3457 "GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL",
3460 0x93B8,
3461 "GL_COMPRESSED_RGBA_ASTC_10x5_KHR",
3464 0x8B65,
3465 "GL_FLOAT_MAT2x3_NV",
3468 0x9241,
3469 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM",
3472 0x00010000,
3473 "GL_STENCIL_BUFFER_BIT0_QCOM",
3476 0x83FA,
3477 "GL_PERFQUERY_FLUSH_INTEL",
3480 0x0D03,
3481 "GL_PACK_SKIP_ROWS",
3484 0x84F3,
3485 "GL_FENCE_STATUS_NV",
3488 0x88E6,
3489 "GL_STATIC_COPY",
3492 0x0B93,
3493 "GL_STENCIL_VALUE_MASK",
3496 0x0B92,
3497 "GL_STENCIL_FUNC",
3500 0x0B91,
3501 "GL_STENCIL_CLEAR_VALUE",
3504 0x883D,
3505 "GL_BLEND_EQUATION_ALPHA",
3508 0x0B97,
3509 "GL_STENCIL_REF",
3512 0x0B96,
3513 "GL_STENCIL_PASS_DEPTH_PASS",
3516 0x0B95,
3517 "GL_STENCIL_PASS_DEPTH_FAIL",
3520 0x2700,
3521 "GL_NEAREST_MIPMAP_NEAREST",
3524 0x94F5,
3525 "GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL",
3528 0x0B98,
3529 "GL_STENCIL_WRITEMASK",
3532 0x94F3,
3533 "GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL",
3536 0x94F2,
3537 "GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL",
3540 0x94F1,
3541 "GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL",
3544 0x94F0,
3545 "GL_PERFQUERY_COUNTER_EVENT_INTEL",
3548 0x8B40,
3549 "GL_PROGRAM_OBJECT_EXT",
3552 0x1004,
3553 "GL_TEXTURE_BORDER_COLOR_EXT",
3556 0x8A2D,
3557 "GL_MAX_FRAGMENT_UNIFORM_BLOCKS",
3560 0x8B48,
3561 "GL_SHADER_OBJECT_EXT",
3564 0x8B49,
3565 "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS",
3568 0x813A,
3569 "GL_TEXTURE_MIN_LOD",
3572 0x8DE1,
3573 "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT",
3576 0x8DE0,
3577 "GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT",
3580 0x924C,
3581 "GL_MOUSE_POSITION_CHROMIUM",
3584 0x924B,
3585 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM",
3588 0x924A,
3589 "GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM",
3592 0x8A2F,
3593 "GL_MAX_UNIFORM_BUFFER_BINDINGS",
3596 0x20000000,
3597 "GL_MULTISAMPLE_BUFFER_BIT5_QCOM",
3600 0x8A2A,
3601 "GL_UNIFORM_BUFFER_SIZE",
3604 0x0DE1,
3605 "GL_TEXTURE_2D",
3608 0x8A2C,
3609 "GL_MAX_GEOMETRY_UNIFORM_BLOCKS_EXT",
3612 0x80C9,
3613 "GL_BLEND_SRC_RGB",
3616 0x80C8,
3617 "GL_BLEND_DST_RGB",
3620 0x912F,
3621 "GL_TEXTURE_IMMUTABLE_FORMAT_EXT",
3624 0x8A2B,
3625 "GL_MAX_VERTEX_UNIFORM_BLOCKS",
3628 0x9246,
3629 "GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM",
3632 0x88EC,
3633 "GL_PIXEL_UNPACK_BUFFER",
3636 0x8D8F,
3637 "GL_RGB8I",
3640 0x8059,
3641 "GL_RGB10_A2_EXT",
3644 0x8058,
3645 "GL_RGBA8_OES",
3648 0x8B93,
3649 "GL_PALETTE4_RGBA4_OES",
3652 0x88EB,
3653 "GL_PIXEL_PACK_BUFFER",
3656 0x8E83,
3657 "GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_EXT",
3660 0x8051,
3661 "GL_RGB8_OES",
3664 0x8CAD,
3665 "GL_DEPTH32F_STENCIL8",
3668 0x8052,
3669 "GL_RGB10_EXT",
3672 0x8CAB,
3673 "GL_RENDERBUFFER_SAMPLES_ANGLE",
3676 0x8CAC,
3677 "GL_DEPTH_COMPONENT32F",
3680 0x8057,
3681 "GL_RGB5_A1",
3684 0x8056,
3685 "GL_RGBA4",
3688 0x8232,
3689 "GL_R8UI",
3692 0x150A,
3693 "GL_INVERT",
3696 0x01000000,
3697 "GL_MULTISAMPLE_BUFFER_BIT0_QCOM",
3700 0x78ED,
3701 "GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM",
3704 0x78EE,
3705 "GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM",
3708 0x6001,
3709 "GL_TEXTURE_POOL_MANAGED_CHROMIUM",
3712 0x0B45,
3713 "GL_CULL_FACE_MODE",
3716 0x8B92,
3717 "GL_PALETTE4_R5_G6_B5_OES",
3720 0x00100000,
3721 "GL_STENCIL_BUFFER_BIT4_QCOM",
3724 0x8E4E,
3725 "GL_LAST_VERTEX_CONVENTION_EXT",
3728 0x8E4D,
3729 "GL_FIRST_VERTEX_CONVENTION_EXT",
3732 0x8E24,
3733 "GL_TRANSFORM_FEEDBACK_ACTIVE",
3736 0x8E45,
3737 "GL_TEXTURE_SWIZZLE_A",
3740 0x8E44,
3741 "GL_TEXTURE_SWIZZLE_B",
3744 0x8E43,
3745 "GL_TEXTURE_SWIZZLE_G",
3748 0x8E42,
3749 "GL_TEXTURE_SWIZZLE_R",
3752 0x8D20,
3753 "GL_STENCIL_ATTACHMENT",
3756 0x8B91,
3757 "GL_PALETTE4_RGBA8_OES",
3760 0x00000200,
3761 "GL_DEPTH_BUFFER_BIT1_QCOM",
3764 0x78EC,
3765 "GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM",
3768 0x78FA,
3769 "GL_RGB_YUV_420_CHROMIUM",
3772 0x00008000,
3773 "GL_COVERAGE_BUFFER_BIT_NV",
3776 0x1506,
3777 "GL_XOR_NV",
3780 0x8CA8,
3781 "GL_READ_FRAMEBUFFER_ANGLE",
3784 0x8CA9,
3785 "GL_DRAW_FRAMEBUFFER_ANGLE",
3788 0x8CA6,
3789 "GL_FRAMEBUFFER_BINDING",
3792 0x8CA7,
3793 "GL_RENDERBUFFER_BINDING",
3796 0x8CA4,
3797 "GL_STENCIL_BACK_VALUE_MASK",
3800 0x8CA5,
3801 "GL_STENCIL_BACK_WRITEMASK",
3804 0x8B90,
3805 "GL_PALETTE4_RGB8_OES",
3808 0x8CA3,
3809 "GL_STENCIL_BACK_REF",
3812 0x80E8,
3813 "GL_MAX_ELEMENTS_VERTICES",
3816 0x80CB,
3817 "GL_BLEND_SRC_ALPHA",
3820 0x80CA,
3821 "GL_BLEND_DST_ALPHA",
3824 0x8CE7,
3825 "GL_COLOR_ATTACHMENT7_EXT",
3828 0x93B0,
3829 "GL_COMPRESSED_RGBA_ASTC_4x4_KHR",
3832 0x93B1,
3833 "GL_COMPRESSED_RGBA_ASTC_5x4_KHR",
3836 0x93B2,
3837 "GL_COMPRESSED_RGBA_ASTC_5x5_KHR",
3840 0x93B3,
3841 "GL_COMPRESSED_RGBA_ASTC_6x5_KHR",
3844 0x93B4,
3845 "GL_COMPRESSED_RGBA_ASTC_6x6_KHR",
3848 0x93B5,
3849 "GL_COMPRESSED_RGBA_ASTC_8x5_KHR",
3852 0x93B6,
3853 "GL_COMPRESSED_RGBA_ASTC_8x6_KHR",
3856 0x93B7,
3857 "GL_COMPRESSED_RGBA_ASTC_8x8_KHR",
3860 0x8CD6,
3861 "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT",
3864 0x93B9,
3865 "GL_COMPRESSED_RGBA_ASTC_10x6_KHR",
3868 0x80E9,
3869 "GL_MAX_ELEMENTS_INDICES",
3872 0x8CE5,
3873 "GL_COLOR_ATTACHMENT5_EXT",
3876 0x8C84,
3877 "GL_TRANSFORM_FEEDBACK_BUFFER_START",
3880 0x0BA6,
3881 "GL_PATH_MODELVIEW_MATRIX_CHROMIUM",
3884 0x8DC2,
3885 "GL_SAMPLER_BUFFER_EXT",
3888 0x8C36,
3889 "GL_SAMPLE_SHADING_OES",
3892 0x8C37,
3893 "GL_MIN_SAMPLE_SHADING_VALUE_OES",
3896 0x8F97,
3897 "GL_RGBA8_SNORM",
3900 0x8CE9,
3901 "GL_COLOR_ATTACHMENT9_EXT",
3904 0x8DAD,
3905 "GL_FLOAT_32_UNSIGNED_INT_24_8_REV",
3908 0x8B96,
3909 "GL_PALETTE8_RGBA8_OES",
3912 0x8872,
3913 "GL_MAX_TEXTURE_IMAGE_UNITS",
3916 0x8DC6,
3917 "GL_UNSIGNED_INT_VEC2",
3920 0x8508,
3921 "GL_DECR_WRAP",
3924 0x92AD,
3925 "GL_HSL_HUE_KHR",
3928 0x92AE,
3929 "GL_HSL_SATURATION_KHR",
3932 0x92AF,
3933 "GL_HSL_COLOR_KHR",
3936 0x8BD4,
3937 "GL_TEXTURE_DEPTH_QCOM",
3940 0x8DC4,
3941 "GL_SAMPLER_2D_ARRAY_SHADOW_NV",
3944 0x8507,
3945 "GL_INCR_WRAP",
3948 0x82FC,
3949 "GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR",
3952 0x8895,
3953 "GL_ELEMENT_ARRAY_BUFFER_BINDING",
3956 0x8894,
3957 "GL_ARRAY_BUFFER_BINDING",
3960 0x92A3,
3961 "GL_INVERT_RGB_NV",
3964 0x905F,
3965 "GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT",
3968 0x92A5,
3969 "GL_LINEARBURN_NV",
3972 0x8893,
3973 "GL_ELEMENT_ARRAY_BUFFER",
3976 0x8892,
3977 "GL_ARRAY_BUFFER",
3980 0x92A8,
3981 "GL_PINLIGHT_NV",
3984 0x92A9,
3985 "GL_HARDMIX_NV",
3988 0x9112,
3989 "GL_OBJECT_TYPE_APPLE",
3992 0x90CC,
3993 "GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_EXT",
3996 0x90CD,
3997 "GL_MAX_GEOMETRY_IMAGE_UNIFORMS_EXT",
4000 0x919F,
4001 "GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT",
4004 0x919E,
4005 "GL_TEXTURE_BUFFER_SIZE_EXT",
4008 0x919D,
4009 "GL_TEXTURE_BUFFER_OFFSET_EXT",
4012 0x8BD8,
4013 "GL_TEXTURE_IMAGE_VALID_QCOM",
4016 0x9278,
4017 "GL_COMPRESSED_RGBA8_ETC2_EAC",
4020 0x9279,
4021 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",
4024 0x8DA7,
4025 "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT",
4028 0x9272,
4029 "GL_COMPRESSED_RG11_EAC",
4032 0x8DA8,
4033 "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT",
4036 0x9270,
4037 "GL_COMPRESSED_R11_EAC",
4040 0x9271,
4041 "GL_COMPRESSED_SIGNED_R11_EAC",
4044 0x9276,
4045 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",
4048 0x887F,
4049 "GL_GEOMETRY_SHADER_INVOCATIONS_EXT",
4052 0x8A3B,
4053 "GL_UNIFORM_OFFSET",
4056 0x9275,
4057 "GL_COMPRESSED_SRGB8_ETC2",
4060 0x84D5,
4061 "GL_TEXTURE21",
4064 0x8C3A,
4065 "GL_R11F_G11F_B10F_APPLE",
4068 0x8C3B,
4069 "GL_UNSIGNED_INT_10F_11F_11F_REV_APPLE",
4072 0x8C3D,
4073 "GL_RGB9_E5_APPLE",
4076 0x8C3E,
4077 "GL_UNSIGNED_INT_5_9_9_9_REV_APPLE",
4080 0x9287,
4081 "GL_DST_NV",
4084 0x93BA,
4085 "GL_COMPRESSED_RGBA_ASTC_10x8_KHR",
4088 0x9285,
4089 "GL_BLEND_ADVANCED_COHERENT_KHR",
4092 0x93BC,
4093 "GL_COMPRESSED_RGBA_ASTC_12x10_KHR",
4096 0x93BD,
4097 "GL_COMPRESSED_RGBA_ASTC_12x12_KHR",
4100 0x84E8,
4101 "GL_MAX_RENDERBUFFER_SIZE",
4104 0x9281,
4105 "GL_BLEND_OVERLAP_NV",
4108 0x9280,
4109 "GL_BLEND_PREMULTIPLIED_SRC_NV",
4112 0x00002000,
4113 "GL_DEPTH_BUFFER_BIT5_QCOM",
4116 0x8370,
4117 "GL_MIRRORED_REPEAT",
4120 0x84E0,
4121 "GL_ACTIVE_TEXTURE",
4124 0x8800,
4125 "GL_STENCIL_BACK_FUNC",
4128 0x8801,
4129 "GL_STENCIL_BACK_FAIL",
4132 0x0D33,
4133 "GL_MAX_TEXTURE_SIZE",
4136 0x0D32,
4137 "GL_MAX_CLIP_DISTANCES_APPLE",
4140 0x8624,
4141 "GL_VERTEX_ATTRIB_ARRAY_STRIDE",
4144 0x8625,
4145 "GL_VERTEX_ATTRIB_ARRAY_TYPE",
4148 0x8622,
4149 "GL_VERTEX_ATTRIB_ARRAY_ENABLED",
4152 0x8623,
4153 "GL_VERTEX_ATTRIB_ARRAY_SIZE",
4156 0x8DB9,
4157 "GL_FRAMEBUFFER_SRGB_EXT",
4160 0x9307,
4161 "GL_REFERENCED_BY_TESS_CONTROL_SHADER_EXT",
4164 0x8259,
4165 "GL_ACTIVE_PROGRAM_EXT",
4168 0x8258,
4169 "GL_PROGRAM_SEPARABLE_EXT",
4172 0x8257,
4173 "GL_PROGRAM_BINARY_RETRIEVABLE_HINT",
4176 0x8256,
4177 "GL_RESET_NOTIFICATION_STRATEGY_KHR",
4180 0x8255,
4181 "GL_UNKNOWN_CONTEXT_RESET_KHR",
4184 0x8254,
4185 "GL_INNOCENT_CONTEXT_RESET_KHR",
4188 0x1100,
4189 "GL_DONT_CARE",
4192 0x1101,
4193 "GL_FASTEST",
4196 0x1102,
4197 "GL_NICEST",
4200 0x8250,
4201 "GL_DEBUG_TYPE_PERFORMANCE_KHR",
4204 0x8CEB,
4205 "GL_COLOR_ATTACHMENT11_EXT",
4208 0x8CEC,
4209 "GL_COLOR_ATTACHMENT12_EXT",
4212 0x0408,
4213 "GL_FRONT_AND_BACK",
4216 0x8CEA,
4217 "GL_COLOR_ATTACHMENT10_EXT",
4220 0x8CEF,
4221 "GL_COLOR_ATTACHMENT15_EXT",
4224 0x8CED,
4225 "GL_COLOR_ATTACHMENT13_EXT",
4228 0x8829,
4229 "GL_DRAW_BUFFER4_EXT",
4232 0x0404,
4233 "GL_FRONT",
4236 0x0405,
4237 "GL_BACK",
4240 0x88E1,
4241 "GL_STREAM_READ",
4244 0x88E0,
4245 "GL_STREAM_DRAW",
4248 0x88E2,
4249 "GL_STREAM_COPY",
4252 0x88E5,
4253 "GL_STATIC_READ",
4256 0x88E4,
4257 "GL_STATIC_DRAW",
4260 0x93C6,
4261 "GL_COMPRESSED_RGBA_ASTC_5x5x5_OES",
4264 0x88E9,
4265 "GL_DYNAMIC_READ",
4268 0x88E8,
4269 "GL_DYNAMIC_DRAW",
4272 0x9291,
4273 "GL_PLUS_NV",
4276 0x8CAA,
4277 "GL_READ_FRAMEBUFFER_BINDING_ANGLE",
4280 0x93C5,
4281 "GL_COMPRESSED_RGBA_ASTC_5x5x4_OES",
4284 0x40000000,
4285 "GL_MULTISAMPLE_BUFFER_BIT6_QCOM",
4288 0x88EA,
4289 "GL_DYNAMIC_COPY",
4292 0x9116,
4293 "GL_SYNC_FENCE_APPLE",
4296 0x93C4,
4297 "GL_COMPRESSED_RGBA_ASTC_5x4x4_OES",
4300 0x88EE,
4301 "GL_ETC1_SRGB8_NV",
4304 0x88ED,
4305 "GL_PIXEL_PACK_BUFFER_BINDING",
4308 0x88EF,
4309 "GL_PIXEL_UNPACK_BUFFER_BINDING",
4312 0x93C3,
4313 "GL_COMPRESSED_RGBA_ASTC_4x4x4_OES",
4316 0x00000800,
4317 "GL_DEPTH_BUFFER_BIT3_QCOM",
4320 0x1903,
4321 "GL_RED_EXT",
4324 0x93C2,
4325 "GL_COMPRESSED_RGBA_ASTC_4x4x3_OES",
4328 0x8CE2,
4329 "GL_COLOR_ATTACHMENT2_EXT",
4332 0x8BC1,
4333 "GL_COUNTER_RANGE_AMD",
4336 0x8CE0,
4337 "GL_COLOR_ATTACHMENT0",
4340 0x8CE1,
4341 "GL_COLOR_ATTACHMENT1_EXT",
4344 0x8CE6,
4345 "GL_COLOR_ATTACHMENT6_EXT",
4348 0x93C1,
4349 "GL_COMPRESSED_RGBA_ASTC_4x3x3_OES",
4352 0x8A1F,
4353 "GL_RGB_422_APPLE",
4356 0x93DC,
4357 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR",
4360 0x9292,
4361 "GL_PLUS_DARKER_NV",
4364 0x8CE8,
4365 "GL_COLOR_ATTACHMENT8_EXT",
4368 0x93C0,
4369 "GL_COMPRESSED_RGBA_ASTC_3x3x3_OES",
4372 0x0C23,
4373 "GL_COLOR_WRITEMASK",
4376 0x0C22,
4377 "GL_COLOR_CLEAR_VALUE",
4380 0x8A11,
4381 "GL_UNIFORM_BUFFER",
4384 0x8823,
4385 "GL_WRITEONLY_RENDERING_QCOM",
4388 0x78F1,
4389 "GL_MAP_CHROMIUM",
4392 0x8824,
4393 "GL_MAX_DRAW_BUFFERS_EXT",
4396 0x825E,
4397 "GL_LAYER_PROVOKING_VERTEX_EXT",
4400 0x825A,
4401 "GL_PROGRAM_PIPELINE_BINDING_EXT",
4404 0x1909,
4405 "GL_LUMINANCE",
4408 0x0D3A,
4409 "GL_MAX_VIEWPORT_DIMS",
4412 0x8B53,
4413 "GL_INT_VEC2",
4416 0x8826,
4417 "GL_DRAW_BUFFER1_EXT",
4420 0x809E,
4421 "GL_SAMPLE_ALPHA_TO_COVERAGE",
4424 0x8BC0,
4425 "GL_COUNTER_TYPE_AMD",
4428 0x8BC3,
4429 "GL_PERCENTAGE_AMD",
4432 0x8BC2,
4433 "GL_UNSIGNED_INT64_AMD",
4436 0x8BC5,
4437 "GL_PERFMON_RESULT_SIZE_AMD",
4440 0x8BC4,
4441 "GL_PERFMON_RESULT_AVAILABLE_AMD",
4444 0x8BC6,
4445 "GL_PERFMON_RESULT_AMD",
4449 const GLES2Util::EnumToString* const GLES2Util::enum_to_string_table_ =
4450 enum_to_string_table;
4451 const size_t GLES2Util::enum_to_string_table_len_ =
4452 sizeof(enum_to_string_table) / sizeof(enum_to_string_table[0]);
4454 std::string GLES2Util::GetStringAttachment(uint32_t value) {
4455 static const EnumToString string_table[] = {
4456 {GL_COLOR_ATTACHMENT0, "GL_COLOR_ATTACHMENT0"},
4457 {GL_DEPTH_ATTACHMENT, "GL_DEPTH_ATTACHMENT"},
4458 {GL_STENCIL_ATTACHMENT, "GL_STENCIL_ATTACHMENT"},
4459 {GL_DEPTH_STENCIL_ATTACHMENT, "GL_DEPTH_STENCIL_ATTACHMENT"},
4461 return GLES2Util::GetQualifiedEnumString(string_table,
4462 arraysize(string_table), value);
4465 std::string GLES2Util::GetStringBackbufferAttachment(uint32_t value) {
4466 static const EnumToString string_table[] = {
4467 {GL_COLOR_EXT, "GL_COLOR_EXT"},
4468 {GL_DEPTH_EXT, "GL_DEPTH_EXT"},
4469 {GL_STENCIL_EXT, "GL_STENCIL_EXT"},
4471 return GLES2Util::GetQualifiedEnumString(string_table,
4472 arraysize(string_table), value);
4475 std::string GLES2Util::GetStringBlitFilter(uint32_t value) {
4476 static const EnumToString string_table[] = {
4477 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"},
4479 return GLES2Util::GetQualifiedEnumString(string_table,
4480 arraysize(string_table), value);
4483 std::string GLES2Util::GetStringBufferMode(uint32_t value) {
4484 static const EnumToString string_table[] = {
4485 {GL_INTERLEAVED_ATTRIBS, "GL_INTERLEAVED_ATTRIBS"},
4486 {GL_SEPARATE_ATTRIBS, "GL_SEPARATE_ATTRIBS"},
4488 return GLES2Util::GetQualifiedEnumString(string_table,
4489 arraysize(string_table), value);
4492 std::string GLES2Util::GetStringBufferParameter(uint32_t value) {
4493 static const EnumToString string_table[] = {
4494 {GL_BUFFER_SIZE, "GL_BUFFER_SIZE"},
4495 {GL_BUFFER_USAGE, "GL_BUFFER_USAGE"},
4496 {GL_BUFFER_ACCESS_FLAGS, "GL_BUFFER_ACCESS_FLAGS"},
4497 {GL_BUFFER_MAPPED, "GL_BUFFER_MAPPED"},
4498 {GL_BUFFER_MAP_LENGTH, "GL_BUFFER_MAP_LENGTH"},
4499 {GL_BUFFER_MAP_OFFSET, "GL_BUFFER_MAP_OFFSET"},
4501 return GLES2Util::GetQualifiedEnumString(string_table,
4502 arraysize(string_table), value);
4505 std::string GLES2Util::GetStringBufferTarget(uint32_t value) {
4506 static const EnumToString string_table[] = {
4507 {GL_ARRAY_BUFFER, "GL_ARRAY_BUFFER"},
4508 {GL_ELEMENT_ARRAY_BUFFER, "GL_ELEMENT_ARRAY_BUFFER"},
4509 {GL_COPY_READ_BUFFER, "GL_COPY_READ_BUFFER"},
4510 {GL_COPY_WRITE_BUFFER, "GL_COPY_WRITE_BUFFER"},
4511 {GL_PIXEL_PACK_BUFFER, "GL_PIXEL_PACK_BUFFER"},
4512 {GL_PIXEL_UNPACK_BUFFER, "GL_PIXEL_UNPACK_BUFFER"},
4513 {GL_TRANSFORM_FEEDBACK_BUFFER, "GL_TRANSFORM_FEEDBACK_BUFFER"},
4514 {GL_UNIFORM_BUFFER, "GL_UNIFORM_BUFFER"},
4516 return GLES2Util::GetQualifiedEnumString(string_table,
4517 arraysize(string_table), value);
4520 std::string GLES2Util::GetStringBufferUsage(uint32_t value) {
4521 static const EnumToString string_table[] = {
4522 {GL_STREAM_DRAW, "GL_STREAM_DRAW"},
4523 {GL_STATIC_DRAW, "GL_STATIC_DRAW"},
4524 {GL_DYNAMIC_DRAW, "GL_DYNAMIC_DRAW"},
4525 {GL_STREAM_READ, "GL_STREAM_READ"},
4526 {GL_STREAM_COPY, "GL_STREAM_COPY"},
4527 {GL_STATIC_READ, "GL_STATIC_READ"},
4528 {GL_STATIC_COPY, "GL_STATIC_COPY"},
4529 {GL_DYNAMIC_READ, "GL_DYNAMIC_READ"},
4530 {GL_DYNAMIC_COPY, "GL_DYNAMIC_COPY"},
4532 return GLES2Util::GetQualifiedEnumString(string_table,
4533 arraysize(string_table), value);
4536 std::string GLES2Util::GetStringBufferfi(uint32_t value) {
4537 static const EnumToString string_table[] = {
4538 {GL_DEPTH_STENCIL, "GL_DEPTH_STENCIL"},
4540 return GLES2Util::GetQualifiedEnumString(string_table,
4541 arraysize(string_table), value);
4544 std::string GLES2Util::GetStringBufferfv(uint32_t value) {
4545 static const EnumToString string_table[] = {
4546 {GL_COLOR, "GL_COLOR"}, {GL_DEPTH, "GL_DEPTH"},
4548 return GLES2Util::GetQualifiedEnumString(string_table,
4549 arraysize(string_table), value);
4552 std::string GLES2Util::GetStringBufferiv(uint32_t value) {
4553 static const EnumToString string_table[] = {
4554 {GL_COLOR, "GL_COLOR"}, {GL_STENCIL, "GL_STENCIL"},
4556 return GLES2Util::GetQualifiedEnumString(string_table,
4557 arraysize(string_table), value);
4560 std::string GLES2Util::GetStringBufferuiv(uint32_t value) {
4561 static const EnumToString string_table[] = {
4562 {GL_COLOR, "GL_COLOR"},
4564 return GLES2Util::GetQualifiedEnumString(string_table,
4565 arraysize(string_table), value);
4568 std::string GLES2Util::GetStringCapability(uint32_t value) {
4569 static const EnumToString string_table[] = {
4570 {GL_BLEND, "GL_BLEND"},
4571 {GL_CULL_FACE, "GL_CULL_FACE"},
4572 {GL_DEPTH_TEST, "GL_DEPTH_TEST"},
4573 {GL_DITHER, "GL_DITHER"},
4574 {GL_POLYGON_OFFSET_FILL, "GL_POLYGON_OFFSET_FILL"},
4575 {GL_SAMPLE_ALPHA_TO_COVERAGE, "GL_SAMPLE_ALPHA_TO_COVERAGE"},
4576 {GL_SAMPLE_COVERAGE, "GL_SAMPLE_COVERAGE"},
4577 {GL_SCISSOR_TEST, "GL_SCISSOR_TEST"},
4578 {GL_STENCIL_TEST, "GL_STENCIL_TEST"},
4579 {GL_RASTERIZER_DISCARD, "GL_RASTERIZER_DISCARD"},
4580 {GL_PRIMITIVE_RESTART_FIXED_INDEX, "GL_PRIMITIVE_RESTART_FIXED_INDEX"},
4582 return GLES2Util::GetQualifiedEnumString(string_table,
4583 arraysize(string_table), value);
4586 std::string GLES2Util::GetStringCmpFunction(uint32_t value) {
4587 static const EnumToString string_table[] = {
4588 {GL_NEVER, "GL_NEVER"},
4589 {GL_LESS, "GL_LESS"},
4590 {GL_EQUAL, "GL_EQUAL"},
4591 {GL_LEQUAL, "GL_LEQUAL"},
4592 {GL_GREATER, "GL_GREATER"},
4593 {GL_NOTEQUAL, "GL_NOTEQUAL"},
4594 {GL_GEQUAL, "GL_GEQUAL"},
4595 {GL_ALWAYS, "GL_ALWAYS"},
4597 return GLES2Util::GetQualifiedEnumString(string_table,
4598 arraysize(string_table), value);
4601 std::string GLES2Util::GetStringCompressedTextureFormat(uint32_t value) {
4602 static const EnumToString string_table[] = {
4603 {GL_COMPRESSED_R11_EAC, "GL_COMPRESSED_R11_EAC"},
4604 {GL_COMPRESSED_SIGNED_R11_EAC, "GL_COMPRESSED_SIGNED_R11_EAC"},
4605 {GL_COMPRESSED_RG11_EAC, "GL_COMPRESSED_RG11_EAC"},
4606 {GL_COMPRESSED_SIGNED_RG11_EAC, "GL_COMPRESSED_SIGNED_RG11_EAC"},
4607 {GL_COMPRESSED_RGB8_ETC2, "GL_COMPRESSED_RGB8_ETC2"},
4608 {GL_COMPRESSED_SRGB8_ETC2, "GL_COMPRESSED_SRGB8_ETC2"},
4609 {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
4610 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
4611 {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
4612 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
4613 {GL_COMPRESSED_RGBA8_ETC2_EAC, "GL_COMPRESSED_RGBA8_ETC2_EAC"},
4614 {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
4615 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"},
4617 return GLES2Util::GetQualifiedEnumString(string_table,
4618 arraysize(string_table), value);
4621 std::string GLES2Util::GetStringDrawMode(uint32_t value) {
4622 static const EnumToString string_table[] = {
4623 {GL_POINTS, "GL_POINTS"},
4624 {GL_LINE_STRIP, "GL_LINE_STRIP"},
4625 {GL_LINE_LOOP, "GL_LINE_LOOP"},
4626 {GL_LINES, "GL_LINES"},
4627 {GL_TRIANGLE_STRIP, "GL_TRIANGLE_STRIP"},
4628 {GL_TRIANGLE_FAN, "GL_TRIANGLE_FAN"},
4629 {GL_TRIANGLES, "GL_TRIANGLES"},
4631 return GLES2Util::GetQualifiedEnumString(string_table,
4632 arraysize(string_table), value);
4635 std::string GLES2Util::GetStringDstBlendFactor(uint32_t value) {
4636 static const EnumToString string_table[] = {
4637 {GL_ZERO, "GL_ZERO"},
4638 {GL_ONE, "GL_ONE"},
4639 {GL_SRC_COLOR, "GL_SRC_COLOR"},
4640 {GL_ONE_MINUS_SRC_COLOR, "GL_ONE_MINUS_SRC_COLOR"},
4641 {GL_DST_COLOR, "GL_DST_COLOR"},
4642 {GL_ONE_MINUS_DST_COLOR, "GL_ONE_MINUS_DST_COLOR"},
4643 {GL_SRC_ALPHA, "GL_SRC_ALPHA"},
4644 {GL_ONE_MINUS_SRC_ALPHA, "GL_ONE_MINUS_SRC_ALPHA"},
4645 {GL_DST_ALPHA, "GL_DST_ALPHA"},
4646 {GL_ONE_MINUS_DST_ALPHA, "GL_ONE_MINUS_DST_ALPHA"},
4647 {GL_CONSTANT_COLOR, "GL_CONSTANT_COLOR"},
4648 {GL_ONE_MINUS_CONSTANT_COLOR, "GL_ONE_MINUS_CONSTANT_COLOR"},
4649 {GL_CONSTANT_ALPHA, "GL_CONSTANT_ALPHA"},
4650 {GL_ONE_MINUS_CONSTANT_ALPHA, "GL_ONE_MINUS_CONSTANT_ALPHA"},
4652 return GLES2Util::GetQualifiedEnumString(string_table,
4653 arraysize(string_table), value);
4656 std::string GLES2Util::GetStringEquation(uint32_t value) {
4657 static const EnumToString string_table[] = {
4658 {GL_FUNC_ADD, "GL_FUNC_ADD"},
4659 {GL_FUNC_SUBTRACT, "GL_FUNC_SUBTRACT"},
4660 {GL_FUNC_REVERSE_SUBTRACT, "GL_FUNC_REVERSE_SUBTRACT"},
4661 {GL_MIN, "GL_MIN"},
4662 {GL_MAX, "GL_MAX"},
4664 return GLES2Util::GetQualifiedEnumString(string_table,
4665 arraysize(string_table), value);
4668 std::string GLES2Util::GetStringFaceMode(uint32_t value) {
4669 static const EnumToString string_table[] = {
4670 {GL_CW, "GL_CW"}, {GL_CCW, "GL_CCW"},
4672 return GLES2Util::GetQualifiedEnumString(string_table,
4673 arraysize(string_table), value);
4676 std::string GLES2Util::GetStringFaceType(uint32_t value) {
4677 static const EnumToString string_table[] = {
4678 {GL_FRONT, "GL_FRONT"},
4679 {GL_BACK, "GL_BACK"},
4680 {GL_FRONT_AND_BACK, "GL_FRONT_AND_BACK"},
4682 return GLES2Util::GetQualifiedEnumString(string_table,
4683 arraysize(string_table), value);
4686 std::string GLES2Util::GetStringFrameBufferParameter(uint32_t value) {
4687 static const EnumToString string_table[] = {
4688 {GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE,
4689 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE"},
4690 {GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME,
4691 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME"},
4692 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL,
4693 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL"},
4694 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE,
4695 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE"},
4696 {GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE,
4697 "GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE"},
4698 {GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE,
4699 "GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE"},
4700 {GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE,
4701 "GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE"},
4702 {GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE,
4703 "GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE"},
4704 {GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE,
4705 "GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE"},
4706 {GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE,
4707 "GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE"},
4708 {GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE,
4709 "GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE"},
4710 {GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING,
4711 "GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING"},
4712 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER,
4713 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER"},
4715 return GLES2Util::GetQualifiedEnumString(string_table,
4716 arraysize(string_table), value);
4719 std::string GLES2Util::GetStringFrameBufferTarget(uint32_t value) {
4720 static const EnumToString string_table[] = {
4721 {GL_FRAMEBUFFER, "GL_FRAMEBUFFER"},
4722 {GL_DRAW_FRAMEBUFFER, "GL_DRAW_FRAMEBUFFER"},
4723 {GL_READ_FRAMEBUFFER, "GL_READ_FRAMEBUFFER"},
4725 return GLES2Util::GetQualifiedEnumString(string_table,
4726 arraysize(string_table), value);
4729 std::string GLES2Util::GetStringGLState(uint32_t value) {
4730 static const EnumToString string_table[] = {
4731 {GL_ACTIVE_TEXTURE, "GL_ACTIVE_TEXTURE"},
4732 {GL_ALIASED_LINE_WIDTH_RANGE, "GL_ALIASED_LINE_WIDTH_RANGE"},
4733 {GL_ALIASED_POINT_SIZE_RANGE, "GL_ALIASED_POINT_SIZE_RANGE"},
4734 {GL_ALPHA_BITS, "GL_ALPHA_BITS"},
4735 {GL_ARRAY_BUFFER_BINDING, "GL_ARRAY_BUFFER_BINDING"},
4736 {GL_BLUE_BITS, "GL_BLUE_BITS"},
4737 {GL_COMPRESSED_TEXTURE_FORMATS, "GL_COMPRESSED_TEXTURE_FORMATS"},
4738 {GL_CURRENT_PROGRAM, "GL_CURRENT_PROGRAM"},
4739 {GL_DEPTH_BITS, "GL_DEPTH_BITS"},
4740 {GL_DEPTH_RANGE, "GL_DEPTH_RANGE"},
4741 {GL_ELEMENT_ARRAY_BUFFER_BINDING, "GL_ELEMENT_ARRAY_BUFFER_BINDING"},
4742 {GL_FRAMEBUFFER_BINDING, "GL_FRAMEBUFFER_BINDING"},
4743 {GL_GENERATE_MIPMAP_HINT, "GL_GENERATE_MIPMAP_HINT"},
4744 {GL_GREEN_BITS, "GL_GREEN_BITS"},
4745 {GL_IMPLEMENTATION_COLOR_READ_FORMAT,
4746 "GL_IMPLEMENTATION_COLOR_READ_FORMAT"},
4747 {GL_IMPLEMENTATION_COLOR_READ_TYPE, "GL_IMPLEMENTATION_COLOR_READ_TYPE"},
4748 {GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS,
4749 "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS"},
4750 {GL_MAX_CUBE_MAP_TEXTURE_SIZE, "GL_MAX_CUBE_MAP_TEXTURE_SIZE"},
4751 {GL_MAX_FRAGMENT_UNIFORM_VECTORS, "GL_MAX_FRAGMENT_UNIFORM_VECTORS"},
4752 {GL_MAX_RENDERBUFFER_SIZE, "GL_MAX_RENDERBUFFER_SIZE"},
4753 {GL_MAX_TEXTURE_IMAGE_UNITS, "GL_MAX_TEXTURE_IMAGE_UNITS"},
4754 {GL_MAX_TEXTURE_SIZE, "GL_MAX_TEXTURE_SIZE"},
4755 {GL_MAX_VARYING_VECTORS, "GL_MAX_VARYING_VECTORS"},
4756 {GL_MAX_VERTEX_ATTRIBS, "GL_MAX_VERTEX_ATTRIBS"},
4757 {GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS, "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS"},
4758 {GL_MAX_VERTEX_UNIFORM_VECTORS, "GL_MAX_VERTEX_UNIFORM_VECTORS"},
4759 {GL_MAX_VIEWPORT_DIMS, "GL_MAX_VIEWPORT_DIMS"},
4760 {GL_NUM_COMPRESSED_TEXTURE_FORMATS, "GL_NUM_COMPRESSED_TEXTURE_FORMATS"},
4761 {GL_NUM_SHADER_BINARY_FORMATS, "GL_NUM_SHADER_BINARY_FORMATS"},
4762 {GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT"},
4763 {GL_RED_BITS, "GL_RED_BITS"},
4764 {GL_RENDERBUFFER_BINDING, "GL_RENDERBUFFER_BINDING"},
4765 {GL_SAMPLE_BUFFERS, "GL_SAMPLE_BUFFERS"},
4766 {GL_SAMPLE_COVERAGE_INVERT, "GL_SAMPLE_COVERAGE_INVERT"},
4767 {GL_SAMPLE_COVERAGE_VALUE, "GL_SAMPLE_COVERAGE_VALUE"},
4768 {GL_SAMPLES, "GL_SAMPLES"},
4769 {GL_SCISSOR_BOX, "GL_SCISSOR_BOX"},
4770 {GL_SHADER_BINARY_FORMATS, "GL_SHADER_BINARY_FORMATS"},
4771 {GL_SHADER_COMPILER, "GL_SHADER_COMPILER"},
4772 {GL_SUBPIXEL_BITS, "GL_SUBPIXEL_BITS"},
4773 {GL_STENCIL_BITS, "GL_STENCIL_BITS"},
4774 {GL_TEXTURE_BINDING_2D, "GL_TEXTURE_BINDING_2D"},
4775 {GL_TEXTURE_BINDING_CUBE_MAP, "GL_TEXTURE_BINDING_CUBE_MAP"},
4776 {GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT"},
4777 {GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM"},
4778 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
4779 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"},
4780 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
4781 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"},
4782 {GL_BIND_GENERATES_RESOURCE_CHROMIUM,
4783 "GL_BIND_GENERATES_RESOURCE_CHROMIUM"},
4784 {GL_VERTEX_ARRAY_BINDING_OES, "GL_VERTEX_ARRAY_BINDING_OES"},
4785 {GL_VIEWPORT, "GL_VIEWPORT"},
4786 {GL_BLEND_COLOR, "GL_BLEND_COLOR"},
4787 {GL_BLEND_EQUATION_RGB, "GL_BLEND_EQUATION_RGB"},
4788 {GL_BLEND_EQUATION_ALPHA, "GL_BLEND_EQUATION_ALPHA"},
4789 {GL_BLEND_SRC_RGB, "GL_BLEND_SRC_RGB"},
4790 {GL_BLEND_DST_RGB, "GL_BLEND_DST_RGB"},
4791 {GL_BLEND_SRC_ALPHA, "GL_BLEND_SRC_ALPHA"},
4792 {GL_BLEND_DST_ALPHA, "GL_BLEND_DST_ALPHA"},
4793 {GL_COLOR_CLEAR_VALUE, "GL_COLOR_CLEAR_VALUE"},
4794 {GL_DEPTH_CLEAR_VALUE, "GL_DEPTH_CLEAR_VALUE"},
4795 {GL_STENCIL_CLEAR_VALUE, "GL_STENCIL_CLEAR_VALUE"},
4796 {GL_COLOR_WRITEMASK, "GL_COLOR_WRITEMASK"},
4797 {GL_CULL_FACE_MODE, "GL_CULL_FACE_MODE"},
4798 {GL_DEPTH_FUNC, "GL_DEPTH_FUNC"},
4799 {GL_DEPTH_WRITEMASK, "GL_DEPTH_WRITEMASK"},
4800 {GL_FRONT_FACE, "GL_FRONT_FACE"},
4801 {GL_LINE_WIDTH, "GL_LINE_WIDTH"},
4802 {GL_POLYGON_OFFSET_FACTOR, "GL_POLYGON_OFFSET_FACTOR"},
4803 {GL_POLYGON_OFFSET_UNITS, "GL_POLYGON_OFFSET_UNITS"},
4804 {GL_STENCIL_FUNC, "GL_STENCIL_FUNC"},
4805 {GL_STENCIL_REF, "GL_STENCIL_REF"},
4806 {GL_STENCIL_VALUE_MASK, "GL_STENCIL_VALUE_MASK"},
4807 {GL_STENCIL_BACK_FUNC, "GL_STENCIL_BACK_FUNC"},
4808 {GL_STENCIL_BACK_REF, "GL_STENCIL_BACK_REF"},
4809 {GL_STENCIL_BACK_VALUE_MASK, "GL_STENCIL_BACK_VALUE_MASK"},
4810 {GL_STENCIL_WRITEMASK, "GL_STENCIL_WRITEMASK"},
4811 {GL_STENCIL_BACK_WRITEMASK, "GL_STENCIL_BACK_WRITEMASK"},
4812 {GL_STENCIL_FAIL, "GL_STENCIL_FAIL"},
4813 {GL_STENCIL_PASS_DEPTH_FAIL, "GL_STENCIL_PASS_DEPTH_FAIL"},
4814 {GL_STENCIL_PASS_DEPTH_PASS, "GL_STENCIL_PASS_DEPTH_PASS"},
4815 {GL_STENCIL_BACK_FAIL, "GL_STENCIL_BACK_FAIL"},
4816 {GL_STENCIL_BACK_PASS_DEPTH_FAIL, "GL_STENCIL_BACK_PASS_DEPTH_FAIL"},
4817 {GL_STENCIL_BACK_PASS_DEPTH_PASS, "GL_STENCIL_BACK_PASS_DEPTH_PASS"},
4818 {GL_BLEND, "GL_BLEND"},
4819 {GL_CULL_FACE, "GL_CULL_FACE"},
4820 {GL_DEPTH_TEST, "GL_DEPTH_TEST"},
4821 {GL_DITHER, "GL_DITHER"},
4822 {GL_POLYGON_OFFSET_FILL, "GL_POLYGON_OFFSET_FILL"},
4823 {GL_SAMPLE_ALPHA_TO_COVERAGE, "GL_SAMPLE_ALPHA_TO_COVERAGE"},
4824 {GL_SAMPLE_COVERAGE, "GL_SAMPLE_COVERAGE"},
4825 {GL_SCISSOR_TEST, "GL_SCISSOR_TEST"},
4826 {GL_STENCIL_TEST, "GL_STENCIL_TEST"},
4827 {GL_RASTERIZER_DISCARD, "GL_RASTERIZER_DISCARD"},
4828 {GL_PRIMITIVE_RESTART_FIXED_INDEX, "GL_PRIMITIVE_RESTART_FIXED_INDEX"},
4829 {GL_COPY_READ_BUFFER_BINDING, "GL_COPY_READ_BUFFER_BINDING"},
4830 {GL_COPY_WRITE_BUFFER_BINDING, "GL_COPY_WRITE_BUFFER_BINDING"},
4831 {GL_DRAW_BUFFER0, "GL_DRAW_BUFFER0"},
4832 {GL_DRAW_BUFFER1, "GL_DRAW_BUFFER1"},
4833 {GL_DRAW_BUFFER2, "GL_DRAW_BUFFER2"},
4834 {GL_DRAW_BUFFER3, "GL_DRAW_BUFFER3"},
4835 {GL_DRAW_BUFFER4, "GL_DRAW_BUFFER4"},
4836 {GL_DRAW_BUFFER5, "GL_DRAW_BUFFER5"},
4837 {GL_DRAW_BUFFER6, "GL_DRAW_BUFFER6"},
4838 {GL_DRAW_BUFFER7, "GL_DRAW_BUFFER7"},
4839 {GL_DRAW_BUFFER8, "GL_DRAW_BUFFER8"},
4840 {GL_DRAW_BUFFER9, "GL_DRAW_BUFFER9"},
4841 {GL_DRAW_BUFFER10, "GL_DRAW_BUFFER10"},
4842 {GL_DRAW_BUFFER11, "GL_DRAW_BUFFER11"},
4843 {GL_DRAW_BUFFER12, "GL_DRAW_BUFFER12"},
4844 {GL_DRAW_BUFFER13, "GL_DRAW_BUFFER13"},
4845 {GL_DRAW_BUFFER14, "GL_DRAW_BUFFER14"},
4846 {GL_DRAW_BUFFER15, "GL_DRAW_BUFFER15"},
4847 {GL_DRAW_FRAMEBUFFER_BINDING, "GL_DRAW_FRAMEBUFFER_BINDING"},
4848 {GL_FRAGMENT_SHADER_DERIVATIVE_HINT,
4849 "GL_FRAGMENT_SHADER_DERIVATIVE_HINT"},
4850 {GL_MAJOR_VERSION, "GL_MAJOR_VERSION"},
4851 {GL_MAX_3D_TEXTURE_SIZE, "GL_MAX_3D_TEXTURE_SIZE"},
4852 {GL_MAX_ARRAY_TEXTURE_LAYERS, "GL_MAX_ARRAY_TEXTURE_LAYERS"},
4853 {GL_MAX_COLOR_ATTACHMENTS, "GL_MAX_COLOR_ATTACHMENTS"},
4854 {GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS,
4855 "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS"},
4856 {GL_MAX_COMBINED_UNIFORM_BLOCKS, "GL_MAX_COMBINED_UNIFORM_BLOCKS"},
4857 {GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS,
4858 "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS"},
4859 {GL_MAX_DRAW_BUFFERS, "GL_MAX_DRAW_BUFFERS"},
4860 {GL_MAX_ELEMENT_INDEX, "GL_MAX_ELEMENT_INDEX"},
4861 {GL_MAX_ELEMENTS_INDICES, "GL_MAX_ELEMENTS_INDICES"},
4862 {GL_MAX_ELEMENTS_VERTICES, "GL_MAX_ELEMENTS_VERTICES"},
4863 {GL_MAX_FRAGMENT_INPUT_COMPONENTS, "GL_MAX_FRAGMENT_INPUT_COMPONENTS"},
4864 {GL_MAX_FRAGMENT_UNIFORM_BLOCKS, "GL_MAX_FRAGMENT_UNIFORM_BLOCKS"},
4865 {GL_MAX_FRAGMENT_UNIFORM_COMPONENTS,
4866 "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS"},
4867 {GL_MAX_PROGRAM_TEXEL_OFFSET, "GL_MAX_PROGRAM_TEXEL_OFFSET"},
4868 {GL_MAX_SAMPLES, "GL_MAX_SAMPLES"},
4869 {GL_MAX_SERVER_WAIT_TIMEOUT, "GL_MAX_SERVER_WAIT_TIMEOUT"},
4870 {GL_MAX_TEXTURE_LOD_BIAS, "GL_MAX_TEXTURE_LOD_BIAS"},
4871 {GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS,
4872 "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS"},
4873 {GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,
4874 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS"},
4875 {GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS,
4876 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS"},
4877 {GL_MAX_UNIFORM_BLOCK_SIZE, "GL_MAX_UNIFORM_BLOCK_SIZE"},
4878 {GL_MAX_UNIFORM_BUFFER_BINDINGS, "GL_MAX_UNIFORM_BUFFER_BINDINGS"},
4879 {GL_MAX_VARYING_COMPONENTS, "GL_MAX_VARYING_COMPONENTS"},
4880 {GL_MAX_VERTEX_OUTPUT_COMPONENTS, "GL_MAX_VERTEX_OUTPUT_COMPONENTS"},
4881 {GL_MAX_VERTEX_UNIFORM_BLOCKS, "GL_MAX_VERTEX_UNIFORM_BLOCKS"},
4882 {GL_MAX_VERTEX_UNIFORM_COMPONENTS, "GL_MAX_VERTEX_UNIFORM_COMPONENTS"},
4883 {GL_MIN_PROGRAM_TEXEL_OFFSET, "GL_MIN_PROGRAM_TEXEL_OFFSET"},
4884 {GL_MINOR_VERSION, "GL_MINOR_VERSION"},
4885 {GL_NUM_EXTENSIONS, "GL_NUM_EXTENSIONS"},
4886 {GL_NUM_PROGRAM_BINARY_FORMATS, "GL_NUM_PROGRAM_BINARY_FORMATS"},
4887 {GL_PACK_ROW_LENGTH, "GL_PACK_ROW_LENGTH"},
4888 {GL_PACK_SKIP_PIXELS, "GL_PACK_SKIP_PIXELS"},
4889 {GL_PACK_SKIP_ROWS, "GL_PACK_SKIP_ROWS"},
4890 {GL_PIXEL_PACK_BUFFER_BINDING, "GL_PIXEL_PACK_BUFFER_BINDING"},
4891 {GL_PIXEL_UNPACK_BUFFER_BINDING, "GL_PIXEL_UNPACK_BUFFER_BINDING"},
4892 {GL_PROGRAM_BINARY_FORMATS, "GL_PROGRAM_BINARY_FORMATS"},
4893 {GL_READ_BUFFER, "GL_READ_BUFFER"},
4894 {GL_READ_FRAMEBUFFER_BINDING, "GL_READ_FRAMEBUFFER_BINDING"},
4895 {GL_SAMPLER_BINDING, "GL_SAMPLER_BINDING"},
4896 {GL_TEXTURE_BINDING_2D_ARRAY, "GL_TEXTURE_BINDING_2D_ARRAY"},
4897 {GL_TEXTURE_BINDING_3D, "GL_TEXTURE_BINDING_3D"},
4898 {GL_TRANSFORM_FEEDBACK_BINDING, "GL_TRANSFORM_FEEDBACK_BINDING"},
4899 {GL_TRANSFORM_FEEDBACK_ACTIVE, "GL_TRANSFORM_FEEDBACK_ACTIVE"},
4900 {GL_TRANSFORM_FEEDBACK_BUFFER_BINDING,
4901 "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING"},
4902 {GL_TRANSFORM_FEEDBACK_PAUSED, "GL_TRANSFORM_FEEDBACK_PAUSED"},
4903 {GL_TRANSFORM_FEEDBACK_BUFFER_SIZE, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE"},
4904 {GL_TRANSFORM_FEEDBACK_BUFFER_START,
4905 "GL_TRANSFORM_FEEDBACK_BUFFER_START"},
4906 {GL_UNIFORM_BUFFER_BINDING, "GL_UNIFORM_BUFFER_BINDING"},
4907 {GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT,
4908 "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT"},
4909 {GL_UNIFORM_BUFFER_SIZE, "GL_UNIFORM_BUFFER_SIZE"},
4910 {GL_UNIFORM_BUFFER_START, "GL_UNIFORM_BUFFER_START"},
4911 {GL_UNPACK_IMAGE_HEIGHT, "GL_UNPACK_IMAGE_HEIGHT"},
4912 {GL_UNPACK_ROW_LENGTH, "GL_UNPACK_ROW_LENGTH"},
4913 {GL_UNPACK_SKIP_IMAGES, "GL_UNPACK_SKIP_IMAGES"},
4914 {GL_UNPACK_SKIP_PIXELS, "GL_UNPACK_SKIP_PIXELS"},
4915 {GL_UNPACK_SKIP_ROWS, "GL_UNPACK_SKIP_ROWS"},
4917 return GLES2Util::GetQualifiedEnumString(string_table,
4918 arraysize(string_table), value);
4921 std::string GLES2Util::GetStringGetMaxIndexType(uint32_t value) {
4922 static const EnumToString string_table[] = {
4923 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4924 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
4925 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
4927 return GLES2Util::GetQualifiedEnumString(string_table,
4928 arraysize(string_table), value);
4931 std::string GLES2Util::GetStringGetTexParamTarget(uint32_t value) {
4932 static const EnumToString string_table[] = {
4933 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
4934 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"},
4935 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"},
4936 {GL_TEXTURE_3D, "GL_TEXTURE_3D"},
4938 return GLES2Util::GetQualifiedEnumString(string_table,
4939 arraysize(string_table), value);
4942 std::string GLES2Util::GetStringHintMode(uint32_t value) {
4943 static const EnumToString string_table[] = {
4944 {GL_FASTEST, "GL_FASTEST"},
4945 {GL_NICEST, "GL_NICEST"},
4946 {GL_DONT_CARE, "GL_DONT_CARE"},
4948 return GLES2Util::GetQualifiedEnumString(string_table,
4949 arraysize(string_table), value);
4952 std::string GLES2Util::GetStringHintTarget(uint32_t value) {
4953 static const EnumToString string_table[] = {
4954 {GL_GENERATE_MIPMAP_HINT, "GL_GENERATE_MIPMAP_HINT"},
4955 {GL_FRAGMENT_SHADER_DERIVATIVE_HINT,
4956 "GL_FRAGMENT_SHADER_DERIVATIVE_HINT"},
4958 return GLES2Util::GetQualifiedEnumString(string_table,
4959 arraysize(string_table), value);
4962 std::string GLES2Util::GetStringImageInternalFormat(uint32_t value) {
4963 static const EnumToString string_table[] = {
4964 {GL_RGB, "GL_RGB"},
4965 {GL_RGB_YUV_420_CHROMIUM, "GL_RGB_YUV_420_CHROMIUM"},
4966 {GL_RGBA, "GL_RGBA"},
4968 return GLES2Util::GetQualifiedEnumString(string_table,
4969 arraysize(string_table), value);
4972 std::string GLES2Util::GetStringImageUsage(uint32_t value) {
4973 static const EnumToString string_table[] = {
4974 {GL_MAP_CHROMIUM, "GL_MAP_CHROMIUM"},
4975 {GL_SCANOUT_CHROMIUM, "GL_SCANOUT_CHROMIUM"},
4977 return GLES2Util::GetQualifiedEnumString(string_table,
4978 arraysize(string_table), value);
4981 std::string GLES2Util::GetStringIndexType(uint32_t value) {
4982 static const EnumToString string_table[] = {
4983 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
4984 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
4985 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
4987 return GLES2Util::GetQualifiedEnumString(string_table,
4988 arraysize(string_table), value);
4991 std::string GLES2Util::GetStringIndexedBufferTarget(uint32_t value) {
4992 static const EnumToString string_table[] = {
4993 {GL_TRANSFORM_FEEDBACK_BUFFER, "GL_TRANSFORM_FEEDBACK_BUFFER"},
4994 {GL_UNIFORM_BUFFER, "GL_UNIFORM_BUFFER"},
4996 return GLES2Util::GetQualifiedEnumString(string_table,
4997 arraysize(string_table), value);
5000 std::string GLES2Util::GetStringIndexedGLState(uint32_t value) {
5001 static const EnumToString string_table[] = {
5002 {GL_TRANSFORM_FEEDBACK_BUFFER_BINDING,
5003 "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING"},
5004 {GL_TRANSFORM_FEEDBACK_BUFFER_SIZE, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE"},
5005 {GL_TRANSFORM_FEEDBACK_BUFFER_START,
5006 "GL_TRANSFORM_FEEDBACK_BUFFER_START"},
5007 {GL_UNIFORM_BUFFER_BINDING, "GL_UNIFORM_BUFFER_BINDING"},
5008 {GL_UNIFORM_BUFFER_SIZE, "GL_UNIFORM_BUFFER_SIZE"},
5009 {GL_UNIFORM_BUFFER_START, "GL_UNIFORM_BUFFER_START"},
5011 return GLES2Util::GetQualifiedEnumString(string_table,
5012 arraysize(string_table), value);
5015 std::string GLES2Util::GetStringInternalFormatParameter(uint32_t value) {
5016 static const EnumToString string_table[] = {
5017 {GL_NUM_SAMPLE_COUNTS, "GL_NUM_SAMPLE_COUNTS"},
5018 {GL_SAMPLES, "GL_SAMPLES"},
5020 return GLES2Util::GetQualifiedEnumString(string_table,
5021 arraysize(string_table), value);
5024 std::string GLES2Util::GetStringInvalidateFrameBufferTarget(uint32_t value) {
5025 static const EnumToString string_table[] = {
5026 {GL_FRAMEBUFFER, "GL_FRAMEBUFFER"},
5028 return GLES2Util::GetQualifiedEnumString(string_table,
5029 arraysize(string_table), value);
5032 std::string GLES2Util::GetStringMapBufferAccess(uint32_t value) {
5033 static const EnumToString string_table[] = {
5034 {GL_MAP_READ_BIT, "GL_MAP_READ_BIT"},
5035 {GL_MAP_WRITE_BIT, "GL_MAP_WRITE_BIT"},
5036 {GL_MAP_INVALIDATE_RANGE_BIT, "GL_MAP_INVALIDATE_RANGE_BIT"},
5037 {GL_MAP_INVALIDATE_BUFFER_BIT, "GL_MAP_INVALIDATE_BUFFER_BIT"},
5038 {GL_MAP_FLUSH_EXPLICIT_BIT, "GL_MAP_FLUSH_EXPLICIT_BIT"},
5039 {GL_MAP_UNSYNCHRONIZED_BIT, "GL_MAP_UNSYNCHRONIZED_BIT"},
5041 return GLES2Util::GetQualifiedEnumString(string_table,
5042 arraysize(string_table), value);
5045 std::string GLES2Util::GetStringMatrixMode(uint32_t value) {
5046 static const EnumToString string_table[] = {
5047 {GL_PATH_PROJECTION_CHROMIUM, "GL_PATH_PROJECTION_CHROMIUM"},
5048 {GL_PATH_MODELVIEW_CHROMIUM, "GL_PATH_MODELVIEW_CHROMIUM"},
5050 return GLES2Util::GetQualifiedEnumString(string_table,
5051 arraysize(string_table), value);
5054 std::string GLES2Util::GetStringPixelStore(uint32_t value) {
5055 static const EnumToString string_table[] = {
5056 {GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT"},
5057 {GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT"},
5058 {GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM"},
5059 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
5060 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"},
5061 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
5062 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"},
5063 {GL_PACK_ROW_LENGTH, "GL_PACK_ROW_LENGTH"},
5064 {GL_PACK_SKIP_PIXELS, "GL_PACK_SKIP_PIXELS"},
5065 {GL_PACK_SKIP_ROWS, "GL_PACK_SKIP_ROWS"},
5066 {GL_UNPACK_ROW_LENGTH, "GL_UNPACK_ROW_LENGTH"},
5067 {GL_UNPACK_IMAGE_HEIGHT, "GL_UNPACK_IMAGE_HEIGHT"},
5068 {GL_UNPACK_SKIP_PIXELS, "GL_UNPACK_SKIP_PIXELS"},
5069 {GL_UNPACK_SKIP_ROWS, "GL_UNPACK_SKIP_ROWS"},
5070 {GL_UNPACK_SKIP_IMAGES, "GL_UNPACK_SKIP_IMAGES"},
5072 return GLES2Util::GetQualifiedEnumString(string_table,
5073 arraysize(string_table), value);
5076 std::string GLES2Util::GetStringPixelType(uint32_t value) {
5077 static const EnumToString string_table[] = {
5078 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
5079 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"},
5080 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"},
5081 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"},
5082 {GL_BYTE, "GL_BYTE"},
5083 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
5084 {GL_SHORT, "GL_SHORT"},
5085 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
5086 {GL_INT, "GL_INT"},
5087 {GL_HALF_FLOAT, "GL_HALF_FLOAT"},
5088 {GL_FLOAT, "GL_FLOAT"},
5089 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"},
5090 {GL_UNSIGNED_INT_10F_11F_11F_REV, "GL_UNSIGNED_INT_10F_11F_11F_REV"},
5091 {GL_UNSIGNED_INT_5_9_9_9_REV, "GL_UNSIGNED_INT_5_9_9_9_REV"},
5092 {GL_UNSIGNED_INT_24_8, "GL_UNSIGNED_INT_24_8"},
5093 {GL_FLOAT_32_UNSIGNED_INT_24_8_REV, "GL_FLOAT_32_UNSIGNED_INT_24_8_REV"},
5095 return GLES2Util::GetQualifiedEnumString(string_table,
5096 arraysize(string_table), value);
5099 std::string GLES2Util::GetStringProgramParameter(uint32_t value) {
5100 static const EnumToString string_table[] = {
5101 {GL_DELETE_STATUS, "GL_DELETE_STATUS"},
5102 {GL_LINK_STATUS, "GL_LINK_STATUS"},
5103 {GL_VALIDATE_STATUS, "GL_VALIDATE_STATUS"},
5104 {GL_INFO_LOG_LENGTH, "GL_INFO_LOG_LENGTH"},
5105 {GL_ATTACHED_SHADERS, "GL_ATTACHED_SHADERS"},
5106 {GL_ACTIVE_ATTRIBUTES, "GL_ACTIVE_ATTRIBUTES"},
5107 {GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH"},
5108 {GL_ACTIVE_UNIFORMS, "GL_ACTIVE_UNIFORMS"},
5109 {GL_ACTIVE_UNIFORM_MAX_LENGTH, "GL_ACTIVE_UNIFORM_MAX_LENGTH"},
5110 {GL_ACTIVE_UNIFORM_BLOCKS, "GL_ACTIVE_UNIFORM_BLOCKS"},
5111 {GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH,
5112 "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH"},
5113 {GL_TRANSFORM_FEEDBACK_BUFFER_MODE, "GL_TRANSFORM_FEEDBACK_BUFFER_MODE"},
5114 {GL_TRANSFORM_FEEDBACK_VARYINGS, "GL_TRANSFORM_FEEDBACK_VARYINGS"},
5115 {GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH,
5116 "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH"},
5118 return GLES2Util::GetQualifiedEnumString(string_table,
5119 arraysize(string_table), value);
5122 std::string GLES2Util::GetStringQueryObjectParameter(uint32_t value) {
5123 static const EnumToString string_table[] = {
5124 {GL_QUERY_RESULT_EXT, "GL_QUERY_RESULT_EXT"},
5125 {GL_QUERY_RESULT_AVAILABLE_EXT, "GL_QUERY_RESULT_AVAILABLE_EXT"},
5127 return GLES2Util::GetQualifiedEnumString(string_table,
5128 arraysize(string_table), value);
5131 std::string GLES2Util::GetStringQueryParameter(uint32_t value) {
5132 static const EnumToString string_table[] = {
5133 {GL_CURRENT_QUERY_EXT, "GL_CURRENT_QUERY_EXT"},
5135 return GLES2Util::GetQualifiedEnumString(string_table,
5136 arraysize(string_table), value);
5139 std::string GLES2Util::GetStringQueryTarget(uint32_t value) {
5140 static const EnumToString string_table[] = {
5141 {GL_ANY_SAMPLES_PASSED_EXT, "GL_ANY_SAMPLES_PASSED_EXT"},
5142 {GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT,
5143 "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT"},
5144 {GL_COMMANDS_ISSUED_CHROMIUM, "GL_COMMANDS_ISSUED_CHROMIUM"},
5145 {GL_LATENCY_QUERY_CHROMIUM, "GL_LATENCY_QUERY_CHROMIUM"},
5146 {GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM,
5147 "GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM"},
5148 {GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM,
5149 "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM"},
5150 {GL_COMMANDS_COMPLETED_CHROMIUM, "GL_COMMANDS_COMPLETED_CHROMIUM"},
5152 return GLES2Util::GetQualifiedEnumString(string_table,
5153 arraysize(string_table), value);
5156 std::string GLES2Util::GetStringReadPixelFormat(uint32_t value) {
5157 static const EnumToString string_table[] = {
5158 {GL_ALPHA, "GL_ALPHA"},
5159 {GL_RGB, "GL_RGB"},
5160 {GL_RGBA, "GL_RGBA"},
5161 {GL_RGBA_INTEGER, "GL_RGBA_INTEGER"},
5163 return GLES2Util::GetQualifiedEnumString(string_table,
5164 arraysize(string_table), value);
5167 std::string GLES2Util::GetStringReadPixelType(uint32_t value) {
5168 static const EnumToString string_table[] = {
5169 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
5170 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"},
5171 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"},
5172 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"},
5173 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
5174 {GL_INT, "GL_INT"},
5175 {GL_FLOAT, "GL_FLOAT"},
5177 return GLES2Util::GetQualifiedEnumString(string_table,
5178 arraysize(string_table), value);
5181 std::string GLES2Util::GetStringRenderBufferFormat(uint32_t value) {
5182 static const EnumToString string_table[] = {
5183 {GL_RGBA4, "GL_RGBA4"},
5184 {GL_RGB565, "GL_RGB565"},
5185 {GL_RGB5_A1, "GL_RGB5_A1"},
5186 {GL_DEPTH_COMPONENT16, "GL_DEPTH_COMPONENT16"},
5187 {GL_STENCIL_INDEX8, "GL_STENCIL_INDEX8"},
5188 {GL_R8, "GL_R8"},
5189 {GL_R8UI, "GL_R8UI"},
5190 {GL_R8I, "GL_R8I"},
5191 {GL_R16UI, "GL_R16UI"},
5192 {GL_R16I, "GL_R16I"},
5193 {GL_R32UI, "GL_R32UI"},
5194 {GL_R32I, "GL_R32I"},
5195 {GL_RG8, "GL_RG8"},
5196 {GL_RG8UI, "GL_RG8UI"},
5197 {GL_RG8I, "GL_RG8I"},
5198 {GL_RG16UI, "GL_RG16UI"},
5199 {GL_RG16I, "GL_RG16I"},
5200 {GL_RG32UI, "GL_RG32UI"},
5201 {GL_RG32I, "GL_RG32I"},
5202 {GL_RGB8, "GL_RGB8"},
5203 {GL_RGBA8, "GL_RGBA8"},
5204 {GL_SRGB8_ALPHA8, "GL_SRGB8_ALPHA8"},
5205 {GL_RGB10_A2, "GL_RGB10_A2"},
5206 {GL_RGBA8UI, "GL_RGBA8UI"},
5207 {GL_RGBA8I, "GL_RGBA8I"},
5208 {GL_RGB10_A2UI, "GL_RGB10_A2UI"},
5209 {GL_RGBA16UI, "GL_RGBA16UI"},
5210 {GL_RGBA16I, "GL_RGBA16I"},
5211 {GL_RGBA32UI, "GL_RGBA32UI"},
5212 {GL_RGBA32I, "GL_RGBA32I"},
5213 {GL_DEPTH_COMPONENT24, "GL_DEPTH_COMPONENT24"},
5214 {GL_DEPTH_COMPONENT32F, "GL_DEPTH_COMPONENT32F"},
5215 {GL_DEPTH24_STENCIL8, "GL_DEPTH24_STENCIL8"},
5216 {GL_DEPTH32F_STENCIL8, "GL_DEPTH32F_STENCIL8"},
5218 return GLES2Util::GetQualifiedEnumString(string_table,
5219 arraysize(string_table), value);
5222 std::string GLES2Util::GetStringRenderBufferParameter(uint32_t value) {
5223 static const EnumToString string_table[] = {
5224 {GL_RENDERBUFFER_RED_SIZE, "GL_RENDERBUFFER_RED_SIZE"},
5225 {GL_RENDERBUFFER_GREEN_SIZE, "GL_RENDERBUFFER_GREEN_SIZE"},
5226 {GL_RENDERBUFFER_BLUE_SIZE, "GL_RENDERBUFFER_BLUE_SIZE"},
5227 {GL_RENDERBUFFER_ALPHA_SIZE, "GL_RENDERBUFFER_ALPHA_SIZE"},
5228 {GL_RENDERBUFFER_DEPTH_SIZE, "GL_RENDERBUFFER_DEPTH_SIZE"},
5229 {GL_RENDERBUFFER_STENCIL_SIZE, "GL_RENDERBUFFER_STENCIL_SIZE"},
5230 {GL_RENDERBUFFER_WIDTH, "GL_RENDERBUFFER_WIDTH"},
5231 {GL_RENDERBUFFER_HEIGHT, "GL_RENDERBUFFER_HEIGHT"},
5232 {GL_RENDERBUFFER_INTERNAL_FORMAT, "GL_RENDERBUFFER_INTERNAL_FORMAT"},
5233 {GL_RENDERBUFFER_SAMPLES, "GL_RENDERBUFFER_SAMPLES"},
5235 return GLES2Util::GetQualifiedEnumString(string_table,
5236 arraysize(string_table), value);
5239 std::string GLES2Util::GetStringRenderBufferTarget(uint32_t value) {
5240 static const EnumToString string_table[] = {
5241 {GL_RENDERBUFFER, "GL_RENDERBUFFER"},
5243 return GLES2Util::GetQualifiedEnumString(string_table,
5244 arraysize(string_table), value);
5247 std::string GLES2Util::GetStringResetStatus(uint32_t value) {
5248 static const EnumToString string_table[] = {
5249 {GL_GUILTY_CONTEXT_RESET_ARB, "GL_GUILTY_CONTEXT_RESET_ARB"},
5250 {GL_INNOCENT_CONTEXT_RESET_ARB, "GL_INNOCENT_CONTEXT_RESET_ARB"},
5251 {GL_UNKNOWN_CONTEXT_RESET_ARB, "GL_UNKNOWN_CONTEXT_RESET_ARB"},
5253 return GLES2Util::GetQualifiedEnumString(string_table,
5254 arraysize(string_table), value);
5257 std::string GLES2Util::GetStringSamplerParameter(uint32_t value) {
5258 static const EnumToString string_table[] = {
5259 {GL_TEXTURE_MAG_FILTER, "GL_TEXTURE_MAG_FILTER"},
5260 {GL_TEXTURE_MIN_FILTER, "GL_TEXTURE_MIN_FILTER"},
5261 {GL_TEXTURE_MIN_LOD, "GL_TEXTURE_MIN_LOD"},
5262 {GL_TEXTURE_MAX_LOD, "GL_TEXTURE_MAX_LOD"},
5263 {GL_TEXTURE_WRAP_S, "GL_TEXTURE_WRAP_S"},
5264 {GL_TEXTURE_WRAP_T, "GL_TEXTURE_WRAP_T"},
5265 {GL_TEXTURE_WRAP_R, "GL_TEXTURE_WRAP_R"},
5266 {GL_TEXTURE_COMPARE_MODE, "GL_TEXTURE_COMPARE_MODE"},
5267 {GL_TEXTURE_COMPARE_FUNC, "GL_TEXTURE_COMPARE_FUNC"},
5269 return GLES2Util::GetQualifiedEnumString(string_table,
5270 arraysize(string_table), value);
5273 std::string GLES2Util::GetStringShaderBinaryFormat(uint32_t value) {
5274 return GLES2Util::GetQualifiedEnumString(NULL, 0, value);
5277 std::string GLES2Util::GetStringShaderParameter(uint32_t value) {
5278 static const EnumToString string_table[] = {
5279 {GL_SHADER_TYPE, "GL_SHADER_TYPE"},
5280 {GL_DELETE_STATUS, "GL_DELETE_STATUS"},
5281 {GL_COMPILE_STATUS, "GL_COMPILE_STATUS"},
5282 {GL_INFO_LOG_LENGTH, "GL_INFO_LOG_LENGTH"},
5283 {GL_SHADER_SOURCE_LENGTH, "GL_SHADER_SOURCE_LENGTH"},
5284 {GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE,
5285 "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE"},
5287 return GLES2Util::GetQualifiedEnumString(string_table,
5288 arraysize(string_table), value);
5291 std::string GLES2Util::GetStringShaderPrecision(uint32_t value) {
5292 static const EnumToString string_table[] = {
5293 {GL_LOW_FLOAT, "GL_LOW_FLOAT"},
5294 {GL_MEDIUM_FLOAT, "GL_MEDIUM_FLOAT"},
5295 {GL_HIGH_FLOAT, "GL_HIGH_FLOAT"},
5296 {GL_LOW_INT, "GL_LOW_INT"},
5297 {GL_MEDIUM_INT, "GL_MEDIUM_INT"},
5298 {GL_HIGH_INT, "GL_HIGH_INT"},
5300 return GLES2Util::GetQualifiedEnumString(string_table,
5301 arraysize(string_table), value);
5304 std::string GLES2Util::GetStringShaderType(uint32_t value) {
5305 static const EnumToString string_table[] = {
5306 {GL_VERTEX_SHADER, "GL_VERTEX_SHADER"},
5307 {GL_FRAGMENT_SHADER, "GL_FRAGMENT_SHADER"},
5309 return GLES2Util::GetQualifiedEnumString(string_table,
5310 arraysize(string_table), value);
5313 std::string GLES2Util::GetStringSrcBlendFactor(uint32_t value) {
5314 static const EnumToString string_table[] = {
5315 {GL_ZERO, "GL_ZERO"},
5316 {GL_ONE, "GL_ONE"},
5317 {GL_SRC_COLOR, "GL_SRC_COLOR"},
5318 {GL_ONE_MINUS_SRC_COLOR, "GL_ONE_MINUS_SRC_COLOR"},
5319 {GL_DST_COLOR, "GL_DST_COLOR"},
5320 {GL_ONE_MINUS_DST_COLOR, "GL_ONE_MINUS_DST_COLOR"},
5321 {GL_SRC_ALPHA, "GL_SRC_ALPHA"},
5322 {GL_ONE_MINUS_SRC_ALPHA, "GL_ONE_MINUS_SRC_ALPHA"},
5323 {GL_DST_ALPHA, "GL_DST_ALPHA"},
5324 {GL_ONE_MINUS_DST_ALPHA, "GL_ONE_MINUS_DST_ALPHA"},
5325 {GL_CONSTANT_COLOR, "GL_CONSTANT_COLOR"},
5326 {GL_ONE_MINUS_CONSTANT_COLOR, "GL_ONE_MINUS_CONSTANT_COLOR"},
5327 {GL_CONSTANT_ALPHA, "GL_CONSTANT_ALPHA"},
5328 {GL_ONE_MINUS_CONSTANT_ALPHA, "GL_ONE_MINUS_CONSTANT_ALPHA"},
5329 {GL_SRC_ALPHA_SATURATE, "GL_SRC_ALPHA_SATURATE"},
5331 return GLES2Util::GetQualifiedEnumString(string_table,
5332 arraysize(string_table), value);
5335 std::string GLES2Util::GetStringStencilOp(uint32_t value) {
5336 static const EnumToString string_table[] = {
5337 {GL_KEEP, "GL_KEEP"},
5338 {GL_ZERO, "GL_ZERO"},
5339 {GL_REPLACE, "GL_REPLACE"},
5340 {GL_INCR, "GL_INCR"},
5341 {GL_INCR_WRAP, "GL_INCR_WRAP"},
5342 {GL_DECR, "GL_DECR"},
5343 {GL_DECR_WRAP, "GL_DECR_WRAP"},
5344 {GL_INVERT, "GL_INVERT"},
5346 return GLES2Util::GetQualifiedEnumString(string_table,
5347 arraysize(string_table), value);
5350 std::string GLES2Util::GetStringStringType(uint32_t value) {
5351 static const EnumToString string_table[] = {
5352 {GL_VENDOR, "GL_VENDOR"},
5353 {GL_RENDERER, "GL_RENDERER"},
5354 {GL_VERSION, "GL_VERSION"},
5355 {GL_SHADING_LANGUAGE_VERSION, "GL_SHADING_LANGUAGE_VERSION"},
5356 {GL_EXTENSIONS, "GL_EXTENSIONS"},
5358 return GLES2Util::GetQualifiedEnumString(string_table,
5359 arraysize(string_table), value);
5362 std::string GLES2Util::GetStringSubscriptionTarget(uint32_t value) {
5363 static const EnumToString string_table[] = {
5364 {GL_MOUSE_POSITION_CHROMIUM, "GL_MOUSE_POSITION_CHROMIUM"},
5366 return GLES2Util::GetQualifiedEnumString(string_table,
5367 arraysize(string_table), value);
5370 std::string GLES2Util::GetStringSyncCondition(uint32_t value) {
5371 static const EnumToString string_table[] = {
5372 {GL_SYNC_GPU_COMMANDS_COMPLETE, "GL_SYNC_GPU_COMMANDS_COMPLETE"},
5374 return GLES2Util::GetQualifiedEnumString(string_table,
5375 arraysize(string_table), value);
5378 std::string GLES2Util::GetStringSyncParameter(uint32_t value) {
5379 static const EnumToString string_table[] = {
5380 {GL_SYNC_STATUS, "GL_SYNC_STATUS"},
5381 {GL_OBJECT_TYPE, "GL_OBJECT_TYPE"},
5382 {GL_SYNC_CONDITION, "GL_SYNC_CONDITION"},
5383 {GL_SYNC_FLAGS, "GL_SYNC_FLAGS"},
5385 return GLES2Util::GetQualifiedEnumString(string_table,
5386 arraysize(string_table), value);
5389 std::string GLES2Util::GetStringTexture3DTarget(uint32_t value) {
5390 static const EnumToString string_table[] = {
5391 {GL_TEXTURE_3D, "GL_TEXTURE_3D"},
5392 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"},
5394 return GLES2Util::GetQualifiedEnumString(string_table,
5395 arraysize(string_table), value);
5398 std::string GLES2Util::GetStringTextureBindTarget(uint32_t value) {
5399 static const EnumToString string_table[] = {
5400 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
5401 {GL_TEXTURE_CUBE_MAP, "GL_TEXTURE_CUBE_MAP"},
5402 {GL_TEXTURE_3D, "GL_TEXTURE_3D"},
5403 {GL_TEXTURE_2D_ARRAY, "GL_TEXTURE_2D_ARRAY"},
5405 return GLES2Util::GetQualifiedEnumString(string_table,
5406 arraysize(string_table), value);
5409 std::string GLES2Util::GetStringTextureCompareFunc(uint32_t value) {
5410 static const EnumToString string_table[] = {
5411 {GL_LEQUAL, "GL_LEQUAL"},
5412 {GL_GEQUAL, "GL_GEQUAL"},
5413 {GL_LESS, "GL_LESS"},
5414 {GL_GREATER, "GL_GREATER"},
5415 {GL_EQUAL, "GL_EQUAL"},
5416 {GL_NOTEQUAL, "GL_NOTEQUAL"},
5417 {GL_ALWAYS, "GL_ALWAYS"},
5418 {GL_NEVER, "GL_NEVER"},
5420 return GLES2Util::GetQualifiedEnumString(string_table,
5421 arraysize(string_table), value);
5424 std::string GLES2Util::GetStringTextureCompareMode(uint32_t value) {
5425 static const EnumToString string_table[] = {
5426 {GL_NONE, "GL_NONE"},
5427 {GL_COMPARE_REF_TO_TEXTURE, "GL_COMPARE_REF_TO_TEXTURE"},
5429 return GLES2Util::GetQualifiedEnumString(string_table,
5430 arraysize(string_table), value);
5433 std::string GLES2Util::GetStringTextureFormat(uint32_t value) {
5434 static const EnumToString string_table[] = {
5435 {GL_ALPHA, "GL_ALPHA"},
5436 {GL_LUMINANCE, "GL_LUMINANCE"},
5437 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"},
5438 {GL_RGB, "GL_RGB"},
5439 {GL_RGBA, "GL_RGBA"},
5440 {GL_RED, "GL_RED"},
5441 {GL_RED_INTEGER, "GL_RED_INTEGER"},
5442 {GL_RG, "GL_RG"},
5443 {GL_RG_INTEGER, "GL_RG_INTEGER"},
5444 {GL_RGB_INTEGER, "GL_RGB_INTEGER"},
5445 {GL_RGBA_INTEGER, "GL_RGBA_INTEGER"},
5446 {GL_DEPTH_COMPONENT, "GL_DEPTH_COMPONENT"},
5447 {GL_DEPTH_STENCIL, "GL_DEPTH_STENCIL"},
5449 return GLES2Util::GetQualifiedEnumString(string_table,
5450 arraysize(string_table), value);
5453 std::string GLES2Util::GetStringTextureInternalFormat(uint32_t value) {
5454 static const EnumToString string_table[] = {
5455 {GL_ALPHA, "GL_ALPHA"},
5456 {GL_LUMINANCE, "GL_LUMINANCE"},
5457 {GL_LUMINANCE_ALPHA, "GL_LUMINANCE_ALPHA"},
5458 {GL_RGB, "GL_RGB"},
5459 {GL_RGBA, "GL_RGBA"},
5460 {GL_R8, "GL_R8"},
5461 {GL_R8_SNORM, "GL_R8_SNORM"},
5462 {GL_R16F, "GL_R16F"},
5463 {GL_R32F, "GL_R32F"},
5464 {GL_R8UI, "GL_R8UI"},
5465 {GL_R8I, "GL_R8I"},
5466 {GL_R16UI, "GL_R16UI"},
5467 {GL_R16I, "GL_R16I"},
5468 {GL_R32UI, "GL_R32UI"},
5469 {GL_R32I, "GL_R32I"},
5470 {GL_RG8, "GL_RG8"},
5471 {GL_RG8_SNORM, "GL_RG8_SNORM"},
5472 {GL_RG16F, "GL_RG16F"},
5473 {GL_RG32F, "GL_RG32F"},
5474 {GL_RG8UI, "GL_RG8UI"},
5475 {GL_RG8I, "GL_RG8I"},
5476 {GL_RG16UI, "GL_RG16UI"},
5477 {GL_RG16I, "GL_RG16I"},
5478 {GL_RG32UI, "GL_RG32UI"},
5479 {GL_RG32I, "GL_RG32I"},
5480 {GL_RGB8, "GL_RGB8"},
5481 {GL_SRGB8, "GL_SRGB8"},
5482 {GL_RGB565, "GL_RGB565"},
5483 {GL_RGB8_SNORM, "GL_RGB8_SNORM"},
5484 {GL_R11F_G11F_B10F, "GL_R11F_G11F_B10F"},
5485 {GL_RGB9_E5, "GL_RGB9_E5"},
5486 {GL_RGB16F, "GL_RGB16F"},
5487 {GL_RGB32F, "GL_RGB32F"},
5488 {GL_RGB8UI, "GL_RGB8UI"},
5489 {GL_RGB8I, "GL_RGB8I"},
5490 {GL_RGB16UI, "GL_RGB16UI"},
5491 {GL_RGB16I, "GL_RGB16I"},
5492 {GL_RGB32UI, "GL_RGB32UI"},
5493 {GL_RGB32I, "GL_RGB32I"},
5494 {GL_RGBA8, "GL_RGBA8"},
5495 {GL_SRGB8_ALPHA8, "GL_SRGB8_ALPHA8"},
5496 {GL_RGBA8_SNORM, "GL_RGBA8_SNORM"},
5497 {GL_RGB5_A1, "GL_RGB5_A1"},
5498 {GL_RGBA4, "GL_RGBA4"},
5499 {GL_RGB10_A2, "GL_RGB10_A2"},
5500 {GL_RGBA16F, "GL_RGBA16F"},
5501 {GL_RGBA32F, "GL_RGBA32F"},
5502 {GL_RGBA8UI, "GL_RGBA8UI"},
5503 {GL_RGBA8I, "GL_RGBA8I"},
5504 {GL_RGB10_A2UI, "GL_RGB10_A2UI"},
5505 {GL_RGBA16UI, "GL_RGBA16UI"},
5506 {GL_RGBA16I, "GL_RGBA16I"},
5507 {GL_RGBA32UI, "GL_RGBA32UI"},
5508 {GL_RGBA32I, "GL_RGBA32I"},
5509 {GL_DEPTH_COMPONENT16, "GL_DEPTH_COMPONENT16"},
5510 {GL_DEPTH_COMPONENT24, "GL_DEPTH_COMPONENT24"},
5511 {GL_DEPTH_COMPONENT32F, "GL_DEPTH_COMPONENT32F"},
5512 {GL_DEPTH24_STENCIL8, "GL_DEPTH24_STENCIL8"},
5513 {GL_DEPTH32F_STENCIL8, "GL_DEPTH32F_STENCIL8"},
5515 return GLES2Util::GetQualifiedEnumString(string_table,
5516 arraysize(string_table), value);
5519 std::string GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value) {
5520 static const EnumToString string_table[] = {
5521 {GL_RGB565, "GL_RGB565"},
5522 {GL_RGBA4, "GL_RGBA4"},
5523 {GL_RGB5_A1, "GL_RGB5_A1"},
5524 {GL_ALPHA8_EXT, "GL_ALPHA8_EXT"},
5525 {GL_LUMINANCE8_EXT, "GL_LUMINANCE8_EXT"},
5526 {GL_LUMINANCE8_ALPHA8_EXT, "GL_LUMINANCE8_ALPHA8_EXT"},
5527 {GL_RGB8_OES, "GL_RGB8_OES"},
5528 {GL_RGBA8_OES, "GL_RGBA8_OES"},
5529 {GL_R8, "GL_R8"},
5530 {GL_R8_SNORM, "GL_R8_SNORM"},
5531 {GL_R16F, "GL_R16F"},
5532 {GL_R32F, "GL_R32F"},
5533 {GL_R8UI, "GL_R8UI"},
5534 {GL_R8I, "GL_R8I"},
5535 {GL_R16UI, "GL_R16UI"},
5536 {GL_R16I, "GL_R16I"},
5537 {GL_R32UI, "GL_R32UI"},
5538 {GL_R32I, "GL_R32I"},
5539 {GL_RG8, "GL_RG8"},
5540 {GL_RG8_SNORM, "GL_RG8_SNORM"},
5541 {GL_RG16F, "GL_RG16F"},
5542 {GL_RG32F, "GL_RG32F"},
5543 {GL_RG8UI, "GL_RG8UI"},
5544 {GL_RG8I, "GL_RG8I"},
5545 {GL_RG16UI, "GL_RG16UI"},
5546 {GL_RG16I, "GL_RG16I"},
5547 {GL_RG32UI, "GL_RG32UI"},
5548 {GL_RG32I, "GL_RG32I"},
5549 {GL_SRGB8, "GL_SRGB8"},
5550 {GL_RGB8_SNORM, "GL_RGB8_SNORM"},
5551 {GL_R11F_G11F_B10F, "GL_R11F_G11F_B10F"},
5552 {GL_RGB9_E5, "GL_RGB9_E5"},
5553 {GL_RGB16F, "GL_RGB16F"},
5554 {GL_RGB32F, "GL_RGB32F"},
5555 {GL_RGB8UI, "GL_RGB8UI"},
5556 {GL_RGB8I, "GL_RGB8I"},
5557 {GL_RGB16UI, "GL_RGB16UI"},
5558 {GL_RGB16I, "GL_RGB16I"},
5559 {GL_RGB32UI, "GL_RGB32UI"},
5560 {GL_RGB32I, "GL_RGB32I"},
5561 {GL_SRGB8_ALPHA8, "GL_SRGB8_ALPHA8"},
5562 {GL_RGBA8_SNORM, "GL_RGBA8_SNORM"},
5563 {GL_RGB10_A2, "GL_RGB10_A2"},
5564 {GL_RGBA16F, "GL_RGBA16F"},
5565 {GL_RGBA32F, "GL_RGBA32F"},
5566 {GL_RGBA8UI, "GL_RGBA8UI"},
5567 {GL_RGBA8I, "GL_RGBA8I"},
5568 {GL_RGB10_A2UI, "GL_RGB10_A2UI"},
5569 {GL_RGBA16UI, "GL_RGBA16UI"},
5570 {GL_RGBA16I, "GL_RGBA16I"},
5571 {GL_RGBA32UI, "GL_RGBA32UI"},
5572 {GL_RGBA32I, "GL_RGBA32I"},
5573 {GL_DEPTH_COMPONENT16, "GL_DEPTH_COMPONENT16"},
5574 {GL_DEPTH_COMPONENT24, "GL_DEPTH_COMPONENT24"},
5575 {GL_DEPTH_COMPONENT32F, "GL_DEPTH_COMPONENT32F"},
5576 {GL_DEPTH24_STENCIL8, "GL_DEPTH24_STENCIL8"},
5577 {GL_DEPTH32F_STENCIL8, "GL_DEPTH32F_STENCIL8"},
5578 {GL_COMPRESSED_R11_EAC, "GL_COMPRESSED_R11_EAC"},
5579 {GL_COMPRESSED_SIGNED_R11_EAC, "GL_COMPRESSED_SIGNED_R11_EAC"},
5580 {GL_COMPRESSED_RG11_EAC, "GL_COMPRESSED_RG11_EAC"},
5581 {GL_COMPRESSED_SIGNED_RG11_EAC, "GL_COMPRESSED_SIGNED_RG11_EAC"},
5582 {GL_COMPRESSED_RGB8_ETC2, "GL_COMPRESSED_RGB8_ETC2"},
5583 {GL_COMPRESSED_SRGB8_ETC2, "GL_COMPRESSED_SRGB8_ETC2"},
5584 {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2,
5585 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
5586 {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2,
5587 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
5588 {GL_COMPRESSED_RGBA8_ETC2_EAC, "GL_COMPRESSED_RGBA8_ETC2_EAC"},
5589 {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC,
5590 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"},
5592 return GLES2Util::GetQualifiedEnumString(string_table,
5593 arraysize(string_table), value);
5596 std::string GLES2Util::GetStringTextureMagFilterMode(uint32_t value) {
5597 static const EnumToString string_table[] = {
5598 {GL_NEAREST, "GL_NEAREST"}, {GL_LINEAR, "GL_LINEAR"},
5600 return GLES2Util::GetQualifiedEnumString(string_table,
5601 arraysize(string_table), value);
5604 std::string GLES2Util::GetStringTextureMinFilterMode(uint32_t value) {
5605 static const EnumToString string_table[] = {
5606 {GL_NEAREST, "GL_NEAREST"},
5607 {GL_LINEAR, "GL_LINEAR"},
5608 {GL_NEAREST_MIPMAP_NEAREST, "GL_NEAREST_MIPMAP_NEAREST"},
5609 {GL_LINEAR_MIPMAP_NEAREST, "GL_LINEAR_MIPMAP_NEAREST"},
5610 {GL_NEAREST_MIPMAP_LINEAR, "GL_NEAREST_MIPMAP_LINEAR"},
5611 {GL_LINEAR_MIPMAP_LINEAR, "GL_LINEAR_MIPMAP_LINEAR"},
5613 return GLES2Util::GetQualifiedEnumString(string_table,
5614 arraysize(string_table), value);
5617 std::string GLES2Util::GetStringTextureParameter(uint32_t value) {
5618 static const EnumToString string_table[] = {
5619 {GL_TEXTURE_MAG_FILTER, "GL_TEXTURE_MAG_FILTER"},
5620 {GL_TEXTURE_MIN_FILTER, "GL_TEXTURE_MIN_FILTER"},
5621 {GL_TEXTURE_POOL_CHROMIUM, "GL_TEXTURE_POOL_CHROMIUM"},
5622 {GL_TEXTURE_WRAP_S, "GL_TEXTURE_WRAP_S"},
5623 {GL_TEXTURE_WRAP_T, "GL_TEXTURE_WRAP_T"},
5624 {GL_TEXTURE_BASE_LEVEL, "GL_TEXTURE_BASE_LEVEL"},
5625 {GL_TEXTURE_COMPARE_FUNC, "GL_TEXTURE_COMPARE_FUNC"},
5626 {GL_TEXTURE_COMPARE_MODE, "GL_TEXTURE_COMPARE_MODE"},
5627 {GL_TEXTURE_IMMUTABLE_FORMAT, "GL_TEXTURE_IMMUTABLE_FORMAT"},
5628 {GL_TEXTURE_IMMUTABLE_LEVELS, "GL_TEXTURE_IMMUTABLE_LEVELS"},
5629 {GL_TEXTURE_MAX_LEVEL, "GL_TEXTURE_MAX_LEVEL"},
5630 {GL_TEXTURE_MAX_LOD, "GL_TEXTURE_MAX_LOD"},
5631 {GL_TEXTURE_MIN_LOD, "GL_TEXTURE_MIN_LOD"},
5632 {GL_TEXTURE_WRAP_R, "GL_TEXTURE_WRAP_R"},
5634 return GLES2Util::GetQualifiedEnumString(string_table,
5635 arraysize(string_table), value);
5638 std::string GLES2Util::GetStringTexturePool(uint32_t value) {
5639 static const EnumToString string_table[] = {
5640 {GL_TEXTURE_POOL_MANAGED_CHROMIUM, "GL_TEXTURE_POOL_MANAGED_CHROMIUM"},
5641 {GL_TEXTURE_POOL_UNMANAGED_CHROMIUM,
5642 "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM"},
5644 return GLES2Util::GetQualifiedEnumString(string_table,
5645 arraysize(string_table), value);
5648 std::string GLES2Util::GetStringTextureTarget(uint32_t value) {
5649 static const EnumToString string_table[] = {
5650 {GL_TEXTURE_2D, "GL_TEXTURE_2D"},
5651 {GL_TEXTURE_CUBE_MAP_POSITIVE_X, "GL_TEXTURE_CUBE_MAP_POSITIVE_X"},
5652 {GL_TEXTURE_CUBE_MAP_NEGATIVE_X, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X"},
5653 {GL_TEXTURE_CUBE_MAP_POSITIVE_Y, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y"},
5654 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y"},
5655 {GL_TEXTURE_CUBE_MAP_POSITIVE_Z, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z"},
5656 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z"},
5658 return GLES2Util::GetQualifiedEnumString(string_table,
5659 arraysize(string_table), value);
5662 std::string GLES2Util::GetStringTextureUsage(uint32_t value) {
5663 static const EnumToString string_table[] = {
5664 {GL_NONE, "GL_NONE"},
5665 {GL_FRAMEBUFFER_ATTACHMENT_ANGLE, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE"},
5667 return GLES2Util::GetQualifiedEnumString(string_table,
5668 arraysize(string_table), value);
5671 std::string GLES2Util::GetStringTextureWrapMode(uint32_t value) {
5672 static const EnumToString string_table[] = {
5673 {GL_CLAMP_TO_EDGE, "GL_CLAMP_TO_EDGE"},
5674 {GL_MIRRORED_REPEAT, "GL_MIRRORED_REPEAT"},
5675 {GL_REPEAT, "GL_REPEAT"},
5677 return GLES2Util::GetQualifiedEnumString(string_table,
5678 arraysize(string_table), value);
5681 std::string GLES2Util::GetStringTransformFeedbackBindTarget(uint32_t value) {
5682 static const EnumToString string_table[] = {
5683 {GL_TRANSFORM_FEEDBACK, "GL_TRANSFORM_FEEDBACK"},
5685 return GLES2Util::GetQualifiedEnumString(string_table,
5686 arraysize(string_table), value);
5689 std::string GLES2Util::GetStringTransformFeedbackPrimitiveMode(uint32_t value) {
5690 static const EnumToString string_table[] = {
5691 {GL_POINTS, "GL_POINTS"},
5692 {GL_LINES, "GL_LINES"},
5693 {GL_TRIANGLES, "GL_TRIANGLES"},
5695 return GLES2Util::GetQualifiedEnumString(string_table,
5696 arraysize(string_table), value);
5699 std::string GLES2Util::GetStringUniformBlockParameter(uint32_t value) {
5700 static const EnumToString string_table[] = {
5701 {GL_UNIFORM_BLOCK_BINDING, "GL_UNIFORM_BLOCK_BINDING"},
5702 {GL_UNIFORM_BLOCK_DATA_SIZE, "GL_UNIFORM_BLOCK_DATA_SIZE"},
5703 {GL_UNIFORM_BLOCK_NAME_LENGTH, "GL_UNIFORM_BLOCK_NAME_LENGTH"},
5704 {GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS"},
5705 {GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES,
5706 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES"},
5707 {GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER,
5708 "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER"},
5709 {GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER,
5710 "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER"},
5712 return GLES2Util::GetQualifiedEnumString(string_table,
5713 arraysize(string_table), value);
5716 std::string GLES2Util::GetStringUniformParameter(uint32_t value) {
5717 static const EnumToString string_table[] = {
5718 {GL_UNIFORM_SIZE, "GL_UNIFORM_SIZE"},
5719 {GL_UNIFORM_TYPE, "GL_UNIFORM_TYPE"},
5720 {GL_UNIFORM_NAME_LENGTH, "GL_UNIFORM_NAME_LENGTH"},
5721 {GL_UNIFORM_BLOCK_INDEX, "GL_UNIFORM_BLOCK_INDEX"},
5722 {GL_UNIFORM_OFFSET, "GL_UNIFORM_OFFSET"},
5723 {GL_UNIFORM_ARRAY_STRIDE, "GL_UNIFORM_ARRAY_STRIDE"},
5724 {GL_UNIFORM_MATRIX_STRIDE, "GL_UNIFORM_MATRIX_STRIDE"},
5725 {GL_UNIFORM_IS_ROW_MAJOR, "GL_UNIFORM_IS_ROW_MAJOR"},
5727 return GLES2Util::GetQualifiedEnumString(string_table,
5728 arraysize(string_table), value);
5731 std::string GLES2Util::GetStringValueBufferTarget(uint32_t value) {
5732 static const EnumToString string_table[] = {
5733 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM,
5734 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"},
5736 return GLES2Util::GetQualifiedEnumString(string_table,
5737 arraysize(string_table), value);
5740 std::string GLES2Util::GetStringVertexAttribIType(uint32_t value) {
5741 static const EnumToString string_table[] = {
5742 {GL_BYTE, "GL_BYTE"},
5743 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
5744 {GL_SHORT, "GL_SHORT"},
5745 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
5746 {GL_INT, "GL_INT"},
5747 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
5749 return GLES2Util::GetQualifiedEnumString(string_table,
5750 arraysize(string_table), value);
5753 std::string GLES2Util::GetStringVertexAttribType(uint32_t value) {
5754 static const EnumToString string_table[] = {
5755 {GL_BYTE, "GL_BYTE"},
5756 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"},
5757 {GL_SHORT, "GL_SHORT"},
5758 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"},
5759 {GL_FLOAT, "GL_FLOAT"},
5760 {GL_INT, "GL_INT"},
5761 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"},
5762 {GL_HALF_FLOAT, "GL_HALF_FLOAT"},
5763 {GL_INT_2_10_10_10_REV, "GL_INT_2_10_10_10_REV"},
5764 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"},
5766 return GLES2Util::GetQualifiedEnumString(string_table,
5767 arraysize(string_table), value);
5770 std::string GLES2Util::GetStringVertexAttribute(uint32_t value) {
5771 static const EnumToString string_table[] = {
5772 {GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED"},
5773 {GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING,
5774 "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING"},
5775 {GL_VERTEX_ATTRIB_ARRAY_ENABLED, "GL_VERTEX_ATTRIB_ARRAY_ENABLED"},
5776 {GL_VERTEX_ATTRIB_ARRAY_SIZE, "GL_VERTEX_ATTRIB_ARRAY_SIZE"},
5777 {GL_VERTEX_ATTRIB_ARRAY_STRIDE, "GL_VERTEX_ATTRIB_ARRAY_STRIDE"},
5778 {GL_VERTEX_ATTRIB_ARRAY_TYPE, "GL_VERTEX_ATTRIB_ARRAY_TYPE"},
5779 {GL_CURRENT_VERTEX_ATTRIB, "GL_CURRENT_VERTEX_ATTRIB"},
5780 {GL_VERTEX_ATTRIB_ARRAY_INTEGER, "GL_VERTEX_ATTRIB_ARRAY_INTEGER"},
5781 {GL_VERTEX_ATTRIB_ARRAY_DIVISOR, "GL_VERTEX_ATTRIB_ARRAY_DIVISOR"},
5783 return GLES2Util::GetQualifiedEnumString(string_table,
5784 arraysize(string_table), value);
5787 std::string GLES2Util::GetStringVertexPointer(uint32_t value) {
5788 static const EnumToString string_table[] = {
5789 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5791 return GLES2Util::GetQualifiedEnumString(string_table,
5792 arraysize(string_table), value);
5795 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_