I have heard that if I declare a texture array like this:
sampler2D textures[10]
Each texture in the array has to be the same dimensions. What is the reason for this? Doesn’t it seem terribly inconvenient?
I have heard that if I declare a texture array like this:
sampler2D textures[10]
Each texture in the array has to be the same dimensions. What is the reason for this? Doesn’t it seem terribly inconvenient?
Never heard about this. I also foudn nothing in the manual. Where do you have it from? IMHO, there is no reason for such restriction…
You might confuse this with array-textures:
http://opengl.org/registry/specs/EXT/texture_array.txt
That’s something very different.
Jan.
Thank you for the tip.
Array of samplers is very very helpful in some situations, but before you start using it, consider following:
array of samplers probably still doesn’t work on Radeons
array of samplers won’t be supported in future ‘cleaned’ OpenGL
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.