You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Not an entry point, but takes an argument with a location.fnfoo(@location(1)bar:vec3<u32>) -> vec3<u32>{return bar;}
@vertex
fn vs_main(
@location(0) position: vec2<i32>,) -> @builtin(position) vec4<f32> {
var v = foo();// ...}
Naga currently accepts:
However https://gpuweb.github.io/gpuweb/wgsl/#attribute-location says: "Must only be applied to an entry point function parameter, entry point return type, or member of a structure type."
The text was updated successfully, but these errors were encountered: