1SKIP: FAILED 2 3warning: code is unreachable 4cbuffer cbuffer_x_6 : register(b0, space0) { 5 uint4 x_6[1]; 6}; 7static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); 8 9void main_1() { 10 int data[10] = (int[10])0; 11 int x_40 = 0; 12 int x_40_phi = 0; 13 int x_11_phi = 0; 14 const int x_7 = data[1]; 15 const int x_10 = ((1 < x_7) ? 2 : 1); 16 x_40_phi = 1; 17 x_11_phi = x_10; 18 [loop] while (true) { 19 int x_54 = 0; 20 int x_41 = 0; 21 int x_41_phi = 0; 22 x_40 = x_40_phi; 23 const int x_11 = x_11_phi; 24 if ((x_11 < 3)) { 25 } else { 26 break; 27 } 28 int x_54_phi = 0; 29 const int x_8 = (x_11 + 1); 30 const float x_47 = asfloat(x_6[0].x); 31 x_54_phi = x_40; 32 switch(int(x_47)) { 33 case 78: { 34 x_GLF_color = float4(1.0f, 1.0f, 1.0f, 1.0f); 35 /* fallthrough */ 36 { 37 x_54_phi = asint((x_40 + asint(1))); 38 /* fallthrough */ 39 } 40 { 41 x_54 = x_54_phi; 42 x_41_phi = x_54; 43 { 44 x_41 = x_41_phi; 45 x_40_phi = x_41; 46 x_11_phi = x_8; 47 } 48 continue; 49 } 50 break; 51 } 52 case 19: { 53 x_54_phi = asint((x_40 + asint(1))); 54 /* fallthrough */ 55 { 56 x_54 = x_54_phi; 57 x_41_phi = x_54; 58 { 59 x_41 = x_41_phi; 60 x_40_phi = x_41; 61 x_11_phi = x_8; 62 } 63 continue; 64 } 65 break; 66 } 67 case 23: 68 case 38: { 69 x_54 = x_54_phi; 70 x_41_phi = x_54; 71 { 72 x_41 = x_41_phi; 73 x_40_phi = x_41; 74 x_11_phi = x_8; 75 } 76 continue; 77 break; 78 } 79 default: { 80 x_41_phi = x_40; 81 { 82 x_41 = x_41_phi; 83 x_40_phi = x_41; 84 x_11_phi = x_8; 85 } 86 continue; 87 break; 88 } 89 } 90 x_41_phi = 0; 91 { 92 x_41 = x_41_phi; 93 x_40_phi = x_41; 94 x_11_phi = x_8; 95 } 96 } 97 data[x_40] = 1; 98 x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); 99 return; 100} 101 102struct main_out { 103 float4 x_GLF_color_1; 104}; 105struct tint_symbol { 106 float4 x_GLF_color_1 : SV_Target0; 107}; 108 109main_out main_inner() { 110 main_1(); 111 const main_out tint_symbol_2 = {x_GLF_color}; 112 return tint_symbol_2; 113} 114 115tint_symbol main() { 116 const main_out inner_result = main_inner(); 117 tint_symbol wrapper_result = (tint_symbol)0; 118 wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; 119 return wrapper_result; 120} 121C:\src\tint\test\Shader@0x0000022C8EAC8720(45,11-19): error X3708: continue cannot be used in a switch 122 123