bump wgpu version in byo_gui_wgpu

This commit is contained in:
Billy Messenger
2025-04-16 11:04:21 -05:00
parent c270d73769
commit 653f6f8451
3 changed files with 187 additions and 92 deletions

View File

@@ -16,7 +16,7 @@ nih_plug = { path = "../../../", features = ["assert_process_allocs", "standalon
# NOTE: OpenGL support is not needed here, but rust-analyzer gets confused when
# some crates do use it and others don't
baseview = { git = "https://github.com/RustAudio/baseview.git", rev = "9a0b42c09d712777b2edb4c5e0cb6baf21e988f0", features = ["opengl"]}
wgpu = "23"
wgpu = "25"
raw-window-handle = "0.5"
raw-window-handle-06 = { package = "raw-window-handle", version = "0.6" }
pollster = "0.4.0"

View File

@@ -65,7 +65,7 @@ impl CustomWgpuWindow {
let width = (unscaled_width as f64 * scaling_factor as f64).round() as u32;
let height = (unscaled_height as f64 * scaling_factor as f64).round() as u32;
let instance = wgpu::Instance::new(wgpu::InstanceDescriptor::default());
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor::default());
let surface = unsafe { instance.create_surface_unsafe(target) }.unwrap();
@@ -88,8 +88,8 @@ impl CustomWgpuWindow {
required_limits: wgpu::Limits::downlevel_webgl2_defaults()
.using_resolution(adapter.limits()),
memory_hints: wgpu::MemoryHints::MemoryUsage,
..Default::default()
},
None,
)
.await
.expect("Failed to create device");