GL: Sorted extensions by name.

This commit is contained in:
bkaradzic 2013-07-21 19:27:47 -07:00
parent 0a4e54ffeb
commit b6da99b102

View file

@ -18,53 +18,53 @@ namespace bgfx
{ {
enum Enum enum Enum
{ {
EXT_texture_filter_anisotropic, ANGLE_instanced_arrays,
EXT_texture_format_BGRA8888, ANGLE_translated_shader_source,
EXT_bgra, ARB_debug_output,
EXT_texture_compression_s3tc, ARB_framebuffer_sRGB,
EXT_texture_compression_dxt1, ARB_get_program_binary,
ARB_half_float_vertex,
ARB_instanced_arrays,
ARB_multisample,
ARB_texture_float,
ARB_texture_multisample,
ARB_texture_swizzle,
ARB_timer_query,
ARB_vertex_array_object,
ARB_vertex_type_2_10_10_10_rev,
ATI_meminfo,
CHROMIUM_framebuffer_multisample,
CHROMIUM_texture_compression_dxt3, CHROMIUM_texture_compression_dxt3,
CHROMIUM_texture_compression_dxt5, CHROMIUM_texture_compression_dxt5,
EXT_bgra,
EXT_blend_color,
EXT_blend_minmax,
EXT_blend_subtract,
EXT_framebuffer_blit,
EXT_framebuffer_sRGB,
EXT_occlusion_query_boolean,
EXT_texture_compression_dxt1,
EXT_texture_compression_latc, EXT_texture_compression_latc,
EXT_texture_compression_rgtc, EXT_texture_compression_rgtc,
ARB_texture_float, EXT_texture_compression_s3tc,
EXT_texture_filter_anisotropic,
EXT_texture_format_BGRA8888,
EXT_texture_sRGB,
EXT_texture_storage,
EXT_texture_swizzle,
EXT_texture_type_2_10_10_10_REV,
EXT_timer_query,
NVX_gpu_memory_info,
OES_get_program_binary,
OES_rgb8_rgba8,
OES_standard_derivatives,
OES_texture_float, OES_texture_float,
OES_texture_float_linear, OES_texture_float_linear,
OES_texture_half_float, OES_texture_half_float,
OES_texture_half_float_linear, OES_texture_half_float_linear,
EXT_texture_type_2_10_10_10_REV,
EXT_texture_sRGB,
ARB_texture_swizzle,
EXT_texture_swizzle,
ARB_texture_multisample,
OES_standard_derivatives,
ARB_get_program_binary,
OES_get_program_binary,
EXT_framebuffer_blit,
ARB_timer_query,
EXT_timer_query,
ARB_framebuffer_sRGB,
EXT_framebuffer_sRGB,
ARB_multisample,
CHROMIUM_framebuffer_multisample,
ANGLE_translated_shader_source,
ARB_instanced_arrays,
ANGLE_instanced_arrays,
ARB_half_float_vertex,
OES_vertex_half_float,
ARB_vertex_type_2_10_10_10_rev,
OES_vertex_type_10_10_10_2,
EXT_occlusion_query_boolean,
ARB_vertex_array_object,
OES_vertex_array_object, OES_vertex_array_object,
ATI_meminfo, OES_vertex_half_float,
NVX_gpu_memory_info, OES_vertex_type_10_10_10_2,
OES_rgb8_rgba8,
EXT_texture_storage,
EXT_blend_color,
EXT_blend_subtract,
EXT_blend_minmax,
ARB_debug_output,
Count Count
}; };
@ -76,53 +76,53 @@ namespace bgfx
static Extension s_extension[Extension::Count] = static Extension s_extension[Extension::Count] =
{ {
{ "GL_EXT_texture_filter_anisotropic", false, true }, { "GL_ANGLE_instanced_arrays", false, true },
{ "GL_EXT_texture_format_BGRA8888", false, true }, { "GL_ANGLE_translated_shader_source", false, true },
{ "GL_EXT_bgra", false, true }, { "GL_ARB_debug_output", BGFX_CONFIG_RENDERER_OPENGL >= 43, true },
{ "GL_EXT_texture_compression_s3tc", false, true }, { "GL_ARB_framebuffer_sRGB", false, true },
{ "GL_EXT_texture_compression_dxt1", false, true }, { "GL_ARB_get_program_binary", BGFX_CONFIG_RENDERER_OPENGL >= 41, true },
{ "GL_ARB_half_float_vertex", false, true },
{ "GL_ARB_instanced_arrays", BGFX_CONFIG_RENDERER_OPENGL >= 33, true },
{ "GL_ARB_multisample", false, true },
{ "GL_ARB_texture_float", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_ARB_texture_multisample", false, true },
{ "GL_ARB_texture_swizzle", BGFX_CONFIG_RENDERER_OPENGL >= 33, true },
{ "GL_ARB_timer_query", false, true },
{ "GL_ARB_vertex_array_object", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_ARB_vertex_type_2_10_10_10_rev", false, true },
{ "GL_ATI_meminfo", false, true },
{ "GL_CHROMIUM_framebuffer_multisample", false, true },
{ "GL_CHROMIUM_texture_compression_dxt3", false, true }, { "GL_CHROMIUM_texture_compression_dxt3", false, true },
{ "GL_CHROMIUM_texture_compression_dxt5", false, true }, { "GL_CHROMIUM_texture_compression_dxt5", false, true },
{ "GL_EXT_bgra", false, true },
{ "GL_EXT_blend_color", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_EXT_blend_minmax", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_EXT_blend_subtract", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_EXT_framebuffer_blit", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_EXT_framebuffer_sRGB", false, true },
{ "GL_EXT_occlusion_query_boolean", false, true },
{ "GL_EXT_texture_compression_dxt1", false, true },
{ "GL_EXT_texture_compression_latc", false, true }, { "GL_EXT_texture_compression_latc", false, true },
{ "GL_EXT_texture_compression_rgtc", BGFX_CONFIG_RENDERER_OPENGL >= 31, true }, { "GL_EXT_texture_compression_rgtc", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_ARB_texture_float", BGFX_CONFIG_RENDERER_OPENGL >= 31, true }, { "GL_EXT_texture_compression_s3tc", false, true },
{ "GL_EXT_texture_filter_anisotropic", false, true },
{ "GL_EXT_texture_format_BGRA8888", false, true },
{ "GL_EXT_texture_sRGB", false, true },
{ "GL_EXT_texture_storage", false, true },
{ "GL_EXT_texture_swizzle", false, true },
{ "GL_EXT_texture_type_2_10_10_10_REV", false, true },
{ "GL_EXT_timer_query", false, true },
{ "GL_NVX_gpu_memory_info", false, true },
{ "GL_OES_get_program_binary", false, false },
{ "GL_OES_rgb8_rgba8", false, true },
{ "GL_OES_standard_derivatives", false, true },
{ "GL_OES_texture_float", false, true }, { "GL_OES_texture_float", false, true },
{ "GL_OES_texture_float_linear", false, true }, { "GL_OES_texture_float_linear", false, true },
{ "GL_OES_texture_half_float", false, true }, { "GL_OES_texture_half_float", false, true },
{ "GL_OES_texture_half_float_linear", false, true }, { "GL_OES_texture_half_float_linear", false, true },
{ "GL_EXT_texture_type_2_10_10_10_REV", false, true }, { "GL_OES_vertex_array_object", false, true },
{ "GL_EXT_texture_sRGB", false, true },
{ "GL_ARB_texture_swizzle", BGFX_CONFIG_RENDERER_OPENGL >= 33, true },
{ "GL_EXT_texture_swizzle", false, true },
{ "GL_ARB_texture_multisample", false, true },
{ "GL_OES_standard_derivatives", false, true },
{ "GL_ARB_get_program_binary", BGFX_CONFIG_RENDERER_OPENGL >= 41, true },
{ "GL_OES_get_program_binary", false, false },
{ "GL_EXT_framebuffer_blit", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_ARB_timer_query", false, true },
{ "GL_EXT_timer_query", false, true },
{ "GL_ARB_framebuffer_sRGB", false, true },
{ "GL_EXT_framebuffer_sRGB", false, true },
{ "GL_ARB_multisample", false, true },
{ "GL_CHROMIUM_framebuffer_multisample", false, true },
{ "GL_ANGLE_translated_shader_source", false, true },
{ "GL_ARB_instanced_arrays", BGFX_CONFIG_RENDERER_OPENGL >= 33, true },
{ "GL_ANGLE_instanced_arrays", false, true },
{ "GL_ARB_half_float_vertex", false, true },
{ "GL_OES_vertex_half_float", false, true }, { "GL_OES_vertex_half_float", false, true },
{ "GL_ARB_vertex_type_2_10_10_10_rev", false, true },
{ "GL_OES_vertex_type_10_10_10_2", false, true }, { "GL_OES_vertex_type_10_10_10_2", false, true },
{ "GL_EXT_occlusion_query_boolean", false, true },
{ "GL_ARB_vertex_array_object", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "OES_vertex_array_object", false, true },
{ "GL_ATI_meminfo", false, true },
{ "GL_NVX_gpu_memory_info", false, true },
{ "GL_OES_rgb8_rgba8", false, true },
{ "GL_EXT_texture_storage", false, true },
{ "GL_EXT_blend_color", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_EXT_blend_subtract", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_EXT_blend_minmax", BGFX_CONFIG_RENDERER_OPENGL >= 31, true },
{ "GL_ARB_debug_output", BGFX_CONFIG_RENDERER_OPENGL >= 43, true },
}; };
#if BGFX_CONFIG_RENDERER_OPENGLES3 #if BGFX_CONFIG_RENDERER_OPENGLES3