2b6ec98a82
This should be legal, and we support this, but some versions of Android do not: http://screen/3bkQewHF3xUMn5v There's no point in allowing these shaders to exist; they can't compile on real-world clients, and these vardecls are borderline meaningless (as the variables being declared aren't reachable by any other statements). Change-Id: Ie1351933c90caee9124eeab8983364ec030b2653 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/379584 Reviewed-by: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
14 lines
359 B
Plaintext
14 lines
359 B
Plaintext
half4 main() {
|
|
half4 color = half4(0);
|
|
|
|
for (int counter=0; counter<10; ++counter) ;
|
|
for (int counter=0; counter<10; ++counter) {}
|
|
for (int counter=0; counter<10; ++counter) { false, 1 == 2; sqrt(7); }
|
|
|
|
if (sqrt(1) == 1) color.g = 1; else 1;
|
|
if (sqrt(1) == 2) 0; else color.a = 1;
|
|
if (sqrt(1) == 3) 0; else 1;
|
|
|
|
return color;
|
|
}
|