[tint] Refactor swizzle view lowering to IR pass Refactors the handling of swizzle assignment and SwizzleView loading/storing by migrating it out of program_to_ir and into a dedicated LowerSwizzleView IR transform pass. This simplifies the AST to IR conversion significantly, but still isolates the SwizzleView logic from the rest of the IR module passes by adding an AllowSwizzleView property that is turned off after this pass, ensuring that SwizzleViews don't leak past this early WGSL lowering IR transform. Bug: 488394907 Change-Id: Ia0ed2a9d80609a84c243f2a87c6ee4b877bd0ff2 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/329876 Commit-Queue: Natalie Chouinard <chouinard@google.com> Reviewed-by: 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.