[mtl] Fix image view kind
@@ -1907,10 +1907,10 @@ impl hal::Device<Backend> for Device {
range == full_range &&
match (kind, image.kind) {
(image::ViewKind::D1, image::Kind::D1(..)) |
- (image::ViewKind::D1Array, image::Kind::D1(..)) |
(image::ViewKind::D2, image::Kind::D2(..)) |
- (image::ViewKind::D2Array, image::Kind::D2(..)) |
(image::ViewKind::D3, image::Kind::D3(..)) => true,
+ (image::ViewKind::D1Array, image::Kind::D1(_, layers)) if layers > 1 => true,
+ (image::ViewKind::D2Array, image::Kind::D2(_, _, layers, _)) if layers > 1 => true,
(_, _) => false, //TODO: expose more choices here?
}
{
