mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-23 11:19:40 +00:00
15 lines
320 B
GLSL
15 lines
320 B
GLSL
#version 460
|
|
|
|
layout (location = 0) out vec4 io;
|
|
|
|
// default uniforms will be gathered into a uniform block
|
|
// final global block will merge uniforms from all linked files
|
|
uniform vec2 a; // declared in both stages with different type
|
|
|
|
vec4 foo() {
|
|
return a.xyxy;
|
|
}
|
|
|
|
void main() {
|
|
io = foo();
|
|
} |