[webkit-changes] [WebKit/WebKit] 22320b: [WGSL] Implement index access for matrices

Tadeu Zagallo noreply at github.com
Tue Oct 17 08:53:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 22320bd353b3ad1608a61825af92b285f3ee77ab
      https://github.com/WebKit/WebKit/commit/22320bd353b3ad1608a61825af92b285f3ee77ab
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-10-17 (Tue, 17 Oct 2023)

  Changed paths:
    M Source/WebGPU/WGSL/TypeCheck.cpp
    A Source/WebGPU/WGSL/tests/valid/access-expression.wgsl

  Log Message:
  -----------
  [WGSL] Implement index access for matrices
https://bugs.webkit.org/show_bug.cgi?id=263230

Reviewed by Dan Glastonbury.

The type checker was missing the case for matrix index access,
which should result in a vector.

* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/valid/access-expression.wgsl: Added.

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




More information about the webkit-changes mailing list