On a GPU that shares the CPU's memory the host lays a Managed texture over its
CPU copy only where a texture over a buffer has its shape: one level, one
sample, 2D, of a linear format. Every other shape (mipmapped, an array, a cube
or a 3D texture, a block-compressed format) keeps two copies there too, and the
bundle's getBytes: read the CPU copy, which shows the GPU's writes only after a
synchronizeTexture:. On such a GPU Metal shows them with no synchronize (the
Intel UHD 630 and the M3, oracle_storage mtex), and the guest's device answers
hasUnifiedMemory as the host's platform does: yes on Apple silicon and on an
integrated GPU (or lavapipe) of the Vulkan platform, no on a discrete one.
For the guest: where the device answers hasUnifiedMemory yes, getBytes: of a
Managed texture of a two-copy shape now reads the GPU's copy through a device
copy (rgfxCopyRegion:), as a Shared texture's does, so it sees the GPU's writes
and every region replaceRegion: posted before it, and it waits for that copy's
command buffer. replaceRegion: is unchanged, and so is every texture on a
discrete GPU and every texture the host lays over its CPU copy.
The bundle knows the shape alone (rgfxManagedLiesOverCopy, the host's
in_place_shape), so a texture of the in-place shape whose texture over its
buffer the platform refuses still reads its CPU copy; the module doc says so.