commit | 0fb4e2c608f3b8235270d7286d703af152626e33 | [log] [tgz] |
---|---|---|
author | Zhaoming Jiang <zhaoming.jiang@intel.com> | Fri Jun 10 18:18:35 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 10 18:18:35 2022 +0000 |
tree | 565861f573423dd3f36f761bc08021affc2f3de8 | |
parent | 856d6af57ea6d854f03de6ca5aa08fcd2296acf7 [diff] |
tint: f16 literal in WGSL lexer and check subnormal f32/f16 hex literal This patch 1. Add F16 literal support in WGSL lexer and parser for both decimal and hex form. Also fix the f16::Quantize method to deal with subnormal cases correctly. 2. Fix exactly-representable check for hex f32 literal to deal with subnormal cases. 3. Implement and fix related unitests for f16 and f32. Bug: tint:1473, tint:1502 Change-Id: Ia4a7c9144ef9323fb23b2200a64e1ca8afb6c334 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93100 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com> Commit-Queue: 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.