Declare which index levels a node reads and nullify the rest

This commit is contained in:
Dennis Kobert
2026-08-24 13:38:16 +00:00
parent f1ccb74625
commit 027218f16c
15 changed files with 275 additions and 65 deletions

View File

@@ -59,7 +59,7 @@ fn image_color_palette(
})
.collect();
palette.get(ctx.innermost_index() as usize).copied().ok_or_else(|| GraphError::past_end().into())
palette.get(ctx.index() as usize).copied().ok_or_else(|| GraphError::past_end().into())
}
#[cfg(test)]

View File

@@ -107,7 +107,7 @@ pub fn combine_channels<'e>(
)>,
Interrupt,
> {
let lane = ctx.innermost_index() as usize;
let lane = ctx.index() as usize;
let max_len = red.len().max(green.len()).max(blue.len()).max(alpha.len());
if lane >= max_len {
return Err(GraphError::past_end().into());