#window #ash #graphics

ash-window

Interop library between ash and raw-window-handle

5 releases (3 breaking)

✓ Uses Rust 2018 edition

0.4.1 May 22, 2020
0.4.0 May 21, 2020
0.3.0 Mar 23, 2020
0.2.0 Mar 10, 2020
0.1.0 Oct 11, 2019

#46 in Game development

Download history 4/week @ 2020-02-08 48/week @ 2020-02-15 26/week @ 2020-02-22 23/week @ 2020-03-07 67/week @ 2020-03-14 141/week @ 2020-03-21 57/week @ 2020-03-28 206/week @ 2020-04-04 96/week @ 2020-04-11 52/week @ 2020-04-18 36/week @ 2020-04-25 31/week @ 2020-05-02 11/week @ 2020-05-09 161/week @ 2020-05-16 270/week @ 2020-05-23

285 downloads per month
Used in sarekt

MIT/Apache

15KB
143 lines

ash-window

NORSE 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.

Dependencies

~3.5MB
~93K SLoC