e18e0243ef
While making the code only marginally harder to read such casts can also introduce subtle bugs when used incorrectly, and are best omitted whenever unnecessary: Rust already coerces borrows into raw pointers when the types on both ends are clear, and even then there remain many casts that are identical to the source type. In addition these errors show up when using a local crate reference to `ash` in a workspace that uses "the `.cargo/config.toml` setup" from [EmbarkStudios/rust-ecosystem#68] to configure linter warnings project-wide instead of for all crates in that workspace individually. In our case aforementioned linter warnings are enabled on top of Embark's configuration, leading to a lot of these warnings in our build process. [EmbarkStudios/rust-ecosystem#68]: https://github.com/EmbarkStudios/rust-ecosystem/pull/68 |
||
---|---|---|
.. | ||
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.9"
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.35"
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.