4 ms·
Another unfortunate fact is that max int (signed and unsigned) is also not a float. This means you cannot write clamped ftoi conversion only in floating point (
by petermcneeley 1y ago
Another unfortunate fact is that max int (signed and unsigned) is also not a float. This means you cannot write clamped ftoi conversion only in floating point (because the value is not representable). This is why webgpu (wgsl) does not fully saturate on ftoi
https://www.w3.org/TR/WGSL/#floating-point-conversion https://www.w3.org/TR/WGSL/#floating-point-conversion