[ir] Validate vector construct element types The intrinsics table lookup checks for overloads for both constructors and conversions at the same time. When the construct instruction has a mismatch between the argument element types and the result element type, the intrinsic table lookup succeeds by finding the conversion overload. An IR `construct` instruction is not allowed to convert element types, so add another check that the vector element types match. Fixed: 464761429 Change-Id: Iba58287edf750f64938fcebba3b5e1361808cae6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/277955 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: dan sinclair <dsinclair@chromium.org> Auto-Submit: James Price <jrprice@google.com>
Dawn is an open-source and cross-platform implementation of the 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)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.