Skip to content

Commit

Permalink
Make the buffer_capacity name consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
james7132 committed Jan 5, 2022
1 parent 8f9951e commit 2c7d7db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_render/src/render_resource/uniform_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<T: AsStd140> UniformVec<T> {
///
/// Will return 0 if no buffer has been allocated yet.
#[inline]
pub fn capacity(&self) -> usize {
pub fn buffer_capacity(&self) -> usize {
self.capacity
}

Expand Down Expand Up @@ -157,8 +157,8 @@ impl<T: AsStd140> DynamicUniformVec<T> {

/// 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]
Expand Down

0 comments on commit 2c7d7db

Please sign in to comment.