diff --git a/luisa_compute/src/lang/types.rs b/luisa_compute/src/lang/types.rs index 633fddb..2e8932c 100644 --- a/luisa_compute/src/lang/types.rs +++ b/luisa_compute/src/lang/types.rs @@ -47,6 +47,9 @@ pub trait Value: Copy + TypeOf + 'static { fn var_zeroed() -> Var { Var::::from_node(__current_scope(|b| b.local_zero_init(Self::type_())).into()) } + fn expr_zeroed() -> Expr { + Self::var_zeroed().load() + } } pub trait SoaValue: Value { diff --git a/luisa_compute_sys/LuisaCompute b/luisa_compute_sys/LuisaCompute index 11aec87..ededbf4 160000 --- a/luisa_compute_sys/LuisaCompute +++ b/luisa_compute_sys/LuisaCompute @@ -1 +1 @@ -Subproject commit 11aec87024ff757ec2ac544b2ff6c5baa790a2f8 +Subproject commit ededbf4feb9460c7496e2df2ffba7b576473532a