The cache and its keys

K1. The index of the cache is open addressed, and the entries are in one array.

K2. The hash of a range mixes every bit of its start and its length.

K3. A caller that knows its ranges first fetches every index slot, then every entry.

K4. An entry with no buffer of its own goes after two seconds, and one with a buffer after twenty seconds.

K5. A storage buffer with no size of its own binds inside a shared window of guest memory.

K6. A range whose offset in a window does not meet the alignment of the device is copied alone.

K7. A vertex or index range of unknown extent binds in a window, as a bare storage buffer does.

K8. A vertex or index buffer binds at any offset that keeps its elements aligned.

K9. A stable range gets a buffer of its own in device memory, filled by a GPU copy that runs ahead of the submission.

K10. With unified memory, a lookup reads guest memory in place only when no result is pending and no byte is GPU owned.

K11. A read-only storage buffer of a dispatch is checked with no delay, and with unified memory it binds in place.

K12. A constant buffer binds in place, but the pages that the runtime wrote are copied.

K13. The load of a save state drops every buffer, texture and render target that the caches keep.


Made from docs/layers/gpu/buffer-rewrite-inventory.md at 69237645142c. GPL-3.0-or-later.