diff --git a/ash/src/device.rs b/ash/src/device.rs index b8bcff886..cd3976ce6 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -33,6 +33,23 @@ impl Device { } } + pub fn from_parts( + handle: vk::Device, + device_fn_1_0: vk::DeviceFnV1_0, + device_fn_1_1: vk::DeviceFnV1_1, + device_fn_1_2: vk::DeviceFnV1_2, + device_fn_1_3: vk::DeviceFnV1_3, + ) -> Self { + Self { + handle, + + device_fn_1_0, + device_fn_1_1, + device_fn_1_2, + device_fn_1_3, + } + } + #[inline] pub fn handle(&self) -> vk::Device { self.handle