Fix Mac cmake build for dawn.node When I build this in the node-webgpu repo and run the tests in that repo I get this error `out/cmake-release/gen/node/NapiSymbols.h:26: UNREACHABLE: napi_create_string_utf8() napi_create_string_utf8 is a weak stub, and should have been runtime replaced by the node implementation` Fixed by updating the CMake configuration to match the GN build logic. Bug: 493513159 Fixes: 493513159 Change-Id: I3091fd8a9dd6c192e5b6bece3ddf0ef9226ffb75 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/297815 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Auto-Submit: Gregg Tavares <gman@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.