Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Clone for ShaderModuleDescriptor #3086

Merged

Conversation

daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Oct 8, 2022

Checklist

  • Run cargo clippy.
  • 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
gfx-rs/naga#2013.
Replaces #2902.

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.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a changelog entry, then good to go

@daxpedda
Copy link
Contributor Author

daxpedda commented Oct 9, 2022

@cwfitzgerald done.

@cwfitzgerald cwfitzgerald merged commit 318cb7a into gfx-rs:master Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants