From 1fb60c5dcbea77bf36934f243bb0832c3e5a116e Mon Sep 17 00:00:00 2001 From: Poly Date: Wed, 3 Feb 2021 22:26:53 +0100 Subject: [PATCH] Fix TextureViewDimension for image wgpu validation helped to find this long standing type error --- wgpu/src/image.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/src/image.rs b/wgpu/src/image.rs index b44d621b..32843828 100644 --- a/wgpu/src/image.rs +++ b/wgpu/src/image.rs @@ -120,7 +120,7 @@ impl Pipeline { sample_type: wgpu::TextureSampleType::Float { filterable: false, }, - view_dimension: wgpu::TextureViewDimension::D2, + view_dimension: wgpu::TextureViewDimension::D2Array, multisampled: false, }, count: None,