Search code examples
ipadtexturesopengl-es-2.0

What is the maximum texture size available on the iPad?


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


Solution

  • 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.