Files
metal2vulkan/crates
Anees Iqbal 99a11fd507 RUNTIME_VERSION 1944 and the runtime-sources pin for attached reads through a narrowed view
The four commits before this (ownpixel) let a draw's slot that samples a mipmapped texture, one
level of which a colour attachment of its render pass instance renders, read the texture's own
image through a view of the levels before the attached one (same base, fewer levels), where every
read the slot can make (StageModule::level_reads, through the sampler the draw binds) stays below
the lowest attached level. Such a slot no longer reads a usage shadow, and nothing is copied for
it. The answer is the shadow's: no draw of the instance writes those levels, and the view overlaps
no attachment. A slot that reaches the attached level, any level, or a texture's first level keeps
the shadow, counted by reason (attached_read_slots_apart, _written and _narrowed replace _below).
FAST-PATHS records it.

Verified (ownpixel, M3 MoltenVK m3-max-10859 at fd1ddfb852): --cfg m2v_gpu clippy on runtime and
validation green; 61/61, among them tests::attached_levels (five cases: explicit level 1 with level
2 attached narrowed; level 2 with level 2 attached copied; an implicit read clamped by the bound
sampler at LOD 1 narrowed; the same read unclamped copied; level 1 with level 0 attached copied;
every byte against the level's colour before the pass), attachment_reads, view_attachments,
snapshot_reads, attached_read_standing, kept_shadowed_draws, draw_again, shadow_carried_read and
shadow_merge_read. Linux clippy x3, Rustdoc, the runtime suite, lavapipe and the 780M counts follow
(m3-max-10860). The new fixture's golden and expectation rows are re-blessed on development.
2026-11-08 21:49:31 -08:00
..