diff --git a/luisa_compute/src/runtime.rs b/luisa_compute/src/runtime.rs index ae6ffe8..310c95d 100644 --- a/luisa_compute/src/runtime.rs +++ b/luisa_compute/src/runtime.rs @@ -255,11 +255,7 @@ impl Device { } /// Imports an external buffer of `count` elements of type `T`. - pub unsafe fn import_external_buffer( - &self, - data: *mut T, - count: usize, - ) -> Buffer { + pub unsafe fn import_external_buffer(&self, data: *mut T, count: usize) -> Buffer { self._create_buffer(data as *mut c_void, count) } pub fn create_buffer_from_slice(&self, data: &[T]) -> Buffer {