Files
metal2vulkan/docs
Anees Iqbal c48ad2340c rt: a copy within one subresource of one image: regions apart in GENERAL, the same region none
A guest's Mac walk (58383, then m3-max-59593) met Gap::TextureCopy 1,904 times, two RGBA8Unorm
256x256 2D textures, 29x1x1 texels at level 0 and slice 0. On KosmicKrisp every RGBA8Unorm
texture is R8G8B8A8_UNORM (its optimal tiling has every feature form() asks), so the format
condition cannot fire there; the one left is one subresource of one image: a texture view shares
its parent's image and id, so a copy between a texture and its view, or two views of one
texture, at one level and slice was refused, as a texture into itself was.

- blit: within one level and slice of one image, regions apart copy with one vkCmdCopyImage, the
  subresource in GENERAL (VUID-vkCmdCopyImage-srcImage-09460, -pRegions-00124): one barrier
  moves it there and one home, three barriers as any copy. The same region copies nothing and
  records no command, every texel already its own. Overlapping regions, which Metal leaves
  undefined (Apple's copy(from:sourceSlice:...) page: "Copying data to overlapping regions
  within the same texture may result in unexpected behavior."), stay Gap::TextureCopy.
- texture: a copy's barrier home from GENERAL makes its writes available.
- Gap::TextureCopy's doc and basis, docs/REFUSALS.md, the runtime README and the
  copy_from_texture doc say so.
- tests (blit): the rules (two slices, regions apart along each axis, the same region, three
  overlaps); on every device, a texture's region into another of its level and slice, from its
  view and from itself, lands exactly, everything around kept, one submission and three
  barriers; the same region records nothing and keeps every byte; overlapping regions are the
  gap.
2026-11-20 11:13:47 -08:00
..