blob: 8f936a001be6895ea107321b82ca435130b9413f [file] [log] [blame]
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_329 = k;
k = (k + 1);
int x_331 = i;
i = (i + 1);
temp[x_329] = data[x_331];
} else {
int x_336 = k;
k = (k + 1);
int x_338 = j;
j = (j + 1);
temp[x_336] = data[x_338];
}
{
}
continue;
}
}
{
while(true) {
if (((i < 10) & (i <= mid))) {
} else {
break;
}
int x_354 = k;
k = (k + 1);
int x_356 = i;
i = (i + 1);
temp[x_354] = data[x_356];
{
}
continue;
}
}
i_1 = f;
{
while(true) {
if ((i_1 <= to)) {
} else {
break;
}
int x_370 = i_1;
data[x_370] = temp[i_1];
{
i_1 = (i_1 + 1);
}
continue;
}
}
}
int tint_f32_to_i32(float value) {
return (((value <= 2147483520.0f)) ? ((((value >= -2147483648.0f)) ? (int(value)) : ((-2147483647 - 1)))) : (2147483647));
}
void main_1() {
int x_85 = 0;
int x_86 = 0;
int x_87 = 0;
int x_88 = 0;
int x_89 = 0;
int x_90 = 0;
int x_91 = 0;
int x_92 = 0;
int x_93 = 0;
int x_94 = 0;
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_102 = i_3;
switch(x_102) {
case 9:
{
int x_132 = i_3;
data[x_132] = -5;
break;
}
case 8:
{
int x_130 = i_3;
data[x_130] = -4;
break;
}
case 7:
{
int x_128 = i_3;
data[x_128] = -3;
break;
}
case 6:
{
int x_126 = i_3;
data[x_126] = -2;
break;
}
case 5:
{
int x_124 = i_3;
data[x_124] = -1;
break;
}
case 4:
{
int x_122 = i_3;
data[x_122] = 0;
break;
}
case 3:
{
int x_120 = i_3;
data[x_120] = 1;
break;
}
case 2:
{
int x_118 = i_3;
data[x_118] = 2;
break;
}
case 1:
{
int x_116 = i_3;
data[x_116] = 3;
break;
}
case 0:
{
int x_114 = i_3;
data[x_114] = 4;
break;
}
default:
{
break;
}
}
i_3 = (i_3 + 1);
{
int x_136 = i_3;
if (!((x_136 < 10))) { break; }
}
continue;
}
}
j_1 = 0;
{
while(true) {
if ((j_1 < 10)) {
} else {
break;
}
int x_145 = j_1;
temp[x_145] = data[j_1];
{
j_1 = (j_1 + 1);
}
continue;
}
}
x_94 = 0;
x_93 = 9;
x_92 = 1;
{
while(true) {
if ((x_92 <= x_93)) {
} else {
break;
}
x_91 = x_94;
{
while(true) {
if ((x_91 < x_93)) {
} else {
break;
}
x_90 = x_91;
int x_170 = x_91;
int x_171 = x_92;
int x_173[10] = data;
data = int[10](0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
data = x_173;
x_89 = ((x_170 + x_171) - 1);
x_88 = min(((x_91 + (2 * x_92)) - 1), x_93);
x_87 = x_90;
x_86 = x_89;
x_85 = x_88;
merge_i1_i1_i1_(x_87, x_86, x_85);
{
x_91 = (x_91 + (2 * x_92));
}
continue;
}
}
{
x_92 = (2 * x_92);
}
continue;
}
}
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_297 = vec3(grey);
x_GLF_color = vec4(x_297[0u], x_297[1u], x_297[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