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>
12 lines
199 B
Plaintext
12 lines
199 B
Plaintext
/*#pragma settings EmulateAbsIntFunction*/
|
|
|
|
uniform int ui;
|
|
uniform float uf;
|
|
|
|
void main() {
|
|
int i = abs(ui);
|
|
float f = abs(uf);
|
|
sk_FragColor.x = half(i);
|
|
sk_FragColor.y = half(f);
|
|
}
|