From 4c3b32e481daf02fe20074853fe335c0e51ca5bb Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 17 Nov 2026 18:44:25 -0800 Subject: [PATCH] rt: the floor's comment says threadgroup memory is implicitly laid out Comment only: the arena is a word array and the typed shared objects are typed variables, both implicitly laid out, so "addressed by byte offset" described only the arena. --- crates/metal2vulkan-rt/src/floor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-rt/src/floor.rs b/crates/metal2vulkan-rt/src/floor.rs index 196753043..30014ca10 100644 --- a/crates/metal2vulkan-rt/src/floor.rs +++ b/crates/metal2vulkan-rt/src/floor.rs @@ -251,8 +251,8 @@ pub(crate) const REQUIRED: &[Feature] = &[ feature!(robustness2.null_descriptor => NullDescriptor), // The translator's shaders: 8-, 16- and 64-bit integers, 8- and 16-bit values in buffers, // scalar and std430 layout of buffer, uniform and push-constant blocks, and the Vulkan memory - // model with device scope for atomics and barriers. Threadgroup memory is a plain array the - // shader addresses by byte offset, which needs no feature. + // model with device scope for atomics and barriers. Threadgroup memory is implicitly laid + // out (plain arrays and scalars), which needs no feature. feature!(core.shader_int16 => ShaderInt16), feature!(vulkan12.shader_int8 => ShaderInt8), feature!(vulkan11.storage_buffer16_bit_access => StorageBuffer16BitAccess),