-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://bugs.webkit.org/show_bug.cgi?id=270313 rdar://123852286 Reviewed by Mike Wyrzykowski and Alex Christensen. Fix 2 issues with array sizes: - the size was being treated as unsigned and only checking for 0, but according to the spec the size can also be signed, and we should return an error for negative values - we also need to limit the maximum size of an array. the spec[1] says the minimum size we must support is 65535 bytes, but for now we just check for 65535 elements. [1]: https://www.w3.org/TR/WGSL/#limits * Source/WebGPU/WGSL/TypeCheck.cpp: (WGSL::TypeChecker::visit): * Source/WebGPU/WGSL/tests/invalid/array.wgsl: Canonical link: https://commits.webkit.org/275557@main
- Loading branch information
1 parent
568a30c
commit 8c7b841
Showing
2 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters