WebGL for DirectX – Graphics and GPU Programming

OpenGL and DirectX have equivalents. What I mean is, for example:

OpenGL has equivalent Direct3D
OpenAL has equivalent DirectXAudio2
GLSL compute shaders – HLSL compute shaders
GLFW(which is not from Khronos, however is often used with OpenGL) has equivalent DirectXInput
Khronos has WebGL which Microsoft’s DirectX lacks, which is understandable since it is targeting windows users exclusively. The question is:

I made a DirectX11 app, exported for windows and I want to make it html5 also. DirectX being Windows exclusive it can’t run on browsers installed on MacOS and Linux, however most of common used Browsers support DirectX where possible. How to make a WebGL app from DirectX11?

Read more here: Source link