• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1struct Color {
2    half red;
3    half green;
4    half blue;
5    half alpha;
6};
7
8half4 helper() {
9    Color c;
10    c.red   = 0.0;
11    c.green = 1.0;
12    c.blue  = 0.0;
13    c.alpha = 1.0;
14    return half4(c.red, c.green, c.blue, c.alpha);
15}
16
17half4 main(float2 coords) {
18    return helper();
19}
20