commit | 62bfd318aefae4b5a1f50813f90bf0b8b821849b | [log] [tgz] |
---|---|---|
author | Zhaoming Jiang <zhaoming.jiang@intel.com> | Fri May 13 12:01:11 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 13 12:01:11 2022 +0000 |
tree | 38533d22e4e62bdfa89356a3e729125a98bf72fe | |
parent | e221ddd30e782d7ce4ab8774516bf42f5778c1e0 [diff] |
tint: Implement `f16` keyword in Tint frontend This patch: 1. Add the `f16` WGSL extension. 2. Add `f16` as keyword, and remove it from reserved word list. 3. Add ast::f16 and sem::f16, and implement validation that using `f16` type must be with `f16` extension enabled. 4. Add `Number<NumberKindF16>` for f16 literal and constant, and add `ast::FloatLiteralExpression::Suffix::kH`. 5. Add placeholder in all writer which report error when try to emit f16 type. Bugs: tint:1473, tint:1502 Change-Id: Ifb363beeb2699ed7cac57e07227d1b2cfa8050b4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89922 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.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.