The difference between a uniform arrangement and a single index?

What is the difference between uniform distribution and a single index in OpenGL? It looks like you need the location to assign a uniformity value, and you need an index to request uniform information.

Why is there a need for two meanings? Why can't one of them fulfill both of these goals?

+5
source share
1 answer

It seems you need the location to assign a uniformity value, and you need an index to request uniform information.

Yes, that’s the difference between the two.

Why is there a need for two meanings?

, OpenGL API, "". " " " - , ".

.

, GLSL 3D Labs, , - . , , , . , . .

, , , 3D Labs GLSL, . , glUniform .

. ARB, : " , ". API, , .

. API- . - 0 (GL_ACTIVE_UNIFORMS). , , , .

, API " ". , 0 . , .

+8

All Articles