diff --git a/ash/src/extensions/khr/surface.rs b/ash/src/extensions/khr/surface.rs index 024dab9..c0e6441 100644 --- a/ash/src/extensions/khr/surface.rs +++ b/ash/src/extensions/khr/surface.rs @@ -138,4 +138,12 @@ impl Surface { allocation_callbacks.as_raw_ptr(), ); } + + pub fn raw_fp(&self) -> &vk::KhrSurfaceFn { + &self.surface_fn + } + + pub fn instance_handle(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/khr/swapchain.rs b/ash/src/extensions/khr/swapchain.rs index f9a6a8b..f87ab95 100644 --- a/ash/src/extensions/khr/swapchain.rs +++ b/ash/src/extensions/khr/swapchain.rs @@ -126,4 +126,12 @@ impl Swapchain { _ => Err(err_code), } } + + pub fn raw_fp(&self) -> &vk::KhrSwapchainFn { + &self.swapchain_fn + } + + pub fn device_handle(&self) -> vk::Device { + self.handle + } }