Skip to content

Commit

Permalink
Use core
Browse files Browse the repository at this point in the history
  • Loading branch information
Neo-Zhixing committed Apr 24, 2024
1 parent 30b251b commit fb56535
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ash/src/vk/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit fb56535

Please sign in to comment.