Talk:Uniform (GLSL)/Explicit Uniform Location: Difference between revisions
Jump to navigation
Jump to search
→Multiple uniforms with same explicit location: new section |
(No difference)
|
Revision as of 12:56, 30 July 2015
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)