I am now working on android system using opengl es 2.0. I know that in order to get the number of the maximum number of textures available in a fragment shader, I can try to get the value of GL_MAX_TEXTURE_IMAGE_UNITS. However, I found that the value of this constant is 34930. But I read from a book that only 8 textures can be used in a fragment shader. I am wondering what does the value of 34930 mean?
Share
That value is just the integer value of the OpenGL enum GL_MAX_TEXTURE_IMAGE_UNITS. It’s not the number of texture units available.
To get the number of available texture units, you have to use