Fix the incorrect WGPUBufferImpl constructor called from importJsBuffer This fixes IsImported() so it returns true on imported buffers. This isn't actually used, but ONNX Runtime has a patch that uses it: https://github.com/microsoft/onnxruntime/blob/0e027fe1136f52674e05e6b5c85d1d3eb93d884c/cmake/patches/dawn/dawn_destroy_buffer_on_destructor.patch This is a followup fix for: https://dawn-review.googlesource.com/c/dawn/+/286158 This is an imported pull request from https://github.com/google/dawn/pull/58 GITHUB_PR_HEAD_SHA=894b89b47504aaef2c570e18c7a45526b6fdb250 ORIGINAL_AUTHOR=Yulong Wang <7679871+fs-eire@users.noreply.github.com> Bug: 492539247 GitOrigin-RevId: 05829b8aabddfb17af3f6cced9e872d8024a83fd Change-Id: If50079d82b693b62a159320b970849d928aa95f6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/297496 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@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.