Closed gracicot closed 2 years ago
Hi! Your Emscripten version is too old. The underlying WebGPU API keeps changing so the only way to keep the C++ version sensibly working is to only support more recent versions. The 3.0.0 release is from November 2021, and there's been far too many changes to the WebGPU implementation in that time.
Does this prebuilt version work for you?
Yes, the new emscripten is working, thank you very much.
I've not been able to package emscripten 3.1.9 using nix though, so I used emsdk.
Hello! I have a problem running the webgpu example on a web page by compiling the code to wasm using the latest emscripten.
First, in
main.cpp
at line 345, 346, 347 and 348, I had to changecolorDesc.clearValue
tocolorDesc.clearColor
. It wouldn't compile otherwise.Then after changing those line, running the example on chrome canary (
Version 104.0.5092.0 (Official Build) canary (x86_64)
).The error is the following:
The error look like it comes from the line 370:
The argument
WGPU_WHOLE_SIZE
seems to be transformed to-4294967297
in the javascript side:Maybe this is wrong?
I tried to replace the size with a different number. The error goes away but nothing renders. A lot of warnings are generated.
em++ --version