Open grantramsay opened 4 years ago
Mypreference would be to eventually drop opengl on all platforms, and just use vulkan. On osx we can use moltenvk.
Another option would be using webgpu. That works fine on desktop as well and uses native graphic apis on the corresponding platform, i.e DirectX 12 or Vulkan on windows, vulkan on Linux and Metal on Mac OS.
It is a safe api similar to Vulkan. Performance is somewhere between OpenGL and highly optimized Vulkan.
An opengl backend for WebGPU is also on the Roadmap, but I wouldn't count on it.
Oh,and of course Webgpu will work in your favorite browser.So a web port of this game would be possible:)
Forgot a link: https://github.com/gfx-rs/wgpu-native/blob/master/README.md
There's also bgfx as well. https://github.com/bkaradzic/bgfx
macOS has deprecated OpenGL, at some point they will drop support and freeablo will require a Metal graphics backend.
Probably shouldn't be done until: