• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 colorGreen;
2
3struct S {
4    float x;
5    int y;
6};
7struct Nested {
8    S a;
9};
10S returns_a_struct() {
11    return S(2,4);
12}
13half4 main(float2) {
14    Nested n;
15    n.a = returns_a_struct();
16    return colorGreen;
17}
18