commit | 5de6f58bc969f20b4ce1f71c405034a7326eec3a | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Fri Aug 30 04:46:44 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 30 04:46:44 2024 +0000 |
tree | 784615f81d8885c44f698ba182caa7159ffcf12d | |
parent | 91a753ae9ce12bbcd6f2744fc51a8de904c98480 [diff] |
[dawn][emscripten] Adds Ref<> helpers for refcounting. - Based on the RefBase from dawn/common, adds Ref<> to help with refcounting. - Adds RefCountedWithExternalCount to deal in preparations for internally and externally ref counted objects, i.e. the Device. - Use Ref<> for existing places instead of explicitly dealing with the refcounting functions. Change-Id: Id2871ff87cb0870198e1c74d7c969482d9376ab8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/203674 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: Loko Kung <lokokung@google.com> Reviewed-by: Shrek Shao <shrekshao@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.