blob: 1d3d17e576d35b7ca32710985e4d44811bc97a53 [file] [log] [blame]
uniform half4 colorGreen, colorRed;
struct S { int i; };
half4 fnGreen(bool b, float2) {
return colorGreen;
}
half4 fnRed(int, float f, S) {
return colorRed;
}
half4 main(float2 coords) {
return bool(colorGreen.g) ? fnGreen(true, coords) : fnRed(123, 3.14, S(0));
}