WebGPU+VTK

Hello @jaswantp

by any chance do you know why this could be the case, I had few weeks ago successfully built + compiled dawn with VTK and able to write a sample application using this v20251002.162335. However, I noticed that the checkout sha for dawn has changed once again to v20260421.125655 which is understandable since the whole project is highly experimental. now in my quest to try out the new dawn following the simple steps laid out in the following link

https://docs.vtk.org/en/latest/modules/vtk-modules/Rendering/WebGPU/README.html#configuring-and-building-vtk

I’m constantly faced with all sorts of issues.

  • I can’t build with DVTK_BUILD_TESTING=ON it fails to build
  • If I turn off DVTK_BUILD_TESTING=OFF and build, I get the following

Do you have any idea what the issue might be. I even tried declaring the osx architecture in building dawn

cmake -S . -B install_output/bin -GNinja -DDAWN_FETCH_DEPENDENCIES=ON -DDAWN_ENABLE_INSTALL=ON -DCMAKE_OSX_ARCHITECTURES=arm64

and using the results to build vtk. and it constantly fails. What is puzzling is the last time I didn’t have these issues couple of weeks ago, any pointers would be appreciated?

Hi @Seun,

Sankhesh merged a fix in https://gitlab.kitware.com/vtk/vtk/-/merge_requests/13217

Please make sure the VTK commit you are building is after https://gitlab.kitware.com/vtk/vtk/-/commit/a14c90ca26d7805a07ec3a4c068db0e5441bf5c5

Hi @jaswantp, I’ll give it a shot and get back to you. Thanks.

I just tried the following to no avail

it’s also worth mentioning that I was already trying bleeding edge which I believe includes the said merge. which was still failing for me. perhaps there’s something I’m missing.

Okay.

  1. Did you build dawn by yourself?
  2. If not, did you download the right pre-built binaries for your architecture? arm64 vs x86_64?
  1. I have always built dawn by myself. (following the docs)
  2. and I’m running on arm64, so quite naturally I build VTK for arm64, and set Dawn_DIR to the install path of dawn that is the folder Dawn

That is pretty much what I’ve done in the past.

I see. Others are seeing similar issues. I will check on a Mac when I get a chance

thanks, meanwhile I’ll try the pre-built dawn perhaps that may produce different results.

I reproduce on my mac. I have a fix. Will open MR soon.

fix is in https://gitlab.kitware.com/vtk/vtk/-/merge_requests/13292.

In the interim, a workaround is to build Dawn with DAWN_ENABLE_RTTI=ON.