xref: /aosp_15_r20/external/angle/src/libANGLE/gles_extensions_autogen.cpp (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1*8975f5c5SAndroid Build Coastguard Worker // GENERATED FILE - DO NOT EDIT.
2*8975f5c5SAndroid Build Coastguard Worker // Generated by gen_extensions.py using data from registry_xml.py and gl.xml
3*8975f5c5SAndroid Build Coastguard Worker //
4*8975f5c5SAndroid Build Coastguard Worker // Copyright 2021 The ANGLE Project Authors. All rights reserved.
5*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
6*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file.
7*8975f5c5SAndroid Build Coastguard Worker //
8*8975f5c5SAndroid Build Coastguard Worker // gles_extensions_autogen.h: GLES extension strings information.
9*8975f5c5SAndroid Build Coastguard Worker 
10*8975f5c5SAndroid Build Coastguard Worker #include "anglebase/no_destructor.h"
11*8975f5c5SAndroid Build Coastguard Worker #include "libANGLE/Caps.h"
12*8975f5c5SAndroid Build Coastguard Worker 
13*8975f5c5SAndroid Build Coastguard Worker namespace gl
14*8975f5c5SAndroid Build Coastguard Worker {
GetExtensionInfoMap()15*8975f5c5SAndroid Build Coastguard Worker const ExtensionInfoMap &GetExtensionInfoMap()
16*8975f5c5SAndroid Build Coastguard Worker {
17*8975f5c5SAndroid Build Coastguard Worker     auto buildExtensionInfoMap = []() {
18*8975f5c5SAndroid Build Coastguard Worker         auto enableableExtension = [](ExtensionBool member) {
19*8975f5c5SAndroid Build Coastguard Worker             ExtensionInfo info;
20*8975f5c5SAndroid Build Coastguard Worker             info.Requestable      = true;
21*8975f5c5SAndroid Build Coastguard Worker             info.ExtensionsMember = member;
22*8975f5c5SAndroid Build Coastguard Worker             return info;
23*8975f5c5SAndroid Build Coastguard Worker         };
24*8975f5c5SAndroid Build Coastguard Worker 
25*8975f5c5SAndroid Build Coastguard Worker         auto enableableDisablableExtension = [&](ExtensionBool member) {
26*8975f5c5SAndroid Build Coastguard Worker             ExtensionInfo info = enableableExtension(member);
27*8975f5c5SAndroid Build Coastguard Worker             info.Disablable    = true;
28*8975f5c5SAndroid Build Coastguard Worker             return info;
29*8975f5c5SAndroid Build Coastguard Worker         };
30*8975f5c5SAndroid Build Coastguard Worker 
31*8975f5c5SAndroid Build Coastguard Worker         auto esOnlyExtension = [](ExtensionBool member) {
32*8975f5c5SAndroid Build Coastguard Worker             ExtensionInfo info;
33*8975f5c5SAndroid Build Coastguard Worker             info.ExtensionsMember = member;
34*8975f5c5SAndroid Build Coastguard Worker             return info;
35*8975f5c5SAndroid Build Coastguard Worker         };
36*8975f5c5SAndroid Build Coastguard Worker 
37*8975f5c5SAndroid Build Coastguard Worker         // clang-format off
38*8975f5c5SAndroid Build Coastguard Worker         ExtensionInfoMap map;
39*8975f5c5SAndroid Build Coastguard Worker 
40*8975f5c5SAndroid Build Coastguard Worker         // GLES 2.0 extension strings
41*8975f5c5SAndroid Build Coastguard Worker         // --------------------------
42*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_base_instance"] = enableableExtension(&Extensions::baseInstanceEXT);
43*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_blend_equation_advanced"] = esOnlyExtension(&Extensions::blendEquationAdvancedKHR);
44*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_blend_equation_advanced_coherent"] = esOnlyExtension(&Extensions::blendEquationAdvancedCoherentKHR);
45*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_blend_func_extended"] = enableableExtension(&Extensions::blendFuncExtendedEXT);
46*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_blend_minmax"] = enableableExtension(&Extensions::blendMinmaxEXT);
47*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_buffer_storage"] = enableableExtension(&Extensions::bufferStorageEXT);
48*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_clear_texture"] = enableableExtension(&Extensions::clearTextureEXT);
49*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_clip_control"] = enableableExtension(&Extensions::clipControlEXT);
50*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_clip_cull_distance"] = enableableExtension(&Extensions::clipCullDistanceEXT);
51*8975f5c5SAndroid Build Coastguard Worker         map["GL_APPLE_clip_distance"] = enableableExtension(&Extensions::clipDistanceAPPLE);
52*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_color_buffer_float"] = enableableExtension(&Extensions::colorBufferFloatEXT);
53*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_color_buffer_half_float"] = enableableExtension(&Extensions::colorBufferHalfFloatEXT);
54*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_EAC_R11_signed_texture"] = enableableExtension(&Extensions::compressedEACR11SignedTextureOES);
55*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_EAC_R11_unsigned_texture"] = enableableExtension(&Extensions::compressedEACR11UnsignedTextureOES);
56*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_EAC_RG11_signed_texture"] = enableableExtension(&Extensions::compressedEACRG11SignedTextureOES);
57*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_EAC_RG11_unsigned_texture"] = enableableExtension(&Extensions::compressedEACRG11UnsignedTextureOES);
58*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_compressed_ETC1_RGB8_sub_texture"] = enableableExtension(&Extensions::compressedETC1RGB8SubTextureEXT);
59*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_ETC1_RGB8_texture"] = enableableExtension(&Extensions::compressedETC1RGB8TextureOES);
60*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_ETC2_punchthroughA_RGBA8_texture"] = enableableExtension(&Extensions::compressedETC2PunchthroughARGBA8TextureOES);
61*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_ETC2_punchthroughA_sRGB8_alpha_texture"] = enableableExtension(&Extensions::compressedETC2PunchthroughASRGB8AlphaTextureOES);
62*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_ETC2_RGB8_texture"] = enableableExtension(&Extensions::compressedETC2RGB8TextureOES);
63*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_ETC2_RGBA8_texture"] = enableableExtension(&Extensions::compressedETC2RGBA8TextureOES);
64*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_ETC2_sRGB8_alpha8_texture"] = enableableExtension(&Extensions::compressedETC2SRGB8Alpha8TextureOES);
65*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_ETC2_sRGB8_texture"] = enableableExtension(&Extensions::compressedETC2SRGB8TextureOES);
66*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_compressed_paletted_texture"] = enableableExtension(&Extensions::compressedPalettedTextureOES);
67*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_conservative_depth"] = enableableExtension(&Extensions::conservativeDepthEXT);
68*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_copy_image"] = enableableExtension(&Extensions::copyImageEXT);
69*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_copy_image"] = enableableExtension(&Extensions::copyImageOES);
70*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_debug"] = esOnlyExtension(&Extensions::debugKHR);
71*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_debug_label"] = esOnlyExtension(&Extensions::debugLabelEXT);
72*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_debug_marker"] = esOnlyExtension(&Extensions::debugMarkerEXT);
73*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_depth24"] = esOnlyExtension(&Extensions::depth24OES);
74*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_depth32"] = esOnlyExtension(&Extensions::depth32OES);
75*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_depth_buffer_float2"] = enableableExtension(&Extensions::depthBufferFloat2NV);
76*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_depth_clamp"] = enableableExtension(&Extensions::depthClampEXT);
77*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_depth_texture"] = esOnlyExtension(&Extensions::depthTextureANGLE);
78*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_depth_texture"] = esOnlyExtension(&Extensions::depthTextureOES);
79*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_depth_texture_cube_map"] = enableableExtension(&Extensions::depthTextureCubeMapOES);
80*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_discard_framebuffer"] = esOnlyExtension(&Extensions::discardFramebufferEXT);
81*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_disjoint_timer_query"] = enableableExtension(&Extensions::disjointTimerQueryEXT);
82*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_draw_buffers"] = enableableExtension(&Extensions::drawBuffersEXT);
83*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_draw_buffers_indexed"] = enableableExtension(&Extensions::drawBuffersIndexedEXT);
84*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_draw_buffers_indexed"] = enableableExtension(&Extensions::drawBuffersIndexedOES);
85*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_draw_elements_base_vertex"] = enableableExtension(&Extensions::drawElementsBaseVertexEXT);
86*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_draw_elements_base_vertex"] = enableableExtension(&Extensions::drawElementsBaseVertexOES);
87*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_EGL_image"] = enableableExtension(&Extensions::EGLImageOES);
88*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_EGL_image_array"] = enableableExtension(&Extensions::EGLImageArrayEXT);
89*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_EGL_image_external"] = enableableExtension(&Extensions::EGLImageExternalOES);
90*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_EGL_image_external_essl3"] = enableableExtension(&Extensions::EGLImageExternalEssl3OES);
91*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_EGL_image_external_wrap_modes"] = enableableExtension(&Extensions::EGLImageExternalWrapModesEXT);
92*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_EGL_image_storage"] = enableableExtension(&Extensions::EGLImageStorageEXT);
93*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_EGL_image_storage_compression"] = enableableExtension(&Extensions::EGLImageStorageCompressionEXT);
94*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_EGL_stream_consumer_external"] = enableableExtension(&Extensions::EGLStreamConsumerExternalNV);
95*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_EGL_sync"] = esOnlyExtension(&Extensions::EGLSyncOES);
96*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_element_index_uint"] = enableableExtension(&Extensions::elementIndexUintOES);
97*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANDROID_extension_pack_es31a"] = esOnlyExtension(&Extensions::extensionPackEs31aANDROID);
98*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_external_buffer"] = enableableExtension(&Extensions::externalBufferEXT);
99*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_fbo_render_mipmap"] = enableableExtension(&Extensions::fboRenderMipmapOES);
100*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_fence"] = esOnlyExtension(&Extensions::fenceNV);
101*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_float_blend"] = enableableExtension(&Extensions::floatBlendEXT);
102*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_frag_depth"] = enableableExtension(&Extensions::fragDepthEXT);
103*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_framebuffer_blit"] = enableableExtension(&Extensions::framebufferBlitANGLE);
104*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_framebuffer_blit"] = enableableExtension(&Extensions::framebufferBlitNV);
105*8975f5c5SAndroid Build Coastguard Worker         map["GL_MESA_framebuffer_flip_y"] = enableableExtension(&Extensions::framebufferFlipYMESA);
106*8975f5c5SAndroid Build Coastguard Worker         map["GL_QCOM_framebuffer_foveated"] = enableableExtension(&Extensions::framebufferFoveatedQCOM);
107*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_geometry_shader"] = enableableExtension(&Extensions::geometryShaderEXT);
108*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_geometry_shader"] = enableableExtension(&Extensions::geometryShaderOES);
109*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_get_program_binary"] = enableableExtension(&Extensions::getProgramBinaryOES);
110*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_gpu_shader5"] = enableableExtension(&Extensions::gpuShader5EXT);
111*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_gpu_shader5"] = enableableExtension(&Extensions::gpuShader5OES);
112*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_instanced_arrays"] = enableableExtension(&Extensions::instancedArraysANGLE);
113*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_instanced_arrays"] = enableableExtension(&Extensions::instancedArraysEXT);
114*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_mapbuffer"] = enableableExtension(&Extensions::mapbufferOES);
115*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_map_buffer_range"] = enableableExtension(&Extensions::mapBufferRangeEXT);
116*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_memory_object"] = enableableExtension(&Extensions::memoryObjectEXT);
117*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_memory_object_fd"] = enableableExtension(&Extensions::memoryObjectFdEXT);
118*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_multi_draw_indirect"] = enableableExtension(&Extensions::multiDrawIndirectEXT);
119*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_multisample_compatibility"] = esOnlyExtension(&Extensions::multisampleCompatibilityEXT);
120*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_multisampled_render_to_texture"] = enableableExtension(&Extensions::multisampledRenderToTextureEXT);
121*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_multisampled_render_to_texture2"] = enableableExtension(&Extensions::multisampledRenderToTexture2EXT);
122*8975f5c5SAndroid Build Coastguard Worker         map["GL_OVR_multiview"] = enableableExtension(&Extensions::multiviewOVR);
123*8975f5c5SAndroid Build Coastguard Worker         map["GL_OVR_multiview2"] = enableableExtension(&Extensions::multiview2OVR);
124*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_no_error"] = esOnlyExtension(&Extensions::noErrorKHR);
125*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_occlusion_query_boolean"] = enableableExtension(&Extensions::occlusionQueryBooleanEXT);
126*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_packed_depth_stencil"] = esOnlyExtension(&Extensions::packedDepthStencilOES);
127*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_pack_reverse_row_order"] = enableableExtension(&Extensions::packReverseRowOrderANGLE);
128*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_pack_subimage"] = enableableExtension(&Extensions::packSubimageNV);
129*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_parallel_shader_compile"] = enableableExtension(&Extensions::parallelShaderCompileKHR);
130*8975f5c5SAndroid Build Coastguard Worker         map["GL_AMD_performance_monitor"] = esOnlyExtension(&Extensions::performanceMonitorAMD);
131*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_pixel_buffer_object"] = enableableExtension(&Extensions::pixelBufferObjectNV);
132*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_polygon_mode"] = enableableExtension(&Extensions::polygonModeNV);
133*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_polygon_offset_clamp"] = enableableExtension(&Extensions::polygonOffsetClampEXT);
134*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_primitive_bounding_box"] = esOnlyExtension(&Extensions::primitiveBoundingBoxEXT);
135*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_primitive_bounding_box"] = esOnlyExtension(&Extensions::primitiveBoundingBoxOES);
136*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_protected_textures"] = enableableExtension(&Extensions::protectedTexturesEXT);
137*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_pvrtc_sRGB"] = enableableExtension(&Extensions::pvrtcSRGBEXT);
138*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_read_depth"] = enableableExtension(&Extensions::readDepthNV);
139*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_read_depth_stencil"] = enableableExtension(&Extensions::readDepthStencilNV);
140*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_read_format_bgra"] = enableableExtension(&Extensions::readFormatBgraEXT);
141*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_read_stencil"] = enableableExtension(&Extensions::readStencilNV);
142*8975f5c5SAndroid Build Coastguard Worker         map["GL_QCOM_render_shared_exponent"] = enableableExtension(&Extensions::renderSharedExponentQCOM);
143*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_render_snorm"] = enableableExtension(&Extensions::renderSnormEXT);
144*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_required_internalformat"] = enableableExtension(&Extensions::requiredInternalformatOES);
145*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_rgb8_rgba8"] = enableableExtension(&Extensions::rgb8Rgba8OES);
146*8975f5c5SAndroid Build Coastguard Worker         map["GL_ARM_rgba8"] = enableableExtension(&Extensions::rgba8ARM);
147*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_robust_buffer_access_behavior"] = esOnlyExtension(&Extensions::robustBufferAccessBehaviorKHR);
148*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_robustness"] = esOnlyExtension(&Extensions::robustnessEXT);
149*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_robustness"] = esOnlyExtension(&Extensions::robustnessKHR);
150*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_robustness_video_memory_purge"] = esOnlyExtension(&Extensions::robustnessVideoMemoryPurgeNV);
151*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_sample_shading"] = enableableExtension(&Extensions::sampleShadingOES);
152*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_sample_variables"] = enableableExtension(&Extensions::sampleVariablesOES);
153*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_semaphore"] = enableableExtension(&Extensions::semaphoreEXT);
154*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_semaphore_fd"] = enableableExtension(&Extensions::semaphoreFdEXT);
155*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_separate_depth_stencil"] = enableableExtension(&Extensions::separateDepthStencilEXT);
156*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_separate_shader_objects"] = enableableExtension(&Extensions::separateShaderObjectsEXT);
157*8975f5c5SAndroid Build Coastguard Worker         map["GL_ARM_shader_framebuffer_fetch"] = enableableExtension(&Extensions::shaderFramebufferFetchARM);
158*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_shader_framebuffer_fetch"] = enableableExtension(&Extensions::shaderFramebufferFetchEXT);
159*8975f5c5SAndroid Build Coastguard Worker         map["GL_ARM_shader_framebuffer_fetch_depth_stencil"] = enableableExtension(&Extensions::shaderFramebufferFetchDepthStencilARM);
160*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_shader_framebuffer_fetch_non_coherent"] = enableableExtension(&Extensions::shaderFramebufferFetchNonCoherentEXT);
161*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_shader_image_atomic"] = enableableExtension(&Extensions::shaderImageAtomicOES);
162*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_shader_io_blocks"] = enableableExtension(&Extensions::shaderIoBlocksEXT);
163*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_shader_io_blocks"] = enableableExtension(&Extensions::shaderIoBlocksOES);
164*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_shader_multisample_interpolation"] = enableableExtension(&Extensions::shaderMultisampleInterpolationOES);
165*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_shader_non_constant_global_initializers"] = enableableExtension(&Extensions::shaderNonConstantGlobalInitializersEXT);
166*8975f5c5SAndroid Build Coastguard Worker         map["GL_NV_shader_noperspective_interpolation"] = enableableExtension(&Extensions::shaderNoperspectiveInterpolationNV);
167*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_shader_texture_lod"] = enableableExtension(&Extensions::shaderTextureLodEXT);
168*8975f5c5SAndroid Build Coastguard Worker         map["GL_QCOM_shading_rate"] = enableableExtension(&Extensions::shadingRateQCOM);
169*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_shadow_samplers"] = enableableExtension(&Extensions::shadowSamplersEXT);
170*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_sRGB"] = enableableExtension(&Extensions::sRGBEXT);
171*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_sRGB_write_control"] = esOnlyExtension(&Extensions::sRGBWriteControlEXT);
172*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_standard_derivatives"] = enableableExtension(&Extensions::standardDerivativesOES);
173*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_surfaceless_context"] = esOnlyExtension(&Extensions::surfacelessContextOES);
174*8975f5c5SAndroid Build Coastguard Worker         map["GL_ARB_sync"] = enableableExtension(&Extensions::syncARB);
175*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_tessellation_shader"] = enableableExtension(&Extensions::tessellationShaderEXT);
176*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_tessellation_shader"] = enableableExtension(&Extensions::tessellationShaderOES);
177*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_3D"] = enableableExtension(&Extensions::texture3DOES);
178*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_border_clamp"] = enableableExtension(&Extensions::textureBorderClampEXT);
179*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_border_clamp"] = enableableExtension(&Extensions::textureBorderClampOES);
180*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_buffer"] = enableableExtension(&Extensions::textureBufferEXT);
181*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_buffer"] = enableableExtension(&Extensions::textureBufferOES);
182*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_compression_astc"] = enableableExtension(&Extensions::textureCompressionAstcOES);
183*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_compression_astc_decode_mode"] = enableableExtension(&Extensions::textureCompressionAstcDecodeModeEXT);
184*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_compression_astc_decode_mode_rgb9e5"] = enableableExtension(&Extensions::textureCompressionAstcDecodeModeRgb9e5EXT);
185*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_texture_compression_astc_hdr"] = enableableExtension(&Extensions::textureCompressionAstcHdrKHR);
186*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_texture_compression_astc_ldr"] = enableableExtension(&Extensions::textureCompressionAstcLdrKHR);
187*8975f5c5SAndroid Build Coastguard Worker         map["GL_KHR_texture_compression_astc_sliced_3d"] = enableableExtension(&Extensions::textureCompressionAstcSliced3dKHR);
188*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_compression_bptc"] = enableableExtension(&Extensions::textureCompressionBptcEXT);
189*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_compression_dxt1"] = enableableExtension(&Extensions::textureCompressionDxt1EXT);
190*8975f5c5SAndroid Build Coastguard Worker         map["GL_IMG_texture_compression_pvrtc"] = enableableExtension(&Extensions::textureCompressionPvrtcIMG);
191*8975f5c5SAndroid Build Coastguard Worker         map["GL_IMG_texture_compression_pvrtc2"] = enableableExtension(&Extensions::textureCompressionPvrtc2IMG);
192*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_compression_rgtc"] = enableableExtension(&Extensions::textureCompressionRgtcEXT);
193*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_compression_s3tc"] = enableableExtension(&Extensions::textureCompressionS3tcEXT);
194*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_compression_s3tc_srgb"] = enableableExtension(&Extensions::textureCompressionS3tcSrgbEXT);
195*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_cube_map_array"] = enableableExtension(&Extensions::textureCubeMapArrayEXT);
196*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_cube_map_array"] = enableableExtension(&Extensions::textureCubeMapArrayOES);
197*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_filter_anisotropic"] = enableableExtension(&Extensions::textureFilterAnisotropicEXT);
198*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_filter_minmax"] = enableableExtension(&Extensions::textureFilterMinmaxEXT);
199*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_float"] = enableableExtension(&Extensions::textureFloatOES);
200*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_float_linear"] = enableableExtension(&Extensions::textureFloatLinearOES);
201*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_format_BGRA8888"] = enableableExtension(&Extensions::textureFormatBGRA8888EXT);
202*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_format_sRGB_override"] = esOnlyExtension(&Extensions::textureFormatSRGBOverrideEXT);
203*8975f5c5SAndroid Build Coastguard Worker         map["GL_QCOM_texture_foveated"] = enableableExtension(&Extensions::textureFoveatedQCOM);
204*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_half_float"] = enableableExtension(&Extensions::textureHalfFloatOES);
205*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_half_float_linear"] = enableableExtension(&Extensions::textureHalfFloatLinearOES);
206*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_mirror_clamp_to_edge"] = enableableExtension(&Extensions::textureMirrorClampToEdgeEXT);
207*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_norm16"] = enableableExtension(&Extensions::textureNorm16EXT);
208*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_npot"] = enableableExtension(&Extensions::textureNpotOES);
209*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_query_lod"] = enableableExtension(&Extensions::textureQueryLodEXT);
210*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_rg"] = enableableExtension(&Extensions::textureRgEXT);
211*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_shadow_lod"] = enableableExtension(&Extensions::textureShadowLodEXT);
212*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_sRGB_decode"] = esOnlyExtension(&Extensions::textureSRGBDecodeEXT);
213*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_sRGB_R8"] = enableableExtension(&Extensions::textureSRGBR8EXT);
214*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_sRGB_RG8"] = enableableExtension(&Extensions::textureSRGBRG8EXT);
215*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_stencil8"] = enableableExtension(&Extensions::textureStencil8OES);
216*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_storage"] = enableableExtension(&Extensions::textureStorageEXT);
217*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_storage_compression"] = enableableExtension(&Extensions::textureStorageCompressionEXT);
218*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_storage_multisample_2d_array"] = enableableExtension(&Extensions::textureStorageMultisample2dArrayOES);
219*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_texture_type_2_10_10_10_REV"] = enableableExtension(&Extensions::textureType2101010REVEXT);
220*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_texture_usage"] = enableableExtension(&Extensions::textureUsageANGLE);
221*8975f5c5SAndroid Build Coastguard Worker         map["GL_QCOM_tiled_rendering"] = enableableExtension(&Extensions::tiledRenderingQCOM);
222*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_translated_shader_source"] = esOnlyExtension(&Extensions::translatedShaderSourceANGLE);
223*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_unpack_subimage"] = enableableExtension(&Extensions::unpackSubimageEXT);
224*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_vertex_array_object"] = enableableExtension(&Extensions::vertexArrayObjectOES);
225*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_vertex_half_float"] = enableableExtension(&Extensions::vertexHalfFloatOES);
226*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_vertex_type_10_10_10_2"] = enableableExtension(&Extensions::vertexType1010102OES);
227*8975f5c5SAndroid Build Coastguard Worker         map["GL_WEBGL_video_texture"] = enableableExtension(&Extensions::videoTextureWEBGL);
228*8975f5c5SAndroid Build Coastguard Worker         map["GL_EXT_YUV_target"] = enableableExtension(&Extensions::YUVTargetEXT);
229*8975f5c5SAndroid Build Coastguard Worker 
230*8975f5c5SAndroid Build Coastguard Worker         // ANGLE unofficial extension strings
231*8975f5c5SAndroid Build Coastguard Worker         // ----------------------------------
232*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_base_vertex_base_instance"] = enableableExtension(&Extensions::baseVertexBaseInstanceANGLE);
233*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_base_vertex_base_instance_shader_builtin"] = enableableExtension(&Extensions::baseVertexBaseInstanceShaderBuiltinANGLE);
234*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_bind_generates_resource"] = esOnlyExtension(&Extensions::bindGeneratesResourceCHROMIUM);
235*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_bind_uniform_location"] = esOnlyExtension(&Extensions::bindUniformLocationCHROMIUM);
236*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_blob_cache"] = enableableExtension(&Extensions::blobCacheANGLE);
237*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_client_arrays"] = esOnlyExtension(&Extensions::clientArraysANGLE);
238*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_clip_cull_distance"] = enableableExtension(&Extensions::clipCullDistanceANGLE);
239*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_color_buffer_float_rgb"] = enableableExtension(&Extensions::colorBufferFloatRgbCHROMIUM);
240*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_color_buffer_float_rgba"] = enableableExtension(&Extensions::colorBufferFloatRgbaCHROMIUM);
241*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_compressed_texture_etc"] = enableableExtension(&Extensions::compressedTextureEtcANGLE);
242*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_copy_compressed_texture"] = esOnlyExtension(&Extensions::copyCompressedTextureCHROMIUM);
243*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_copy_texture"] = esOnlyExtension(&Extensions::copyTextureCHROMIUM);
244*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_copy_texture_3d"] = enableableExtension(&Extensions::copyTexture3dANGLE);
245*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_framebuffer_mixed_samples"] = esOnlyExtension(&Extensions::framebufferMixedSamplesCHROMIUM);
246*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_framebuffer_multisample"] = enableableExtension(&Extensions::framebufferMultisampleANGLE);
247*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_get_image"] = enableableExtension(&Extensions::getImageANGLE);
248*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_get_serialized_context_string"] = esOnlyExtension(&Extensions::getSerializedContextStringANGLE);
249*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_get_tex_level_parameter"] = enableableExtension(&Extensions::getTexLevelParameterANGLE);
250*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_logic_op"] = enableableExtension(&Extensions::logicOpANGLE);
251*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_lose_context"] = enableableExtension(&Extensions::loseContextCHROMIUM);
252*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_lossy_etc_decode"] = enableableExtension(&Extensions::lossyEtcDecodeANGLE);
253*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_memory_object_flags"] = enableableExtension(&Extensions::memoryObjectFlagsANGLE);
254*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_memory_object_fuchsia"] = enableableExtension(&Extensions::memoryObjectFuchsiaANGLE);
255*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_memory_size"] = enableableExtension(&Extensions::memorySizeANGLE);
256*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_multi_draw"] = enableableExtension(&Extensions::multiDrawANGLE);
257*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_multiview_multisample"] = enableableExtension(&Extensions::multiviewMultisampleANGLE);
258*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_polygon_mode"] = enableableExtension(&Extensions::polygonModeANGLE);
259*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_program_binary"] = esOnlyExtension(&Extensions::programBinaryANGLE);
260*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_program_binary_readiness_query"] = esOnlyExtension(&Extensions::programBinaryReadinessQueryANGLE);
261*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_program_cache_control"] = esOnlyExtension(&Extensions::programCacheControlANGLE);
262*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_provoking_vertex"] = enableableExtension(&Extensions::provokingVertexANGLE);
263*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_read_only_depth_stencil_feedback_loops"] = enableableExtension(&Extensions::readOnlyDepthStencilFeedbackLoopsANGLE);
264*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_relaxed_vertex_attribute_type"] = esOnlyExtension(&Extensions::relaxedVertexAttributeTypeANGLE);
265*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_renderability_validation"] = enableableExtension(&Extensions::renderabilityValidationANGLE);
266*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_request_extension"] = esOnlyExtension(&Extensions::requestExtensionANGLE);
267*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_rgbx_internal_format"] = esOnlyExtension(&Extensions::rgbxInternalFormatANGLE);
268*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_robust_client_memory"] = esOnlyExtension(&Extensions::robustClientMemoryANGLE);
269*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_robust_fragment_shader_output"] = enableableExtension(&Extensions::robustFragmentShaderOutputANGLE);
270*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_robust_resource_initialization"] = esOnlyExtension(&Extensions::robustResourceInitializationANGLE);
271*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_semaphore_fuchsia"] = enableableExtension(&Extensions::semaphoreFuchsiaANGLE);
272*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_shader_binary"] = esOnlyExtension(&Extensions::shaderBinaryANGLE);
273*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_shader_pixel_local_storage"] = enableableExtension(&Extensions::shaderPixelLocalStorageANGLE);
274*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_shader_pixel_local_storage_coherent"] = enableableExtension(&Extensions::shaderPixelLocalStorageCoherentANGLE);
275*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_stencil_texturing"] = enableableExtension(&Extensions::stencilTexturingANGLE);
276*8975f5c5SAndroid Build Coastguard Worker         map["GL_CHROMIUM_sync_query"] = enableableExtension(&Extensions::syncQueryCHROMIUM);
277*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_texture_compression_dxt3"] = enableableExtension(&Extensions::textureCompressionDxt3ANGLE);
278*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_texture_compression_dxt5"] = enableableExtension(&Extensions::textureCompressionDxt5ANGLE);
279*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_texture_external_update"] = enableableExtension(&Extensions::textureExternalUpdateANGLE);
280*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_texture_multisample"] = enableableExtension(&Extensions::textureMultisampleANGLE);
281*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_texture_rectangle"] = enableableDisablableExtension(&Extensions::textureRectangleANGLE);
282*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_vulkan_image"] = enableableExtension(&Extensions::vulkanImageANGLE);
283*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_webgl_compatibility"] = esOnlyExtension(&Extensions::webglCompatibilityANGLE);
284*8975f5c5SAndroid Build Coastguard Worker         map["GL_ANGLE_yuv_internal_format"] = enableableExtension(&Extensions::yuvInternalFormatANGLE);
285*8975f5c5SAndroid Build Coastguard Worker 
286*8975f5c5SAndroid Build Coastguard Worker         // GLES 1.0 and 1.1 extension strings
287*8975f5c5SAndroid Build Coastguard Worker         // ----------------------------------
288*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_blend_subtract"] = enableableExtension(&Extensions::blendSubtractOES);
289*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_draw_texture"] = enableableExtension(&Extensions::drawTextureOES);
290*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_framebuffer_object"] = enableableExtension(&Extensions::framebufferObjectOES);
291*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_matrix_palette"] = enableableExtension(&Extensions::matrixPaletteOES);
292*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_point_size_array"] = enableableExtension(&Extensions::pointSizeArrayOES);
293*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_point_sprite"] = enableableExtension(&Extensions::pointSpriteOES);
294*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_query_matrix"] = enableableExtension(&Extensions::queryMatrixOES);
295*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_cube_map"] = enableableExtension(&Extensions::textureCubeMapOES);
296*8975f5c5SAndroid Build Coastguard Worker         map["GL_OES_texture_mirrored_repeat"] = enableableExtension(&Extensions::textureMirroredRepeatOES);
297*8975f5c5SAndroid Build Coastguard Worker         // clang-format on
298*8975f5c5SAndroid Build Coastguard Worker 
299*8975f5c5SAndroid Build Coastguard Worker #if defined(ANGLE_ENABLE_ASSERTS)
300*8975f5c5SAndroid Build Coastguard Worker         // Verify all extension strings start with GL_
301*8975f5c5SAndroid Build Coastguard Worker         for (const auto &extension : map)
302*8975f5c5SAndroid Build Coastguard Worker         {
303*8975f5c5SAndroid Build Coastguard Worker             ASSERT(extension.first.rfind("GL_", 0) == 0);
304*8975f5c5SAndroid Build Coastguard Worker         }
305*8975f5c5SAndroid Build Coastguard Worker #endif
306*8975f5c5SAndroid Build Coastguard Worker 
307*8975f5c5SAndroid Build Coastguard Worker         return map;
308*8975f5c5SAndroid Build Coastguard Worker     };
309*8975f5c5SAndroid Build Coastguard Worker 
310*8975f5c5SAndroid Build Coastguard Worker     static const angle::base::NoDestructor<ExtensionInfoMap> extensionInfo(buildExtensionInfoMap());
311*8975f5c5SAndroid Build Coastguard Worker     return *extensionInfo;
312*8975f5c5SAndroid Build Coastguard Worker }
313*8975f5c5SAndroid Build Coastguard Worker }  // namespace gl
314