Say what a YCbCr twin's half sample through a runtime sampler slot rounds to: measured toward zero

What: PrecisionNote::HalfTexelConversion's doc, its docs/API.md catalogue entry, docs/FAST-PATHS.md's
texel-conversion row and the comment where select.rs records the note said a two-plane YCbCr
texture on the grid 8192, sampled through a runtime sampler slot whose word reads one texel,
rounds that texel's step to nearest even. It is the device's rounding of the step's float, and
on MoltenVK 1.4.2 over the Apple M3 Max that is toward zero: runtime_lane::ycbcr_textures'
srgb_twins_read_what_metal_reads measured 8,409 channels of the _sRGB twins over six surfaces and
three matrices, each within one half ulp of Metal's ties-away step (lane commit 196bdf8135). The
docs now say so, and that other Apple GPUs are unmeasured. FAST-PATHS' row had said the field keeps
Metal's ties away in every one-texel sample; it now names the runtime sampler slot's exception.

Docs only: no behaviour, translation or recorded output changes.

(cherry picked from commit 0cb807cc9d0af60d7ceebbbd536d396ab43e3a00)
This commit is contained in:
Anees Iqbal committed 2026-11-02 17:43:39 -08:00
1 parent 4837c93ca4
commit 91cdb80938
4 files changed
+12 -7

No files matched your search

+4 -2
View File
@@ -3116,8 +3116,10 @@ bound.
texel is Metal's, announced at a draw or dispatch that binds a texture of a class whose Metal
`half` differs from it (a 32-bit float texel's sample, a 16-bit normalized texel, a format not
measured) and a two-plane YCbCr texture on the grid `8192` at a slot sampled through a runtime
sampler (a sample of one texel rounds to nearest even, one `half` ulp from Metal's ties-away
rounding at a tie); a heap element or a depth texture wherever it is accessed.
sampler (a sample of one texel is the device's rounding of its step: toward zero on MoltenVK
1.4.2 over the Apple M3 Max, within one `half` ulp of Metal's ties-away rounding, measured over
8,409 channels; unmeasured on other Apple GPUs); a heap element or a depth texture wherever it
is accessed.
- `metal2vulkan-degrade-half-sample-filter` (precision). `PrecisionNote::HalfSampleFilter`: The
module samples a texture with a `half` result through a filter (linear minification or
magnification, or a runtime sampler) that Metal's own sampler (MoltenVK) answers otherwise than