| commit | a4a67f6f853b6494933fa55d985eb31853bfb5c4 | [log] [tgz] |
|---|---|---|
| author | Lokbondo Kung <lokokung@google.com> | Tue Jul 22 23:49:29 2025 -0700 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jul 22 23:49:29 2025 -0700 |
| tree | 33e651b097f6f4cb0f48636c687bd02c29c7318f | |
| parent | 1d46eca126c80542651d41036dec6b3ecbedfaae [diff] |
[dawn][native] Simplifies DeviceGuard with DeviceMutex. - Moves the defer object to be a part of the DeviceMutex instead of the Device. This allows for simplifying cases where the device might be destroyed since the Defer now lives with the DeviceMutex on the additional Ref that it holds. - This change also moves the code in Mutex around a bit so that the calls to Lock and Unlock are the ones responsible for updating state used for ASSERT checks. This is necessary to later expose private Lock/Unlock helpers in the Device class to implement unlocking before calling WaitFor* functions. Bug: 412761228 Include-Ci-Only-Tests: true Change-Id: I4cff7b7721c2b76d98671dce47818d1aa2017e90 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/253675 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@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.