commit | 700892daf642d290bee5885644389af86d1d3ff0 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Thu May 09 23:52:45 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 09 23:52:45 2024 +0000 |
tree | 55012e900cb504584eeca3cc275ebea4985ec1fd | |
parent | f00b249b9bf48837aa452e99a73a695c6340bb53 [diff] |
Add WGSL writer helper to create a WGSL program. This CL adds a `ProgramFromIR` to the WGSL writer. This will raise the core IR to a WGSL dialect and then return the resulting WGSL program. This allows us to use the IR without round tripping through the WGSL reader. Bug: 338577206 Change-Id: Ied4ca866c3c8f1d13fa7c7d6b846dda145c767ab Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/187720 Reviewed-by: James Price <jrprice@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> Commit-Queue: dan sinclair <dsinclair@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.