19 lines
308 B
Rust
19 lines
308 B
Rust
|
use anyhow::Result;
|
||
|
use vulkan_rs::prelude::*;
|
||
|
|
||
|
use std::sync::Arc;
|
||
|
|
||
|
pub struct Rendering {
|
||
|
swapchain: Arc<Swapchain>,
|
||
|
}
|
||
|
|
||
|
impl Rendering {
|
||
|
pub fn new(swapchain: Arc<Swapchain>) -> Self {
|
||
|
Self { swapchain }
|
||
|
}
|
||
|
|
||
|
pub fn render(&mut self) -> Result<VkSubmitInfo> {
|
||
|
todo!()
|
||
|
}
|
||
|
}
|