|author||Ben Clayton <firstname.lastname@example.org>||Wed Jun 29 11:31:41 2022 +0000|
|committer||Dawn LUCI CQ <email@example.com>||Wed Jun 29 11:31:41 2022 +0000|
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 <firstname.lastname@example.org> Commit-Queue: Ben Clayton <email@example.com> Reviewed-by: dan sinclair <firstname.lastname@example.org>
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.hversion that Dawn implements.
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
Apache 2.0 Public License, please see LICENSE.
This is not an officially supported Google product.