Merge pull request #234 from Didgy74/master
Expose raw function pointers in extensions
This commit is contained in:
commit
fc57fdf94f
4
ash/src/extensions/ext/debug_marker.rs
Normal file → Executable file
4
ash/src/extensions/ext/debug_marker.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/ext/debug_report.rs
Normal file → Executable file
8
ash/src/extensions/ext/debug_report.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/ext/debug_utils.rs
Normal file → Executable file
8
ash/src/extensions/ext/debug_utils.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/khr/android_surface.rs
Normal file → Executable file
8
ash/src/extensions/khr/android_surface.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/khr/display_swapchain.rs
Normal file → Executable file
8
ash/src/extensions/khr/display_swapchain.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/khr/surface.rs
Normal file → Executable file
8
ash/src/extensions/khr/surface.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/khr/swapchain.rs
Normal file → Executable file
8
ash/src/extensions/khr/swapchain.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/khr/wayland_surface.rs
Normal file → Executable file
8
ash/src/extensions/khr/wayland_surface.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/khr/win32_surface.rs
Normal file → Executable file
8
ash/src/extensions/khr/win32_surface.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/khr/xcb_surface.rs
Normal file → Executable file
8
ash/src/extensions/khr/xcb_surface.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/khr/xlib_surface.rs
Normal file → Executable file
8
ash/src/extensions/khr/xlib_surface.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/mvk/ios_surface.rs
Normal file → Executable file
8
ash/src/extensions/mvk/ios_surface.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/mvk/macos_surface.rs
Normal file → Executable file
8
ash/src/extensions/mvk/macos_surface.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
4
ash/src/extensions/nv/mesh_shader.rs
Normal file → Executable file
4
ash/src/extensions/nv/mesh_shader.rs
Normal file → Executable file
|
@ -67,4 +67,8 @@ impl MeshShader {
|
|||
pub fn name() -> &'static CStr {
|
||||
vk::NvMeshShaderFn::name()
|
||||
}
|
||||
|
||||
pub fn fp(&self) -> &vk::NvMeshShaderFn {
|
||||
&self.mesh_shader_fn
|
||||
}
|
||||
}
|
||||
|
|
8
ash/src/extensions/nv/ray_tracing.rs
Normal file → Executable file
8
ash/src/extensions/nv/ray_tracing.rs
Normal file → Executable file
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue