commit | 9762ed01cb2e06111d523c940805f7ccd4d4b021 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Wed Jun 11 07:41:29 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 11 07:41:29 2025 -0700 |
tree | 676a4f0384441d9ad1730a51073bf661f77bd389 | |
parent | 540d8a692ba7b0707133bf7bbb822283ff780b0d [diff] |
[dawn] Make BitSetRangeIterator::Advance simpler to reason about The calls to ScanForwardAndShiftBits with mBits inversion interspersed made it difficult to reason about what's happening. The second call to ScanForwardAndShiftBits before the last mBits inversion introduced extra 1 bits on the left that had to be cleaned up. Instead inline ScanForwardAndShiftBits and use countr_one instead of shifting all of mBits. Finally guard the loop to run only when the bitset has more than 64 bits. Simplifies test code mildly. Bug: None Change-Id: I81ad70f799e287e980fd1e994b239ec2f1c31e5c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/244815 Reviewed-by: Shaobo Yan <shaoboyan@microsoft.com> Reviewed-by: Geoff Lang <geofflang@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org> Commit-Queue: 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.