mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Reformat with rustfmt
This commit is contained in:
@@ -81,16 +81,14 @@ impl CustomWgpuWindow {
|
||||
|
||||
// Create the logical device and command queue
|
||||
let (device, queue) = adapter
|
||||
.request_device(
|
||||
&wgpu::DeviceDescriptor {
|
||||
label: None,
|
||||
required_features: wgpu::Features::empty(),
|
||||
required_limits: wgpu::Limits::downlevel_webgl2_defaults()
|
||||
.using_resolution(adapter.limits()),
|
||||
memory_hints: wgpu::MemoryHints::MemoryUsage,
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
.request_device(&wgpu::DeviceDescriptor {
|
||||
label: None,
|
||||
required_features: wgpu::Features::empty(),
|
||||
required_limits: wgpu::Limits::downlevel_webgl2_defaults()
|
||||
.using_resolution(adapter.limits()),
|
||||
memory_hints: wgpu::MemoryHints::MemoryUsage,
|
||||
..Default::default()
|
||||
})
|
||||
.await
|
||||
.expect("Failed to create device");
|
||||
|
||||
|
||||
@@ -128,8 +128,9 @@ impl Plugin for Gain {
|
||||
ui.add(widgets::ParamSlider::for_param(¶ms.gain, setter));
|
||||
|
||||
ui.label(
|
||||
"Also gain, but with a lame widget. Can't even render the value correctly!",
|
||||
);
|
||||
"Also gain, but with a lame widget. Can't even render the value \
|
||||
correctly!",
|
||||
);
|
||||
// This is a simple naieve version of a parameter slider that's not aware of how
|
||||
// the parameters work
|
||||
ui.add(
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
use atomic_refcell::AtomicRefMut;
|
||||
use clap_sys::ext::remote_controls::{
|
||||
clap_remote_controls_page, CLAP_REMOTE_CONTROLS_COUNT,
|
||||
};
|
||||
use clap_sys::ext::remote_controls::{clap_remote_controls_page, CLAP_REMOTE_CONTROLS_COUNT};
|
||||
use clap_sys::id::{clap_id, CLAP_INVALID_ID};
|
||||
use clap_sys::string_sizes::CLAP_NAME_SIZE;
|
||||
use std::cell::Cell;
|
||||
|
||||
@@ -22,9 +22,6 @@ use clap_sys::ext::audio_ports::{
|
||||
use clap_sys::ext::audio_ports_config::{
|
||||
clap_audio_ports_config, clap_plugin_audio_ports_config, CLAP_EXT_AUDIO_PORTS_CONFIG,
|
||||
};
|
||||
use clap_sys::ext::remote_controls::{
|
||||
clap_plugin_remote_controls, clap_remote_controls_page, CLAP_EXT_REMOTE_CONTROLS,
|
||||
};
|
||||
use clap_sys::ext::gui::{
|
||||
clap_gui_resize_hints, clap_host_gui, clap_plugin_gui, clap_window, CLAP_EXT_GUI,
|
||||
CLAP_WINDOW_API_COCOA, CLAP_WINDOW_API_WIN32, CLAP_WINDOW_API_X11,
|
||||
@@ -40,6 +37,9 @@ use clap_sys::ext::params::{
|
||||
CLAP_PARAM_IS_MODULATABLE, CLAP_PARAM_IS_MODULATABLE_PER_NOTE_ID, CLAP_PARAM_IS_READONLY,
|
||||
CLAP_PARAM_IS_STEPPED, CLAP_PARAM_RESCAN_VALUES,
|
||||
};
|
||||
use clap_sys::ext::remote_controls::{
|
||||
clap_plugin_remote_controls, clap_remote_controls_page, CLAP_EXT_REMOTE_CONTROLS,
|
||||
};
|
||||
use clap_sys::ext::render::{
|
||||
clap_plugin_render, clap_plugin_render_mode, CLAP_EXT_RENDER, CLAP_RENDER_OFFLINE,
|
||||
CLAP_RENDER_REALTIME,
|
||||
|
||||
Reference in New Issue
Block a user