hal/dx12: fix cube array views

This commit is contained in:
Dzmitry Malyshau 2021-10-12 12:10:26 -04:00 committed by Dzmitry Malyshau
parent 2c9a7dfc2a
commit c5244c9ffc

View File

@ -122,7 +122,11 @@ impl ViewDescriptor {
MostDetailedMip: self.mip_level_base,
MipLevels: self.mip_level_count,
First2DArrayFace: self.array_layer_base,
NumCubes: self.array_layer_count / 6,
NumCubes: if self.array_layer_count == !0 {
!0
} else {
self.array_layer_count / 6
},
ResourceMinLODClamp: 0.0,
}
}