commit | 34fad30b77df52921fb33d0cb1a6b469546f6e54 | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Thu Nov 14 22:41:19 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 14 22:41:19 2024 +0000 |
tree | 5acc0f1e232a55bc02fceabdef66fbcd45dba4a7 | |
parent | e33022cfced373e48f5a2bd445ab0d37c88ecb2c [diff] |
[dawn][headers] Adds C++ templated callback types. This change exposes the C++ callback types so users have a type that they can use for passing callbacks around or for mocking. Example generated code: ``` template <typename... T> using BufferMapCallback2 = typename detail::CallbackTypeBase< std::tuple<MapAsyncStatus, StringView>, T...>::Callback; ``` Bug: 369445924 Change-Id: Ic85b895c848f3a400b173709a27351fb90795290 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/213715 Reviewed-by: Corentin Wallez <cwallez@chromium.org> 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.