Files
metal2vulkan/crates
Anees Iqbal 339f818983 rt: a borrow is an uncounted Arc of the kept handle's pointer, never a bitwise copy; the kept lists are boxed per command buffer
A Lent was a ptr::read of the handle, which the readback rule (every raw read is a read of
GPU-written memory, in readback.rs) rightly refuses outside readback.rs. A handle now makes its
uncounted twin itself (Handle::uncounted: Arc::from_raw of its own Arc's pointer, in a
ManuallyDrop), so Handle is a safe trait and the one unsafe step is the call, whose contract is
the borrow's.

The queue keeps its spare lists unboxed (clippy's vec_box), and a command buffer boxes the one
it takes outside the queue's lock: one allocation per command buffer, where each of the five
lists before E2 was a new Vec per command buffer.
2026-11-18 11:51:55 -08:00
..