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)? })
|
|
|
|
}
|