diff --git a/ash/src/entry.rs b/ash/src/entry.rs index a181818..edb82ac 100644 --- a/ash/src/entry.rs +++ b/ash/src/entry.rs @@ -77,11 +77,12 @@ pub trait EntryV1_0 { type Instance; fn fp_v1_0(&self) -> &vk::EntryFnV1_0; fn static_fn(&self) -> &vk::StaticFn; + #[doc = ""] + /// /// # Safety /// In order for the created `Instance` to be valid for the duration of its /// usage, the `Entry` this was called on must be dropped later than the /// resulting `Instance`. - #[doc = ""] unsafe fn create_instance( &self, create_info: &vk::InstanceCreateInfo, @@ -142,11 +143,12 @@ pub trait EntryV1_0 { impl EntryV1_0 for EntryCustom { type Instance = Instance; + #[doc = ""] + /// /// # Safety /// In order for the created `Instance` to be valid for the duration of its /// usage, the `Entry` this was called on must be dropped later than the /// resulting `Instance`. - #[doc = ""] unsafe fn create_instance( &self, create_info: &vk::InstanceCreateInfo, diff --git a/ash/src/instance.rs b/ash/src/instance.rs index 36d9d77..669eed4 100644 --- a/ash/src/instance.rs +++ b/ash/src/instance.rs @@ -38,11 +38,12 @@ impl Instance { impl InstanceV1_0 for Instance { type Device = Device; + #[doc = ""] + /// /// # Safety /// In order for the created `Device` to be valid for the duration of its /// usage, the `Instance` this was called on must be dropped later than the /// resulting `Device`. - #[doc = ""] unsafe fn create_device( &self, physical_device: vk::PhysicalDevice, @@ -292,11 +293,12 @@ pub trait InstanceV1_0 { type Device; fn handle(&self) -> vk::Instance; fn fp_v1_0(&self) -> &vk::InstanceFnV1_0; + #[doc = ""] + /// /// # Safety /// In order for the created `Device` to be valid for the duration of its /// usage, the `Instance` this was called on must be dropped later than the /// resulting `Device`. - #[doc = ""] unsafe fn create_device( &self, physical_device: vk::PhysicalDevice,