Skip to content

Commit

Permalink
indexes -> indices
Browse files Browse the repository at this point in the history
  • Loading branch information
robtfm committed Sep 5, 2023
1 parent 3e3c9f6 commit 22c1e67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/bevy_render/src/render_resource/bind_group_entries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use super::{Sampler, TextureView};
/// render_device.create_bind_group(
/// "my_bind_group",
/// &my_layout,
/// &BindGroupEntries::with_indexes((
/// &BindGroupEntries::with_indices((
/// (2, &my_sampler),
/// (3, my_uniform),
/// )),
Expand Down Expand Up @@ -86,7 +86,7 @@ impl<'b, const N: usize> BindGroupEntries<'b, N> {
}

#[inline]
pub fn with_indexes(indexed_resources: impl IntoIndexedBindingArray<'b, N>) -> Self {
pub fn with_indices(indexed_resources: impl IntoIndexedBindingArray<'b, N>) -> Self {
Self {
entries: indexed_resources
.into_array()
Expand Down Expand Up @@ -208,7 +208,7 @@ impl<'b> DynamicBindGroupEntries<'b> {
self
}

pub fn new_with_indexes<const N: usize>(entries: impl IntoIndexedBindingArray<'b, N>) -> Self {
pub fn new_with_indices<const N: usize>(entries: impl IntoIndexedBindingArray<'b, N>) -> Self {
Self {
entries: entries
.into_array()
Expand All @@ -218,7 +218,7 @@ impl<'b> DynamicBindGroupEntries<'b> {
}
}

pub fn extend_with_indexes<const N: usize>(
pub fn extend_with_indices<const N: usize>(
mut self,
entries: impl IntoIndexedBindingArray<'b, N>,
) -> Self {
Expand Down

0 comments on commit 22c1e67

Please sign in to comment.