From 2c7d7db9d4535886c85a0287576d77cabee32d0f Mon Sep 17 00:00:00 2001 From: James Liu Date: Tue, 4 Jan 2022 21:05:00 -0500 Subject: [PATCH] Make the buffer_capacity name consistent --- crates/bevy_render/src/render_resource/uniform_vec.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]