commit | eefd8c187aacc8238f114dc23415ab3803d57036 | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Wed Jun 18 09:50:49 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 18 09:50:49 2025 -0700 |
tree | 8af33b68ba5dfd835be4fd32b44d4d526dfc5491 | |
parent | 98b99ca11944d5f241e81f5dcac856543f8de1c7 [diff] |
TypedInteger: all explicit casts to any integral type and add missing arithmetic operations - Allow explicit cast to any integral type, but assert that no truncation occurs. - Add multiplication, division, modulo - Add matching self assignment operators (e.g. operator+=) - Add ostream operator<< for TypedInteger, which makes it much easier to understand gtest failures. - Add unit tests This beefs up TypedInteger to be used for strong typing of texels and blocks in a future CL. Bug: 424536624 Change-Id: I5bfc4d6c0076c53de792b8c2d5ab900ebef34d62 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/247594 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@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.