| commit | b7c19e4f2cdf49c1572c21bea46f7497bd63400d | [log] [tgz] |
|---|---|---|
| author | James Price <jrprice@google.com> | Tue Nov 04 15:53:46 2025 -0800 |
| committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 04 15:53:46 2025 -0800 |
| tree | b94c28df5f96c820d68c84e6bc3f3d83725f7ee0 | |
| parent | 9bd000c6f2f8bbfd1e8e1e001bf47c756599c808 [diff] |
[ir] Move type member to Value base class All but one subclass of Value declared its own type member and SetType() method, as well as overriding the virtual Type() getter. Instead, just declare the type in the base class and define those methods in the base class too. As well as removing an unnecessary virtual method and duplicated code in the subclasses, this also makes it possible to call SetType() on a value without first casting it to a subclass, which is used to slightly simplify a callsite in ChangeImmediateToUniform. Change-Id: Ib1f34b01fef841071e02a868a216b76cfe517f80 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/271117 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: James Price <jrprice@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.