commit | 90fdaa810322540281d565e57d3f473d69232e82 | [log] [tgz] |
---|---|---|
author | Loko Kung <lokokung@google.com> | Wed Jul 24 00:59:58 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 24 00:59:58 2024 +0000 |
tree | 1c42f49f810dda19c789b0cd8d0062e8fba885d7 | |
parent | d5a2fe9cf26369916978e0095d8710e384ab321d [diff] |
Add cmake build for Emscripten bindings and samples. - Refactors the simple samples to use a single base so that we can easily if-def for Emscripten builds. - Remove #error in Dawn headers when building with Emscripten and instead redirect to just including the Emscripten header. - Cmake changes to make the Emscripten build only build the bindings and samples. - Add if-defs in some utilities since some texture formats and objects are not defined in the Emscripten headers. Bug: 346806934 Change-Id: Iec99fd4c0ce9d425973eddb553e926189c61dead Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/198614 Commit-Queue: Loko Kung <lokokung@google.com> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Austin Eng <enga@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.