commit | efdcbdfc899944adddc3a72ea3e8ae37728e1774 | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Tue Jun 06 17:09:01 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jun 06 17:09:01 2023 +0000 |
tree | 82d9dba9159eb7e9d1d532e4c6b884d858660f41 | |
parent | 35de41336ca4c3c72ea8a6dc71a76783708c6a17 [diff] |
[ir][spirv-writer] Emit access instructions Use OpAccessChain or OpCompositeExtract, depending on whether the object is a pointer or not. For non-pointers, the indices are assumed to be constant unless accessing into a vector, where we can use OpVectorExtractDynamic. A future patch will add an IR transform to enable dynamic indexing into value arrays and matrices. Bug: tint:1906 Change-Id: I766ac72629f1507d6fd0c932824dc8b8a4889658 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/136060 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: James Price <jrprice@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.