[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.