Add len to mapped memory

This commit is contained in:
hodasemi 2023-04-11 09:25:45 +02:00
parent b4d6644c48
commit a1b9533693

View file

@ -29,6 +29,10 @@ impl<'a, T: Clone> VkMappedMemory<'a, T> {
self.data.clone_from_slice(data); self.data.clone_from_slice(data);
} }
pub fn len(&self) -> usize {
self.data.len()
}
pub fn iter(&self) -> Iter<'_, T> { pub fn iter(&self) -> Iter<'_, T> {
self.data.iter() self.data.iter()
} }