1SKIP: FAILED 2 3static float4 gl_FragCoord = float4(0.0f, 0.0f, 0.0f, 0.0f); 4static float array0[3] = (float[3])0; 5static float array1[3] = (float[3])0; 6cbuffer cbuffer_x_11 : register(b0, space0) { 7 uint4 x_11[1]; 8}; 9static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); 10 11void main_1() { 12 int q = 0; 13 int i = 0; 14 int c = 0; 15 q = 0; 16 const float x_55 = gl_FragCoord.x; 17 i = (int(x_55) % 3); 18 c = 0; 19 { 20 [loop] for(; (c < 3); c = (c + 1)) { 21 array0[c] = 0.0f; 22 array1[c] = 0.0f; 23 const float x_65 = asfloat(x_11[0].x); 24 switch((int(x_65) + q)) { 25 case 51: { 26 [loop] while (true) { 27 if (true) { 28 } else { 29 break; 30 } 31 } 32 array0[c] = 1.0f; 33 /* fallthrough */ 34 { 35 array1[0] = 1.0f; 36 array1[c] = 1.0f; 37 } 38 break; 39 } 40 case 61: { 41 array1[0] = 1.0f; 42 array1[c] = 1.0f; 43 break; 44 } 45 case 0: { 46 q = 61; 47 break; 48 } 49 default: { 50 break; 51 } 52 } 53 } 54 } 55 const float x_79 = array1[i]; 56 const float x_81 = array0[i]; 57 const float x_83 = array0[i]; 58 x_GLF_color = float4(x_79, x_81, x_83, 1.0f); 59 return; 60} 61 62struct main_out { 63 float4 x_GLF_color_1; 64}; 65struct tint_symbol_1 { 66 float4 gl_FragCoord_param : SV_Position; 67}; 68struct tint_symbol_2 { 69 float4 x_GLF_color_1 : SV_Target0; 70}; 71 72main_out main_inner(float4 gl_FragCoord_param) { 73 gl_FragCoord = gl_FragCoord_param; 74 main_1(); 75 const main_out tint_symbol_4 = {x_GLF_color}; 76 return tint_symbol_4; 77} 78 79tint_symbol_2 main(tint_symbol_1 tint_symbol) { 80 const main_out inner_result = main_inner(tint_symbol.gl_FragCoord_param); 81 tint_symbol_2 wrapper_result = (tint_symbol_2)0; 82 wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; 83 return wrapper_result; 84} 85C:\src\tint\test\Shader@0x000001BF7F9DDFF0(15,8-20): warning X3556: integer modulus may be much slower, try using uints if possible. 86C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anything, consider removing [loop] 87C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop writes no values 88C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anything, consider removing [loop] 89C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop writes no values 90C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anything, consider removing [loop] 91C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop writes no values 92C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anything, consider removing [loop] 93C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop writes no values 94C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anything, consider removing [loop] 95C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop writes no values 96C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3557: loop doesn't seem to do anything, consider removing [loop] 97C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,18-29): warning X3551: infinite loop detected - loop writes no values 98C:\src\tint\test\Shader@0x000001BF7F9DDFF0(24,25-28): error X3696: infinite loop detected - loop never exits 99 100