e43e9c0c9b
[#590] introduced an unsuspecting MSRV bump. While we're pro-ba-bly fine having these at the benefit of better code (in this case more appropriate `const` annotations), they should at least be clear to us when merging through a CI failure (or up-front bump of this version in the CI script). At the same time setting [`rust-version` in `Cargo.toml`] provides a more helpful "requires newer rustc" error message (since Rust 1.56.0) instead of showing potentially tons of irrelevant compile errors in this crate to the user. [#590]: https://github.com/MaikKlein/ash/pull/590 [`rust-version` in `Cargo.toml`]: https://doc.rust-lang.org/cargo/reference/manifest.html?highlight=pack#the-rust-version-field |
||
---|---|---|
.. | ||
examples | ||
src | ||
Cargo.toml | ||
Changelog.md | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
Ash-window
Interoperability between ash
and raw-window-handle
for surface creation.
Usage
ash-window = "0.10.0"
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 implementingHasRawWindowHandle
:ash_window::create_surface(&entry, &instance, &window, None)?;
Versions
ash = "0.37"
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
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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.