pub const HISTOGRAM_BINS: usize = 256; // 256usizeExpand description
Number of histogram bins the build kernel writes into and the average kernel reduces. 256 is small enough to fit in threadgroup memory on every Apple GPU (1 KiB at u32) and big enough that the per-bin log-luminance step is fine.