[val] Properly check for overlapping struct members The existing code has a underflow issue in it that allows IR with overlapping struct members to pass. This CL fixes the issue and simplifies the calculation, since the existing form is from when padding checks were in the validator and the not the backends. Fixes: 567129317 Change-Id: I9c2763a4cd2af915c85042fe1c3e9a685a3d0609 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/346495 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: 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.