Reland "Return early in WaitForQueueSerial if the serial already passes." This is a reland of commit bedd29aeeba8de737f14fdc6a1e17e846372ee5a. What's changed: - Call UpdateCompletedSerialTo before early return to ensure the callbacks are triggered for the serial. Original change's description: > Return early in WaitForQueueSerial if the serial already passes. > > We already do it in the WaitIsThreadSafe path, now do the same for > the non-threadsafe path. > > Early return can avoid acquiring the device lock. > > Bug: chromium:422741977 > Change-Id: Icd045400510b52ccf7884deed74f16f8c015b84d > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/286516 > Commit-Queue: Quyen Le <lehoangquyen@chromium.org> > Reviewed-by: Loko Kung <lokokung@google.com> Bug: chromium:422741977 Change-Id: I5c6ff6344ed823562302ae5f1ee339a19a9d9927 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/287635 Reviewed-by: Loko Kung <lokokung@google.com> Auto-Submit: Quyen Le <lehoangquyen@chromium.org> Commit-Queue: Quyen Le <lehoangquyen@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.