wgpu
wgpu copied to clipboard
Implement `Clone` for `ShaderModuleDescriptor`
Checklist
- [x] Run
cargo clippy. - [x] Run
RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknownif applicable. - [ ] Add change to CHANGELOG.md. See simple instructions inside file.
Connections Depends on https://github.com/gfx-rs/naga/pull/2013.
Description
I am playing around with pre-compiled shaders and encountered an issue with storing them in statics, ShaderSource::Naga needs to own it, so cloning solves the problem.
Testing None.