From fb5653501059584c2860a970ed3d432311f7cdd9 Mon Sep 17 00:00:00 2001 From: Zhixing Zhang Date: Wed, 24 Apr 2024 14:56:32 -0700 Subject: [PATCH] Use core --- ash/src/vk/prelude.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ash/src/vk/prelude.rs b/ash/src/vk/prelude.rs index 042931aa..01438412 100644 --- a/ash/src/vk/prelude.rs +++ b/ash/src/vk/prelude.rs @@ -113,9 +113,9 @@ pub enum PromotionStatus { PromotedToCore(u32), PromotedToExtension(&'static std::ffi::CStr), } -pub trait InstanceExtension: Send + Sync + 'static { +pub trait InstanceExtension: Send + Sync + Sized + Clone + 'static { fn new(entry: &crate::Entry, instance: &crate::Instance) -> Self; - const NAME: &'static std::ffi::CStr; + const NAME: &'static core::ffi::CStr; const SPEC_VERSION: u32; type Fp; @@ -124,9 +124,9 @@ pub trait InstanceExtension: Send + Sync + 'static { const PROMOTION_STATUS: PromotionStatus; } -pub trait DeviceExtension: Send + Sync + Sized + 'static { +pub trait DeviceExtension: Send + Sync + Sized + Clone + 'static { fn new(instance: &crate::Instance, device: &crate::Device) -> Self; - const NAME: &'static std::ffi::CStr; + const NAME: &'static core::ffi::CStr; const SPEC_VERSION: u32; type Fp;