1cbuffer _UniformBuffer : register(b0, space0) 2{ 3 float4 _19_colorGreen : packoffset(c0); 4 float4 _19_colorRed : packoffset(c1); 5 float _19_unknownInput : packoffset(c2); 6}; 7 8 9static float4 sk_FragColor; 10 11struct SPIRV_Cross_Output 12{ 13 float4 sk_FragColor : SV_Target0; 14}; 15 16bool inside_while_loop_b() 17{ 18 while (_19_unknownInput == 123.0f) 19 { 20 return false; 21 } 22 return true; 23} 24 25bool inside_infinite_do_loop_b() 26{ 27 do 28 { 29 return true; 30 } while (true); 31} 32 33bool inside_infinite_while_loop_b() 34{ 35 while (true) 36 { 37 return true; 38 } 39} 40 41bool after_do_loop_b() 42{ 43 do 44 { 45 break; 46 } while (true); 47 return true; 48} 49 50bool after_while_loop_b() 51{ 52 while (!true) 53 { 54 break; 55 } 56 return true; 57} 58 59bool switch_with_all_returns_b() 60{ 61 switch (int(_19_unknownInput)) 62 { 63 case 1: 64 { 65 return true; 66 } 67 case 2: 68 { 69 return false; 70 } 71 default: 72 { 73 return false; 74 } 75 } 76} 77 78bool switch_fallthrough_b() 79{ 80 switch (int(_19_unknownInput)) 81 { 82 case 1: 83 { 84 return true; 85 } 86 default: 87 { 88 return false; 89 } 90 } 91} 92 93bool switch_fallthrough_twice_b() 94{ 95 switch (int(_19_unknownInput)) 96 { 97 default: 98 { 99 return true; 100 } 101 } 102} 103 104bool switch_with_break_in_loop_b() 105{ 106 switch (int(_19_unknownInput)) 107 { 108 case 1: 109 { 110 for (int x = 0; !(x <= 10); x++) 111 { 112 break; 113 } 114 return true; 115 } 116 default: 117 { 118 return true; 119 } 120 } 121} 122 123bool switch_with_continue_in_loop_b() 124{ 125 switch (int(_19_unknownInput)) 126 { 127 case 1: 128 { 129 for (int x = 0; x <= 10; x++) 130 { 131 } 132 return true; 133 } 134 default: 135 { 136 return true; 137 } 138 } 139} 140 141bool switch_with_if_that_returns_b() 142{ 143 switch (int(_19_unknownInput)) 144 { 145 case 1: 146 { 147 if (_19_unknownInput == 123.0f) 148 { 149 return false; 150 } 151 else 152 { 153 return true; 154 } 155 return true; 156 } 157 default: 158 { 159 return true; 160 } 161 } 162} 163 164bool switch_with_one_sided_if_then_fallthrough_b() 165{ 166 switch (int(_19_unknownInput)) 167 { 168 case 1: 169 { 170 if (_19_unknownInput == 123.0f) 171 { 172 return false; 173 } 174 return true; 175 } 176 default: 177 { 178 return true; 179 } 180 } 181} 182 183float4 main(float2 _161) 184{ 185 bool _167 = false; 186 if (inside_while_loop_b()) 187 { 188 _167 = inside_infinite_do_loop_b(); 189 } 190 else 191 { 192 _167 = false; 193 } 194 bool _171 = false; 195 if (_167) 196 { 197 _171 = inside_infinite_while_loop_b(); 198 } 199 else 200 { 201 _171 = false; 202 } 203 bool _175 = false; 204 if (_171) 205 { 206 _175 = after_do_loop_b(); 207 } 208 else 209 { 210 _175 = false; 211 } 212 bool _179 = false; 213 if (_175) 214 { 215 _179 = after_while_loop_b(); 216 } 217 else 218 { 219 _179 = false; 220 } 221 bool _183 = false; 222 if (_179) 223 { 224 _183 = switch_with_all_returns_b(); 225 } 226 else 227 { 228 _183 = false; 229 } 230 bool _187 = false; 231 if (_183) 232 { 233 _187 = switch_fallthrough_b(); 234 } 235 else 236 { 237 _187 = false; 238 } 239 bool _191 = false; 240 if (_187) 241 { 242 _191 = switch_fallthrough_twice_b(); 243 } 244 else 245 { 246 _191 = false; 247 } 248 bool _195 = false; 249 if (_191) 250 { 251 _195 = switch_with_break_in_loop_b(); 252 } 253 else 254 { 255 _195 = false; 256 } 257 bool _199 = false; 258 if (_195) 259 { 260 _199 = switch_with_continue_in_loop_b(); 261 } 262 else 263 { 264 _199 = false; 265 } 266 bool _203 = false; 267 if (_199) 268 { 269 _203 = switch_with_if_that_returns_b(); 270 } 271 else 272 { 273 _203 = false; 274 } 275 bool _207 = false; 276 if (_203) 277 { 278 _207 = switch_with_one_sided_if_then_fallthrough_b(); 279 } 280 else 281 { 282 _207 = false; 283 } 284 float4 _208 = 0.0f.xxxx; 285 if (_207) 286 { 287 _208 = _19_colorGreen; 288 } 289 else 290 { 291 _208 = _19_colorRed; 292 } 293 return _208; 294} 295 296void frag_main() 297{ 298 float2 _29 = 0.0f.xx; 299 sk_FragColor = main(_29); 300} 301 302SPIRV_Cross_Output main() 303{ 304 frag_main(); 305 SPIRV_Cross_Output stage_output; 306 stage_output.sk_FragColor = sk_FragColor; 307 return stage_output; 308} 309