skia2/resources/sksl/shared/StaticSwitch.sksl
John Stiles 325c808ebb Enable additional SkSL tests which require non-ES2 features.
Although these tests are simple, it ended up uncovering a legitimate
SPIR-V bug (skia:12009).

Change-Id: Ie89235157256b97626aa6ada4d9d6ba62abc57fa
Bug: skia:12009
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/409299
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
2021-05-17 20:24:50 +00:00

9 lines
156 B
Plaintext

uniform half4 colorGreen, colorRed;
half4 main(float2 xy) {
@switch (1) {
case 1: return colorGreen;
default: return colorRed;
}
}