From 8698bf72bf390bc5c3cd9623e61bd67a35e6187e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 17 Nov 2026 07:43:44 -0800 Subject: [PATCH] harness: the new runtime reports every gauge, so @drop covers every kind of resource The new runtime's Gauges gained command buffers and events (and holds textures, samplers, pipelines and descriptor slots); the harness named only buffers and blocks. It now prints them all, so the matrix's @drop and @100/@200 checks cover each kind as the runtime grows. --- crates/metal2vulkan-harness/src/rt.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-harness/src/rt.rs b/crates/metal2vulkan-harness/src/rt.rs index fa3333f5a..57bedf6a3 100644 --- a/crates/metal2vulkan-harness/src/rt.rs +++ b/crates/metal2vulkan-harness/src/rt.rs @@ -248,9 +248,19 @@ impl crate::Device for Device { } } -/// The gauges the harness reports, by name. +/// The gauges the harness reports, by name: all of them, so the matrix's `@drop` check covers +/// every kind of resource. fn named(gauges: rt::Gauges) -> Vec<(&'static str, u64)> { - vec![("buffers", gauges.buffers), ("blocks", gauges.blocks)] + vec![ + ("buffers", gauges.buffers), + ("textures", gauges.textures), + ("samplers", gauges.samplers), + ("pipelines", gauges.pipelines), + ("command_buffers", gauges.command_buffers), + ("descriptor_slots", gauges.descriptor_slots), + ("blocks", gauges.blocks), + ("events", gauges.events), + ] } impl crate::Buffer for Buffer {