mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-13 01:53:32 +00:00
Remove the logic around `arrayLength()` being passed anything but a member accessor. Runtime arrays types cannot be used for variables nor parameters. Add validator logic and test for runtime array parameters. Adjust the validator error message so it doesn't include the field / variable name. This read weird, and the same information is already provided by the source. Bug: tint:266 Bug: tint:252 Change-Id: Iecedb0524e10a67b4f8ad15635d67fe61e9d69d9 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/36420 Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org>