mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rs] make TextureViewArray take a slice of refs; fix texture-arrays example to match.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user