commit | fe8a76cbbc447db0ebbe7da4818accca70900b13 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Thu Apr 27 15:45:56 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Apr 27 15:45:56 2023 +0000 |
tree | c9b50fb8424efef88e9ff3ff34e086475c6ff910 | |
parent | b8a7d8da866b123afa2073128f750f1ec229e7c8 [diff] |
[ir] Use the const eval results for expressions. If an expression has a `sem::ValueExpression` attached we can use it to directly obtain the result of the expression and stop emission. This Cl updates the IR builder to pull the expression result if possible. Several of the tests have been updated to go through a function in order to stop const-eval from removing all the test content. Bug: tint:1924 Change-Id: I6458cc297efc7789ac200069c18f75e8eb70c63b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/129680 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
Dawn is an open-source and cross-platform implementation of the work-in-progress 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)
(TODO)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.