diff --git a/crates/bevy_render/src/render_resource/uniform_vec.rs b/crates/bevy_render/src/render_resource/uniform_vec.rs index 1a86afc03f1436..4f08478d22ad63 100644 --- a/crates/bevy_render/src/render_resource/uniform_vec.rs +++ b/crates/bevy_render/src/render_resource/uniform_vec.rs @@ -60,7 +60,7 @@ impl UniformVec { /// /// Will return 0 if no buffer has been allocated yet. #[inline] - pub fn capacity(&self) -> usize { + pub fn buffer_capacity(&self) -> usize { self.capacity } @@ -157,8 +157,8 @@ impl DynamicUniformVec { /// Gets the capacity of the underlying buffer, in bytes. #[inline] - pub fn capacity(&self) -> usize { - self.uniform_vec.capacity() + pub fn buffer_capacity(&self) -> usize { + self.uniform_vec.buffer_capacity() } #[inline]