Skip to content

Commit

Permalink
Don't create array layer trackers for 3D textures.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicRU authored and kvark committed Jan 3, 2022
1 parent 55cbbde commit 43f09fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-core/src/device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 43f09fd

Please sign in to comment.