[rs] make TextureViewArray take a slice of refs; fix texture-arrays example to match.

This commit is contained in:
Devin Hill
2020-11-24 21:09:00 -05:00
parent e47fe431c0
commit 19ec2e524f
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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.