The validation lanes that hold extended-range texels to Metal compare the
device's conversion with Metal's answer within PrecisionNote::DevicePackConversion's
bound (a code within one of Metal's, a read within its bound of Metal's).
That needs Metal's code-to-value mapping and its write's rounding, which the
runtime's clear model already holds as the private `code_value` and `code`.
ExtendedRange gains two thin public wrappers:
- `read_value(code, alpha) -> Option<f32>`: Metal's float read of a code of
an extended-range form, or None for the padded and bfloat forms and a code
past 1023.
- `write_code(v, alpha) -> Option<u32>`: Metal's kernel write's code of a
float of an extended-range or padded form, or None for the bfloat forms.
Each doc comment states Metal's mapping and rounding, and says that a
shader's conversion is the device's, bounded against this one.
api_signatures.tsv gains the two method rows. The api_surface table lists
items, not methods, and ExtendedRange's row is unchanged.
No behaviour changes and no version bump. The pin needs recomputing, since
metal/format/mod.rs is a hashed translator file.
Verified: cargo nextest run -p metal2vulkan (api_signatures, api_surface and
metal::format tests) 64 passed; clippy -D warnings plain and --cfg m2v_gpu;
rustdoc -D warnings for metal2vulkan.
(cherry picked from commit 753e6ac604e2f4be8150d787e50574ee880798a6)
(cherry picked from commit 99e4bd12fd251ee97615d0ab535980089e5e0a71)