Switch __EMSCRIPTEN__ to DAWN_PLATFORM_IS(EMSCRIPTEN) Use the standard DAWN_PLATFORM_IS macro for Emscripten. Add a presubmit check for __EMSCRIPTEN__. It's a warning because there are a few files that still need it. Update some Emscripten-related #error messages. Catches and fixes an issue that was causing an Android build failure where we checked: #elif __EMSCRIPTEN__ instead of: #elif defined(__EMSCRIPTEN__) which is new because -Weverything enabled stricter compiler warnings that don't allow using macro names that aren't defined. Bug: 515795864, 520153663 Change-Id: Ibd38551d5439d3f99948de3d7545aee485c0c040 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/322915 Reviewed-by: Shrek Shao <shrekshao@google.com> Auto-Submit: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Shrek Shao <shrekshao@google.com>
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.