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,