commit | b3eb2e09c68723b23dda602602cf3ef5f48a196d | [log] [tgz] |
---|---|---|
author | François Beaufort <beaufort.francois@gmail.com> | Thu May 22 23:50:45 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 22 23:50:45 2025 -0700 |
tree | 21d3f2f93bfe2503124c54cf26d9ece236c6e04d | |
parent | 65e89ee3bd4c7e6d756760c07d3619d37df3e9c1 [diff] |
Add Emscripten support in Dawn GLFW for CMake builds ``` if(EMSCRIPTEN) set_target_properties(app PROPERTIES SUFFIX ".html") target_link_libraries(app PRIVATE emdawnwebgpu_cpp webgpu_glfw) target_link_options(app PRIVATE "-sASYNCIFY=1" "-sUSE_GLFW=3") else() target_link_libraries(app PRIVATE dawn::webgpu_dawn glfw webgpu_glfw) endif() ``` Change-Id: I2d5bb38738d2bc14c11f9a905103c244fb327e92 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/242894 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Fr <beaufort.francois@gmail.com> Reviewed-by: 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.