910845fac1
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>
14 lines
185 B
GLSL
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;
|
|
}
|