iDevGames Forums
Max texture size - Printable Version

+- iDevGames Forums (
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Max texture size (/thread-3196.html)

Max texture size - Leroy - Jul 5, 2007 02:20 PM

Is the max texture size for most versions of OS X 1024? Also, I'm aware that there is an extension that can allow for larger textures sizes, and which version of OS X does that work with?

Max texture size - Fenris - Jul 5, 2007 02:36 PM

Short answer: 2048x2048.
Long answer:

Max texture size - OneSadCookie - Jul 5, 2007 03:01 PM

glGetIntegerv(GL_MAX_TEXTURE_SIZE, &myGLint);

This depends on hardware more than OS version.

Quick Summary:

Rage 128: 1024

Radeon - Radeon X800: 2048
GeForce MX: 2048
GMA 950: 2048

Radeon X1300 - Radeon X1600: 4096
GeForce 3, 4Ti - GeForce 7800: 4096

GeForce 8600: 8192 (?)

Whether you can *actually* create a texture this large depends on other factors, such as available VRAM. This is what the texture proxy test is for, though even that is not an ironclad guarantee of much.

Max texture size - Fenris - Jul 5, 2007 03:30 PM

Can we please stop targeting the R128 so people take them out back and shoot them? Wink

Max texture size - arekkusu - Jul 5, 2007 05:21 PM

Longer answer:

It depends not only on hardware, but which texture target and internal format you're using. A 128bit float RGBA texture takes more space (~16x) than an 8 bit LUMINANCE texture. And, a cubemap takes more space (~6x) than a 2D texture.

You can query the nominal MAX size for 1D/2D, and RECT, 3D, CUBE separately.

The proxy test will tell you if the texture can be created for a target with a particular internal format.

But the best test is to try your app on every piece of hardware that you care about. Remember, just because one texture fits in VRAM doesn't mean that your app works, or works at the speed that you want. All of the resources required for any given draw call typically need to fit in VRAM-- so the framebuffer, static vbos, and any textures bound to all active units need to fit.

No substitute for testing Smile