commit | 4a6562071605a1a73c14e1b705a8e4f002d03c39 | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon Aug 01 17:36:54 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Aug 01 17:36:54 2022 +0000 |
tree | d75d25f9dc4db71db4fb065f5becdb64c48fb3d9 | |
parent | 70a43fa5b9ff0ef1f8d31e62f670e0fc86f8b33e [diff] |
tint/resolver: Handle array() constructors If the array constructor has no explicit type and count, infer from the arguments. Implement and test array materialization. Also: * Change sem::AbstractNumeric::IsConstructable() to return true. This has changed in the WGSL spec. * Fix the test-helper builder for DataType<array<N, T>> - it was incorrectly calculating the array size. Bug: tint:1628 Change-Id: I0ec4e55b469ca6423b4d1848f27bb11df4fa683b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97663 Commit-Queue: Ben Clayton <bclayton@chromium.org> Reviewed-by: David Neto <dneto@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.