diff --git a/luisa_compute/src/runtime.rs b/luisa_compute/src/runtime.rs index d51f7d4..33f74e5 100644 --- a/luisa_compute/src/runtime.rs +++ b/luisa_compute/src/runtime.rs @@ -340,9 +340,7 @@ impl Device { raw_window_handle::RawWindowHandle::Orbital(_) => todo!(), raw_window_handle::RawWindowHandle::Xlib(h) => h.window as u64, raw_window_handle::RawWindowHandle::Xcb(h) => h.window.get() as u64, - raw_window_handle::RawWindowHandle::Wayland(h) => { - h.surface.as_ptr() as u64 - } + raw_window_handle::RawWindowHandle::Wayland(h) => h.surface.as_ptr() as u64, raw_window_handle::RawWindowHandle::Drm(_) => todo!(), raw_window_handle::RawWindowHandle::Gbm(_) => todo!(), raw_window_handle::RawWindowHandle::Win32(h) => h.hwnd.get() as u64, @@ -832,6 +830,7 @@ impl Drop for SwapchainHandle { } } +#[derive(Clone)] pub struct Swapchain { pub(crate) handle: Arc, #[allow(dead_code)]