commit | 83ebea3234e8b231a5496477c7ecf525495eb593 | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Fri Oct 11 22:40:03 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 11 22:40:03 2024 +0000 |
tree | a08f8de8c5962de2b8cab0ba97df7339a332ee3b | |
parent | f0893de068a98a81bc06279f2ff807b0be2463b9 [diff] |
[dawn][emscripten] Update public import/export APIs. - Adds new APIs in library_webgpu.js as per https://docs.google.com/document/d/1WK6M1ZkFrEwa1Cjx8Tjq1x68ZWt8u1_tUidg_mvNs1Q/edit?usp=sharing&resourcekey=0-fiEZvGkjpsQqLsrcfNqB-w - Shuffles EventSource in class hierarchy to allow for easier defaulting and passing of "parents". Also required shuffling around "delete" call since multi-inheritance means the "this" pointer cannot be used for deletion. - Renames/move internal implementation details into Internals subobject namespace. - Removes bufferWrapper concept and store the unmap callbacks in a separate table to keep the internal table simple for the API. - Removes makeCheckDefined since it's no longer needed given that buffers onUnmap are tracked separately. - Adds a way to specify __deps for helpers. Bug: 371008210 Change-Id: I8af9af6dfcd3483b7d0948de589ce569e445f8c5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/209180 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Loko Kung <lokokung@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.