Why do textures have to be sized a multiple of two? [duplicate]

。_饼干妹妹 提交于 2019-12-25 04:23:06

问题


For OpenGL rendering, the texure sizes have to be a multiple of two. Why is there this restriction? Is it related to the memory usage, or the way the GPU processes textures?

Why do textures have to be sized a multiple of two?


回答1:


The memory used for texture in the memory banks are optimally powers of two (even more constrained than multiple of two) in order to allow best partitioning and fastest possible DMA transfers.



来源:https://stackoverflow.com/questions/24144430/why-do-textures-have-to-be-sized-a-multiple-of-two

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!