commit | 0ecdfebe903ecf820b29229316d09e4b9bd60110 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Fri Oct 18 01:44:07 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Oct 18 01:44:07 2024 +0000 |
tree | 22f306f993380630181e9d696b38bd2954893c16 | |
parent | a1dcbf0b62ce4e312116520a9091fc8b081c73a4 [diff] |
[ir] Rename all shadowing declarations The RenameConflicts transform does not take expression inlining into account, which can lead to expressions referencing the wrong declaration when used in a variable initializer in languages that do not have the same scoping rules as WGSL. Make the transform just rename all shadowing declarations instead. This results in some declarations being renamed unnecessarily, but fixes cases where we are generate code that is incorrect (and causing FXC failures). Fixed: 373646532 Change-Id: I3a607b61fb45b2280c7cd6e50fa2f9cdc53d47eb Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/211435 Reviewed-by: Antonio Maiorano <amaiorano@google.com> 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.