Add len to mapped memory
This commit is contained in:
parent
b4d6644c48
commit
a1b9533693
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue