Files
metal2vulkan/docs
Anees Iqbal 7d1323ebcc Convert extended-range, padded and bfloat texels by the device's arithmetic
A read is float(c - 384) times the f32 nearest 1/510 (a padded code's float(c)
times 1/1023), a write RoundEven(clamp(v)*510)+384 (padded *1023), an sRGB
twin's colour the MSL transfer by the device's Pow on the magnitude, a half
result the device's narrowing, a bfloat code its bit shift with NaNs as
computed. Metal's correctly rounded quotients, exact-product rounding, ties-away
half rounding and its extended/padded sRGB tables leave the shader path:
extended_range/table.rs, R10X6_SRGB_DECODE_STEPS, round_exact_product(_lanes)
and the plan's table fields are deleted. Each such module records
DevicePackConversion; FAST-PATHS' air.pack row and API.md's catalogue state the
bounds (one f32 ulp, one code, half a 2^-13 sRGB step, R10X6_SRGB 1.64 steps).
The host-side clear_texel and the bicubic code still read extended_srgb.rs's
tables, so on an sRGB twin a clear and a shader write can differ by one code.

Verified: 331 touched lib tests; clippy plain and m2v_gpu; rustdoc; conformance
ledger tests; M3 replay of 89 extended-range cases (exit 0, 276 ledger rows,
+254/-57 against development); validation heap_extended on the M3 (6/6); the
new tests fail with FDiv decode. Golden: 346 cells in 20 heap/argument-buffer
subjects move (blessed on development). Translation words of an sRGB twin's read
4433 -> 588, write 5540 -> 632.

One work packet, landed as 2 commits on archive/development-linear-2026-10-29: 8acec5a4a2, then 96d8394995 (the re-pin).
2026-10-29 15:43:54 +02:00
..