diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index 237aaabbb..52ae48ec3 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -417,8 +417,8 @@ made, with no lock, and never rewritten for layouts. format and usage lays its rows at `bytes_per_row` from the image's start (`vkGetImageSubresourceLayout`), the place meets the image's memory alignment and memory type, and the format's linear tiling has every feature of its optimal tiling that the usage uses - (copies and blits, sampling and linear filtering, a shader's reads, writes and atomics without - a format, rendering and blending). `replace_region` writes the buffer's bytes, and copies the + (copies, which a blit encoder's copies and fills are, sampling and linear filtering, a + shader's reads, writes and atomics without a format, rendering and blending). `replace_region` writes the buffer's bytes, and copies the rows' span into a Managed buffer's device copy as `did_modify_range` does; `get_bytes` reads the buffer's bytes, with no submission; a dispatch's use of the texture is a use of the buffer in the hazard sets, and a write to it reaches the host as a write to a Shared buffer does. The texture diff --git a/crates/metal2vulkan-rt/src/texture.rs b/crates/metal2vulkan-rt/src/texture.rs index de54b7bcf..91723d7a3 100644 --- a/crates/metal2vulkan-rt/src/texture.rs +++ b/crates/metal2vulkan-rt/src/texture.rs @@ -1127,11 +1127,12 @@ fn check_over( } /// The format features an image of `usage` is used by, which a linear image is to keep where the -/// device's optimal image of its format has them: copies and blits; sampling and its linear -/// filter; a shader's reads, writes and atomics without a format; rendering and blending. +/// device's optimal image of its format has them: copies (a blit encoder's copies and fills are +/// transfers; the runtime records no image blit); sampling and its linear filter; a shader's +/// reads, writes and atomics without a format; rendering and blending. fn kept_features(usage: vk::ImageUsageFlags) -> vk::FormatFeatureFlags2 { type F = vk::FormatFeatureFlags2; - let mut kept = F::TRANSFER_SRC | F::TRANSFER_DST | F::BLIT_SRC | F::BLIT_DST; + let mut kept = F::TRANSFER_SRC | F::TRANSFER_DST; if usage.contains(vk::ImageUsageFlags::SAMPLED) { kept |= F::SAMPLED_IMAGE | F::SAMPLED_IMAGE_FILTER_LINEAR; }