vulkan-tutorial/src/lib.rs

12 lines
237 B
Rust
Raw Normal View History

2023-04-05 10:48:25 -04:00
mod app;
pub use app::App;
2023-04-05 13:04:20 -04:00
use ::anyhow::Result;
2023-04-05 10:48:25 -04:00
use ::winit::window::Window;
pub const VALIDATION_ENABLED: bool = cfg!(debug_assertions);
pub fn create_app(window: &Window) -> Result<App> {
Ok(unsafe { App::create(&window)? })
}