In apple’s docs:(http://developer.apple.com/library/ios/#documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/OpenGLESPlatforms/OpenGLESPlatforms.html)
it says that for “OpenGL ES 1.1 on the PowerVR SGX” “There are 8 texture units available.”
it doesn’t say how many units are available on OpenGL ES 2.0, does that mean there is no limit?
Rather than asking and getting an answer that may or may not be correct in the future, your app should be checking programmatically at runtime using something like this:
Note that there are also separate numbers for the number of allowed texture units in a vertex shader and a fragment shader. They would use the constants
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITSandGL_MAX_TEXTURE_IMAGE_UNITS. TheCOMBINEDnumber is the number available to both at the same time.