commit | 2b4df7889186d2e98e437a2d1bb3e083b4722edb | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Wed Jun 29 11:31:41 2022 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 29 11:31:41 2022 +0000 |
tree | 7620235a49674b2cda20db194f160268ccd0eeda | |
parent | 368f95a078eeadc547a3b3d1d0a55847130f3404 [diff] |
tint/number: Fix CheckedConvert() logic This function was attempting to pick a higher-precision type by using the decltype() of FROM + TO. This doesn't work if FROM and TO are both similar bit-widths, and of a different signness, as the picked type may not be wide enough to hold both the signed and unsigned representation. Just use AInt or AFloat (both 64-bit), which are the largest types supported by WGSL. Change-Id: Ic76475d98bad8def12a0283a1c83c62f2ed58b5d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95041 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: dan sinclair <dsinclair@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.