gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.45k stars 910 forks source link

wgpu supported @builtin(frag_coord) or not? #6455

Open olejaaaaaaaa opened 4 hours ago

olejaaaaaaaa commented 4 hours ago

I'm using wgpu 22.0 and web compiler. I need to compile my shader from Shadertoy, but I can't use the built-in int(frag_coord) :(

ErichDonGubler commented 4 hours ago

@olejaaaaaaaa: Please provide an example of what's not working; I'm guessing you'll want to provide a sample shader file and the invocation of Naga CLI (i.e., cargo run -p naga --all-features -- …) you're trying to use it with?