Currently, most projects run cargo clippy on the CPU target and hope that it covers most gpu-specific code as well. But that will ignore all #[gpu-only] functions and entry points, not checking them at all. We should investigate a way we can run clippy with spirv targets. This may be better suited for cargo gpu, since cargo gpu clippy would work quite nicely.
Currently, most projects run
cargo clippyon the CPU target and hope that it covers most gpu-specific code as well. But that will ignore all#[gpu-only]functions and entry points, not checking them at all. We should investigate a way we can run clippy with spirv targets. This may be better suited forcargo gpu, sincecargo gpu clippywould work quite nicely.