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