commit | 6d87fa6ae4cd9394053c8ce779e7b9eb5ae2900c | [log] [tgz] |
---|---|---|
author | James Price <jrprice@google.com> | Tue Sep 03 23:24:13 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 03 23:24:13 2024 +0000 |
tree | a39d5270d7859a219c94edd964812ea19f617e10 | |
parent | fb96429725360210331bb23dd050110965a63191 [diff] |
[msl] Add support for clip_distances The clip distances builtin is an array, but needs to be emitted as a C-style array instead of using Tint's array wrapper. Additionally, the builtin attribute needs to be emitted after the member name and before the array count. The easiest way to achieve this is by special-casing the logic for emitting this struct member in the printer, rather than inventing a new MSL array type and special-casing the way we emit that type to include the name and builtin as part of it. Bug: 42251016 Change-Id: I1439ffca124287444c4c7c5507a01bab005f6777 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/204680 Commit-Queue: James Price <jrprice@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
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.