1 /* The GL 4.20 (Core Profile) spec says:
3 * "2.11.7 Uniform Variables
11 * When a named uniform block is declared by multiple shaders in
12 * a program, it must be declared identically in each shader. The
13 * uniforms within the block must be declared with the same names
14 * and types, and in the same order. If a program contains
15 * multiple shaders with different declarations for the same
16 * named uniform block differs between shader, the program will
19 * Although this restriction is not included in the
20 * ARB_shading_language_420pack spec, it is reasonable to believe that
21 * it applies to it too.
23 * Verify that a link error happens when using different binding
24 * points for Uniform Blocks with the same name in different
30 GL_ARB_shading_language_420pack
31 GL_ARB_uniform_buffer_object
35 #extension GL_ARB_shading_language_420pack: require
36 #extension GL_ARB_uniform_buffer_object: require
38 layout (binding = 0) uniform Block {
42 in vec4 piglit_vertex;
48 gl_Position = piglit_vertex;
53 #extension GL_ARB_shading_language_420pack: require
54 #extension GL_ARB_uniform_buffer_object: require
56 layout (binding = 1) uniform Block {
65 fs_out = vs_fs * color.x;