commit | 6c167a0dc78380dfc5d60623aa435af80066b910 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Tue Jun 28 02:06:05 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 28 02:06:05 2022 +0000 |
tree | db9eeda208b1fb14fb5af1a5f747e59410e832b7 | |
parent | 1a758d8cebdab8fe5a3a9d330c1689903a0c0fe7 [diff] |
msl: Promote local private vars to function scope If a module-scope private variable is only referenced within a single function, promote it to a function scope declaration instead of passing it as a parameter. This reduces the number of a function parameters that are needed in some cases. Bug: tint:1509 Change-Id: I8951f6216bc7e4cf5abfda314bea1e9ed3ded560 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94002 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
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.