INNER CODE UNIT · Rust
new
wkwan/flo · src/egui_integration.rs:13
pub fn new(
instance: &ash::Instance,
physical_device: vk::PhysicalDevice,
device: ash::Device,
render_pass: vk::RenderPass,
queue: vk::Queue,
command_pool: vk::CommandPool,
) -> Result<Self, Box<dyn std::error::Error>> {
let renderer = Renderer::with_default_allocator(
instance,
physical_device,
device,
render_pass,
Options::default(),
)?;
let context = egui::Context::default();