bfc9be0f77
This will allow us to load these inputs for unit testing in `dm`. Change-Id: Id256ba7c30d3ec94b98048e47af44cf9efe580d5 Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/357282 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
29 lines
646 B
Plaintext
29 lines
646 B
Plaintext
float f = 1.0;
|
|
int i = 1;
|
|
uint u = 1;
|
|
bool b = true;
|
|
|
|
void main() {
|
|
float f1 = float(f);
|
|
float f2 = float(i);
|
|
float f3 = float(u);
|
|
float f4 = float(b);
|
|
int i1 = int(f);
|
|
int i2 = int(i);
|
|
int i3 = int(u);
|
|
int i4 = int(b);
|
|
uint u1 = uint(f);
|
|
uint u2 = uint(i);
|
|
uint u3 = uint(u);
|
|
uint u4 = uint(b);
|
|
bool b1 = bool(f);
|
|
bool b2 = bool(i);
|
|
bool b3 = bool(u);
|
|
bool b4 = bool(b);
|
|
|
|
sk_FragColor.x = half(f1 + f2 + f3 + f4);
|
|
sk_FragColor.x = half(i1 + i2 + i3 + i4);
|
|
sk_FragColor.x = half(u1 + u2 + u3 + u4);
|
|
sk_FragColor.x = half(b1 || b2 || b3 || b4);
|
|
}
|