Skip to main content

Module slot_rewrites

Module slot_rewrites 

Source
Expand description

Propagates a streamed texture-pool slot swap across per-frame descriptor copies without stalling the device. Backends that bake the texture pool into per-frame-in-flight descriptor sets (Vulkan) or heap regions (DirectX) cannot legally rewrite a descriptor while a command buffer referencing it is pending; instead a swap queues its slot here, and each draw_frame applies the queued slots to the copy owned by the frame slot it just fence-waited (which is therefore not referenced by any pending work). An entry retires once every frame-in-flight copy has been rewritten.

Structsยง

SlotRewriteQueue
Defers draw-slot rewrites until every in-flight frame has retired.