I am looking at glGetActiveAttrib (2.11.3) and am wondering if the order of attribute indices is defined anywhere.
Note that index simply identifies a member in a list of active attributes, and has no relation to the generic attribute that the corresponding variable is bound to.
Suggests that the index used for querying is separate from any binding index.
Will querying of index 0 provide the first active attribute and index n-1 give the last attribute in the order they were declared within the shader or in an unspecified order? For example, if
position was listed before
position can be queried using index i and
color by i+1?