gfx-rs / naga

Universal shader translation in Rust

Home Page:https://github.com/gfx-rs/wgpu/tree/trunk/naga

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[wgsl-in] Redefining parameter is incorreclty allowed

Wumpf opened this issue · comments

The following snippet redefines an incoming parameter which should not compile (and Tint will complain about it!):

fn fun(t: f32) -> f32 {
    let t = t + 1.0;
    return t;
}