Files
metal2vulkan/crates
Anees Iqbal 1db0b7cd3f Device::raw: a lost VkDevice stays alive until the next raw call
The device's line keeps the generation a root handle's Device::raw lent until
a later raw call lends another, so a lost VkDevice whose handles raw answered
outlives the runtime's own objects made on it. That is kept: DeviceHandles is
Copy and holds references into the generation, which a drop at the recovery
would leave dangling under a live borrow, and a consumer that made its own
objects with the handles (a swapchain, an import) needs the device alive to
destroy them.

Device::raw, DeviceHandles and the runtime README's device-loss section now
say so: the lost VkDevice stays alive until a later raw call of a root
handle, so the consumer destroys what it made with its handles first.

Docs only.

(cherry picked from commit e675a9868f6a52598f86289dc76fe09f938eda77)
2026-11-07 18:59:54 -08:00
..