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.
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 abytemuck
feature be added? This would add#[cfg_attr(feature = "bytemuck", derive(bytemuck::Zeroable, bytemuck::Pod)]
toQuantity
.