From 1c35b289734f073abc21624a97d5a7adefb6ce53 Mon Sep 17 00:00:00 2001 From: Xiaochun Tong Date: Tue, 3 Oct 2023 16:09:23 -0400 Subject: [PATCH] expose RawKernel --- luisa_compute/src/runtime.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luisa_compute/src/runtime.rs b/luisa_compute/src/runtime.rs index c8f1491..68d9810 100644 --- a/luisa_compute/src/runtime.rs +++ b/luisa_compute/src/runtime.rs @@ -1373,6 +1373,10 @@ impl Kernel { pub fn dump(&self) -> String { ir::debug::dump_ir_human_readable(&self.inner.module.module) } + #[doc(hidden)] + pub fn raw(&self) -> &RawKernel { + &self.inner + } } pub trait AsKernelArg: KernelArg {}