I've been searching through glbenchmark.com for a device with screen size (width or height) greater than GL_MAX_TEXTURE_SIZE
. I've found over a hundred devices with GL_MAX_VIEWPORT_WIDTH
and GL_MAX_VIEWPORT_HEIGHT
greater than GL_MAX_TEXTURE_SIZE
(for example Acer A110), but no device with screen size greater than GL_MAX_TEXTURE_SIZE
. So I assume there is no such device.
Is there any specification that guarantees that every device (or Android device) has screen size less or equal to GL_MAX_TEXTURE_SIZE
? If not, is there any device that breaks my assumption?
You can be sure that GL_MAX_TEXTURE_SIZE will be always bigger or equal to the screen size (SurfaceFlinger requires this)
Maybe with newest devices with screen sizes over 2k pixels wide you may find that, but hardware vendors would not put a mobile GPU that is not capable of doing offscreen rendering to a texture target because the max texture size is smaller than the device screen. For old devices with smaller GL_MAX_TEXTURE_SIZE, the screen were also smaller than 1024x1024.
来源:https://stackoverflow.com/questions/14057154/is-there-any-android-device-with-screen-size-greater-than-gl-max-texture-size