[emscripten] Nits for clarity of buffer import code path I realized after landing a contributed fix that it had an implicit constructor (apparently the lint for implicit constructors is broken, at least on webgpu.cpp, but possibly on the whole repo). This fixes it and also makes it clearer what's happening. And add a test that hits the codepath (but doesn't really test anything else) just to make sure it runs. Bug: 492539247 Change-Id: I2874519bdab7d066d1e4ce7c0f53deaa135ff02c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/298355 Auto-Submit: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Shrek Shao <shrekshao@google.com> Commit-Queue: Kai Ninomiya <kainino@chromium.org>
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.