| commit | 2c64ab7eefab03e130ca851e05e7c265064f9ccb | [log] [tgz] |
|---|---|---|
| author | Kai Ninomiya <kainino@chromium.org> | Fri Jul 11 18:12:48 2025 -0700 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jul 11 18:12:48 2025 -0700 |
| tree | d47d5074a873f1cd121b59a256b00d9fbddca003 | |
| parent | 343d475638219d915fbad49c06b7afe8140977e9 [diff] |
[emdawnwebgpu] Fix string-to-int tables with Closure, enable Closure in tests Fix string-to-int tables by (1) making them library-level items that are explicit dependencies (separate from $WebGPU) and (2) wrapping them to prevent Emscripten from removing the quotation marks on the keys, that signal to Closure that they shouldn't be minified. This has the added benefit of Emscripten being able to eliminate tables that are unused by the application. Enable --closure=1 in Release builds, and add a test which explicitly tests this. (The GetCompilationInfo tests also catch this.) Fixed: 424836759 Bug: 377760848 Change-Id: Iaee6d18516a5d54a49869ba76ec975c12cc0cc60 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/252255 Reviewed-by: Loko Kung <lokokung@google.com> 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.