impl attrib::Info {
pub fn check<T>(&self) -> bool {
std::mem::size_of<T>() == self.size
}
}
use when creating buffer slices to ensure one vertex is one struct (though allow user to bypass this functionality at their own risk, for example, if they just want to send u8, but point them at bytemuck first)