Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WGSL] Add typing for indexed access on vectors
https://bugs.webkit.org/show_bug.cgi?id=255598 rdar://108197306 Reviewed by Myles C. Maxfield. So far we only supported field access on vectors (e.g. vec2.x) but not indexed access (e.g. vec2[0]). This extends the typing to add support for that. Just like our current support for indexed access on arrays, we still don't validate if the access is out-of-bounds when the index is a constant. * Source/WebGPU/WGSL/TypeCheck.cpp: (WGSL::TypeChecker::visit): * Source/WebGPU/WGSL/tests/invalid/vector.wgsl: Added. Canonical link: https://commits.webkit.org/263122@main
- Loading branch information