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 0x78FB, "GL_RGB_YCBCR_422_CHROMIUM",
259 0x8DF8, "GL_SHADER_BINARY_FORMATS",
262 0x8DF9, "GL_NUM_SHADER_BINARY_FORMATS",
265 0x826D, "GL_DEBUG_GROUP_STACK_DEPTH_KHR",
268 0x8E75, "GL_TESS_CONTROL_OUTPUT_VERTICES_EXT",
271 0x826B, "GL_DEBUG_SEVERITY_NOTIFICATION_KHR",
274 0x826C, "GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR",
277 0x8B59, "GL_BOOL_VEC4",
280 0x826A, "GL_DEBUG_TYPE_POP_GROUP_KHR",
283 0x8B57, "GL_BOOL_VEC2",
286 0x8DF1, "GL_MEDIUM_FLOAT",
289 0x8B55, "GL_INT_VEC4",
292 0x8B54, "GL_INT_VEC3",
295 0x8DF4, "GL_MEDIUM_INT",
298 0x8DF5, "GL_HIGH_INT",
301 0x8B51, "GL_FLOAT_VEC3",
304 0x8B50, "GL_FLOAT_VEC2",
307 0x806D, "GL_UNPACK_SKIP_IMAGES",
310 0x806E, "GL_UNPACK_IMAGE_HEIGHT",
313 0x806F, "GL_TEXTURE_3D_OES",
316 0x92E7, "GL_IS_PER_PATCH_EXT",
319 0x92E0, "GL_DEBUG_OUTPUT_KHR",
322 0x806A, "GL_TEXTURE_BINDING_3D_OES",
328 0x8CE3, "GL_COLOR_ATTACHMENT3_EXT",
331 0x9274, "GL_COMPRESSED_RGB8_ETC2",
334 0x1904, "GL_GREEN_NV",
337 0x928D, "GL_DST_OUT_NV",
340 0x8069, "GL_TEXTURE_BINDING_2D",
343 0x8A2E, "GL_MAX_COMBINED_UNIFORM_BLOCKS",
346 0x8F96, "GL_RGB8_SNORM",
349 0x8260, "GL_UNDEFINED_VERTEX_EXT",
352 0x8261, "GL_NO_RESET_NOTIFICATION_KHR",
355 0x0D02, "GL_PACK_ROW_LENGTH",
358 0x8DFA, "GL_SHADER_COMPILER",
361 0x8DFB, "GL_MAX_VERTEX_UNIFORM_VECTORS",
364 0x8DFC, "GL_MAX_VARYING_VECTORS",
367 0x8B5C, "GL_FLOAT_MAT4",
370 0x8B5B, "GL_FLOAT_MAT3",
373 0x8268, "GL_DEBUG_TYPE_MARKER_KHR",
376 0x8269, "GL_DEBUG_TYPE_PUSH_GROUP_KHR",
379 0x1905, "GL_BLUE_NV",
382 0x87FF, "GL_PROGRAM_BINARY_FORMATS_OES",
385 0x87FE, "GL_NUM_PROGRAM_BINARY_FORMATS_OES",
388 0x8A41, "GL_UNIFORM_BLOCK_NAME_LENGTH",
391 0x2600, "GL_NEAREST",
397 0x8C03, "GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",
400 0x821B, "GL_MAJOR_VERSION",
403 0x821A, "GL_DEPTH_STENCIL_ATTACHMENT",
406 0x8A40, "GL_UNIFORM_BLOCK_DATA_SIZE",
409 0x821D, "GL_NUM_EXTENSIONS",
412 0x88BB, "GL_BUFFER_ACCESS_OES",
415 0x88BC, "GL_BUFFER_MAPPED_OES",
418 0x88BD, "GL_BUFFER_MAP_POINTER_OES",
421 0x88BF, "GL_TIME_ELAPSED_EXT",
424 0x8A46, "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",
427 0x6003, "GL_GET_ERROR_QUERY_CHROMIUM",
430 0x8F94, "GL_R8_SNORM",
433 0x0C10, "GL_SCISSOR_BOX",
436 0x0C11, "GL_SCISSOR_TEST",
439 0x1700, "GL_PATH_MODELVIEW_CHROMIUM",
442 0x80000000, "GL_MULTISAMPLE_BUFFER_BIT7_QCOM",
445 0x94F8, "GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL",
448 0x90a4, "GL_ROUND_CHROMIUM",
451 0x8A48, "GL_TEXTURE_SRGB_DECODE_EXT",
454 0x300E, "GL_CONTEXT_LOST",
457 0x90a3, "GL_SQUARE_CHROMIUM",
460 0x02000000, "GL_MULTISAMPLE_BUFFER_BIT1_QCOM",
463 0x8C2F, "GL_ANY_SAMPLES_PASSED_EXT",
466 0x8BD2, "GL_TEXTURE_WIDTH_QCOM",
469 0x8C2D, "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT",
472 0x8C2C, "GL_TEXTURE_BINDING_BUFFER_EXT",
475 0x8C2B, "GL_MAX_TEXTURE_BUFFER_SIZE_EXT",
478 0x8C2A, "GL_TEXTURE_BUFFER_EXT",
481 0x8BD7, "GL_TEXTURE_TYPE_QCOM",
484 0x8B8D, "GL_CURRENT_PROGRAM",
487 0x8BD9, "GL_TEXTURE_NUM_LEVELS_QCOM",
490 0x00200000, "GL_STENCIL_BUFFER_BIT5_QCOM",
493 0x8D9F, "GL_INT_2_10_10_10_REV",
496 0x8B8A, "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH",
499 0x8B8B, "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES",
502 0x8B8C, "GL_SHADING_LANGUAGE_VERSION",
505 0x8BDA, "GL_TEXTURE_TARGET_QCOM",
508 0x8BDB, "GL_TEXTURE_OBJECT_VALID_QCOM",
511 0x8BDC, "GL_STATE_RESTORE",
514 0x8B88, "GL_SHADER_SOURCE_LENGTH",
517 0x8B89, "GL_ACTIVE_ATTRIBUTES",
520 0x93C9, "GL_COMPRESSED_RGBA_ASTC_6x6x6_OES",
523 0x93C8, "GL_COMPRESSED_RGBA_ASTC_6x6x5_OES",
526 0x8B84, "GL_INFO_LOG_LENGTH",
529 0x8B85, "GL_ATTACHED_SHADERS",
532 0x8B86, "GL_ACTIVE_UNIFORMS",
535 0x8B87, "GL_ACTIVE_UNIFORM_MAX_LENGTH",
538 0x8B80, "GL_DELETE_STATUS",
541 0x8B81, "GL_COMPILE_STATUS",
544 0x8B82, "GL_LINK_STATUS",
547 0x8B83, "GL_VALIDATE_STATUS",
550 0x9380, "GL_NUM_SAMPLE_COUNTS",
553 0x8D48, "GL_STENCIL_INDEX8",
556 0x8D46, "GL_STENCIL_INDEX1_OES",
559 0x8D47, "GL_STENCIL_INDEX4_OES",
562 0x8D44, "GL_RENDERBUFFER_INTERNAL_FORMAT",
565 0x00000100, "GL_DEPTH_BUFFER_BIT",
568 0x8D42, "GL_RENDERBUFFER_WIDTH",
571 0x8D43, "GL_RENDERBUFFER_HEIGHT",
574 0x8D40, "GL_FRAMEBUFFER",
577 0x8D41, "GL_RENDERBUFFER",
580 0x90B7, "GL_PATH_STENCIL_FUNC_CHROMIUM",
583 0x8A3A, "GL_UNIFORM_BLOCK_INDEX",
586 0x88B8, "GL_READ_ONLY",
592 0x90B9, "GL_PATH_STENCIL_VALUE_MASK_CHROMIUM",
595 0x90B8, "GL_PATH_STENCIL_REF_CHROMIUM",
598 0x93D3, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR",
601 0x1D00, "GL_FLAT_CHROMIUM",
604 0x9144, "GL_MAX_DEBUG_LOGGED_MESSAGES_KHR",
607 0x1801, "GL_DEPTH_EXT",
610 0x1800, "GL_COLOR_EXT",
613 0x1802, "GL_STENCIL_EXT",
616 0x9288, "GL_SRC_OVER_NV",
619 0x9120, "GL_BUFFER_MAP_LENGTH",
622 0x0B21, "GL_LINE_WIDTH",
625 0x9308, "GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT",
628 0x81A5, "GL_DEPTH_COMPONENT16",
631 0x81A6, "GL_DEPTH_COMPONENT24_OES",
634 0x81A7, "GL_DEPTH_COMPONENT32_OES",
637 0x88FD, "GL_VERTEX_ATTRIB_ARRAY_INTEGER",
640 0x88FE, "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",
643 0x88FF, "GL_MAX_ARRAY_TEXTURE_LAYERS",
646 0x8B6A, "GL_FLOAT_MAT4x3_NV",
649 0x93D0, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR",
652 0x9143, "GL_MAX_DEBUG_MESSAGE_LENGTH_KHR",
655 0x8DFD, "GL_MAX_FRAGMENT_UNIFORM_VECTORS",
658 0x9145, "GL_DEBUG_LOGGED_MESSAGES_KHR",
661 0x9146, "GL_DEBUG_SEVERITY_HIGH_KHR",
664 0x9147, "GL_DEBUG_SEVERITY_MEDIUM_KHR",
667 0x9148, "GL_DEBUG_SEVERITY_LOW_KHR",
670 0x8F63, "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT",
673 0x8F60, "GL_MALI_SHADER_BINARY_ARM",
676 0x8F61, "GL_MALI_PROGRAM_BINARY_ARM",
679 0x8F66, "GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM",
682 0x8F67, "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT",
685 0x8F64, "GL_SHADER_PIXEL_LOCAL_STORAGE_EXT",
688 0x8F65, "GL_FETCH_PER_SAMPLE_ARM",
691 0x92D3, "GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT",
694 0x87EE, "GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD",
697 0x822B, "GL_RG8_EXT",
700 0x822F, "GL_RG16F_EXT",
703 0x822D, "GL_R16F_EXT",
706 0x822E, "GL_R32F_EXT",
709 1, "GL_ES_VERSION_2_0",
712 0x84F9, "GL_DEPTH_STENCIL_OES",
715 0x82DB, "GL_TEXTURE_VIEW_MIN_LEVEL_EXT",
718 0x8368, "GL_UNSIGNED_INT_2_10_10_10_REV_EXT",
721 0x8819, "GL_LUMINANCE_ALPHA32F_EXT",
724 0x8818, "GL_LUMINANCE32F_EXT",
727 0x82DF, "GL_TEXTURE_IMMUTABLE_LEVELS",
730 0x8363, "GL_UNSIGNED_SHORT_5_6_5",
733 0x9051, "GL_IMAGE_BUFFER_EXT",
736 0x84F2, "GL_ALL_COMPLETED_NV",
739 0x8E5A, "GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT",
742 0x84F4, "GL_FENCE_CONDITION_NV",
745 0x8366, "GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT",
748 0x8365, "GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT",
751 0x84F7, "GL_COMMANDS_COMPLETED_CHROMIUM",
754 0x8F9C, "GL_SIGNED_NORMALIZED",
757 0x92D5, "GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT",
760 0x881E, "GL_LUMINANCE16F_EXT",
763 0x84FA, "GL_UNSIGNED_INT_24_8_OES",
766 0x0A, "GL_QUADRATIC_CURVE_TO_CHROMIUM",
769 0x92D4, "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT",
772 0x881A, "GL_RGBA16F_EXT",
775 0x84FE, "GL_TEXTURE_MAX_ANISOTROPY_EXT",
784 0x9317, "GL_MAX_FRAMEBUFFER_LAYERS_EXT",
790 0x8230, "GL_RG32F_EXT",
793 0x9312, "GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT",
796 0x9283, "GL_DISJOINT_NV",
799 0x8221, "GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED",
805 0x8B66, "GL_FLOAT_MAT2x4_NV",
808 0x8B67, "GL_FLOAT_MAT3x2_NV",
811 0x8E1E, "GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
814 0x8B62, "GL_SAMPLER_2D_SHADOW_EXT",
817 0x8B63, "GL_SAMPLER_2D_RECT_ARB",
820 0x8B60, "GL_SAMPLER_CUBE",
823 0x00001000, "GL_DEPTH_BUFFER_BIT4_QCOM",
826 0x8B68, "GL_FLOAT_MAT3x4_NV",
829 0x83F0, "GL_COMPRESSED_RGB_S3TC_DXT1_EXT",
832 0x8D6A, "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT",
835 0x00000080, "GL_COLOR_BUFFER_BIT7_QCOM",
838 0x88F0, "GL_DEPTH24_STENCIL8_OES",
841 0x8E1F, "GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
844 0x80A0, "GL_SAMPLE_COVERAGE",
847 0x0C, "GL_CUBIC_CURVE_TO_CHROMIUM",
850 0x928F, "GL_DST_ATOP_NV",
853 0x80A9, "GL_SAMPLES",
856 0x80A8, "GL_SAMPLE_BUFFERS",
859 0x0D55, "GL_ALPHA_BITS",
862 0x0D54, "GL_BLUE_BITS",
865 0x0D57, "GL_STENCIL_BITS",
868 0x0D56, "GL_DEPTH_BITS",
871 0x8CD5, "GL_FRAMEBUFFER_COMPLETE",
874 0x0D50, "GL_SUBPIXEL_BITS",
877 0x0D53, "GL_GREEN_BITS",
880 0x0D52, "GL_RED_BITS",
883 0x8037, "GL_POLYGON_OFFSET_FILL",
886 0x928C, "GL_SRC_OUT_NV",
889 0x8034, "GL_UNSIGNED_SHORT_5_5_5_1",
892 0x8033, "GL_UNSIGNED_SHORT_4_4_4_4",
895 0x928B, "GL_DST_IN_NV",
898 0x0305, "GL_ONE_MINUS_DST_ALPHA",
901 0x0304, "GL_DST_ALPHA",
904 0x0307, "GL_ONE_MINUS_DST_COLOR",
907 0x0306, "GL_DST_COLOR",
910 0x0301, "GL_ONE_MINUS_SRC_COLOR",
913 0x0300, "GL_SRC_COLOR",
916 0x0303, "GL_ONE_MINUS_SRC_ALPHA",
919 0x0302, "GL_SRC_ALPHA",
922 0x8212, "GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE",
925 0x0308, "GL_SRC_ALPHA_SATURATE",
928 0x2A00, "GL_POLYGON_OFFSET_UNITS",
931 0xFFFFFFFF, "GL_ALL_SHADER_BITS_EXT",
934 0x82DC, "GL_TEXTURE_VIEW_NUM_LEVELS_EXT",
937 0x8C29, "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT",
940 0x82DD, "GL_TEXTURE_VIEW_MIN_LAYER_EXT",
943 0x00800000, "GL_STENCIL_BUFFER_BIT7_QCOM",
946 0x82DE, "GL_TEXTURE_VIEW_NUM_LAYERS_EXT",
949 0x00020000, "GL_STENCIL_BUFFER_BIT1_QCOM",
952 0x8D00, "GL_DEPTH_ATTACHMENT",
955 0x8FA0, "GL_PERFMON_GLOBAL_MODE_QCOM",
958 0x8815, "GL_RGB32F_EXT",
961 0x8A35, "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH",
964 0x8814, "GL_RGBA32F_EXT",
967 0x6006, "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM",
970 0x9277, "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",
973 0x6004, "GL_COMMANDS_ISSUED_CHROMIUM",
976 0x813D, "GL_TEXTURE_MAX_LEVEL_APPLE",
979 0x8816, "GL_ALPHA32F_EXT",
982 0x813B, "GL_TEXTURE_MAX_LOD",
985 0x8CDD, "GL_FRAMEBUFFER_UNSUPPORTED",
988 0x8CDF, "GL_MAX_COLOR_ATTACHMENTS_EXT",
991 0x90F3, "GL_CONTEXT_ROBUST_ACCESS_KHR",
994 0x90F2, "GL_MAX_MULTIVIEW_BUFFERS_EXT",
997 0x90F1, "GL_MULTIVIEW_EXT",
1000 0x90F0, "GL_COLOR_ATTACHMENT_EXT",
1003 0x803C, "GL_ALPHA8_OES",
1006 0x8904, "GL_MIN_PROGRAM_TEXEL_OFFSET",
1009 0x84F5, "GL_TEXTURE_RECTANGLE_ARB",
1012 0x882A, "GL_DRAW_BUFFER5_EXT",
1015 0x8E7F, "GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
1018 0x80AA, "GL_SAMPLE_COVERAGE_VALUE",
1021 0x84F6, "GL_TEXTURE_BINDING_RECTANGLE_ARB",
1024 0x80AB, "GL_SAMPLE_COVERAGE_INVERT",
1027 0x8E7D, "GL_MAX_PATCH_VERTICES_EXT",
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_GPU_DISJOINT_EXT
, "GL_GPU_DISJOINT_EXT"},
3805 {GL_MAJOR_VERSION
, "GL_MAJOR_VERSION"},
3806 {GL_MAX_3D_TEXTURE_SIZE
, "GL_MAX_3D_TEXTURE_SIZE"},
3807 {GL_MAX_ARRAY_TEXTURE_LAYERS
, "GL_MAX_ARRAY_TEXTURE_LAYERS"},
3808 {GL_MAX_COLOR_ATTACHMENTS
, "GL_MAX_COLOR_ATTACHMENTS"},
3809 {GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS
,
3810 "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS"},
3811 {GL_MAX_COMBINED_UNIFORM_BLOCKS
, "GL_MAX_COMBINED_UNIFORM_BLOCKS"},
3812 {GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS
,
3813 "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS"},
3814 {GL_MAX_DRAW_BUFFERS
, "GL_MAX_DRAW_BUFFERS"},
3815 {GL_MAX_ELEMENT_INDEX
, "GL_MAX_ELEMENT_INDEX"},
3816 {GL_MAX_ELEMENTS_INDICES
, "GL_MAX_ELEMENTS_INDICES"},
3817 {GL_MAX_ELEMENTS_VERTICES
, "GL_MAX_ELEMENTS_VERTICES"},
3818 {GL_MAX_FRAGMENT_INPUT_COMPONENTS
, "GL_MAX_FRAGMENT_INPUT_COMPONENTS"},
3819 {GL_MAX_FRAGMENT_UNIFORM_BLOCKS
, "GL_MAX_FRAGMENT_UNIFORM_BLOCKS"},
3820 {GL_MAX_FRAGMENT_UNIFORM_COMPONENTS
,
3821 "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS"},
3822 {GL_MAX_PROGRAM_TEXEL_OFFSET
, "GL_MAX_PROGRAM_TEXEL_OFFSET"},
3823 {GL_MAX_SAMPLES
, "GL_MAX_SAMPLES"},
3824 {GL_MAX_SERVER_WAIT_TIMEOUT
, "GL_MAX_SERVER_WAIT_TIMEOUT"},
3825 {GL_MAX_TEXTURE_LOD_BIAS
, "GL_MAX_TEXTURE_LOD_BIAS"},
3826 {GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS
,
3827 "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS"},
3828 {GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS
,
3829 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS"},
3830 {GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS
,
3831 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS"},
3832 {GL_MAX_UNIFORM_BLOCK_SIZE
, "GL_MAX_UNIFORM_BLOCK_SIZE"},
3833 {GL_MAX_UNIFORM_BUFFER_BINDINGS
, "GL_MAX_UNIFORM_BUFFER_BINDINGS"},
3834 {GL_MAX_VARYING_COMPONENTS
, "GL_MAX_VARYING_COMPONENTS"},
3835 {GL_MAX_VERTEX_OUTPUT_COMPONENTS
, "GL_MAX_VERTEX_OUTPUT_COMPONENTS"},
3836 {GL_MAX_VERTEX_UNIFORM_BLOCKS
, "GL_MAX_VERTEX_UNIFORM_BLOCKS"},
3837 {GL_MAX_VERTEX_UNIFORM_COMPONENTS
, "GL_MAX_VERTEX_UNIFORM_COMPONENTS"},
3838 {GL_MIN_PROGRAM_TEXEL_OFFSET
, "GL_MIN_PROGRAM_TEXEL_OFFSET"},
3839 {GL_MINOR_VERSION
, "GL_MINOR_VERSION"},
3840 {GL_NUM_EXTENSIONS
, "GL_NUM_EXTENSIONS"},
3841 {GL_NUM_PROGRAM_BINARY_FORMATS
, "GL_NUM_PROGRAM_BINARY_FORMATS"},
3842 {GL_PACK_ROW_LENGTH
, "GL_PACK_ROW_LENGTH"},
3843 {GL_PACK_SKIP_PIXELS
, "GL_PACK_SKIP_PIXELS"},
3844 {GL_PACK_SKIP_ROWS
, "GL_PACK_SKIP_ROWS"},
3845 {GL_PIXEL_PACK_BUFFER_BINDING
, "GL_PIXEL_PACK_BUFFER_BINDING"},
3846 {GL_PIXEL_UNPACK_BUFFER_BINDING
, "GL_PIXEL_UNPACK_BUFFER_BINDING"},
3847 {GL_PROGRAM_BINARY_FORMATS
, "GL_PROGRAM_BINARY_FORMATS"},
3848 {GL_READ_BUFFER
, "GL_READ_BUFFER"},
3849 {GL_READ_FRAMEBUFFER_BINDING
, "GL_READ_FRAMEBUFFER_BINDING"},
3850 {GL_SAMPLER_BINDING
, "GL_SAMPLER_BINDING"},
3851 {GL_TIMESTAMP_EXT
, "GL_TIMESTAMP_EXT"},
3852 {GL_TEXTURE_BINDING_2D_ARRAY
, "GL_TEXTURE_BINDING_2D_ARRAY"},
3853 {GL_TEXTURE_BINDING_3D
, "GL_TEXTURE_BINDING_3D"},
3854 {GL_TRANSFORM_FEEDBACK_BINDING
, "GL_TRANSFORM_FEEDBACK_BINDING"},
3855 {GL_TRANSFORM_FEEDBACK_ACTIVE
, "GL_TRANSFORM_FEEDBACK_ACTIVE"},
3856 {GL_TRANSFORM_FEEDBACK_BUFFER_BINDING
,
3857 "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING"},
3858 {GL_TRANSFORM_FEEDBACK_PAUSED
, "GL_TRANSFORM_FEEDBACK_PAUSED"},
3859 {GL_TRANSFORM_FEEDBACK_BUFFER_SIZE
, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE"},
3860 {GL_TRANSFORM_FEEDBACK_BUFFER_START
,
3861 "GL_TRANSFORM_FEEDBACK_BUFFER_START"},
3862 {GL_UNIFORM_BUFFER_BINDING
, "GL_UNIFORM_BUFFER_BINDING"},
3863 {GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT
,
3864 "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT"},
3865 {GL_UNIFORM_BUFFER_SIZE
, "GL_UNIFORM_BUFFER_SIZE"},
3866 {GL_UNIFORM_BUFFER_START
, "GL_UNIFORM_BUFFER_START"},
3867 {GL_UNPACK_IMAGE_HEIGHT
, "GL_UNPACK_IMAGE_HEIGHT"},
3868 {GL_UNPACK_ROW_LENGTH
, "GL_UNPACK_ROW_LENGTH"},
3869 {GL_UNPACK_SKIP_IMAGES
, "GL_UNPACK_SKIP_IMAGES"},
3870 {GL_UNPACK_SKIP_PIXELS
, "GL_UNPACK_SKIP_PIXELS"},
3871 {GL_UNPACK_SKIP_ROWS
, "GL_UNPACK_SKIP_ROWS"},
3873 return GLES2Util::GetQualifiedEnumString(string_table
,
3874 arraysize(string_table
), value
);
3877 std::string
GLES2Util::GetStringGetMaxIndexType(uint32_t value
) {
3878 static const EnumToString string_table
[] = {
3879 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
3880 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
3881 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
3883 return GLES2Util::GetQualifiedEnumString(string_table
,
3884 arraysize(string_table
), value
);
3887 std::string
GLES2Util::GetStringGetTexParamTarget(uint32_t value
) {
3888 static const EnumToString string_table
[] = {
3889 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
3890 {GL_TEXTURE_CUBE_MAP
, "GL_TEXTURE_CUBE_MAP"},
3891 {GL_TEXTURE_2D_ARRAY
, "GL_TEXTURE_2D_ARRAY"},
3892 {GL_TEXTURE_3D
, "GL_TEXTURE_3D"},
3894 return GLES2Util::GetQualifiedEnumString(string_table
,
3895 arraysize(string_table
), value
);
3898 std::string
GLES2Util::GetStringHintMode(uint32_t value
) {
3899 static const EnumToString string_table
[] = {
3900 {GL_FASTEST
, "GL_FASTEST"},
3901 {GL_NICEST
, "GL_NICEST"},
3902 {GL_DONT_CARE
, "GL_DONT_CARE"},
3904 return GLES2Util::GetQualifiedEnumString(string_table
,
3905 arraysize(string_table
), value
);
3908 std::string
GLES2Util::GetStringHintTarget(uint32_t value
) {
3909 static const EnumToString string_table
[] = {
3910 {GL_GENERATE_MIPMAP_HINT
, "GL_GENERATE_MIPMAP_HINT"},
3911 {GL_FRAGMENT_SHADER_DERIVATIVE_HINT
,
3912 "GL_FRAGMENT_SHADER_DERIVATIVE_HINT"},
3914 return GLES2Util::GetQualifiedEnumString(string_table
,
3915 arraysize(string_table
), value
);
3918 std::string
GLES2Util::GetStringImageInternalFormat(uint32_t value
) {
3919 static const EnumToString string_table
[] = {
3921 {GL_RGB_YUV_420_CHROMIUM
, "GL_RGB_YUV_420_CHROMIUM"},
3922 {GL_RGB_YCBCR_422_CHROMIUM
, "GL_RGB_YCBCR_422_CHROMIUM"},
3923 {GL_RGBA
, "GL_RGBA"},
3925 return GLES2Util::GetQualifiedEnumString(string_table
,
3926 arraysize(string_table
), value
);
3929 std::string
GLES2Util::GetStringImageUsage(uint32_t value
) {
3930 static const EnumToString string_table
[] = {
3931 {GL_MAP_CHROMIUM
, "GL_MAP_CHROMIUM"},
3932 {GL_SCANOUT_CHROMIUM
, "GL_SCANOUT_CHROMIUM"},
3934 return GLES2Util::GetQualifiedEnumString(string_table
,
3935 arraysize(string_table
), value
);
3938 std::string
GLES2Util::GetStringIndexType(uint32_t value
) {
3939 static const EnumToString string_table
[] = {
3940 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
3941 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
3942 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
3944 return GLES2Util::GetQualifiedEnumString(string_table
,
3945 arraysize(string_table
), value
);
3948 std::string
GLES2Util::GetStringIndexedBufferTarget(uint32_t value
) {
3949 static const EnumToString string_table
[] = {
3950 {GL_TRANSFORM_FEEDBACK_BUFFER
, "GL_TRANSFORM_FEEDBACK_BUFFER"},
3951 {GL_UNIFORM_BUFFER
, "GL_UNIFORM_BUFFER"},
3953 return GLES2Util::GetQualifiedEnumString(string_table
,
3954 arraysize(string_table
), value
);
3957 std::string
GLES2Util::GetStringIndexedGLState(uint32_t value
) {
3958 static const EnumToString string_table
[] = {
3959 {GL_TRANSFORM_FEEDBACK_BUFFER_BINDING
,
3960 "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING"},
3961 {GL_TRANSFORM_FEEDBACK_BUFFER_SIZE
, "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE"},
3962 {GL_TRANSFORM_FEEDBACK_BUFFER_START
,
3963 "GL_TRANSFORM_FEEDBACK_BUFFER_START"},
3964 {GL_UNIFORM_BUFFER_BINDING
, "GL_UNIFORM_BUFFER_BINDING"},
3965 {GL_UNIFORM_BUFFER_SIZE
, "GL_UNIFORM_BUFFER_SIZE"},
3966 {GL_UNIFORM_BUFFER_START
, "GL_UNIFORM_BUFFER_START"},
3968 return GLES2Util::GetQualifiedEnumString(string_table
,
3969 arraysize(string_table
), value
);
3972 std::string
GLES2Util::GetStringInternalFormatParameter(uint32_t value
) {
3973 static const EnumToString string_table
[] = {
3974 {GL_NUM_SAMPLE_COUNTS
, "GL_NUM_SAMPLE_COUNTS"},
3975 {GL_SAMPLES
, "GL_SAMPLES"},
3977 return GLES2Util::GetQualifiedEnumString(string_table
,
3978 arraysize(string_table
), value
);
3981 std::string
GLES2Util::GetStringInvalidateFrameBufferTarget(uint32_t value
) {
3982 static const EnumToString string_table
[] = {
3983 {GL_FRAMEBUFFER
, "GL_FRAMEBUFFER"},
3985 return GLES2Util::GetQualifiedEnumString(string_table
,
3986 arraysize(string_table
), value
);
3989 std::string
GLES2Util::GetStringMapBufferAccess(uint32_t value
) {
3990 static const EnumToString string_table
[] = {
3991 {GL_MAP_READ_BIT
, "GL_MAP_READ_BIT"},
3992 {GL_MAP_WRITE_BIT
, "GL_MAP_WRITE_BIT"},
3993 {GL_MAP_INVALIDATE_RANGE_BIT
, "GL_MAP_INVALIDATE_RANGE_BIT"},
3994 {GL_MAP_INVALIDATE_BUFFER_BIT
, "GL_MAP_INVALIDATE_BUFFER_BIT"},
3995 {GL_MAP_FLUSH_EXPLICIT_BIT
, "GL_MAP_FLUSH_EXPLICIT_BIT"},
3996 {GL_MAP_UNSYNCHRONIZED_BIT
, "GL_MAP_UNSYNCHRONIZED_BIT"},
3998 return GLES2Util::GetQualifiedEnumString(string_table
,
3999 arraysize(string_table
), value
);
4002 std::string
GLES2Util::GetStringMatrixMode(uint32_t value
) {
4003 static const EnumToString string_table
[] = {
4004 {GL_PATH_PROJECTION_CHROMIUM
, "GL_PATH_PROJECTION_CHROMIUM"},
4005 {GL_PATH_MODELVIEW_CHROMIUM
, "GL_PATH_MODELVIEW_CHROMIUM"},
4007 return GLES2Util::GetQualifiedEnumString(string_table
,
4008 arraysize(string_table
), value
);
4011 std::string
GLES2Util::GetStringPathCoordType(uint32_t value
) {
4012 static const EnumToString string_table
[] = {
4013 {GL_BYTE
, "GL_BYTE"}, {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4014 {GL_SHORT
, "GL_SHORT"}, {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4015 {GL_FLOAT
, "GL_FLOAT"},
4017 return GLES2Util::GetQualifiedEnumString(string_table
,
4018 arraysize(string_table
), value
);
4021 std::string
GLES2Util::GetStringPathCoverMode(uint32_t value
) {
4022 static const EnumToString string_table
[] = {
4023 {GL_CONVEX_HULL_CHROMIUM
, "GL_CONVEX_HULL_CHROMIUM"},
4024 {GL_BOUNDING_BOX_CHROMIUM
, "GL_BOUNDING_BOX_CHROMIUM"},
4026 return GLES2Util::GetQualifiedEnumString(string_table
,
4027 arraysize(string_table
), value
);
4030 std::string
GLES2Util::GetStringPathFillMode(uint32_t value
) {
4031 static const EnumToString string_table
[] = {
4032 {GL_INVERT
, "GL_INVERT"},
4033 {GL_COUNT_UP_CHROMIUM
, "GL_COUNT_UP_CHROMIUM"},
4034 {GL_COUNT_DOWN_CHROMIUM
, "GL_COUNT_DOWN_CHROMIUM"},
4036 return GLES2Util::GetQualifiedEnumString(string_table
,
4037 arraysize(string_table
), value
);
4040 std::string
GLES2Util::GetStringPathParameter(uint32_t value
) {
4041 static const EnumToString string_table
[] = {
4042 {GL_PATH_STROKE_WIDTH_CHROMIUM
, "GL_PATH_STROKE_WIDTH_CHROMIUM"},
4043 {GL_PATH_END_CAPS_CHROMIUM
, "GL_PATH_END_CAPS_CHROMIUM"},
4044 {GL_PATH_JOIN_STYLE_CHROMIUM
, "GL_PATH_JOIN_STYLE_CHROMIUM"},
4045 {GL_PATH_MITER_LIMIT_CHROMIUM
, "GL_PATH_MITER_LIMIT_CHROMIUM"},
4046 {GL_PATH_STROKE_BOUND_CHROMIUM
, "GL_PATH_STROKE_BOUND_CHROMIUM"},
4048 return GLES2Util::GetQualifiedEnumString(string_table
,
4049 arraysize(string_table
), value
);
4052 std::string
GLES2Util::GetStringPixelStore(uint32_t value
) {
4053 static const EnumToString string_table
[] = {
4054 {GL_PACK_ALIGNMENT
, "GL_PACK_ALIGNMENT"},
4055 {GL_UNPACK_ALIGNMENT
, "GL_UNPACK_ALIGNMENT"},
4056 {GL_PACK_ROW_LENGTH
, "GL_PACK_ROW_LENGTH"},
4057 {GL_PACK_SKIP_PIXELS
, "GL_PACK_SKIP_PIXELS"},
4058 {GL_PACK_SKIP_ROWS
, "GL_PACK_SKIP_ROWS"},
4059 {GL_UNPACK_ROW_LENGTH
, "GL_UNPACK_ROW_LENGTH"},
4060 {GL_UNPACK_IMAGE_HEIGHT
, "GL_UNPACK_IMAGE_HEIGHT"},
4061 {GL_UNPACK_SKIP_PIXELS
, "GL_UNPACK_SKIP_PIXELS"},
4062 {GL_UNPACK_SKIP_ROWS
, "GL_UNPACK_SKIP_ROWS"},
4063 {GL_UNPACK_SKIP_IMAGES
, "GL_UNPACK_SKIP_IMAGES"},
4065 return GLES2Util::GetQualifiedEnumString(string_table
,
4066 arraysize(string_table
), value
);
4069 std::string
GLES2Util::GetStringPixelType(uint32_t value
) {
4070 static const EnumToString string_table
[] = {
4071 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4072 {GL_UNSIGNED_SHORT_5_6_5
, "GL_UNSIGNED_SHORT_5_6_5"},
4073 {GL_UNSIGNED_SHORT_4_4_4_4
, "GL_UNSIGNED_SHORT_4_4_4_4"},
4074 {GL_UNSIGNED_SHORT_5_5_5_1
, "GL_UNSIGNED_SHORT_5_5_5_1"},
4075 {GL_BYTE
, "GL_BYTE"},
4076 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4077 {GL_SHORT
, "GL_SHORT"},
4078 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4080 {GL_HALF_FLOAT
, "GL_HALF_FLOAT"},
4081 {GL_FLOAT
, "GL_FLOAT"},
4082 {GL_UNSIGNED_INT_2_10_10_10_REV
, "GL_UNSIGNED_INT_2_10_10_10_REV"},
4083 {GL_UNSIGNED_INT_10F_11F_11F_REV
, "GL_UNSIGNED_INT_10F_11F_11F_REV"},
4084 {GL_UNSIGNED_INT_5_9_9_9_REV
, "GL_UNSIGNED_INT_5_9_9_9_REV"},
4085 {GL_UNSIGNED_INT_24_8
, "GL_UNSIGNED_INT_24_8"},
4086 {GL_FLOAT_32_UNSIGNED_INT_24_8_REV
, "GL_FLOAT_32_UNSIGNED_INT_24_8_REV"},
4088 return GLES2Util::GetQualifiedEnumString(string_table
,
4089 arraysize(string_table
), value
);
4092 std::string
GLES2Util::GetStringProgramParameter(uint32_t value
) {
4093 static const EnumToString string_table
[] = {
4094 {GL_DELETE_STATUS
, "GL_DELETE_STATUS"},
4095 {GL_LINK_STATUS
, "GL_LINK_STATUS"},
4096 {GL_VALIDATE_STATUS
, "GL_VALIDATE_STATUS"},
4097 {GL_INFO_LOG_LENGTH
, "GL_INFO_LOG_LENGTH"},
4098 {GL_ATTACHED_SHADERS
, "GL_ATTACHED_SHADERS"},
4099 {GL_ACTIVE_ATTRIBUTES
, "GL_ACTIVE_ATTRIBUTES"},
4100 {GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
, "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH"},
4101 {GL_ACTIVE_UNIFORMS
, "GL_ACTIVE_UNIFORMS"},
4102 {GL_ACTIVE_UNIFORM_MAX_LENGTH
, "GL_ACTIVE_UNIFORM_MAX_LENGTH"},
4103 {GL_ACTIVE_UNIFORM_BLOCKS
, "GL_ACTIVE_UNIFORM_BLOCKS"},
4104 {GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH
,
4105 "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH"},
4106 {GL_TRANSFORM_FEEDBACK_BUFFER_MODE
, "GL_TRANSFORM_FEEDBACK_BUFFER_MODE"},
4107 {GL_TRANSFORM_FEEDBACK_VARYINGS
, "GL_TRANSFORM_FEEDBACK_VARYINGS"},
4108 {GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH
,
4109 "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH"},
4111 return GLES2Util::GetQualifiedEnumString(string_table
,
4112 arraysize(string_table
), value
);
4115 std::string
GLES2Util::GetStringQueryObjectParameter(uint32_t value
) {
4116 static const EnumToString string_table
[] = {
4117 {GL_QUERY_RESULT_EXT
, "GL_QUERY_RESULT_EXT"},
4118 {GL_QUERY_RESULT_AVAILABLE_EXT
, "GL_QUERY_RESULT_AVAILABLE_EXT"},
4120 return GLES2Util::GetQualifiedEnumString(string_table
,
4121 arraysize(string_table
), value
);
4124 std::string
GLES2Util::GetStringQueryParameter(uint32_t value
) {
4125 static const EnumToString string_table
[] = {
4126 {GL_CURRENT_QUERY_EXT
, "GL_CURRENT_QUERY_EXT"},
4128 return GLES2Util::GetQualifiedEnumString(string_table
,
4129 arraysize(string_table
), value
);
4132 std::string
GLES2Util::GetStringQueryTarget(uint32_t value
) {
4133 static const EnumToString string_table
[] = {
4134 {GL_ANY_SAMPLES_PASSED_EXT
, "GL_ANY_SAMPLES_PASSED_EXT"},
4135 {GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT
,
4136 "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT"},
4137 {GL_COMMANDS_ISSUED_CHROMIUM
, "GL_COMMANDS_ISSUED_CHROMIUM"},
4138 {GL_LATENCY_QUERY_CHROMIUM
, "GL_LATENCY_QUERY_CHROMIUM"},
4139 {GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM
,
4140 "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM"},
4141 {GL_COMMANDS_COMPLETED_CHROMIUM
, "GL_COMMANDS_COMPLETED_CHROMIUM"},
4143 return GLES2Util::GetQualifiedEnumString(string_table
,
4144 arraysize(string_table
), value
);
4147 std::string
GLES2Util::GetStringReadBuffer(uint32_t value
) {
4148 static const EnumToString string_table
[] = {
4149 {GL_NONE
, "GL_NONE"},
4150 {GL_BACK
, "GL_BACK"},
4151 {GL_COLOR_ATTACHMENT0
, "GL_COLOR_ATTACHMENT0"},
4152 {GL_COLOR_ATTACHMENT1
, "GL_COLOR_ATTACHMENT1"},
4153 {GL_COLOR_ATTACHMENT2
, "GL_COLOR_ATTACHMENT2"},
4154 {GL_COLOR_ATTACHMENT3
, "GL_COLOR_ATTACHMENT3"},
4155 {GL_COLOR_ATTACHMENT4
, "GL_COLOR_ATTACHMENT4"},
4156 {GL_COLOR_ATTACHMENT5
, "GL_COLOR_ATTACHMENT5"},
4157 {GL_COLOR_ATTACHMENT6
, "GL_COLOR_ATTACHMENT6"},
4158 {GL_COLOR_ATTACHMENT7
, "GL_COLOR_ATTACHMENT7"},
4159 {GL_COLOR_ATTACHMENT8
, "GL_COLOR_ATTACHMENT8"},
4160 {GL_COLOR_ATTACHMENT9
, "GL_COLOR_ATTACHMENT9"},
4161 {GL_COLOR_ATTACHMENT10
, "GL_COLOR_ATTACHMENT10"},
4162 {GL_COLOR_ATTACHMENT11
, "GL_COLOR_ATTACHMENT11"},
4163 {GL_COLOR_ATTACHMENT12
, "GL_COLOR_ATTACHMENT12"},
4164 {GL_COLOR_ATTACHMENT13
, "GL_COLOR_ATTACHMENT13"},
4165 {GL_COLOR_ATTACHMENT14
, "GL_COLOR_ATTACHMENT14"},
4166 {GL_COLOR_ATTACHMENT15
, "GL_COLOR_ATTACHMENT15"},
4168 return GLES2Util::GetQualifiedEnumString(string_table
,
4169 arraysize(string_table
), value
);
4172 std::string
GLES2Util::GetStringReadPixelFormat(uint32_t value
) {
4173 static const EnumToString string_table
[] = {
4174 {GL_ALPHA
, "GL_ALPHA"},
4176 {GL_RGBA
, "GL_RGBA"},
4178 {GL_RED_INTEGER
, "GL_RED_INTEGER"},
4180 {GL_RG_INTEGER
, "GL_RG_INTEGER"},
4181 {GL_RGB_INTEGER
, "GL_RGB_INTEGER"},
4182 {GL_RGBA_INTEGER
, "GL_RGBA_INTEGER"},
4184 return GLES2Util::GetQualifiedEnumString(string_table
,
4185 arraysize(string_table
), value
);
4188 std::string
GLES2Util::GetStringReadPixelType(uint32_t value
) {
4189 static const EnumToString string_table
[] = {
4190 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4191 {GL_UNSIGNED_SHORT_5_6_5
, "GL_UNSIGNED_SHORT_5_6_5"},
4192 {GL_UNSIGNED_SHORT_4_4_4_4
, "GL_UNSIGNED_SHORT_4_4_4_4"},
4193 {GL_UNSIGNED_SHORT_5_5_5_1
, "GL_UNSIGNED_SHORT_5_5_5_1"},
4194 {GL_BYTE
, "GL_BYTE"},
4195 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4196 {GL_SHORT
, "GL_SHORT"},
4197 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4199 {GL_HALF_FLOAT
, "GL_HALF_FLOAT"},
4200 {GL_FLOAT
, "GL_FLOAT"},
4201 {GL_UNSIGNED_INT_2_10_10_10_REV
, "GL_UNSIGNED_INT_2_10_10_10_REV"},
4203 return GLES2Util::GetQualifiedEnumString(string_table
,
4204 arraysize(string_table
), value
);
4207 std::string
GLES2Util::GetStringRenderBufferFormat(uint32_t value
) {
4208 static const EnumToString string_table
[] = {
4209 {GL_RGBA4
, "GL_RGBA4"},
4210 {GL_RGB565
, "GL_RGB565"},
4211 {GL_RGB5_A1
, "GL_RGB5_A1"},
4212 {GL_DEPTH_COMPONENT16
, "GL_DEPTH_COMPONENT16"},
4213 {GL_STENCIL_INDEX8
, "GL_STENCIL_INDEX8"},
4215 {GL_R8UI
, "GL_R8UI"},
4217 {GL_R16UI
, "GL_R16UI"},
4218 {GL_R16I
, "GL_R16I"},
4219 {GL_R32UI
, "GL_R32UI"},
4220 {GL_R32I
, "GL_R32I"},
4222 {GL_RG8UI
, "GL_RG8UI"},
4223 {GL_RG8I
, "GL_RG8I"},
4224 {GL_RG16UI
, "GL_RG16UI"},
4225 {GL_RG16I
, "GL_RG16I"},
4226 {GL_RG32UI
, "GL_RG32UI"},
4227 {GL_RG32I
, "GL_RG32I"},
4228 {GL_RGB8
, "GL_RGB8"},
4229 {GL_RGBA8
, "GL_RGBA8"},
4230 {GL_SRGB8_ALPHA8
, "GL_SRGB8_ALPHA8"},
4231 {GL_RGB10_A2
, "GL_RGB10_A2"},
4232 {GL_RGBA8UI
, "GL_RGBA8UI"},
4233 {GL_RGBA8I
, "GL_RGBA8I"},
4234 {GL_RGB10_A2UI
, "GL_RGB10_A2UI"},
4235 {GL_RGBA16UI
, "GL_RGBA16UI"},
4236 {GL_RGBA16I
, "GL_RGBA16I"},
4237 {GL_RGBA32UI
, "GL_RGBA32UI"},
4238 {GL_RGBA32I
, "GL_RGBA32I"},
4239 {GL_DEPTH_COMPONENT24
, "GL_DEPTH_COMPONENT24"},
4240 {GL_DEPTH_COMPONENT32F
, "GL_DEPTH_COMPONENT32F"},
4241 {GL_DEPTH24_STENCIL8
, "GL_DEPTH24_STENCIL8"},
4242 {GL_DEPTH32F_STENCIL8
, "GL_DEPTH32F_STENCIL8"},
4244 return GLES2Util::GetQualifiedEnumString(string_table
,
4245 arraysize(string_table
), value
);
4248 std::string
GLES2Util::GetStringRenderBufferParameter(uint32_t value
) {
4249 static const EnumToString string_table
[] = {
4250 {GL_RENDERBUFFER_RED_SIZE
, "GL_RENDERBUFFER_RED_SIZE"},
4251 {GL_RENDERBUFFER_GREEN_SIZE
, "GL_RENDERBUFFER_GREEN_SIZE"},
4252 {GL_RENDERBUFFER_BLUE_SIZE
, "GL_RENDERBUFFER_BLUE_SIZE"},
4253 {GL_RENDERBUFFER_ALPHA_SIZE
, "GL_RENDERBUFFER_ALPHA_SIZE"},
4254 {GL_RENDERBUFFER_DEPTH_SIZE
, "GL_RENDERBUFFER_DEPTH_SIZE"},
4255 {GL_RENDERBUFFER_STENCIL_SIZE
, "GL_RENDERBUFFER_STENCIL_SIZE"},
4256 {GL_RENDERBUFFER_WIDTH
, "GL_RENDERBUFFER_WIDTH"},
4257 {GL_RENDERBUFFER_HEIGHT
, "GL_RENDERBUFFER_HEIGHT"},
4258 {GL_RENDERBUFFER_INTERNAL_FORMAT
, "GL_RENDERBUFFER_INTERNAL_FORMAT"},
4259 {GL_RENDERBUFFER_SAMPLES
, "GL_RENDERBUFFER_SAMPLES"},
4261 return GLES2Util::GetQualifiedEnumString(string_table
,
4262 arraysize(string_table
), value
);
4265 std::string
GLES2Util::GetStringRenderBufferTarget(uint32_t value
) {
4266 static const EnumToString string_table
[] = {
4267 {GL_RENDERBUFFER
, "GL_RENDERBUFFER"},
4269 return GLES2Util::GetQualifiedEnumString(string_table
,
4270 arraysize(string_table
), value
);
4273 std::string
GLES2Util::GetStringResetStatus(uint32_t value
) {
4274 static const EnumToString string_table
[] = {
4275 {GL_GUILTY_CONTEXT_RESET_ARB
, "GL_GUILTY_CONTEXT_RESET_ARB"},
4276 {GL_INNOCENT_CONTEXT_RESET_ARB
, "GL_INNOCENT_CONTEXT_RESET_ARB"},
4277 {GL_UNKNOWN_CONTEXT_RESET_ARB
, "GL_UNKNOWN_CONTEXT_RESET_ARB"},
4279 return GLES2Util::GetQualifiedEnumString(string_table
,
4280 arraysize(string_table
), value
);
4283 std::string
GLES2Util::GetStringSamplerParameter(uint32_t value
) {
4284 static const EnumToString string_table
[] = {
4285 {GL_TEXTURE_MAG_FILTER
, "GL_TEXTURE_MAG_FILTER"},
4286 {GL_TEXTURE_MIN_FILTER
, "GL_TEXTURE_MIN_FILTER"},
4287 {GL_TEXTURE_MIN_LOD
, "GL_TEXTURE_MIN_LOD"},
4288 {GL_TEXTURE_MAX_LOD
, "GL_TEXTURE_MAX_LOD"},
4289 {GL_TEXTURE_WRAP_S
, "GL_TEXTURE_WRAP_S"},
4290 {GL_TEXTURE_WRAP_T
, "GL_TEXTURE_WRAP_T"},
4291 {GL_TEXTURE_WRAP_R
, "GL_TEXTURE_WRAP_R"},
4292 {GL_TEXTURE_COMPARE_MODE
, "GL_TEXTURE_COMPARE_MODE"},
4293 {GL_TEXTURE_COMPARE_FUNC
, "GL_TEXTURE_COMPARE_FUNC"},
4295 return GLES2Util::GetQualifiedEnumString(string_table
,
4296 arraysize(string_table
), value
);
4299 std::string
GLES2Util::GetStringShaderBinaryFormat(uint32_t value
) {
4300 return GLES2Util::GetQualifiedEnumString(NULL
, 0, value
);
4303 std::string
GLES2Util::GetStringShaderParameter(uint32_t value
) {
4304 static const EnumToString string_table
[] = {
4305 {GL_SHADER_TYPE
, "GL_SHADER_TYPE"},
4306 {GL_DELETE_STATUS
, "GL_DELETE_STATUS"},
4307 {GL_COMPILE_STATUS
, "GL_COMPILE_STATUS"},
4308 {GL_INFO_LOG_LENGTH
, "GL_INFO_LOG_LENGTH"},
4309 {GL_SHADER_SOURCE_LENGTH
, "GL_SHADER_SOURCE_LENGTH"},
4310 {GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
,
4311 "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE"},
4313 return GLES2Util::GetQualifiedEnumString(string_table
,
4314 arraysize(string_table
), value
);
4317 std::string
GLES2Util::GetStringShaderPrecision(uint32_t value
) {
4318 static const EnumToString string_table
[] = {
4319 {GL_LOW_FLOAT
, "GL_LOW_FLOAT"}, {GL_MEDIUM_FLOAT
, "GL_MEDIUM_FLOAT"},
4320 {GL_HIGH_FLOAT
, "GL_HIGH_FLOAT"}, {GL_LOW_INT
, "GL_LOW_INT"},
4321 {GL_MEDIUM_INT
, "GL_MEDIUM_INT"}, {GL_HIGH_INT
, "GL_HIGH_INT"},
4323 return GLES2Util::GetQualifiedEnumString(string_table
,
4324 arraysize(string_table
), value
);
4327 std::string
GLES2Util::GetStringShaderType(uint32_t value
) {
4328 static const EnumToString string_table
[] = {
4329 {GL_VERTEX_SHADER
, "GL_VERTEX_SHADER"},
4330 {GL_FRAGMENT_SHADER
, "GL_FRAGMENT_SHADER"},
4332 return GLES2Util::GetQualifiedEnumString(string_table
,
4333 arraysize(string_table
), value
);
4336 std::string
GLES2Util::GetStringSrcBlendFactor(uint32_t value
) {
4337 static const EnumToString string_table
[] = {
4338 {GL_ZERO
, "GL_ZERO"},
4340 {GL_SRC_COLOR
, "GL_SRC_COLOR"},
4341 {GL_ONE_MINUS_SRC_COLOR
, "GL_ONE_MINUS_SRC_COLOR"},
4342 {GL_DST_COLOR
, "GL_DST_COLOR"},
4343 {GL_ONE_MINUS_DST_COLOR
, "GL_ONE_MINUS_DST_COLOR"},
4344 {GL_SRC_ALPHA
, "GL_SRC_ALPHA"},
4345 {GL_ONE_MINUS_SRC_ALPHA
, "GL_ONE_MINUS_SRC_ALPHA"},
4346 {GL_DST_ALPHA
, "GL_DST_ALPHA"},
4347 {GL_ONE_MINUS_DST_ALPHA
, "GL_ONE_MINUS_DST_ALPHA"},
4348 {GL_CONSTANT_COLOR
, "GL_CONSTANT_COLOR"},
4349 {GL_ONE_MINUS_CONSTANT_COLOR
, "GL_ONE_MINUS_CONSTANT_COLOR"},
4350 {GL_CONSTANT_ALPHA
, "GL_CONSTANT_ALPHA"},
4351 {GL_ONE_MINUS_CONSTANT_ALPHA
, "GL_ONE_MINUS_CONSTANT_ALPHA"},
4352 {GL_SRC_ALPHA_SATURATE
, "GL_SRC_ALPHA_SATURATE"},
4354 return GLES2Util::GetQualifiedEnumString(string_table
,
4355 arraysize(string_table
), value
);
4358 std::string
GLES2Util::GetStringStencilOp(uint32_t value
) {
4359 static const EnumToString string_table
[] = {
4360 {GL_KEEP
, "GL_KEEP"}, {GL_ZERO
, "GL_ZERO"},
4361 {GL_REPLACE
, "GL_REPLACE"}, {GL_INCR
, "GL_INCR"},
4362 {GL_INCR_WRAP
, "GL_INCR_WRAP"}, {GL_DECR
, "GL_DECR"},
4363 {GL_DECR_WRAP
, "GL_DECR_WRAP"}, {GL_INVERT
, "GL_INVERT"},
4365 return GLES2Util::GetQualifiedEnumString(string_table
,
4366 arraysize(string_table
), value
);
4369 std::string
GLES2Util::GetStringStringType(uint32_t value
) {
4370 static const EnumToString string_table
[] = {
4371 {GL_VENDOR
, "GL_VENDOR"},
4372 {GL_RENDERER
, "GL_RENDERER"},
4373 {GL_VERSION
, "GL_VERSION"},
4374 {GL_SHADING_LANGUAGE_VERSION
, "GL_SHADING_LANGUAGE_VERSION"},
4375 {GL_EXTENSIONS
, "GL_EXTENSIONS"},
4377 return GLES2Util::GetQualifiedEnumString(string_table
,
4378 arraysize(string_table
), value
);
4381 std::string
GLES2Util::GetStringSubscriptionTarget(uint32_t value
) {
4382 static const EnumToString string_table
[] = {
4383 {GL_MOUSE_POSITION_CHROMIUM
, "GL_MOUSE_POSITION_CHROMIUM"},
4385 return GLES2Util::GetQualifiedEnumString(string_table
,
4386 arraysize(string_table
), value
);
4389 std::string
GLES2Util::GetStringSyncCondition(uint32_t value
) {
4390 static const EnumToString string_table
[] = {
4391 {GL_SYNC_GPU_COMMANDS_COMPLETE
, "GL_SYNC_GPU_COMMANDS_COMPLETE"},
4393 return GLES2Util::GetQualifiedEnumString(string_table
,
4394 arraysize(string_table
), value
);
4397 std::string
GLES2Util::GetStringSyncParameter(uint32_t value
) {
4398 static const EnumToString string_table
[] = {
4399 {GL_SYNC_STATUS
, "GL_SYNC_STATUS"},
4400 {GL_OBJECT_TYPE
, "GL_OBJECT_TYPE"},
4401 {GL_SYNC_CONDITION
, "GL_SYNC_CONDITION"},
4402 {GL_SYNC_FLAGS
, "GL_SYNC_FLAGS"},
4404 return GLES2Util::GetQualifiedEnumString(string_table
,
4405 arraysize(string_table
), value
);
4408 std::string
GLES2Util::GetStringTexture3DTarget(uint32_t value
) {
4409 static const EnumToString string_table
[] = {
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::GetStringTextureBindTarget(uint32_t value
) {
4418 static const EnumToString string_table
[] = {
4419 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
4420 {GL_TEXTURE_CUBE_MAP
, "GL_TEXTURE_CUBE_MAP"},
4421 {GL_TEXTURE_3D
, "GL_TEXTURE_3D"},
4422 {GL_TEXTURE_2D_ARRAY
, "GL_TEXTURE_2D_ARRAY"},
4424 return GLES2Util::GetQualifiedEnumString(string_table
,
4425 arraysize(string_table
), value
);
4428 std::string
GLES2Util::GetStringTextureCompareFunc(uint32_t value
) {
4429 static const EnumToString string_table
[] = {
4430 {GL_LEQUAL
, "GL_LEQUAL"}, {GL_GEQUAL
, "GL_GEQUAL"},
4431 {GL_LESS
, "GL_LESS"}, {GL_GREATER
, "GL_GREATER"},
4432 {GL_EQUAL
, "GL_EQUAL"}, {GL_NOTEQUAL
, "GL_NOTEQUAL"},
4433 {GL_ALWAYS
, "GL_ALWAYS"}, {GL_NEVER
, "GL_NEVER"},
4435 return GLES2Util::GetQualifiedEnumString(string_table
,
4436 arraysize(string_table
), value
);
4439 std::string
GLES2Util::GetStringTextureCompareMode(uint32_t value
) {
4440 static const EnumToString string_table
[] = {
4441 {GL_NONE
, "GL_NONE"},
4442 {GL_COMPARE_REF_TO_TEXTURE
, "GL_COMPARE_REF_TO_TEXTURE"},
4444 return GLES2Util::GetQualifiedEnumString(string_table
,
4445 arraysize(string_table
), value
);
4448 std::string
GLES2Util::GetStringTextureFormat(uint32_t value
) {
4449 static const EnumToString string_table
[] = {
4450 {GL_ALPHA
, "GL_ALPHA"},
4451 {GL_LUMINANCE
, "GL_LUMINANCE"},
4452 {GL_LUMINANCE_ALPHA
, "GL_LUMINANCE_ALPHA"},
4454 {GL_RGBA
, "GL_RGBA"},
4456 {GL_RED_INTEGER
, "GL_RED_INTEGER"},
4458 {GL_RG_INTEGER
, "GL_RG_INTEGER"},
4459 {GL_RGB_INTEGER
, "GL_RGB_INTEGER"},
4460 {GL_RGBA_INTEGER
, "GL_RGBA_INTEGER"},
4461 {GL_DEPTH_COMPONENT
, "GL_DEPTH_COMPONENT"},
4462 {GL_DEPTH_STENCIL
, "GL_DEPTH_STENCIL"},
4464 return GLES2Util::GetQualifiedEnumString(string_table
,
4465 arraysize(string_table
), value
);
4468 std::string
GLES2Util::GetStringTextureInternalFormat(uint32_t value
) {
4469 static const EnumToString string_table
[] = {
4470 {GL_ALPHA
, "GL_ALPHA"},
4471 {GL_LUMINANCE
, "GL_LUMINANCE"},
4472 {GL_LUMINANCE_ALPHA
, "GL_LUMINANCE_ALPHA"},
4474 {GL_RGBA
, "GL_RGBA"},
4476 {GL_R8_SNORM
, "GL_R8_SNORM"},
4477 {GL_R16F
, "GL_R16F"},
4478 {GL_R32F
, "GL_R32F"},
4479 {GL_R8UI
, "GL_R8UI"},
4481 {GL_R16UI
, "GL_R16UI"},
4482 {GL_R16I
, "GL_R16I"},
4483 {GL_R32UI
, "GL_R32UI"},
4484 {GL_R32I
, "GL_R32I"},
4486 {GL_RG8_SNORM
, "GL_RG8_SNORM"},
4487 {GL_RG16F
, "GL_RG16F"},
4488 {GL_RG32F
, "GL_RG32F"},
4489 {GL_RG8UI
, "GL_RG8UI"},
4490 {GL_RG8I
, "GL_RG8I"},
4491 {GL_RG16UI
, "GL_RG16UI"},
4492 {GL_RG16I
, "GL_RG16I"},
4493 {GL_RG32UI
, "GL_RG32UI"},
4494 {GL_RG32I
, "GL_RG32I"},
4495 {GL_RGB8
, "GL_RGB8"},
4496 {GL_SRGB8
, "GL_SRGB8"},
4497 {GL_RGB565
, "GL_RGB565"},
4498 {GL_RGB8_SNORM
, "GL_RGB8_SNORM"},
4499 {GL_R11F_G11F_B10F
, "GL_R11F_G11F_B10F"},
4500 {GL_RGB9_E5
, "GL_RGB9_E5"},
4501 {GL_RGB16F
, "GL_RGB16F"},
4502 {GL_RGB32F
, "GL_RGB32F"},
4503 {GL_RGB8UI
, "GL_RGB8UI"},
4504 {GL_RGB8I
, "GL_RGB8I"},
4505 {GL_RGB16UI
, "GL_RGB16UI"},
4506 {GL_RGB16I
, "GL_RGB16I"},
4507 {GL_RGB32UI
, "GL_RGB32UI"},
4508 {GL_RGB32I
, "GL_RGB32I"},
4509 {GL_RGBA8
, "GL_RGBA8"},
4510 {GL_SRGB8_ALPHA8
, "GL_SRGB8_ALPHA8"},
4511 {GL_RGBA8_SNORM
, "GL_RGBA8_SNORM"},
4512 {GL_RGB5_A1
, "GL_RGB5_A1"},
4513 {GL_RGBA4
, "GL_RGBA4"},
4514 {GL_RGB10_A2
, "GL_RGB10_A2"},
4515 {GL_RGBA16F
, "GL_RGBA16F"},
4516 {GL_RGBA32F
, "GL_RGBA32F"},
4517 {GL_RGBA8UI
, "GL_RGBA8UI"},
4518 {GL_RGBA8I
, "GL_RGBA8I"},
4519 {GL_RGB10_A2UI
, "GL_RGB10_A2UI"},
4520 {GL_RGBA16UI
, "GL_RGBA16UI"},
4521 {GL_RGBA16I
, "GL_RGBA16I"},
4522 {GL_RGBA32UI
, "GL_RGBA32UI"},
4523 {GL_RGBA32I
, "GL_RGBA32I"},
4524 {GL_DEPTH_COMPONENT16
, "GL_DEPTH_COMPONENT16"},
4525 {GL_DEPTH_COMPONENT24
, "GL_DEPTH_COMPONENT24"},
4526 {GL_DEPTH_COMPONENT32F
, "GL_DEPTH_COMPONENT32F"},
4527 {GL_DEPTH24_STENCIL8
, "GL_DEPTH24_STENCIL8"},
4528 {GL_DEPTH32F_STENCIL8
, "GL_DEPTH32F_STENCIL8"},
4530 return GLES2Util::GetQualifiedEnumString(string_table
,
4531 arraysize(string_table
), value
);
4534 std::string
GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value
) {
4535 static const EnumToString string_table
[] = {
4536 {GL_RGB565
, "GL_RGB565"},
4537 {GL_RGBA4
, "GL_RGBA4"},
4538 {GL_RGB5_A1
, "GL_RGB5_A1"},
4539 {GL_ALPHA8_EXT
, "GL_ALPHA8_EXT"},
4540 {GL_LUMINANCE8_EXT
, "GL_LUMINANCE8_EXT"},
4541 {GL_LUMINANCE8_ALPHA8_EXT
, "GL_LUMINANCE8_ALPHA8_EXT"},
4542 {GL_RGB8_OES
, "GL_RGB8_OES"},
4543 {GL_RGBA8_OES
, "GL_RGBA8_OES"},
4545 {GL_R8_SNORM
, "GL_R8_SNORM"},
4546 {GL_R16F
, "GL_R16F"},
4547 {GL_R32F
, "GL_R32F"},
4548 {GL_R8UI
, "GL_R8UI"},
4550 {GL_R16UI
, "GL_R16UI"},
4551 {GL_R16I
, "GL_R16I"},
4552 {GL_R32UI
, "GL_R32UI"},
4553 {GL_R32I
, "GL_R32I"},
4555 {GL_RG8_SNORM
, "GL_RG8_SNORM"},
4556 {GL_RG16F
, "GL_RG16F"},
4557 {GL_RG32F
, "GL_RG32F"},
4558 {GL_RG8UI
, "GL_RG8UI"},
4559 {GL_RG8I
, "GL_RG8I"},
4560 {GL_RG16UI
, "GL_RG16UI"},
4561 {GL_RG16I
, "GL_RG16I"},
4562 {GL_RG32UI
, "GL_RG32UI"},
4563 {GL_RG32I
, "GL_RG32I"},
4564 {GL_RGB8
, "GL_RGB8"},
4565 {GL_SRGB8
, "GL_SRGB8"},
4566 {GL_RGB8_SNORM
, "GL_RGB8_SNORM"},
4567 {GL_R11F_G11F_B10F
, "GL_R11F_G11F_B10F"},
4568 {GL_RGB9_E5
, "GL_RGB9_E5"},
4569 {GL_RGB16F
, "GL_RGB16F"},
4570 {GL_RGB32F
, "GL_RGB32F"},
4571 {GL_RGB8UI
, "GL_RGB8UI"},
4572 {GL_RGB8I
, "GL_RGB8I"},
4573 {GL_RGB16UI
, "GL_RGB16UI"},
4574 {GL_RGB16I
, "GL_RGB16I"},
4575 {GL_RGB32UI
, "GL_RGB32UI"},
4576 {GL_RGB32I
, "GL_RGB32I"},
4577 {GL_RGBA8
, "GL_RGBA8"},
4578 {GL_SRGB8_ALPHA8
, "GL_SRGB8_ALPHA8"},
4579 {GL_RGBA8_SNORM
, "GL_RGBA8_SNORM"},
4580 {GL_RGB10_A2
, "GL_RGB10_A2"},
4581 {GL_RGBA16F
, "GL_RGBA16F"},
4582 {GL_RGBA32F
, "GL_RGBA32F"},
4583 {GL_RGBA8UI
, "GL_RGBA8UI"},
4584 {GL_RGBA8I
, "GL_RGBA8I"},
4585 {GL_RGB10_A2UI
, "GL_RGB10_A2UI"},
4586 {GL_RGBA16UI
, "GL_RGBA16UI"},
4587 {GL_RGBA16I
, "GL_RGBA16I"},
4588 {GL_RGBA32UI
, "GL_RGBA32UI"},
4589 {GL_RGBA32I
, "GL_RGBA32I"},
4590 {GL_DEPTH_COMPONENT16
, "GL_DEPTH_COMPONENT16"},
4591 {GL_DEPTH_COMPONENT24
, "GL_DEPTH_COMPONENT24"},
4592 {GL_DEPTH_COMPONENT32F
, "GL_DEPTH_COMPONENT32F"},
4593 {GL_DEPTH24_STENCIL8
, "GL_DEPTH24_STENCIL8"},
4594 {GL_DEPTH32F_STENCIL8
, "GL_DEPTH32F_STENCIL8"},
4595 {GL_COMPRESSED_R11_EAC
, "GL_COMPRESSED_R11_EAC"},
4596 {GL_COMPRESSED_SIGNED_R11_EAC
, "GL_COMPRESSED_SIGNED_R11_EAC"},
4597 {GL_COMPRESSED_RG11_EAC
, "GL_COMPRESSED_RG11_EAC"},
4598 {GL_COMPRESSED_SIGNED_RG11_EAC
, "GL_COMPRESSED_SIGNED_RG11_EAC"},
4599 {GL_COMPRESSED_RGB8_ETC2
, "GL_COMPRESSED_RGB8_ETC2"},
4600 {GL_COMPRESSED_SRGB8_ETC2
, "GL_COMPRESSED_SRGB8_ETC2"},
4601 {GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
,
4602 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
4603 {GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
,
4604 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"},
4605 {GL_COMPRESSED_RGBA8_ETC2_EAC
, "GL_COMPRESSED_RGBA8_ETC2_EAC"},
4606 {GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
,
4607 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"},
4609 return GLES2Util::GetQualifiedEnumString(string_table
,
4610 arraysize(string_table
), value
);
4613 std::string
GLES2Util::GetStringTextureMagFilterMode(uint32_t value
) {
4614 static const EnumToString string_table
[] = {
4615 {GL_NEAREST
, "GL_NEAREST"}, {GL_LINEAR
, "GL_LINEAR"},
4617 return GLES2Util::GetQualifiedEnumString(string_table
,
4618 arraysize(string_table
), value
);
4621 std::string
GLES2Util::GetStringTextureMinFilterMode(uint32_t value
) {
4622 static const EnumToString string_table
[] = {
4623 {GL_NEAREST
, "GL_NEAREST"},
4624 {GL_LINEAR
, "GL_LINEAR"},
4625 {GL_NEAREST_MIPMAP_NEAREST
, "GL_NEAREST_MIPMAP_NEAREST"},
4626 {GL_LINEAR_MIPMAP_NEAREST
, "GL_LINEAR_MIPMAP_NEAREST"},
4627 {GL_NEAREST_MIPMAP_LINEAR
, "GL_NEAREST_MIPMAP_LINEAR"},
4628 {GL_LINEAR_MIPMAP_LINEAR
, "GL_LINEAR_MIPMAP_LINEAR"},
4630 return GLES2Util::GetQualifiedEnumString(string_table
,
4631 arraysize(string_table
), value
);
4634 std::string
GLES2Util::GetStringTextureParameter(uint32_t value
) {
4635 static const EnumToString string_table
[] = {
4636 {GL_TEXTURE_MAG_FILTER
, "GL_TEXTURE_MAG_FILTER"},
4637 {GL_TEXTURE_MIN_FILTER
, "GL_TEXTURE_MIN_FILTER"},
4638 {GL_TEXTURE_POOL_CHROMIUM
, "GL_TEXTURE_POOL_CHROMIUM"},
4639 {GL_TEXTURE_WRAP_S
, "GL_TEXTURE_WRAP_S"},
4640 {GL_TEXTURE_WRAP_T
, "GL_TEXTURE_WRAP_T"},
4641 {GL_TEXTURE_BASE_LEVEL
, "GL_TEXTURE_BASE_LEVEL"},
4642 {GL_TEXTURE_COMPARE_FUNC
, "GL_TEXTURE_COMPARE_FUNC"},
4643 {GL_TEXTURE_COMPARE_MODE
, "GL_TEXTURE_COMPARE_MODE"},
4644 {GL_TEXTURE_IMMUTABLE_FORMAT
, "GL_TEXTURE_IMMUTABLE_FORMAT"},
4645 {GL_TEXTURE_IMMUTABLE_LEVELS
, "GL_TEXTURE_IMMUTABLE_LEVELS"},
4646 {GL_TEXTURE_MAX_LEVEL
, "GL_TEXTURE_MAX_LEVEL"},
4647 {GL_TEXTURE_MAX_LOD
, "GL_TEXTURE_MAX_LOD"},
4648 {GL_TEXTURE_MIN_LOD
, "GL_TEXTURE_MIN_LOD"},
4649 {GL_TEXTURE_WRAP_R
, "GL_TEXTURE_WRAP_R"},
4651 return GLES2Util::GetQualifiedEnumString(string_table
,
4652 arraysize(string_table
), value
);
4655 std::string
GLES2Util::GetStringTexturePool(uint32_t value
) {
4656 static const EnumToString string_table
[] = {
4657 {GL_TEXTURE_POOL_MANAGED_CHROMIUM
, "GL_TEXTURE_POOL_MANAGED_CHROMIUM"},
4658 {GL_TEXTURE_POOL_UNMANAGED_CHROMIUM
,
4659 "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM"},
4661 return GLES2Util::GetQualifiedEnumString(string_table
,
4662 arraysize(string_table
), value
);
4665 std::string
GLES2Util::GetStringTextureTarget(uint32_t value
) {
4666 static const EnumToString string_table
[] = {
4667 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
4668 {GL_TEXTURE_CUBE_MAP_POSITIVE_X
, "GL_TEXTURE_CUBE_MAP_POSITIVE_X"},
4669 {GL_TEXTURE_CUBE_MAP_NEGATIVE_X
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X"},
4670 {GL_TEXTURE_CUBE_MAP_POSITIVE_Y
, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y"},
4671 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y"},
4672 {GL_TEXTURE_CUBE_MAP_POSITIVE_Z
, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z"},
4673 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z"},
4675 return GLES2Util::GetQualifiedEnumString(string_table
,
4676 arraysize(string_table
), value
);
4679 std::string
GLES2Util::GetStringTextureUsage(uint32_t value
) {
4680 static const EnumToString string_table
[] = {
4681 {GL_NONE
, "GL_NONE"},
4682 {GL_FRAMEBUFFER_ATTACHMENT_ANGLE
, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE"},
4684 return GLES2Util::GetQualifiedEnumString(string_table
,
4685 arraysize(string_table
), value
);
4688 std::string
GLES2Util::GetStringTextureWrapMode(uint32_t value
) {
4689 static const EnumToString string_table
[] = {
4690 {GL_CLAMP_TO_EDGE
, "GL_CLAMP_TO_EDGE"},
4691 {GL_MIRRORED_REPEAT
, "GL_MIRRORED_REPEAT"},
4692 {GL_REPEAT
, "GL_REPEAT"},
4694 return GLES2Util::GetQualifiedEnumString(string_table
,
4695 arraysize(string_table
), value
);
4698 std::string
GLES2Util::GetStringTransformFeedbackBindTarget(uint32_t value
) {
4699 static const EnumToString string_table
[] = {
4700 {GL_TRANSFORM_FEEDBACK
, "GL_TRANSFORM_FEEDBACK"},
4702 return GLES2Util::GetQualifiedEnumString(string_table
,
4703 arraysize(string_table
), value
);
4706 std::string
GLES2Util::GetStringTransformFeedbackPrimitiveMode(uint32_t value
) {
4707 static const EnumToString string_table
[] = {
4708 {GL_POINTS
, "GL_POINTS"},
4709 {GL_LINES
, "GL_LINES"},
4710 {GL_TRIANGLES
, "GL_TRIANGLES"},
4712 return GLES2Util::GetQualifiedEnumString(string_table
,
4713 arraysize(string_table
), value
);
4716 std::string
GLES2Util::GetStringUniformBlockParameter(uint32_t value
) {
4717 static const EnumToString string_table
[] = {
4718 {GL_UNIFORM_BLOCK_BINDING
, "GL_UNIFORM_BLOCK_BINDING"},
4719 {GL_UNIFORM_BLOCK_DATA_SIZE
, "GL_UNIFORM_BLOCK_DATA_SIZE"},
4720 {GL_UNIFORM_BLOCK_NAME_LENGTH
, "GL_UNIFORM_BLOCK_NAME_LENGTH"},
4721 {GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS
, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS"},
4722 {GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES
,
4723 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES"},
4724 {GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER
,
4725 "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER"},
4726 {GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER
,
4727 "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER"},
4729 return GLES2Util::GetQualifiedEnumString(string_table
,
4730 arraysize(string_table
), value
);
4733 std::string
GLES2Util::GetStringUniformParameter(uint32_t value
) {
4734 static const EnumToString string_table
[] = {
4735 {GL_UNIFORM_SIZE
, "GL_UNIFORM_SIZE"},
4736 {GL_UNIFORM_TYPE
, "GL_UNIFORM_TYPE"},
4737 {GL_UNIFORM_NAME_LENGTH
, "GL_UNIFORM_NAME_LENGTH"},
4738 {GL_UNIFORM_BLOCK_INDEX
, "GL_UNIFORM_BLOCK_INDEX"},
4739 {GL_UNIFORM_OFFSET
, "GL_UNIFORM_OFFSET"},
4740 {GL_UNIFORM_ARRAY_STRIDE
, "GL_UNIFORM_ARRAY_STRIDE"},
4741 {GL_UNIFORM_MATRIX_STRIDE
, "GL_UNIFORM_MATRIX_STRIDE"},
4742 {GL_UNIFORM_IS_ROW_MAJOR
, "GL_UNIFORM_IS_ROW_MAJOR"},
4744 return GLES2Util::GetQualifiedEnumString(string_table
,
4745 arraysize(string_table
), value
);
4748 std::string
GLES2Util::GetStringValueBufferTarget(uint32_t value
) {
4749 static const EnumToString string_table
[] = {
4750 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM
,
4751 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"},
4753 return GLES2Util::GetQualifiedEnumString(string_table
,
4754 arraysize(string_table
), value
);
4757 std::string
GLES2Util::GetStringVertexAttribIType(uint32_t value
) {
4758 static const EnumToString string_table
[] = {
4759 {GL_BYTE
, "GL_BYTE"}, {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4760 {GL_SHORT
, "GL_SHORT"}, {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4761 {GL_INT
, "GL_INT"}, {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4763 return GLES2Util::GetQualifiedEnumString(string_table
,
4764 arraysize(string_table
), value
);
4767 std::string
GLES2Util::GetStringVertexAttribType(uint32_t value
) {
4768 static const EnumToString string_table
[] = {
4769 {GL_BYTE
, "GL_BYTE"},
4770 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4771 {GL_SHORT
, "GL_SHORT"},
4772 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4773 {GL_FLOAT
, "GL_FLOAT"},
4775 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4776 {GL_HALF_FLOAT
, "GL_HALF_FLOAT"},
4777 {GL_INT_2_10_10_10_REV
, "GL_INT_2_10_10_10_REV"},
4778 {GL_UNSIGNED_INT_2_10_10_10_REV
, "GL_UNSIGNED_INT_2_10_10_10_REV"},
4780 return GLES2Util::GetQualifiedEnumString(string_table
,
4781 arraysize(string_table
), value
);
4784 std::string
GLES2Util::GetStringVertexAttribute(uint32_t value
) {
4785 static const EnumToString string_table
[] = {
4786 {GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED"},
4787 {GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
,
4788 "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING"},
4789 {GL_VERTEX_ATTRIB_ARRAY_ENABLED
, "GL_VERTEX_ATTRIB_ARRAY_ENABLED"},
4790 {GL_VERTEX_ATTRIB_ARRAY_SIZE
, "GL_VERTEX_ATTRIB_ARRAY_SIZE"},
4791 {GL_VERTEX_ATTRIB_ARRAY_STRIDE
, "GL_VERTEX_ATTRIB_ARRAY_STRIDE"},
4792 {GL_VERTEX_ATTRIB_ARRAY_TYPE
, "GL_VERTEX_ATTRIB_ARRAY_TYPE"},
4793 {GL_CURRENT_VERTEX_ATTRIB
, "GL_CURRENT_VERTEX_ATTRIB"},
4794 {GL_VERTEX_ATTRIB_ARRAY_INTEGER
, "GL_VERTEX_ATTRIB_ARRAY_INTEGER"},
4795 {GL_VERTEX_ATTRIB_ARRAY_DIVISOR
, "GL_VERTEX_ATTRIB_ARRAY_DIVISOR"},
4797 return GLES2Util::GetQualifiedEnumString(string_table
,
4798 arraysize(string_table
), value
);
4801 std::string
GLES2Util::GetStringVertexPointer(uint32_t value
) {
4802 static const EnumToString string_table
[] = {
4803 {GL_VERTEX_ATTRIB_ARRAY_POINTER
, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
4805 return GLES2Util::GetQualifiedEnumString(string_table
,
4806 arraysize(string_table
), value
);
4809 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_