commit | 1b305af6eb785ef4641163ff9a282eda0ba4d825 | [log] [tgz] |
---|---|---|
author | Brandon Jones <bajones@chromium.org> | Wed May 14 16:33:19 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 14 16:33:19 2025 -0700 |
tree | 144325f2d36d9ca89c56b4a883f949938cd5bce0 | |
parent | e9424a009a62bacb7ba8e027bf7c8c3de4fb19d9 [diff] |
Allow WeakRef with incomplete types Previously using WeakRef required that the full type definition was included. This was due to the GetWeakRef() methods being a friend of the WeakRef class so they could call the private constructor directly. By introducing a static WeakRef<T>::Get() function which calls the constructor and pointing the GetWeakRef calls at it we break the need for the friend association, which in turn allows WeakRef to be used with only a forward declaration of the type while still allowing GetWeakRef to be called as before. Bug: 416088623 Change-Id: I68f7d08eb1d75cff3dbce9c21459d8e6bc2b2a44 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/242276 Commit-Queue: Brandon Jones <bajones@chromium.org> Reviewed-by: 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.