Debian Codegraph @

third_party/spirv-cross/shaders-msl/frag/private-variable-prototype-declaration.frag

raw
1 #version 450
2
3 struct AStruct { vec4 foobar; };
4
5 void someFunction(out AStruct s) { s.foobar = vec4(1.0); }
6
7 highp vec3 global_variable;
8
9 void otherFunction() {
10 global_variable = vec3(1.0);
11 }
12
13 layout(location = 0) out vec3 FragColor;
14
15 void main() {
16 AStruct inputs;
17 someFunction(inputs);
18 otherFunction();
19 FragColor = global_variable;
20 }