diff --git a/nannou/src/wgpu/texture/mod.rs b/nannou/src/wgpu/texture/mod.rs index fc9f21077..e86306550 100644 --- a/nannou/src/wgpu/texture/mod.rs +++ b/nannou/src/wgpu/texture/mod.rs @@ -597,6 +597,12 @@ impl<'a> ViewBuilder<'a> { /// /// If `None`, considered to include the rest of the array layers, but at least 1 in total. pub fn array_layer_count(mut self, array_layer_count: Option) -> Self { + match (self.info.dimension, array_layer_count.map(|n| n.get())) { + (wgpu::TextureViewDimension::D2Array, Some(1)) => { + self.info.dimension = wgpu::TextureViewDimension::D2; + } + _ => (), + } self.info.array_layer_count = array_layer_count; self }