26 lines
580 B
Rust
26 lines
580 B
Rust
|
use anyhow::Result;
|
||
|
use winit::window::Window;
|
||
|
|
||
|
/// Our Vulkan app.
|
||
|
#[derive(Clone, Debug)]
|
||
|
pub struct App {}
|
||
|
|
||
|
impl App {
|
||
|
/// Creates our Vulkan app.
|
||
|
pub unsafe fn create(window: &Window) -> Result<Self> {
|
||
|
Ok(Self {})
|
||
|
}
|
||
|
|
||
|
/// Renders a frame for our Vulkan app.
|
||
|
pub unsafe fn render(&mut self, window: &Window) -> Result<()> {
|
||
|
Ok(())
|
||
|
}
|
||
|
|
||
|
/// Destroys our Vulkan app.
|
||
|
pub unsafe fn destroy(&mut self) {}
|
||
|
}
|
||
|
|
||
|
/// The Vulkan handles and associated properties used by our Vulkan app.
|
||
|
#[derive(Clone, Debug, Default)]
|
||
|
pub struct AppData {}
|