mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-14 13:51:04 +00:00
16 lines
269 B
GLSL
16 lines
269 B
GLSL
#version 460
|
|
|
|
layout (location = 0) in vec4 io;
|
|
|
|
out vec4 o;
|
|
|
|
// default uniforms will be gathered into a uniform block
|
|
uniform vec4 a; // declared in both stages with different types
|
|
|
|
vec4 foo() {
|
|
return a;
|
|
}
|
|
|
|
void main() {
|
|
o = io + foo();
|
|
} |