commit | 87c9ac3a5a41032ed8fd4cb614a5bb7da1c0805b | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Thu Feb 27 15:52:00 2025 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 27 15:52:00 2025 -0800 |
tree | dc545e3a5ae7a4f66fa591e609968c277bcc4f65 | |
parent | 332b917ae00fb16b657847fcb84db784720219f6 [diff] |
[dawn][emscripten] Adds some fixes for refcounts for imported objects. - Adds some utilities to ensure that external and internal refs are managed properly. - Updates WGPUDevice to only call destroy if it wasn't imported. - Fixes buffer import to ensure mapping is consistent. - Will update other objects to include the tag in follow up changes since they aren't affected at the moment. No-Try: true Bug: 394380763 Change-Id: Idba2ecace2270147ca3ea2273e58cacf830878c8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/227696 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.