From 5f57fad5c4e6cf6ff2cc87165a68081eeab0d57b Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 13:40:09 -0800 Subject: [PATCH] Build the one-plane lane test's descriptors by assignment: TextureDescriptor is non-exhaustive outside its crate (cherry picked from commit 7d437bdd074340043761bfb9e1109b505e457e4b) --- .../src/runtime_lane/heap_one_plane.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-validation/src/runtime_lane/heap_one_plane.rs b/crates/metal2vulkan-validation/src/runtime_lane/heap_one_plane.rs index b07369200..60d621403 100644 --- a/crates/metal2vulkan-validation/src/runtime_lane/heap_one_plane.rs +++ b/crates/metal2vulkan-validation/src/runtime_lane/heap_one_plane.rs @@ -21,9 +21,11 @@ fn a_heap_s_one_plane_ycbcr_texture_metal_lays_no_one_way_is_announced() { let heap = device .new_heap(&HeapDescriptor::new(HeapType::Placement, 64 << 10, options)) .unwrap(); - let texture = |width, height, mipmapped| TextureDescriptor { - resource_options: options, - ..TextureDescriptor::texture_2d(PixelFormat::YCBCR84221P, width, height, mipmapped) + let texture = |width, height, mipmapped| { + let pf = PixelFormat::YCBCR84221P; + let mut descriptor = TextureDescriptor::texture_2d(pf, width, height, mipmapped); + descriptor.resource_options = options; + descriptor }; heap.new_texture_at_offset(&texture(16, 16, false), 0) .unwrap();