From 6ddf59304d1862eff74bfba6ab4846ce32669cec Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 19 Nov 2026 02:09:43 -0800 Subject: [PATCH] rt README: a heap texture an alias wrote is used again without a move out of undefined What: the textures' known gaps gain the alias case: a heap texture whose bytes another resource of its heap wrote is used again in the layout it moved to at its making, with no move out of VK_IMAGE_LAYOUT_UNDEFINED before that use, which Vulkan's memory aliasing (12.11) asks for. Why: the gap stays open until a count over the replay streams says whether any heap image is used again after a write through an overlapping image that is still live; it is recorded where a reader of the runtime's contract finds it. Verified: documentation only; the crate does not include its README. --- crates/metal2vulkan-rt/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index 559e9f4aa..ff3531969 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -785,6 +785,10 @@ made, with no lock, and never rewritten for layouts. - `Device::pixel_format_info` answers as an Apple M3 Max under macOS 27.0.1, which describes none of the values from 630 to 645 (`BGRA10Unorm`, its packed, sRGB, PQ and HLG forms, `R10UintX6`, `RG10UintX12` and the rest); an Apple M4 under that release describes them. +- A heap texture whose bytes another resource of its heap wrote is used again in the layout it + moved to once, at its making: rt records no move out of `VK_IMAGE_LAYOUT_UNDEFINED` before that + use, where Vulkan's memory aliasing asks that "each of those image subresources must have its + layout transitioned from `VK_IMAGE_LAYOUT_UNDEFINED` to a valid layout before it is used". - A texture's memory is device-local; where the device has none left, the call fails (`Error::Vulkan`). - A texture over a buffer other than 2D of one level, sample and slice, or of a depth, stencil