diff --git a/luisa_compute/src/runtime/kernel.rs b/luisa_compute/src/runtime/kernel.rs index e0d90d2..c72a332 100644 --- a/luisa_compute/src/runtime/kernel.rs +++ b/luisa_compute/src/runtime/kernel.rs @@ -104,7 +104,7 @@ impl KernelParameter for rtx::AccelVar { } pub trait KernelParameter { - type Arg: KernelArg; + type Arg: KernelArg + 'static; fn def_param(builder: &mut KernelBuilder) -> Self; }