commit | 521cead7738a48596e8d1e53d44fcc132a4734cd | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Tue Mar 11 09:38:34 2025 -0700 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Mar 11 09:38:34 2025 -0700 |
tree | 5cbd2c3a6f83dac280b87bb076b6575ef9ef3b19 | |
parent | 2654e0eb9c6a7860e864b0573812a666a10c4101 [diff] |
[spirv] Add ForkExplicitLayoutTypes transform Some storage classes require arrays and structures to have explicit layout decorations, while others require them to not have any such decorations. This transform forks structures that are shared between those two storage classes to satisfy this SPIR-V validation. When a type is forked, the transform introduces helper functions to convert between the original type and the forked type for loads and stores to the variable that needs the explicit layout decorations. Array types will be handled in a follow up. Bug: 42252012 Change-Id: I147d777547be08096d52f5221647614026ee8649 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/229976 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.