4 ms·
Not drop-in, because Dawn doesn't implement the Direct3D API. You could probably bridge Direct3D to WebGPU by implementing the headers[1] though, which is exact
by tadfisher 3y ago
Not drop-in, because Dawn doesn't implement the Direct3D API. You could probably bridge Direct3D to WebGPU by implementing the headers[1] though, which is exactly what DXVK does for Vulkan [2].
[1]: https://github.com/Joshua-Ashton/mingw-directx-headers https://github.com/Joshua-Ashton/mingw-directx-headers
[2]: https://github.com/doitsujin/dxvk/blob/master/src/d3d9/d3d9_main.cpp https://github.com/doitsujin/dxvk/blob/master/src/d3d9/d3d9_...
- ignoramous 3y agoThanks. > Not drop-in, because Dawn doesn't implement the Direct3D API. Not Vulkan, but Dawn (I guess, I mean ANGLE specifically) can do D3DX 9 & 11 to OpenGLES? https://chromium.googlesource.com/angle/angle/+/main/README.md https://chromium.googlesource.com/angle/angle/+/main/README.... / https://archive.is/u2z2a https://archive.is/u2z2a
- tadfisher 3y agoANGLE is the opposite of what you want; it implements OpenGL ES (WebGL) on top of DirectX, when you want to implement DirectX on top of WebGPU.