You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using nonempty crate for managing vulkan buffers. They can't be zero sized, so nonempty is quite useful. I'm using NonEmpty's capacity as a size of new buffer. I currently just use NonZeroU64::new(nonempty.capacity() as usize).unwrap(). It would be convenient if it just returned NonZeroUSize itself.