What: a sampler state's device is a LineDevice the state's own carry links
(LineDevice::unkept, link_unkept). The recovery takes the generation's live
sampler states (Carry::sampler_state, Taken::samplers) and, first after the
handles, carries each (SamplerState::carry) where both generations compile
alike: its handle linked to the new generation's under its cache's lock, the
VkSamplers it kept forgotten, the state kept in the new generation's map of
live states (an equal request gets it) and placed in its heap sets and
sampler tables, then kept there for a later recovery. Its placement on the
lost generation is taken out at that generation's rest (LostPlacement).
SamplerState::vk_sampler takes the generation the bind writes for and makes
the sampler there, cached for the state's latest generation alone; for any
other generation it answers None, and the heap set, slot and argument-buffer
writes take the neutral sampler. The recovery's notice counts the states
carried (and any left, where the generations compile otherwise).
Docs: MadeBeforeRecovery, the device-recovered cost (degradation.rs and
API.md), the runtime README, device/carry.rs and sampler.rs. As main asked,
Device::recover_for_test's doc and line.rs's module doc now point at
device/carry.rs for the kinds carried instead of a stale list.
Why: a sampler state kept its lost generation, so every bind of it after a
recovery was refused (MadeBeforeRecovery) where Metal's goes on; and the
argument buffers' listing of live states is line-wide, so a draw or
dispatch of the new VkDevice made the listed state's VkSampler on the lost
VkDevice and wrote it into a descriptor set of the new one, a handle of
another device, which Vulkan does not allow.
Verified: the lane that follows runs the test before and after on
lavapipe; REFUSALS.md regenerated (no change).