Oh wow, I was working on something similar in my spare time, but have only invested two evenings so far.
My main problem is that the embedders use different rendering APIs on all platforms (OpenGL ES/ANGLE/DX11 on Windows, OpenGL on Linux and Metal on macOS). I want to integrate wgpu with this, but it would mean having a completely separate core application for every platform. Also, using old rendering APIs for new development feels meh when new ones are available.
Is there a chance to get Windows and Linux to use Vulkan with this? Metal on macOS is rather easy to handle, but the other two are legacy stacked on top of each other.
Thank you. Missed that. Still, pragmatically this would require forking the embedders at very least. Linux embedder is built on Gtk3, which doesn't support vulkan. Windows embedded uses Angle. Writing full features embedder is a deceptively large task, especially when considering things like keyboard handling / IME.
3
u/anlumo Jul 11 '22
Oh wow, I was working on something similar in my spare time, but have only invested two evenings so far.
My main problem is that the embedders use different rendering APIs on all platforms (OpenGL ES/ANGLE/DX11 on Windows, OpenGL on Linux and Metal on macOS). I want to integrate wgpu with this, but it would mean having a completely separate core application for every platform. Also, using old rendering APIs for new development feels meh when new ones are available.
Is there a chance to get Windows and Linux to use Vulkan with this? Metal on macOS is rather easy to handle, but the other two are legacy stacked on top of each other.