fn publish(slots: &[Rect]) -> u32
Copy slots into the scratch buffer and return how many were written.
slots