2024-11-27 22:16:26 +01:00
|
|
|
use std::sync::Arc;
|
2024-11-27 21:27:50 +01:00
|
|
|
use ash::vk;
|
|
|
|
|
|
|
|
pub mod vulkan;
|
|
|
|
|
|
|
|
pub trait Renderable {
|
2024-11-27 22:16:26 +01:00
|
|
|
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<()>;
|
2024-11-27 21:27:50 +01:00
|
|
|
}
|