vulkan-tutorial/src/app.rs

26 lines
580 B
Rust
Raw Normal View History

2023-03-31 10:50:34 -04:00
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 {}