Which GLSL ES extensions are available on various iOS devices?

流过昼夜 提交于 2020-01-13 20:29:10

问题


I'm looking for a list of all extensions available on any iOS devices (and which are available on which device). I haven't found the right page in the apple docs despite a lot of searching, but I'm sure it's there somewhere. Any pointers?


回答1:


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




回答2:


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




回答3:


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 


来源:https://stackoverflow.com/questions/11159811/which-glsl-es-extensions-are-available-on-various-ios-devices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!