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

Add a feature for bytemuck and/or zerocopy to Quantity #472

Open
tgross35 opened this issue May 1, 2024 · 0 comments
Open

Add a feature for bytemuck and/or zerocopy to Quantity #472

tgross35 opened this issue May 1, 2024 · 0 comments

Comments

@tgross35
Copy link

tgross35 commented May 1, 2024

I have a use case where I would like to store a Quantity in a struct that gets sent to a GPU shader, which means it needs to be (de)serializable to/from a byte slice. To make cases like this easier, could a bytemuck feature be added? This would add #[cfg_attr(feature = "bytemuck", derive(bytemuck::Zeroable, bytemuck::Pod)] to Quantity.

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

No branches or pull requests

1 participant