ash/ash-window
Jason Macnak ed351996e5
Adds LICENSE-* files to crate subdirectories (#452)
... so that the license files appear in downloaded crates.
2021-07-09 12:21:15 +02:00
..
examples Vulkan 1.2.175: Provisional Video Extensions (#417) 2021-06-06 11:00:29 +02:00
src Use intradoc-links and explain the various loading methods 2021-06-07 09:54:11 -07:00
Cargo.toml Bump version of ash-window 2021-03-07 20:17:48 +01:00
Changelog.md changelog: Add missing link for 0.32.1, document changes to ash-window 2021-04-15 11:39:35 +02:00
LICENSE-APACHE Adds LICENSE-* files to crate subdirectories (#452) 2021-07-09 12:21:15 +02:00
LICENSE-MIT Adds LICENSE-* files to crate subdirectories (#452) 2021-07-09 12:21:15 +02:00
README.md Add interoperability functions for raw-window-handle (#308) 2020-07-04 15:21:39 +02:00

ash-window

crates.io docs ci
License - MIT License - Apache2

Interoperability between ash and raw-window-handle for surface creation.

ash-window = "0.4"

Usage

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

ash_window::create_surface(&entry, &instance, &window, None)?;

Versions

ash = "0.31"
raw-window-handle = "0.3"

Support

  • Windows (VK_KHR_win32_surface)
  • Unix (VK_KHR_xlib_surface/VK_KHR_xcb_surface/VK_KHR_wayland_surface)
  • MacOS/IOS (VK_EXT_metal_surface)
  • Android (VK_KHR_android_surface)

License

Licensed under either of

at your option.

Contribution

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.