Files
metal2vulkan/crates
Anees Iqbal 4ee6172a10 Test that a binary archive and a dynamic library go on past a recovery
What: a device test (device_recovery_states.rs). Before a recovery it makes a binary archive
with one compute add and a labelled dynamic library: a metallib of file type 2, one exported
function, built with devtools' metallib writer. After the recovery the archive must take
another add and be listed by a creation that makes its state on the new generation. The
dynamic library must keep its label, and the lost `VkDevice` must go while both live.

Why: both hold only compile-layer artifacts, but each keeps a handle of the generation it was
made on. So an archive's adds and every creation that lists it are refused after a recovery
(`binary_archive::check` compares devices), and each keeps the lost `VkDevice` alive. A
pipeline state's carry remakes it on the new generation, which needs the archives it may list
to serve there.

Verified: expected to fail at this commit (the add after the recovery is refused); the fix
follows.
2026-11-12 16:35:28 -08:00
..