9 lines
No EOL
334 B
Rust
9 lines
No EOL
334 B
Rust
use std::sync::Arc;
|
|
use ash::vk;
|
|
|
|
pub mod vulkan;
|
|
|
|
pub trait Renderable {
|
|
fn init(&mut self, device: &Arc<vulkan::VkDevice>, render_pass: &Arc<vulkan::VkRenderPass>) -> anyhow::Result<()>;
|
|
fn render(&self, device: &vulkan::VkDevice, swapchain: &vulkan::VkSwapchain, command_buffer: &vk::CommandBuffer) -> anyhow::Result<()>;
|
|
} |