mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
make TextureViewArray take a slice of refs; fix texture-arrays example to match.
This commit is contained in:
1 parent
fd1378b826
commit
337612a49f
2 files changed
+3
-3
No files matched your search
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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