Explain why the selective color and spline loops index by range

This commit is contained in:
Dennis Kobert
2026-09-15 14:33:54 +02:00
parent de93fa40fb
commit 5e2398be74
2 changed files with 4 additions and 0 deletions
@@ -950,6 +950,8 @@ fn selective_color<T: Adjust<Color> + Clone + Send + Sync + no_std_types::contex
(SelectiveColorChoice::Blacks, (k_c, k_m, k_y, k_k)),
];
let mut sum = Vec3::ZERO;
// Indexed rather than iterated because this compiles to SPIR-V, whose backend rejects the arbitrary pointer offset an array iterator produces
#[allow(clippy::needless_range_loop)]
for i in 0..array.len() {
let (color_parameter_group, (c, m, y, k)) = array[i];