diff --git a/examples/texture-arrays/main.rs b/examples/texture-arrays/main.rs index 0237cb06f..96383c23c 100644 --- a/examples/texture-arrays/main.rs +++ b/examples/texture-arrays/main.rs @@ -218,8 +218,8 @@ impl framework::Example for Example { wgpu::BindGroupEntry { binding: 0, resource: wgpu::BindingResource::TextureViewArray(&[ - red_texture_view, - green_texture_view, + &red_texture_view, + &green_texture_view, ]), }, wgpu::BindGroupEntry { diff --git a/src/lib.rs b/src/lib.rs index 7cfb3b53e..31eb433c7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -895,7 +895,7 @@ pub enum BindingResource<'a> { /// /// Corresponds to [`BindingType::SampledTexture`] and [`BindingType::StorageTexture`] with /// [`BindGroupLayoutEntry::count`] set to Some. - TextureViewArray(&'a [TextureView]), + TextureViewArray(&'a [&'a TextureView]), } /// Operation to perform to the output attachment at the start of a renderpass.