• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 colorGreen, colorRed;
2
3struct S { int i; };
4
5half4 fnGreen(bool b, float2) {
6    return colorGreen;
7}
8
9half4 fnRed(int, float f, S) {
10    return colorRed;
11}
12
13half4 main(float2 coords) {
14    return bool(colorGreen.g) ? fnGreen(true, coords) : fnRed(123, 3.14, S(0));
15}
16