commit | 6c34e11e43547b2834ef65b2afb6ed48f0c30434 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Fri Mar 17 15:08:06 2023 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 17 15:08:06 2023 +0000 |
tree | 4a1f37e65cfd1d8b996681f239b16016bf6d10ba | |
parent | 7a9ea24fdf61ff7f734a5eebf65d1bba8a6b2bbb [diff] |
Support float values where the zeros change the exponent When underflow is detected in float parsing, WGSL returns `0.0`. Currently, if the number of `0`s following a `.` shifts the exponent from a positive to a negative we were not correctly identify the underflow and returning 0. This CL updates the float parsing to detect undeflow in this case and return `0.0` as expected. Bug: tint:1863 Change-Id: I164063cebf70f825fdf2753dff8a4f016939c38e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/124341 Commit-Queue: David Neto <dneto@google.com> Reviewed-by: David Neto <dneto@google.com> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@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.