LunaSDK icon indicating copy to clipboard operation
LunaSDK copied to clipboard

Please add WebGPU support to RHI.

Open horel opened this issue 2 years ago • 2 comments

Thanks for your great work! WebGPU is similar to Vulkan and is also a very modern API. I wonder if you are interested in adding WebGPU support and enabling the project to be compiled and run on the web.

horel avatar Nov 10 '23 16:11 horel

Hi, horel. Adding WebGPU support requires us to port LunaSDK to WebAssembly, which is not the platform we originally planned for LunaSDK. As far as I know, some libraries we use (like dxc, glfw, etc.) do not provide WebAssembly version, and some system-level functions may not even work due to restrictions of web browsers. However, porting LunaSDK to WebAssembly is feasible if we implement a lighter version of LunaSDK that excludes modules and functions that are not supported, like what we will do for Android and iOS in v0.9. This will not be supported in v0.8, but will be further investigated in v0.9 and may be supported in the next few releases.

JX-Master avatar Nov 11 '23 01:11 JX-Master

After a few investigations, we concluded that it is feasible to add WebAssembly and WebGPU support for LunaSDK. We have created a new issue (#47 ) to track the development of WebAssembly porting, and will finish is issue during the WebAssembly development.

JX-Master avatar Nov 26 '23 08:11 JX-Master