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
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
[] = {
19 0x8D76, "GL_RGBA16UI",
22 0x9260, "GL_GCCSO_SHADER_BINARY_FJ",
25 0x9009, "GL_TEXTURE_CUBE_MAP_ARRAY_EXT",
31 0x8D70, "GL_RGBA32UI",
34 0x8C76, "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH",
37 0x8825, "GL_DRAW_BUFFER0_EXT",
40 0x8D94, "GL_RED_INTEGER",
43 0x0BC1, "GL_ALPHA_TEST_FUNC_QCOM",
46 0x884C, "GL_TEXTURE_COMPARE_MODE_EXT",
49 0x0BC2, "GL_ALPHA_TEST_REF_QCOM",
52 0x78EF, "GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM",
55 0x884D, "GL_TEXTURE_COMPARE_FUNC_EXT",
58 0x884E, "GL_COMPARE_REF_TO_TEXTURE_EXT",
61 0x8E76, "GL_TESS_GEN_MODE_EXT",
64 0x8E77, "GL_TESS_GEN_SPACING_EXT",
67 0x000D, "GL_TRIANGLE_STRIP_ADJACENCY_EXT",
70 0x000E, "GL_PATCHES_EXT",
73 0x000B, "GL_LINE_STRIP_ADJACENCY_EXT",
76 0x000C, "GL_TRIANGLES_ADJACENCY_EXT",
79 0x000A, "GL_LINES_ADJACENCY_EXT",
82 0x92CF, "GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_EXT",
85 0x93A1, "GL_BGRA8_EXT",
88 0x813C, "GL_TEXTURE_BASE_LEVEL",
94 0x00400000, "GL_STENCIL_BUFFER_BIT6_QCOM",
97 64, "GL_MAILBOX_SIZE_CHROMIUM",
100 0x9500, "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL",
103 0x78F2, "GL_SCANOUT_CHROMIUM",
106 0x9138, "GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG",
109 0x8FC4, "GL_SHADER_BINARY_VIV",
112 0x90A7, "GL_MITER_REVERT_CHROMIUM",
115 0x9130, "GL_SGX_PROGRAM_BINARY_IMG",
118 0x9133, "GL_RENDERBUFFER_SAMPLES_IMG",
121 0x82E0, "GL_BUFFER_KHR",
124 0x9135, "GL_MAX_SAMPLES_IMG",
127 0x9134, "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG",
130 0x9137, "GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG",
133 0x9136, "GL_TEXTURE_SAMPLES_IMG",
136 0x8D88, "GL_RGBA16I",
142 0x00000020, "GL_COLOR_BUFFER_BIT5_QCOM",
145 0x0008, "GL_MAP_INVALIDATE_BUFFER_BIT_EXT",
148 0x0BC0, "GL_ALPHA_TEST_QCOM",
151 0x0006, "GL_TRIANGLE_FAN",
154 0x0007, "GL_QUADS_EXT",
157 0x0004, "GL_TRIANGLES",
160 0x0005, "GL_TRIANGLE_STRIP",
163 0x0002, "GL_LINE_LOOP",
166 0x0003, "GL_LINE_STRIP",
178 0x93F0, "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG",
181 0x93F1, "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV2_IMG",
184 0x0D04, "GL_PACK_SKIP_PIXELS",
187 0x900E, "GL_INT_SAMPLER_CUBE_MAP_ARRAY_EXT",
190 0x900D, "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_EXT",
193 0x8C7F, "GL_TRANSFORM_FEEDBACK_BUFFER_MODE",
196 0x900F, "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_EXT",
199 0x900A, "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_EXT",
202 0x900C, "GL_SAMPLER_CUBE_MAP_ARRAY_EXT",
205 0x8213, "GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",
208 0x88B9, "GL_WRITE_ONLY_OES",
211 0x8211, "GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",
214 0x8210, "GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",
217 0x8741, "GL_PROGRAM_BINARY_LENGTH_OES",
220 0x8740, "GL_Z400_BINARY_AMD",
223 0x8215, "GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",
226 0x8C4D, "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV",
229 0x8192, "GL_GENERATE_MIPMAP_HINT",
232 0x8E79, "GL_TESS_GEN_POINT_MODE_EXT",
235 0x8A54, "GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT",
238 0x8A55, "GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT",
241 0x8A56, "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT",
244 0x8A57, "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT",
247 0x8A51, "GL_RGB_RAW_422_APPLE",
250 0x87F9, "GL_3DC_X_AMD",
253 0x8A53, "GL_SYNC_OBJECT_APPLE",
256 0x8DF8, "GL_SHADER_BINARY_FORMATS",
259 0x8DF9, "GL_NUM_SHADER_BINARY_FORMATS",
262 0x826D, "GL_DEBUG_GROUP_STACK_DEPTH_KHR",
265 0x8E75, "GL_TESS_CONTROL_OUTPUT_VERTICES_EXT",
268 0x826B, "GL_DEBUG_SEVERITY_NOTIFICATION_KHR",
271 0x826C, "GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR",
274 0x8B59, "GL_BOOL_VEC4",
277 0x826A, "GL_DEBUG_TYPE_POP_GROUP_KHR",
280 0x8B57, "GL_BOOL_VEC2",
283 0x8DF1, "GL_MEDIUM_FLOAT",
286 0x8B55, "GL_INT_VEC4",
289 0x8B54, "GL_INT_VEC3",
292 0x8DF4, "GL_MEDIUM_INT",
295 0x8DF5, "GL_HIGH_INT",
298 0x8B51, "GL_FLOAT_VEC3",
301 0x8B50, "GL_FLOAT_VEC2",
304 0x806D, "GL_UNPACK_SKIP_IMAGES",
307 0x806E, "GL_UNPACK_IMAGE_HEIGHT",
310 0x806F, "GL_TEXTURE_3D_OES",
313 0x92E7, "GL_IS_PER_PATCH_EXT",
316 0x92E0, "GL_DEBUG_OUTPUT_KHR",
319 0x806A, "GL_TEXTURE_BINDING_3D_OES",
325 0x8CE3, "GL_COLOR_ATTACHMENT3_EXT",
328 0x9274, "GL_COMPRESSED_RGB8_ETC2",
331 0x1904, "GL_GREEN_NV",
334 0x928D, "GL_DST_OUT_NV",
337 0x8069, "GL_TEXTURE_BINDING_2D",
340 0x8A2E, "GL_MAX_COMBINED_UNIFORM_BLOCKS",
343 0x8F96, "GL_RGB8_SNORM",
346 0x8260, "GL_UNDEFINED_VERTEX_EXT",
349 0x8261, "GL_NO_RESET_NOTIFICATION_KHR",
352 0x0D02, "GL_PACK_ROW_LENGTH",
355 0x8DFA, "GL_SHADER_COMPILER",
358 0x8DFB, "GL_MAX_VERTEX_UNIFORM_VECTORS",
361 0x8DFC, "GL_MAX_VARYING_VECTORS",
364 0x8B5C, "GL_FLOAT_MAT4",
367 0x8B5B, "GL_FLOAT_MAT3",
370 0x8268, "GL_DEBUG_TYPE_MARKER_KHR",
373 0x8269, "GL_DEBUG_TYPE_PUSH_GROUP_KHR",
376 0x1905, "GL_BLUE_NV",
379 0x87FF, "GL_PROGRAM_BINARY_FORMATS_OES",
382 0x87FE, "GL_NUM_PROGRAM_BINARY_FORMATS_OES",
385 0x8A41, "GL_UNIFORM_BLOCK_NAME_LENGTH",
388 0x2600, "GL_NEAREST",
394 0x8C03, "GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",
397 0x821B, "GL_MAJOR_VERSION",
400 0x821A, "GL_DEPTH_STENCIL_ATTACHMENT",
403 0x8A40, "GL_UNIFORM_BLOCK_DATA_SIZE",
406 0x821D, "GL_NUM_EXTENSIONS",
409 0x88BB, "GL_BUFFER_ACCESS_OES",
412 0x88BC, "GL_BUFFER_MAPPED_OES",
415 0x88BD, "GL_BUFFER_MAP_POINTER_OES",
418 0x88BF, "GL_TIME_ELAPSED_EXT",
421 0x8A46, "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",
424 0x6003, "GL_GET_ERROR_QUERY_CHROMIUM",
427 0x8F94, "GL_R8_SNORM",
430 0x0C10, "GL_SCISSOR_BOX",
433 0x0C11, "GL_SCISSOR_TEST",
436 0x1700, "GL_PATH_MODELVIEW_CHROMIUM",
439 0x80000000, "GL_MULTISAMPLE_BUFFER_BIT7_QCOM",
442 0x94F8, "GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL",
445 0x90a4, "GL_ROUND_CHROMIUM",
448 0x8A48, "GL_TEXTURE_SRGB_DECODE_EXT",
451 0x300E, "GL_CONTEXT_LOST",
454 0x90a3, "GL_SQUARE_CHROMIUM",
457 0x02000000, "GL_MULTISAMPLE_BUFFER_BIT1_QCOM",
460 0x8C2F, "GL_ANY_SAMPLES_PASSED_EXT",
463 0x8BD2, "GL_TEXTURE_WIDTH_QCOM",
466 0x8C2D, "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT",
469 0x8C2C, "GL_TEXTURE_BINDING_BUFFER_EXT",
472 0x8C2B, "GL_MAX_TEXTURE_BUFFER_SIZE_EXT",
475 0x8C2A, "GL_TEXTURE_BUFFER_EXT",
478 0x8BD7, "GL_TEXTURE_TYPE_QCOM",
481 0x8B8D, "GL_CURRENT_PROGRAM",
484 0x8BD9, "GL_TEXTURE_NUM_LEVELS_QCOM",
487 0x00200000, "GL_STENCIL_BUFFER_BIT5_QCOM",
490 0x8D9F, "GL_INT_2_10_10_10_REV",
493 0x8B8A, "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH",
496 0x8B8B, "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES",
499 0x8B8C, "GL_SHADING_LANGUAGE_VERSION",
502 0x8BDA, "GL_TEXTURE_TARGET_QCOM",
505 0x8BDB, "GL_TEXTURE_OBJECT_VALID_QCOM",
508 0x8BDC, "GL_STATE_RESTORE",
511 0x8B88, "GL_SHADER_SOURCE_LENGTH",
514 0x8B89, "GL_ACTIVE_ATTRIBUTES",
517 0x93C9, "GL_COMPRESSED_RGBA_ASTC_6x6x6_OES",
520 0x93C8, "GL_COMPRESSED_RGBA_ASTC_6x6x5_OES",
523 0x8B84, "GL_INFO_LOG_LENGTH",
526 0x8B85, "GL_ATTACHED_SHADERS",
529 0x8B86, "GL_ACTIVE_UNIFORMS",
532 0x8B87, "GL_ACTIVE_UNIFORM_MAX_LENGTH",
535 0x8B80, "GL_DELETE_STATUS",
538 0x8B81, "GL_COMPILE_STATUS",
541 0x8B82, "GL_LINK_STATUS",
544 0x8B83, "GL_VALIDATE_STATUS",
547 0x9380, "GL_NUM_SAMPLE_COUNTS",
550 0x8D48, "GL_STENCIL_INDEX8",
553 0x8D46, "GL_STENCIL_INDEX1_OES",
556 0x8D47, "GL_STENCIL_INDEX4_OES",
559 0x8D44, "GL_RENDERBUFFER_INTERNAL_FORMAT",
562 0x00000100, "GL_DEPTH_BUFFER_BIT",
565 0x8D42, "GL_RENDERBUFFER_WIDTH",
568 0x8D43, "GL_RENDERBUFFER_HEIGHT",
571 0x8D40, "GL_FRAMEBUFFER",
574 0x8D41, "GL_RENDERBUFFER",
577 0x90B7, "GL_PATH_STENCIL_FUNC_CHROMIUM",
580 0x8A3A, "GL_UNIFORM_BLOCK_INDEX",
583 0x88B8, "GL_READ_ONLY",
589 0x90B9, "GL_PATH_STENCIL_VALUE_MASK_CHROMIUM",
592 0x90B8, "GL_PATH_STENCIL_REF_CHROMIUM",
595 0x93D3, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR",
598 0x1D00, "GL_FLAT_CHROMIUM",
601 0x9144, "GL_MAX_DEBUG_LOGGED_MESSAGES_KHR",
604 0x1801, "GL_DEPTH_EXT",
607 0x1800, "GL_COLOR_EXT",
610 0x1802, "GL_STENCIL_EXT",
613 0x9288, "GL_SRC_OVER_NV",
616 0x9120, "GL_BUFFER_MAP_LENGTH",
619 0x0B21, "GL_LINE_WIDTH",
622 0x9308, "GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT",
625 0x81A5, "GL_DEPTH_COMPONENT16",
628 0x81A6, "GL_DEPTH_COMPONENT24_OES",
631 0x81A7, "GL_DEPTH_COMPONENT32_OES",
634 0x88FD, "GL_VERTEX_ATTRIB_ARRAY_INTEGER",
637 0x88FE, "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",
640 0x88FF, "GL_MAX_ARRAY_TEXTURE_LAYERS",
643 0x8B6A, "GL_FLOAT_MAT4x3_NV",
646 0x93D0, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR",
649 0x9143, "GL_MAX_DEBUG_MESSAGE_LENGTH_KHR",
652 0x8DFD, "GL_MAX_FRAGMENT_UNIFORM_VECTORS",
655 0x9145, "GL_DEBUG_LOGGED_MESSAGES_KHR",
658 0x9146, "GL_DEBUG_SEVERITY_HIGH_KHR",
661 0x9147, "GL_DEBUG_SEVERITY_MEDIUM_KHR",
664 0x9148, "GL_DEBUG_SEVERITY_LOW_KHR",
667 0x8F63, "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT",
670 0x8F60, "GL_MALI_SHADER_BINARY_ARM",
673 0x8F61, "GL_MALI_PROGRAM_BINARY_ARM",
676 0x8F66, "GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM",
679 0x8F67, "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT",
682 0x8F64, "GL_SHADER_PIXEL_LOCAL_STORAGE_EXT",
685 0x8F65, "GL_FETCH_PER_SAMPLE_ARM",
688 0x92D3, "GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT",
691 0x87EE, "GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD",
694 0x822B, "GL_RG8_EXT",
697 0x822F, "GL_RG16F_EXT",
700 0x822D, "GL_R16F_EXT",
703 0x822E, "GL_R32F_EXT",
706 1, "GL_ES_VERSION_2_0",
709 0x84F9, "GL_DEPTH_STENCIL_OES",
712 0x82DB, "GL_TEXTURE_VIEW_MIN_LEVEL_EXT",
715 0x8368, "GL_UNSIGNED_INT_2_10_10_10_REV_EXT",
718 0x8819, "GL_LUMINANCE_ALPHA32F_EXT",
721 0x8818, "GL_LUMINANCE32F_EXT",
724 0x82DF, "GL_TEXTURE_IMMUTABLE_LEVELS",
727 0x8363, "GL_UNSIGNED_SHORT_5_6_5",
730 0x9051, "GL_IMAGE_BUFFER_EXT",
733 0x84F2, "GL_ALL_COMPLETED_NV",
736 0x8E5A, "GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT",
739 0x84F4, "GL_FENCE_CONDITION_NV",
742 0x8366, "GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT",
745 0x8365, "GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT",
748 0x84F7, "GL_COMMANDS_COMPLETED_CHROMIUM",
751 0x8F9C, "GL_SIGNED_NORMALIZED",
754 0x92D5, "GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT",
757 0x881E, "GL_LUMINANCE16F_EXT",
760 0x84FA, "GL_UNSIGNED_INT_24_8_OES",
763 0x0A, "GL_QUADRATIC_CURVE_TO_CHROMIUM",
766 0x92D4, "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT",
769 0x881A, "GL_RGBA16F_EXT",
772 0x84FE, "GL_TEXTURE_MAX_ANISOTROPY_EXT",
781 0x9317, "GL_MAX_FRAMEBUFFER_LAYERS_EXT",
787 0x8230, "GL_RG32F_EXT",
790 0x9312, "GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT",
793 0x9283, "GL_DISJOINT_NV",
796 0x8221, "GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED",
802 0x8B66, "GL_FLOAT_MAT2x4_NV",
805 0x8B67, "GL_FLOAT_MAT3x2_NV",
808 0x8E1E, "GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
811 0x8B62, "GL_SAMPLER_2D_SHADOW_EXT",
814 0x8B63, "GL_SAMPLER_2D_RECT_ARB",
817 0x8B60, "GL_SAMPLER_CUBE",
820 0x00001000, "GL_DEPTH_BUFFER_BIT4_QCOM",
823 0x8B68, "GL_FLOAT_MAT3x4_NV",
826 0x83F0, "GL_COMPRESSED_RGB_S3TC_DXT1_EXT",
829 0x8D6A, "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT",
832 0x00000080, "GL_COLOR_BUFFER_BIT7_QCOM",
835 0x88F0, "GL_DEPTH24_STENCIL8_OES",
838 0x8E1F, "GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
841 0x80A0, "GL_SAMPLE_COVERAGE",
844 0x0C, "GL_CUBIC_CURVE_TO_CHROMIUM",
847 0x928F, "GL_DST_ATOP_NV",
850 0x80A9, "GL_SAMPLES",
853 0x80A8, "GL_SAMPLE_BUFFERS",
856 0x0D55, "GL_ALPHA_BITS",
859 0x0D54, "GL_BLUE_BITS",
862 0x0D57, "GL_STENCIL_BITS",
865 0x0D56, "GL_DEPTH_BITS",
868 0x8CD5, "GL_FRAMEBUFFER_COMPLETE",
871 0x0D50, "GL_SUBPIXEL_BITS",
874 0x0D53, "GL_GREEN_BITS",
877 0x0D52, "GL_RED_BITS",
880 0x8037, "GL_POLYGON_OFFSET_FILL",
883 0x928C, "GL_SRC_OUT_NV",
886 0x8034, "GL_UNSIGNED_SHORT_5_5_5_1",
889 0x8033, "GL_UNSIGNED_SHORT_4_4_4_4",
892 0x928B, "GL_DST_IN_NV",
895 0x0305, "GL_ONE_MINUS_DST_ALPHA",
898 0x0304, "GL_DST_ALPHA",
901 0x0307, "GL_ONE_MINUS_DST_COLOR",
904 0x0306, "GL_DST_COLOR",
907 0x0301, "GL_ONE_MINUS_SRC_COLOR",
910 0x0300, "GL_SRC_COLOR",
913 0x0303, "GL_ONE_MINUS_SRC_ALPHA",
916 0x0302, "GL_SRC_ALPHA",
919 0x8212, "GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE",
922 0x0308, "GL_SRC_ALPHA_SATURATE",
925 0x2A00, "GL_POLYGON_OFFSET_UNITS",
928 0xFFFFFFFF, "GL_ALL_SHADER_BITS_EXT",
931 0x82DC, "GL_TEXTURE_VIEW_NUM_LEVELS_EXT",
934 0x8C29, "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT",
937 0x82DD, "GL_TEXTURE_VIEW_MIN_LAYER_EXT",
940 0x00800000, "GL_STENCIL_BUFFER_BIT7_QCOM",
943 0x82DE, "GL_TEXTURE_VIEW_NUM_LAYERS_EXT",
946 0x00020000, "GL_STENCIL_BUFFER_BIT1_QCOM",
949 0x8D00, "GL_DEPTH_ATTACHMENT",
952 0x8FA0, "GL_PERFMON_GLOBAL_MODE_QCOM",
955 0x8815, "GL_RGB32F_EXT",
958 0x8A35, "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH",
961 0x8814, "GL_RGBA32F_EXT",
964 0x6006, "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM",
967 0x9277, "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",
970 0x6004, "GL_COMMANDS_ISSUED_CHROMIUM",
973 0x813D, "GL_TEXTURE_MAX_LEVEL_APPLE",
976 0x8816, "GL_ALPHA32F_EXT",
979 0x813B, "GL_TEXTURE_MAX_LOD",
982 0x8CDD, "GL_FRAMEBUFFER_UNSUPPORTED",
985 0x8CDF, "GL_MAX_COLOR_ATTACHMENTS_EXT",
988 0x90F3, "GL_CONTEXT_ROBUST_ACCESS_KHR",
991 0x90F2, "GL_MAX_MULTIVIEW_BUFFERS_EXT",
994 0x90F1, "GL_MULTIVIEW_EXT",
997 0x90F0, "GL_COLOR_ATTACHMENT_EXT",
1000 0x803C, "GL_ALPHA8_OES",
1003 0x8904, "GL_MIN_PROGRAM_TEXEL_OFFSET",
1006 0x84F5, "GL_TEXTURE_RECTANGLE_ARB",
1009 0x882A, "GL_DRAW_BUFFER5_EXT",
1012 0x8E7F, "GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
1015 0x80AA, "GL_SAMPLE_COVERAGE_VALUE",
1018 0x84F6, "GL_TEXTURE_BINDING_RECTANGLE_ARB",
1021 0x80AB, "GL_SAMPLE_COVERAGE_INVERT",
1024 0x8E7D, "GL_MAX_PATCH_VERTICES_EXT",
1027 0x6005, "GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM",
1030 0x9105, "GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES",
1033 0x8E7E, "GL_MAX_TESS_GEN_LEVEL_EXT",
1036 0x9102, "GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES",
1039 0x8C40, "GL_SRGB_EXT",
1042 0x8E7B, "GL_FRACTIONAL_ODD_EXT",
1045 0x00000040, "GL_COLOR_BUFFER_BIT6_QCOM",
1048 0x882B, "GL_DRAW_BUFFER6_EXT",
1051 0x8E7C, "GL_FRACTIONAL_EVEN_EXT",
1054 0x8C8E, "GL_TRANSFORM_FEEDBACK_BUFFER",
1057 0x8C8D, "GL_SEPARATE_ATTRIBS",
1060 0x8C8F, "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING",
1063 0x8C8A, "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",
1066 0x8C8C, "GL_INTERLEAVED_ATTRIBS",
1069 0x8C8B, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",
1072 0x8C17, "GL_UNSIGNED_NORMALIZED_EXT",
1075 0x8A3E, "GL_UNIFORM_IS_ROW_MAJOR",
1078 0x8E7A, "GL_ISOLINES_EXT",
1081 0x8F95, "GL_RG8_SNORM",
1084 0x8D99, "GL_RGBA_INTEGER",
1087 0x8D98, "GL_RGB_INTEGER",
1090 0x8A4A, "GL_SKIP_DECODE_EXT",
1093 0x8A4F, "GL_PROGRAM_PIPELINE_OBJECT_EXT",
1096 0x882C, "GL_DRAW_BUFFER7_EXT",
1099 0x0010, "GL_MAP_FLUSH_EXPLICIT_BIT_EXT",
1102 0x8918, "GL_GEOMETRY_LINKED_OUTPUT_TYPE_EXT",
1105 0x8919, "GL_SAMPLER_BINDING",
1108 0x92CD, "GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_EXT",
1111 0x92CE, "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_EXT",
1114 0x8C85, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE",
1117 0x8D7C, "GL_RGBA8UI",
1120 0x6007, "GL_LATENCY_QUERY_CHROMIUM",
1123 0x8D83, "GL_RGB32I",
1126 0x8916, "GL_GEOMETRY_LINKED_VERTICES_OUT_EXT",
1129 0x8917, "GL_GEOMETRY_LINKED_INPUT_TYPE_EXT",
1132 0x881F, "GL_LUMINANCE_ALPHA16F_EXT",
1135 0x84FD, "GL_MAX_TEXTURE_LOD_BIAS",
1138 0x882D, "GL_DRAW_BUFFER8_EXT",
1141 0x8A43, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",
1144 0x8A42, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS",
1147 0x8F37, "GL_COPY_WRITE_BUFFER_NV",
1150 0x8F36, "GL_COPY_READ_BUFFER_NV",
1153 0x84FF, "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT",
1156 0x8A3C, "GL_UNIFORM_ARRAY_STRIDE",
1159 0x8A44, "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",
1162 0x6000, "GL_TEXTURE_POOL_CHROMIUM",
1165 0x0B74, "GL_DEPTH_FUNC",
1168 0x8A49, "GL_DECODE_EXT",
1171 0x881B, "GL_RGB16F_EXT",
1174 0x0B71, "GL_DEPTH_TEST",
1177 0x0B70, "GL_DEPTH_RANGE",
1180 0x0B73, "GL_DEPTH_CLEAR_VALUE",
1183 0x0B72, "GL_DEPTH_WRITEMASK",
1186 0x8BD5, "GL_TEXTURE_INTERNAL_FORMAT_QCOM",
1189 0x85BA, "GL_UNSIGNED_SHORT_8_8_APPLE",
1192 0x8C87, "GL_PRIMITIVES_GENERATED_EXT",
1195 0x8C80, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",
1198 0x8C83, "GL_TRANSFORM_FEEDBACK_VARYINGS",
1201 0x8D69, "GL_PRIMITIVE_RESTART_FIXED_INDEX",
1204 0x882E, "GL_DRAW_BUFFER9_EXT",
1207 0x8A32, "GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_EXT",
1210 0x8A31, "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",
1213 0x8C89, "GL_RASTERIZER_DISCARD",
1216 0x8C88, "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",
1219 0x8C1A, "GL_TEXTURE_2D_ARRAY",
1222 0x910D, "GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1225 0x8E80, "GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
1228 0x910B, "GL_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1231 0x910C, "GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1234 0x94FA, "GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL",
1237 0x8073, "GL_MAX_3D_TEXTURE_SIZE_OES",
1240 0x8072, "GL_TEXTURE_WRAP_R_OES",
1243 0x9289, "GL_DST_OVER_NV",
1246 0x882F, "GL_DRAW_BUFFER10_EXT",
1249 0x8074, "GL_VERTEX_ARRAY_KHR",
1252 0x80E1, "GL_BGRA_EXT",
1255 0x908B, "GL_CONVEX_HULL_CHROMIUM",
1258 0x8ED7, "GL_COVERAGE_AUTOMATIC_NV",
1261 0x8ED6, "GL_COVERAGE_EDGE_FRAGMENTS_NV",
1264 0x8ED5, "GL_COVERAGE_ALL_FRAGMENTS_NV",
1267 0x8ED4, "GL_COVERAGE_SAMPLES_NV",
1270 0x8ED3, "GL_COVERAGE_BUFFERS_NV",
1273 0x8ED2, "GL_COVERAGE_ATTACHMENT_NV",
1276 0x8ED1, "GL_COVERAGE_COMPONENT4_NV",
1279 0x8ED0, "GL_COVERAGE_COMPONENT_NV",
1282 0x8217, "GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",
1285 0x8E89, "GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_EXT",
1288 0x8216, "GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",
1291 0x8A36, "GL_ACTIVE_UNIFORM_BLOCKS",
1294 0x8A37, "GL_UNIFORM_TYPE",
1297 0x8A34, "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT",
1300 0x3006, "GL_CLIP_DISTANCE6_APPLE",
1303 0x800B, "GL_FUNC_REVERSE_SUBTRACT",
1306 0x8A33, "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",
1309 0x00000400, "GL_STENCIL_BUFFER_BIT",
1312 0x800A, "GL_FUNC_SUBTRACT",
1315 0x8214, "GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",
1318 0x8A38, "GL_UNIFORM_SIZE",
1321 0x8A39, "GL_UNIFORM_NAME_LENGTH",
1324 0x8E2C, "GL_DEPTH_COMPONENT16_NONLINEAR_NV",
1327 0x889F, "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",
1330 0x8219, "GL_FRAMEBUFFER_UNDEFINED_OES",
1333 0x8E23, "GL_TRANSFORM_FEEDBACK_PAUSED",
1336 0x8E22, "GL_TRANSFORM_FEEDBACK",
1339 0x8E25, "GL_TRANSFORM_FEEDBACK_BINDING",
1342 0x9054, "GL_IMAGE_CUBE_MAP_ARRAY_EXT",
1345 0x8E28, "GL_TIMESTAMP_EXT",
1348 0x8006, "GL_FUNC_ADD",
1351 0x8007, "GL_MIN_EXT",
1354 0x8004, "GL_ONE_MINUS_CONSTANT_ALPHA",
1357 0x8005, "GL_BLEND_COLOR",
1360 0x8002, "GL_ONE_MINUS_CONSTANT_COLOR",
1363 0x8003, "GL_CONSTANT_ALPHA",
1366 0x8001, "GL_CONSTANT_COLOR",
1369 0x0204, "GL_GREATER",
1372 0x0205, "GL_NOTEQUAL",
1375 0x0206, "GL_GEQUAL",
1378 0x0207, "GL_ALWAYS",
1390 0x0203, "GL_LEQUAL",
1393 0x8BD6, "GL_TEXTURE_FORMAT_QCOM",
1396 0x8228, "GL_RG_INTEGER",
1399 0x2901, "GL_REPEAT",
1402 0x9067, "GL_UNSIGNED_INT_IMAGE_BUFFER_EXT",
1405 0x92A0, "GL_EXCLUSION_KHR",
1408 0x93D8, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR",
1411 0x93D9, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR",
1414 0x8FB2, "GL_GPU_OPTIMIZED_QCOM",
1417 0x190A, "GL_LUMINANCE_ALPHA",
1420 0x8FB0, "GL_BINNING_CONTROL_HINT_QCOM",
1423 0x905C, "GL_INT_IMAGE_BUFFER_EXT",
1429 0x1E01, "GL_REPLACE",
1438 0x93D6, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR",
1441 0x93D7, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR",
1444 0x93D4, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR",
1447 0x93D5, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR",
1450 0x886D, "GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_EXT",
1453 0x04, "GL_LINE_TO_CHROMIUM",
1459 0x84CB, "GL_TEXTURE11",
1462 0x8D55, "GL_RENDERBUFFER_STENCIL_SIZE",
1465 0x8D54, "GL_RENDERBUFFER_DEPTH_SIZE",
1468 0x8D57, "GL_MAX_SAMPLES_ANGLE",
1471 0x8D56, "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE",
1474 0x8D51, "GL_RENDERBUFFER_GREEN_SIZE",
1477 0x8D50, "GL_RENDERBUFFER_RED_SIZE",
1480 0x8D53, "GL_RENDERBUFFER_ALPHA_SIZE",
1483 0x8D52, "GL_RENDERBUFFER_BLUE_SIZE",
1486 0x92A6, "GL_VIVIDLIGHT_NV",
1489 0x8DCC, "GL_INT_SAMPLER_CUBE",
1492 0x8905, "GL_MAX_PROGRAM_TEXEL_OFFSET",
1495 0x00080000, "GL_STENCIL_BUFFER_BIT3_QCOM",
1498 0x92A7, "GL_LINEARLIGHT_NV",
1501 0x00, "GL_CLOSE_PATH_CHROMIUM",
1504 0x8DCF, "GL_INT_SAMPLER_2D_ARRAY",
1507 0x02, "GL_MOVE_TO_CHROMIUM",
1510 0x886A, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED",
1513 0x8C41, "GL_SRGB8_NV",
1516 0x9079, "GL_PATH_JOIN_STYLE_CHROMIUM",
1519 0x0C01, "GL_DRAW_BUFFER_EXT",
1522 0x9075, "GL_PATH_STROKE_WIDTH_CHROMIUM",
1525 0x9076, "GL_PATH_END_CAPS_CHROMIUM",
1528 0x886C, "GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_EXT",
1531 0x90CB, "GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_EXT",
1534 0x8DCA, "GL_INT_SAMPLER_2D",
1537 0x93C7, "GL_COMPRESSED_RGBA_ASTC_6x5x5_OES",
1540 0x8B5F, "GL_SAMPLER_3D_OES",
1543 0x8B95, "GL_PALETTE8_RGB8_OES",
1546 0x9250, "GL_SHADER_BINARY_DMP",
1549 0x9251, "GL_SMAPHS30_PROGRAM_BINARY_DMP",
1552 0x9252, "GL_SMAPHS_PROGRAM_BINARY_DMP",
1555 0x9253, "GL_DMP_PROGRAM_BINARY_DMP",
1558 0x8DC8, "GL_UNSIGNED_INT_VEC4",
1561 0x3000, "GL_CLIP_DISTANCE0_APPLE",
1564 0x8C92, "GL_ATC_RGB_AMD",
1567 0x8DC1, "GL_SAMPLER_2D_ARRAY",
1570 0x9154, "GL_VERTEX_ARRAY_OBJECT_EXT",
1573 0x9153, "GL_QUERY_OBJECT_EXT",
1576 0x8864, "GL_QUERY_COUNTER_BITS_EXT",
1579 0x9151, "GL_BUFFER_OBJECT_EXT",
1582 0x8C93, "GL_ATC_RGBA_EXPLICIT_ALPHA_AMD",
1585 0x00000002, "GL_CONTEXT_FLAG_DEBUG_BIT_KHR",
1588 0x8A3F, "GL_UNIFORM_BLOCK_BINDING",
1591 0x00000000, "GL_PERFQUERY_SINGLE_CONTEXT_INTEL",
1594 0x00000001, "GL_SYNC_FLUSH_COMMANDS_BIT_APPLE",
1597 0x9248, "GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM",
1600 0x00000004, "GL_GEOMETRY_SHADER_BIT_EXT",
1603 0x1702, "GL_TEXTURE",
1606 0x3003, "GL_CLIP_DISTANCE3_APPLE",
1609 0x00000008, "GL_TESS_CONTROL_SHADER_BIT_EXT",
1612 0x8B58, "GL_BOOL_VEC3",
1615 0x8A3D, "GL_UNIFORM_MATRIX_STRIDE",
1618 0x8828, "GL_DRAW_BUFFER3_EXT",
1621 0x8DF0, "GL_LOW_FLOAT",
1630 0x8FBB, "GL_GPU_DISJOINT_EXT",
1633 0x1901, "GL_STENCIL_INDEX_OES",
1636 0x1902, "GL_DEPTH_COMPONENT",
1642 0x93DB, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR",
1645 0x8B9B, "GL_IMPLEMENTATION_COLOR_READ_FORMAT",
1648 0x8B9A, "GL_IMPLEMENTATION_COLOR_READ_TYPE",
1651 0x93DA, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR",
1657 0x8DF2, "GL_HIGH_FLOAT",
1660 0x93DD, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR",
1663 0x8827, "GL_DRAW_BUFFER2_EXT",
1666 0x9243, "GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM",
1669 0x8DF3, "GL_LOW_INT",
1672 0x82E8, "GL_MAX_LABEL_LENGTH_KHR",
1675 0x82E6, "GL_SAMPLER_KHR",
1678 0x0C02, "GL_READ_BUFFER_EXT",
1681 0x82E3, "GL_QUERY_KHR",
1684 0x82E2, "GL_PROGRAM_KHR",
1687 0x82E1, "GL_SHADER_KHR",
1690 0x8B52, "GL_FLOAT_VEC4",
1699 0x8DF6, "GL_UNSIGNED_INT_10_10_10_2_OES",
1702 0x8A30, "GL_MAX_UNIFORM_BLOCK_SIZE",
1705 0x9273, "GL_COMPRESSED_SIGNED_RG11_EAC",
1711 0x8866, "GL_QUERY_RESULT_EXT",
1717 0x8DF7, "GL_INT_10_10_10_2_OES",
1732 0x8B69, "GL_FLOAT_MAT4x2_NV",
1735 0x812D, "GL_CLAMP_TO_BORDER_EXT",
1738 0x812F, "GL_CLAMP_TO_EDGE",
1741 0x92A4, "GL_LINEARDODGE_NV",
1744 0x8DD8, "GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT",
1747 0x8DD9, "GL_GEOMETRY_SHADER_EXT",
1750 0x86A3, "GL_COMPRESSED_TEXTURE_FORMATS",
1753 0x8DD4, "GL_UNSIGNED_INT_SAMPLER_CUBE",
1756 0x9244, "GL_BIND_GENERATES_RESOURCE_CHROMIUM",
1759 0x8DD2, "GL_UNSIGNED_INT_SAMPLER_2D",
1762 0x8DD3, "GL_UNSIGNED_INT_SAMPLER_3D",
1765 0x8DD0, "GL_INT_SAMPLER_BUFFER_EXT",
1768 0x86A2, "GL_NUM_COMPRESSED_TEXTURE_FORMATS",
1771 0x0CF3, "GL_UNPACK_SKIP_ROWS_EXT",
1774 0x0CF2, "GL_UNPACK_ROW_LENGTH_EXT",
1780 0x140B, "GL_HALF_FLOAT",
1783 0x8008, "GL_MAX_EXT",
1786 0x0CF5, "GL_UNPACK_ALIGNMENT",
1789 0x8867, "GL_QUERY_RESULT_AVAILABLE_EXT",
1792 0x8D82, "GL_RGBA32I",
1795 0x8009, "GL_BLEND_EQUATION",
1798 0x911F, "GL_BUFFER_ACCESS_FLAGS",
1801 0x1401, "GL_UNSIGNED_BYTE",
1807 0x1403, "GL_UNSIGNED_SHORT",
1813 0x1405, "GL_UNSIGNED_INT",
1822 0x8C1D, "GL_TEXTURE_BINDING_2D_ARRAY",
1825 0x8DDF, "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT",
1828 0x8043, "GL_LUMINANCE4_ALPHA4_OES",
1831 0x8040, "GL_LUMINANCE8_OES",
1834 0x8045, "GL_LUMINANCE8_ALPHA8_OES",
1837 0x8CD1, "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",
1840 0x00040000, "GL_STENCIL_BUFFER_BIT2_QCOM",
1843 0x8CD0, "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",
1846 0x823A, "GL_RG16UI",
1849 0x8CE4, "GL_COLOR_ATTACHMENT4_EXT",
1855 0x8CD3, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",
1858 0x846E, "GL_ALIASED_LINE_WIDTH_RANGE",
1861 0x0B90, "GL_STENCIL_TEST",
1864 0x8CD2, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",
1867 0x881C, "GL_ALPHA16F_EXT",
1870 0x928E, "GL_SRC_ATOP_NV",
1873 0x8CD4, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES",
1876 0x9113, "GL_SYNC_CONDITION_APPLE",
1879 0x8CD7, "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",
1882 0x08000000, "GL_MULTISAMPLE_BUFFER_BIT3_QCOM",
1885 0x93A4, "GL_PACK_REVERSE_ROW_ORDER_ANGLE",
1888 0x8038, "GL_POLYGON_OFFSET_FACTOR",
1891 0x94F9, "GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL",
1894 0x851A, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z",
1897 0x851C, "GL_MAX_CUBE_MAP_TEXTURE_SIZE",
1900 0x8CD9, "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS",
1903 0x84CC, "GL_TEXTURE12",
1906 0x0BA2, "GL_VIEWPORT",
1909 0x84CA, "GL_TEXTURE10",
1912 0x78F1, "GL_MAP_CHROMIUM",
1915 0x84CF, "GL_TEXTURE15",
1918 0x84CE, "GL_TEXTURE14",
1921 0x84CD, "GL_TEXTURE13",
1924 0x83F9, "GL_PERFQUERY_DONOT_FLUSH_INTEL",
1927 0x9115, "GL_SYNC_FLAGS_APPLE",
1930 0x9286, "GL_SRC_NV",
1933 0x83F3, "GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE",
1936 0x83F2, "GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE",
1939 0x83F1, "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT",
1942 0x9114, "GL_SYNC_STATUS_APPLE",
1945 0x8C0A, "GL_SGX_BINARY_IMG",
1948 0x93BB, "GL_COMPRESSED_RGBA_ASTC_10x10_KHR",
1951 0x911C, "GL_CONDITION_SATISFIED_APPLE",
1954 0x911B, "GL_TIMEOUT_EXPIRED_APPLE",
1957 0x911A, "GL_ALREADY_SIGNALED_APPLE",
1960 0x9284, "GL_CONJOINT_NV",
1963 0x9124, "GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_EXT",
1966 0x911D, "GL_WAIT_FAILED_APPLE",
1969 0x929A, "GL_COLORBURN_KHR",
1972 0x929B, "GL_HARDLIGHT_KHR",
1975 0x929C, "GL_SOFTLIGHT_KHR",
1978 0x846D, "GL_ALIASED_POINT_SIZE_RANGE",
1981 0x929E, "GL_DIFFERENCE_KHR",
1984 0x929F, "GL_MINUS_NV",
1987 0x9282, "GL_UNCORRELATED_NV",
1990 0x9298, "GL_LIGHTEN_KHR",
1993 0x9299, "GL_COLORDODGE_KHR",
1996 0x9111, "GL_MAX_SERVER_WAIT_TIMEOUT_APPLE",
1999 0x93A6, "GL_PROGRAM_BINARY_ANGLE",
2002 0x9117, "GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE",
2005 0x93A0, "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE",
2008 0x93A3, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE",
2011 0x93A2, "GL_TEXTURE_USAGE_ANGLE",
2014 0x8802, "GL_STENCIL_BACK_PASS_DEPTH_FAIL",
2017 0x9119, "GL_SIGNALED_APPLE",
2020 0x9118, "GL_UNSIGNALED_APPLE",
2023 0x9294, "GL_MULTIPLY_KHR",
2026 0x9295, "GL_SCREEN_KHR",
2029 0x9296, "GL_OVERLAY_KHR",
2032 0x9297, "GL_DARKEN_KHR",
2035 0x0020, "GL_MAP_UNSYNCHRONIZED_BIT_EXT",
2038 0x8E78, "GL_TESS_GEN_VERTEX_ORDER_EXT",
2041 0x8C01, "GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG",
2044 0x8C00, "GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG",
2047 0x8A52, "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT",
2050 0x8C02, "GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",
2053 0x84C9, "GL_TEXTURE9",
2056 0x84C8, "GL_TEXTURE8",
2059 0x8869, "GL_MAX_VERTEX_ATTRIBS",
2062 0x84C3, "GL_TEXTURE3",
2065 0x84C2, "GL_TEXTURE2",
2068 0x84C1, "GL_TEXTURE1",
2071 0x84C0, "GL_TEXTURE0",
2074 0x84C7, "GL_TEXTURE7",
2077 0x84C6, "GL_TEXTURE6",
2080 0x84C5, "GL_TEXTURE5",
2083 0x8803, "GL_STENCIL_BACK_PASS_DEPTH_PASS",
2086 0x928A, "GL_SRC_IN_NV",
2089 0x8518, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y",
2092 0x8519, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z",
2095 0x8514, "GL_TEXTURE_BINDING_CUBE_MAP",
2098 0x8515, "GL_TEXTURE_CUBE_MAP_POSITIVE_X",
2101 0x8516, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X",
2104 0x8517, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y",
2107 0x8218, "GL_FRAMEBUFFER_DEFAULT",
2110 0x8513, "GL_TEXTURE_CUBE_MAP",
2113 0x8626, "GL_CURRENT_VERTEX_ATTRIB",
2116 0x92B1, "GL_PLUS_CLAMPED_NV",
2119 0x92B0, "GL_HSL_LUMINOSITY_KHR",
2122 0x92B3, "GL_MINUS_CLAMPED_NV",
2125 0x92B2, "GL_PLUS_CLAMPED_ALPHA_NV",
2128 0x8765, "GL_BUFFER_USAGE",
2131 0x8764, "GL_BUFFER_SIZE",
2134 0x8B99, "GL_PALETTE8_RGB5_A1_OES",
2137 0x0503, "GL_STACK_OVERFLOW_KHR",
2140 0x0502, "GL_INVALID_OPERATION",
2143 0x0501, "GL_INVALID_VALUE",
2146 0x0500, "GL_INVALID_ENUM",
2149 0x0507, "GL_CONTEXT_LOST_KHR",
2152 0x0506, "GL_INVALID_FRAMEBUFFER_OPERATION",
2155 0x0505, "GL_OUT_OF_MEMORY",
2158 0x0504, "GL_STACK_UNDERFLOW_KHR",
2161 0x0CF4, "GL_UNPACK_SKIP_PIXELS_EXT",
2164 0x0B44, "GL_CULL_FACE",
2167 0x8B5E, "GL_SAMPLER_2D",
2170 0x0B46, "GL_FRONT_FACE",
2173 0x8FB3, "GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM",
2176 0x824A, "GL_DEBUG_SOURCE_APPLICATION_KHR",
2179 0x824B, "GL_DEBUG_SOURCE_OTHER_KHR",
2182 0x824C, "GL_DEBUG_TYPE_ERROR_KHR",
2185 0x824D, "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR",
2188 0x824E, "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR",
2191 0x824F, "GL_DEBUG_TYPE_PORTABILITY_KHR",
2194 0x8DD7, "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY",
2197 0x8B31, "GL_VERTEX_SHADER",
2200 0x8B30, "GL_FRAGMENT_SHADER",
2203 0x8FB1, "GL_CPU_OPTIMIZED_QCOM",
2206 0x93D2, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR",
2209 0x82FB, "GL_CONTEXT_RELEASE_BEHAVIOR_KHR",
2212 0x8B5A, "GL_FLOAT_MAT2",
2215 0x84D8, "GL_TEXTURE24",
2218 0x84D9, "GL_TEXTURE25",
2221 0x84D6, "GL_TEXTURE22",
2224 0x84D7, "GL_TEXTURE23",
2227 0x84D4, "GL_TEXTURE20",
2230 0x0D05, "GL_PACK_ALIGNMENT",
2233 0x84D2, "GL_TEXTURE18",
2236 0x84D3, "GL_TEXTURE19",
2239 0x84D0, "GL_TEXTURE16",
2242 0x84D1, "GL_TEXTURE17",
2245 0x93D1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR",
2248 0x84DF, "GL_TEXTURE31",
2251 0x8B97, "GL_PALETTE8_R5_G6_B5_OES",
2254 0x84DD, "GL_TEXTURE29",
2257 0x84DE, "GL_TEXTURE30",
2260 0x84DB, "GL_TEXTURE27",
2263 0x84DC, "GL_TEXTURE28",
2266 0x6002, "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM",
2269 0x84DA, "GL_TEXTURE26",
2272 0x8242, "GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR",
2275 0x8243, "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR",
2278 0x8244, "GL_DEBUG_CALLBACK_FUNCTION_KHR",
2281 0x8245, "GL_DEBUG_CALLBACK_USER_PARAM_KHR",
2284 0x8246, "GL_DEBUG_SOURCE_API_KHR",
2287 0x8247, "GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR",
2290 0x8248, "GL_DEBUG_SOURCE_SHADER_COMPILER_KHR",
2293 0x8249, "GL_DEBUG_SOURCE_THIRD_PARTY_KHR",
2296 0x8B94, "GL_PALETTE4_RGB5_A1_OES",
2299 0x94F4, "GL_PERFQUERY_COUNTER_RAW_INTEL",
2302 0x823C, "GL_RG32UI",
2305 0x8A29, "GL_UNIFORM_BUFFER_START",
2308 0x8A28, "GL_UNIFORM_BUFFER_BINDING",
2311 0x92BE, "GL_PRIMITIVE_BOUNDING_BOX_EXT",
2314 0x8645, "GL_VERTEX_ATTRIB_ARRAY_POINTER",
2317 0x8865, "GL_CURRENT_QUERY_EXT",
2320 0x8E5B, "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_OES",
2323 0x8E5C, "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_OES",
2326 0x8E5D, "GL_FRAGMENT_INTERPOLATION_OFFSET_BITS_OES",
2329 0x906A, "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT",
2332 0x906F, "GL_RGB10_A2UI",
2335 0x8E72, "GL_PATCH_VERTICES_EXT",
2338 0x8BD3, "GL_TEXTURE_HEIGHT_QCOM",
2341 0x87FA, "GL_3DC_XY_AMD",
2344 0x84C4, "GL_TEXTURE4",
2347 0x1A, "GL_CONIC_CURVE_TO_CHROMIUM",
2350 0x821C, "GL_MINOR_VERSION",
2353 0x8E8A, "GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_EXT",
2356 0x85B5, "GL_VERTEX_ARRAY_BINDING_OES",
2359 0x8253, "GL_GUILTY_CONTEXT_RESET_KHR",
2362 0x8D6B, "GL_MAX_ELEMENT_INDEX",
2365 0x8D6C, "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT",
2368 0x92A1, "GL_CONTRAST_NV",
2371 0x8252, "GL_LOSE_CONTEXT_ON_RESET_KHR",
2374 0x8C4C, "GL_COMPRESSED_SRGB_S3TC_DXT1_NV",
2377 0x8C4E, "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV",
2380 0x8251, "GL_DEBUG_TYPE_OTHER_KHR",
2383 0x8C4F, "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV",
2386 0x9309, "GL_REFERENCED_BY_GEOMETRY_SHADER_EXT",
2389 0x93E9, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES",
2392 0x93E8, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES",
2395 0x8C43, "GL_SRGB8_ALPHA8_EXT",
2398 0x8C42, "GL_SRGB_ALPHA_EXT",
2401 0x8C45, "GL_SLUMINANCE8_ALPHA8_NV",
2404 0x8C44, "GL_SLUMINANCE_ALPHA_NV",
2407 0x8C47, "GL_SLUMINANCE8_NV",
2410 0x8C46, "GL_SLUMINANCE_NV",
2413 0x93E1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES",
2416 0x93E0, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES",
2419 0x93E3, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES",
2422 0x93E2, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES",
2425 0x93E5, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES",
2428 0x93E4, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES",
2431 0x93E7, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES",
2434 0x93E6, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES",
2437 0x8D68, "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES",
2440 0x8E82, "GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_EXT",
2443 0x8E81, "GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_EXT",
2446 0x85BB, "GL_UNSIGNED_SHORT_8_8_REV_APPLE",
2449 0x8E87, "GL_TESS_EVALUATION_SHADER_EXT",
2452 0x8E86, "GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_EXT",
2455 0x8E85, "GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_EXT",
2458 0x8E84, "GL_MAX_TESS_PATCH_COMPONENTS_EXT",
2461 0x8D61, "GL_HALF_FLOAT_OES",
2464 0x8D62, "GL_RGB565",
2467 0x8E88, "GL_TESS_CONTROL_SHADER_EXT",
2470 0x8D64, "GL_ETC1_RGB8_OES",
2473 0x8D65, "GL_TEXTURE_EXTERNAL_OES",
2476 0x8D66, "GL_SAMPLER_EXTERNAL_OES",
2479 0x8D67, "GL_TEXTURE_BINDING_EXTERNAL_OES",
2482 0x10000000, "GL_MULTISAMPLE_BUFFER_BIT4_QCOM",
2485 0x04000000, "GL_MULTISAMPLE_BUFFER_BIT2_QCOM",
2488 0x90D7, "GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_EXT",
2491 0x90D9, "GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_EXT",
2494 0x90D8, "GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_EXT",
2497 0x8CEE, "GL_COLOR_ATTACHMENT14_EXT",
2500 0x8DC7, "GL_UNSIGNED_INT_VEC3",
2503 0x90A6, "GL_BEVEL_CHROMIUM",
2506 0x1701, "GL_PATH_PROJECTION_CHROMIUM",
2509 0x2800, "GL_TEXTURE_MAG_FILTER",
2512 0x2801, "GL_TEXTURE_MIN_FILTER",
2515 0x2802, "GL_TEXTURE_WRAP_S",
2518 0x2803, "GL_TEXTURE_WRAP_T",
2521 0x8DCB, "GL_INT_SAMPLER_3D",
2524 0x3007, "GL_CLIP_DISTANCE7_APPLE",
2527 0x2703, "GL_LINEAR_MIPMAP_LINEAR",
2530 0x3005, "GL_CLIP_DISTANCE5_APPLE",
2533 0x3004, "GL_CLIP_DISTANCE4_APPLE",
2536 0x8B98, "GL_PALETTE8_RGBA4_OES",
2539 0x3002, "GL_CLIP_DISTANCE2_APPLE",
2542 0x3001, "GL_CLIP_DISTANCE1_APPLE",
2545 0x2702, "GL_NEAREST_MIPMAP_LINEAR",
2548 0x1F03, "GL_EXTENSIONS",
2551 0x1F02, "GL_VERSION",
2554 0x1F01, "GL_RENDERER",
2557 0x1F00, "GL_VENDOR",
2560 0x9247, "GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM",
2563 0x2701, "GL_LINEAR_MIPMAP_NEAREST",
2566 0x9245, "GL_OVERLAY_TRANSFORM_NONE_CHROMIUM",
2569 0x92B4, "GL_INVERT_OVG_NV",
2572 0x9249, "GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM",
2575 0x0B94, "GL_STENCIL_FAIL",
2578 0x8B4A, "GL_MAX_VERTEX_UNIFORM_COMPONENTS",
2581 0x8B4B, "GL_MAX_VARYING_COMPONENTS",
2584 0x8B4C, "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS",
2587 0x8B4D, "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS",
2590 0x8B4F, "GL_SHADER_TYPE",
2593 0x9122, "GL_MAX_VERTEX_OUTPUT_COMPONENTS",
2596 0x9123, "GL_MAX_GEOMETRY_INPUT_COMPONENTS_EXT",
2599 0x83FB, "GL_PERFQUERY_WAIT_INTEL",
2602 0x9121, "GL_BUFFER_MAP_OFFSET",
2605 0x9089, "GL_COUNT_DOWN_CHROMIUM",
2608 0x9088, "GL_COUNT_UP_CHROMIUM",
2611 0x00004000, "GL_COLOR_BUFFER_BIT",
2614 0x9125, "GL_MAX_FRAGMENT_INPUT_COMPONENTS",
2617 0x00000010, "GL_TESS_EVALUATION_SHADER_BIT_EXT",
2620 0x8834, "GL_DRAW_BUFFER15_EXT",
2623 0x8833, "GL_DRAW_BUFFER14_EXT",
2626 0x8832, "GL_DRAW_BUFFER13_EXT",
2629 0x8831, "GL_DRAW_BUFFER12_EXT",
2632 0x8830, "GL_DRAW_BUFFER11_EXT",
2635 0x8DC5, "GL_SAMPLER_CUBE_SHADOW_NV",
2638 0x94FF, "GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL",
2641 0x94FE, "GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL",
2644 0x94FD, "GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL",
2647 0x94FC, "GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL",
2650 0x94FB, "GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL",
2653 0x93B8, "GL_COMPRESSED_RGBA_ASTC_10x5_KHR",
2656 0x8B65, "GL_FLOAT_MAT2x3_NV",
2659 0x00010000, "GL_STENCIL_BUFFER_BIT0_QCOM",
2662 0x83FA, "GL_PERFQUERY_FLUSH_INTEL",
2665 0x0D03, "GL_PACK_SKIP_ROWS",
2668 0x84F3, "GL_FENCE_STATUS_NV",
2671 0x908D, "GL_BOUNDING_BOX_CHROMIUM",
2674 0x88E6, "GL_STATIC_COPY",
2677 0x0B93, "GL_STENCIL_VALUE_MASK",
2680 0x0B92, "GL_STENCIL_FUNC",
2683 0x0B91, "GL_STENCIL_CLEAR_VALUE",
2686 0x883D, "GL_BLEND_EQUATION_ALPHA",
2689 0x0B97, "GL_STENCIL_REF",
2692 0x0B96, "GL_STENCIL_PASS_DEPTH_PASS",
2695 0x0B95, "GL_STENCIL_PASS_DEPTH_FAIL",
2698 0x2700, "GL_NEAREST_MIPMAP_NEAREST",
2701 0x94F5, "GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL",
2704 0x0B98, "GL_STENCIL_WRITEMASK",
2707 0x94F3, "GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL",
2710 0x94F2, "GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL",
2713 0x94F1, "GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL",
2716 0x94F0, "GL_PERFQUERY_COUNTER_EVENT_INTEL",
2719 0x8B40, "GL_PROGRAM_OBJECT_EXT",
2722 0x1004, "GL_TEXTURE_BORDER_COLOR_EXT",
2725 0x8A2D, "GL_MAX_FRAGMENT_UNIFORM_BLOCKS",
2728 0x8B48, "GL_SHADER_OBJECT_EXT",
2731 0x8B49, "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS",
2734 0x813A, "GL_TEXTURE_MIN_LOD",
2737 0x8DE1, "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT",
2740 0x8DE0, "GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT",
2743 0x924C, "GL_MOUSE_POSITION_CHROMIUM",
2746 0x924B, "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM",
2749 0x924A, "GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM",
2752 0x8A2F, "GL_MAX_UNIFORM_BUFFER_BINDINGS",
2755 0x20000000, "GL_MULTISAMPLE_BUFFER_BIT5_QCOM",
2758 0x8A2A, "GL_UNIFORM_BUFFER_SIZE",
2761 0x0BA7, "GL_PATH_PROJECTION_MATRIX_CHROMIUM",
2764 0x0DE1, "GL_TEXTURE_2D",
2767 0x8A2C, "GL_MAX_GEOMETRY_UNIFORM_BLOCKS_EXT",
2770 0x80C9, "GL_BLEND_SRC_RGB",
2773 0x80C8, "GL_BLEND_DST_RGB",
2776 0x912F, "GL_TEXTURE_IMMUTABLE_FORMAT_EXT",
2779 0x8A2B, "GL_MAX_VERTEX_UNIFORM_BLOCKS",
2782 0x9246, "GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM",
2785 0x88EC, "GL_PIXEL_UNPACK_BUFFER",
2791 0x8059, "GL_RGB10_A2_EXT",
2794 0x8058, "GL_RGBA8_OES",
2797 0x8B93, "GL_PALETTE4_RGBA4_OES",
2800 0x88EB, "GL_PIXEL_PACK_BUFFER",
2803 0x8E83, "GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_EXT",
2806 0x8051, "GL_RGB8_OES",
2809 0x8CAD, "GL_DEPTH32F_STENCIL8",
2812 0x8052, "GL_RGB10_EXT",
2815 0x8CAB, "GL_RENDERBUFFER_SAMPLES_ANGLE",
2818 0x8CAC, "GL_DEPTH_COMPONENT32F",
2821 0x8057, "GL_RGB5_A1",
2830 0x90A4, "GL_ROUND_CHROMIUM",
2833 0x150A, "GL_INVERT",
2836 0x01000000, "GL_MULTISAMPLE_BUFFER_BIT0_QCOM",
2839 0x78ED, "GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM",
2842 0x78EE, "GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM",
2845 0x6001, "GL_TEXTURE_POOL_MANAGED_CHROMIUM",
2848 0x0B45, "GL_CULL_FACE_MODE",
2851 0x8B92, "GL_PALETTE4_R5_G6_B5_OES",
2854 0x00100000, "GL_STENCIL_BUFFER_BIT4_QCOM",
2857 0x8E4E, "GL_LAST_VERTEX_CONVENTION_EXT",
2860 0x8E4D, "GL_FIRST_VERTEX_CONVENTION_EXT",
2863 0x8E24, "GL_TRANSFORM_FEEDBACK_ACTIVE",
2866 0x8E45, "GL_TEXTURE_SWIZZLE_A",
2869 0x8E44, "GL_TEXTURE_SWIZZLE_B",
2872 0x8E43, "GL_TEXTURE_SWIZZLE_G",
2875 0x8E42, "GL_TEXTURE_SWIZZLE_R",
2878 0x8D20, "GL_STENCIL_ATTACHMENT",
2881 0x8B91, "GL_PALETTE4_RGBA8_OES",
2884 0x00000200, "GL_DEPTH_BUFFER_BIT1_QCOM",
2887 0x78EC, "GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM",
2890 0x78FA, "GL_RGB_YUV_420_CHROMIUM",
2893 0x00008000, "GL_COVERAGE_BUFFER_BIT_NV",
2896 0x1506, "GL_XOR_NV",
2899 0x8CA8, "GL_READ_FRAMEBUFFER_ANGLE",
2902 0x8CA9, "GL_DRAW_FRAMEBUFFER_ANGLE",
2905 0x8CA6, "GL_FRAMEBUFFER_BINDING",
2908 0x8CA7, "GL_RENDERBUFFER_BINDING",
2911 0x8CA4, "GL_STENCIL_BACK_VALUE_MASK",
2914 0x8CA5, "GL_STENCIL_BACK_WRITEMASK",
2917 0x8B90, "GL_PALETTE4_RGB8_OES",
2920 0x8CA3, "GL_STENCIL_BACK_REF",
2923 0x80E8, "GL_MAX_ELEMENTS_VERTICES",
2926 0x80CB, "GL_BLEND_SRC_ALPHA",
2929 0x80CA, "GL_BLEND_DST_ALPHA",
2932 0x8CE7, "GL_COLOR_ATTACHMENT7_EXT",
2935 0x93B0, "GL_COMPRESSED_RGBA_ASTC_4x4_KHR",
2938 0x93B1, "GL_COMPRESSED_RGBA_ASTC_5x4_KHR",
2941 0x93B2, "GL_COMPRESSED_RGBA_ASTC_5x5_KHR",
2944 0x93B3, "GL_COMPRESSED_RGBA_ASTC_6x5_KHR",
2947 0x93B4, "GL_COMPRESSED_RGBA_ASTC_6x6_KHR",
2950 0x93B5, "GL_COMPRESSED_RGBA_ASTC_8x5_KHR",
2953 0x93B6, "GL_COMPRESSED_RGBA_ASTC_8x6_KHR",
2956 0x93B7, "GL_COMPRESSED_RGBA_ASTC_8x8_KHR",
2959 0x8CD6, "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT",
2962 0x93B9, "GL_COMPRESSED_RGBA_ASTC_10x6_KHR",
2965 0x80E9, "GL_MAX_ELEMENTS_INDICES",
2968 0x8CE5, "GL_COLOR_ATTACHMENT5_EXT",
2971 0x8C84, "GL_TRANSFORM_FEEDBACK_BUFFER_START",
2974 0x0BA6, "GL_PATH_MODELVIEW_MATRIX_CHROMIUM",
2977 0x8DC2, "GL_SAMPLER_BUFFER_EXT",
2980 0x8C36, "GL_SAMPLE_SHADING_OES",
2983 0x8C37, "GL_MIN_SAMPLE_SHADING_VALUE_OES",
2986 0x8F97, "GL_RGBA8_SNORM",
2989 0x8CE9, "GL_COLOR_ATTACHMENT9_EXT",
2992 0x8DAD, "GL_FLOAT_32_UNSIGNED_INT_24_8_REV",
2995 0x8B96, "GL_PALETTE8_RGBA8_OES",
2998 0x8872, "GL_MAX_TEXTURE_IMAGE_UNITS",
3001 0x8DC6, "GL_UNSIGNED_INT_VEC2",
3004 0x8508, "GL_DECR_WRAP",
3007 0x92AD, "GL_HSL_HUE_KHR",
3010 0x92AE, "GL_HSL_SATURATION_KHR",
3013 0x92AF, "GL_HSL_COLOR_KHR",
3016 0x8BD4, "GL_TEXTURE_DEPTH_QCOM",
3019 0x8DC4, "GL_SAMPLER_2D_ARRAY_SHADOW_NV",
3022 0x8507, "GL_INCR_WRAP",
3025 0x82FC, "GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR",
3028 0x8895, "GL_ELEMENT_ARRAY_BUFFER_BINDING",
3031 0x8894, "GL_ARRAY_BUFFER_BINDING",
3034 0x92A3, "GL_INVERT_RGB_NV",
3037 0x905F, "GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT",
3040 0x92A5, "GL_LINEARBURN_NV",
3043 0x8893, "GL_ELEMENT_ARRAY_BUFFER",
3046 0x8892, "GL_ARRAY_BUFFER",
3049 0x92A8, "GL_PINLIGHT_NV",
3052 0x92A9, "GL_HARDMIX_NV",
3055 0x9112, "GL_OBJECT_TYPE_APPLE",
3058 0x90CC, "GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_EXT",
3061 0x90CD, "GL_MAX_GEOMETRY_IMAGE_UNIFORMS_EXT",
3064 0x919F, "GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT",
3067 0x919E, "GL_TEXTURE_BUFFER_SIZE_EXT",
3070 0x919D, "GL_TEXTURE_BUFFER_OFFSET_EXT",
3073 0x8BD8, "GL_TEXTURE_IMAGE_VALID_QCOM",
3076 0x9278, "GL_COMPRESSED_RGBA8_ETC2_EAC",
3079 0x9279, "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",
3082 0x8DA7, "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT",
3085 0x9272, "GL_COMPRESSED_RG11_EAC",
3088 0x8DA8, "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT",
3091 0x9270, "GL_COMPRESSED_R11_EAC",
3094 0x9271, "GL_COMPRESSED_SIGNED_R11_EAC",
3097 0x9276, "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",
3100 0x887F, "GL_GEOMETRY_SHADER_INVOCATIONS_EXT",
3103 0x8A3B, "GL_UNIFORM_OFFSET",
3106 0x9275, "GL_COMPRESSED_SRGB8_ETC2",
3109 0x84D5, "GL_TEXTURE21",
3112 0x8C3A, "GL_R11F_G11F_B10F_APPLE",
3115 0x8C3B, "GL_UNSIGNED_INT_10F_11F_11F_REV_APPLE",
3118 0x8C3D, "GL_RGB9_E5_APPLE",
3121 0x8C3E, "GL_UNSIGNED_INT_5_9_9_9_REV_APPLE",
3124 0x9287, "GL_DST_NV",
3127 0x93BA, "GL_COMPRESSED_RGBA_ASTC_10x8_KHR",
3130 0x9285, "GL_BLEND_ADVANCED_COHERENT_KHR",
3133 0x93BC, "GL_COMPRESSED_RGBA_ASTC_12x10_KHR",
3136 0x93BD, "GL_COMPRESSED_RGBA_ASTC_12x12_KHR",
3139 0x84E8, "GL_MAX_RENDERBUFFER_SIZE",
3142 0x9281, "GL_BLEND_OVERLAP_NV",
3145 0x9280, "GL_BLEND_PREMULTIPLIED_SRC_NV",
3148 0x00002000, "GL_DEPTH_BUFFER_BIT5_QCOM",
3151 0x8370, "GL_MIRRORED_REPEAT",
3154 0x84E0, "GL_ACTIVE_TEXTURE",
3157 0x8800, "GL_STENCIL_BACK_FUNC",
3160 0x8801, "GL_STENCIL_BACK_FAIL",
3163 0x0D33, "GL_MAX_TEXTURE_SIZE",
3166 0x0D32, "GL_MAX_CLIP_DISTANCES_APPLE",
3169 0x8624, "GL_VERTEX_ATTRIB_ARRAY_STRIDE",
3172 0x8625, "GL_VERTEX_ATTRIB_ARRAY_TYPE",
3175 0x8622, "GL_VERTEX_ATTRIB_ARRAY_ENABLED",
3178 0x8623, "GL_VERTEX_ATTRIB_ARRAY_SIZE",
3181 0x9086, "GL_PATH_STROKE_BOUND_CHROMIUM",
3184 0x8DB9, "GL_FRAMEBUFFER_SRGB_EXT",
3187 0x907a, "GL_PATH_MITER_LIMIT_CHROMIUM",
3190 0x9307, "GL_REFERENCED_BY_TESS_CONTROL_SHADER_EXT",
3193 0x8259, "GL_ACTIVE_PROGRAM_EXT",
3196 0x8258, "GL_PROGRAM_SEPARABLE_EXT",
3199 0x8257, "GL_PROGRAM_BINARY_RETRIEVABLE_HINT",
3202 0x8256, "GL_RESET_NOTIFICATION_STRATEGY_KHR",
3205 0x8255, "GL_UNKNOWN_CONTEXT_RESET_KHR",
3208 0x8254, "GL_INNOCENT_CONTEXT_RESET_KHR",
3211 0x1100, "GL_DONT_CARE",
3214 0x1101, "GL_FASTEST",
3217 0x1102, "GL_NICEST",
3220 0x8250, "GL_DEBUG_TYPE_PERFORMANCE_KHR",
3223 0x8CEB, "GL_COLOR_ATTACHMENT11_EXT",
3226 0x8CEC, "GL_COLOR_ATTACHMENT12_EXT",
3229 0x0408, "GL_FRONT_AND_BACK",
3232 0x8CEA, "GL_COLOR_ATTACHMENT10_EXT",
3235 0x8CEF, "GL_COLOR_ATTACHMENT15_EXT",
3238 0x8CED, "GL_COLOR_ATTACHMENT13_EXT",
3241 0x8829, "GL_DRAW_BUFFER4_EXT",
3250 0x88E1, "GL_STREAM_READ",
3253 0x88E0, "GL_STREAM_DRAW",
3256 0x88E2, "GL_STREAM_COPY",
3259 0x88E5, "GL_STATIC_READ",
3262 0x88E4, "GL_STATIC_DRAW",
3265 0x93C6, "GL_COMPRESSED_RGBA_ASTC_5x5x5_OES",
3268 0x88E9, "GL_DYNAMIC_READ",
3271 0x88E8, "GL_DYNAMIC_DRAW",
3274 0x9291, "GL_PLUS_NV",
3277 0x8CAA, "GL_READ_FRAMEBUFFER_BINDING_ANGLE",
3280 0x93C5, "GL_COMPRESSED_RGBA_ASTC_5x5x4_OES",
3283 0x40000000, "GL_MULTISAMPLE_BUFFER_BIT6_QCOM",
3286 0x88EA, "GL_DYNAMIC_COPY",
3289 0x9116, "GL_SYNC_FENCE_APPLE",
3292 0x93C4, "GL_COMPRESSED_RGBA_ASTC_5x4x4_OES",
3295 0x88EE, "GL_ETC1_SRGB8_NV",
3298 0x88ED, "GL_PIXEL_PACK_BUFFER_BINDING",
3301 0x88EF, "GL_PIXEL_UNPACK_BUFFER_BINDING",
3304 0x93C3, "GL_COMPRESSED_RGBA_ASTC_4x4x4_OES",
3307 0x00000800, "GL_DEPTH_BUFFER_BIT3_QCOM",
3310 0x1903, "GL_RED_EXT",
3313 0x93C2, "GL_COMPRESSED_RGBA_ASTC_4x4x3_OES",
3316 0x8CE2, "GL_COLOR_ATTACHMENT2_EXT",
3319 0x8BC1, "GL_COUNTER_RANGE_AMD",
3322 0x8CE0, "GL_COLOR_ATTACHMENT0",
3325 0x8CE1, "GL_COLOR_ATTACHMENT1_EXT",
3328 0x8CE6, "GL_COLOR_ATTACHMENT6_EXT",
3331 0x93C1, "GL_COMPRESSED_RGBA_ASTC_4x3x3_OES",
3334 0x8A1F, "GL_RGB_422_APPLE",
3337 0x93DC, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR",
3340 0x9292, "GL_PLUS_DARKER_NV",
3343 0x8CE8, "GL_COLOR_ATTACHMENT8_EXT",
3346 0x93C0, "GL_COMPRESSED_RGBA_ASTC_3x3x3_OES",
3349 0x0C23, "GL_COLOR_WRITEMASK",
3352 0x0C22, "GL_COLOR_CLEAR_VALUE",
3355 0x8A11, "GL_UNIFORM_BUFFER",
3358 0x8823, "GL_WRITEONLY_RENDERING_QCOM",
3361 0x8824, "GL_MAX_DRAW_BUFFERS_EXT",
3364 0x825E, "GL_LAYER_PROVOKING_VERTEX_EXT",
3367 0x825A, "GL_PROGRAM_PIPELINE_BINDING_EXT",
3370 0x1909, "GL_LUMINANCE",
3373 0x0D3A, "GL_MAX_VIEWPORT_DIMS",
3376 0x8B53, "GL_INT_VEC2",
3379 0x8826, "GL_DRAW_BUFFER1_EXT",
3382 0x809E, "GL_SAMPLE_ALPHA_TO_COVERAGE",
3385 0x8BC0, "GL_COUNTER_TYPE_AMD",
3388 0x8BC3, "GL_PERCENTAGE_AMD",
3391 0x8BC2, "GL_UNSIGNED_INT64_AMD",
3394 0x8BC5, "GL_PERFMON_RESULT_SIZE_AMD",
3397 0x8BC4, "GL_PERFMON_RESULT_AVAILABLE_AMD",
3400 0x8BC6, "GL_PERFMON_RESULT_AMD",
3404 const GLES2Util::EnumToString
* const GLES2Util::enum_to_string_table_
=
3405 enum_to_string_table
;
3406 const size_t GLES2Util::enum_to_string_table_len_
=
3407 sizeof(enum_to_string_table
) / sizeof(enum_to_string_table
[0]);
3409 std::string
GLES2Util::GetStringAttachment(uint32_t value
) {
3410 static const EnumToString string_table
[] = {
3411 {GL_COLOR_ATTACHMENT0
, "GL_COLOR_ATTACHMENT0"},
3412 {GL_DEPTH_ATTACHMENT
, "GL_DEPTH_ATTACHMENT"},
3413 {GL_STENCIL_ATTACHMENT
, "GL_STENCIL_ATTACHMENT"},
3414 {GL_DEPTH_STENCIL_ATTACHMENT
, "GL_DEPTH_STENCIL_ATTACHMENT"},
3416 return GLES2Util::GetQualifiedEnumString(string_table
,
3417 arraysize(string_table
), value
);
3420 std::string
GLES2Util::GetStringBackbufferAttachment(uint32_t value
) {
3421 static const EnumToString string_table
[] = {
3422 {GL_COLOR_EXT
, "GL_COLOR_EXT"},
3423 {GL_DEPTH_EXT
, "GL_DEPTH_EXT"},
3424 {GL_STENCIL_EXT
, "GL_STENCIL_EXT"},
3426 return GLES2Util::GetQualifiedEnumString(string_table
,
3427 arraysize(string_table
), value
);
3430 std::string
GLES2Util::GetStringBlitFilter(uint32_t value
) {
3431 static const EnumToString string_table
[] = {
3432 {GL_NEAREST
, "GL_NEAREST"}, {GL_LINEAR
, "GL_LINEAR"},
3434 return GLES2Util::GetQualifiedEnumString(string_table
,
3435 arraysize(string_table
), value
);
3438 std::string
GLES2Util::GetStringBufferMode(uint32_t value
) {
3439 static const EnumToString string_table
[] = {
3440 {GL_INTERLEAVED_ATTRIBS
, "GL_INTERLEAVED_ATTRIBS"},
3441 {GL_SEPARATE_ATTRIBS
, "GL_SEPARATE_ATTRIBS"},
3443 return GLES2Util::GetQualifiedEnumString(string_table
,
3444 arraysize(string_table
), value
);
3447 std::string
GLES2Util::GetStringBufferParameter(uint32_t value
) {
3448 static const EnumToString string_table
[] = {
3449 {GL_BUFFER_SIZE
, "GL_BUFFER_SIZE"},
3450 {GL_BUFFER_USAGE
, "GL_BUFFER_USAGE"},
3451 {GL_BUFFER_ACCESS_FLAGS
, "GL_BUFFER_ACCESS_FLAGS"},
3452 {GL_BUFFER_MAPPED
, "GL_BUFFER_MAPPED"},
3454 return GLES2Util::GetQualifiedEnumString(string_table
,
3455 arraysize(string_table
), value
);
3458 std::string
GLES2Util::GetStringBufferParameter64(uint32_t value
) {
3459 static const EnumToString string_table
[] = {
3460 {GL_BUFFER_SIZE
, "GL_BUFFER_SIZE"},
3461 {GL_BUFFER_MAP_LENGTH
, "GL_BUFFER_MAP_LENGTH"},
3462 {GL_BUFFER_MAP_OFFSET
, "GL_BUFFER_MAP_OFFSET"},
3464 return GLES2Util::GetQualifiedEnumString(string_table
,
3465 arraysize(string_table
), value
);
3468 std::string
GLES2Util::GetStringBufferTarget(uint32_t value
) {
3469 static const EnumToString string_table
[] = {
3470 {GL_ARRAY_BUFFER
, "GL_ARRAY_BUFFER"},
3471 {GL_ELEMENT_ARRAY_BUFFER
, "GL_ELEMENT_ARRAY_BUFFER"},
3472 {GL_COPY_READ_BUFFER
, "GL_COPY_READ_BUFFER"},
3473 {GL_COPY_WRITE_BUFFER
, "GL_COPY_WRITE_BUFFER"},
3474 {GL_PIXEL_PACK_BUFFER
, "GL_PIXEL_PACK_BUFFER"},
3475 {GL_PIXEL_UNPACK_BUFFER
, "GL_PIXEL_UNPACK_BUFFER"},
3476 {GL_TRANSFORM_FEEDBACK_BUFFER
, "GL_TRANSFORM_FEEDBACK_BUFFER"},
3477 {GL_UNIFORM_BUFFER
, "GL_UNIFORM_BUFFER"},
3479 return GLES2Util::GetQualifiedEnumString(string_table
,
3480 arraysize(string_table
), value
);
3483 std::string
GLES2Util::GetStringBufferUsage(uint32_t value
) {
3484 static const EnumToString string_table
[] = {
3485 {GL_STREAM_DRAW
, "GL_STREAM_DRAW"},
3486 {GL_STATIC_DRAW
, "GL_STATIC_DRAW"},
3487 {GL_DYNAMIC_DRAW
, "GL_DYNAMIC_DRAW"},
3488 {GL_STREAM_READ
, "GL_STREAM_READ"},
3489 {GL_STREAM_COPY
, "GL_STREAM_COPY"},
3490 {GL_STATIC_READ
, "GL_STATIC_READ"},
3491 {GL_STATIC_COPY
, "GL_STATIC_COPY"},
3492 {GL_DYNAMIC_READ
, "GL_DYNAMIC_READ"},
3493 {GL_DYNAMIC_COPY
, "GL_DYNAMIC_COPY"},
3495 return GLES2Util::GetQualifiedEnumString(string_table
,
3496 arraysize(string_table
), value
);
3499 std::string
GLES2Util::GetStringBufferfi(uint32_t value
) {
3500 static const EnumToString string_table
[] = {
3501 {GL_DEPTH_STENCIL
, "GL_DEPTH_STENCIL"},
3503 return GLES2Util::GetQualifiedEnumString(string_table
,
3504 arraysize(string_table
), value
);
3507 std::string
GLES2Util::GetStringBufferfv(uint32_t value
) {
3508 static const EnumToString string_table
[] = {
3509 {GL_COLOR
, "GL_COLOR"}, {GL_DEPTH
, "GL_DEPTH"},
3511 return GLES2Util::GetQualifiedEnumString(string_table
,
3512 arraysize(string_table
), value
);
3515 std::string
GLES2Util::GetStringBufferiv(uint32_t value
) {
3516 static const EnumToString string_table
[] = {
3517 {GL_COLOR
, "GL_COLOR"}, {GL_STENCIL
, "GL_STENCIL"},
3519 return GLES2Util::GetQualifiedEnumString(string_table
,
3520 arraysize(string_table
), value
);
3523 std::string
GLES2Util::GetStringBufferuiv(uint32_t value
) {
3524 static const EnumToString string_table
[] = {
3525 {GL_COLOR
, "GL_COLOR"},
3527 return GLES2Util::GetQualifiedEnumString(string_table
,
3528 arraysize(string_table
), value
);
3531 std::string
GLES2Util::GetStringCapability(uint32_t value
) {
3532 static const EnumToString string_table
[] = {
3533 {GL_BLEND
, "GL_BLEND"},
3534 {GL_CULL_FACE
, "GL_CULL_FACE"},
3535 {GL_DEPTH_TEST
, "GL_DEPTH_TEST"},
3536 {GL_DITHER
, "GL_DITHER"},
3537 {GL_POLYGON_OFFSET_FILL
, "GL_POLYGON_OFFSET_FILL"},
3538 {GL_SAMPLE_ALPHA_TO_COVERAGE
, "GL_SAMPLE_ALPHA_TO_COVERAGE"},
3539 {GL_SAMPLE_COVERAGE
, "GL_SAMPLE_COVERAGE"},
3540 {GL_SCISSOR_TEST
, "GL_SCISSOR_TEST"},
3541 {GL_STENCIL_TEST
, "GL_STENCIL_TEST"},
3542 {GL_RASTERIZER_DISCARD
, "GL_RASTERIZER_DISCARD"},
3543 {GL_PRIMITIVE_RESTART_FIXED_INDEX
, "GL_PRIMITIVE_RESTART_FIXED_INDEX"},
3545 return GLES2Util::GetQualifiedEnumString(string_table
,
3546 arraysize(string_table
), value
);
3549 std::string
GLES2Util::GetStringCmpFunction(uint32_t value
) {
3550 static const EnumToString string_table
[] = {
3551 {GL_NEVER
, "GL_NEVER"}, {GL_LESS
, "GL_LESS"},
3552 {GL_EQUAL
, "GL_EQUAL"}, {GL_LEQUAL
, "GL_LEQUAL"},
3553 {GL_GREATER
, "GL_GREATER"}, {GL_NOTEQUAL
, "GL_NOTEQUAL"},
3554 {GL_GEQUAL
, "GL_GEQUAL"}, {GL_ALWAYS
, "GL_ALWAYS"},
3556 return GLES2Util::GetQualifiedEnumString(string_table
,
3557 arraysize(string_table
), value
);
3560 std::string
GLES2Util::GetStringCompressedTextureFormat(uint32_t value
) {
3561 static const EnumToString string_table
[] = {
3562 {GL_COMPRESSED_R11_EAC
, "GL_COMPRESSED_R11_EAC"},
3563 {GL_COMPRESSED_SIGNED_R11_EAC
, "GL_COMPRESSED_SIGNED_R11_EAC"},
3564 {GL_COMPRESSED_RG11_EAC
, "GL_COMPRESSED_RG11_EAC"},
3565 {GL_COMPRESSED_SIGNED_RG11_EAC
, "GL_COMPRESSED_SIGNED_RG11_EAC"},
3566 {GL_COMPRESSED_RGB8_ETC2
, "GL_COMPRESSED_RGB8_ETC2"},
3567 {GL_COMPRESSED_SRGB8_ETC2
, "GL_COMPRESSED_SRGB8_ETC2"},
3568 {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
,
3569 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
3570 {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
,
3571 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
3572 {GL_COMPRESSED_RGBA8_ETC2_EAC
, "GL_COMPRESSED_RGBA8_ETC2_EAC"},
3573 {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
,
3574 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"},
3576 return GLES2Util::GetQualifiedEnumString(string_table
,
3577 arraysize(string_table
), value
);
3580 std::string
GLES2Util::GetStringDrawMode(uint32_t value
) {
3581 static const EnumToString string_table
[] = {
3582 {GL_POINTS
, "GL_POINTS"},
3583 {GL_LINE_STRIP
, "GL_LINE_STRIP"},
3584 {GL_LINE_LOOP
, "GL_LINE_LOOP"},
3585 {GL_LINES
, "GL_LINES"},
3586 {GL_TRIANGLE_STRIP
, "GL_TRIANGLE_STRIP"},
3587 {GL_TRIANGLE_FAN
, "GL_TRIANGLE_FAN"},
3588 {GL_TRIANGLES
, "GL_TRIANGLES"},
3590 return GLES2Util::GetQualifiedEnumString(string_table
,
3591 arraysize(string_table
), value
);
3594 std::string
GLES2Util::GetStringDstBlendFactor(uint32_t value
) {
3595 static const EnumToString string_table
[] = {
3596 {GL_ZERO
, "GL_ZERO"},
3598 {GL_SRC_COLOR
, "GL_SRC_COLOR"},
3599 {GL_ONE_MINUS_SRC_COLOR
, "GL_ONE_MINUS_SRC_COLOR"},
3600 {GL_DST_COLOR
, "GL_DST_COLOR"},
3601 {GL_ONE_MINUS_DST_COLOR
, "GL_ONE_MINUS_DST_COLOR"},
3602 {GL_SRC_ALPHA
, "GL_SRC_ALPHA"},
3603 {GL_ONE_MINUS_SRC_ALPHA
, "GL_ONE_MINUS_SRC_ALPHA"},
3604 {GL_DST_ALPHA
, "GL_DST_ALPHA"},
3605 {GL_ONE_MINUS_DST_ALPHA
, "GL_ONE_MINUS_DST_ALPHA"},
3606 {GL_CONSTANT_COLOR
, "GL_CONSTANT_COLOR"},
3607 {GL_ONE_MINUS_CONSTANT_COLOR
, "GL_ONE_MINUS_CONSTANT_COLOR"},
3608 {GL_CONSTANT_ALPHA
, "GL_CONSTANT_ALPHA"},
3609 {GL_ONE_MINUS_CONSTANT_ALPHA
, "GL_ONE_MINUS_CONSTANT_ALPHA"},
3611 return GLES2Util::GetQualifiedEnumString(string_table
,
3612 arraysize(string_table
), value
);
3615 std::string
GLES2Util::GetStringEquation(uint32_t value
) {
3616 static const EnumToString string_table
[] = {
3617 {GL_FUNC_ADD
, "GL_FUNC_ADD"},
3618 {GL_FUNC_SUBTRACT
, "GL_FUNC_SUBTRACT"},
3619 {GL_FUNC_REVERSE_SUBTRACT
, "GL_FUNC_REVERSE_SUBTRACT"},
3623 return GLES2Util::GetQualifiedEnumString(string_table
,
3624 arraysize(string_table
), value
);
3627 std::string
GLES2Util::GetStringFaceMode(uint32_t value
) {
3628 static const EnumToString string_table
[] = {
3629 {GL_CW
, "GL_CW"}, {GL_CCW
, "GL_CCW"},
3631 return GLES2Util::GetQualifiedEnumString(string_table
,
3632 arraysize(string_table
), value
);
3635 std::string
GLES2Util::GetStringFaceType(uint32_t value
) {
3636 static const EnumToString string_table
[] = {
3637 {GL_FRONT
, "GL_FRONT"},
3638 {GL_BACK
, "GL_BACK"},
3639 {GL_FRONT_AND_BACK
, "GL_FRONT_AND_BACK"},
3641 return GLES2Util::GetQualifiedEnumString(string_table
,
3642 arraysize(string_table
), value
);
3645 std::string
GLES2Util::GetStringFrameBufferParameter(uint32_t value
) {
3646 static const EnumToString string_table
[] = {
3647 {GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
,
3648 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE"},
3649 {GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
,
3650 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME"},
3651 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
,
3652 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL"},
3653 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
,
3654 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE"},
3655 {GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE
,
3656 "GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE"},
3657 {GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE
,
3658 "GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE"},
3659 {GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE
,
3660 "GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE"},
3661 {GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE
,
3662 "GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE"},
3663 {GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE
,
3664 "GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE"},
3665 {GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE
,
3666 "GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE"},
3667 {GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE
,
3668 "GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE"},
3669 {GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING
,
3670 "GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING"},
3671 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER
,
3672 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER"},
3674 return GLES2Util::GetQualifiedEnumString(string_table
,
3675 arraysize(string_table
), value
);
3678 std::string
GLES2Util::GetStringFrameBufferTarget(uint32_t value
) {
3679 static const EnumToString string_table
[] = {
3680 {GL_FRAMEBUFFER
, "GL_FRAMEBUFFER"},
3681 {GL_DRAW_FRAMEBUFFER
, "GL_DRAW_FRAMEBUFFER"},
3682 {GL_READ_FRAMEBUFFER
, "GL_READ_FRAMEBUFFER"},
3684 return GLES2Util::GetQualifiedEnumString(string_table
,
3685 arraysize(string_table
), value
);
3688 std::string
GLES2Util::GetStringGLState(uint32_t value
) {
3689 static const EnumToString string_table
[] = {
3690 {GL_ACTIVE_TEXTURE
, "GL_ACTIVE_TEXTURE"},
3691 {GL_ALIASED_LINE_WIDTH_RANGE
, "GL_ALIASED_LINE_WIDTH_RANGE"},
3692 {GL_ALIASED_POINT_SIZE_RANGE
, "GL_ALIASED_POINT_SIZE_RANGE"},
3693 {GL_ALPHA_BITS
, "GL_ALPHA_BITS"},
3694 {GL_ARRAY_BUFFER_BINDING
, "GL_ARRAY_BUFFER_BINDING"},
3695 {GL_BLUE_BITS
, "GL_BLUE_BITS"},
3696 {GL_COMPRESSED_TEXTURE_FORMATS
, "GL_COMPRESSED_TEXTURE_FORMATS"},
3697 {GL_CURRENT_PROGRAM
, "GL_CURRENT_PROGRAM"},
3698 {GL_DEPTH_BITS
, "GL_DEPTH_BITS"},
3699 {GL_DEPTH_RANGE
, "GL_DEPTH_RANGE"},
3700 {GL_ELEMENT_ARRAY_BUFFER_BINDING
, "GL_ELEMENT_ARRAY_BUFFER_BINDING"},
3701 {GL_FRAMEBUFFER_BINDING
, "GL_FRAMEBUFFER_BINDING"},
3702 {GL_GENERATE_MIPMAP_HINT
, "GL_GENERATE_MIPMAP_HINT"},
3703 {GL_GREEN_BITS
, "GL_GREEN_BITS"},
3704 {GL_IMPLEMENTATION_COLOR_READ_FORMAT
,
3705 "GL_IMPLEMENTATION_COLOR_READ_FORMAT"},
3706 {GL_IMPLEMENTATION_COLOR_READ_TYPE
, "GL_IMPLEMENTATION_COLOR_READ_TYPE"},
3707 {GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
,
3708 "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS"},
3709 {GL_MAX_CUBE_MAP_TEXTURE_SIZE
, "GL_MAX_CUBE_MAP_TEXTURE_SIZE"},
3710 {GL_MAX_FRAGMENT_UNIFORM_VECTORS
, "GL_MAX_FRAGMENT_UNIFORM_VECTORS"},
3711 {GL_MAX_RENDERBUFFER_SIZE
, "GL_MAX_RENDERBUFFER_SIZE"},
3712 {GL_MAX_TEXTURE_IMAGE_UNITS
, "GL_MAX_TEXTURE_IMAGE_UNITS"},
3713 {GL_MAX_TEXTURE_SIZE
, "GL_MAX_TEXTURE_SIZE"},
3714 {GL_MAX_VARYING_VECTORS
, "GL_MAX_VARYING_VECTORS"},
3715 {GL_MAX_VERTEX_ATTRIBS
, "GL_MAX_VERTEX_ATTRIBS"},
3716 {GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
, "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS"},
3717 {GL_MAX_VERTEX_UNIFORM_VECTORS
, "GL_MAX_VERTEX_UNIFORM_VECTORS"},
3718 {GL_MAX_VIEWPORT_DIMS
, "GL_MAX_VIEWPORT_DIMS"},
3719 {GL_NUM_COMPRESSED_TEXTURE_FORMATS
, "GL_NUM_COMPRESSED_TEXTURE_FORMATS"},
3720 {GL_NUM_SHADER_BINARY_FORMATS
, "GL_NUM_SHADER_BINARY_FORMATS"},
3721 {GL_PACK_ALIGNMENT
, "GL_PACK_ALIGNMENT"},
3722 {GL_RED_BITS
, "GL_RED_BITS"},
3723 {GL_RENDERBUFFER_BINDING
, "GL_RENDERBUFFER_BINDING"},
3724 {GL_SAMPLE_BUFFERS
, "GL_SAMPLE_BUFFERS"},
3725 {GL_SAMPLE_COVERAGE_INVERT
, "GL_SAMPLE_COVERAGE_INVERT"},
3726 {GL_SAMPLE_COVERAGE_VALUE
, "GL_SAMPLE_COVERAGE_VALUE"},
3727 {GL_SAMPLES
, "GL_SAMPLES"},
3728 {GL_SCISSOR_BOX
, "GL_SCISSOR_BOX"},
3729 {GL_SHADER_BINARY_FORMATS
, "GL_SHADER_BINARY_FORMATS"},
3730 {GL_SHADER_COMPILER
, "GL_SHADER_COMPILER"},
3731 {GL_SUBPIXEL_BITS
, "GL_SUBPIXEL_BITS"},
3732 {GL_STENCIL_BITS
, "GL_STENCIL_BITS"},
3733 {GL_TEXTURE_BINDING_2D
, "GL_TEXTURE_BINDING_2D"},
3734 {GL_TEXTURE_BINDING_CUBE_MAP
, "GL_TEXTURE_BINDING_CUBE_MAP"},
3735 {GL_UNPACK_ALIGNMENT
, "GL_UNPACK_ALIGNMENT"},
3736 {GL_BIND_GENERATES_RESOURCE_CHROMIUM
,
3737 "GL_BIND_GENERATES_RESOURCE_CHROMIUM"},
3738 {GL_VERTEX_ARRAY_BINDING_OES
, "GL_VERTEX_ARRAY_BINDING_OES"},
3739 {GL_VIEWPORT
, "GL_VIEWPORT"},
3740 {GL_BLEND_COLOR
, "GL_BLEND_COLOR"},
3741 {GL_BLEND_EQUATION_RGB
, "GL_BLEND_EQUATION_RGB"},
3742 {GL_BLEND_EQUATION_ALPHA
, "GL_BLEND_EQUATION_ALPHA"},
3743 {GL_BLEND_SRC_RGB
, "GL_BLEND_SRC_RGB"},
3744 {GL_BLEND_DST_RGB
, "GL_BLEND_DST_RGB"},
3745 {GL_BLEND_SRC_ALPHA
, "GL_BLEND_SRC_ALPHA"},
3746 {GL_BLEND_DST_ALPHA
, "GL_BLEND_DST_ALPHA"},
3747 {GL_COLOR_CLEAR_VALUE
, "GL_COLOR_CLEAR_VALUE"},
3748 {GL_DEPTH_CLEAR_VALUE
, "GL_DEPTH_CLEAR_VALUE"},
3749 {GL_STENCIL_CLEAR_VALUE
, "GL_STENCIL_CLEAR_VALUE"},
3750 {GL_COLOR_WRITEMASK
, "GL_COLOR_WRITEMASK"},
3751 {GL_CULL_FACE_MODE
, "GL_CULL_FACE_MODE"},
3752 {GL_DEPTH_FUNC
, "GL_DEPTH_FUNC"},
3753 {GL_DEPTH_WRITEMASK
, "GL_DEPTH_WRITEMASK"},
3754 {GL_FRONT_FACE
, "GL_FRONT_FACE"},
3755 {GL_LINE_WIDTH
, "GL_LINE_WIDTH"},
3756 {GL_POLYGON_OFFSET_FACTOR
, "GL_POLYGON_OFFSET_FACTOR"},
3757 {GL_POLYGON_OFFSET_UNITS
, "GL_POLYGON_OFFSET_UNITS"},
3758 {GL_STENCIL_FUNC
, "GL_STENCIL_FUNC"},
3759 {GL_STENCIL_REF
, "GL_STENCIL_REF"},
3760 {GL_STENCIL_VALUE_MASK
, "GL_STENCIL_VALUE_MASK"},
3761 {GL_STENCIL_BACK_FUNC
, "GL_STENCIL_BACK_FUNC"},
3762 {GL_STENCIL_BACK_REF
, "GL_STENCIL_BACK_REF"},
3763 {GL_STENCIL_BACK_VALUE_MASK
, "GL_STENCIL_BACK_VALUE_MASK"},
3764 {GL_STENCIL_WRITEMASK
, "GL_STENCIL_WRITEMASK"},
3765 {GL_STENCIL_BACK_WRITEMASK
, "GL_STENCIL_BACK_WRITEMASK"},
3766 {GL_STENCIL_FAIL
, "GL_STENCIL_FAIL"},
3767 {GL_STENCIL_PASS_DEPTH_FAIL
, "GL_STENCIL_PASS_DEPTH_FAIL"},
3768 {GL_STENCIL_PASS_DEPTH_PASS
, "GL_STENCIL_PASS_DEPTH_PASS"},
3769 {GL_STENCIL_BACK_FAIL
, "GL_STENCIL_BACK_FAIL"},
3770 {GL_STENCIL_BACK_PASS_DEPTH_FAIL
, "GL_STENCIL_BACK_PASS_DEPTH_FAIL"},
3771 {GL_STENCIL_BACK_PASS_DEPTH_PASS
, "GL_STENCIL_BACK_PASS_DEPTH_PASS"},
3772 {GL_BLEND
, "GL_BLEND"},
3773 {GL_CULL_FACE
, "GL_CULL_FACE"},
3774 {GL_DEPTH_TEST
, "GL_DEPTH_TEST"},
3775 {GL_DITHER
, "GL_DITHER"},
3776 {GL_POLYGON_OFFSET_FILL
, "GL_POLYGON_OFFSET_FILL"},
3777 {GL_SAMPLE_ALPHA_TO_COVERAGE
, "GL_SAMPLE_ALPHA_TO_COVERAGE"},
3778 {GL_SAMPLE_COVERAGE
, "GL_SAMPLE_COVERAGE"},
3779 {GL_SCISSOR_TEST
, "GL_SCISSOR_TEST"},
3780 {GL_STENCIL_TEST
, "GL_STENCIL_TEST"},
3781 {GL_RASTERIZER_DISCARD
, "GL_RASTERIZER_DISCARD"},
3782 {GL_PRIMITIVE_RESTART_FIXED_INDEX
, "GL_PRIMITIVE_RESTART_FIXED_INDEX"},
3783 {GL_COPY_READ_BUFFER_BINDING
, "GL_COPY_READ_BUFFER_BINDING"},
3784 {GL_COPY_WRITE_BUFFER_BINDING
, "GL_COPY_WRITE_BUFFER_BINDING"},
3785 {GL_DRAW_BUFFER0
, "GL_DRAW_BUFFER0"},
3786 {GL_DRAW_BUFFER1
, "GL_DRAW_BUFFER1"},
3787 {GL_DRAW_BUFFER2
, "GL_DRAW_BUFFER2"},
3788 {GL_DRAW_BUFFER3
, "GL_DRAW_BUFFER3"},
3789 {GL_DRAW_BUFFER4
, "GL_DRAW_BUFFER4"},
3790 {GL_DRAW_BUFFER5
, "GL_DRAW_BUFFER5"},
3791 {GL_DRAW_BUFFER6
, "GL_DRAW_BUFFER6"},
3792 {GL_DRAW_BUFFER7
, "GL_DRAW_BUFFER7"},
3793 {GL_DRAW_BUFFER8
, "GL_DRAW_BUFFER8"},
3794 {GL_DRAW_BUFFER9
, "GL_DRAW_BUFFER9"},
3795 {GL_DRAW_BUFFER10
, "GL_DRAW_BUFFER10"},
3796 {GL_DRAW_BUFFER11
, "GL_DRAW_BUFFER11"},
3797 {GL_DRAW_BUFFER12
, "GL_DRAW_BUFFER12"},
3798 {GL_DRAW_BUFFER13
, "GL_DRAW_BUFFER13"},
3799 {GL_DRAW_BUFFER14
, "GL_DRAW_BUFFER14"},
3800 {GL_DRAW_BUFFER15
, "GL_DRAW_BUFFER15"},
3801 {GL_DRAW_FRAMEBUFFER_BINDING
, "GL_DRAW_FRAMEBUFFER_BINDING"},
3802 {GL_FRAGMENT_SHADER_DERIVATIVE_HINT
,
3803 "GL_FRAGMENT_SHADER_DERIVATIVE_HINT"},
3804 {GL_MAJOR_VERSION
, "GL_MAJOR_VERSION"},
3805 {GL_MAX_3D_TEXTURE_SIZE
, "GL_MAX_3D_TEXTURE_SIZE"},
3806 {GL_MAX_ARRAY_TEXTURE_LAYERS
, "GL_MAX_ARRAY_TEXTURE_LAYERS"},
3807 {GL_MAX_COLOR_ATTACHMENTS
, "GL_MAX_COLOR_ATTACHMENTS"},
3808 {GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
,
3809 "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS"},
3810 {GL_MAX_COMBINED_UNIFORM_BLOCKS
, "GL_MAX_COMBINED_UNIFORM_BLOCKS"},
3811 {GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
,
3812 "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS"},
3813 {GL_MAX_DRAW_BUFFERS
, "GL_MAX_DRAW_BUFFERS"},
3814 {GL_MAX_ELEMENT_INDEX
, "GL_MAX_ELEMENT_INDEX"},
3815 {GL_MAX_ELEMENTS_INDICES
, "GL_MAX_ELEMENTS_INDICES"},
3816 {GL_MAX_ELEMENTS_VERTICES
, "GL_MAX_ELEMENTS_VERTICES"},
3817 {GL_MAX_FRAGMENT_INPUT_COMPONENTS
, "GL_MAX_FRAGMENT_INPUT_COMPONENTS"},
3818 {GL_MAX_FRAGMENT_UNIFORM_BLOCKS
, "GL_MAX_FRAGMENT_UNIFORM_BLOCKS"},
3819 {GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
,
3820 "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS"},
3821 {GL_MAX_PROGRAM_TEXEL_OFFSET
, "GL_MAX_PROGRAM_TEXEL_OFFSET"},
3822 {GL_MAX_SAMPLES
, "GL_MAX_SAMPLES"},
3823 {GL_MAX_SERVER_WAIT_TIMEOUT
, "GL_MAX_SERVER_WAIT_TIMEOUT"},
3824 {GL_MAX_TEXTURE_LOD_BIAS
, "GL_MAX_TEXTURE_LOD_BIAS"},
3825 {GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS
,
3826 "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS"},
3827 {GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS
,
3828 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS"},
3829 {GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS
,
3830 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS"},
3831 {GL_MAX_UNIFORM_BLOCK_SIZE
, "GL_MAX_UNIFORM_BLOCK_SIZE"},
3832 {GL_MAX_UNIFORM_BUFFER_BINDINGS
, "GL_MAX_UNIFORM_BUFFER_BINDINGS"},
3833 {GL_MAX_VARYING_COMPONENTS
, "GL_MAX_VARYING_COMPONENTS"},
3834 {GL_MAX_VERTEX_OUTPUT_COMPONENTS
, "GL_MAX_VERTEX_OUTPUT_COMPONENTS"},
3835 {GL_MAX_VERTEX_UNIFORM_BLOCKS
, "GL_MAX_VERTEX_UNIFORM_BLOCKS"},
3836 {GL_MAX_VERTEX_UNIFORM_COMPONENTS
, "GL_MAX_VERTEX_UNIFORM_COMPONENTS"},
3837 {GL_MIN_PROGRAM_TEXEL_OFFSET
, "GL_MIN_PROGRAM_TEXEL_OFFSET"},
3838 {GL_MINOR_VERSION
, "GL_MINOR_VERSION"},
3839 {GL_NUM_EXTENSIONS
, "GL_NUM_EXTENSIONS"},
3840 {GL_NUM_PROGRAM_BINARY_FORMATS
, "GL_NUM_PROGRAM_BINARY_FORMATS"},
3841 {GL_PACK_ROW_LENGTH
, "GL_PACK_ROW_LENGTH"},
3842 {GL_PACK_SKIP_PIXELS
, "GL_PACK_SKIP_PIXELS"},
3843 {GL_PACK_SKIP_ROWS
, "GL_PACK_SKIP_ROWS"},
3844 {GL_PIXEL_PACK_BUFFER_BINDING
, "GL_PIXEL_PACK_BUFFER_BINDING"},
3845 {GL_PIXEL_UNPACK_BUFFER_BINDING
, "GL_PIXEL_UNPACK_BUFFER_BINDING"},
3846 {GL_PROGRAM_BINARY_FORMATS
, "GL_PROGRAM_BINARY_FORMATS"},
3847 {GL_READ_BUFFER
, "GL_READ_BUFFER"},
3848 {GL_READ_FRAMEBUFFER_BINDING
, "GL_READ_FRAMEBUFFER_BINDING"},
3849 {GL_SAMPLER_BINDING
, "GL_SAMPLER_BINDING"},
3850 {GL_TEXTURE_BINDING_2D_ARRAY
, "GL_TEXTURE_BINDING_2D_ARRAY"},
3851 {GL_TEXTURE_BINDING_3D
, "GL_TEXTURE_BINDING_3D"},
3852 {GL_TRANSFORM_FEEDBACK_BINDING
, "GL_TRANSFORM_FEEDBACK_BINDING"},
3853 {GL_TRANSFORM_FEEDBACK_ACTIVE
, "GL_TRANSFORM_FEEDBACK_ACTIVE"},
3854 {GL_TRANSFORM_FEEDBACK_BUFFER_BINDING
,
3855 "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING"},
3856 {GL_TRANSFORM_FEEDBACK_PAUSED
, "GL_TRANSFORM_FEEDBACK_PAUSED"},
3857 {GL_TRANSFORM_FEEDBACK_BUFFER_SIZE
, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE"},
3858 {GL_TRANSFORM_FEEDBACK_BUFFER_START
,
3859 "GL_TRANSFORM_FEEDBACK_BUFFER_START"},
3860 {GL_UNIFORM_BUFFER_BINDING
, "GL_UNIFORM_BUFFER_BINDING"},
3861 {GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
,
3862 "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT"},
3863 {GL_UNIFORM_BUFFER_SIZE
, "GL_UNIFORM_BUFFER_SIZE"},
3864 {GL_UNIFORM_BUFFER_START
, "GL_UNIFORM_BUFFER_START"},
3865 {GL_UNPACK_IMAGE_HEIGHT
, "GL_UNPACK_IMAGE_HEIGHT"},
3866 {GL_UNPACK_ROW_LENGTH
, "GL_UNPACK_ROW_LENGTH"},
3867 {GL_UNPACK_SKIP_IMAGES
, "GL_UNPACK_SKIP_IMAGES"},
3868 {GL_UNPACK_SKIP_PIXELS
, "GL_UNPACK_SKIP_PIXELS"},
3869 {GL_UNPACK_SKIP_ROWS
, "GL_UNPACK_SKIP_ROWS"},
3871 return GLES2Util::GetQualifiedEnumString(string_table
,
3872 arraysize(string_table
), value
);
3875 std::string
GLES2Util::GetStringGetMaxIndexType(uint32_t value
) {
3876 static const EnumToString string_table
[] = {
3877 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
3878 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
3879 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
3881 return GLES2Util::GetQualifiedEnumString(string_table
,
3882 arraysize(string_table
), value
);
3885 std::string
GLES2Util::GetStringGetTexParamTarget(uint32_t value
) {
3886 static const EnumToString string_table
[] = {
3887 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
3888 {GL_TEXTURE_CUBE_MAP
, "GL_TEXTURE_CUBE_MAP"},
3889 {GL_TEXTURE_2D_ARRAY
, "GL_TEXTURE_2D_ARRAY"},
3890 {GL_TEXTURE_3D
, "GL_TEXTURE_3D"},
3892 return GLES2Util::GetQualifiedEnumString(string_table
,
3893 arraysize(string_table
), value
);
3896 std::string
GLES2Util::GetStringHintMode(uint32_t value
) {
3897 static const EnumToString string_table
[] = {
3898 {GL_FASTEST
, "GL_FASTEST"},
3899 {GL_NICEST
, "GL_NICEST"},
3900 {GL_DONT_CARE
, "GL_DONT_CARE"},
3902 return GLES2Util::GetQualifiedEnumString(string_table
,
3903 arraysize(string_table
), value
);
3906 std::string
GLES2Util::GetStringHintTarget(uint32_t value
) {
3907 static const EnumToString string_table
[] = {
3908 {GL_GENERATE_MIPMAP_HINT
, "GL_GENERATE_MIPMAP_HINT"},
3909 {GL_FRAGMENT_SHADER_DERIVATIVE_HINT
,
3910 "GL_FRAGMENT_SHADER_DERIVATIVE_HINT"},
3912 return GLES2Util::GetQualifiedEnumString(string_table
,
3913 arraysize(string_table
), value
);
3916 std::string
GLES2Util::GetStringImageInternalFormat(uint32_t value
) {
3917 static const EnumToString string_table
[] = {
3919 {GL_RGB_YUV_420_CHROMIUM
, "GL_RGB_YUV_420_CHROMIUM"},
3920 {GL_RGBA
, "GL_RGBA"},
3922 return GLES2Util::GetQualifiedEnumString(string_table
,
3923 arraysize(string_table
), value
);
3926 std::string
GLES2Util::GetStringImageUsage(uint32_t value
) {
3927 static const EnumToString string_table
[] = {
3928 {GL_MAP_CHROMIUM
, "GL_MAP_CHROMIUM"},
3929 {GL_SCANOUT_CHROMIUM
, "GL_SCANOUT_CHROMIUM"},
3931 return GLES2Util::GetQualifiedEnumString(string_table
,
3932 arraysize(string_table
), value
);
3935 std::string
GLES2Util::GetStringIndexType(uint32_t value
) {
3936 static const EnumToString string_table
[] = {
3937 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
3938 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
3939 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
3941 return GLES2Util::GetQualifiedEnumString(string_table
,
3942 arraysize(string_table
), value
);
3945 std::string
GLES2Util::GetStringIndexedBufferTarget(uint32_t value
) {
3946 static const EnumToString string_table
[] = {
3947 {GL_TRANSFORM_FEEDBACK_BUFFER
, "GL_TRANSFORM_FEEDBACK_BUFFER"},
3948 {GL_UNIFORM_BUFFER
, "GL_UNIFORM_BUFFER"},
3950 return GLES2Util::GetQualifiedEnumString(string_table
,
3951 arraysize(string_table
), value
);
3954 std::string
GLES2Util::GetStringIndexedGLState(uint32_t value
) {
3955 static const EnumToString string_table
[] = {
3956 {GL_TRANSFORM_FEEDBACK_BUFFER_BINDING
,
3957 "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING"},
3958 {GL_TRANSFORM_FEEDBACK_BUFFER_SIZE
, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE"},
3959 {GL_TRANSFORM_FEEDBACK_BUFFER_START
,
3960 "GL_TRANSFORM_FEEDBACK_BUFFER_START"},
3961 {GL_UNIFORM_BUFFER_BINDING
, "GL_UNIFORM_BUFFER_BINDING"},
3962 {GL_UNIFORM_BUFFER_SIZE
, "GL_UNIFORM_BUFFER_SIZE"},
3963 {GL_UNIFORM_BUFFER_START
, "GL_UNIFORM_BUFFER_START"},
3965 return GLES2Util::GetQualifiedEnumString(string_table
,
3966 arraysize(string_table
), value
);
3969 std::string
GLES2Util::GetStringInternalFormatParameter(uint32_t value
) {
3970 static const EnumToString string_table
[] = {
3971 {GL_NUM_SAMPLE_COUNTS
, "GL_NUM_SAMPLE_COUNTS"},
3972 {GL_SAMPLES
, "GL_SAMPLES"},
3974 return GLES2Util::GetQualifiedEnumString(string_table
,
3975 arraysize(string_table
), value
);
3978 std::string
GLES2Util::GetStringInvalidateFrameBufferTarget(uint32_t value
) {
3979 static const EnumToString string_table
[] = {
3980 {GL_FRAMEBUFFER
, "GL_FRAMEBUFFER"},
3982 return GLES2Util::GetQualifiedEnumString(string_table
,
3983 arraysize(string_table
), value
);
3986 std::string
GLES2Util::GetStringMapBufferAccess(uint32_t value
) {
3987 static const EnumToString string_table
[] = {
3988 {GL_MAP_READ_BIT
, "GL_MAP_READ_BIT"},
3989 {GL_MAP_WRITE_BIT
, "GL_MAP_WRITE_BIT"},
3990 {GL_MAP_INVALIDATE_RANGE_BIT
, "GL_MAP_INVALIDATE_RANGE_BIT"},
3991 {GL_MAP_INVALIDATE_BUFFER_BIT
, "GL_MAP_INVALIDATE_BUFFER_BIT"},
3992 {GL_MAP_FLUSH_EXPLICIT_BIT
, "GL_MAP_FLUSH_EXPLICIT_BIT"},
3993 {GL_MAP_UNSYNCHRONIZED_BIT
, "GL_MAP_UNSYNCHRONIZED_BIT"},
3995 return GLES2Util::GetQualifiedEnumString(string_table
,
3996 arraysize(string_table
), value
);
3999 std::string
GLES2Util::GetStringMatrixMode(uint32_t value
) {
4000 static const EnumToString string_table
[] = {
4001 {GL_PATH_PROJECTION_CHROMIUM
, "GL_PATH_PROJECTION_CHROMIUM"},
4002 {GL_PATH_MODELVIEW_CHROMIUM
, "GL_PATH_MODELVIEW_CHROMIUM"},
4004 return GLES2Util::GetQualifiedEnumString(string_table
,
4005 arraysize(string_table
), value
);
4008 std::string
GLES2Util::GetStringPathCoordType(uint32_t value
) {
4009 static const EnumToString string_table
[] = {
4010 {GL_BYTE
, "GL_BYTE"}, {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4011 {GL_SHORT
, "GL_SHORT"}, {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4012 {GL_FLOAT
, "GL_FLOAT"},
4014 return GLES2Util::GetQualifiedEnumString(string_table
,
4015 arraysize(string_table
), value
);
4018 std::string
GLES2Util::GetStringPathCoverMode(uint32_t value
) {
4019 static const EnumToString string_table
[] = {
4020 {GL_CONVEX_HULL_CHROMIUM
, "GL_CONVEX_HULL_CHROMIUM"},
4021 {GL_BOUNDING_BOX_CHROMIUM
, "GL_BOUNDING_BOX_CHROMIUM"},
4023 return GLES2Util::GetQualifiedEnumString(string_table
,
4024 arraysize(string_table
), value
);
4027 std::string
GLES2Util::GetStringPathFillMode(uint32_t value
) {
4028 static const EnumToString string_table
[] = {
4029 {GL_INVERT
, "GL_INVERT"},
4030 {GL_COUNT_UP_CHROMIUM
, "GL_COUNT_UP_CHROMIUM"},
4031 {GL_COUNT_DOWN_CHROMIUM
, "GL_COUNT_DOWN_CHROMIUM"},
4033 return GLES2Util::GetQualifiedEnumString(string_table
,
4034 arraysize(string_table
), value
);
4037 std::string
GLES2Util::GetStringPathParameter(uint32_t value
) {
4038 static const EnumToString string_table
[] = {
4039 {GL_PATH_STROKE_WIDTH_CHROMIUM
, "GL_PATH_STROKE_WIDTH_CHROMIUM"},
4040 {GL_PATH_END_CAPS_CHROMIUM
, "GL_PATH_END_CAPS_CHROMIUM"},
4041 {GL_PATH_JOIN_STYLE_CHROMIUM
, "GL_PATH_JOIN_STYLE_CHROMIUM"},
4042 {GL_PATH_MITER_LIMIT_CHROMIUM
, "GL_PATH_MITER_LIMIT_CHROMIUM"},
4043 {GL_PATH_STROKE_BOUND_CHROMIUM
, "GL_PATH_STROKE_BOUND_CHROMIUM"},
4045 return GLES2Util::GetQualifiedEnumString(string_table
,
4046 arraysize(string_table
), value
);
4049 std::string
GLES2Util::GetStringPixelStore(uint32_t value
) {
4050 static const EnumToString string_table
[] = {
4051 {GL_PACK_ALIGNMENT
, "GL_PACK_ALIGNMENT"},
4052 {GL_UNPACK_ALIGNMENT
, "GL_UNPACK_ALIGNMENT"},
4053 {GL_PACK_ROW_LENGTH
, "GL_PACK_ROW_LENGTH"},
4054 {GL_PACK_SKIP_PIXELS
, "GL_PACK_SKIP_PIXELS"},
4055 {GL_PACK_SKIP_ROWS
, "GL_PACK_SKIP_ROWS"},
4056 {GL_UNPACK_ROW_LENGTH
, "GL_UNPACK_ROW_LENGTH"},
4057 {GL_UNPACK_IMAGE_HEIGHT
, "GL_UNPACK_IMAGE_HEIGHT"},
4058 {GL_UNPACK_SKIP_PIXELS
, "GL_UNPACK_SKIP_PIXELS"},
4059 {GL_UNPACK_SKIP_ROWS
, "GL_UNPACK_SKIP_ROWS"},
4060 {GL_UNPACK_SKIP_IMAGES
, "GL_UNPACK_SKIP_IMAGES"},
4062 return GLES2Util::GetQualifiedEnumString(string_table
,
4063 arraysize(string_table
), value
);
4066 std::string
GLES2Util::GetStringPixelType(uint32_t value
) {
4067 static const EnumToString string_table
[] = {
4068 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4069 {GL_UNSIGNED_SHORT_5_6_5
, "GL_UNSIGNED_SHORT_5_6_5"},
4070 {GL_UNSIGNED_SHORT_4_4_4_4
, "GL_UNSIGNED_SHORT_4_4_4_4"},
4071 {GL_UNSIGNED_SHORT_5_5_5_1
, "GL_UNSIGNED_SHORT_5_5_5_1"},
4072 {GL_BYTE
, "GL_BYTE"},
4073 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4074 {GL_SHORT
, "GL_SHORT"},
4075 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4077 {GL_HALF_FLOAT
, "GL_HALF_FLOAT"},
4078 {GL_FLOAT
, "GL_FLOAT"},
4079 {GL_UNSIGNED_INT_2_10_10_10_REV
, "GL_UNSIGNED_INT_2_10_10_10_REV"},
4080 {GL_UNSIGNED_INT_10F_11F_11F_REV
, "GL_UNSIGNED_INT_10F_11F_11F_REV"},
4081 {GL_UNSIGNED_INT_5_9_9_9_REV
, "GL_UNSIGNED_INT_5_9_9_9_REV"},
4082 {GL_UNSIGNED_INT_24_8
, "GL_UNSIGNED_INT_24_8"},
4083 {GL_FLOAT_32_UNSIGNED_INT_24_8_REV
, "GL_FLOAT_32_UNSIGNED_INT_24_8_REV"},
4085 return GLES2Util::GetQualifiedEnumString(string_table
,
4086 arraysize(string_table
), value
);
4089 std::string
GLES2Util::GetStringProgramParameter(uint32_t value
) {
4090 static const EnumToString string_table
[] = {
4091 {GL_DELETE_STATUS
, "GL_DELETE_STATUS"},
4092 {GL_LINK_STATUS
, "GL_LINK_STATUS"},
4093 {GL_VALIDATE_STATUS
, "GL_VALIDATE_STATUS"},
4094 {GL_INFO_LOG_LENGTH
, "GL_INFO_LOG_LENGTH"},
4095 {GL_ATTACHED_SHADERS
, "GL_ATTACHED_SHADERS"},
4096 {GL_ACTIVE_ATTRIBUTES
, "GL_ACTIVE_ATTRIBUTES"},
4097 {GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
, "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH"},
4098 {GL_ACTIVE_UNIFORMS
, "GL_ACTIVE_UNIFORMS"},
4099 {GL_ACTIVE_UNIFORM_MAX_LENGTH
, "GL_ACTIVE_UNIFORM_MAX_LENGTH"},
4100 {GL_ACTIVE_UNIFORM_BLOCKS
, "GL_ACTIVE_UNIFORM_BLOCKS"},
4101 {GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH
,
4102 "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH"},
4103 {GL_TRANSFORM_FEEDBACK_BUFFER_MODE
, "GL_TRANSFORM_FEEDBACK_BUFFER_MODE"},
4104 {GL_TRANSFORM_FEEDBACK_VARYINGS
, "GL_TRANSFORM_FEEDBACK_VARYINGS"},
4105 {GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH
,
4106 "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH"},
4108 return GLES2Util::GetQualifiedEnumString(string_table
,
4109 arraysize(string_table
), value
);
4112 std::string
GLES2Util::GetStringQueryObjectParameter(uint32_t value
) {
4113 static const EnumToString string_table
[] = {
4114 {GL_QUERY_RESULT_EXT
, "GL_QUERY_RESULT_EXT"},
4115 {GL_QUERY_RESULT_AVAILABLE_EXT
, "GL_QUERY_RESULT_AVAILABLE_EXT"},
4117 return GLES2Util::GetQualifiedEnumString(string_table
,
4118 arraysize(string_table
), value
);
4121 std::string
GLES2Util::GetStringQueryParameter(uint32_t value
) {
4122 static const EnumToString string_table
[] = {
4123 {GL_CURRENT_QUERY_EXT
, "GL_CURRENT_QUERY_EXT"},
4125 return GLES2Util::GetQualifiedEnumString(string_table
,
4126 arraysize(string_table
), value
);
4129 std::string
GLES2Util::GetStringQueryTarget(uint32_t value
) {
4130 static const EnumToString string_table
[] = {
4131 {GL_ANY_SAMPLES_PASSED_EXT
, "GL_ANY_SAMPLES_PASSED_EXT"},
4132 {GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT
,
4133 "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT"},
4134 {GL_COMMANDS_ISSUED_CHROMIUM
, "GL_COMMANDS_ISSUED_CHROMIUM"},
4135 {GL_LATENCY_QUERY_CHROMIUM
, "GL_LATENCY_QUERY_CHROMIUM"},
4136 {GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM
,
4137 "GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM"},
4138 {GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM
,
4139 "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM"},
4140 {GL_COMMANDS_COMPLETED_CHROMIUM
, "GL_COMMANDS_COMPLETED_CHROMIUM"},
4142 return GLES2Util::GetQualifiedEnumString(string_table
,
4143 arraysize(string_table
), value
);
4146 std::string
GLES2Util::GetStringReadBuffer(uint32_t value
) {
4147 static const EnumToString string_table
[] = {
4148 {GL_NONE
, "GL_NONE"},
4149 {GL_BACK
, "GL_BACK"},
4150 {GL_COLOR_ATTACHMENT0
, "GL_COLOR_ATTACHMENT0"},
4151 {GL_COLOR_ATTACHMENT1
, "GL_COLOR_ATTACHMENT1"},
4152 {GL_COLOR_ATTACHMENT2
, "GL_COLOR_ATTACHMENT2"},
4153 {GL_COLOR_ATTACHMENT3
, "GL_COLOR_ATTACHMENT3"},
4154 {GL_COLOR_ATTACHMENT4
, "GL_COLOR_ATTACHMENT4"},
4155 {GL_COLOR_ATTACHMENT5
, "GL_COLOR_ATTACHMENT5"},
4156 {GL_COLOR_ATTACHMENT6
, "GL_COLOR_ATTACHMENT6"},
4157 {GL_COLOR_ATTACHMENT7
, "GL_COLOR_ATTACHMENT7"},
4158 {GL_COLOR_ATTACHMENT8
, "GL_COLOR_ATTACHMENT8"},
4159 {GL_COLOR_ATTACHMENT9
, "GL_COLOR_ATTACHMENT9"},
4160 {GL_COLOR_ATTACHMENT10
, "GL_COLOR_ATTACHMENT10"},
4161 {GL_COLOR_ATTACHMENT11
, "GL_COLOR_ATTACHMENT11"},
4162 {GL_COLOR_ATTACHMENT12
, "GL_COLOR_ATTACHMENT12"},
4163 {GL_COLOR_ATTACHMENT13
, "GL_COLOR_ATTACHMENT13"},
4164 {GL_COLOR_ATTACHMENT14
, "GL_COLOR_ATTACHMENT14"},
4165 {GL_COLOR_ATTACHMENT15
, "GL_COLOR_ATTACHMENT15"},
4167 return GLES2Util::GetQualifiedEnumString(string_table
,
4168 arraysize(string_table
), value
);
4171 std::string
GLES2Util::GetStringReadPixelFormat(uint32_t value
) {
4172 static const EnumToString string_table
[] = {
4173 {GL_ALPHA
, "GL_ALPHA"},
4175 {GL_RGBA
, "GL_RGBA"},
4176 {GL_RGBA_INTEGER
, "GL_RGBA_INTEGER"},
4178 return GLES2Util::GetQualifiedEnumString(string_table
,
4179 arraysize(string_table
), value
);
4182 std::string
GLES2Util::GetStringReadPixelType(uint32_t value
) {
4183 static const EnumToString string_table
[] = {
4184 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4185 {GL_UNSIGNED_SHORT_5_6_5
, "GL_UNSIGNED_SHORT_5_6_5"},
4186 {GL_UNSIGNED_SHORT_4_4_4_4
, "GL_UNSIGNED_SHORT_4_4_4_4"},
4187 {GL_UNSIGNED_SHORT_5_5_5_1
, "GL_UNSIGNED_SHORT_5_5_5_1"},
4188 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4190 {GL_FLOAT
, "GL_FLOAT"},
4192 return GLES2Util::GetQualifiedEnumString(string_table
,
4193 arraysize(string_table
), value
);
4196 std::string
GLES2Util::GetStringRenderBufferFormat(uint32_t value
) {
4197 static const EnumToString string_table
[] = {
4198 {GL_RGBA4
, "GL_RGBA4"},
4199 {GL_RGB565
, "GL_RGB565"},
4200 {GL_RGB5_A1
, "GL_RGB5_A1"},
4201 {GL_DEPTH_COMPONENT16
, "GL_DEPTH_COMPONENT16"},
4202 {GL_STENCIL_INDEX8
, "GL_STENCIL_INDEX8"},
4204 {GL_R8UI
, "GL_R8UI"},
4206 {GL_R16UI
, "GL_R16UI"},
4207 {GL_R16I
, "GL_R16I"},
4208 {GL_R32UI
, "GL_R32UI"},
4209 {GL_R32I
, "GL_R32I"},
4211 {GL_RG8UI
, "GL_RG8UI"},
4212 {GL_RG8I
, "GL_RG8I"},
4213 {GL_RG16UI
, "GL_RG16UI"},
4214 {GL_RG16I
, "GL_RG16I"},
4215 {GL_RG32UI
, "GL_RG32UI"},
4216 {GL_RG32I
, "GL_RG32I"},
4217 {GL_RGB8
, "GL_RGB8"},
4218 {GL_RGBA8
, "GL_RGBA8"},
4219 {GL_SRGB8_ALPHA8
, "GL_SRGB8_ALPHA8"},
4220 {GL_RGB10_A2
, "GL_RGB10_A2"},
4221 {GL_RGBA8UI
, "GL_RGBA8UI"},
4222 {GL_RGBA8I
, "GL_RGBA8I"},
4223 {GL_RGB10_A2UI
, "GL_RGB10_A2UI"},
4224 {GL_RGBA16UI
, "GL_RGBA16UI"},
4225 {GL_RGBA16I
, "GL_RGBA16I"},
4226 {GL_RGBA32UI
, "GL_RGBA32UI"},
4227 {GL_RGBA32I
, "GL_RGBA32I"},
4228 {GL_DEPTH_COMPONENT24
, "GL_DEPTH_COMPONENT24"},
4229 {GL_DEPTH_COMPONENT32F
, "GL_DEPTH_COMPONENT32F"},
4230 {GL_DEPTH24_STENCIL8
, "GL_DEPTH24_STENCIL8"},
4231 {GL_DEPTH32F_STENCIL8
, "GL_DEPTH32F_STENCIL8"},
4233 return GLES2Util::GetQualifiedEnumString(string_table
,
4234 arraysize(string_table
), value
);
4237 std::string
GLES2Util::GetStringRenderBufferParameter(uint32_t value
) {
4238 static const EnumToString string_table
[] = {
4239 {GL_RENDERBUFFER_RED_SIZE
, "GL_RENDERBUFFER_RED_SIZE"},
4240 {GL_RENDERBUFFER_GREEN_SIZE
, "GL_RENDERBUFFER_GREEN_SIZE"},
4241 {GL_RENDERBUFFER_BLUE_SIZE
, "GL_RENDERBUFFER_BLUE_SIZE"},
4242 {GL_RENDERBUFFER_ALPHA_SIZE
, "GL_RENDERBUFFER_ALPHA_SIZE"},
4243 {GL_RENDERBUFFER_DEPTH_SIZE
, "GL_RENDERBUFFER_DEPTH_SIZE"},
4244 {GL_RENDERBUFFER_STENCIL_SIZE
, "GL_RENDERBUFFER_STENCIL_SIZE"},
4245 {GL_RENDERBUFFER_WIDTH
, "GL_RENDERBUFFER_WIDTH"},
4246 {GL_RENDERBUFFER_HEIGHT
, "GL_RENDERBUFFER_HEIGHT"},
4247 {GL_RENDERBUFFER_INTERNAL_FORMAT
, "GL_RENDERBUFFER_INTERNAL_FORMAT"},
4248 {GL_RENDERBUFFER_SAMPLES
, "GL_RENDERBUFFER_SAMPLES"},
4250 return GLES2Util::GetQualifiedEnumString(string_table
,
4251 arraysize(string_table
), value
);
4254 std::string
GLES2Util::GetStringRenderBufferTarget(uint32_t value
) {
4255 static const EnumToString string_table
[] = {
4256 {GL_RENDERBUFFER
, "GL_RENDERBUFFER"},
4258 return GLES2Util::GetQualifiedEnumString(string_table
,
4259 arraysize(string_table
), value
);
4262 std::string
GLES2Util::GetStringResetStatus(uint32_t value
) {
4263 static const EnumToString string_table
[] = {
4264 {GL_GUILTY_CONTEXT_RESET_ARB
, "GL_GUILTY_CONTEXT_RESET_ARB"},
4265 {GL_INNOCENT_CONTEXT_RESET_ARB
, "GL_INNOCENT_CONTEXT_RESET_ARB"},
4266 {GL_UNKNOWN_CONTEXT_RESET_ARB
, "GL_UNKNOWN_CONTEXT_RESET_ARB"},
4268 return GLES2Util::GetQualifiedEnumString(string_table
,
4269 arraysize(string_table
), value
);
4272 std::string
GLES2Util::GetStringSamplerParameter(uint32_t value
) {
4273 static const EnumToString string_table
[] = {
4274 {GL_TEXTURE_MAG_FILTER
, "GL_TEXTURE_MAG_FILTER"},
4275 {GL_TEXTURE_MIN_FILTER
, "GL_TEXTURE_MIN_FILTER"},
4276 {GL_TEXTURE_MIN_LOD
, "GL_TEXTURE_MIN_LOD"},
4277 {GL_TEXTURE_MAX_LOD
, "GL_TEXTURE_MAX_LOD"},
4278 {GL_TEXTURE_WRAP_S
, "GL_TEXTURE_WRAP_S"},
4279 {GL_TEXTURE_WRAP_T
, "GL_TEXTURE_WRAP_T"},
4280 {GL_TEXTURE_WRAP_R
, "GL_TEXTURE_WRAP_R"},
4281 {GL_TEXTURE_COMPARE_MODE
, "GL_TEXTURE_COMPARE_MODE"},
4282 {GL_TEXTURE_COMPARE_FUNC
, "GL_TEXTURE_COMPARE_FUNC"},
4284 return GLES2Util::GetQualifiedEnumString(string_table
,
4285 arraysize(string_table
), value
);
4288 std::string
GLES2Util::GetStringShaderBinaryFormat(uint32_t value
) {
4289 return GLES2Util::GetQualifiedEnumString(NULL
, 0, value
);
4292 std::string
GLES2Util::GetStringShaderParameter(uint32_t value
) {
4293 static const EnumToString string_table
[] = {
4294 {GL_SHADER_TYPE
, "GL_SHADER_TYPE"},
4295 {GL_DELETE_STATUS
, "GL_DELETE_STATUS"},
4296 {GL_COMPILE_STATUS
, "GL_COMPILE_STATUS"},
4297 {GL_INFO_LOG_LENGTH
, "GL_INFO_LOG_LENGTH"},
4298 {GL_SHADER_SOURCE_LENGTH
, "GL_SHADER_SOURCE_LENGTH"},
4299 {GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
,
4300 "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE"},
4302 return GLES2Util::GetQualifiedEnumString(string_table
,
4303 arraysize(string_table
), value
);
4306 std::string
GLES2Util::GetStringShaderPrecision(uint32_t value
) {
4307 static const EnumToString string_table
[] = {
4308 {GL_LOW_FLOAT
, "GL_LOW_FLOAT"}, {GL_MEDIUM_FLOAT
, "GL_MEDIUM_FLOAT"},
4309 {GL_HIGH_FLOAT
, "GL_HIGH_FLOAT"}, {GL_LOW_INT
, "GL_LOW_INT"},
4310 {GL_MEDIUM_INT
, "GL_MEDIUM_INT"}, {GL_HIGH_INT
, "GL_HIGH_INT"},
4312 return GLES2Util::GetQualifiedEnumString(string_table
,
4313 arraysize(string_table
), value
);
4316 std::string
GLES2Util::GetStringShaderType(uint32_t value
) {
4317 static const EnumToString string_table
[] = {
4318 {GL_VERTEX_SHADER
, "GL_VERTEX_SHADER"},
4319 {GL_FRAGMENT_SHADER
, "GL_FRAGMENT_SHADER"},
4321 return GLES2Util::GetQualifiedEnumString(string_table
,
4322 arraysize(string_table
), value
);
4325 std::string
GLES2Util::GetStringSrcBlendFactor(uint32_t value
) {
4326 static const EnumToString string_table
[] = {
4327 {GL_ZERO
, "GL_ZERO"},
4329 {GL_SRC_COLOR
, "GL_SRC_COLOR"},
4330 {GL_ONE_MINUS_SRC_COLOR
, "GL_ONE_MINUS_SRC_COLOR"},
4331 {GL_DST_COLOR
, "GL_DST_COLOR"},
4332 {GL_ONE_MINUS_DST_COLOR
, "GL_ONE_MINUS_DST_COLOR"},
4333 {GL_SRC_ALPHA
, "GL_SRC_ALPHA"},
4334 {GL_ONE_MINUS_SRC_ALPHA
, "GL_ONE_MINUS_SRC_ALPHA"},
4335 {GL_DST_ALPHA
, "GL_DST_ALPHA"},
4336 {GL_ONE_MINUS_DST_ALPHA
, "GL_ONE_MINUS_DST_ALPHA"},
4337 {GL_CONSTANT_COLOR
, "GL_CONSTANT_COLOR"},
4338 {GL_ONE_MINUS_CONSTANT_COLOR
, "GL_ONE_MINUS_CONSTANT_COLOR"},
4339 {GL_CONSTANT_ALPHA
, "GL_CONSTANT_ALPHA"},
4340 {GL_ONE_MINUS_CONSTANT_ALPHA
, "GL_ONE_MINUS_CONSTANT_ALPHA"},
4341 {GL_SRC_ALPHA_SATURATE
, "GL_SRC_ALPHA_SATURATE"},
4343 return GLES2Util::GetQualifiedEnumString(string_table
,
4344 arraysize(string_table
), value
);
4347 std::string
GLES2Util::GetStringStencilOp(uint32_t value
) {
4348 static const EnumToString string_table
[] = {
4349 {GL_KEEP
, "GL_KEEP"}, {GL_ZERO
, "GL_ZERO"},
4350 {GL_REPLACE
, "GL_REPLACE"}, {GL_INCR
, "GL_INCR"},
4351 {GL_INCR_WRAP
, "GL_INCR_WRAP"}, {GL_DECR
, "GL_DECR"},
4352 {GL_DECR_WRAP
, "GL_DECR_WRAP"}, {GL_INVERT
, "GL_INVERT"},
4354 return GLES2Util::GetQualifiedEnumString(string_table
,
4355 arraysize(string_table
), value
);
4358 std::string
GLES2Util::GetStringStringType(uint32_t value
) {
4359 static const EnumToString string_table
[] = {
4360 {GL_VENDOR
, "GL_VENDOR"},
4361 {GL_RENDERER
, "GL_RENDERER"},
4362 {GL_VERSION
, "GL_VERSION"},
4363 {GL_SHADING_LANGUAGE_VERSION
, "GL_SHADING_LANGUAGE_VERSION"},
4364 {GL_EXTENSIONS
, "GL_EXTENSIONS"},
4366 return GLES2Util::GetQualifiedEnumString(string_table
,
4367 arraysize(string_table
), value
);
4370 std::string
GLES2Util::GetStringSubscriptionTarget(uint32_t value
) {
4371 static const EnumToString string_table
[] = {
4372 {GL_MOUSE_POSITION_CHROMIUM
, "GL_MOUSE_POSITION_CHROMIUM"},
4374 return GLES2Util::GetQualifiedEnumString(string_table
,
4375 arraysize(string_table
), value
);
4378 std::string
GLES2Util::GetStringSyncCondition(uint32_t value
) {
4379 static const EnumToString string_table
[] = {
4380 {GL_SYNC_GPU_COMMANDS_COMPLETE
, "GL_SYNC_GPU_COMMANDS_COMPLETE"},
4382 return GLES2Util::GetQualifiedEnumString(string_table
,
4383 arraysize(string_table
), value
);
4386 std::string
GLES2Util::GetStringSyncParameter(uint32_t value
) {
4387 static const EnumToString string_table
[] = {
4388 {GL_SYNC_STATUS
, "GL_SYNC_STATUS"},
4389 {GL_OBJECT_TYPE
, "GL_OBJECT_TYPE"},
4390 {GL_SYNC_CONDITION
, "GL_SYNC_CONDITION"},
4391 {GL_SYNC_FLAGS
, "GL_SYNC_FLAGS"},
4393 return GLES2Util::GetQualifiedEnumString(string_table
,
4394 arraysize(string_table
), value
);
4397 std::string
GLES2Util::GetStringTexture3DTarget(uint32_t value
) {
4398 static const EnumToString string_table
[] = {
4399 {GL_TEXTURE_3D
, "GL_TEXTURE_3D"},
4400 {GL_TEXTURE_2D_ARRAY
, "GL_TEXTURE_2D_ARRAY"},
4402 return GLES2Util::GetQualifiedEnumString(string_table
,
4403 arraysize(string_table
), value
);
4406 std::string
GLES2Util::GetStringTextureBindTarget(uint32_t value
) {
4407 static const EnumToString string_table
[] = {
4408 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
4409 {GL_TEXTURE_CUBE_MAP
, "GL_TEXTURE_CUBE_MAP"},
4410 {GL_TEXTURE_3D
, "GL_TEXTURE_3D"},
4411 {GL_TEXTURE_2D_ARRAY
, "GL_TEXTURE_2D_ARRAY"},
4413 return GLES2Util::GetQualifiedEnumString(string_table
,
4414 arraysize(string_table
), value
);
4417 std::string
GLES2Util::GetStringTextureCompareFunc(uint32_t value
) {
4418 static const EnumToString string_table
[] = {
4419 {GL_LEQUAL
, "GL_LEQUAL"}, {GL_GEQUAL
, "GL_GEQUAL"},
4420 {GL_LESS
, "GL_LESS"}, {GL_GREATER
, "GL_GREATER"},
4421 {GL_EQUAL
, "GL_EQUAL"}, {GL_NOTEQUAL
, "GL_NOTEQUAL"},
4422 {GL_ALWAYS
, "GL_ALWAYS"}, {GL_NEVER
, "GL_NEVER"},
4424 return GLES2Util::GetQualifiedEnumString(string_table
,
4425 arraysize(string_table
), value
);
4428 std::string
GLES2Util::GetStringTextureCompareMode(uint32_t value
) {
4429 static const EnumToString string_table
[] = {
4430 {GL_NONE
, "GL_NONE"},
4431 {GL_COMPARE_REF_TO_TEXTURE
, "GL_COMPARE_REF_TO_TEXTURE"},
4433 return GLES2Util::GetQualifiedEnumString(string_table
,
4434 arraysize(string_table
), value
);
4437 std::string
GLES2Util::GetStringTextureFormat(uint32_t value
) {
4438 static const EnumToString string_table
[] = {
4439 {GL_ALPHA
, "GL_ALPHA"},
4440 {GL_LUMINANCE
, "GL_LUMINANCE"},
4441 {GL_LUMINANCE_ALPHA
, "GL_LUMINANCE_ALPHA"},
4443 {GL_RGBA
, "GL_RGBA"},
4445 {GL_RED_INTEGER
, "GL_RED_INTEGER"},
4447 {GL_RG_INTEGER
, "GL_RG_INTEGER"},
4448 {GL_RGB_INTEGER
, "GL_RGB_INTEGER"},
4449 {GL_RGBA_INTEGER
, "GL_RGBA_INTEGER"},
4450 {GL_DEPTH_COMPONENT
, "GL_DEPTH_COMPONENT"},
4451 {GL_DEPTH_STENCIL
, "GL_DEPTH_STENCIL"},
4453 return GLES2Util::GetQualifiedEnumString(string_table
,
4454 arraysize(string_table
), value
);
4457 std::string
GLES2Util::GetStringTextureInternalFormat(uint32_t value
) {
4458 static const EnumToString string_table
[] = {
4459 {GL_ALPHA
, "GL_ALPHA"},
4460 {GL_LUMINANCE
, "GL_LUMINANCE"},
4461 {GL_LUMINANCE_ALPHA
, "GL_LUMINANCE_ALPHA"},
4463 {GL_RGBA
, "GL_RGBA"},
4465 {GL_R8_SNORM
, "GL_R8_SNORM"},
4466 {GL_R16F
, "GL_R16F"},
4467 {GL_R32F
, "GL_R32F"},
4468 {GL_R8UI
, "GL_R8UI"},
4470 {GL_R16UI
, "GL_R16UI"},
4471 {GL_R16I
, "GL_R16I"},
4472 {GL_R32UI
, "GL_R32UI"},
4473 {GL_R32I
, "GL_R32I"},
4475 {GL_RG8_SNORM
, "GL_RG8_SNORM"},
4476 {GL_RG16F
, "GL_RG16F"},
4477 {GL_RG32F
, "GL_RG32F"},
4478 {GL_RG8UI
, "GL_RG8UI"},
4479 {GL_RG8I
, "GL_RG8I"},
4480 {GL_RG16UI
, "GL_RG16UI"},
4481 {GL_RG16I
, "GL_RG16I"},
4482 {GL_RG32UI
, "GL_RG32UI"},
4483 {GL_RG32I
, "GL_RG32I"},
4484 {GL_RGB8
, "GL_RGB8"},
4485 {GL_SRGB8
, "GL_SRGB8"},
4486 {GL_RGB565
, "GL_RGB565"},
4487 {GL_RGB8_SNORM
, "GL_RGB8_SNORM"},
4488 {GL_R11F_G11F_B10F
, "GL_R11F_G11F_B10F"},
4489 {GL_RGB9_E5
, "GL_RGB9_E5"},
4490 {GL_RGB16F
, "GL_RGB16F"},
4491 {GL_RGB32F
, "GL_RGB32F"},
4492 {GL_RGB8UI
, "GL_RGB8UI"},
4493 {GL_RGB8I
, "GL_RGB8I"},
4494 {GL_RGB16UI
, "GL_RGB16UI"},
4495 {GL_RGB16I
, "GL_RGB16I"},
4496 {GL_RGB32UI
, "GL_RGB32UI"},
4497 {GL_RGB32I
, "GL_RGB32I"},
4498 {GL_RGBA8
, "GL_RGBA8"},
4499 {GL_SRGB8_ALPHA8
, "GL_SRGB8_ALPHA8"},
4500 {GL_RGBA8_SNORM
, "GL_RGBA8_SNORM"},
4501 {GL_RGB5_A1
, "GL_RGB5_A1"},
4502 {GL_RGBA4
, "GL_RGBA4"},
4503 {GL_RGB10_A2
, "GL_RGB10_A2"},
4504 {GL_RGBA16F
, "GL_RGBA16F"},
4505 {GL_RGBA32F
, "GL_RGBA32F"},
4506 {GL_RGBA8UI
, "GL_RGBA8UI"},
4507 {GL_RGBA8I
, "GL_RGBA8I"},
4508 {GL_RGB10_A2UI
, "GL_RGB10_A2UI"},
4509 {GL_RGBA16UI
, "GL_RGBA16UI"},
4510 {GL_RGBA16I
, "GL_RGBA16I"},
4511 {GL_RGBA32UI
, "GL_RGBA32UI"},
4512 {GL_RGBA32I
, "GL_RGBA32I"},
4513 {GL_DEPTH_COMPONENT16
, "GL_DEPTH_COMPONENT16"},
4514 {GL_DEPTH_COMPONENT24
, "GL_DEPTH_COMPONENT24"},
4515 {GL_DEPTH_COMPONENT32F
, "GL_DEPTH_COMPONENT32F"},
4516 {GL_DEPTH24_STENCIL8
, "GL_DEPTH24_STENCIL8"},
4517 {GL_DEPTH32F_STENCIL8
, "GL_DEPTH32F_STENCIL8"},
4519 return GLES2Util::GetQualifiedEnumString(string_table
,
4520 arraysize(string_table
), value
);
4523 std::string
GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value
) {
4524 static const EnumToString string_table
[] = {
4525 {GL_RGB565
, "GL_RGB565"},
4526 {GL_RGBA4
, "GL_RGBA4"},
4527 {GL_RGB5_A1
, "GL_RGB5_A1"},
4528 {GL_ALPHA8_EXT
, "GL_ALPHA8_EXT"},
4529 {GL_LUMINANCE8_EXT
, "GL_LUMINANCE8_EXT"},
4530 {GL_LUMINANCE8_ALPHA8_EXT
, "GL_LUMINANCE8_ALPHA8_EXT"},
4531 {GL_RGB8_OES
, "GL_RGB8_OES"},
4532 {GL_RGBA8_OES
, "GL_RGBA8_OES"},
4534 {GL_R8_SNORM
, "GL_R8_SNORM"},
4535 {GL_R16F
, "GL_R16F"},
4536 {GL_R32F
, "GL_R32F"},
4537 {GL_R8UI
, "GL_R8UI"},
4539 {GL_R16UI
, "GL_R16UI"},
4540 {GL_R16I
, "GL_R16I"},
4541 {GL_R32UI
, "GL_R32UI"},
4542 {GL_R32I
, "GL_R32I"},
4544 {GL_RG8_SNORM
, "GL_RG8_SNORM"},
4545 {GL_RG16F
, "GL_RG16F"},
4546 {GL_RG32F
, "GL_RG32F"},
4547 {GL_RG8UI
, "GL_RG8UI"},
4548 {GL_RG8I
, "GL_RG8I"},
4549 {GL_RG16UI
, "GL_RG16UI"},
4550 {GL_RG16I
, "GL_RG16I"},
4551 {GL_RG32UI
, "GL_RG32UI"},
4552 {GL_RG32I
, "GL_RG32I"},
4553 {GL_RGB8
, "GL_RGB8"},
4554 {GL_SRGB8
, "GL_SRGB8"},
4555 {GL_RGB8_SNORM
, "GL_RGB8_SNORM"},
4556 {GL_R11F_G11F_B10F
, "GL_R11F_G11F_B10F"},
4557 {GL_RGB9_E5
, "GL_RGB9_E5"},
4558 {GL_RGB16F
, "GL_RGB16F"},
4559 {GL_RGB32F
, "GL_RGB32F"},
4560 {GL_RGB8UI
, "GL_RGB8UI"},
4561 {GL_RGB8I
, "GL_RGB8I"},
4562 {GL_RGB16UI
, "GL_RGB16UI"},
4563 {GL_RGB16I
, "GL_RGB16I"},
4564 {GL_RGB32UI
, "GL_RGB32UI"},
4565 {GL_RGB32I
, "GL_RGB32I"},
4566 {GL_RGBA8
, "GL_RGBA8"},
4567 {GL_SRGB8_ALPHA8
, "GL_SRGB8_ALPHA8"},
4568 {GL_RGBA8_SNORM
, "GL_RGBA8_SNORM"},
4569 {GL_RGB10_A2
, "GL_RGB10_A2"},
4570 {GL_RGBA16F
, "GL_RGBA16F"},
4571 {GL_RGBA32F
, "GL_RGBA32F"},
4572 {GL_RGBA8UI
, "GL_RGBA8UI"},
4573 {GL_RGBA8I
, "GL_RGBA8I"},
4574 {GL_RGB10_A2UI
, "GL_RGB10_A2UI"},
4575 {GL_RGBA16UI
, "GL_RGBA16UI"},
4576 {GL_RGBA16I
, "GL_RGBA16I"},
4577 {GL_RGBA32UI
, "GL_RGBA32UI"},
4578 {GL_RGBA32I
, "GL_RGBA32I"},
4579 {GL_DEPTH_COMPONENT16
, "GL_DEPTH_COMPONENT16"},
4580 {GL_DEPTH_COMPONENT24
, "GL_DEPTH_COMPONENT24"},
4581 {GL_DEPTH_COMPONENT32F
, "GL_DEPTH_COMPONENT32F"},
4582 {GL_DEPTH24_STENCIL8
, "GL_DEPTH24_STENCIL8"},
4583 {GL_DEPTH32F_STENCIL8
, "GL_DEPTH32F_STENCIL8"},
4584 {GL_COMPRESSED_R11_EAC
, "GL_COMPRESSED_R11_EAC"},
4585 {GL_COMPRESSED_SIGNED_R11_EAC
, "GL_COMPRESSED_SIGNED_R11_EAC"},
4586 {GL_COMPRESSED_RG11_EAC
, "GL_COMPRESSED_RG11_EAC"},
4587 {GL_COMPRESSED_SIGNED_RG11_EAC
, "GL_COMPRESSED_SIGNED_RG11_EAC"},
4588 {GL_COMPRESSED_RGB8_ETC2
, "GL_COMPRESSED_RGB8_ETC2"},
4589 {GL_COMPRESSED_SRGB8_ETC2
, "GL_COMPRESSED_SRGB8_ETC2"},
4590 {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
,
4591 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
4592 {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
,
4593 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
4594 {GL_COMPRESSED_RGBA8_ETC2_EAC
, "GL_COMPRESSED_RGBA8_ETC2_EAC"},
4595 {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
,
4596 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"},
4598 return GLES2Util::GetQualifiedEnumString(string_table
,
4599 arraysize(string_table
), value
);
4602 std::string
GLES2Util::GetStringTextureMagFilterMode(uint32_t value
) {
4603 static const EnumToString string_table
[] = {
4604 {GL_NEAREST
, "GL_NEAREST"}, {GL_LINEAR
, "GL_LINEAR"},
4606 return GLES2Util::GetQualifiedEnumString(string_table
,
4607 arraysize(string_table
), value
);
4610 std::string
GLES2Util::GetStringTextureMinFilterMode(uint32_t value
) {
4611 static const EnumToString string_table
[] = {
4612 {GL_NEAREST
, "GL_NEAREST"},
4613 {GL_LINEAR
, "GL_LINEAR"},
4614 {GL_NEAREST_MIPMAP_NEAREST
, "GL_NEAREST_MIPMAP_NEAREST"},
4615 {GL_LINEAR_MIPMAP_NEAREST
, "GL_LINEAR_MIPMAP_NEAREST"},
4616 {GL_NEAREST_MIPMAP_LINEAR
, "GL_NEAREST_MIPMAP_LINEAR"},
4617 {GL_LINEAR_MIPMAP_LINEAR
, "GL_LINEAR_MIPMAP_LINEAR"},
4619 return GLES2Util::GetQualifiedEnumString(string_table
,
4620 arraysize(string_table
), value
);
4623 std::string
GLES2Util::GetStringTextureParameter(uint32_t value
) {
4624 static const EnumToString string_table
[] = {
4625 {GL_TEXTURE_MAG_FILTER
, "GL_TEXTURE_MAG_FILTER"},
4626 {GL_TEXTURE_MIN_FILTER
, "GL_TEXTURE_MIN_FILTER"},
4627 {GL_TEXTURE_POOL_CHROMIUM
, "GL_TEXTURE_POOL_CHROMIUM"},
4628 {GL_TEXTURE_WRAP_S
, "GL_TEXTURE_WRAP_S"},
4629 {GL_TEXTURE_WRAP_T
, "GL_TEXTURE_WRAP_T"},
4630 {GL_TEXTURE_BASE_LEVEL
, "GL_TEXTURE_BASE_LEVEL"},
4631 {GL_TEXTURE_COMPARE_FUNC
, "GL_TEXTURE_COMPARE_FUNC"},
4632 {GL_TEXTURE_COMPARE_MODE
, "GL_TEXTURE_COMPARE_MODE"},
4633 {GL_TEXTURE_IMMUTABLE_FORMAT
, "GL_TEXTURE_IMMUTABLE_FORMAT"},
4634 {GL_TEXTURE_IMMUTABLE_LEVELS
, "GL_TEXTURE_IMMUTABLE_LEVELS"},
4635 {GL_TEXTURE_MAX_LEVEL
, "GL_TEXTURE_MAX_LEVEL"},
4636 {GL_TEXTURE_MAX_LOD
, "GL_TEXTURE_MAX_LOD"},
4637 {GL_TEXTURE_MIN_LOD
, "GL_TEXTURE_MIN_LOD"},
4638 {GL_TEXTURE_WRAP_R
, "GL_TEXTURE_WRAP_R"},
4640 return GLES2Util::GetQualifiedEnumString(string_table
,
4641 arraysize(string_table
), value
);
4644 std::string
GLES2Util::GetStringTexturePool(uint32_t value
) {
4645 static const EnumToString string_table
[] = {
4646 {GL_TEXTURE_POOL_MANAGED_CHROMIUM
, "GL_TEXTURE_POOL_MANAGED_CHROMIUM"},
4647 {GL_TEXTURE_POOL_UNMANAGED_CHROMIUM
,
4648 "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM"},
4650 return GLES2Util::GetQualifiedEnumString(string_table
,
4651 arraysize(string_table
), value
);
4654 std::string
GLES2Util::GetStringTextureTarget(uint32_t value
) {
4655 static const EnumToString string_table
[] = {
4656 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
4657 {GL_TEXTURE_CUBE_MAP_POSITIVE_X
, "GL_TEXTURE_CUBE_MAP_POSITIVE_X"},
4658 {GL_TEXTURE_CUBE_MAP_NEGATIVE_X
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X"},
4659 {GL_TEXTURE_CUBE_MAP_POSITIVE_Y
, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y"},
4660 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y"},
4661 {GL_TEXTURE_CUBE_MAP_POSITIVE_Z
, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z"},
4662 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z"},
4664 return GLES2Util::GetQualifiedEnumString(string_table
,
4665 arraysize(string_table
), value
);
4668 std::string
GLES2Util::GetStringTextureUsage(uint32_t value
) {
4669 static const EnumToString string_table
[] = {
4670 {GL_NONE
, "GL_NONE"},
4671 {GL_FRAMEBUFFER_ATTACHMENT_ANGLE
, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE"},
4673 return GLES2Util::GetQualifiedEnumString(string_table
,
4674 arraysize(string_table
), value
);
4677 std::string
GLES2Util::GetStringTextureWrapMode(uint32_t value
) {
4678 static const EnumToString string_table
[] = {
4679 {GL_CLAMP_TO_EDGE
, "GL_CLAMP_TO_EDGE"},
4680 {GL_MIRRORED_REPEAT
, "GL_MIRRORED_REPEAT"},
4681 {GL_REPEAT
, "GL_REPEAT"},
4683 return GLES2Util::GetQualifiedEnumString(string_table
,
4684 arraysize(string_table
), value
);
4687 std::string
GLES2Util::GetStringTransformFeedbackBindTarget(uint32_t value
) {
4688 static const EnumToString string_table
[] = {
4689 {GL_TRANSFORM_FEEDBACK
, "GL_TRANSFORM_FEEDBACK"},
4691 return GLES2Util::GetQualifiedEnumString(string_table
,
4692 arraysize(string_table
), value
);
4695 std::string
GLES2Util::GetStringTransformFeedbackPrimitiveMode(uint32_t value
) {
4696 static const EnumToString string_table
[] = {
4697 {GL_POINTS
, "GL_POINTS"},
4698 {GL_LINES
, "GL_LINES"},
4699 {GL_TRIANGLES
, "GL_TRIANGLES"},
4701 return GLES2Util::GetQualifiedEnumString(string_table
,
4702 arraysize(string_table
), value
);
4705 std::string
GLES2Util::GetStringUniformBlockParameter(uint32_t value
) {
4706 static const EnumToString string_table
[] = {
4707 {GL_UNIFORM_BLOCK_BINDING
, "GL_UNIFORM_BLOCK_BINDING"},
4708 {GL_UNIFORM_BLOCK_DATA_SIZE
, "GL_UNIFORM_BLOCK_DATA_SIZE"},
4709 {GL_UNIFORM_BLOCK_NAME_LENGTH
, "GL_UNIFORM_BLOCK_NAME_LENGTH"},
4710 {GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS
, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS"},
4711 {GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
,
4712 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES"},
4713 {GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
,
4714 "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER"},
4715 {GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
,
4716 "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER"},
4718 return GLES2Util::GetQualifiedEnumString(string_table
,
4719 arraysize(string_table
), value
);
4722 std::string
GLES2Util::GetStringUniformParameter(uint32_t value
) {
4723 static const EnumToString string_table
[] = {
4724 {GL_UNIFORM_SIZE
, "GL_UNIFORM_SIZE"},
4725 {GL_UNIFORM_TYPE
, "GL_UNIFORM_TYPE"},
4726 {GL_UNIFORM_NAME_LENGTH
, "GL_UNIFORM_NAME_LENGTH"},
4727 {GL_UNIFORM_BLOCK_INDEX
, "GL_UNIFORM_BLOCK_INDEX"},
4728 {GL_UNIFORM_OFFSET
, "GL_UNIFORM_OFFSET"},
4729 {GL_UNIFORM_ARRAY_STRIDE
, "GL_UNIFORM_ARRAY_STRIDE"},
4730 {GL_UNIFORM_MATRIX_STRIDE
, "GL_UNIFORM_MATRIX_STRIDE"},
4731 {GL_UNIFORM_IS_ROW_MAJOR
, "GL_UNIFORM_IS_ROW_MAJOR"},
4733 return GLES2Util::GetQualifiedEnumString(string_table
,
4734 arraysize(string_table
), value
);
4737 std::string
GLES2Util::GetStringValueBufferTarget(uint32_t value
) {
4738 static const EnumToString string_table
[] = {
4739 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM
,
4740 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"},
4742 return GLES2Util::GetQualifiedEnumString(string_table
,
4743 arraysize(string_table
), value
);
4746 std::string
GLES2Util::GetStringVertexAttribIType(uint32_t value
) {
4747 static const EnumToString string_table
[] = {
4748 {GL_BYTE
, "GL_BYTE"}, {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4749 {GL_SHORT
, "GL_SHORT"}, {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4750 {GL_INT
, "GL_INT"}, {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4752 return GLES2Util::GetQualifiedEnumString(string_table
,
4753 arraysize(string_table
), value
);
4756 std::string
GLES2Util::GetStringVertexAttribType(uint32_t value
) {
4757 static const EnumToString string_table
[] = {
4758 {GL_BYTE
, "GL_BYTE"},
4759 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4760 {GL_SHORT
, "GL_SHORT"},
4761 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4762 {GL_FLOAT
, "GL_FLOAT"},
4764 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4765 {GL_HALF_FLOAT
, "GL_HALF_FLOAT"},
4766 {GL_INT_2_10_10_10_REV
, "GL_INT_2_10_10_10_REV"},
4767 {GL_UNSIGNED_INT_2_10_10_10_REV
, "GL_UNSIGNED_INT_2_10_10_10_REV"},
4769 return GLES2Util::GetQualifiedEnumString(string_table
,
4770 arraysize(string_table
), value
);
4773 std::string
GLES2Util::GetStringVertexAttribute(uint32_t value
) {
4774 static const EnumToString string_table
[] = {
4775 {GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED"},
4776 {GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
,
4777 "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING"},
4778 {GL_VERTEX_ATTRIB_ARRAY_ENABLED
, "GL_VERTEX_ATTRIB_ARRAY_ENABLED"},
4779 {GL_VERTEX_ATTRIB_ARRAY_SIZE
, "GL_VERTEX_ATTRIB_ARRAY_SIZE"},
4780 {GL_VERTEX_ATTRIB_ARRAY_STRIDE
, "GL_VERTEX_ATTRIB_ARRAY_STRIDE"},
4781 {GL_VERTEX_ATTRIB_ARRAY_TYPE
, "GL_VERTEX_ATTRIB_ARRAY_TYPE"},
4782 {GL_CURRENT_VERTEX_ATTRIB
, "GL_CURRENT_VERTEX_ATTRIB"},
4783 {GL_VERTEX_ATTRIB_ARRAY_INTEGER
, "GL_VERTEX_ATTRIB_ARRAY_INTEGER"},
4784 {GL_VERTEX_ATTRIB_ARRAY_DIVISOR
, "GL_VERTEX_ATTRIB_ARRAY_DIVISOR"},
4786 return GLES2Util::GetQualifiedEnumString(string_table
,
4787 arraysize(string_table
), value
);
4790 std::string
GLES2Util::GetStringVertexPointer(uint32_t value
) {
4791 static const EnumToString string_table
[] = {
4792 {GL_VERTEX_ATTRIB_ARRAY_POINTER
, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
4794 return GLES2Util::GetQualifiedEnumString(string_table
,
4795 arraysize(string_table
), value
);
4798 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_