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
[] = {
25 "GL_GCCSO_SHADER_BINARY_FJ",
29 "GL_TEXTURE_CUBE_MAP_ARRAY_EXT",
41 "GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH",
45 "GL_DRAW_BUFFER0_EXT",
53 "GL_ALPHA_TEST_FUNC_QCOM",
57 "GL_TEXTURE_COMPARE_MODE_EXT",
61 "GL_ALPHA_TEST_REF_QCOM",
65 "GL_PIXEL_UNPACK_TRANSFER_BUFFER_BINDING_CHROMIUM",
69 "GL_TEXTURE_COMPARE_FUNC_EXT",
73 "GL_COMPARE_REF_TO_TEXTURE_EXT",
77 "GL_TESS_GEN_MODE_EXT",
81 "GL_TESS_GEN_SPACING_EXT",
85 "GL_TRIANGLE_STRIP_ADJACENCY_EXT",
93 "GL_LINE_STRIP_ADJACENCY_EXT",
97 "GL_TRIANGLES_ADJACENCY_EXT",
101 "GL_LINES_ADJACENCY_EXT",
105 "GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_EXT",
113 "GL_TEXTURE_BASE_LEVEL",
121 "GL_STENCIL_BUFFER_BIT6_QCOM",
125 "GL_MAILBOX_SIZE_CHROMIUM",
129 "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL",
133 "GL_SCANOUT_CHROMIUM",
137 "GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG",
141 "GL_SHADER_BINARY_VIV",
145 "GL_SGX_PROGRAM_BINARY_IMG",
149 "GL_RENDERBUFFER_SAMPLES_IMG",
157 "GL_MAX_SAMPLES_IMG",
161 "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG",
165 "GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG",
169 "GL_TEXTURE_SAMPLES_IMG",
181 "GL_COLOR_BUFFER_BIT5_QCOM",
185 "GL_MAP_INVALIDATE_BUFFER_BIT_EXT",
189 "GL_ALPHA_TEST_QCOM",
229 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG",
233 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV2_IMG",
237 "GL_PACK_SKIP_PIXELS",
241 "GL_INT_SAMPLER_CUBE_MAP_ARRAY_EXT",
245 "GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_EXT",
249 "GL_TRANSFORM_FEEDBACK_BUFFER_MODE",
253 "GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_EXT",
257 "GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_EXT",
261 "GL_SAMPLER_CUBE_MAP_ARRAY_EXT",
265 "GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",
273 "GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",
277 "GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",
281 "GL_PROGRAM_BINARY_LENGTH_OES",
285 "GL_Z400_BINARY_AMD",
289 "GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",
293 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV",
297 "GL_GENERATE_MIPMAP_HINT",
301 "GL_TESS_GEN_POINT_MODE_EXT",
305 "GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT",
309 "GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT",
313 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT",
317 "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT",
321 "GL_RGB_RAW_422_APPLE",
329 "GL_SYNC_OBJECT_APPLE",
333 "GL_SHADER_BINARY_FORMATS",
337 "GL_NUM_SHADER_BINARY_FORMATS",
341 "GL_DEBUG_GROUP_STACK_DEPTH_KHR",
345 "GL_TESS_CONTROL_OUTPUT_VERTICES_EXT",
349 "GL_DEBUG_SEVERITY_NOTIFICATION_KHR",
353 "GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR",
361 "GL_DEBUG_TYPE_POP_GROUP_KHR",
397 "GL_UNPACK_SKIP_IMAGES",
401 "GL_UNPACK_IMAGE_HEIGHT",
409 "GL_IS_PER_PATCH_EXT",
413 "GL_DEBUG_OUTPUT_KHR",
417 "GL_TEXTURE_BINDING_3D_OES",
425 "GL_COLOR_ATTACHMENT3_EXT",
429 "GL_COMPRESSED_RGB8_ETC2",
441 "GL_TEXTURE_BINDING_2D",
445 "GL_MAX_COMBINED_UNIFORM_BLOCKS",
453 "GL_UNDEFINED_VERTEX_EXT",
457 "GL_NO_RESET_NOTIFICATION_KHR",
461 "GL_PACK_ROW_LENGTH",
465 "GL_SHADER_COMPILER",
469 "GL_MAX_VERTEX_UNIFORM_VECTORS",
473 "GL_MAX_VARYING_VECTORS",
485 "GL_DEBUG_TYPE_MARKER_KHR",
489 "GL_DEBUG_TYPE_PUSH_GROUP_KHR",
497 "GL_PROGRAM_BINARY_FORMATS_OES",
501 "GL_NUM_PROGRAM_BINARY_FORMATS_OES",
505 "GL_UNIFORM_BLOCK_NAME_LENGTH",
517 "GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",
525 "GL_DEPTH_STENCIL_ATTACHMENT",
529 "GL_UNIFORM_BLOCK_DATA_SIZE",
533 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM",
541 "GL_BUFFER_ACCESS_OES",
545 "GL_BUFFER_MAPPED_OES",
549 "GL_BUFFER_MAP_POINTER_OES",
553 "GL_TIME_ELAPSED_EXT",
557 "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",
561 "GL_GET_ERROR_QUERY_CHROMIUM",
577 "GL_PATH_MODELVIEW_CHROMIUM",
581 "GL_MULTISAMPLE_BUFFER_BIT7_QCOM",
585 "GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL",
589 "GL_TEXTURE_SRGB_DECODE_EXT",
597 "GL_MULTISAMPLE_BUFFER_BIT1_QCOM",
601 "GL_ANY_SAMPLES_PASSED_EXT",
605 "GL_TEXTURE_WIDTH_QCOM",
609 "GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT",
613 "GL_TEXTURE_BINDING_BUFFER_EXT",
617 "GL_MAX_TEXTURE_BUFFER_SIZE_EXT",
621 "GL_TEXTURE_BUFFER_EXT",
625 "GL_TEXTURE_TYPE_QCOM",
629 "GL_CURRENT_PROGRAM",
633 "GL_TEXTURE_NUM_LEVELS_QCOM",
637 "GL_STENCIL_BUFFER_BIT5_QCOM",
641 "GL_INT_2_10_10_10_REV",
645 "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH",
649 "GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES",
653 "GL_SHADING_LANGUAGE_VERSION",
657 "GL_TEXTURE_TARGET_QCOM",
661 "GL_TEXTURE_OBJECT_VALID_QCOM",
669 "GL_SHADER_SOURCE_LENGTH",
673 "GL_ACTIVE_ATTRIBUTES",
677 "GL_COMPRESSED_RGBA_ASTC_6x6x6_OES",
681 "GL_COMPRESSED_RGBA_ASTC_6x6x5_OES",
685 "GL_INFO_LOG_LENGTH",
689 "GL_ATTACHED_SHADERS",
693 "GL_ACTIVE_UNIFORMS",
697 "GL_ACTIVE_UNIFORM_MAX_LENGTH",
713 "GL_VALIDATE_STATUS",
717 "GL_NUM_SAMPLE_COUNTS",
725 "GL_STENCIL_INDEX1_OES",
729 "GL_STENCIL_INDEX4_OES",
733 "GL_RENDERBUFFER_INTERNAL_FORMAT",
737 "GL_DEPTH_BUFFER_BIT",
741 "GL_RENDERBUFFER_WIDTH",
745 "GL_RENDERBUFFER_HEIGHT",
757 "GL_UNIFORM_BLOCK_INDEX",
769 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR",
773 "GL_MAX_DEBUG_LOGGED_MESSAGES_KHR",
793 "GL_BUFFER_MAP_LENGTH",
801 "GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT",
805 "GL_DEPTH_COMPONENT16",
809 "GL_DEPTH_COMPONENT24_OES",
813 "GL_DEPTH_COMPONENT32_OES",
817 "GL_VERTEX_ATTRIB_ARRAY_INTEGER",
821 "GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",
825 "GL_MAX_ARRAY_TEXTURE_LAYERS",
829 "GL_FLOAT_MAT4x3_NV",
833 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR",
837 "GL_MAX_DEBUG_MESSAGE_LENGTH_KHR",
841 "GL_MAX_FRAGMENT_UNIFORM_VECTORS",
845 "GL_DEBUG_LOGGED_MESSAGES_KHR",
849 "GL_DEBUG_SEVERITY_HIGH_KHR",
853 "GL_DEBUG_SEVERITY_MEDIUM_KHR",
857 "GL_DEBUG_SEVERITY_LOW_KHR",
861 "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT",
865 "GL_MALI_SHADER_BINARY_ARM",
869 "GL_MALI_PROGRAM_BINARY_ARM",
873 "GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM",
877 "GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT",
881 "GL_SHADER_PIXEL_LOCAL_STORAGE_EXT",
885 "GL_FETCH_PER_SAMPLE_ARM",
889 "GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT",
893 "GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD",
917 "GL_DEPTH_STENCIL_OES",
921 "GL_TEXTURE_VIEW_MIN_LEVEL_EXT",
925 "GL_UNSIGNED_INT_2_10_10_10_REV_EXT",
929 "GL_LUMINANCE_ALPHA32F_EXT",
933 "GL_LUMINANCE32F_EXT",
937 "GL_TEXTURE_IMMUTABLE_LEVELS",
941 "GL_UNSIGNED_SHORT_5_6_5",
945 "GL_IMAGE_BUFFER_EXT",
949 "GL_ALL_COMPLETED_NV",
953 "GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT",
957 "GL_FENCE_CONDITION_NV",
961 "GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT",
965 "GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT",
969 "GL_COMMANDS_COMPLETED_CHROMIUM",
973 "GL_SIGNED_NORMALIZED",
977 "GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT",
981 "GL_LUMINANCE16F_EXT",
985 "GL_UNSIGNED_INT_24_8_OES",
989 "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT",
997 "GL_TEXTURE_MAX_ANISOTROPY_EXT",
1009 "GL_MAX_FRAMEBUFFER_LAYERS_EXT",
1021 "GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT",
1029 "GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED",
1037 "GL_FLOAT_MAT2x4_NV",
1041 "GL_FLOAT_MAT3x2_NV",
1045 "GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
1049 "GL_SAMPLER_2D_SHADOW_EXT",
1053 "GL_SAMPLER_2D_RECT_ARB",
1061 "GL_DEPTH_BUFFER_BIT4_QCOM",
1065 "GL_FLOAT_MAT3x4_NV",
1069 "GL_COMPRESSED_RGB_S3TC_DXT1_EXT",
1073 "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT",
1077 "GL_COLOR_BUFFER_BIT7_QCOM",
1081 "GL_DEPTH24_STENCIL8_OES",
1085 "GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
1089 "GL_SAMPLE_COVERAGE",
1101 "GL_SAMPLE_BUFFERS",
1121 "GL_FRAMEBUFFER_COMPLETE",
1137 "GL_POLYGON_OFFSET_FILL",
1145 "GL_UNSIGNED_SHORT_5_5_5_1",
1149 "GL_UNSIGNED_SHORT_4_4_4_4",
1157 "GL_ONE_MINUS_DST_ALPHA",
1165 "GL_ONE_MINUS_DST_COLOR",
1173 "GL_ONE_MINUS_SRC_COLOR",
1181 "GL_ONE_MINUS_SRC_ALPHA",
1189 "GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE",
1193 "GL_SRC_ALPHA_SATURATE",
1197 "GL_POLYGON_OFFSET_UNITS",
1201 "GL_ALL_SHADER_BITS_EXT",
1205 "GL_TEXTURE_VIEW_NUM_LEVELS_EXT",
1209 "GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT",
1213 "GL_TEXTURE_VIEW_MIN_LAYER_EXT",
1217 "GL_STENCIL_BUFFER_BIT7_QCOM",
1221 "GL_TEXTURE_VIEW_NUM_LAYERS_EXT",
1225 "GL_STENCIL_BUFFER_BIT1_QCOM",
1229 "GL_DEPTH_ATTACHMENT",
1233 "GL_PERFMON_GLOBAL_MODE_QCOM",
1241 "GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH",
1249 "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM",
1253 "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",
1257 "GL_COMMANDS_ISSUED_CHROMIUM",
1261 "GL_TEXTURE_MAX_LEVEL_APPLE",
1269 "GL_TEXTURE_MAX_LOD",
1273 "GL_FRAMEBUFFER_UNSUPPORTED",
1277 "GL_MAX_COLOR_ATTACHMENTS_EXT",
1281 "GL_CONTEXT_ROBUST_ACCESS_KHR",
1285 "GL_MAX_MULTIVIEW_BUFFERS_EXT",
1293 "GL_COLOR_ATTACHMENT_EXT",
1301 "GL_MIN_PROGRAM_TEXEL_OFFSET",
1305 "GL_TEXTURE_RECTANGLE_ARB",
1309 "GL_DRAW_BUFFER5_EXT",
1313 "GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT",
1317 "GL_SAMPLE_COVERAGE_VALUE",
1321 "GL_TEXTURE_BINDING_RECTANGLE_ARB",
1325 "GL_SAMPLE_COVERAGE_INVERT",
1329 "GL_MAX_PATCH_VERTICES_EXT",
1333 "GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM",
1337 "GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES",
1341 "GL_MAX_TESS_GEN_LEVEL_EXT",
1345 "GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES",
1353 "GL_FRACTIONAL_ODD_EXT",
1357 "GL_COLOR_BUFFER_BIT6_QCOM",
1361 "GL_DRAW_BUFFER6_EXT",
1365 "GL_FRACTIONAL_EVEN_EXT",
1369 "GL_TRANSFORM_FEEDBACK_BUFFER",
1373 "GL_SEPARATE_ATTRIBS",
1377 "GL_TRANSFORM_FEEDBACK_BUFFER_BINDING",
1381 "GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",
1385 "GL_INTERLEAVED_ATTRIBS",
1389 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",
1393 "GL_UNSIGNED_NORMALIZED_EXT",
1397 "GL_UNIFORM_IS_ROW_MAJOR",
1417 "GL_SKIP_DECODE_EXT",
1421 "GL_PROGRAM_PIPELINE_OBJECT_EXT",
1425 "GL_DRAW_BUFFER7_EXT",
1429 "GL_MAP_FLUSH_EXPLICIT_BIT_EXT",
1433 "GL_GEOMETRY_LINKED_OUTPUT_TYPE_EXT",
1437 "GL_SAMPLER_BINDING",
1441 "GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_EXT",
1445 "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_EXT",
1449 "GL_TRANSFORM_FEEDBACK_BUFFER_SIZE",
1457 "GL_LATENCY_QUERY_CHROMIUM",
1465 "GL_GEOMETRY_LINKED_VERTICES_OUT_EXT",
1469 "GL_GEOMETRY_LINKED_INPUT_TYPE_EXT",
1473 "GL_LUMINANCE_ALPHA16F_EXT",
1477 "GL_MAX_TEXTURE_LOD_BIAS",
1481 "GL_DRAW_BUFFER8_EXT",
1485 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",
1489 "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS",
1493 "GL_COPY_WRITE_BUFFER_NV",
1497 "GL_COPY_READ_BUFFER_NV",
1501 "GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT",
1505 "GL_UNIFORM_ARRAY_STRIDE",
1509 "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",
1513 "GL_TEXTURE_POOL_CHROMIUM",
1537 "GL_DEPTH_CLEAR_VALUE",
1541 "GL_DEPTH_WRITEMASK",
1545 "GL_TEXTURE_INTERNAL_FORMAT_QCOM",
1549 "GL_UNSIGNED_SHORT_8_8_APPLE",
1553 "GL_PRIMITIVES_GENERATED_EXT",
1557 "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",
1561 "GL_TRANSFORM_FEEDBACK_VARYINGS",
1565 "GL_PRIMITIVE_RESTART_FIXED_INDEX",
1569 "GL_DRAW_BUFFER9_EXT",
1573 "GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_EXT",
1577 "GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",
1581 "GL_RASTERIZER_DISCARD",
1585 "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",
1589 "GL_TEXTURE_2D_ARRAY",
1593 "GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1597 "GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT",
1601 "GL_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1605 "GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES",
1609 "GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL",
1613 "GL_MAX_3D_TEXTURE_SIZE_OES",
1617 "GL_TEXTURE_WRAP_R_OES",
1625 "GL_DRAW_BUFFER10_EXT",
1629 "GL_VERTEX_ARRAY_KHR",
1637 "GL_COVERAGE_AUTOMATIC_NV",
1641 "GL_COVERAGE_EDGE_FRAGMENTS_NV",
1645 "GL_COVERAGE_ALL_FRAGMENTS_NV",
1649 "GL_COVERAGE_SAMPLES_NV",
1653 "GL_COVERAGE_BUFFERS_NV",
1657 "GL_COVERAGE_ATTACHMENT_NV",
1661 "GL_COVERAGE_COMPONENT4_NV",
1665 "GL_COVERAGE_COMPONENT_NV",
1669 "GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",
1673 "GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_EXT",
1677 "GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",
1681 "GL_ACTIVE_UNIFORM_BLOCKS",
1689 "GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT",
1693 "GL_CLIP_DISTANCE6_APPLE",
1697 "GL_FUNC_REVERSE_SUBTRACT",
1701 "GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",
1705 "GL_STENCIL_BUFFER_BIT",
1713 "GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",
1721 "GL_UNIFORM_NAME_LENGTH",
1725 "GL_DEPTH_COMPONENT16_NONLINEAR_NV",
1729 "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",
1733 "GL_FRAMEBUFFER_UNDEFINED_OES",
1737 "GL_TRANSFORM_FEEDBACK_PAUSED",
1741 "GL_TRANSFORM_FEEDBACK",
1745 "GL_TRANSFORM_FEEDBACK_BINDING",
1749 "GL_IMAGE_CUBE_MAP_ARRAY_EXT",
1765 "GL_ONE_MINUS_CONSTANT_ALPHA",
1773 "GL_ONE_MINUS_CONSTANT_COLOR",
1777 "GL_CONSTANT_ALPHA",
1781 "GL_CONSTANT_COLOR",
1817 "GL_TEXTURE_FORMAT_QCOM",
1829 "GL_UNSIGNED_INT_IMAGE_BUFFER_EXT",
1837 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR",
1841 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR",
1845 "GL_GPU_OPTIMIZED_QCOM",
1849 "GL_LUMINANCE_ALPHA",
1853 "GL_BINNING_CONTROL_HINT_QCOM",
1857 "GL_INT_IMAGE_BUFFER_EXT",
1877 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR",
1881 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR",
1885 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR",
1889 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR",
1893 "GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_EXT",
1905 "GL_RENDERBUFFER_STENCIL_SIZE",
1909 "GL_RENDERBUFFER_DEPTH_SIZE",
1913 "GL_MAX_SAMPLES_ANGLE",
1917 "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE",
1921 "GL_RENDERBUFFER_GREEN_SIZE",
1925 "GL_RENDERBUFFER_RED_SIZE",
1929 "GL_RENDERBUFFER_ALPHA_SIZE",
1933 "GL_RENDERBUFFER_BLUE_SIZE",
1941 "GL_INT_SAMPLER_CUBE",
1945 "GL_MAX_PROGRAM_TEXEL_OFFSET",
1949 "GL_STENCIL_BUFFER_BIT3_QCOM",
1953 "GL_LINEARLIGHT_NV",
1957 "GL_INT_SAMPLER_2D_ARRAY",
1961 "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED",
1969 "GL_DRAW_BUFFER_EXT",
1973 "GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_EXT",
1977 "GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_EXT",
1981 "GL_INT_SAMPLER_2D",
1985 "GL_COMPRESSED_RGBA_ASTC_6x5x5_OES",
1989 "GL_SAMPLER_3D_OES",
1993 "GL_PALETTE8_RGB8_OES",
1997 "GL_SHADER_BINARY_DMP",
2001 "GL_SMAPHS30_PROGRAM_BINARY_DMP",
2005 "GL_SMAPHS_PROGRAM_BINARY_DMP",
2009 "GL_DMP_PROGRAM_BINARY_DMP",
2013 "GL_UNSIGNED_INT_VEC4",
2017 "GL_CLIP_DISTANCE0_APPLE",
2025 "GL_SAMPLER_2D_ARRAY",
2029 "GL_VERTEX_ARRAY_OBJECT_EXT",
2033 "GL_QUERY_OBJECT_EXT",
2037 "GL_QUERY_COUNTER_BITS_EXT",
2041 "GL_BUFFER_OBJECT_EXT",
2045 "GL_ATC_RGBA_EXPLICIT_ALPHA_AMD",
2049 "GL_CONTEXT_FLAG_DEBUG_BIT_KHR",
2053 "GL_UNIFORM_BLOCK_BINDING",
2057 "GL_PERFQUERY_SINGLE_CONTEXT_INTEL",
2061 "GL_SYNC_FLUSH_COMMANDS_BIT_APPLE",
2065 "GL_OVERLAY_TRANSFORM_ROTATE_90_CHROMIUM",
2069 "GL_GEOMETRY_SHADER_BIT_EXT",
2077 "GL_CLIP_DISTANCE3_APPLE",
2081 "GL_TESS_CONTROL_SHADER_BIT_EXT",
2089 "GL_UNIFORM_MATRIX_STRIDE",
2093 "GL_DRAW_BUFFER3_EXT",
2109 "GL_GPU_DISJOINT_EXT",
2113 "GL_STENCIL_INDEX_OES",
2117 "GL_DEPTH_COMPONENT",
2125 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR",
2129 "GL_IMPLEMENTATION_COLOR_READ_FORMAT",
2133 "GL_IMPLEMENTATION_COLOR_READ_TYPE",
2137 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR",
2149 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR",
2153 "GL_DRAW_BUFFER2_EXT",
2157 "GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM",
2165 "GL_MAX_LABEL_LENGTH_KHR",
2173 "GL_READ_BUFFER_EXT",
2201 "GL_UNPACK_FLIP_Y_CHROMIUM",
2205 "GL_UNSIGNED_INT_10_10_10_2_OES",
2209 "GL_MAX_UNIFORM_BLOCK_SIZE",
2213 "GL_COMPRESSED_SIGNED_RG11_EAC",
2221 "GL_QUERY_RESULT_EXT",
2229 "GL_INT_10_10_10_2_OES",
2249 "GL_FLOAT_MAT4x2_NV",
2253 "GL_CLAMP_TO_BORDER_EXT",
2261 "GL_LINEARDODGE_NV",
2265 "GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT",
2269 "GL_GEOMETRY_SHADER_EXT",
2273 "GL_COMPRESSED_TEXTURE_FORMATS",
2277 "GL_UNSIGNED_INT_SAMPLER_CUBE",
2281 "GL_BIND_GENERATES_RESOURCE_CHROMIUM",
2285 "GL_UNSIGNED_INT_SAMPLER_2D",
2289 "GL_UNSIGNED_INT_SAMPLER_3D",
2293 "GL_INT_SAMPLER_BUFFER_EXT",
2297 "GL_NUM_COMPRESSED_TEXTURE_FORMATS",
2301 "GL_UNPACK_SKIP_ROWS_EXT",
2305 "GL_UNPACK_ROW_LENGTH_EXT",
2321 "GL_UNPACK_ALIGNMENT",
2325 "GL_QUERY_RESULT_AVAILABLE_EXT",
2333 "GL_BLEND_EQUATION",
2337 "GL_BUFFER_ACCESS_FLAGS",
2349 "GL_UNSIGNED_SHORT",
2369 "GL_TEXTURE_BINDING_2D_ARRAY",
2373 "GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT",
2377 "GL_LUMINANCE4_ALPHA4_OES",
2381 "GL_LUMINANCE8_OES",
2385 "GL_LUMINANCE8_ALPHA8_OES",
2389 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",
2393 "GL_STENCIL_BUFFER_BIT2_QCOM",
2397 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",
2405 "GL_COLOR_ATTACHMENT4_EXT",
2413 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",
2417 "GL_ALIASED_LINE_WIDTH_RANGE",
2425 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",
2437 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES",
2441 "GL_SYNC_CONDITION_APPLE",
2445 "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",
2449 "GL_MULTISAMPLE_BUFFER_BIT3_QCOM",
2453 "GL_PACK_REVERSE_ROW_ORDER_ANGLE",
2457 "GL_POLYGON_OFFSET_FACTOR",
2461 "GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL",
2465 "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z",
2469 "GL_MAX_CUBE_MAP_TEXTURE_SIZE",
2473 "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS",
2489 "GL_PATH_PROJECTION_MATRIX_CHROMIUM",
2505 "GL_PERFQUERY_DONOT_FLUSH_INTEL",
2509 "GL_SYNC_FLAGS_APPLE",
2517 "GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE",
2521 "GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE",
2525 "GL_COMPRESSED_RGBA_S3TC_DXT1_EXT",
2529 "GL_SYNC_STATUS_APPLE",
2533 "GL_SGX_BINARY_IMG",
2537 "GL_COMPRESSED_RGBA_ASTC_10x10_KHR",
2541 "GL_CONDITION_SATISFIED_APPLE",
2545 "GL_TIMEOUT_EXPIRED_APPLE",
2549 "GL_ALREADY_SIGNALED_APPLE",
2557 "GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_EXT",
2561 "GL_WAIT_FAILED_APPLE",
2577 "GL_ALIASED_POINT_SIZE_RANGE",
2581 "GL_DIFFERENCE_KHR",
2589 "GL_UNCORRELATED_NV",
2597 "GL_COLORDODGE_KHR",
2601 "GL_MAX_SERVER_WAIT_TIMEOUT_APPLE",
2605 "GL_PROGRAM_BINARY_ANGLE",
2609 "GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE",
2613 "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE",
2617 "GL_FRAMEBUFFER_ATTACHMENT_ANGLE",
2621 "GL_TEXTURE_USAGE_ANGLE",
2625 "GL_STENCIL_BACK_PASS_DEPTH_FAIL",
2629 "GL_SIGNALED_APPLE",
2633 "GL_UNSIGNALED_APPLE",
2653 "GL_MAP_UNSYNCHRONIZED_BIT_EXT",
2657 "GL_TESS_GEN_VERTEX_ORDER_EXT",
2661 "GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG",
2665 "GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG",
2669 "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT",
2673 "GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",
2685 "GL_MAX_VERTEX_ATTRIBS",
2717 "GL_STENCIL_BACK_PASS_DEPTH_PASS",
2725 "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y",
2729 "GL_TEXTURE_CUBE_MAP_POSITIVE_Z",
2733 "GL_TEXTURE_BINDING_CUBE_MAP",
2737 "GL_TEXTURE_CUBE_MAP_POSITIVE_X",
2741 "GL_TEXTURE_CUBE_MAP_NEGATIVE_X",
2745 "GL_TEXTURE_CUBE_MAP_POSITIVE_Y",
2749 "GL_FRAMEBUFFER_DEFAULT",
2753 "GL_TEXTURE_CUBE_MAP",
2757 "GL_CURRENT_VERTEX_ATTRIB",
2761 "GL_PLUS_CLAMPED_NV",
2765 "GL_HSL_LUMINOSITY_KHR",
2769 "GL_MINUS_CLAMPED_NV",
2773 "GL_PLUS_CLAMPED_ALPHA_NV",
2785 "GL_PALETTE8_RGB5_A1_OES",
2789 "GL_STACK_OVERFLOW_KHR",
2793 "GL_INVALID_OPERATION",
2805 "GL_CONTEXT_LOST_KHR",
2809 "GL_INVALID_FRAMEBUFFER_OPERATION",
2817 "GL_STACK_UNDERFLOW_KHR",
2821 "GL_UNPACK_SKIP_PIXELS_EXT",
2837 "GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM",
2841 "GL_DEBUG_SOURCE_APPLICATION_KHR",
2845 "GL_DEBUG_SOURCE_OTHER_KHR",
2849 "GL_DEBUG_TYPE_ERROR_KHR",
2853 "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR",
2857 "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR",
2861 "GL_DEBUG_TYPE_PORTABILITY_KHR",
2865 "GL_UNSIGNED_INT_SAMPLER_2D_ARRAY",
2873 "GL_FRAGMENT_SHADER",
2877 "GL_CPU_OPTIMIZED_QCOM",
2881 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR",
2885 "GL_CONTEXT_RELEASE_BEHAVIOR_KHR",
2913 "GL_PACK_ALIGNMENT",
2933 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR",
2941 "GL_PALETTE8_R5_G6_B5_OES",
2961 "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM",
2969 "GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR",
2973 "GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR",
2977 "GL_DEBUG_CALLBACK_FUNCTION_KHR",
2981 "GL_DEBUG_CALLBACK_USER_PARAM_KHR",
2985 "GL_DEBUG_SOURCE_API_KHR",
2989 "GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR",
2993 "GL_DEBUG_SOURCE_SHADER_COMPILER_KHR",
2997 "GL_DEBUG_SOURCE_THIRD_PARTY_KHR",
3001 "GL_PALETTE4_RGB5_A1_OES",
3005 "GL_PERFQUERY_COUNTER_RAW_INTEL",
3013 "GL_UNIFORM_BUFFER_START",
3017 "GL_UNIFORM_BUFFER_BINDING",
3021 "GL_PRIMITIVE_BOUNDING_BOX_EXT",
3025 "GL_VERTEX_ATTRIB_ARRAY_POINTER",
3029 "GL_CURRENT_QUERY_EXT",
3033 "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_OES",
3037 "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_OES",
3041 "GL_FRAGMENT_INTERPOLATION_OFFSET_BITS_OES",
3045 "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT",
3053 "GL_PATCH_VERTICES_EXT",
3057 "GL_TEXTURE_HEIGHT_QCOM",
3073 "GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_EXT",
3077 "GL_VERTEX_ARRAY_BINDING_OES",
3081 "GL_GUILTY_CONTEXT_RESET_KHR",
3085 "GL_MAX_ELEMENT_INDEX",
3089 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT",
3097 "GL_LOSE_CONTEXT_ON_RESET_KHR",
3101 "GL_COMPRESSED_SRGB_S3TC_DXT1_NV",
3105 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV",
3109 "GL_DEBUG_TYPE_OTHER_KHR",
3113 "GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV",
3117 "GL_REFERENCED_BY_GEOMETRY_SHADER_EXT",
3121 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES",
3125 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES",
3129 "GL_SRGB8_ALPHA8_EXT",
3133 "GL_SRGB_ALPHA_EXT",
3137 "GL_SLUMINANCE8_ALPHA8_NV",
3141 "GL_SLUMINANCE_ALPHA_NV",
3145 "GL_SLUMINANCE8_NV",
3153 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES",
3157 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES",
3161 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES",
3165 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES",
3169 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES",
3173 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES",
3177 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES",
3181 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES",
3185 "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES",
3189 "GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_EXT",
3193 "GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_EXT",
3197 "GL_UNSIGNED_SHORT_8_8_REV_APPLE",
3201 "GL_TESS_EVALUATION_SHADER_EXT",
3205 "GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_EXT",
3209 "GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_EXT",
3213 "GL_MAX_TESS_PATCH_COMPONENTS_EXT",
3217 "GL_HALF_FLOAT_OES",
3225 "GL_TESS_CONTROL_SHADER_EXT",
3233 "GL_TEXTURE_EXTERNAL_OES",
3237 "GL_SAMPLER_EXTERNAL_OES",
3241 "GL_TEXTURE_BINDING_EXTERNAL_OES",
3245 "GL_MULTISAMPLE_BUFFER_BIT4_QCOM",
3249 "GL_MULTISAMPLE_BUFFER_BIT2_QCOM",
3253 "GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_EXT",
3257 "GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_EXT",
3261 "GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_EXT",
3265 "GL_COLOR_ATTACHMENT14_EXT",
3269 "GL_UNSIGNED_INT_VEC3",
3273 "GL_PATH_PROJECTION_CHROMIUM",
3277 "GL_TEXTURE_MAG_FILTER",
3281 "GL_TEXTURE_MIN_FILTER",
3285 "GL_TEXTURE_WRAP_S",
3289 "GL_TEXTURE_WRAP_T",
3293 "GL_INT_SAMPLER_3D",
3297 "GL_CLIP_DISTANCE7_APPLE",
3301 "GL_LINEAR_MIPMAP_LINEAR",
3305 "GL_CLIP_DISTANCE5_APPLE",
3309 "GL_CLIP_DISTANCE4_APPLE",
3313 "GL_PALETTE8_RGBA4_OES",
3317 "GL_CLIP_DISTANCE2_APPLE",
3321 "GL_CLIP_DISTANCE1_APPLE",
3325 "GL_NEAREST_MIPMAP_LINEAR",
3345 "GL_OVERLAY_TRANSFORM_FLIP_VERTICAL_CHROMIUM",
3349 "GL_LINEAR_MIPMAP_NEAREST",
3353 "GL_OVERLAY_TRANSFORM_NONE_CHROMIUM",
3361 "GL_OVERLAY_TRANSFORM_ROTATE_180_CHROMIUM",
3369 "GL_MAX_VERTEX_UNIFORM_COMPONENTS",
3373 "GL_MAX_VARYING_COMPONENTS",
3377 "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS",
3381 "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS",
3389 "GL_MAX_VERTEX_OUTPUT_COMPONENTS",
3393 "GL_MAX_GEOMETRY_INPUT_COMPONENTS_EXT",
3397 "GL_PERFQUERY_WAIT_INTEL",
3401 "GL_BUFFER_MAP_OFFSET",
3405 "GL_COLOR_BUFFER_BIT",
3409 "GL_MAX_FRAGMENT_INPUT_COMPONENTS",
3413 "GL_TESS_EVALUATION_SHADER_BIT_EXT",
3417 "GL_DRAW_BUFFER15_EXT",
3421 "GL_DRAW_BUFFER14_EXT",
3425 "GL_DRAW_BUFFER13_EXT",
3429 "GL_DRAW_BUFFER12_EXT",
3433 "GL_DRAW_BUFFER11_EXT",
3437 "GL_SAMPLER_CUBE_SHADOW_NV",
3441 "GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL",
3445 "GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL",
3449 "GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL",
3453 "GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL",
3457 "GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL",
3461 "GL_COMPRESSED_RGBA_ASTC_10x5_KHR",
3465 "GL_FLOAT_MAT2x3_NV",
3469 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM",
3473 "GL_STENCIL_BUFFER_BIT0_QCOM",
3477 "GL_PERFQUERY_FLUSH_INTEL",
3481 "GL_PACK_SKIP_ROWS",
3485 "GL_FENCE_STATUS_NV",
3493 "GL_STENCIL_VALUE_MASK",
3501 "GL_STENCIL_CLEAR_VALUE",
3505 "GL_BLEND_EQUATION_ALPHA",
3513 "GL_STENCIL_PASS_DEPTH_PASS",
3517 "GL_STENCIL_PASS_DEPTH_FAIL",
3521 "GL_NEAREST_MIPMAP_NEAREST",
3525 "GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL",
3529 "GL_STENCIL_WRITEMASK",
3533 "GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL",
3537 "GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL",
3541 "GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL",
3545 "GL_PERFQUERY_COUNTER_EVENT_INTEL",
3549 "GL_PROGRAM_OBJECT_EXT",
3553 "GL_TEXTURE_BORDER_COLOR_EXT",
3557 "GL_MAX_FRAGMENT_UNIFORM_BLOCKS",
3561 "GL_SHADER_OBJECT_EXT",
3565 "GL_MAX_FRAGMENT_UNIFORM_COMPONENTS",
3569 "GL_TEXTURE_MIN_LOD",
3573 "GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT",
3577 "GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT",
3581 "GL_MOUSE_POSITION_CHROMIUM",
3585 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM",
3589 "GL_OVERLAY_TRANSFORM_ROTATE_270_CHROMIUM",
3593 "GL_MAX_UNIFORM_BUFFER_BINDINGS",
3597 "GL_MULTISAMPLE_BUFFER_BIT5_QCOM",
3601 "GL_UNIFORM_BUFFER_SIZE",
3609 "GL_MAX_GEOMETRY_UNIFORM_BLOCKS_EXT",
3621 "GL_TEXTURE_IMMUTABLE_FORMAT_EXT",
3625 "GL_MAX_VERTEX_UNIFORM_BLOCKS",
3629 "GL_OVERLAY_TRANSFORM_FLIP_HORIZONTAL_CHROMIUM",
3633 "GL_PIXEL_UNPACK_BUFFER",
3649 "GL_PALETTE4_RGBA4_OES",
3653 "GL_PIXEL_PACK_BUFFER",
3657 "GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_EXT",
3665 "GL_DEPTH32F_STENCIL8",
3673 "GL_RENDERBUFFER_SAMPLES_ANGLE",
3677 "GL_DEPTH_COMPONENT32F",
3697 "GL_MULTISAMPLE_BUFFER_BIT0_QCOM",
3701 "GL_PIXEL_PACK_TRANSFER_BUFFER_CHROMIUM",
3705 "GL_PIXEL_PACK_TRANSFER_BUFFER_BINDING_CHROMIUM",
3709 "GL_TEXTURE_POOL_MANAGED_CHROMIUM",
3713 "GL_CULL_FACE_MODE",
3717 "GL_PALETTE4_R5_G6_B5_OES",
3721 "GL_STENCIL_BUFFER_BIT4_QCOM",
3725 "GL_LAST_VERTEX_CONVENTION_EXT",
3729 "GL_FIRST_VERTEX_CONVENTION_EXT",
3733 "GL_TRANSFORM_FEEDBACK_ACTIVE",
3737 "GL_TEXTURE_SWIZZLE_A",
3741 "GL_TEXTURE_SWIZZLE_B",
3745 "GL_TEXTURE_SWIZZLE_G",
3749 "GL_TEXTURE_SWIZZLE_R",
3753 "GL_STENCIL_ATTACHMENT",
3757 "GL_PALETTE4_RGBA8_OES",
3761 "GL_DEPTH_BUFFER_BIT1_QCOM",
3765 "GL_PIXEL_UNPACK_TRANSFER_BUFFER_CHROMIUM",
3769 "GL_COVERAGE_BUFFER_BIT_NV",
3777 "GL_READ_FRAMEBUFFER_ANGLE",
3781 "GL_DRAW_FRAMEBUFFER_ANGLE",
3785 "GL_FRAMEBUFFER_BINDING",
3789 "GL_RENDERBUFFER_BINDING",
3793 "GL_STENCIL_BACK_VALUE_MASK",
3797 "GL_STENCIL_BACK_WRITEMASK",
3801 "GL_PALETTE4_RGB8_OES",
3805 "GL_STENCIL_BACK_REF",
3809 "GL_MAX_ELEMENTS_VERTICES",
3813 "GL_BLEND_SRC_ALPHA",
3817 "GL_BLEND_DST_ALPHA",
3821 "GL_COLOR_ATTACHMENT7_EXT",
3825 "GL_COMPRESSED_RGBA_ASTC_4x4_KHR",
3829 "GL_COMPRESSED_RGBA_ASTC_5x4_KHR",
3833 "GL_COMPRESSED_RGBA_ASTC_5x5_KHR",
3837 "GL_COMPRESSED_RGBA_ASTC_6x5_KHR",
3841 "GL_COMPRESSED_RGBA_ASTC_6x6_KHR",
3845 "GL_COMPRESSED_RGBA_ASTC_8x5_KHR",
3849 "GL_COMPRESSED_RGBA_ASTC_8x6_KHR",
3853 "GL_COMPRESSED_RGBA_ASTC_8x8_KHR",
3857 "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT",
3861 "GL_COMPRESSED_RGBA_ASTC_10x6_KHR",
3865 "GL_MAX_ELEMENTS_INDICES",
3869 "GL_COLOR_ATTACHMENT5_EXT",
3873 "GL_TRANSFORM_FEEDBACK_BUFFER_START",
3877 "GL_PATH_MODELVIEW_MATRIX_CHROMIUM",
3881 "GL_SAMPLER_BUFFER_EXT",
3885 "GL_SAMPLE_SHADING_OES",
3889 "GL_MIN_SAMPLE_SHADING_VALUE_OES",
3897 "GL_COLOR_ATTACHMENT9_EXT",
3901 "GL_FLOAT_32_UNSIGNED_INT_24_8_REV",
3905 "GL_PALETTE8_RGBA8_OES",
3909 "GL_MAX_TEXTURE_IMAGE_UNITS",
3913 "GL_UNSIGNED_INT_VEC2",
3925 "GL_HSL_SATURATION_KHR",
3933 "GL_TEXTURE_DEPTH_QCOM",
3937 "GL_SAMPLER_2D_ARRAY_SHADOW_NV",
3945 "GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR",
3949 "GL_ELEMENT_ARRAY_BUFFER_BINDING",
3953 "GL_ARRAY_BUFFER_BINDING",
3961 "GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT",
3969 "GL_ELEMENT_ARRAY_BUFFER",
3985 "GL_OBJECT_TYPE_APPLE",
3989 "GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_EXT",
3993 "GL_MAX_GEOMETRY_IMAGE_UNIFORMS_EXT",
3997 "GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT",
4001 "GL_TEXTURE_BUFFER_SIZE_EXT",
4005 "GL_TEXTURE_BUFFER_OFFSET_EXT",
4009 "GL_TEXTURE_IMAGE_VALID_QCOM",
4013 "GL_COMPRESSED_RGBA8_ETC2_EAC",
4017 "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",
4021 "GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT",
4025 "GL_COMPRESSED_RG11_EAC",
4029 "GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT",
4033 "GL_COMPRESSED_R11_EAC",
4037 "GL_COMPRESSED_SIGNED_R11_EAC",
4041 "GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",
4045 "GL_GEOMETRY_SHADER_INVOCATIONS_EXT",
4049 "GL_UNIFORM_OFFSET",
4053 "GL_COMPRESSED_SRGB8_ETC2",
4061 "GL_R11F_G11F_B10F_APPLE",
4065 "GL_UNSIGNED_INT_10F_11F_11F_REV_APPLE",
4073 "GL_UNSIGNED_INT_5_9_9_9_REV_APPLE",
4081 "GL_COMPRESSED_RGBA_ASTC_10x8_KHR",
4085 "GL_BLEND_ADVANCED_COHERENT_KHR",
4089 "GL_COMPRESSED_RGBA_ASTC_12x10_KHR",
4093 "GL_COMPRESSED_RGBA_ASTC_12x12_KHR",
4097 "GL_MAX_RENDERBUFFER_SIZE",
4101 "GL_BLEND_OVERLAP_NV",
4105 "GL_BLEND_PREMULTIPLIED_SRC_NV",
4109 "GL_DEPTH_BUFFER_BIT5_QCOM",
4113 "GL_MIRRORED_REPEAT",
4117 "GL_ACTIVE_TEXTURE",
4121 "GL_STENCIL_BACK_FUNC",
4125 "GL_STENCIL_BACK_FAIL",
4129 "GL_MAX_TEXTURE_SIZE",
4133 "GL_MAX_CLIP_DISTANCES_APPLE",
4137 "GL_VERTEX_ATTRIB_ARRAY_STRIDE",
4141 "GL_VERTEX_ATTRIB_ARRAY_TYPE",
4145 "GL_VERTEX_ATTRIB_ARRAY_ENABLED",
4149 "GL_VERTEX_ATTRIB_ARRAY_SIZE",
4153 "GL_FRAMEBUFFER_SRGB_EXT",
4157 "GL_REFERENCED_BY_TESS_CONTROL_SHADER_EXT",
4161 "GL_ACTIVE_PROGRAM_EXT",
4165 "GL_PROGRAM_SEPARABLE_EXT",
4169 "GL_PROGRAM_BINARY_RETRIEVABLE_HINT",
4173 "GL_RESET_NOTIFICATION_STRATEGY_KHR",
4177 "GL_UNKNOWN_CONTEXT_RESET_KHR",
4181 "GL_INNOCENT_CONTEXT_RESET_KHR",
4197 "GL_DEBUG_TYPE_PERFORMANCE_KHR",
4201 "GL_COLOR_ATTACHMENT11_EXT",
4205 "GL_COLOR_ATTACHMENT12_EXT",
4209 "GL_FRONT_AND_BACK",
4213 "GL_COLOR_ATTACHMENT10_EXT",
4217 "GL_COLOR_ATTACHMENT15_EXT",
4221 "GL_COLOR_ATTACHMENT13_EXT",
4225 "GL_DRAW_BUFFER4_EXT",
4257 "GL_COMPRESSED_RGBA_ASTC_5x5x5_OES",
4273 "GL_READ_FRAMEBUFFER_BINDING_ANGLE",
4277 "GL_COMPRESSED_RGBA_ASTC_5x5x4_OES",
4281 "GL_MULTISAMPLE_BUFFER_BIT6_QCOM",
4289 "GL_SYNC_FENCE_APPLE",
4293 "GL_COMPRESSED_RGBA_ASTC_5x4x4_OES",
4301 "GL_PIXEL_PACK_BUFFER_BINDING",
4305 "GL_PIXEL_UNPACK_BUFFER_BINDING",
4309 "GL_COMPRESSED_RGBA_ASTC_4x4x4_OES",
4313 "GL_DEPTH_BUFFER_BIT3_QCOM",
4321 "GL_COMPRESSED_RGBA_ASTC_4x4x3_OES",
4325 "GL_COLOR_ATTACHMENT2_EXT",
4329 "GL_COUNTER_RANGE_AMD",
4333 "GL_COLOR_ATTACHMENT0",
4337 "GL_COLOR_ATTACHMENT1_EXT",
4341 "GL_COLOR_ATTACHMENT6_EXT",
4345 "GL_COMPRESSED_RGBA_ASTC_4x3x3_OES",
4353 "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR",
4357 "GL_PLUS_DARKER_NV",
4361 "GL_COLOR_ATTACHMENT8_EXT",
4365 "GL_COMPRESSED_RGBA_ASTC_3x3x3_OES",
4369 "GL_COLOR_WRITEMASK",
4373 "GL_COLOR_CLEAR_VALUE",
4377 "GL_UNIFORM_BUFFER",
4381 "GL_WRITEONLY_RENDERING_QCOM",
4389 "GL_MAX_DRAW_BUFFERS_EXT",
4393 "GL_LAYER_PROVOKING_VERTEX_EXT",
4397 "GL_PROGRAM_PIPELINE_BINDING_EXT",
4405 "GL_MAX_VIEWPORT_DIMS",
4413 "GL_DRAW_BUFFER1_EXT",
4417 "GL_SAMPLE_ALPHA_TO_COVERAGE",
4421 "GL_COUNTER_TYPE_AMD",
4425 "GL_PERCENTAGE_AMD",
4429 "GL_UNSIGNED_INT64_AMD",
4433 "GL_PERFMON_RESULT_SIZE_AMD",
4437 "GL_PERFMON_RESULT_AVAILABLE_AMD",
4441 "GL_PERFMON_RESULT_AMD",
4445 const GLES2Util::EnumToString
* const GLES2Util::enum_to_string_table_
=
4446 enum_to_string_table
;
4447 const size_t GLES2Util::enum_to_string_table_len_
=
4448 sizeof(enum_to_string_table
) / sizeof(enum_to_string_table
[0]);
4450 std::string
GLES2Util::GetStringAttachment(uint32_t value
) {
4451 static const EnumToString string_table
[] = {
4452 {GL_COLOR_ATTACHMENT0
, "GL_COLOR_ATTACHMENT0"},
4453 {GL_DEPTH_ATTACHMENT
, "GL_DEPTH_ATTACHMENT"},
4454 {GL_STENCIL_ATTACHMENT
, "GL_STENCIL_ATTACHMENT"},
4456 return GLES2Util::GetQualifiedEnumString(string_table
,
4457 arraysize(string_table
), value
);
4460 std::string
GLES2Util::GetStringBackbufferAttachment(uint32_t value
) {
4461 static const EnumToString string_table
[] = {
4462 {GL_COLOR_EXT
, "GL_COLOR_EXT"},
4463 {GL_DEPTH_EXT
, "GL_DEPTH_EXT"},
4464 {GL_STENCIL_EXT
, "GL_STENCIL_EXT"},
4466 return GLES2Util::GetQualifiedEnumString(string_table
,
4467 arraysize(string_table
), value
);
4470 std::string
GLES2Util::GetStringBlitFilter(uint32_t value
) {
4471 static const EnumToString string_table
[] = {
4472 {GL_NEAREST
, "GL_NEAREST"}, {GL_LINEAR
, "GL_LINEAR"},
4474 return GLES2Util::GetQualifiedEnumString(string_table
,
4475 arraysize(string_table
), value
);
4478 std::string
GLES2Util::GetStringBufferParameter(uint32_t value
) {
4479 static const EnumToString string_table
[] = {
4480 {GL_BUFFER_SIZE
, "GL_BUFFER_SIZE"}, {GL_BUFFER_USAGE
, "GL_BUFFER_USAGE"},
4482 return GLES2Util::GetQualifiedEnumString(string_table
,
4483 arraysize(string_table
), value
);
4486 std::string
GLES2Util::GetStringBufferTarget(uint32_t value
) {
4487 static const EnumToString string_table
[] = {
4488 {GL_ARRAY_BUFFER
, "GL_ARRAY_BUFFER"},
4489 {GL_ELEMENT_ARRAY_BUFFER
, "GL_ELEMENT_ARRAY_BUFFER"},
4491 return GLES2Util::GetQualifiedEnumString(string_table
,
4492 arraysize(string_table
), value
);
4495 std::string
GLES2Util::GetStringBufferUsage(uint32_t value
) {
4496 static const EnumToString string_table
[] = {
4497 {GL_STREAM_DRAW
, "GL_STREAM_DRAW"},
4498 {GL_STATIC_DRAW
, "GL_STATIC_DRAW"},
4499 {GL_DYNAMIC_DRAW
, "GL_DYNAMIC_DRAW"},
4501 return GLES2Util::GetQualifiedEnumString(string_table
,
4502 arraysize(string_table
), value
);
4505 std::string
GLES2Util::GetStringCapability(uint32_t value
) {
4506 static const EnumToString string_table
[] = {
4507 {GL_BLEND
, "GL_BLEND"},
4508 {GL_CULL_FACE
, "GL_CULL_FACE"},
4509 {GL_DEPTH_TEST
, "GL_DEPTH_TEST"},
4510 {GL_DITHER
, "GL_DITHER"},
4511 {GL_POLYGON_OFFSET_FILL
, "GL_POLYGON_OFFSET_FILL"},
4512 {GL_SAMPLE_ALPHA_TO_COVERAGE
, "GL_SAMPLE_ALPHA_TO_COVERAGE"},
4513 {GL_SAMPLE_COVERAGE
, "GL_SAMPLE_COVERAGE"},
4514 {GL_SCISSOR_TEST
, "GL_SCISSOR_TEST"},
4515 {GL_STENCIL_TEST
, "GL_STENCIL_TEST"},
4517 return GLES2Util::GetQualifiedEnumString(string_table
,
4518 arraysize(string_table
), value
);
4521 std::string
GLES2Util::GetStringCmpFunction(uint32_t value
) {
4522 static const EnumToString string_table
[] = {
4523 {GL_NEVER
, "GL_NEVER"},
4524 {GL_LESS
, "GL_LESS"},
4525 {GL_EQUAL
, "GL_EQUAL"},
4526 {GL_LEQUAL
, "GL_LEQUAL"},
4527 {GL_GREATER
, "GL_GREATER"},
4528 {GL_NOTEQUAL
, "GL_NOTEQUAL"},
4529 {GL_GEQUAL
, "GL_GEQUAL"},
4530 {GL_ALWAYS
, "GL_ALWAYS"},
4532 return GLES2Util::GetQualifiedEnumString(string_table
,
4533 arraysize(string_table
), value
);
4536 std::string
GLES2Util::GetStringCompressedTextureFormat(uint32_t value
) {
4537 return GLES2Util::GetQualifiedEnumString(NULL
, 0, value
);
4540 std::string
GLES2Util::GetStringDrawMode(uint32_t value
) {
4541 static const EnumToString string_table
[] = {
4542 {GL_POINTS
, "GL_POINTS"},
4543 {GL_LINE_STRIP
, "GL_LINE_STRIP"},
4544 {GL_LINE_LOOP
, "GL_LINE_LOOP"},
4545 {GL_LINES
, "GL_LINES"},
4546 {GL_TRIANGLE_STRIP
, "GL_TRIANGLE_STRIP"},
4547 {GL_TRIANGLE_FAN
, "GL_TRIANGLE_FAN"},
4548 {GL_TRIANGLES
, "GL_TRIANGLES"},
4550 return GLES2Util::GetQualifiedEnumString(string_table
,
4551 arraysize(string_table
), value
);
4554 std::string
GLES2Util::GetStringDstBlendFactor(uint32_t value
) {
4555 static const EnumToString string_table
[] = {
4556 {GL_ZERO
, "GL_ZERO"},
4558 {GL_SRC_COLOR
, "GL_SRC_COLOR"},
4559 {GL_ONE_MINUS_SRC_COLOR
, "GL_ONE_MINUS_SRC_COLOR"},
4560 {GL_DST_COLOR
, "GL_DST_COLOR"},
4561 {GL_ONE_MINUS_DST_COLOR
, "GL_ONE_MINUS_DST_COLOR"},
4562 {GL_SRC_ALPHA
, "GL_SRC_ALPHA"},
4563 {GL_ONE_MINUS_SRC_ALPHA
, "GL_ONE_MINUS_SRC_ALPHA"},
4564 {GL_DST_ALPHA
, "GL_DST_ALPHA"},
4565 {GL_ONE_MINUS_DST_ALPHA
, "GL_ONE_MINUS_DST_ALPHA"},
4566 {GL_CONSTANT_COLOR
, "GL_CONSTANT_COLOR"},
4567 {GL_ONE_MINUS_CONSTANT_COLOR
, "GL_ONE_MINUS_CONSTANT_COLOR"},
4568 {GL_CONSTANT_ALPHA
, "GL_CONSTANT_ALPHA"},
4569 {GL_ONE_MINUS_CONSTANT_ALPHA
, "GL_ONE_MINUS_CONSTANT_ALPHA"},
4571 return GLES2Util::GetQualifiedEnumString(string_table
,
4572 arraysize(string_table
), value
);
4575 std::string
GLES2Util::GetStringEquation(uint32_t value
) {
4576 static const EnumToString string_table
[] = {
4577 {GL_FUNC_ADD
, "GL_FUNC_ADD"},
4578 {GL_FUNC_SUBTRACT
, "GL_FUNC_SUBTRACT"},
4579 {GL_FUNC_REVERSE_SUBTRACT
, "GL_FUNC_REVERSE_SUBTRACT"},
4581 return GLES2Util::GetQualifiedEnumString(string_table
,
4582 arraysize(string_table
), value
);
4585 std::string
GLES2Util::GetStringFaceMode(uint32_t value
) {
4586 static const EnumToString string_table
[] = {
4587 {GL_CW
, "GL_CW"}, {GL_CCW
, "GL_CCW"},
4589 return GLES2Util::GetQualifiedEnumString(string_table
,
4590 arraysize(string_table
), value
);
4593 std::string
GLES2Util::GetStringFaceType(uint32_t value
) {
4594 static const EnumToString string_table
[] = {
4595 {GL_FRONT
, "GL_FRONT"},
4596 {GL_BACK
, "GL_BACK"},
4597 {GL_FRONT_AND_BACK
, "GL_FRONT_AND_BACK"},
4599 return GLES2Util::GetQualifiedEnumString(string_table
,
4600 arraysize(string_table
), value
);
4603 std::string
GLES2Util::GetStringFrameBufferParameter(uint32_t value
) {
4604 static const EnumToString string_table
[] = {
4605 {GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
,
4606 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE"},
4607 {GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
,
4608 "GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME"},
4609 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
,
4610 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL"},
4611 {GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
,
4612 "GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE"},
4614 return GLES2Util::GetQualifiedEnumString(string_table
,
4615 arraysize(string_table
), value
);
4618 std::string
GLES2Util::GetStringFrameBufferTarget(uint32_t value
) {
4619 static const EnumToString string_table
[] = {
4620 {GL_FRAMEBUFFER
, "GL_FRAMEBUFFER"},
4622 return GLES2Util::GetQualifiedEnumString(string_table
,
4623 arraysize(string_table
), value
);
4626 std::string
GLES2Util::GetStringGLState(uint32_t value
) {
4627 static const EnumToString string_table
[] = {
4628 {GL_ACTIVE_TEXTURE
, "GL_ACTIVE_TEXTURE"},
4629 {GL_ALIASED_LINE_WIDTH_RANGE
, "GL_ALIASED_LINE_WIDTH_RANGE"},
4630 {GL_ALIASED_POINT_SIZE_RANGE
, "GL_ALIASED_POINT_SIZE_RANGE"},
4631 {GL_ALPHA_BITS
, "GL_ALPHA_BITS"},
4632 {GL_ARRAY_BUFFER_BINDING
, "GL_ARRAY_BUFFER_BINDING"},
4633 {GL_BLUE_BITS
, "GL_BLUE_BITS"},
4634 {GL_COMPRESSED_TEXTURE_FORMATS
, "GL_COMPRESSED_TEXTURE_FORMATS"},
4635 {GL_CURRENT_PROGRAM
, "GL_CURRENT_PROGRAM"},
4636 {GL_DEPTH_BITS
, "GL_DEPTH_BITS"},
4637 {GL_DEPTH_RANGE
, "GL_DEPTH_RANGE"},
4638 {GL_ELEMENT_ARRAY_BUFFER_BINDING
, "GL_ELEMENT_ARRAY_BUFFER_BINDING"},
4639 {GL_FRAMEBUFFER_BINDING
, "GL_FRAMEBUFFER_BINDING"},
4640 {GL_GENERATE_MIPMAP_HINT
, "GL_GENERATE_MIPMAP_HINT"},
4641 {GL_GREEN_BITS
, "GL_GREEN_BITS"},
4642 {GL_IMPLEMENTATION_COLOR_READ_FORMAT
,
4643 "GL_IMPLEMENTATION_COLOR_READ_FORMAT"},
4644 {GL_IMPLEMENTATION_COLOR_READ_TYPE
, "GL_IMPLEMENTATION_COLOR_READ_TYPE"},
4645 {GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
,
4646 "GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS"},
4647 {GL_MAX_CUBE_MAP_TEXTURE_SIZE
, "GL_MAX_CUBE_MAP_TEXTURE_SIZE"},
4648 {GL_MAX_FRAGMENT_UNIFORM_VECTORS
, "GL_MAX_FRAGMENT_UNIFORM_VECTORS"},
4649 {GL_MAX_RENDERBUFFER_SIZE
, "GL_MAX_RENDERBUFFER_SIZE"},
4650 {GL_MAX_TEXTURE_IMAGE_UNITS
, "GL_MAX_TEXTURE_IMAGE_UNITS"},
4651 {GL_MAX_TEXTURE_SIZE
, "GL_MAX_TEXTURE_SIZE"},
4652 {GL_MAX_VARYING_VECTORS
, "GL_MAX_VARYING_VECTORS"},
4653 {GL_MAX_VERTEX_ATTRIBS
, "GL_MAX_VERTEX_ATTRIBS"},
4654 {GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
, "GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS"},
4655 {GL_MAX_VERTEX_UNIFORM_VECTORS
, "GL_MAX_VERTEX_UNIFORM_VECTORS"},
4656 {GL_MAX_VIEWPORT_DIMS
, "GL_MAX_VIEWPORT_DIMS"},
4657 {GL_NUM_COMPRESSED_TEXTURE_FORMATS
, "GL_NUM_COMPRESSED_TEXTURE_FORMATS"},
4658 {GL_NUM_SHADER_BINARY_FORMATS
, "GL_NUM_SHADER_BINARY_FORMATS"},
4659 {GL_PACK_ALIGNMENT
, "GL_PACK_ALIGNMENT"},
4660 {GL_RED_BITS
, "GL_RED_BITS"},
4661 {GL_RENDERBUFFER_BINDING
, "GL_RENDERBUFFER_BINDING"},
4662 {GL_SAMPLE_BUFFERS
, "GL_SAMPLE_BUFFERS"},
4663 {GL_SAMPLE_COVERAGE_INVERT
, "GL_SAMPLE_COVERAGE_INVERT"},
4664 {GL_SAMPLE_COVERAGE_VALUE
, "GL_SAMPLE_COVERAGE_VALUE"},
4665 {GL_SAMPLES
, "GL_SAMPLES"},
4666 {GL_SCISSOR_BOX
, "GL_SCISSOR_BOX"},
4667 {GL_SHADER_BINARY_FORMATS
, "GL_SHADER_BINARY_FORMATS"},
4668 {GL_SHADER_COMPILER
, "GL_SHADER_COMPILER"},
4669 {GL_SUBPIXEL_BITS
, "GL_SUBPIXEL_BITS"},
4670 {GL_STENCIL_BITS
, "GL_STENCIL_BITS"},
4671 {GL_TEXTURE_BINDING_2D
, "GL_TEXTURE_BINDING_2D"},
4672 {GL_TEXTURE_BINDING_CUBE_MAP
, "GL_TEXTURE_BINDING_CUBE_MAP"},
4673 {GL_UNPACK_ALIGNMENT
, "GL_UNPACK_ALIGNMENT"},
4674 {GL_UNPACK_FLIP_Y_CHROMIUM
, "GL_UNPACK_FLIP_Y_CHROMIUM"},
4675 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM
,
4676 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"},
4677 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM
,
4678 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"},
4679 {GL_BIND_GENERATES_RESOURCE_CHROMIUM
,
4680 "GL_BIND_GENERATES_RESOURCE_CHROMIUM"},
4681 {GL_VERTEX_ARRAY_BINDING_OES
, "GL_VERTEX_ARRAY_BINDING_OES"},
4682 {GL_VIEWPORT
, "GL_VIEWPORT"},
4683 {GL_BLEND_COLOR
, "GL_BLEND_COLOR"},
4684 {GL_BLEND_EQUATION_RGB
, "GL_BLEND_EQUATION_RGB"},
4685 {GL_BLEND_EQUATION_ALPHA
, "GL_BLEND_EQUATION_ALPHA"},
4686 {GL_BLEND_SRC_RGB
, "GL_BLEND_SRC_RGB"},
4687 {GL_BLEND_DST_RGB
, "GL_BLEND_DST_RGB"},
4688 {GL_BLEND_SRC_ALPHA
, "GL_BLEND_SRC_ALPHA"},
4689 {GL_BLEND_DST_ALPHA
, "GL_BLEND_DST_ALPHA"},
4690 {GL_COLOR_CLEAR_VALUE
, "GL_COLOR_CLEAR_VALUE"},
4691 {GL_DEPTH_CLEAR_VALUE
, "GL_DEPTH_CLEAR_VALUE"},
4692 {GL_STENCIL_CLEAR_VALUE
, "GL_STENCIL_CLEAR_VALUE"},
4693 {GL_COLOR_WRITEMASK
, "GL_COLOR_WRITEMASK"},
4694 {GL_CULL_FACE_MODE
, "GL_CULL_FACE_MODE"},
4695 {GL_DEPTH_FUNC
, "GL_DEPTH_FUNC"},
4696 {GL_DEPTH_WRITEMASK
, "GL_DEPTH_WRITEMASK"},
4697 {GL_FRONT_FACE
, "GL_FRONT_FACE"},
4698 {GL_LINE_WIDTH
, "GL_LINE_WIDTH"},
4699 {GL_POLYGON_OFFSET_FACTOR
, "GL_POLYGON_OFFSET_FACTOR"},
4700 {GL_POLYGON_OFFSET_UNITS
, "GL_POLYGON_OFFSET_UNITS"},
4701 {GL_STENCIL_FUNC
, "GL_STENCIL_FUNC"},
4702 {GL_STENCIL_REF
, "GL_STENCIL_REF"},
4703 {GL_STENCIL_VALUE_MASK
, "GL_STENCIL_VALUE_MASK"},
4704 {GL_STENCIL_BACK_FUNC
, "GL_STENCIL_BACK_FUNC"},
4705 {GL_STENCIL_BACK_REF
, "GL_STENCIL_BACK_REF"},
4706 {GL_STENCIL_BACK_VALUE_MASK
, "GL_STENCIL_BACK_VALUE_MASK"},
4707 {GL_STENCIL_WRITEMASK
, "GL_STENCIL_WRITEMASK"},
4708 {GL_STENCIL_BACK_WRITEMASK
, "GL_STENCIL_BACK_WRITEMASK"},
4709 {GL_STENCIL_FAIL
, "GL_STENCIL_FAIL"},
4710 {GL_STENCIL_PASS_DEPTH_FAIL
, "GL_STENCIL_PASS_DEPTH_FAIL"},
4711 {GL_STENCIL_PASS_DEPTH_PASS
, "GL_STENCIL_PASS_DEPTH_PASS"},
4712 {GL_STENCIL_BACK_FAIL
, "GL_STENCIL_BACK_FAIL"},
4713 {GL_STENCIL_BACK_PASS_DEPTH_FAIL
, "GL_STENCIL_BACK_PASS_DEPTH_FAIL"},
4714 {GL_STENCIL_BACK_PASS_DEPTH_PASS
, "GL_STENCIL_BACK_PASS_DEPTH_PASS"},
4715 {GL_BLEND
, "GL_BLEND"},
4716 {GL_CULL_FACE
, "GL_CULL_FACE"},
4717 {GL_DEPTH_TEST
, "GL_DEPTH_TEST"},
4718 {GL_DITHER
, "GL_DITHER"},
4719 {GL_POLYGON_OFFSET_FILL
, "GL_POLYGON_OFFSET_FILL"},
4720 {GL_SAMPLE_ALPHA_TO_COVERAGE
, "GL_SAMPLE_ALPHA_TO_COVERAGE"},
4721 {GL_SAMPLE_COVERAGE
, "GL_SAMPLE_COVERAGE"},
4722 {GL_SCISSOR_TEST
, "GL_SCISSOR_TEST"},
4723 {GL_STENCIL_TEST
, "GL_STENCIL_TEST"},
4725 return GLES2Util::GetQualifiedEnumString(string_table
,
4726 arraysize(string_table
), value
);
4729 std::string
GLES2Util::GetStringGetMaxIndexType(uint32_t value
) {
4730 static const EnumToString string_table
[] = {
4731 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4732 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4733 {GL_UNSIGNED_INT
, "GL_UNSIGNED_INT"},
4735 return GLES2Util::GetQualifiedEnumString(string_table
,
4736 arraysize(string_table
), value
);
4739 std::string
GLES2Util::GetStringGetTexParamTarget(uint32_t value
) {
4740 static const EnumToString string_table
[] = {
4741 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
4742 {GL_TEXTURE_CUBE_MAP
, "GL_TEXTURE_CUBE_MAP"},
4744 return GLES2Util::GetQualifiedEnumString(string_table
,
4745 arraysize(string_table
), value
);
4748 std::string
GLES2Util::GetStringHintMode(uint32_t value
) {
4749 static const EnumToString string_table
[] = {
4750 {GL_FASTEST
, "GL_FASTEST"},
4751 {GL_NICEST
, "GL_NICEST"},
4752 {GL_DONT_CARE
, "GL_DONT_CARE"},
4754 return GLES2Util::GetQualifiedEnumString(string_table
,
4755 arraysize(string_table
), value
);
4758 std::string
GLES2Util::GetStringHintTarget(uint32_t value
) {
4759 static const EnumToString string_table
[] = {
4760 {GL_GENERATE_MIPMAP_HINT
, "GL_GENERATE_MIPMAP_HINT"},
4762 return GLES2Util::GetQualifiedEnumString(string_table
,
4763 arraysize(string_table
), value
);
4766 std::string
GLES2Util::GetStringImageInternalFormat(uint32_t value
) {
4767 static const EnumToString string_table
[] = {
4768 {GL_RGB
, "GL_RGB"}, {GL_RGBA
, "GL_RGBA"},
4770 return GLES2Util::GetQualifiedEnumString(string_table
,
4771 arraysize(string_table
), value
);
4774 std::string
GLES2Util::GetStringImageUsage(uint32_t value
) {
4775 static const EnumToString string_table
[] = {
4776 {GL_MAP_CHROMIUM
, "GL_MAP_CHROMIUM"},
4777 {GL_SCANOUT_CHROMIUM
, "GL_SCANOUT_CHROMIUM"},
4779 return GLES2Util::GetQualifiedEnumString(string_table
,
4780 arraysize(string_table
), value
);
4783 std::string
GLES2Util::GetStringIndexType(uint32_t value
) {
4784 static const EnumToString string_table
[] = {
4785 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4786 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
4788 return GLES2Util::GetQualifiedEnumString(string_table
,
4789 arraysize(string_table
), value
);
4792 std::string
GLES2Util::GetStringMatrixMode(uint32_t value
) {
4793 static const EnumToString string_table
[] = {
4794 {GL_PATH_PROJECTION_CHROMIUM
, "GL_PATH_PROJECTION_CHROMIUM"},
4795 {GL_PATH_MODELVIEW_CHROMIUM
, "GL_PATH_MODELVIEW_CHROMIUM"},
4797 return GLES2Util::GetQualifiedEnumString(string_table
,
4798 arraysize(string_table
), value
);
4801 std::string
GLES2Util::GetStringPixelStore(uint32_t value
) {
4802 static const EnumToString string_table
[] = {
4803 {GL_PACK_ALIGNMENT
, "GL_PACK_ALIGNMENT"},
4804 {GL_UNPACK_ALIGNMENT
, "GL_UNPACK_ALIGNMENT"},
4805 {GL_UNPACK_FLIP_Y_CHROMIUM
, "GL_UNPACK_FLIP_Y_CHROMIUM"},
4806 {GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM
,
4807 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM"},
4808 {GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM
,
4809 "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM"},
4811 return GLES2Util::GetQualifiedEnumString(string_table
,
4812 arraysize(string_table
), value
);
4815 std::string
GLES2Util::GetStringPixelType(uint32_t value
) {
4816 static const EnumToString string_table
[] = {
4817 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4818 {GL_UNSIGNED_SHORT_5_6_5
, "GL_UNSIGNED_SHORT_5_6_5"},
4819 {GL_UNSIGNED_SHORT_4_4_4_4
, "GL_UNSIGNED_SHORT_4_4_4_4"},
4820 {GL_UNSIGNED_SHORT_5_5_5_1
, "GL_UNSIGNED_SHORT_5_5_5_1"},
4822 return GLES2Util::GetQualifiedEnumString(string_table
,
4823 arraysize(string_table
), value
);
4826 std::string
GLES2Util::GetStringProgramParameter(uint32_t value
) {
4827 static const EnumToString string_table
[] = {
4828 {GL_DELETE_STATUS
, "GL_DELETE_STATUS"},
4829 {GL_LINK_STATUS
, "GL_LINK_STATUS"},
4830 {GL_VALIDATE_STATUS
, "GL_VALIDATE_STATUS"},
4831 {GL_INFO_LOG_LENGTH
, "GL_INFO_LOG_LENGTH"},
4832 {GL_ATTACHED_SHADERS
, "GL_ATTACHED_SHADERS"},
4833 {GL_ACTIVE_ATTRIBUTES
, "GL_ACTIVE_ATTRIBUTES"},
4834 {GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
, "GL_ACTIVE_ATTRIBUTE_MAX_LENGTH"},
4835 {GL_ACTIVE_UNIFORMS
, "GL_ACTIVE_UNIFORMS"},
4836 {GL_ACTIVE_UNIFORM_MAX_LENGTH
, "GL_ACTIVE_UNIFORM_MAX_LENGTH"},
4838 return GLES2Util::GetQualifiedEnumString(string_table
,
4839 arraysize(string_table
), value
);
4842 std::string
GLES2Util::GetStringQueryObjectParameter(uint32_t value
) {
4843 static const EnumToString string_table
[] = {
4844 {GL_QUERY_RESULT_EXT
, "GL_QUERY_RESULT_EXT"},
4845 {GL_QUERY_RESULT_AVAILABLE_EXT
, "GL_QUERY_RESULT_AVAILABLE_EXT"},
4847 return GLES2Util::GetQualifiedEnumString(string_table
,
4848 arraysize(string_table
), value
);
4851 std::string
GLES2Util::GetStringQueryParameter(uint32_t value
) {
4852 static const EnumToString string_table
[] = {
4853 {GL_CURRENT_QUERY_EXT
, "GL_CURRENT_QUERY_EXT"},
4855 return GLES2Util::GetQualifiedEnumString(string_table
,
4856 arraysize(string_table
), value
);
4859 std::string
GLES2Util::GetStringQueryTarget(uint32_t value
) {
4860 static const EnumToString string_table
[] = {
4861 {GL_ANY_SAMPLES_PASSED_EXT
, "GL_ANY_SAMPLES_PASSED_EXT"},
4862 {GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT
,
4863 "GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT"},
4864 {GL_COMMANDS_ISSUED_CHROMIUM
, "GL_COMMANDS_ISSUED_CHROMIUM"},
4865 {GL_LATENCY_QUERY_CHROMIUM
, "GL_LATENCY_QUERY_CHROMIUM"},
4866 {GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM
,
4867 "GL_ASYNC_PIXEL_UNPACK_COMPLETED_CHROMIUM"},
4868 {GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM
,
4869 "GL_ASYNC_PIXEL_PACK_COMPLETED_CHROMIUM"},
4870 {GL_COMMANDS_COMPLETED_CHROMIUM
, "GL_COMMANDS_COMPLETED_CHROMIUM"},
4872 return GLES2Util::GetQualifiedEnumString(string_table
,
4873 arraysize(string_table
), value
);
4876 std::string
GLES2Util::GetStringReadPixelFormat(uint32_t value
) {
4877 static const EnumToString string_table
[] = {
4878 {GL_ALPHA
, "GL_ALPHA"}, {GL_RGB
, "GL_RGB"}, {GL_RGBA
, "GL_RGBA"},
4880 return GLES2Util::GetQualifiedEnumString(string_table
,
4881 arraysize(string_table
), value
);
4884 std::string
GLES2Util::GetStringReadPixelType(uint32_t value
) {
4885 static const EnumToString string_table
[] = {
4886 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
4887 {GL_UNSIGNED_SHORT_5_6_5
, "GL_UNSIGNED_SHORT_5_6_5"},
4888 {GL_UNSIGNED_SHORT_4_4_4_4
, "GL_UNSIGNED_SHORT_4_4_4_4"},
4889 {GL_UNSIGNED_SHORT_5_5_5_1
, "GL_UNSIGNED_SHORT_5_5_5_1"},
4891 return GLES2Util::GetQualifiedEnumString(string_table
,
4892 arraysize(string_table
), value
);
4895 std::string
GLES2Util::GetStringRenderBufferFormat(uint32_t value
) {
4896 static const EnumToString string_table
[] = {
4897 {GL_RGBA4
, "GL_RGBA4"},
4898 {GL_RGB565
, "GL_RGB565"},
4899 {GL_RGB5_A1
, "GL_RGB5_A1"},
4900 {GL_DEPTH_COMPONENT16
, "GL_DEPTH_COMPONENT16"},
4901 {GL_STENCIL_INDEX8
, "GL_STENCIL_INDEX8"},
4903 return GLES2Util::GetQualifiedEnumString(string_table
,
4904 arraysize(string_table
), value
);
4907 std::string
GLES2Util::GetStringRenderBufferParameter(uint32_t value
) {
4908 static const EnumToString string_table
[] = {
4909 {GL_RENDERBUFFER_RED_SIZE
, "GL_RENDERBUFFER_RED_SIZE"},
4910 {GL_RENDERBUFFER_GREEN_SIZE
, "GL_RENDERBUFFER_GREEN_SIZE"},
4911 {GL_RENDERBUFFER_BLUE_SIZE
, "GL_RENDERBUFFER_BLUE_SIZE"},
4912 {GL_RENDERBUFFER_ALPHA_SIZE
, "GL_RENDERBUFFER_ALPHA_SIZE"},
4913 {GL_RENDERBUFFER_DEPTH_SIZE
, "GL_RENDERBUFFER_DEPTH_SIZE"},
4914 {GL_RENDERBUFFER_STENCIL_SIZE
, "GL_RENDERBUFFER_STENCIL_SIZE"},
4915 {GL_RENDERBUFFER_WIDTH
, "GL_RENDERBUFFER_WIDTH"},
4916 {GL_RENDERBUFFER_HEIGHT
, "GL_RENDERBUFFER_HEIGHT"},
4917 {GL_RENDERBUFFER_INTERNAL_FORMAT
, "GL_RENDERBUFFER_INTERNAL_FORMAT"},
4919 return GLES2Util::GetQualifiedEnumString(string_table
,
4920 arraysize(string_table
), value
);
4923 std::string
GLES2Util::GetStringRenderBufferTarget(uint32_t value
) {
4924 static const EnumToString string_table
[] = {
4925 {GL_RENDERBUFFER
, "GL_RENDERBUFFER"},
4927 return GLES2Util::GetQualifiedEnumString(string_table
,
4928 arraysize(string_table
), value
);
4931 std::string
GLES2Util::GetStringResetStatus(uint32_t value
) {
4932 static const EnumToString string_table
[] = {
4933 {GL_GUILTY_CONTEXT_RESET_ARB
, "GL_GUILTY_CONTEXT_RESET_ARB"},
4934 {GL_INNOCENT_CONTEXT_RESET_ARB
, "GL_INNOCENT_CONTEXT_RESET_ARB"},
4935 {GL_UNKNOWN_CONTEXT_RESET_ARB
, "GL_UNKNOWN_CONTEXT_RESET_ARB"},
4937 return GLES2Util::GetQualifiedEnumString(string_table
,
4938 arraysize(string_table
), value
);
4941 std::string
GLES2Util::GetStringSamplerParameter(uint32_t value
) {
4942 static const EnumToString string_table
[] = {
4943 {GL_TEXTURE_MAG_FILTER
, "GL_TEXTURE_MAG_FILTER"},
4944 {GL_TEXTURE_MIN_FILTER
, "GL_TEXTURE_MIN_FILTER"},
4945 {GL_TEXTURE_MIN_LOD
, "GL_TEXTURE_MIN_LOD"},
4946 {GL_TEXTURE_MAX_LOD
, "GL_TEXTURE_MAX_LOD"},
4947 {GL_TEXTURE_WRAP_S
, "GL_TEXTURE_WRAP_S"},
4948 {GL_TEXTURE_WRAP_T
, "GL_TEXTURE_WRAP_T"},
4949 {GL_TEXTURE_WRAP_R
, "GL_TEXTURE_WRAP_R"},
4950 {GL_TEXTURE_COMPARE_MODE
, "GL_TEXTURE_COMPARE_MODE"},
4951 {GL_TEXTURE_COMPARE_FUNC
, "GL_TEXTURE_COMPARE_FUNC"},
4953 return GLES2Util::GetQualifiedEnumString(string_table
,
4954 arraysize(string_table
), value
);
4957 std::string
GLES2Util::GetStringShaderBinaryFormat(uint32_t value
) {
4958 return GLES2Util::GetQualifiedEnumString(NULL
, 0, value
);
4961 std::string
GLES2Util::GetStringShaderParameter(uint32_t value
) {
4962 static const EnumToString string_table
[] = {
4963 {GL_SHADER_TYPE
, "GL_SHADER_TYPE"},
4964 {GL_DELETE_STATUS
, "GL_DELETE_STATUS"},
4965 {GL_COMPILE_STATUS
, "GL_COMPILE_STATUS"},
4966 {GL_INFO_LOG_LENGTH
, "GL_INFO_LOG_LENGTH"},
4967 {GL_SHADER_SOURCE_LENGTH
, "GL_SHADER_SOURCE_LENGTH"},
4968 {GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE
,
4969 "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE"},
4971 return GLES2Util::GetQualifiedEnumString(string_table
,
4972 arraysize(string_table
), value
);
4975 std::string
GLES2Util::GetStringShaderPrecision(uint32_t value
) {
4976 static const EnumToString string_table
[] = {
4977 {GL_LOW_FLOAT
, "GL_LOW_FLOAT"},
4978 {GL_MEDIUM_FLOAT
, "GL_MEDIUM_FLOAT"},
4979 {GL_HIGH_FLOAT
, "GL_HIGH_FLOAT"},
4980 {GL_LOW_INT
, "GL_LOW_INT"},
4981 {GL_MEDIUM_INT
, "GL_MEDIUM_INT"},
4982 {GL_HIGH_INT
, "GL_HIGH_INT"},
4984 return GLES2Util::GetQualifiedEnumString(string_table
,
4985 arraysize(string_table
), value
);
4988 std::string
GLES2Util::GetStringShaderType(uint32_t value
) {
4989 static const EnumToString string_table
[] = {
4990 {GL_VERTEX_SHADER
, "GL_VERTEX_SHADER"},
4991 {GL_FRAGMENT_SHADER
, "GL_FRAGMENT_SHADER"},
4993 return GLES2Util::GetQualifiedEnumString(string_table
,
4994 arraysize(string_table
), value
);
4997 std::string
GLES2Util::GetStringSrcBlendFactor(uint32_t value
) {
4998 static const EnumToString string_table
[] = {
4999 {GL_ZERO
, "GL_ZERO"},
5001 {GL_SRC_COLOR
, "GL_SRC_COLOR"},
5002 {GL_ONE_MINUS_SRC_COLOR
, "GL_ONE_MINUS_SRC_COLOR"},
5003 {GL_DST_COLOR
, "GL_DST_COLOR"},
5004 {GL_ONE_MINUS_DST_COLOR
, "GL_ONE_MINUS_DST_COLOR"},
5005 {GL_SRC_ALPHA
, "GL_SRC_ALPHA"},
5006 {GL_ONE_MINUS_SRC_ALPHA
, "GL_ONE_MINUS_SRC_ALPHA"},
5007 {GL_DST_ALPHA
, "GL_DST_ALPHA"},
5008 {GL_ONE_MINUS_DST_ALPHA
, "GL_ONE_MINUS_DST_ALPHA"},
5009 {GL_CONSTANT_COLOR
, "GL_CONSTANT_COLOR"},
5010 {GL_ONE_MINUS_CONSTANT_COLOR
, "GL_ONE_MINUS_CONSTANT_COLOR"},
5011 {GL_CONSTANT_ALPHA
, "GL_CONSTANT_ALPHA"},
5012 {GL_ONE_MINUS_CONSTANT_ALPHA
, "GL_ONE_MINUS_CONSTANT_ALPHA"},
5013 {GL_SRC_ALPHA_SATURATE
, "GL_SRC_ALPHA_SATURATE"},
5015 return GLES2Util::GetQualifiedEnumString(string_table
,
5016 arraysize(string_table
), value
);
5019 std::string
GLES2Util::GetStringStencilOp(uint32_t value
) {
5020 static const EnumToString string_table
[] = {
5021 {GL_KEEP
, "GL_KEEP"},
5022 {GL_ZERO
, "GL_ZERO"},
5023 {GL_REPLACE
, "GL_REPLACE"},
5024 {GL_INCR
, "GL_INCR"},
5025 {GL_INCR_WRAP
, "GL_INCR_WRAP"},
5026 {GL_DECR
, "GL_DECR"},
5027 {GL_DECR_WRAP
, "GL_DECR_WRAP"},
5028 {GL_INVERT
, "GL_INVERT"},
5030 return GLES2Util::GetQualifiedEnumString(string_table
,
5031 arraysize(string_table
), value
);
5034 std::string
GLES2Util::GetStringStringType(uint32_t value
) {
5035 static const EnumToString string_table
[] = {
5036 {GL_VENDOR
, "GL_VENDOR"},
5037 {GL_RENDERER
, "GL_RENDERER"},
5038 {GL_VERSION
, "GL_VERSION"},
5039 {GL_SHADING_LANGUAGE_VERSION
, "GL_SHADING_LANGUAGE_VERSION"},
5040 {GL_EXTENSIONS
, "GL_EXTENSIONS"},
5042 return GLES2Util::GetQualifiedEnumString(string_table
,
5043 arraysize(string_table
), value
);
5046 std::string
GLES2Util::GetStringSubscriptionTarget(uint32_t value
) {
5047 static const EnumToString string_table
[] = {
5048 {GL_MOUSE_POSITION_CHROMIUM
, "GL_MOUSE_POSITION_CHROMIUM"},
5050 return GLES2Util::GetQualifiedEnumString(string_table
,
5051 arraysize(string_table
), value
);
5054 std::string
GLES2Util::GetStringTexture3DTarget(uint32_t value
) {
5055 static const EnumToString string_table
[] = {
5056 {GL_TEXTURE_3D
, "GL_TEXTURE_3D"},
5057 {GL_TEXTURE_2D_ARRAY
, "GL_TEXTURE_2D_ARRAY"},
5059 return GLES2Util::GetQualifiedEnumString(string_table
,
5060 arraysize(string_table
), value
);
5063 std::string
GLES2Util::GetStringTextureBindTarget(uint32_t value
) {
5064 static const EnumToString string_table
[] = {
5065 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
5066 {GL_TEXTURE_CUBE_MAP
, "GL_TEXTURE_CUBE_MAP"},
5068 return GLES2Util::GetQualifiedEnumString(string_table
,
5069 arraysize(string_table
), value
);
5072 std::string
GLES2Util::GetStringTextureFormat(uint32_t value
) {
5073 static const EnumToString string_table
[] = {
5074 {GL_ALPHA
, "GL_ALPHA"},
5075 {GL_LUMINANCE
, "GL_LUMINANCE"},
5076 {GL_LUMINANCE_ALPHA
, "GL_LUMINANCE_ALPHA"},
5078 {GL_RGBA
, "GL_RGBA"},
5080 return GLES2Util::GetQualifiedEnumString(string_table
,
5081 arraysize(string_table
), value
);
5084 std::string
GLES2Util::GetStringTextureInternalFormat(uint32_t value
) {
5085 static const EnumToString string_table
[] = {
5086 {GL_ALPHA
, "GL_ALPHA"},
5087 {GL_LUMINANCE
, "GL_LUMINANCE"},
5088 {GL_LUMINANCE_ALPHA
, "GL_LUMINANCE_ALPHA"},
5090 {GL_RGBA
, "GL_RGBA"},
5092 return GLES2Util::GetQualifiedEnumString(string_table
,
5093 arraysize(string_table
), value
);
5096 std::string
GLES2Util::GetStringTextureInternalFormatStorage(uint32_t value
) {
5097 static const EnumToString string_table
[] = {
5098 {GL_RGB565
, "GL_RGB565"},
5099 {GL_RGBA4
, "GL_RGBA4"},
5100 {GL_RGB5_A1
, "GL_RGB5_A1"},
5101 {GL_ALPHA8_EXT
, "GL_ALPHA8_EXT"},
5102 {GL_LUMINANCE8_EXT
, "GL_LUMINANCE8_EXT"},
5103 {GL_LUMINANCE8_ALPHA8_EXT
, "GL_LUMINANCE8_ALPHA8_EXT"},
5104 {GL_RGB8_OES
, "GL_RGB8_OES"},
5105 {GL_RGBA8_OES
, "GL_RGBA8_OES"},
5107 return GLES2Util::GetQualifiedEnumString(string_table
,
5108 arraysize(string_table
), value
);
5111 std::string
GLES2Util::GetStringTextureMagFilterMode(uint32_t value
) {
5112 static const EnumToString string_table
[] = {
5113 {GL_NEAREST
, "GL_NEAREST"}, {GL_LINEAR
, "GL_LINEAR"},
5115 return GLES2Util::GetQualifiedEnumString(string_table
,
5116 arraysize(string_table
), value
);
5119 std::string
GLES2Util::GetStringTextureMinFilterMode(uint32_t value
) {
5120 static const EnumToString string_table
[] = {
5121 {GL_NEAREST
, "GL_NEAREST"},
5122 {GL_LINEAR
, "GL_LINEAR"},
5123 {GL_NEAREST_MIPMAP_NEAREST
, "GL_NEAREST_MIPMAP_NEAREST"},
5124 {GL_LINEAR_MIPMAP_NEAREST
, "GL_LINEAR_MIPMAP_NEAREST"},
5125 {GL_NEAREST_MIPMAP_LINEAR
, "GL_NEAREST_MIPMAP_LINEAR"},
5126 {GL_LINEAR_MIPMAP_LINEAR
, "GL_LINEAR_MIPMAP_LINEAR"},
5128 return GLES2Util::GetQualifiedEnumString(string_table
,
5129 arraysize(string_table
), value
);
5132 std::string
GLES2Util::GetStringTextureParameter(uint32_t value
) {
5133 static const EnumToString string_table
[] = {
5134 {GL_TEXTURE_MAG_FILTER
, "GL_TEXTURE_MAG_FILTER"},
5135 {GL_TEXTURE_MIN_FILTER
, "GL_TEXTURE_MIN_FILTER"},
5136 {GL_TEXTURE_POOL_CHROMIUM
, "GL_TEXTURE_POOL_CHROMIUM"},
5137 {GL_TEXTURE_WRAP_S
, "GL_TEXTURE_WRAP_S"},
5138 {GL_TEXTURE_WRAP_T
, "GL_TEXTURE_WRAP_T"},
5140 return GLES2Util::GetQualifiedEnumString(string_table
,
5141 arraysize(string_table
), value
);
5144 std::string
GLES2Util::GetStringTexturePool(uint32_t value
) {
5145 static const EnumToString string_table
[] = {
5146 {GL_TEXTURE_POOL_MANAGED_CHROMIUM
, "GL_TEXTURE_POOL_MANAGED_CHROMIUM"},
5147 {GL_TEXTURE_POOL_UNMANAGED_CHROMIUM
,
5148 "GL_TEXTURE_POOL_UNMANAGED_CHROMIUM"},
5150 return GLES2Util::GetQualifiedEnumString(string_table
,
5151 arraysize(string_table
), value
);
5154 std::string
GLES2Util::GetStringTextureTarget(uint32_t value
) {
5155 static const EnumToString string_table
[] = {
5156 {GL_TEXTURE_2D
, "GL_TEXTURE_2D"},
5157 {GL_TEXTURE_CUBE_MAP_POSITIVE_X
, "GL_TEXTURE_CUBE_MAP_POSITIVE_X"},
5158 {GL_TEXTURE_CUBE_MAP_NEGATIVE_X
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X"},
5159 {GL_TEXTURE_CUBE_MAP_POSITIVE_Y
, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y"},
5160 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y"},
5161 {GL_TEXTURE_CUBE_MAP_POSITIVE_Z
, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z"},
5162 {GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z"},
5164 return GLES2Util::GetQualifiedEnumString(string_table
,
5165 arraysize(string_table
), value
);
5168 std::string
GLES2Util::GetStringTextureUsage(uint32_t value
) {
5169 static const EnumToString string_table
[] = {
5170 {GL_NONE
, "GL_NONE"},
5171 {GL_FRAMEBUFFER_ATTACHMENT_ANGLE
, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE"},
5173 return GLES2Util::GetQualifiedEnumString(string_table
,
5174 arraysize(string_table
), value
);
5177 std::string
GLES2Util::GetStringTextureWrapMode(uint32_t value
) {
5178 static const EnumToString string_table
[] = {
5179 {GL_CLAMP_TO_EDGE
, "GL_CLAMP_TO_EDGE"},
5180 {GL_MIRRORED_REPEAT
, "GL_MIRRORED_REPEAT"},
5181 {GL_REPEAT
, "GL_REPEAT"},
5183 return GLES2Util::GetQualifiedEnumString(string_table
,
5184 arraysize(string_table
), value
);
5187 std::string
GLES2Util::GetStringTransformFeedbackBindTarget(uint32_t value
) {
5188 static const EnumToString string_table
[] = {
5189 {GL_TRANSFORM_FEEDBACK
, "GL_TRANSFORM_FEEDBACK"},
5191 return GLES2Util::GetQualifiedEnumString(string_table
,
5192 arraysize(string_table
), value
);
5195 std::string
GLES2Util::GetStringTransformFeedbackPrimitiveMode(uint32_t value
) {
5196 static const EnumToString string_table
[] = {
5197 {GL_POINTS
, "GL_POINTS"},
5198 {GL_LINES
, "GL_LINES"},
5199 {GL_TRIANGLES
, "GL_TRIANGLES"},
5201 return GLES2Util::GetQualifiedEnumString(string_table
,
5202 arraysize(string_table
), value
);
5205 std::string
GLES2Util::GetStringValueBufferTarget(uint32_t value
) {
5206 static const EnumToString string_table
[] = {
5207 {GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM
,
5208 "GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM"},
5210 return GLES2Util::GetQualifiedEnumString(string_table
,
5211 arraysize(string_table
), value
);
5214 std::string
GLES2Util::GetStringVertexAttribType(uint32_t value
) {
5215 static const EnumToString string_table
[] = {
5216 {GL_BYTE
, "GL_BYTE"},
5217 {GL_UNSIGNED_BYTE
, "GL_UNSIGNED_BYTE"},
5218 {GL_SHORT
, "GL_SHORT"},
5219 {GL_UNSIGNED_SHORT
, "GL_UNSIGNED_SHORT"},
5220 {GL_FLOAT
, "GL_FLOAT"},
5222 return GLES2Util::GetQualifiedEnumString(string_table
,
5223 arraysize(string_table
), value
);
5226 std::string
GLES2Util::GetStringVertexAttribute(uint32_t value
) {
5227 static const EnumToString string_table
[] = {
5228 {GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED"},
5229 {GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
,
5230 "GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING"},
5231 {GL_VERTEX_ATTRIB_ARRAY_ENABLED
, "GL_VERTEX_ATTRIB_ARRAY_ENABLED"},
5232 {GL_VERTEX_ATTRIB_ARRAY_SIZE
, "GL_VERTEX_ATTRIB_ARRAY_SIZE"},
5233 {GL_VERTEX_ATTRIB_ARRAY_STRIDE
, "GL_VERTEX_ATTRIB_ARRAY_STRIDE"},
5234 {GL_VERTEX_ATTRIB_ARRAY_TYPE
, "GL_VERTEX_ATTRIB_ARRAY_TYPE"},
5235 {GL_CURRENT_VERTEX_ATTRIB
, "GL_CURRENT_VERTEX_ATTRIB"},
5237 return GLES2Util::GetQualifiedEnumString(string_table
,
5238 arraysize(string_table
), value
);
5241 std::string
GLES2Util::GetStringVertexPointer(uint32_t value
) {
5242 static const EnumToString string_table
[] = {
5243 {GL_VERTEX_ATTRIB_ARRAY_POINTER
, "GL_VERTEX_ATTRIB_ARRAY_POINTER"},
5245 return GLES2Util::GetQualifiedEnumString(string_table
,
5246 arraysize(string_table
), value
);
5249 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_