skia2/tests/sksl/inliner/golden/InlinerCanBeDisabled.glsl
John Stiles 910845fac1 Add program-settings flag to disable the inliner.
Change-Id: I6c4e7f6a2aab6710221029022a3a5f3ec323c5e2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317856
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Auto-Submit: John Stiles <johnstiles@google.com>
2020-09-18 20:30:22 +00:00

14 lines
185 B
GLSL

out vec4 sk_FragColor;
void foo(out float x) {
x = 42.0;
}
float bar(float y) {
foo(y);
return y + 1.0;
}
void main() {
float z = bar(123.0);
sk_FragColor.x = z;
}