From 0bf6fa1e3ed42d22e7daa4db458eac7fa6a2b5f2 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 2 Dec 2026 09:30:21 -0800 Subject: [PATCH] rt README: a target's linear image in place is made again without the loop usages for any place condition it fails Audit finding F3 (wording). The runtime README said a colour render target's linear image over a buffer is made again without the sampled and feedback usages where the image with them "does not lie at bytes_per_row". The retry (texture.rs, after make's Unmade::Unfit) runs for every cause Unfit names: - Pitch: its rows not at bytes_per_row; - RenderReach: its subresource past the texture's rows or the buffer; - Alignment: its memory alignment not met; - ImageMemory: its memory type not taken. The sentence now names those conditions. It also says what follows the retry: the texture lies in place where the image without the usages meets them, and is copied where it does not. Docs only; nothing built. --- crates/metal2vulkan-runtime/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index d9f458338..3307fafec 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -1821,9 +1821,12 @@ made, with no lock, and never rewritten for layouts. or, for a copy into its shadow, to the transfer source layout, and back before any later command. A colour render target's linear image takes the sampled and feedback usages for those reads where the device has the attachment feedback loop, the linear tiling's features - sample the format, the device's linear image query makes the image with them, and the image - with them lies at `bytes_per_row`; where the image with them does not lie there, it is made - without them, in place, and a draw reads it through its shadow. + sample the format and the device's linear image query makes the image with them. Where the + image made with them does not meet the conditions below for lying in place (its rows at + `bytes_per_row`, its subresource within the texture's rows and the buffer, its memory + alignment, its memory type), it is made again without them; where that image meets them, the + texture is in place and a draw reads it through its shadow, and where it does not, the texture + is copied. The bytes of a render-target texture's rows that are not texels may be rewritten with their earlier values while a pass renders it: an attachment's store, clear or resolve may read and write back any byte of the subresource bound for it. It is made so where the device's linear image of the texture's extent,