Skip to content

Commit

Permalink
Merge branch 'refactor' of github.com:LuisaGroup/luisa-compute-rs int…
Browse files Browse the repository at this point in the history
…o refactor
  • Loading branch information
shiinamiyuki committed Sep 22, 2023
2 parents 98c1964 + bcec9ad commit 7337b26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions luisa_compute/src/lang/ops/spread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,14 @@ macro_rules! call_vector_fn_spread {
$f!(['a, $($bounds)*] &'a $T: |x| $Vsplat(*x), Expr<$Vt>: |x| x => Expr<$Vt>);
$f!([$($bounds)*] Expr<$T>: |x| $Vsplat(x), Expr<$Vt>: |x| x => Expr<$Vt>);
$f!(['a, $($bounds)*] &'a Expr<$T>: |x| $Vsplat(x), Expr<$Vt>: |x| x => Expr<$Vt>);
$f!([$($bounds)*] Var<$T>: |x| $Vsplat(x), Expr<$Vt>: |x| x => Expr<$Vt>);
$f!(['a, $($bounds)*] &'a Var<$T>: |x| $Vsplat(x), Expr<$Vt>: |x| x => Expr<$Vt>);
$f!(['b, $($bounds)*] $T: |x| $Vsplat(x), &'b Expr<$Vt>: |x| x.clone() => Expr<$Vt>);
$f!(['a, 'b, $($bounds)*] &'a $T: |x| $Vsplat(*x), &'b Expr<$Vt>: |x| x.clone() => Expr<$Vt>);
$f!(['b, $($bounds)*] Expr<$T>: |x| $Vsplat(x), &'b Expr<$Vt>: |x| x.clone() => Expr<$Vt>);
$f!(['a, 'b, $($bounds)*] &'a Expr<$T>: |x| $Vsplat(x), &'b Expr<$Vt>: |x| x.clone() => Expr<$Vt>);
$f!(['b, $($bounds)*] Var<$T>: |x| $Vsplat(x), &'b Expr<$Vt>: |x| x.clone() => Expr<$Vt>);
$f!(['a, 'b, $($bounds)*] &'a Var<$T>: |x| $Vsplat(x), &'b Expr<$Vt>: |x| x.clone() => Expr<$Vt>);

$f!([$($bounds)*] Expr<$T>: |x| $Vsplat(x), $Vt: |x| x.expr() => Expr<$Vt>);
$f!(['a, $($bounds)*] &'a Expr<$T>: |x| $Vsplat(x), $Vt: |x| x.expr() => Expr<$Vt>);
Expand Down

0 comments on commit 7337b26

Please sign in to comment.