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.