Don't create array layer trackers for 3D textures.

This commit is contained in:
Alex S authored and Dzmitry Malyshau committed 2022-01-10 10:44:51 -05:00
1 parent ecbf7e9e2a
commit 4f5d0d8fe5
1 file changed
+1 -1
+1 -1
View File
@@ -618,7 +618,7 @@ impl<A: HalApi> Device<A> {
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,