wgpu icon indicating copy to clipboard operation
wgpu copied to clipboard

Implement `Clone` for `ShaderModuleDescriptor`

Open daxpedda opened this issue 3 years ago • 0 comments

Checklist

  • [x] Run cargo clippy.
  • [x] Run RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown if 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.

daxpedda avatar Jul 21 '22 10:07 daxpedda