Hi,
Canvaskit doesn't build with webgpu enabled, even though the Makefile and the .gn file have flags, and the .cpp and .js have code for it. I built it via a 'make release_webgpu' command in the canvaskit directory.
Digging into it, the canvaskit BUILD.gn file never actually sets the "CK_ENABLE_WEBGPU" preprocessor macro. If I do set this it fails to compile the .cpp file as there are calls to unknown functions, for example....
../../modules/canvaskit/canvaskit_bindings.cpp:352:29: error: no member named 'MakeDawn' in 'GrDirectContext'
352 | return GrDirectContext::MakeDawn(device, options);
Is WebGPU support for canvaskit still a work in progress?
FWIW WebGL works happily when building as 'make release'.
My checkout is 11046fd10394ec5dbe996ec4eeabc7b3a74e8f1f
thanks
Bruno