| 375 | |
| 376 | static void init(FuncRef comp) { comp = cast<hl_comp_type>(0); } |
| 377 | static void apply(FuncRef comp, Halide::FuncRef in, float) { |
| 378 | comp += cast<hl_comp_type>(in); |
| 379 | } |
| 380 | static void on(FuncRef comp, FuncRef func) { func = cast<hl_out_type>(comp); } |
| 381 | }; |
| 382 |