blob: 2d61612d19108dcda1b7094f646dfc86ddd24aa9 [file] [log] [blame]
SKIP: FAILED
vk-gl-cts/spirv_assembly/instruction/terminate_invocation/terminate_loop/1.wgsl:37:70 warning: integral user-defined fragment inputs must have a flat interpolation attribute
fn main([[builtin(position)]] x_2_param : vec4<f32>, [[location(0)]] x_3_param : i32) -> main_out {
^^^^^^^^^
#version 310 es
precision mediump float;
vec4 x_2 = vec4(0.0f, 0.0f, 0.0f, 0.0f);
int x_3 = 0;
int x_4 = 0;
void main_1() {
int x_33_phi = 0;
vec4 x_18 = x_2;
int x_28 = x_3;
x_33_phi = 0;
if (((((int(x_18.x) & 1) + (int(x_18.y) & 1)) + x_28) == int(x_18.z))) {
while (true) {
int x_34 = 0;
int x_33 = x_33_phi;
if ((uint(x_33) < uint(10))) {
} else {
break;
}
{
x_34 = (x_33 + 1);
x_33_phi = x_34;
}
}
}
x_4 = 1;
return;
}
struct main_out {
int x_4_1;
};
struct tint_symbol_2 {
int x_3_param;
vec4 x_2_param;
};
struct tint_symbol_3 {
int x_4_1;
};
main_out tint_symbol_inner(vec4 x_2_param, int x_3_param) {
x_2 = x_2_param;
x_3 = x_3_param;
main_1();
main_out tint_symbol_4 = main_out(x_4);
return tint_symbol_4;
}
tint_symbol_3 tint_symbol(tint_symbol_2 tint_symbol_1) {
main_out inner_result = tint_symbol_inner(tint_symbol_1.x_2_param, tint_symbol_1.x_3_param);
tint_symbol_3 wrapper_result = tint_symbol_3(0);
wrapper_result.x_4_1 = inner_result.x_4_1;
return wrapper_result;
}
in int x_3_param;
out int x_4_1;
void main() {
tint_symbol_2 inputs;
inputs.x_3_param = x_3_param;
inputs.x_2_param = gl_FragCoord;
tint_symbol_3 outputs;
outputs = tint_symbol(inputs);
x_4_1 = outputs.x_4_1;
}
Error parsing GLSL shader:
ERROR: 0:56: 'int' : must be qualified as flat in
ERROR: 0:56: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.