[webkit-changes] [WebKit/WebKit] f4cba8: [WGSL] Add type checking for array constructors

Tadeu Zagallo noreply at github.com
Tue Apr 11 14:30:28 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f4cba86f49cd6234f332827e7dddaa4a00b05295
      https://github.com/WebKit/WebKit/commit/f4cba86f49cd6234f332827e7dddaa4a00b05295
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-04-11 (Tue, 11 Apr 2023)

  Changed paths:
    M Source/WebGPU/WGSL/TypeCheck.cpp
    A Source/WebGPU/WGSL/tests/invalid/array.wgsl
    M Source/WebGPU/WGSL/tests/valid/concretization.wgsl

  Log Message:
  -----------
  [WGSL] Add type checking for array constructors
https://bugs.webkit.org/show_bug.cgi?id=255110
rdar://problem/107722955

Reviewed by Dean Jackson.

Add type inference and validation for the constructors `array(...)` and `array<T, N>(...)`

* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/invalid/array.wgsl: Added.
* Source/WebGPU/WGSL/tests/valid/concretization.wgsl:

Canonical link: https://commits.webkit.org/262838@main




More information about the webkit-changes mailing list