Conversation
1d1b5af to
4d5aa6d
Compare
|
Since #128 also needs to update spirv-builder, I'll wait for that one before merging this. |
|
Would it be possible to make the same thing usable through programmatic API? For example, when |
|
Both |
|
I'd appreciate some simple way through Here is how I check for clippy/Miri/rustdoc to have a placeholder shader. I do that because I know the code wouldn't run and I do not inspect it at compile time in It'd be nice if a similar thing worked internally, but maybe |
cargo gpu clippyallows you to run clippy with a spirv target, which can check code hidden by#[cfg(target_arch = "spirv")], thatcargo clippy --all-targetsdoes not.Also adds
cargo gpu check, not sure how useful it'll be.WON'T add
cargo gpu fmtsincecargo fmtis fully target independent. We could use the fmt of the rust-gpu rust toolchain, but at worst that'll get you different formatting from whatever stable toolchain you're using.enabled by
crate-type = ["dylib"]on shader crates rust-gpu#477