From 43f09fdb21dbca94036fd68d486052e933520ab6 Mon Sep 17 00:00:00 2001 From: Alex S Date: Sun, 2 Jan 2022 22:35:17 +0300 Subject: [PATCH] Don't create array layer trackers for 3D textures. --- wgpu-core/src/device/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index 0e7f3b4dbe..2045f22812 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -618,7 +618,7 @@ impl Device { format_features, initialization_status: TextureInitTracker::new( desc.mip_level_count, - desc.size.depth_or_array_layers, + desc.array_layer_count(), ), full_range: TextureSelector { levels: 0..desc.mip_level_count,