access raw VkDevice

Changed files
+5
crates
star-studio
src
+5
crates/star-studio/src/app.rs
···
impl eframe::App for StarStudio {
fn update(&mut self, _ctx: &egui::Context, frame: &mut eframe::Frame) {
+
// The backend is guaranteed to be Vulkan so we can punch through the HAL to do our own thing.
+
let wgpu = frame.wgpu_render_state().expect("eframe backend is not wgpu");
+
let device = unsafe { wgpu.device.as_hal::<wgpu::hal::api::Vulkan>() }.expect("wgpu backend is not vulkan");
+
dbg!(device.enabled_device_extensions());
+
// TODO: set up a PaintCallback to render game to
}
}