commit | a53fe68bdf384d9a344dd5ea09ca757e705b21de | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Fri Dec 13 14:30:50 2024 -0800 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Dec 13 14:30:50 2024 -0800 |
tree | 64bc9382c8a3278585eb63f4d580747f934c29fb | |
parent | 6c6c6dc2b6aa2739cb3d90ab20881695e9be7d0c [diff] |
[hlsl] Move symbol renaming into the backend Instead of running the AST renamer transform in Dawn's D3D backends, we just modify the names when emitting them in the printer. This is a little cleaner than using a transform, as transforms cannot rename structures and struct members without requiring const_cast. This also keeps the list of HLSL keywords local to the printer, and means we can retain the meaningful names throughout the `raise` process. Bug: 380043958 Change-Id: Ia654c14eabefe834a438bce841f83d7805602e9a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/219296 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.