Interoperability between ash
and raw-window-handle
for surface creation.
toml
ash-window = "0.4"
The library exposes two functions:
enumerate_required_extensions
returns the required instance extensions needed for surface creation from a specific window handle.
create_surface
allows to create a surface from a type implementing HasRawWindowHandle
rust
ash_window::create_surface(&entry, &instance, &window, None)?;
toml
ash = "0.31"
raw-window-handle = "0.3"
VK_KHR_win32_surface
)VK_KHR_xlib_surface
/VK_KHR_xcb_surface
/VK_KHR_wayland_surface
)VK_MVK_macos_surface
/VK_MVK_ios_surface
, VK_EXT_metal_surface
not exposed yet)VK_KHR_android_surface
)Licensed under either of
at your option.
Unless you explicitly state otherwise, any Contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.