photocraft/crates/gpu
eric 60018dea69
fix(compose): don't clip Add and Divide at 1 in 32-bit documents (#1722)
- Linear Dodge (Add) and Divide keep values above 1 in 32-bit float documents, clipped only at f32::MAX. Integer depths still clip at 1.
- CPU: add psblend::HDR and generic::blend_rgb_hdr / blend_channel_hdr; render sets the flag per document depth.
- GPU: add the F_HDR pass flag, and compose.wgsl uses it for the same clip bound.
- Non-separable modes are unchanged.
- Tests: colour unit tests, compose depth tests, and the GPU parity test float_documents_blend_past_white.

Co-authored-by: hideoneric <hideoneric@users.noreply.github.com>
2026-10-09 18:00:39 +07:00
..
src fix(compose): don't clip Add and Divide at 1 in 32-bit documents (#1722) 2026-10-09 18:00:39 +07:00
tests fix(compose): don't clip Add and Divide at 1 in 32-bit documents (#1722) 2026-10-09 18:00:39 +07:00
Cargo.toml GPU: fall back to Rgba16Float when Rgba32Float isn't renderable (#7, #4) (#22) 2026-10-04 02:27:54 -04:00