2022-01-06 15:31:21 +00:00
|
|
|
SKIP: FAILED
|
|
|
|
|
|
|
|
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
|
|
|
|
struct doesNotMatter {
|
|
|
|
int global_seed;
|
|
|
|
int data[];
|
|
|
|
};
|
2022-01-26 16:48:55 +00:00
|
|
|
|
2022-01-06 15:31:21 +00:00
|
|
|
struct buf1 {
|
|
|
|
vec2 injectionSwitch;
|
|
|
|
};
|
|
|
|
|
|
|
|
uvec3 tint_symbol = uvec3(0u, 0u, 0u);
|
2022-02-04 23:09:23 +00:00
|
|
|
layout(binding = 0, std430) buffer doesNotMatter_1 {
|
2022-01-06 15:31:21 +00:00
|
|
|
int global_seed;
|
|
|
|
int data[];
|
|
|
|
} x_7;
|
2022-01-25 20:06:05 +00:00
|
|
|
layout(binding = 1) uniform buf1_1 {
|
2022-01-06 15:31:21 +00:00
|
|
|
vec2 injectionSwitch;
|
|
|
|
} x_10;
|
|
|
|
|
|
|
|
void main_1() {
|
|
|
|
int lid = 0;
|
|
|
|
int val = 0;
|
|
|
|
int i = 0;
|
|
|
|
uint x_40 = tint_symbol.x;
|
|
|
|
lid = int(x_40);
|
|
|
|
int x_43 = x_7.global_seed;
|
|
|
|
val = x_43;
|
|
|
|
i = 0;
|
|
|
|
{
|
|
|
|
for(; (i < 2); i = (i + 1)) {
|
|
|
|
if ((lid > 0)) {
|
|
|
|
int x_58 = x_7.data[(lid - 1)];
|
|
|
|
val = (val + x_58);
|
|
|
|
float x_62 = x_10.injectionSwitch.x;
|
|
|
|
if ((x_62 > 100.0f)) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2022-02-05 00:15:34 +00:00
|
|
|
barrier();
|
2022-01-06 15:31:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if ((lid == 0)) {
|
|
|
|
x_7.data[0] = 42;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-01-28 22:36:58 +00:00
|
|
|
void tint_symbol_1(uvec3 tint_symbol_2) {
|
2022-01-06 15:31:21 +00:00
|
|
|
tint_symbol = tint_symbol_2;
|
|
|
|
main_1();
|
|
|
|
}
|
|
|
|
|
|
|
|
layout(local_size_x = 16, local_size_y = 1, local_size_z = 1) in;
|
|
|
|
void main() {
|
2022-01-28 22:36:58 +00:00
|
|
|
tint_symbol_1(gl_LocalInvocationID);
|
|
|
|
return;
|
2022-01-06 15:31:21 +00:00
|
|
|
}
|
|
|
|
Error parsing GLSL shader:
|
|
|
|
ERROR: 0:6: '' : array size required
|
|
|
|
ERROR: 0:7: '' : compilation terminated
|
|
|
|
ERROR: 2 compilation errors. No code generated.
|
|
|
|
|
|
|
|
|
|
|
|
|