commit | 6400e3bfc0cd31cb0edd3cd10b0c34588c864351 | [log] [tgz] |
---|---|---|
author | Austin Eng <enga@chromium.org> | Thu May 12 00:09:26 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 12 00:09:26 2022 +0000 |
tree | 1bddd6a9d703ab49cc54d8dfffac939c18067138 | |
parent | 7dd0ab791a59c89b628981f82f56b9ee3e8208b6 [diff] |
Add a way to query if a device exists on the wire server Chromium tracks the devices which live on the wire so it can automatically call tick on devices that have pending work. This used to be done by querying an (id, generation) pair and checking if it resolves to a non-null device. This CL adds a new way to query directly using the device, since a refactor in Chrome will change creation such that the id and generation is not known when a new device is requested. Also fixes a bug for device callbacks where the required callback userdata wasn't fully populated for devices created with requestAdapter. Update a test to check for this as well. Bug: chromium:1315260 Change-Id: I7468edc3e77bade191e1e9f3eaadebbf4441d88a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89520 Reviewed-by: Loko Kung <lokokung@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Austin Eng <enga@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.