What is the maximum texture size available on the iPad?

左心房为你撑大大i 提交于 2019-11-27 01:58:04

问题


Anyone know the maximum texture size for the iPad? I'm having trouble finding numbers for this.


回答1:


The iPad 2 supports OpenGL ES 2.0 and 2048 x 2048 textures.

http://developer.apple.com/iphone/library/documentation/General/Conceptual/iPadProgrammingGuide/AboutThePlatform/AboutThePlatform.html




回答2:


As a supplement to the accepted answer:

2048 was the maximum for iPad2 as well, up until iOS5.1, when it became 4096.

4096 is the maximum for iPad3, as pointed out by @badweasel in the comments.

Best to determine the limit programmatically, using

int max;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &max);

This is useful if you want your code to adapt to maximum sizes on devices or versions you haven't tried, or haven't yet been released.




回答3:


Here is a more recent resource from Apple.

https://developer.apple.com/metal/limits/

It has a lot of information about graphical limitations. If you want to know the maximum texture size for iOS, find the entry for "Maximum 2D texture width and height".

It depends on what operating systems you are targeting. For example, if you want to support iOS 8 and higher you are restricted to the iOS 8 limit for 2D textures of 4096 x 4096 pixels even though later versions of iOS can support larger textures.



来源:https://stackoverflow.com/questions/2505186/what-is-the-maximum-texture-size-available-on-the-ipad

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