I have been trying to use the vtk wasm sdk 64 bit with workers for the rendering of openfoam files but am getting issue unable to transfer the canvas to the wasm.
can you share error message? it requires some setup to get it working.
Here are example codes you can look at to understand how to transfer canvas to a thread. PThreads can be used in wasm in two configurations.
-
Using
main()and-sPROXY_TO_PTHREAD=1so that emscripten auto transfers canvas to pthread: -
Without
main()and manually transfer canvas usingemscripten_pthread_attr_settransferredcanvases. SeeWrappedAsyncClipper::StartinWrappedAsyncClipper.cxx
Is it possible to do the same with WebGPU classes in vtk. And i want to know if you had made any test on the memory limit of the wasm64 with pthreads in chrome lts.
Is it possible to do the same with WebGPU classes in vtk.
We have not tried it. I expect it to be a rough experience because of mixing pthreads and the async API of webgpu. I found a related feature request in chromium https://issues.chromium.org/issues/377733413
The memory limit for all threads combined in wasm64 is 16GB. What is chrome lts?
Thanks,I meant chrome latest version.
okay. it applies to latest as well.
Another doubt. Does it have openfoam reader?
Yes, it should be compiled in.
Thanks it is but unfortunately only the serial version is compiled.