Debian Codegraph @

third_party/spirv-cross/shaders/frag/flush_params.frag

raw
1 #version 310 es
2 precision mediump float;
3
4 layout(location = 0) out vec4 FragColor;
5
6 struct Structy
7 {
8 vec4 c;
9 };
10
11 void foo2(out Structy f)
12 {
13 f.c = vec4(10.0);
14 }
15
16 Structy foo()
17 {
18 Structy f;
19 foo2(f);
20 return f;
21 }
22
23 void main()
24 {
25 Structy s = foo();
26 FragColor = s.c;
27 }