Are OpenGL indices and locations the same thing for uniforms and vertex attributes?
问题 In the OpenGL Reference Pages, some functions are marked as using uniform locations, while other functions are marked as using uniform indices. Are these the same thing? Similarly for vertex attributes, some functions are marked as using vertex attribute indices, while other functions are marked as using vertex attribute locations. Are these the same? 回答1: In your first case, the location for an Uniform is different from the index used for glGetActiveUniform() . For glGetActiveUniform() case,