(&mut self)
| 868 | } |
| 869 | } |
| 870 | |
| 871 | /// Fold `effective_self_modulate` over `ids` and sum channels so the result |
| 872 | /// escapes optimization. Isolates the ancestor-walk cost (F1 microbench). |
| 873 | #[cfg(feature = "bench")] |
| 874 | pub fn bench_effective_self_modulate_sum(&self, ids: &[NodeID]) -> f32 { |
| 875 | let mut acc = 0.0f32; |
| 876 | for &id in ids { |
| 877 | let color = self.effective_self_modulate(id); |
| 878 | acc += color.r() + color.g() + color.b() + color.a(); |
| 879 | } |
| 880 | acc |
| 881 | } |
| 882 |
nothing calls this directly
no test coverage detected