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

Wgpu resources are no longer wrapped in Arc (since they are now Clone) #5612

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

Wumpf
Copy link
Collaborator

@Wumpf Wumpf commented Jan 16, 2025

Wgpu 24 makes most of its interface Clone. Which means we no longer have to wrap everything in Arc! \o/

@Wumpf Wumpf requested a review from lucasmerlin as a code owner January 16, 2025 16:16
@Wumpf Wumpf mentioned this pull request Jan 16, 2025
@@ -402,6 +402,7 @@ impl<'a, State> Harness<'a, State> {
///
/// # Errors
/// Returns an error if the rendering fails.
#[cfg(any(feature = "wgpu", feature = "snapshot"))]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

bacon was unhappy before. understandable!

Copy link

Preview available at https://egui-pr-preview.github.io/pr/5612-reduce-wgpu-arc
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

crates/egui_kittest/src/builder.rs Outdated Show resolved Hide resolved
@Wumpf Wumpf merged commit 30e66e4 into master Jan 20, 2025
46 checks passed
@Wumpf Wumpf deleted the reduce-wgpu-arc branch January 20, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants