Original Post
Hey guys, I'm trying to access an array of 11 structures in a fragment shader, in a for loop from i=0 to 10 (I literally specified the upperbound). Now, it won't compile, and keeps saying "error C5043: profile requires index expression to be compile-time constant". How can i not be a compile time constant? Does anyone know what might be my problem? For what it's worth, I'm using GLSL, and the array of structures is a member of a structure and its size is explicitly stated in the declaration. Thanks in advance.