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

This commit is contained in:
Alex S 2022-01-02 22:35:17 +03:00 committed by Dzmitry Malyshau
parent 55cbbdea62
commit 43f09fdb21

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,