I successed to run Vulkan on Electron and used such a method.
- I make GLFW and Vulkan programs into DLLs.
- Program of GLFW and Vulkan makes the Image. the Image is created as a screenshot.
I reffer to this program.
- The image is encoded JPEG format. Additionally, Image on JPEG format is encoded Base 64. I used libjpeg-turbo and boost.
- Image on Base64 format is shown on Canvas 2d in HTML.
The problem is that this program is too slow. Also, I have no idea what this program is useful for.