Skip to content

No available wgpu backends with eframe 0.32.0 on Windows 10 #7342

Open
@greekfetacheese

Description

@greekfetacheese

Upon updating eframe to 0.32.0 wgpu seems broken.
This is how i setup eframe

fn main() -> eframe::Result {
   panic::set_hook(Box::new(|panic_info| {
      let message = panic_info
         .payload()
         .downcast_ref::<&str>()
         .map_or("Unknown panic", |s| s);
      let location = panic_info
         .location()
         .map_or("Unknown location".to_string(), |loc| {
            format!("{}:{}:{}", loc.file(), loc.line(), loc.column())
         });
      tracing::error!("Panic occurred: '{}' at {}", message, location);
   }));

   let _tracing_guard = setup_tracing();

   let wgpu_setup = WgpuSetup::CreateNew(WgpuSetupCreateNew {
      instance_descriptor: InstanceDescriptor {
         backends: Backends::PRIMARY | Backends::GL,
         ..Default::default()
      },
      power_preference: PowerPreference::HighPerformance,
      device_descriptor: Arc::new(|_adapter| {
         wgpu::DeviceDescriptor {
            memory_hints: MemoryHints::MemoryUsage,
            ..Default::default()
         }
      }),
      ..Default::default()
   });

   let wgpu_config = WgpuConfiguration {
      wgpu_setup,
      ..Default::default()
   };

   let options = eframe::NativeOptions {
      renderer: eframe::Renderer::Wgpu,
      wgpu_options: wgpu_config,
      viewport: egui::ViewportBuilder::default()
         .with_decorations(false)
         .with_inner_size([1280.0, 900.0])
         .with_min_inner_size([1280.0, 900.0])
         .with_transparent(true)
         .with_resizable(true),

      ..Default::default()
   };

   eframe::run_native(
      "Zeus",
      options,
      Box::new(|cc| {
         egui_extras::install_image_loaders(&cc.egui_ctx);

         let app = ZeusApp::new(&cc);

         Ok(Box::new(app))
      }),
   )
}

I know for a fact at least on my machine VULKAN is working, but yet for some reason wgpu panics:

Panic occurred: 'No wgpu backend feature that is implemented for the target platform was enabl
ed. See `wgpu::Instance::enabled_backend_features()` for more information.' at C:\Users\mixal\.cargo\registry\src\index.crates.io-1949
cf8c6b5b557f\wgpu-25.0.2\src\api\instance.rs:117:13

Not really sure why this is happening, everything was working great up to 0.31.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions