diff --git a/src/extensions/android_surface.rs b/src/extensions/android_surface.rs index 876be1e..84e39d3 100644 --- a/src/extensions/android_surface.rs +++ b/src/extensions/android_surface.rs @@ -7,6 +7,7 @@ use vk; use std::ffi::CStr; use ::RawPtr; +#[derive(Clone)] pub struct AndroidSurface { handle: vk::Instance, android_surface_fn: vk::AndroidSurfaceFn, diff --git a/src/extensions/debug_report.rs b/src/extensions/debug_report.rs index d8f37cb..fb31918 100644 --- a/src/extensions/debug_report.rs +++ b/src/extensions/debug_report.rs @@ -6,6 +6,7 @@ use vk; use std::ffi::CStr; use ::RawPtr; +#[derive(Clone)] pub struct DebugReport { handle: vk::Instance, debug_report_fn: vk::DebugReportFn, diff --git a/src/extensions/mir_surface.rs b/src/extensions/mir_surface.rs index 1f3da67..dffc9db 100644 --- a/src/extensions/mir_surface.rs +++ b/src/extensions/mir_surface.rs @@ -7,6 +7,7 @@ use vk; use std::ffi::CStr; use ::RawPtr; +#[derive(Clone)] pub struct MirSurface { handle: vk::Instance, mir_surface_fn: vk::MirSurfaceFn, diff --git a/src/extensions/surface.rs b/src/extensions/surface.rs index 0807437..76ee8cb 100644 --- a/src/extensions/surface.rs +++ b/src/extensions/surface.rs @@ -8,6 +8,7 @@ use vk; use std::ffi::CStr; use ::RawPtr; +#[derive(Clone)] pub struct Surface { handle: vk::Instance, surface_fn: vk::SurfaceFn, diff --git a/src/extensions/swapchain.rs b/src/extensions/swapchain.rs index c2fdf28..e055ae7 100644 --- a/src/extensions/swapchain.rs +++ b/src/extensions/swapchain.rs @@ -7,6 +7,7 @@ use vk; use std::ffi::CStr; use ::RawPtr; +#[derive(Clone)] pub struct Swapchain { handle: vk::Device, swapchain_fn: vk::SwapchainFn, diff --git a/src/extensions/wayland_surface.rs b/src/extensions/wayland_surface.rs index eb851c5..5abad4a 100644 --- a/src/extensions/wayland_surface.rs +++ b/src/extensions/wayland_surface.rs @@ -6,6 +6,7 @@ use vk; use std::ffi::CStr; use ::RawPtr; +#[derive(Clone)] pub struct WaylandSurface { handle: vk::Instance, wayland_surface_fn: vk::WaylandSurfaceFn, diff --git a/src/extensions/win32_surface.rs b/src/extensions/win32_surface.rs index e5f2f86..c1527ed 100644 --- a/src/extensions/win32_surface.rs +++ b/src/extensions/win32_surface.rs @@ -7,6 +7,7 @@ use vk; use std::ffi::CStr; use ::RawPtr; +#[derive(Clone)] pub struct Win32Surface { handle: vk::Instance, win32_surface_fn: vk::Win32SurfaceFn, diff --git a/src/extensions/xcb_surface.rs b/src/extensions/xcb_surface.rs index 64890d0..3f1e2f6 100644 --- a/src/extensions/xcb_surface.rs +++ b/src/extensions/xcb_surface.rs @@ -7,6 +7,7 @@ use vk; use std::ffi::CStr; use ::RawPtr; +#[derive(Clone)] pub struct XcbSurface { handle: vk::Instance, xcb_surface_fn: vk::XcbSurfaceFn,