a65441b3c4
These need to change because type coercion in SkSL is about to become more strict in a followup CL; we are disallowing expressions that mix ints and floats without a cast. Change-Id: I0f6c3cba53fb67078f447345338262c153236c51 Bug: skia:11164 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/353102 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
9 lines
168 B
Plaintext
9 lines
168 B
Plaintext
void main() {
|
|
int x;
|
|
if (true) x = 1;
|
|
if (2 > 1) x = 2; else x = 3;
|
|
if (1 > 2) x = 4; else x = 5;
|
|
if (false) x = 6;
|
|
sk_FragColor.r = half(x);
|
|
}
|