首页 > 为什么显卡渲染的贴图长宽必须是2的幂?

为什么显卡渲染的贴图长宽必须是2的幂?

不明白显卡是怎么倒腾图片的,难道不是这个尺寸的图片没法读入显存?


OpenGL1确实是这样的,但是在GeForce 6xxx以上不存在

The texture size must be a power of two (1,2,4,8,16,32,64,128,256 and so on up to 2048 or 4096 depending a little on the hardware), though you don need to have a square texture 128x512 is perfectly valid, on nvidia cards above GF6xxx the power of two limit has been removed, however most cards still have this limit so it's best to stick with it.

而OpenGL2.0中取消了这个限制

【热门文章】
【热门文章】