From ffe36113a13dc45f74c182f2f49e8c42062d4ce0 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 21 Nov 2026 09:23:57 -0800 Subject: [PATCH] rt docs: an undeclared formatless write to a texture buffer cites the Vulkan rule it leaves The known-gaps bullet and Gap::StorageElement's doc name the undeclared argument-buffer or resource-ID write to a texture buffer whose format's buffer features lack the formatless write bit as outside Vulkan's valid usage (VUID-vkCmdDispatch-OpTypeImage-07029), beside the image precedent for the undeclared formatless read: the atomic's R32ui class and the formatless class are one storage texel-buffer element (pipeline/link.rs identity_set, binding 6 for every class of the type; rt arrays.rs STORAGE_TEXELS_BINDING). --- crates/metal2vulkan-runtime/README.md | 7 +++++-- crates/metal2vulkan-runtime/src/error.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 727c53e41..ff1494ef1 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -1510,8 +1510,11 @@ made, with no lock, and never rewritten for layouts. through `access::read_write` where they lack the read bit, is `Gap::StorageElement` (`VUID-vkCmdDispatch-OpTypeImage-07029`, `-07030`), whatever its format; so is, with no slot, one that may reach it beyond its slots after `use_resource` declared a write of it where they - lack the write bit. A write through a resource ID with no such declaration is a write without - a format outside Vulkan's valid usage there, as a read is. The UHD Graphics 630's Windows + lack the write bit. A write through an argument buffer or a resource ID with no such + declaration is outside documented Metal and is not refused: where they lack the write bit it + writes the texture buffer's storage element without a format, outside Vulkan's valid usage + (`VUID-vkCmdDispatch-OpTypeImage-07029`), as such a read is (`-07030`), and Vulkan does not + define what it does. The UHD Graphics 630's Windows driver (101.2145) answers neither bit for any format: there a texture buffer a function writes or reads through `access::read_write` is refused, but at a slot a texture atomic updates, and one it reads through `access::read` runs. diff --git a/crates/metal2vulkan-runtime/src/error.rs b/crates/metal2vulkan-runtime/src/error.rs index f9bce2b39..95f883cf2 100644 --- a/crates/metal2vulkan-runtime/src/error.rs +++ b/crates/metal2vulkan-runtime/src/error.rs @@ -1355,7 +1355,7 @@ pub enum Gap { /// resource ID with no such declaration is not found: Metal documents no write to it /// (`useHeap:` declares its heap's resources read only); its writes are dropped, but a texture /// buffer's that the device cannot write without a format, which are outside Vulkan's valid - /// usage. A read there of a storage element the device cannot read without a format is not + /// usage (`VUID-vkCmdDispatch-OpTypeImage-07029`). A read there of a storage element the device cannot read without a format is not /// found either (the crate's README, known gaps). /// /// Basis: ours (the storage element through a view of the nearest format whose storage Vulkan