From 6e47b4bb9fdd047093161074f514f6d9989edbba 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 f2f86fbcd..60d8509de 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,