synchronize_resource of a Managed texture with named bytes
(Device::new_managed_texture, on every device) records one
vkCmdCopyImageToBuffer of each level and slice of its image into its place in
the named buffer, between one pair of a buffer copy's barriers, and marks the
segment so its end barrier reaches the host. A texture without named bytes
still records nothing; every call is counted in Metrics::synchronizations.
texture.rs gains one read hook, Texture::named_bytes (the named buffer and its
per-level/slice places), which main agreed to. The blit encoder's buffer copy
now records through record_buffer_copies, which takes a list of checked copies
and puts each copy's level and slice in the same two barriers; one copy
records exactly as before. new_managed_texture's doc names the synchronize.
Test (device cfgs): every_device_synchronizes_a_managed_texture_into_its_named_bytes:
a 2-level 4x4 RGBA8Unorm Managed texture with places 256-byte rows apart;
copies into its image alone leave the named bytes zero; the synchronize puts
level 0 at offset 0 and level 1 at 1024, the bytes between the rows kept, at 1
submission, 3 barriers, 0 bytes copied, 1 synchronization, 1 host reach.
Level 0 is plain Metal's: probe blit_synchronize_rules.m, job m3-max-43667,
getBytes of a Managed texture copied into then synchronized hashes
a918a78fc82cbba5 (the managed-buffer case still 5d28bc84b408472d).