Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl/asm/vert/spec-constant-op-composite.asm.vert

raw
1 #ifndef SPIRV_CROSS_CONSTANT_ID_201
2 #define SPIRV_CROSS_CONSTANT_ID_201 -10
3 #endif
4 static const int _7 = SPIRV_CROSS_CONSTANT_ID_201;
5 static const int _20 = (_7 + 2);
6 #ifndef SPIRV_CROSS_CONSTANT_ID_202
7 #define SPIRV_CROSS_CONSTANT_ID_202 100u
8 #endif
9 static const uint _8 = SPIRV_CROSS_CONSTANT_ID_202;
10 static const uint _25 = (_8 % 5u);
11 #ifndef SPIRV_CROSS_CONSTANT_ID_0
12 #define SPIRV_CROSS_CONSTANT_ID_0 int4(20, 30, _20, _20)
13 #endif
14 static const int4 _30 = SPIRV_CROSS_CONSTANT_ID_0;
15 static const int2 _32 = int2(_30.y, _30.x);
16 static const int _33 = _30.y;
17 #ifndef SPIRV_CROSS_CONSTANT_ID_200
18 #define SPIRV_CROSS_CONSTANT_ID_200 3.141590118408203125f
19 #endif
20 static const float _9 = SPIRV_CROSS_CONSTANT_ID_200;
21
22 static float4 gl_Position;
23 static int _4;
24
25 struct SPIRV_Cross_Output
26 {
27 nointerpolation int _4 : TEXCOORD0;
28 float4 gl_Position : SV_Position;
29 };
30
31 void vert_main()
32 {
33 float4 pos = 0.0f.xxxx;
34 pos.y += float(_20);
35 pos.z += float(_25);
36 pos += float4(_30);
37 float2 _56 = pos.xy + float2(_32);
38 pos = float4(_56.x, _56.y, pos.z, pos.w);
39 gl_Position = pos;
40 _4 = _33;
41 }
42
43 SPIRV_Cross_Output main()
44 {
45 vert_main();
46 SPIRV_Cross_Output stage_output;
47 stage_output.gl_Position = gl_Position;
48 stage_output._4 = _4;
49 return stage_output;
50 }