mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
bump wgpu version in byo_gui_wgpu
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user