diff --git a/luisa_compute/src/runtime.rs b/luisa_compute/src/runtime.rs index 6f327d8..60173aa 100644 --- a/luisa_compute/src/runtime.rs +++ b/luisa_compute/src/runtime.rs @@ -1740,6 +1740,9 @@ impl Kernel { pub fn raw(&self) -> &RawKernel { &self.inner } + pub fn wait_for_compile(&self) { + self.inner.unwrap(); + } } // A trait signifying that this argument can be used in place of an argument of type `Self::T`.