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>
21 lines
380 B
Plaintext
21 lines
380 B
Plaintext
bool test() {
|
|
bool ok = true;
|
|
int x = 12 | 6;
|
|
ok = ok && (x == 14);
|
|
x = 254 & 7;
|
|
ok = ok && (x == 6);
|
|
x = 2 ^ 7;
|
|
ok = ok && (x == 5);
|
|
x = 1 << 4;
|
|
ok = ok && (x == 16);
|
|
x = 128 >> 2;
|
|
ok = ok && (x == 32);
|
|
x = 123 % 45;
|
|
ok = ok && (x == 33);
|
|
return ok;
|
|
}
|
|
|
|
half4 main() {
|
|
return test() ? half4(0,1,0,1) : half4(1,0,0,1);
|
|
}
|