[ir] Move non-struct constant access range checks to WGSL only The IR validator is not capable of seeing through dynamic-looking expressions to anticipate folding that turns what looks like a dynamic access into a constant OOB access. An example: %2:i32 = abs 121i %3:i32 = access vec2<i32>(121i), %2 being folded into %2:i32 = access vec2<i32>(121i), 121i This is causing unexpected IR validation errors when a transform turns the former into the later, since the initial shader is valid. This CL follows the pattern from the Load/StoreVectorElement checks of only running in WGSL mode, and pushing responsibility for handling these cases to the transforms or printers that cause or see the folding. Fixes: 574902842 Change-Id: Ibdd791183a110fe73ea173387bf92665574fad13 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/358975 Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: James Price <jrprice@google.com> Commit-Queue: James Price <jrprice@google.com> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
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.