From ca5fecf79c8a5d3cec9e48125c8b6c52e66ef1ff Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 4 Nov 2026 23:34:52 -0800 Subject: [PATCH] State the extended-range conversions' bounds in device-pack-conversion's runtime doc The runtime's Degradation::DevicePackConversion doc stated only the normalized pack and unpack bounds, though the kind is also announced for every conversion of an extended-range, padded 10-bit or bfloat texel. It now states those bounds too, as the translator's PrecisionNote doc and docs/API.md's catalogue already did: a linear value within one f32 ulp of Metal's, an encoded code within one (R10Unorm_X6_sRGB's and RGB10A2Unorm_sRGB's colour within two below 0.0031308), and a half result within one half ulp. device-rounded-resolve's text already states its bound (one code, an sRGB channel two), and the M3 measures within one, so it is unchanged. Doc-comment only. (cherry picked from commit 192b37ed75b28c0a12e07987ca98768bb264f31d) --- crates/metal2vulkan-runtime/src/degradation.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-runtime/src/degradation.rs b/crates/metal2vulkan-runtime/src/degradation.rs index bf015ab3b..7032dd307 100644 --- a/crates/metal2vulkan-runtime/src/degradation.rs +++ b/crates/metal2vulkan-runtime/src/degradation.rs @@ -2422,7 +2422,11 @@ degradations! { /// code within one of Metal's, apart only near a half-integer; an unpacked value within /// 2.5 ulp of the correctly rounded quotient; a decoded sRGB colour within half a /// twelve-bit step (`1 / 8190`) of Metal's step `k / 4095`, beyond its division's and - /// `Pow`'s bounds; a NaN channel's code the device's, where Metal's is 0. + /// `Pow`'s bounds; a NaN channel's code the device's, where Metal's is 0. Also every + /// conversion of an extended-range, padded 10-bit or bfloat texel, on every device (no + /// Vulkan format holds them): a linear value within one `f32` ulp of Metal's, an encoded + /// code within one (`R10Unorm_X6_sRGB`'s and `RGB10A2Unorm_sRGB`'s colour within two + /// below `0.0031308`), a `half` result within one `half` ulp. DevicePackConversion = "device-pack-conversion"; /// A render pipeline whose color attachments the device draws in more than one group: /// each draw runs once per group, each group's variant over its own copy of the pass's