2020-09-14 21:30:13 +00:00
|
|
|
|
2020-11-10 16:25:35 +00:00
|
|
|
out vec4 sk_FragColor;
|
2020-12-02 16:53:51 +00:00
|
|
|
float foo(float v[2]) {
|
|
|
|
return v[0] * v[1];
|
|
|
|
}
|
|
|
|
void bar(inout float x) {
|
|
|
|
float y[2];
|
|
|
|
|
|
|
|
y[0] = x;
|
|
|
|
y[1] = x * 2.0;
|
2020-12-03 15:40:28 +00:00
|
|
|
foo(y);
|
2020-12-02 16:53:51 +00:00
|
|
|
}
|
2020-11-10 16:25:35 +00:00
|
|
|
void main() {
|
|
|
|
float x = 10.0;
|
2020-12-02 16:53:51 +00:00
|
|
|
bar(x);
|
2020-11-10 16:25:35 +00:00
|
|
|
sk_FragColor = vec4(x);
|
|
|
|
}
|