f3a28db703
We no longer derive a performance benefit from this pass in practice, and it is a very expensive compilation step. It is also prone to fuzz- related errors. Doc: http://go/optimization-in-sksl Change-Id: Ief08ffac659a8fe7fe92c92b9a5da14c9f713bc2 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/381261 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
12 lines
202 B
Plaintext
12 lines
202 B
Plaintext
uniform half4 colorRed, colorGreen;
|
|
|
|
half4 main() {
|
|
half4 result = colorRed;
|
|
const float x = 5;
|
|
const float y = 10;
|
|
@if (x < y) {
|
|
result = colorGreen;
|
|
}
|
|
return result;
|
|
}
|