Some places are already using ANGLE for this, which takes WebGL / OpenGL ES and translates it to D3D9, D3D11, Vulkan, desktop OpenGL, or Metal (in progress) depending on platform.
From my understanding, the main goal here was for Chrome to handle WebGL on Windows using Direct3D because OpenGL driver support on Windows is not good. But it's aiming to be a universal graphics shim for many platforms.
From my understanding, the main goal here was for Chrome to handle WebGL on Windows using Direct3D because OpenGL driver support on Windows is not good. But it's aiming to be a universal graphics shim for many platforms.
Chrome, Firefox, Qt, and Krita all use it.
https://en.wikipedia.org/wiki/ANGLE_(software)