It would be great if Tauri could be used for making GUIs for VST plugins (at least on Windows).
-
This requires being able to create the WebView2 window as a child window on the parent window whose handle the VST host passes in:
-
It also requires not taking control of the event loop but yielding control back to the host every frame:
In Editor::idle(), the VST would call run_return (instead of calling run once and relinquishing control) and the host calls Editor::idle() every frame.
Links to (outdated) prior art:
https://github.com/vanderlokken/rust-vst-gui (uses IE's engine, so no Wasm, windows-only)
https://github.com/Boscop/winit (very outdated winit fork)
https://github.com/Boscop/glutin (even more outdated glutin fork, from before winit existed)
https://github.com/monomadic/dd-core (prototype for mac, also outdated)
(I think there was also a crate that did this for linux, but I don't remember the name.)
Currently there is no working & up-to-date cross-platform solution to create GUIs for VST plugins.
Tauri seems to be the most promising option :)
It would be great if Tauri could be used for making GUIs for VST plugins (at least on Windows).
This requires being able to create the WebView2 window as a child window on the parent window whose handle the VST host passes in:
It also requires not taking control of the event loop but yielding control back to the host every frame:
In
Editor::idle(), the VST would callrun_return(instead of callingrunonce and relinquishing control) and the host callsEditor::idle()every frame.Links to (outdated) prior art:
https://github.com/vanderlokken/rust-vst-gui (uses IE's engine, so no Wasm, windows-only)
https://github.com/Boscop/winit (very outdated winit fork)
https://github.com/Boscop/glutin (even more outdated glutin fork, from before winit existed)
https://github.com/monomadic/dd-core (prototype for mac, also outdated)
(I think there was also a crate that did this for linux, but I don't remember the name.)
Currently there is no working & up-to-date cross-platform solution to create GUIs for VST plugins.
Tauri seems to be the most promising option :)