| SKIP: FAILED |
| |
| #version 310 es |
| precision highp float; |
| precision highp int; |
| |
| |
| struct buf0 { |
| vec2 injectionSwitch; |
| }; |
| |
| struct main_out { |
| vec4 x_GLF_color_1; |
| }; |
| |
| int data[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); |
| int temp[10] = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0); |
| layout(binding = 0, std140) |
| uniform tint_symbol_4_1_ubo { |
| buf0 tint_symbol_3; |
| } v; |
| vec4 tint_symbol = vec4(0.0f); |
| vec4 x_GLF_color = vec4(0.0f); |
| bool continue_execution = true; |
| layout(location = 0) out vec4 tint_symbol_1_loc0_Output; |
| void merge_i1_i1_i1_(inout int f, inout int mid, inout int to) { |
| int k = 0; |
| int i = 0; |
| int j = 0; |
| int i_1 = 0; |
| k = f; |
| i = f; |
| j = (mid + 1); |
| { |
| while(true) { |
| if (((i <= mid) & (j <= to))) { |
| } else { |
| break; |
| } |
| if ((data[i] < data[j])) { |
| int x_277 = k; |
| k = (k + 1); |
| int x_279 = i; |
| i = (i + 1); |
| temp[x_277] = data[x_279]; |
| } else { |
| int x_284 = k; |
| k = (k + 1); |
| int x_286 = j; |
| j = (j + 1); |
| temp[x_284] = data[x_286]; |
| } |
| { |
| } |
| continue; |
| } |
| } |
| { |
| while(true) { |
| if (((i < 10) & (i <= mid))) { |
| } else { |
| break; |
| } |
| int x_302 = k; |
| k = (k + 1); |
| int x_304 = i; |
| i = (i + 1); |
| temp[x_302] = data[x_304]; |
| { |
| } |
| continue; |
| } |
| } |
| i_1 = f; |
| { |
| while(true) { |
| if ((i_1 <= to)) { |
| } else { |
| break; |
| } |
| int x_318 = i_1; |
| data[x_318] = temp[i_1]; |
| { |
| i_1 = (i_1 + 1); |
| } |
| continue; |
| } |
| } |
| } |
| void mergeSort_() { |
| int low = 0; |
| int high = 0; |
| int m = 0; |
| int i_2 = 0; |
| int f_1 = 0; |
| int mid_1 = 0; |
| int to_1 = 0; |
| int param = 0; |
| int param_1 = 0; |
| int param_2 = 0; |
| low = 0; |
| high = 9; |
| m = 1; |
| { |
| while(true) { |
| if ((m <= high)) { |
| } else { |
| break; |
| } |
| i_2 = low; |
| { |
| while(true) { |
| if ((i_2 < high)) { |
| } else { |
| break; |
| } |
| f_1 = i_2; |
| mid_1 = ((i_2 + m) - 1); |
| to_1 = min(((i_2 + (2 * m)) - 1), high); |
| param = f_1; |
| param_1 = mid_1; |
| param_2 = to_1; |
| merge_i1_i1_i1_(param, param_1, param_2); |
| { |
| i_2 = (i_2 + (2 * m)); |
| } |
| continue; |
| } |
| } |
| { |
| m = (2 * m); |
| } |
| continue; |
| } |
| } |
| } |
| int tint_f32_to_i32(float value) { |
| return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647)); |
| } |
| void main_1() { |
| int i_3 = 0; |
| int j_1 = 0; |
| float grey = 0.0f; |
| i_3 = tint_f32_to_i32(v.tint_symbol_3.injectionSwitch.x); |
| { |
| while(true) { |
| int x_90 = i_3; |
| switch(x_90) { |
| case 9: |
| { |
| int x_120 = i_3; |
| data[x_120] = -5; |
| break; |
| } |
| case 8: |
| { |
| int x_118 = i_3; |
| data[x_118] = -4; |
| break; |
| } |
| case 7: |
| { |
| int x_116 = i_3; |
| data[x_116] = -3; |
| break; |
| } |
| case 6: |
| { |
| int x_114 = i_3; |
| data[x_114] = -2; |
| break; |
| } |
| case 5: |
| { |
| int x_112 = i_3; |
| data[x_112] = -1; |
| break; |
| } |
| case 4: |
| { |
| int x_110 = i_3; |
| data[x_110] = 0; |
| break; |
| } |
| case 3: |
| { |
| int x_108 = i_3; |
| data[x_108] = 1; |
| break; |
| } |
| case 2: |
| { |
| int x_106 = i_3; |
| data[x_106] = 2; |
| break; |
| } |
| case 1: |
| { |
| int x_104 = i_3; |
| data[x_104] = 3; |
| break; |
| } |
| case 0: |
| { |
| int x_102 = i_3; |
| data[x_102] = 4; |
| break; |
| } |
| default: |
| { |
| break; |
| } |
| } |
| i_3 = (i_3 + 1); |
| { |
| int x_124 = i_3; |
| if (!((x_124 < 10))) { break; } |
| } |
| continue; |
| } |
| } |
| j_1 = 0; |
| { |
| while(true) { |
| if ((j_1 < 10)) { |
| } else { |
| break; |
| } |
| int x_133 = j_1; |
| temp[x_133] = data[j_1]; |
| { |
| j_1 = (j_1 + 1); |
| } |
| continue; |
| } |
| } |
| mergeSort_(); |
| if ((tint_f32_to_i32(tint_symbol.y) < 30)) { |
| grey = (0.5f + (float(data[0]) / 10.0f)); |
| } else { |
| if ((tint_f32_to_i32(tint_symbol.y) < 60)) { |
| grey = (0.5f + (float(data[1]) / 10.0f)); |
| } else { |
| if ((tint_f32_to_i32(tint_symbol.y) < 90)) { |
| grey = (0.5f + (float(data[2]) / 10.0f)); |
| } else { |
| if ((tint_f32_to_i32(tint_symbol.y) < 120)) { |
| grey = (0.5f + (float(data[3]) / 10.0f)); |
| } else { |
| if ((tint_f32_to_i32(tint_symbol.y) < 150)) { |
| continue_execution = false; |
| } else { |
| if ((tint_f32_to_i32(tint_symbol.y) < 180)) { |
| grey = (0.5f + (float(data[5]) / 10.0f)); |
| } else { |
| if ((tint_f32_to_i32(tint_symbol.y) < 210)) { |
| grey = (0.5f + (float(data[6]) / 10.0f)); |
| } else { |
| if ((tint_f32_to_i32(tint_symbol.y) < 240)) { |
| grey = (0.5f + (float(data[7]) / 10.0f)); |
| } else { |
| if ((tint_f32_to_i32(tint_symbol.y) < 270)) { |
| grey = (0.5f + (float(data[8]) / 10.0f)); |
| } else { |
| continue_execution = false; |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |
| vec3 x_245 = vec3(grey); |
| x_GLF_color = vec4(x_245[0u], x_245[1u], x_245[2u], 1.0f); |
| } |
| main_out tint_symbol_1_inner(vec4 tint_symbol_2) { |
| tint_symbol = tint_symbol_2; |
| main_1(); |
| main_out v_1 = main_out(x_GLF_color); |
| if (!(continue_execution)) { |
| discard; |
| } |
| return v_1; |
| } |
| void main() { |
| tint_symbol_1_loc0_Output = tint_symbol_1_inner(gl_FragCoord).x_GLF_color_1; |
| } |
| error: Error parsing GLSL shader: |
| ERROR: 0:34: '&' : wrong operand types: no operation '&' exists that takes a left-hand operand of type ' temp bool' and a right operand of type ' temp bool' (or there is no acceptable conversion) |
| ERROR: 0:34: '' : compilation terminated |
| ERROR: 2 compilation errors. No code generated. |
| |
| |
| |
| |
| tint executable returned error: exit status 1 |