Take the copies into the image of a surface's depth plane from heap_planes' copies

m3-max-5318 found surface_depth.rs reading heap_planes' regions as a list;
they are the copies into the image (a depth plane's rows share no byte, so
the copies back are the same).

(cherry picked from commit c6dd04b48a3871324ec8a03d175a5d5c4393f5f2)
This commit is contained in:
Anees Iqbal committed 2026-11-07 15:23:32 -08:00
1 parent d946043cc5
commit 5e386f2e25
1 file changed
+1 -2
@@ -123,8 +123,7 @@ impl Texture {
.filter(|plane| plane.aspect == unit.aspect)
.collect();
let aspect = unit.aspect.into();
let regions: Vec<_> = regions
.into_iter()
let regions: Vec<_> = (regions.into.into_iter())
.filter(|region| region.image_subresource.aspect_mask == aspect)
.collect();
// The plane's aspect alone: one part, of the planes given.