Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
shiinamiyuki committed Nov 2, 2023
1 parent 4a378c1 commit 9a4c807
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions luisa_compute/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,7 @@ impl Device {
}

/// Imports an external buffer of `count` elements of type `T`.
pub unsafe fn import_external_buffer<T: Value>(
&self,
data: *mut T,
count: usize,
) -> Buffer<T> {
pub unsafe fn import_external_buffer<T: Value>(&self, data: *mut T, count: usize) -> Buffer<T> {
self._create_buffer(data as *mut c_void, count)
}
pub fn create_buffer_from_slice<T: Value>(&self, data: &[T]) -> Buffer<T> {
Expand Down

0 comments on commit 9a4c807

Please sign in to comment.