Which GLSL ES extensions are available on various iOS devices?

杀马特。学长 韩版系。学妹 提交于 2019-12-06 07:18:19
C0deH4cker

This code should print out all extensions:

NSString *extensionString = [NSString stringWithUTF8String:(char *)glGetString(GL_EXTENSIONS)];
NSArray *extensions = [extensionString componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
for (NSString *oneExtension in extensions)
    NSLog(@"%@", oneExtension);

Source: http://iphonedevelopment.blogspot.com/2008/12/opengl-es-extensions-on-iphone.html?m=1

Slipp D. Thompson

Apple maintains a list of GPUs used in its devices and which extensions are supported on each in its iOS Device Compatibility Reference.

For reference, here are the extensions available on the latest iPad:

GL_OES_depth_texture
GL_OES_depth24 
GL_OES_element_index_uint 
GL_OES_fbo_render_mipmap 
GL_OES_mapbuffer 
GL_OES_packed_depth_stencil 
GL_OES_rgb8_rgba8 
GL_OES_standard_derivatives 
GL_OES_texture_float 
GL_OES_texture_half_float 
GL_OES_texture_half_float_linear 
GL_OES_vertex_array_object 
GL_EXT_blend_minmax 
GL_EXT_color_buffer_half_float 
GL_EXT_debug_label 
GL_EXT_debug_marker 
GL_EXT_discard_framebuffer 
GL_EXT_occlusion_query_boolean 
GL_EXT_read_format_bgra 
GL_EXT_separate_shader_objects 
GL_EXT_shader_texture_lod 
GL_EXT_shadow_samplers 
GL_EXT_texture_filter_anisotropic 
GL_EXT_texture_rg 
GL_APPLE_framebuffer_multisample 
GL_APPLE_rgb_422 
GL_APPLE_texture_format_BGRA8888 
GL_APPLE_texture_max_level 
GL_IMG_read_format 
GL_IMG_texture_compression_pvrtc 
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!