Ensure src/utils headers always have src/utils build configs - Set DAWN_ENABLE_ASSERTS in Bazel which we previously never did. - Move the CMake stuff for src/utils into src/utils to match other build systems and separate it from dawn_internal_config. - Rename src/utils:internal_config to match a bit better. - Add preprocessor assertions in compiler.h that we received a build config from the build system / compiler command line, and also that NDEBUG/DAWN_ENABLE_ASSERTS make sense. - Fix some deps in dawn.node so the configs propagate. - Tweak gen_napi_symbols.py to fix a pedantic newline warning. There's still a ton of stuff that's confusingly different between systems but this should enable the next CL. Bug: 501491694 Change-Id: I6f10006221a477ee683379e4ab6aecdb9627dba8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/348335 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Kai Ninomiya <kainino@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.