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

make iced_wgpu::mesh::Indexed use Arc<[_]> instead of Vec<_> #2703

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edwloef
Copy link
Contributor

@edwloef edwloef commented Dec 19, 2024

My use case for this is that I have a very large mesh that is very expensive to clone, whose vertices and indices never
change, that I would like to be able to move, scale and clip cheaply within a custom widget.

This should have negiligible performance impact, since Arc::from<Vec<_>> doesn't clone the Vec<_>, and only allocates four words for a ref counted slice.

@edwloef edwloef force-pushed the wgpu-cache-batch-getter branch from e5a8ac6 to 06249f5 Compare December 24, 2024 08:24
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