[dawn] Make spontaneous device callbacks thread safe in native also. - Unifies the code used for a lot of the device callbacks between the wire client and native. Note that I am currently using dawn/common for convenience, but it might be better in the long run to use another target or something since I needed to explicitly exclude the helpers for WASM builds since the logging callback is currently native only. Change-Id: Ia244a3dab0c9244d6a277c31d857210c9d3fc554 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/297575 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.