mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
25 lines
274 B
GLSL
25 lines
274 B
GLSL
#version 460
|
|
|
|
in float inx;
|
|
out float outx;
|
|
|
|
float add(float x, float y, float z) {
|
|
return
|
|
x
|
|
+
|
|
y
|
|
+
|
|
z
|
|
;
|
|
}
|
|
|
|
void main() {
|
|
outx
|
|
=
|
|
add(
|
|
inx+1,
|
|
inx+2,
|
|
inx+3
|
|
)
|
|
;
|
|
} |