Files
metal2vulkan/docs
Anees Iqbal c9637b0d08 replay: a descriptor-form no-copy buffer is a pool buffer; only the bytes form imports
The planner ruled the mapping: the player plays every descriptor-form no-copy buffer
(newBufferWithDescriptor: with noCopy) as a pool buffer, a buffer of a recorded block where
its recorded range lies in one and a place of its own elsewhere, and imports only the bytes
form (newBufferWithBytesNoCopy:length:options:deallocator:, the host's own in the recordings).

The recordings do not tell the program's own no-copy memory (an import in the product) from
the host's pool buffers, so that memory plays as a pool buffer too: a known gap. The host's
recorder makes a buffer over the program's memory only with a pinnedGpuAddress and no
zeroFrom (zeroFrom and unpinned buffers are always the host's own), so the report's gap line
bounds the gap by those outside every block, with their bytes. REPLAY-STREAM.md states the
mapping and the gap.

The test plays three descriptor-form buffers outside every block (one pinned with no
zeroFrom, one unpinned, one pinned with zeroFrom), a texture over the first read through a
blit, and checks the counts line, the gap line's bound of 1, and that the imported side
counts only the bytes-form buffer's texture copy.
2026-11-19 01:07:23 -08:00
..