commit | d5f53ab580b758202155df2d7cf64b1481d0f736 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Thu Jul 07 17:30:11 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 07 17:30:11 2022 +0000 |
tree | 3c074fffea23065ea83f528baf4ae65635f4bd33 | |
parent | 51265542e99e3b2f0f03b8b759919d3e88078208 [diff] |
tint/resolver: Optimize constant evaluation methods Materialize() was re-evaluating the constant values for the incoming semantic expression, despite this already being evaluated. Just use the sem::Expression::ConstantValue(). resolver.cc already has all the semantic pointers, so pass them in instead of pointlessly hitting the ast -> sem map. Change-Id: If2bc7cd10f79079fb811e9d83c5150dd3c0c244c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95764 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: 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.