2021-11-16 15:15:36 +00:00
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
layout(location = 1) flat in ivec3 x_1;
|
|
|
|
layout(location = 2) out int value;
|
2021-11-16 15:15:36 +00:00
|
|
|
int f(int x) {
|
|
|
|
if ((x == 10)) {
|
|
|
|
discard;
|
|
|
|
}
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
int tint_symbol(ivec3 x) {
|
2021-11-16 15:15:36 +00:00
|
|
|
int y = x.x;
|
|
|
|
while (true) {
|
|
|
|
int r = f(y);
|
|
|
|
if ((r == 0)) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return y;
|
|
|
|
}
|
|
|
|
|
|
|
|
void main() {
|
2022-01-28 22:36:58 +00:00
|
|
|
int inner_result = tint_symbol(x_1);
|
|
|
|
value = inner_result;
|
|
|
|
return;
|
2021-11-16 15:15:36 +00:00
|
|
|
}
|