Talk:Uniform (GLSL)/Explicit Uniform Location

From OpenGL Wiki
Revision as of 12:56, 30 July 2015 by Alfonse (talk | contribs) (Multiple uniforms with same explicit location: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Multiple uniforms with same explicit location

The GLSL specification, version 4.5, section 4.4.3 says this:

No two default-block uniform variables in the program can have the same location,

even if they are unused, otherwise a compile-time or link-time error will be generated.

For uniforms that are not explicitly specified, OpenGL allows two different stages in the same program to refer to the same uniform. But for explicit specification, this is not allowed. Alfonse (talk) 08:56, 30 July 2015 (EDT)