You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
415 B
19 lines
415 B
half foo(half x) {
|
|
++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x; ++x;
|
|
--x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x; --x;
|
|
x = 42;
|
|
return x;
|
|
}
|
|
|
|
half bar(half y) {
|
|
y = foo(y);
|
|
return y;
|
|
}
|
|
|
|
void main() {
|
|
half _1_y = 123; // the inliner shouldn't try to reuse this name
|
|
half z = 0;
|
|
bar(z);
|
|
sk_FragColor.x = z;
|
|
}
|