commit | 761536d941c0438e99e91a3efa6a6c8166398411 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Wed Oct 05 15:47:25 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 05 15:47:25 2022 +0000 |
tree | 508ed581be8cea560ef0f9473f5e7a0ba0f8dcd9 | |
parent | 8a833840d10ef730dde6c4f25cb68caeed5224a9 [diff] |
Improve robustness of FloatToString. When converting floats to string, we now enforce the "C" locale, so decimal points will be written as "." rather than the "," separator used natively in some European locales. Also, we now use operator>> to read back the number instead of std::stof. std::stof works in the system locale, and will fail to read back floats with the wrong decimal separator. (Also, std::stof will throw if the number is out of range and can't fit in the destination, which implies that the `if` check was probably never failing.) Skia encountered similar issues: see http://review.skia.org/587536 for the Skia implementation. Change-Id: I5aded6acc7cfcf2ad4d5b974bc30c3b645eaec51 Bug: dawn:1686 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/104680 Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: John Stiles <johnstiles@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.