Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl-no-opt/asm/vert/complex-link-by-name.asm.vert

raw
1 struct Struct_vec4
2 {
3 float4 m0;
4 };
5
6 cbuffer UBO : register(b0)
7 {
8 Struct_vec4 ubo_binding_0_m0 : packoffset(c0);
9 Struct_vec4 ubo_binding_0_m1 : packoffset(c1);
10 };
11
12
13 static float4 gl_Position;
14 static Struct_vec4 output_location_2;
15 static Struct_vec4 output_location_3;
16
17 struct VertexOut
18 {
19 Struct_vec4 m0 : TEXCOORD0;
20 Struct_vec4 m1 : TEXCOORD1;
21 };
22
23 static VertexOut output_location_0;
24
25 struct SPIRV_Cross_Output
26 {
27 Struct_vec4 output_location_2 : TEXCOORD2;
28 Struct_vec4 output_location_3 : TEXCOORD3;
29 float4 gl_Position : SV_Position;
30 };
31
32 void vert_main()
33 {
34 Struct_vec4 c;
35 c.m0 = ubo_binding_0_m0.m0;
36 Struct_vec4 b;
37 b.m0 = ubo_binding_0_m1.m0;
38 gl_Position = c.m0 + b.m0;
39 output_location_0.m0 = c;
40 output_location_0.m1 = b;
41 output_location_2 = c;
42 output_location_3 = b;
43 }
44
45 SPIRV_Cross_Output main(out VertexOut stage_outputoutput_location_0)
46 {
47 vert_main();
48 stage_outputoutput_location_0 = output_location_0;
49 SPIRV_Cross_Output stage_output;
50 stage_output.gl_Position = gl_Position;
51 stage_output.output_location_2 = output_location_2;
52 stage_output.output_location_3 = output_location_3;
53 return stage_output;
54 }