Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl-no-opt/frag/spec-constant.frag

raw
1 #ifndef SPIRV_CROSS_CONSTANT_ID_1
2 #define SPIRV_CROSS_CONSTANT_ID_1 1.0f
3 #endif
4 static const float a = SPIRV_CROSS_CONSTANT_ID_1;
5 #ifndef SPIRV_CROSS_CONSTANT_ID_2
6 #define SPIRV_CROSS_CONSTANT_ID_2 2.0f
7 #endif
8 static const float b = SPIRV_CROSS_CONSTANT_ID_2;
9 #ifndef SPIRV_CROSS_CONSTANT_ID_3
10 #define SPIRV_CROSS_CONSTANT_ID_3 3
11 #endif
12 static const int c = SPIRV_CROSS_CONSTANT_ID_3;
13 static const uint _18 = (uint(c) + 0u);
14 static const int _21 = (-c);
15 static const int _23 = (~c);
16 #ifndef SPIRV_CROSS_CONSTANT_ID_4
17 #define SPIRV_CROSS_CONSTANT_ID_4 4
18 #endif
19 static const int d = SPIRV_CROSS_CONSTANT_ID_4;
20 static const int _26 = (c + d);
21 static const int _28 = (c - d);
22 static const int _30 = (c * d);
23 static const int _32 = (c / d);
24 #ifndef SPIRV_CROSS_CONSTANT_ID_5
25 #define SPIRV_CROSS_CONSTANT_ID_5 5u
26 #endif
27 static const uint e = SPIRV_CROSS_CONSTANT_ID_5;
28 #ifndef SPIRV_CROSS_CONSTANT_ID_6
29 #define SPIRV_CROSS_CONSTANT_ID_6 6u
30 #endif
31 static const uint f = SPIRV_CROSS_CONSTANT_ID_6;
32 static const uint _36 = (e / f);
33 static const int _38 = (c % d);
34 static const uint _40 = (e % f);
35 static const int _42 = (c >> d);
36 static const uint _44 = (e >> f);
37 static const int _46 = (c << d);
38 static const int _48 = (c | d);
39 static const int _50 = (c ^ d);
40 static const int _52 = (c & d);
41 #ifndef SPIRV_CROSS_CONSTANT_ID_7
42 #define SPIRV_CROSS_CONSTANT_ID_7 false
43 #endif
44 static const bool g = SPIRV_CROSS_CONSTANT_ID_7;
45 #ifndef SPIRV_CROSS_CONSTANT_ID_8
46 #define SPIRV_CROSS_CONSTANT_ID_8 true
47 #endif
48 static const bool h = SPIRV_CROSS_CONSTANT_ID_8;
49 static const bool _58 = (g || h);
50 static const bool _60 = (g && h);
51 static const bool _62 = (!g);
52 static const bool _64 = (g == h);
53 static const bool _66 = (g != h);
54 static const bool _68 = (c == d);
55 static const bool _70 = (c != d);
56 static const bool _72 = (c < d);
57 static const bool _74 = (e < f);
58 static const bool _76 = (c > d);
59 static const bool _78 = (e > f);
60 static const bool _80 = (c <= d);
61 static const bool _82 = (e <= f);
62 static const bool _84 = (c >= d);
63 static const bool _86 = (e >= f);
64 static const int _92 = int(e + 0u);
65 static const bool _94 = (c != int(0u));
66 static const bool _96 = (e != 0u);
67 static const int _100 = int(g);
68 static const uint _103 = uint(g);
69 static const int _111 = (c + 3);
70 static const int _118 = (c + 2);
71 static const int _124 = (d + 2);
72
73 struct Foo
74 {
75 float elems[_124];
76 };
77
78 static float4 FragColor;
79
80 struct SPIRV_Cross_Output
81 {
82 float4 FragColor : SV_Target0;
83 };
84
85 void frag_main()
86 {
87 float t0 = a;
88 float t1 = b;
89 uint c0 = _18;
90 int c1 = _21;
91 int c2 = _23;
92 int c3 = _26;
93 int c4 = _28;
94 int c5 = _30;
95 int c6 = _32;
96 uint c7 = _36;
97 int c8 = _38;
98 uint c9 = _40;
99 int c10 = _42;
100 uint c11 = _44;
101 int c12 = _46;
102 int c13 = _48;
103 int c14 = _50;
104 int c15 = _52;
105 bool c16 = _58;
106 bool c17 = _60;
107 bool c18 = _62;
108 bool c19 = _64;
109 bool c20 = _66;
110 bool c21 = _68;
111 bool c22 = _70;
112 bool c23 = _72;
113 bool c24 = _74;
114 bool c25 = _76;
115 bool c26 = _78;
116 bool c27 = _80;
117 bool c28 = _82;
118 bool c29 = _84;
119 bool c30 = _86;
120 int c31 = c8 + c3;
121 int c32 = _92;
122 bool c33 = _94;
123 bool c34 = _96;
124 int c35 = _100;
125 uint c36 = _103;
126 float c37 = float(g);
127 float vec0[_111][8];
128 vec0[0][0] = 10.0f;
129 float vec1[_118];
130 vec1[0] = 20.0f;
131 Foo foo;
132 foo.elems[c] = 10.0f;
133 FragColor = (((t0 + t1).xxxx + vec0[0][0].xxxx) + vec1[0].xxxx) + foo.elems[c].xxxx;
134 }
135
136 SPIRV_Cross_Output main()
137 {
138 frag_main();
139 SPIRV_Cross_Output stage_output;
140 stage_output.FragColor = FragColor;
141 return stage_output;
142 }