blob: ab2a38dbe8cfb66aca3029fed802876dae95c503 [file] [log] [blame]
bug/tint/1081.wgsl:9:25 warning: integral user-defined fragment inputs must have a flat interpolation attribute
fn main([[location(1)]] x: vec3<i32>) -> [[location(2)]] i32 {
^
fn f(x : i32) -> i32 {
if ((x == 10)) {
discard;
}
return x;
}
[[stage(fragment)]]
fn main([[location(1)]] x : vec3<i32>) -> [[location(2)]] i32 {
var y = x.x;
loop {
let r = f(y);
if ((r == 0)) {
break;
}
}
return y;
}