Debian Codegraph @

third_party/spirv-cross/reference/shaders/asm/frag/composite-construct-struct-no-swizzle.asm.frag

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 struct SwizzleTest
6 {
7 float a;
8 float b;
9 };
10
11 layout(location = 0) in vec2 foo;
12 layout(location = 0) out float FooOut;
13
14 void main()
15 {
16 SwizzleTest _22 = SwizzleTest(foo.x, foo.y);
17 FooOut = _22.a + _22.b;
18 }
19