commit | 85339850ca8b5c2fe3dafe284b3d8a52138d6e1c | [log] [tgz] |
---|---|---|
author | Lokbondo Kung <lokokung@google.com> | Mon Jun 23 15:44:59 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 23 15:44:59 2025 -0700 |
tree | 2562b3f041eacb9da7a7a1d605bec3a2de370977 | |
parent | c98a674ab88e70c5d137330ccf8d82baaf7c3c92 [diff] |
[dawn][common] Adds nullptr constructor for ResultOrError<Ref<T>, E>. - Without the explicit constructor, the resolution order selects the unique_ptr<Error> constructor over the templated constructor so returning nullptr will actually return a Result with neither an error nor a result which is never desirable. - The additional constructor takes precendence for nullptr so instead returning nullptr results in returning a null Ref which is a valid result. Change-Id: I4dfb8759e3c7fd7827f17755d2f7cce529968aa5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/247997 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.