Files
metal2vulkan/crates/metal2vulkan-runtime/src/tests
Anees Iqbal 3c42dff011 Test that a tiled texture's later levels copy nothing, its merges fetch, and a detach keeps it
Four device tests in tiled_texture_device.rs, for the three tiled-mips follow-ups
(Buffer::new_tiled_texture):

- uses_of_the_later_levels_alone_copy_nothing_of_the_first: a blit into level 1
  takes no shadow copy, and generate_mipmaps copies level 0 in and nothing back,
  keeps nothing and merges nothing.
- a_render_pass_into_a_later_level_copies_nothing_of_the_first: a pass into level 1
  takes no shadow copy.
- a_merge_of_the_first_level_fetches_through_its_view: a blit into part of level 0
  over a Shared buffer merges back through a view (shadow_merges_fetched 1), the
  bytes outside the part kept.
- detached_bytes_leave_the_first_level_s_last_texels_and_the_later_levels: over a
  no-copy buffer, detached, the texture keeps its VkImage, get_bytes of level 0
  reads the CPU's last write (made after the last copy in), the later levels read
  and take writes, a level-0 write is refused; a rebind gives level 0 the new
  pages and keeps the later levels.

Each prints its counts before asserting. They fail on this commit alone, where
the fixes that follow are absent: the negative control.

(cherry picked from commit e873588a623425c2cc8137296b4b5ec3dcd87432)
2026-11-08 02:57:26 -08:00
..