Debian Codegraph @

third_party/spirv-cross/reference/opt/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
18 static float4 gl_Position;
19 static int _4;
20
21 struct SPIRV_Cross_Output
22 {
23 nointerpolation int _4 : TEXCOORD0;
24 float4 gl_Position : SV_Position;
25 };
26
27 void vert_main()
28 {
29 float4 _63 = 0.0f.xxxx;
30 _63.y = float(_20);
31 float4 _66 = _63;
32 _66.z = float(_25);
33 float4 _52 = _66 + float4(_30);
34 float2 _56 = _52.xy + float2(_32);
35 gl_Position = float4(_56.x, _56.y, _52.z, _52.w);
36 _4 = _33;
37 }
38
39 SPIRV_Cross_Output main()
40 {
41 vert_main();
42 SPIRV_Cross_Output stage_output;
43 stage_output.gl_Position = gl_Position;
44 stage_output._4 = _4;
45 return stage_output;
46 }