1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! ## 🚀 Quick Start
//! Add `crystal-vk` to your `Cargo.toml` dependencies
//! ```toml
//! [dependencies]
//! crystal-vk = "0.0.4"
//! ```
//! Here is a minimal example showing how to create a Vulkan device:
//! ```rust
//! use winit::{dpi::LogicalSize, window::Window};
//! use crystal_vk::device::Device;
//!
//! pub fn new(event_loop: &winit::event_loop::ActiveEventLoop) {
//! // winit window creation
//! let window = {
//! event_loop
//! .create_window(
//! Window::default_attributes()
//! .with_inner_size(LogicalSize::new(300, 300)),
//! )
//! .unwrap()
//! };
//!
//! // creates logical device from the first element of the list of available devices
//! let (device, queues) = Device::with_present(|devices| devices[0].clone(), &window).unwrap();
//! }
//! ```
pub use vk;