skia2/resources/sksl/shared/DeadIfStatement.sksl

8 lines
151 B
Plaintext
Raw Normal View History

uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
const bool x = true;
if (!x) return colorRed;
if (x) return colorGreen;
}