-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building Error using Emscripten with WebGPU #317
Comments
On Windows, did you build it by setting When building for the Web, WebGPU backend is enabled by default. To use it, you initialize it like any other backend. |
after setting DILIGENT_NO_WEBGPU OFF there is no conflict while some errors about JSON parsing, the errors just like: |
What is your build setup? |
Environment:Windows & Emscripten SDK 3.1.65 & Ninja 1.10.2 |
I am now confused what you trying to do.
|
Did you follow the Emscripten build instructions? |
Yes,I followed the instuctions, and the reason why I used -DDILIGENT_NO_WEBGPU=OFF is that I had set the WebGPU ON and used dawn to build native application, I used the option to force it to be off. |
If you are building for the Web, please follow these instructions that detail how to build and run the samples in the browser. If you are building native application and want to enable WebGPU, use |
Yes, I followed the instructions for build_and_run_emscripten, the errors are same. |
Honestly, I don't know what the problem is. Here is the last CI build that uses same setup and works without issues |
There may be some errors in my compile environment since cmake log shows can‘t find the ASM compiler, however I can't fix it currently. |
Hi, I am building DiligentEngine using Emscripten on Windows with WebGPU, and I used dawn as the native implementation of WebGPU, there are a lot of type name errors, such as :
and there seems no document about how to build DiligentEngine to run on the browser with WebGPU.
The text was updated successfully, but these errors were encountered: