1#version 460
2
3layout (location = 0) out vec4 io;
4
5// default uniforms will be gathered into a uniform block
6// final global block will merge uniforms from all linked files
7uniform vec2 a;     // declared in both stages with different type
8
9vec4 foo() {
10    return a.xyxy;
11}
12
13void main() {
14    io = foo();
15}