commit | 9c2902b7e152991223e440481831b9713032086c | [log] [tgz] |
---|---|---|
author | Kai Ninomiya <kainino@chromium.org> | Mon Mar 03 15:35:22 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 03 15:35:22 2025 -0800 |
tree | 76e964793d55748f7a81942efacb86313523ab5c | |
parent | 86f0683126169002afabfaefe56f81af8c52bf42 [diff] |
[emscripten] Add emsdk to DEPS for Wasm builds This can be used (manually) to build with CMake. It is also planned to be used (automatically) with gn. activate-emsdk comes from here, but modifications and new code: https://source.chromium.org/chromium/chromium/src/+/main:third_party/skia/bin/activate-emsdk Split out from Loko's original CL, with a few updates. https://dawn-review.googlesource.com/c/dawn/+/227136 Building with .emscripten.emsdk_original works on both Mac and Windows. Building with the overridden .emscripten has the following caveats: - CMake on Mac doesn't work because llvm-build is missing llvm-ranlib (which is supposed to be a symlink to llvm-ar, but it must be invoked with the correct executable name; adding a symlink makes it work). - CMake (and probably gn) on Win doesn't work because llvm-build is missing clang.exe (though this can be fixed by copying clang-cl.exe), llvm-ar.exe, and presumably others. - CMake (and possibly gn) on Win only works with a native Ninja install (ninja.exe), not depot_tools (ninja.bat). Bug: 371024051 Co-authored-by: Lokbondo Kung <lokokung@google.com> Change-Id: I901cc814835e182f95ce73927cf151bc1ab7b07f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/228554 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: dan sinclair <dsinclair@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.