commit | e8253e98d62b23736c45a1916fe52fca37661417 | [log] [tgz] |
---|---|---|
author | Jiawei Shao <jiawei.shao@intel.com> | Tue May 06 17:44:24 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue May 06 17:44:24 2025 -0700 |
tree | a00a20b9c8e23539ac7d315e57b93108f6246e00 | |
parent | 955392691b352343ec52eb8e21b8bea05515481d [diff] |
[dawn] Use `std::countl_zero()` in C++20 This patch always uses the function `std::countl_zero()` (counting the number of consecutive zeros starting from the most significant bit) instead of the equivalent ones that are platform-dependent (e.g. `_BitScanForward()` on Windows, `__builtin_clz()` in GCC). This patch also removes `dawn::ScanReverse()` as it is no longer used right now. Bug: 343500108 Change-Id: Ia96b81d9d9d495f17f87bb08c36e27f9ad0f3a39 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/240674 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Loko Kung <lokokung@google.com>
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.