const min = vec3(-1.5);
const max = vec3(1.5);
const min_max = array(min, max);
@fragment
fn fragment() {
// This errors
let v = min_max[0];
}
the error
Shader '' parsing error: no definition in scope for identifier: `min`
┌─ wgsl:19:20
│
19 │ let v = (array(min, max))[0];
│ ^^^ unknown identifier
this may not be a functioning shader, but it shows what i did
the error
this may not be a functioning shader, but it shows what i did