From 22c1e675306214b3a98619b74e5d66bcfd508756 Mon Sep 17 00:00:00 2001 From: robtfm <50659922+robtfm@users.noreply.github.com> Date: Tue, 5 Sep 2023 08:48:32 +0100 Subject: [PATCH] indexes -> indices --- .../bevy_render/src/render_resource/bind_group_entries.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_render/src/render_resource/bind_group_entries.rs b/crates/bevy_render/src/render_resource/bind_group_entries.rs index 5bec21a0935cb..b6c17df979e16 100644 --- a/crates/bevy_render/src/render_resource/bind_group_entries.rs +++ b/crates/bevy_render/src/render_resource/bind_group_entries.rs @@ -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), /// )), @@ -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() @@ -208,7 +208,7 @@ impl<'b> DynamicBindGroupEntries<'b> { self } - pub fn new_with_indexes(entries: impl IntoIndexedBindingArray<'b, N>) -> Self { + pub fn new_with_indices(entries: impl IntoIndexedBindingArray<'b, N>) -> Self { Self { entries: entries .into_array() @@ -218,7 +218,7 @@ impl<'b> DynamicBindGroupEntries<'b> { } } - pub fn extend_with_indexes( + pub fn extend_with_indices( mut self, entries: impl IntoIndexedBindingArray<'b, N>, ) -> Self {