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

Pass InstanceDescriptor by reference and make it clonable #6849

Merged
merged 8 commits into from
Jan 6, 2025

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jan 3, 2025

Description
We pass pretty much all other descriptor by reference, instance creation is an odd exception for no reason.
Also, I managed to run into a situation where it was rather annoying that it's not clonable.
Fixing both here

Testing
it compiles!

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@Wumpf Wumpf requested a review from a team as a code owner January 3, 2025 10:03
@Wumpf Wumpf force-pushed the clonable-instance-desc branch from 5f8a0fd to 87853b1 Compare January 3, 2025 10:05
@Wumpf Wumpf requested a review from crowlKats as a code owner January 3, 2025 10:07
CHANGELOG.md Outdated Show resolved Hide resolved
wgpu/src/util/init.rs Outdated Show resolved Hide resolved
@cwfitzgerald cwfitzgerald self-assigned this Jan 3, 2025
@Wumpf Wumpf requested a review from cwfitzgerald January 5, 2025 22:31
@cwfitzgerald cwfitzgerald merged commit fb210ab into gfx-rs:trunk Jan 6, 2025
27 checks passed
@Wumpf Wumpf deleted the clonable-instance-desc branch January 7, 2025 10:10
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