| struct buf0 { |
| resolution : vec2<f32>; |
| }; |
| |
| var<private> gl_FragCoord : vec4<f32>; |
| |
| [[group(0), binding(0)]] var<uniform> x_6 : buf0; |
| |
| var<private> x_GLF_color : vec4<f32>; |
| |
| fn main_1() { |
| var x_195 : array<i32, 256>; |
| var x_196 : array<i32, 256>; |
| var x_197 : array<i32, 256>; |
| var x_209 : vec2<i32>; |
| var x_241 : vec4<f32>; |
| var x_243 : vec4<f32>; |
| var x_213_phi : vec2<i32>; |
| var x_243_phi : vec4<f32>; |
| var x_244_phi : bool; |
| var x_246_phi : vec4<f32>; |
| let x_198 : vec4<f32> = gl_FragCoord; |
| let x_201 : vec2<f32> = x_6.resolution; |
| let x_202 : vec2<f32> = (vec2<f32>(x_198.x, x_198.y) / x_201); |
| x_209 = vec2<i32>(i32((x_202.x * 256.0)), i32((x_202.y * 256.0))); |
| switch(0u) { |
| default: { |
| x_213_phi = x_209; |
| loop { |
| var x_230 : bool; |
| var x_231_phi : bool; |
| let x_213 : vec2<i32> = x_213_phi; |
| let x_216 : i32 = x_213.y; |
| x_243_phi = vec4<f32>(0.0, 0.0, 0.0, 0.0); |
| x_244_phi = false; |
| if ((x_216 != 256)) { |
| } else { |
| break; |
| } |
| let x_220 : i32 = x_213.x; |
| x_195 = array<i32, 256>(115, 133, 150, 164, 176, 184, 190, 192, 191, 187, 181, 172, 163, 153, 143, 134, 126, 120, 116, 114, 114, 117, 121, 127, 134, 141, 148, 154, 159, 162, 163, 161, 157, 151, 143, 134, 124, 113, 103, 94, 87, 82, 79, 80, 84, 91, 101, 114, 130, 146, 164, 182, 199, 215, 229, 240, 249, 254, 256, 254, 250, 243, 233, 223, 212, 200, 190, 180, 172, 166, 163, 161, 162, 164, 169, 174, 179, 185, 190, 193, 195, 195, 192, 188, 180, 171, 161, 149, 137, 125, 114, 105, 97, 93, 91, 93, 98, 106, 117, 130, 145, 161, 177, 193, 208, 221, 231, 239, 243, 244, 242, 236, 228, 218, 207, 194, 181, 169, 158, 148, 141, 135, 132, 131, 132, 135, 138, 143, 147, 151, 154, 155, 155, 152, 146, 139, 129, 118, 106, 93, 80, 68, 58, 49, 43, 40, 41, 44, 51, 61, 73, 87, 103, 119, 134, 149, 162, 173, 181, 186, 188, 186, 181, 174, 164, 153, 141, 128, 116, 104, 94, 86, 81, 77, 76, 77, 80, 84, 89, 94, 98, 102, 104, 104, 102, 98, 92, 83, 73, 62, 50, 38, 26, 16, 8, 2, 0, 0, 4, 11, 21, 33, 48, 64, 81, 98, 114, 129, 141, 151, 158, 161, 161, 158, 152, 144, 134, 123, 112, 100, 90, 81, 73, 68, 65, 65, 67, 70, 75, 81, 87, 92, 97, 101, 103, 102, 100, 95, 88, 79, 69, 58, 47, 36, 26, 18, 13, 11, 11, 15, 22, 32, 45, 60, 77, 94); |
| let x_222 : i32 = x_195[x_216]; |
| let x_224 : bool = (x_220 < (x_222 + 15)); |
| x_231_phi = x_224; |
| if (x_224) { |
| x_196 = array<i32, 256>(115, 133, 150, 164, 176, 184, 190, 192, 191, 187, 181, 172, 163, 153, 143, 134, 126, 120, 116, 114, 114, 117, 121, 127, 134, 141, 148, 154, 159, 162, 163, 161, 157, 151, 143, 134, 124, 113, 103, 94, 87, 82, 79, 80, 84, 91, 101, 114, 130, 146, 164, 182, 199, 215, 229, 240, 249, 254, 256, 254, 250, 243, 233, 223, 212, 200, 190, 180, 172, 166, 163, 161, 162, 164, 169, 174, 179, 185, 190, 193, 195, 195, 192, 188, 180, 171, 161, 149, 137, 125, 114, 105, 97, 93, 91, 93, 98, 106, 117, 130, 145, 161, 177, 193, 208, 221, 231, 239, 243, 244, 242, 236, 228, 218, 207, 194, 181, 169, 158, 148, 141, 135, 132, 131, 132, 135, 138, 143, 147, 151, 154, 155, 155, 152, 146, 139, 129, 118, 106, 93, 80, 68, 58, 49, 43, 40, 41, 44, 51, 61, 73, 87, 103, 119, 134, 149, 162, 173, 181, 186, 188, 186, 181, 174, 164, 153, 141, 128, 116, 104, 94, 86, 81, 77, 76, 77, 80, 84, 89, 94, 98, 102, 104, 104, 102, 98, 92, 83, 73, 62, 50, 38, 26, 16, 8, 2, 0, 0, 4, 11, 21, 33, 48, 64, 81, 98, 114, 129, 141, 151, 158, 161, 161, 158, 152, 144, 134, 123, 112, 100, 90, 81, 73, 68, 65, 65, 67, 70, 75, 81, 87, 92, 97, 101, 103, 102, 100, 95, 88, 79, 69, 58, 47, 36, 26, 18, 13, 11, 11, 15, 22, 32, 45, 60, 77, 94); |
| let x_228 : i32 = x_196[x_216]; |
| x_230 = (x_220 > (x_228 - 15)); |
| x_231_phi = x_230; |
| } |
| let x_231 : bool = x_231_phi; |
| if (x_231) { |
| x_197 = array<i32, 256>(115, 133, 150, 164, 176, 184, 190, 192, 191, 187, 181, 172, 163, 153, 143, 134, 126, 120, 116, 114, 114, 117, 121, 127, 134, 141, 148, 154, 159, 162, 163, 161, 157, 151, 143, 134, 124, 113, 103, 94, 87, 82, 79, 80, 84, 91, 101, 114, 130, 146, 164, 182, 199, 215, 229, 240, 249, 254, 256, 254, 250, 243, 233, 223, 212, 200, 190, 180, 172, 166, 163, 161, 162, 164, 169, 174, 179, 185, 190, 193, 195, 195, 192, 188, 180, 171, 161, 149, 137, 125, 114, 105, 97, 93, 91, 93, 98, 106, 117, 130, 145, 161, 177, 193, 208, 221, 231, 239, 243, 244, 242, 236, 228, 218, 207, 194, 181, 169, 158, 148, 141, 135, 132, 131, 132, 135, 138, 143, 147, 151, 154, 155, 155, 152, 146, 139, 129, 118, 106, 93, 80, 68, 58, 49, 43, 40, 41, 44, 51, 61, 73, 87, 103, 119, 134, 149, 162, 173, 181, 186, 188, 186, 181, 174, 164, 153, 141, 128, 116, 104, 94, 86, 81, 77, 76, 77, 80, 84, 89, 94, 98, 102, 104, 104, 102, 98, 92, 83, 73, 62, 50, 38, 26, 16, 8, 2, 0, 0, 4, 11, 21, 33, 48, 64, 81, 98, 114, 129, 141, 151, 158, 161, 161, 158, 152, 144, 134, 123, 112, 100, 90, 81, 73, 68, 65, 65, 67, 70, 75, 81, 87, 92, 97, 101, 103, 102, 100, 95, 88, 79, 69, 58, 47, 36, 26, 18, 13, 11, 11, 15, 22, 32, 45, 60, 77, 94); |
| let x_235 : i32 = x_197[x_216]; |
| let x_240 : f32 = ((15.0 - abs(f32((x_220 - x_235)))) * 0.06666667); |
| x_241 = vec4<f32>(x_240, x_240, x_240, 1.0); |
| x_243_phi = x_241; |
| x_244_phi = true; |
| break; |
| } |
| var x_214_1 : vec2<i32> = x_213; |
| x_214_1.y = (x_216 + 1); |
| let x_214 : vec2<i32> = x_214_1; |
| |
| continuing { |
| x_213_phi = x_214; |
| } |
| } |
| x_243 = x_243_phi; |
| let x_244 : bool = x_244_phi; |
| x_246_phi = x_243; |
| if (x_244) { |
| break; |
| } |
| x_246_phi = vec4<f32>(0.0, 0.0, 0.0, 1.0); |
| } |
| } |
| let x_246 : vec4<f32> = x_246_phi; |
| x_GLF_color = x_246; |
| return; |
| } |
| |
| struct main_out { |
| [[location(0)]] |
| x_GLF_color_1 : vec4<f32>; |
| }; |
| |
| [[stage(fragment)]] |
| fn main([[builtin(position)]] gl_FragCoord_param : vec4<f32>) -> main_out { |
| gl_FragCoord = gl_FragCoord_param; |
| main_1(); |
| return main_out(x_GLF_color); |
| } |