ff54d22a15
* generator: Add many missing lifetime parameters * Globally find-replace common patterns that need a `<'_>` lifetime annotation perl -pi -E "s/(&(mut )?\[?vk::(?\!\w+(V1_\d|Fn|<))\w+)/\$1<'_>/" **/*.{rs,md} * generator: Include aliased types in `has_lifetime` lookup table * Manually revert wrong find-replace lifetimes * Resolve lint warnings for `deprecated_in_future`, `rust_2018_idioms` and `unused_qualifications` These are 3 non-default lints that cause a lot of violations in this project that are sensible to resolve, and reduce noise when test-including a local `ash` checkout in other projects that have stricter lint setups. |
||
---|---|---|
.. | ||
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.12.0"
The library exposes two functions:
-
enumerate_required_extensions
returns the required instance extensions needed for surface creation from a specific display handle. -
create_surface
allows to create a surface from a type implementingRawDisplayHandle
andRawWindowHandle
: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.