diff --git a/ash/src/extensions/ext/debug_marker.rs b/ash/src/extensions/ext/debug_marker.rs old mode 100644 new mode 100755 index eeead34..ae81e2b --- a/ash/src/extensions/ext/debug_marker.rs +++ b/ash/src/extensions/ext/debug_marker.rs @@ -64,4 +64,8 @@ impl DebugMarker { self.debug_marker_fn .cmd_debug_marker_insert_ext(command_buffer, marker_info); } + + pub fn fp(&self) -> &vk::ExtDebugMarkerFn { + &self.debug_marker_fn + } } diff --git a/ash/src/extensions/ext/debug_report.rs b/ash/src/extensions/ext/debug_report.rs old mode 100644 new mode 100755 index 153c036..3235a7d --- a/ash/src/extensions/ext/debug_report.rs +++ b/ash/src/extensions/ext/debug_report.rs @@ -58,4 +58,12 @@ impl DebugReport { _ => Err(err_code), } } + + pub fn fp(&self) -> &vk::ExtDebugReportFn { + &self.debug_report_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/ext/debug_utils.rs b/ash/src/extensions/ext/debug_utils.rs old mode 100644 new mode 100755 index 01c04b5..0314505 --- a/ash/src/extensions/ext/debug_utils.rs +++ b/ash/src/extensions/ext/debug_utils.rs @@ -154,4 +154,12 @@ impl DebugUtils { callback_data, ); } + + pub fn fp(&self) -> &vk::ExtDebugUtilsFn { + &self.debug_utils_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/khr/android_surface.rs b/ash/src/extensions/khr/android_surface.rs old mode 100644 new mode 100755 index fcf5daa..ec9fb0a --- a/ash/src/extensions/khr/android_surface.rs +++ b/ash/src/extensions/khr/android_surface.rs @@ -45,4 +45,12 @@ impl AndroidSurface { _ => Err(err_code), } } + + pub fn fp(&self) -> &vk::KhrAndroidSurfaceFn { + &self.android_surface_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/khr/display_swapchain.rs b/ash/src/extensions/khr/display_swapchain.rs old mode 100644 new mode 100755 index c11690b..63ad488 --- a/ash/src/extensions/khr/display_swapchain.rs +++ b/ash/src/extensions/khr/display_swapchain.rs @@ -47,4 +47,12 @@ impl DisplaySwapchain { _ => Err(err_code), } } + + pub fn fp(&self) -> &vk::KhrDisplaySwapchainFn { + &self.swapchain_fn + } + + pub fn device(&self) -> vk::Device { + self.handle + } } diff --git a/ash/src/extensions/khr/surface.rs b/ash/src/extensions/khr/surface.rs old mode 100644 new mode 100755 index 024dab9..56cc481 --- 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 fp(&self) -> &vk::KhrSurfaceFn { + &self.surface_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/khr/swapchain.rs b/ash/src/extensions/khr/swapchain.rs old mode 100644 new mode 100755 index f9a6a8b..eb6bc90 --- 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 fp(&self) -> &vk::KhrSwapchainFn { + &self.swapchain_fn + } + + pub fn device(&self) -> vk::Device { + self.handle + } } diff --git a/ash/src/extensions/khr/wayland_surface.rs b/ash/src/extensions/khr/wayland_surface.rs old mode 100644 new mode 100755 index 4707178..3a22b1d --- a/ash/src/extensions/khr/wayland_surface.rs +++ b/ash/src/extensions/khr/wayland_surface.rs @@ -63,4 +63,12 @@ impl WaylandSurface { b > 0 } + + pub fn fp(&self) -> &vk::KhrWaylandSurfaceFn { + &self.wayland_surface_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/khr/win32_surface.rs b/ash/src/extensions/khr/win32_surface.rs old mode 100644 new mode 100755 index aed6dfb..f041e87 --- a/ash/src/extensions/khr/win32_surface.rs +++ b/ash/src/extensions/khr/win32_surface.rs @@ -61,4 +61,12 @@ impl Win32Surface { b > 0 } + + pub fn fp(&self) -> &vk::KhrWin32SurfaceFn { + &self.win32_surface_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/khr/xcb_surface.rs b/ash/src/extensions/khr/xcb_surface.rs old mode 100644 new mode 100755 index 7a36607..4bd53e6 --- a/ash/src/extensions/khr/xcb_surface.rs +++ b/ash/src/extensions/khr/xcb_surface.rs @@ -65,4 +65,12 @@ impl XcbSurface { b > 0 } + + pub fn fp(&self) -> &vk::KhrXcbSurfaceFn { + &self.xcb_surface_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/khr/xlib_surface.rs b/ash/src/extensions/khr/xlib_surface.rs old mode 100644 new mode 100755 index 24f4d2c..fda08e6 --- a/ash/src/extensions/khr/xlib_surface.rs +++ b/ash/src/extensions/khr/xlib_surface.rs @@ -65,4 +65,12 @@ impl XlibSurface { b > 0 } + + pub fn fp(&self) -> &vk::KhrXlibSurfaceFn { + &self.xlib_surface_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/mvk/ios_surface.rs b/ash/src/extensions/mvk/ios_surface.rs old mode 100644 new mode 100755 index 4100c2d..86e079a --- a/ash/src/extensions/mvk/ios_surface.rs +++ b/ash/src/extensions/mvk/ios_surface.rs @@ -45,4 +45,12 @@ impl IOSSurface { _ => Err(err_code), } } + + pub fn fp(&self) -> &vk::MvkIosSurfaceFn { + &self.ios_surface_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/mvk/macos_surface.rs b/ash/src/extensions/mvk/macos_surface.rs old mode 100644 new mode 100755 index 2dae98d..470fb08 --- a/ash/src/extensions/mvk/macos_surface.rs +++ b/ash/src/extensions/mvk/macos_surface.rs @@ -45,4 +45,12 @@ impl MacOSSurface { _ => Err(err_code), } } + + pub fn fp(&self) -> &vk::MvkMacosSurfaceFn { + &self.macos_surface_fn + } + + pub fn instance(&self) -> vk::Instance { + self.handle + } } diff --git a/ash/src/extensions/nv/mesh_shader.rs b/ash/src/extensions/nv/mesh_shader.rs old mode 100644 new mode 100755 index 20e3fea..82478a5 --- a/ash/src/extensions/nv/mesh_shader.rs +++ b/ash/src/extensions/nv/mesh_shader.rs @@ -67,4 +67,8 @@ impl MeshShader { pub fn name() -> &'static CStr { vk::NvMeshShaderFn::name() } + + pub fn fp(&self) -> &vk::NvMeshShaderFn { + &self.mesh_shader_fn + } } diff --git a/ash/src/extensions/nv/ray_tracing.rs b/ash/src/extensions/nv/ray_tracing.rs old mode 100644 new mode 100755 index c4baec7..228e8f8 --- a/ash/src/extensions/nv/ray_tracing.rs +++ b/ash/src/extensions/nv/ray_tracing.rs @@ -271,4 +271,12 @@ impl RayTracing { pub fn name() -> &'static CStr { vk::NvRayTracingFn::name() } + + pub fn fp(&self) -> &vk::NvRayTracingFn { + &self.ray_tracing_fn + } + + pub fn device(&self) -> vk::Device { + self.handle + } }