From 19ec2e524f8ee48920c26f437d3ef6d31dd691a6 Mon Sep 17 00:00:00 2001 From: Devin Hill <98devin@gmail.com> Date: Tue, 24 Nov 2020 21:09:00 -0500 Subject: [PATCH] [rs] make TextureViewArray take a slice of refs; fix texture-arrays example to match. --- wgpu/examples/texture-arrays/main.rs | 4 ++-- wgpu/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wgpu/examples/texture-arrays/main.rs b/wgpu/examples/texture-arrays/main.rs index 0237cb06f5..96383c23c8 100644 --- a/wgpu/examples/texture-arrays/main.rs +++ b/wgpu/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/wgpu/src/lib.rs b/wgpu/src/lib.rs index 7cfb3b53ee..31eb433c77 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/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.